139ceeabfed6af3e5467c4f294b8ea8e52958344
[gnulib.git] / ChangeLog
1 2010-09-09  Bruno Haible  <bruno@clisp.org>
2
3         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
5         a reliable way to determine whether the 'alias' command works.
6
7 2010-09-08  Jim Meyering  <meyering@redhat.com>
8
9         init.sh: penalize a set-x-impaired shell; don't disqualify it
10         * tests/init.sh: Too many shells corrupt application stderr when
11         you set -x, so we can't afford to disqualify them, since at least
12         on Irix-6.5, that would disqualify all bourne shells.
13         Instead, use a two-pass approach.
14         On the first pass, try to find a shell that meets the stricter
15         condition that set -x does not corrupt stderr.
16         If no shell meets the stricter condition, retest each candidate
17         shell, but without that extra condition.  Finally, when
18         VERBOSE=yes is requested and set -x might cause trouble, simply
19         issue a warning and refrain from enabling debug output.
20
21 2010-09-08  Eric Blake  <eblake@redhat.com>
22
23         unsetenv: fix OpenBSD bug
24         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26         documentation.
27         Reported by Jim Meyering.
28
29         strtod: work around IRIX 6.5 bug
30         * lib/strtod.c (strtod): Reparse number on shorter string if
31         exponent parse was invalid.
32         * tests/test-strtod.c (main): Add check for "0x1p 2".
33         Reported by Tom G. Christensen.
34
35         getopt: optimize previous patch
36         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
37         empty variable.  Speed up awk script.
38         Reported by Paolo Bonzini.
39
40 2010-09-08  Jim Meyering  <meyering@redhat.com>
41
42         test.sh: disqualify shells for which set -x corrupts stderr
43         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
44         and OpenBSD 4.7.  They make it so with "set -x", environment settings
45         appear in stderr output.  For example, this command:
46             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
47         prints "P=1" on those two systems:
48
49 2010-09-08  Bruno Haible  <bruno@clisp.org>
50
51         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
52         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
53         commands, because some shells ignore redirections when there is an
54         error in the command lookup.
55         Reported by Eric Blake.
56
57 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
58
59         * lib/regex.h: Fix a mention of `regex_compile' (should be
60         `re_compile_pattern').
61         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
62         (re_set_registers): Correct name of parameter in comment.
63
64         * doc/regex.texi: Add documentation for missing syntax flags.
65         Remove commented-out documentation of defunct syntax option
66         RE_NO_EMPTY_ALTS.
67         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
68         Add documentation of re_set_registers.
69         Document trick to re-use a pattern buffer by setting fastmap manually.
70         Update documentation of struct re_pattern_buffer per public members.
71         Uncomment documentation of equivalence class operators and
72         collating symbol operators, since they are now implemented,
73         Explain leftmost-longest matching in relation to alternatives.
74         Tidy documentation of substring matching.
75         Remove POSIX documentation, which is done better in
76         glibc, and refer the reader there. Keep BSD API documentation, as
77         that is not readily available elsewhere.
78
79 2010-09-07  Eric Blake  <eblake@redhat.com>
80
81         getopt: handle POSIXLY_CORRECT set but not exported
82         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
83         export state of POSIXLY_CORRECT, due to bash set -o posix.
84         Reported by Dustin J. Mitchell.
85
86 2010-09-05  Bruno Haible  <bruno@clisp.org>
87
88         gnulib-tool: Highlight the changed options.
89         * gnulib-tool (func_usage): Display the --import, --add-import,
90         --remove-import explanations in bold font.
91
92 2010-09-06  Karl Berry  <karl@gnu.org>
93
94         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
95
96 2010-09-05  Bruno Haible  <bruno@clisp.org>
97
98         uniwidth/width: Update comment.
99         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
100         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
101
102 2010-09-05  Bruno Haible  <bruno@clisp.org>
103
104         isinf, isnan: Relax license.
105         * modules/isinf (License): Change from GPL to LGPL, with consent from
106         Ben Pfaff.
107         * modules/isnan (License): Likewise.
108         Requested by Ludovic Courtès.
109
110 2010-09-04  Bruno Haible  <bruno@clisp.org>
111
112         gnulib-tool: Help migration from --import to --add-import or --update.
113         * gnulib-tool: Emit a verbose error message when --import is used
114         without any module name.
115
116 2010-09-04  Bruno Haible  <bruno@clisp.org>
117
118         Update doc about gnulib-tool.
119         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
120         'gnulib-tool --update' in more detail.
121         Reported by Eric Blake.
122
123 2010-09-04  Bruno Haible  <bruno@clisp.org>
124
125         gnulib-tool: Change --import. New options --add/remove-import.
126         * gnulib-tool: New options --add-import, --remove-import.
127         (func_usage): Document them.
128         (have_associative): Define always.
129         (func_import): In import mode, don't merge the specified settings with
130         the cached settings. Implement remove-import mode.
131         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
132         Explain when to use them versus --import.
133         (Simple update): Use --add-import instead of --import.
134         * NEWS: Mention the change.
135
136 2010-09-04  Bruno Haible  <bruno@clisp.org>
137
138         * doc/gnulib-tool.texi (Initial import): Update paragraph about
139         separate gnulib.mk.
140
141 2010-09-04  Bruno Haible  <bruno@clisp.org>
142
143         gnulib-tool: Don't talk about CVS any more.
144         * gnulib-tool (func_usage, func_import): Write "version control"
145         instead of CVS.
146
147 2010-09-04  Jim Meyering  <meyering@redhat.com>
148
149         maint.mk: avoid obscure sc_copyright_check failure in coreutils
150         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
151         false positives (whose names may be ill-chosen) when searching
152         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
153         would cause a false-positive.
154
155         avoid coreutils "make distcheck" failure
156         Coreutils tests with an absolute build directory name that contains
157         a space.  Not quoting this directory name caused a failure.
158         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
159         * tests/test-vc-list-files-cvs.sh: Likewise.
160
161 2010-09-04  Bruno Haible  <bruno@clisp.org>
162
163         gnulib-tool: Avoid error when run in a package without Makefile.am.
164         * gnulib-tool: When collecting the m4dirs in a package that does not
165         have a Makefile.am, eliminate those directories that contain no
166         gnulib-cache.m4. Fix expression that counts these directories.
167
168 2010-09-04  Bruno Haible  <bruno@clisp.org>
169
170         update-copyright test: Improve output when perl is missing or too old.
171         * tests/test-update-copyright.sh: Move test of Perl version down after
172         the test whether Perl exists. Provide an explanation relating Perl's
173         error message to Automake's SKIP: message.
174
175 2010-09-04  Bruno Haible  <bruno@clisp.org>
176
177         Don't augment PATH in TESTS_ENVIRONMENT.
178         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
179         set abs_aux_dir instead of augmenting PATH.
180         * modules/vc-list-files-tests (Makefile.am): Likewise.
181         * tests/test-update-copyright.sh: Augment PATH here.
182         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
183         path_prepend_.
184         * tests/test-vc-list-files-git.sh: Likewise.
185
186 2010-09-04  Jim Meyering  <meyering@redhat.com>
187
188         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
189         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
190
191 2010-09-04  Bruno Haible  <bruno@clisp.org>
192
193         strdup: Fix compilation error in C++ mode.
194         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
195         the macro.
196
197 2010-09-04  Bruno Haible  <bruno@clisp.org>
198
199         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
200         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
201         macro into a function.
202         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
203
204 2010-09-04  Bruno Haible  <bruno@clisp.org>
205
206         Set PATH_SEPARATOR the same way autoconf does.
207         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
208         the value of PATH_SEPARATOR the same way autoconf-generated configure
209         scripts do.
210         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
211         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
212
213 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
214
215         Set PATH_SEPARATOR the same way autoconf does.
216         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
217         the same way autoconf-generated configure scripts do.
218         * posix-modules: Likewise.
219
220 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
221
222         hash: fix safe_hasher const typo
223         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
224         const; otherwise, there is a type error later.
225
226 2010-09-02  Jim Meyering  <meyering@redhat.com>
227
228         test-update-copyright.sh: require perl 5.8.0
229         * tests/test-update-copyright.sh: Require 5.8.0,
230         which Tom G. Christensen has confirmed is adequate,
231         while 5.6.1 is not.
232
233 2010-09-02  Eric Blake  <eblake@redhat.com>
234
235         tests: init.sh improvements for re-exec'ing with zsh
236         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
237         -vx through shell re-exec.
238         Reported by Tom G. Christensen.
239
240         wctype: fix typo in previous commit
241         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
242         Reported by Ludovic Courtès.
243
244 2010-09-02  Jim Meyering  <meyering@redhat.com>
245
246         test-update-copyright.sh: skip test if Perl is too old
247         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
248         Reported by Tom G. Christensen.
249
250 2010-09-02  Bruno Haible  <bruno@clisp.org>
251
252         wctype: Avoid compilation error on IRIX 6.5.30.
253         * lib/wctype.in.h (iswblank): Declare with a replacement if
254         REPLACE_ISWBLANK is set.
255         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
256         declared. Set REPLACE_ISWBLANK.
257         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
258         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
259         * doc/posix-headers/wctype.texi: Likewise.
260         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
261
262 2010-09-01  Bruno Haible  <bruno@clisp.org>
263
264         New module 'socketlib'.
265         * modules/socketlib: New file.
266         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
267         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
268         * modules/sockets (Depends-on): Add socketlib.
269         Suggested by Sam Steingold <sds@gnu.org>.
270
271 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
272
273         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
274
275         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
276         when one needs search access to a directory but not read access.
277         On systems where it is available, it works in some cases where
278         O_RDONLY does not, namely on directories that are searchable but
279         not readable, and which need only to be searchable.  If O_SEARCH
280         is not available, fall back to the traditional method of using
281         O_RDONLY.
282
283         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
284         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
285         when opening a directory that needs only to be searchable.
286         * lib/chdir-safer.c (chdir_no_follow): Likewise.
287         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
288         * lib/openat-proc.c (openat_proc_name): Likewise.
289         * lib/openat.c (openat_needs_fchdir): Likewise.
290         * lib/save-cwd.c (save_cwd): Likewise.
291         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
292
293 2010-08-28  Bruno Haible  <bruno@clisp.org>
294
295         New module 'host-cpu-c-abi'.
296         * modules/host-cpu-c-abi: New file.
297         * m4/host-cpu-c-abi.m4: New file, based on part of
298         clisp/src/m4/general.m4.
299         Requested by Sam Steingold <sds@gnu.org>.
300
301 2010-08-31  Eric Blake  <eblake@redhat.com>
302         and Jim Meyering  <meyering@redhat.com>
303
304         hash: factor, and guard against misbehaving hasher function
305         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
306         of table->hasher's return value.  Also protect against a hash value
307         so large that adding it to table->bucket results in a NULL pointer.
308         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
309         Use it in place of open-coded check-and-abort.
310
311 2010-08-30  Bruno Haible  <bruno@clisp.org>
312
313         hash: silence spurious clang warning
314         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
315         Reported by Eric Blake.
316
317 2010-08-30  Eric Blake  <eblake@redhat.com>
318
319         strstr, memmem, strcasestr: avoid leaked shell message
320         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
321         FreeBSD.
322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
323         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
324
325         tests: silence clang warning
326         * tests/test-malloca.c (do_allocation): Avoid dead store.
327
328 2010-08-29  Bruno Haible  <bruno@clisp.org>
329
330         gettext: Fix recent mistake.
331         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
332
333 2010-08-29  Bruno Haible  <bruno@clisp.org>
334
335         selinux-h: Offer a --without-selinux option.
336         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
337         --without-selinux was specified, skip all tests and define
338         HAVE_SELINUX_SELINUX_H to 0.
339         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
340         set LIB_SELINUX to empty.
341         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
342         gl_LIBSELINUX. If --without-selinux was specified, replace
343         selinux/context.h.
344         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
345
346 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
347             Bruno Haible  <bruno@clisp.org>
348
349         Make the module 'realloc-gnu' work again on AIX and OSF/1.
350         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
351         of HAVE_REALLOC.
352         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
353         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
354         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
355         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
356
357 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
358             Bruno Haible  <bruno@clisp.org>
359
360         Make the module 'calloc-gnu' work again on AIX and OSF/1.
361         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
362         HAVE_CALLOC.
363         * lib/xmalloc.c: Update accordingly.
364         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
365         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
366         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
367
368 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
369             Bruno Haible  <bruno@clisp.org>
370
371         Make the module 'malloc-gnu' work again on AIX and OSF/1.
372         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
373         HAVE_MALLOC.
374         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
375         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
376         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
377
378 2010-08-29  Bruno Haible  <bruno@clisp.org>
379
380         Update modules list.
381         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
382         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
383         (String handling <string.h>): Add astrxfrm.
384         (File system functions): Add readlinkat.
385
386 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
387
388         Tests for module 'realloc-gnu'.
389         * modules/realloc-gnu-tests: New file.
390         * tests/test-realloc-gnu.c: New file.
391
392         Tests for module 'calloc-gnu'.
393         * modules/calloc-gnu-tests: New file.
394         * tests/test-calloc-gnu.c: New file.
395
396         Tests for module 'malloc-gnu'.
397         * modules/malloc-gnu-tests: New file.
398         * tests/test-malloc-gnu.c: New file.
399
400 2010-08-28  Bruno Haible  <bruno@clisp.org>
401
402         Rename module 'realloc' -> 'realloc-gnu'.
403         * modules/realloc-gnu: New file, copied from modules/realloc.
404         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
405         obsolete.
406         * modules/mgetgroups (Depends-on): Update.
407         * doc/posix-functions/realloc.texi: Update.
408         * NEWS: Mention the change.
409
410         Rename module 'calloc' -> 'calloc-gnu'.
411         * modules/calloc-gnu: New file, copied from modules/calloc.
412         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
413         obsolete.
414         * doc/posix-functions/calloc.texi: Update.
415         * NEWS: Mention the change.
416
417         Rename module 'malloc' -> 'malloc-gnu'.
418         * modules/malloc-gnu: New file, copied from modules/malloc.
419         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
420         obsolete.
421         * modules/argp (Depends-on): Update.
422         * modules/regex (Depends-on): Update.
423         * doc/posix-functions/malloc.texi: Update.
424         * NEWS: Mention the change.
425
426 2010-08-28  Eric Blake  <eblake@redhat.com>
427
428         pread, pwrite: add missing dependency
429         * modules/pread (Depends-on): Add extensions.
430         * modules/pwrite (Depends-on): Likewise.
431
432 2010-08-28  Bruno Haible  <bruno@clisp.org>
433
434         unistr/u*-strchr: Fix tests dependencies.
435         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
436         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
437         Reported by Ian Beckwith <ianb@erislabs.net>.
438
439 2010-08-28  Bruno Haible  <bruno@clisp.org>
440
441         read-file: Don't occupy too much unused memory.
442         * lib/read-file.c (fread_file): Shrink the buffer at the end.
443
444 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
445             Eric Blake  <eblake@redhat.com>
446             Bruno Haible  <bruno@clisp.org>
447
448         read-file: Avoid memory reallocations with regular files.
449         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
450         (fread_file): With regular files, use the remaining length as the
451         initial buffer size.  Check against overflow.
452         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
453         sys_stat.
454
455 2010-08-28  Bruno Haible  <bruno@clisp.org>
456
457         ftello: Relax license.
458         * modules/ftello (License): Relax to LGPLv2+.
459         Reported by Eric Blake.
460
461 2010-08-28  Bruno Haible  <bruno@clisp.org>
462
463         Avoid relocwrapper link errors due to gnulib replacement functions.
464         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
465         function.
466         Reported by Ben Pfaff <blp@cs.stanford.edu>.
467
468 2010-08-28  Bruno Haible  <bruno@clisp.org>
469
470         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
471         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
472         defined.
473         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
474         Suggested by Eric Blake.
475
476 2010-08-28  Bruno Haible  <bruno@clisp.org>
477
478         sys_socket, netdb: Ensure socklen_t gets defined.
479         * modules/sys_socket (Depends-on): Add socklen.
480         * modules/netdb (Depends-on): Likewise.
481         * modules/getaddrinfo (Depends-on): Remove socklen.
482         * modules/getsockopt (Depends-on): Likewise.
483         * modules/setsockopt (Depends-on): Likewise.
484         * tests/test-sys_socket.c: Check that socklen_t is defined.
485         * tests/test-netdb.c: Likewise.
486         * m4/socklen.m4: Update comments.
487         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
488
489 2010-08-27  Eric Blake  <eblake@redhat.com>
490
491         login_tty: add missing dependency
492         * modules/login_tty (Depends-on): Add pty.
493
494 2010-08-26  Eric Blake  <eblake@redhat.com>
495
496         lib-symbol-versions: fix m4 quoting
497         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
498         format for AC_LINK_IFELSE.
499
500         glob: fix compile test
501         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
502
503         btowc: fix missing file
504         * modules/btowc (Files): Also ship locale-fr.m4.
505
506         lseek: fix link test
507         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
508         AC_LINK_IFELSE.
509
510         include_next: silence autoconf 2.68 warning
511         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
512         AC_COMPILE_IFELSE as special.
513         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
514         autoconf < 2.68.
515
516         acl: fix compilation test
517         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
518         AC_COMPILE_IFELSE.
519
520 2010-08-26  Bruno Haible  <bruno@clisp.org>
521
522         Modernize AC_TRY_RUN invocations.
523         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
524         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
525         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
526         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
527         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
528         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
531         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
532         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
533         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
534         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
535         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
536         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
537         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
538         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
539         gl_MBRLEN_NUL_RETVAL): Likewise.
540         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
541         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
542         Likewise.
543         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
544         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
545         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
546         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
547         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
548         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
549         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
550         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
551         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
552         Likewise.
553         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
554         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
555         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
556         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
557         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
558         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
559         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
560         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
561         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
563
564 2010-08-26  Bruno Haible  <bruno@clisp.org>
565
566         Modernize AC_TRY_LINK invocations.
567         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
568         AC_TRY_LINK.
569         * m4/argp.m4 (gl_ARGP): Likewise.
570         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
571         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
572         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
573         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
574         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
575         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
576         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
577         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
578         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
579         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
580         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
581         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
582         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
583         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
584         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
585         * m4/hostent.m4 (gl_HOSTENT): Likewise.
586         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
587         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
588         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
589         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
590         Likewise.
591         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
592         Likewise.
593         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
594         Likewise.
595         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
597         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
598         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
599         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
600         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
601         * m4/servent.m4 (gl_SERVENT): Likewise.
602         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
603         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
604         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
605         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
606         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
607         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
608         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
609         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
610         * modules/tsearch-tests (configure.ac): Likewise.
611
612 2010-08-26  Bruno Haible  <bruno@clisp.org>
613
614         Modernize AC_TRY_COMPILE invocations.
615         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
616         AC_TRY_COMPILE.
617         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
618         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
619         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
620         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
621         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
622         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
623         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
624         * m4/lock.m4 (gl_LOCK): Likewise.
625         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
626         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
627         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
628         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
629         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
630         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
631         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
632         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
633         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
634         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
635         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
636         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
637         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
638         extraneous semicolon.
639
640 2010-08-26  Jim Meyering  <meyering@redhat.com>
641
642         stat-time: relax license LGPL
643         * modules/stat-time (License): Change from GPL to LGPL,
644         with consent from all contributors, for use in libguile.
645         Requested by Ludovic Courtès.
646
647 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
648
649         poll: return immediately on POLLHUP.
650         * lib/poll.c (poll): Always set timeout before wait_timeout is
651         computed.
652
653 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
654
655         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
656         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
657         rmdir ("dir/.//"), unlinkat.
658
659 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
660
661         stdbool: avoid spurious failure with modern xlc
662         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
663
664 2010-08-24  Bruno Haible  <bruno@clisp.org>
665
666         getloadavg: simplify code
667         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
668         gl_have_func. Update comments.
669
670 2010-08-24  Eric Blake  <eblake@redhat.com>
671
672         getloadavg: don't define SVR4 on cygwin
673         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
674         only define SVR4 when -lkvm is required.
675         Reported by Yaakov Selkowitz.
676
677 2010-08-24  Bruno Haible  <bruno@clisp.org>
678
679         priv-set: fix comment
680         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
681
682 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
683
684         priv-set: fix comments
685         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
686         to match code, as suggested by David Bartley in:
687         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
688
689 2010-08-23  Eric Blake  <eblake@redhat.com>
690
691         stdbool: avoid rejecting clang
692         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
693         * tests/test-stdbool.c: Enable more tests if using the system
694         <stdbool.h> instead of the gnulib replacement.
695         (main): Move xlc bug test to a runtime test for all compilers.
696         Reported by Anders Kaseorg.
697
698         argz: fix shell quoting issue
699         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
700         Reported by Charles Wilson.
701
702 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
703             Erik Faye-Lund <kusmabite@gmail.com>
704
705         poll, select: handle ERROR_BROKEN_PIPE.
706         * lib/poll.c (win32_compute_revents): Return POLLHUP when
707         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
708         * lib/select.c (win32_compute_revents): Do not mark a pipe
709         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
710
711 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
712
713         fts: allow compilation with C++
714         * lib/fts_.h: Specify extern "C" linkage with C++.
715
716 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
717
718         Fix gnulib-tool sed script de-commentation for AIX sed.
719         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
720         sed.
721
722 2010-08-17  Eric Blake  <eblake@redhat.com>
723
724         test-stddef: test for (some) offsetof bugs
725         * tests/test-stddef.c: Enhance test to ensure correct type of
726         offsetof.
727         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
728         that we are not fixing at this time.
729
730 2010-08-15  Bruno Haible  <bruno@clisp.org>
731
732         stpncpy: Allow stpncpy to be defined as a macro.
733         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
734         if it's already correctly declared.
735         * lib/string.in.h (stpncpy): Undefine before redefining.
736         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
737
738 2010-08-14  Bruno Haible  <bruno@clisp.org>
739
740         Rename module 'memxfrm' to 'amemxfrm'.
741         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
742         (amemxfrm): Renamed from memxfrm.
743         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
744         (amemxfrm): Renamed from memxfrm.
745         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
746         * NEWS: Mention the change.
747         * MODULES.html.sh (String handling <string.h>): Update.
748         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
749         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
750         * lib/unicase/u16-casexfrm.c: Likewise.
751         * lib/unicase/u32-casexfrm.c: Likewise.
752         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
753         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
754         * lib/uninorm/u16-normxfrm.c: Likewise.
755         * lib/uninorm/u32-normxfrm.c: Likewise.
756         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
757         memxfrm.
758         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
759         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
760         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
761         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
762         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
763         Suggested by Paul Eggert.
764
765 2010-08-14  Bruno Haible  <bruno@clisp.org>
766
767         Tests for module 'astrxfrm'.
768         * modules/astrxfrm-tests: New file.
769         * tests/test-astrxfrm.c: New file.
770
771         New module 'astrxfrm'.
772         * lib/astrxfrm.h: New file.
773         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
774         * modules/astrxfrm: New file.
775
776 2010-08-14  Reuben Thomas <rrt@sc3d.org>
777
778         regex: Tweak doc.
779         * doc/regex.texi (Overview): Don't mention regex.c.
780         (GNU Regular Expression Compiling): Likewise.
781         (Match-end-of-line Operator): Mention 'not_eol'.
782
783 2010-08-14  Brian Gough  <bjg@gnu.org>
784             Bruno Haible  <bruno@clisp.org>
785
786         git-merge-changelog: add doc relating to use with bzr and hg.
787         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
788
789 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
790
791         pthread: fix pthread.h creation for srcdir != builddir
792         * modules/pthread (Makefile.am): Fix the rule to work also in a
793         non-srcdir build.
794
795 2010-08-13  Karl Berry  <karl@gnu.org>
796
797         * doc/regex.texi (Predefined Syntaxes): @smallexample.
798         * doc/posix-*/*: force line break before @url of POSIX
799         specifications.
800         Suggested by Werner Lemberg.
801
802 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
803
804         strtod: fix const diagnostic
805         * lib/strtod.c (strtod): Don't assign const char * to char *,
806         as this elicits a warning from GCC when warnings are enabled.
807
808 2010-08-10  Pádraig Brady <P@draigbrady.com>
809         and Eric Blake  <eblake@redhat.com>
810
811         copy-acl: ignore ENOTSUP on HP-UX
812         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
813         so that it is available for HP-UX.
814         * lib/copy-acl.c (qcopy_acl): Use it.
815         Reported by Patrick M. Callahan.
816
817 2010-08-10  Eric Blake  <eblake@redhat.com>
818
819         open, chown: relax license
820         * modules/open (License): Change to LGPLv2+, with consent by all
821         authors, for use in augeas.
822         * modules/chown (License): Likewise.
823         * modules/lchown (Likewise): Likewise.
824         Requested by Adam Stokes.
825
826 2010-08-09  Karl Berry  <karl@gnu.org>
827
828         * build-aux/ar-lib: new file, import from Automake.
829         * config/srclist.txt: autocheck for updates.
830
831 2010-08-09  Eric Blake  <eblake@redhat.com>
832
833         readlinkat: adjust client modules
834         * modules/areadlinkat (Depends-on): Use readlinkat, not
835         symlinkat.
836         * modules/areadlinkat-with-size (Depends-on): Likewise.
837
838         mknod: be more vocal about danger of running tests as root
839         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
840         root, since that is just asking for problems.
841         Suggested by Bruno Haible, based on a report by Rainer Tammer.
842
843         readlinkat: split into its own module
844         * modules/symlinkat: Split readlinkat...
845         * modules/readlinkat: ...into separate module.
846         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
847         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
848         * lib/symlinkat.c (readlinkat): Move...
849         * lib/readlinkat.c: ...into new file.
850         * modules/symlinkat-tests: Split readlinkat test...
851         * modules/readlinkat-tests: ...into separate module.
852         * tests/test-symlinkat.c: Split...
853         * tests/test-readlinkat.c: ...into new file.
854         * NEWS: Document the split.
855         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
856         * lib/unistd.in.h (readlinkat): Likewise.
857         Suggested by Bruno Haible.
858
859 2010-08-08  Bruno Haible  <bruno@clisp.org>
860
861         memxfrm: Speed up.
862         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
863         that usually only one call to strxfrm is necessary for each string
864         part.
865         Reported by Paul Eggert <eggert@cs.ucla.edu>.
866
867 2010-08-07  Karl Berry  <karl@gnu.org>
868
869         * doc/posix-headers/limits.texi,
870         * doc/posix-functions/malloc.texi,
871         * doc/posix-functions/strsignal.texi: missing @item.
872         * doc/ld-version-script.texi: spurious leading i.
873         * doc/regex.texi (Interval Operators): no commas inside @var.
874
875 2010-08-01  Bruno Haible  <bruno@clisp.org>
876
877         Integrate the regex documentation.
878         * doc/gnulib.texi: Define 'cn' index.
879         (Regular expressions): New a chapter that includes regex.texi and
880         regexprops-generic.texi.
881         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
882         syntax.
883
884         Whitespace cleanup.
885         * doc/regex.texi: Remove trailing spaces.
886
887         Add regex documentation.
888         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
889         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
890         Written by Kathy A. Hargreaves and Karl Berry.
891
892 2010-08-01  Bruno Haible  <bruno@clisp.org>
893
894         link: Update documentation.
895         * doc/posix-functions/link.texi: Update regarding Solaris.
896
897 2010-07-31  Bruno Haible  <bruno@clisp.org>
898
899         Update modules list.
900         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
901         (String handling <string.h>): Add memcmp2, memxfrm.
902         (Container data structures): Add xlist, xsublist, xoset.
903         (Core language properties): Add alignof, unused-parameter.
904         (Process control, Numeric conversion functions <stdlib.h>): Renamed
905         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
906         (Unibyte characters <ctype.h>): New section.
907         (String handling <string.h>): New section.
908         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
909         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
910         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
911         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
912         tan, tanh, tanl, y0, y1, yn.
913         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
914         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
915         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
916         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
917         unlockpt, vdprintf, vdprintf-posix.
918         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
919         (File system functions): Add concat-filename, sys_file, sys_ioctl,
920         xconcat-filename.
921         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
922         getdtablesize, pipe2, pipe2-safer.
923         (Security): New section.
924         (Networking functions): Add accept4.
925         (Signal handling): Add sigpipe.
926         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
927         mbmemcasecoll.
928         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
929         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
930         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
931         pipe-filter-ii.
932         (Misc): Add argp-version-etc, login_tty, parse-duration.
933
934 2010-07-31  Bruno Haible  <bruno@clisp.org>
935
936         Improve doc in MODULES.html.
937         * modules/linkat (Description): Add the word "function".
938         * modules/mkfifo (Description): Likewise.
939         * modules/mknod (Description): Likewise.
940         * modules/remove (Description): Likewise.
941         * modules/renameat (Description): Likewise.
942         * modules/stat (Description): Likewise.
943         * modules/symlink (Description): Likewise.
944         * modules/unlink (Description): Likewise.
945
946 2010-07-31  Bruno Haible  <bruno@clisp.org>
947
948         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
949         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
950         option --enable/disable-c++ instead of --enable/disable-cxx.
951         * NEWS: Mention the change.
952
953 2010-07-31  Bruno Haible  <bruno@clisp.org>
954
955         readlink, areadlink: Relax test a bit.
956         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
957         alternative to ENOTDIR.
958         * tests/test-areadlink.h (test_areadlink): Likewise.
959         Reported by Rainer Tammer.
960
961 2010-07-31  Bruno Haible  <bruno@clisp.org>
962
963         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
964         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
965         character, perform the search using U_STRCHR.
966         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
967         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
968         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
969         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
970         Suggested by Paolo Bonzini.
971
972 2010-07-31  Bruno Haible  <bruno@clisp.org>
973
974         unistr/u*-strstr: Fix dependencies.
975         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
976         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
977         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
978
979 2010-07-31  Bruno Haible  <bruno@clisp.org>
980
981         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
982         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
983         the beginning of the loop.
984         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
985         cases in 'switch' statement.
986
987         unistr/u8-strchr: Fix several bugs.
988         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
989         the string. When not found, return NULL, not a pointer near the end.
990
991         More tests for unistr/u8-strchr.
992         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
993         that the function does not read past the first occurrence of the byte
994         being searched.
995         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
996         * tests/unistr/test-u16-strchr.c (main): New function.
997         * tests/unistr/test-u32-strchr.c (main): New function.
998
999 2010-07-31  Bruno Haible  <bruno@clisp.org>
1000
1001         posix-modules: Ignore backup files of documentation files.
1002         * posix-modules: grep only through files named *.texi.
1003
1004 2010-07-31  Bruno Haible  <bruno@clisp.org>
1005
1006         symlinkat: Fix documentation.
1007         * doc/posix-functions/readlinkat.texi: Fix module name.
1008
1009 2010-07-31  Bruno Haible  <bruno@clisp.org>
1010
1011         fchownat: Replace also when chown has the trailing slash bug.
1012         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1013         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1014         introduced on 2010-04-10.
1015         Reported by Rainer Tammer.
1016
1017 2010-07-31  Bruno Haible  <bruno@clisp.org>
1018
1019         linkat: Work around AIX 7.1 bug.
1020         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1021         whether linkat handles trailing slash correctly. If not, replace linkat
1022         and define LINKAT_TRAILING_SLASH_BUG.
1023         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1024         check whether (fd1,file1) points to a directory if file1 or file2 ends
1025         in a slash. Code taken from lib/link.c.
1026         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1027         Reported by Rainer Tammer.
1028
1029 2010-07-31  Bruno Haible  <bruno@clisp.org>
1030
1031         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1032         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1033         This disables an xlc optimization that was causing wrong test results.
1034         Reported by Rainer Tammer.
1035
1036 2010-07-31  Bruno Haible  <bruno@clisp.org>
1037
1038         iconv: Work around AIX 6.1..7.1 bug.
1039         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1040         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1041         cross-compiling, guess no on all versions of AIX.
1042         Reported by Rainer Tammer.
1043
1044 2010-07-31  Bruno Haible  <bruno@clisp.org>
1045
1046         readlink: Relax test a bit.
1047         * tests/test-readlink.h (test_readlink): Allow different errno value
1048         when readlink is called with a file name that ends in / and refers to
1049         a file.
1050         Suggested by Eric Blake.
1051         Reported by Rainer Tammer.
1052
1053 2010-07-31  Bruno Haible  <bruno@clisp.org>
1054
1055         copysign: Does not require -lm on glibc systems.
1056         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1057         gl_COMMON_DOUBLE_MATHFUNC.
1058         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1059
1060 2010-07-31  Bruno Haible  <bruno@clisp.org>
1061
1062         duplocale: Work around AIX 7.1 bug.
1063         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1064         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1065         * lib/duplocale.c (rpl_duplocale): Update comment.
1066         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1067         Reported by Rainer Tammer.
1068
1069 2010-07-30  Bruno Haible  <bruno@clisp.org>
1070
1071         dirfd: Avoid link error on AIX 7.1.
1072         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1073         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1074         exist, set REPLACE_DIRFD.
1075         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1076         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1077         * doc/posix-functions/dirfd.texi: Update.
1078         Reported by Rainer Tammer.
1079
1080 2010-07-30  Eric Blake  <eblake@redhat.com>
1081
1082         strtod: next round of AIX fixes
1083         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1084         exponent.
1085         * tests/test-strtod.c (main): Enhance tests.
1086         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1087         Reported by Rainer Tammer.
1088
1089         futimens: fix configure check
1090         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1091         Reported by Bruno Haible.
1092
1093 2010-07-30  Bruno Haible  <bruno@clisp.org>
1094
1095         getline: Update regarding AIX.
1096         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1097         Reported by Rainer Tammer.
1098
1099 2010-07-30  Bruno Haible  <bruno@clisp.org>
1100
1101         wcwidth: Drop replacement on AIX 7.
1102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1103         AIX 7.
1104         Reported by Rainer Tammer.
1105
1106 2010-07-30  Bruno Haible  <bruno@clisp.org>
1107
1108         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1109         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1110         a 'char *'.
1111         Reported by Rainer Tammer.
1112
1113 2010-07-30  Bruno Haible  <bruno@clisp.org>
1114
1115         unlink: Update regarding AIX.
1116         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1117         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1118         Reported by Rainer Tammer.
1119
1120 2010-07-30  Bruno Haible  <bruno@clisp.org>
1121
1122         symlink: Update regarding AIX.
1123         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1124         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1125         Reported by Rainer Tammer.
1126
1127 2010-07-30  Bruno Haible  <bruno@clisp.org>
1128
1129         strndup: Update regarding AIX.
1130         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1131         AIX 7.
1132         Reported by Rainer Tammer.
1133
1134 2010-07-30  Bruno Haible  <bruno@clisp.org>
1135
1136         stat: Update regarding AIX.
1137         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1138         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1139         Reported by Rainer Tammer.
1140
1141 2010-07-30  Bruno Haible  <bruno@clisp.org>
1142
1143         truncl: Fix autoconf test.
1144         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1145         whether truncl works.
1146         Reported by Rainer Tammer.
1147
1148 2010-07-30  Bruno Haible  <bruno@clisp.org>
1149
1150         round: Update regarding AIX.
1151         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1152         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1153         Reported by Rainer Tammer.
1154
1155 2010-07-30  Bruno Haible  <bruno@clisp.org>
1156
1157         rename: Update regarding AIX.
1158         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1159         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1160         Reported by Rainer Tammer.
1161
1162 2010-07-30  Bruno Haible  <bruno@clisp.org>
1163
1164         printf.m4: Update regarding AIX.
1165         * m4/printf.m4: Update comments regarding AIX.
1166         Reported by Rainer Tammer.
1167
1168 2010-07-30  Bruno Haible  <bruno@clisp.org>
1169
1170         iconv: Update regarding AIX.
1171         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1172         AIX 7.
1173         Reported by Rainer Tammer.
1174
1175 2010-07-30  Bruno Haible  <bruno@clisp.org>
1176
1177         getopt: Update regarding AIX.
1178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1179         no on AIX.
1180         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1181         Reported by Rainer Tammer.
1182
1183 2010-07-30  Bruno Haible  <bruno@clisp.org>
1184
1185         ldexpl; Update regarding AIX.
1186         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1187         on AIX 7.
1188         Reported by Rainer Tammer.
1189
1190 2010-07-30  Bruno Haible  <bruno@clisp.org>
1191
1192         frexpl: Update regarding AIX.
1193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1194         on AIX 7.
1195         Reported by Rainer Tammer.
1196
1197 2010-07-30  Bruno Haible  <bruno@clisp.org>
1198
1199         open, fopen: Update regarding AIX.
1200         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1201         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1202         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1203         * doc/posix-functions/fopen.texi: Likewise.
1204         Reported by Rainer Tammer.
1205
1206 2010-07-30  Bruno Haible  <bruno@clisp.org>
1207
1208         chown: Update doc regarding AIX.
1209         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1210         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1211         Reported by Rainer Tammer.
1212
1213 2010-07-30  Eric Blake  <eblake@redhat.com>
1214
1215         strtod: fix bug in replacement function on AIX
1216         * lib/strtod.c (strtod): Special case broken "0x" parse in
1217         underlying strtod.
1218         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1219         * doc/posix-functions/strtod.texi (strtod): Likewise.
1220         Reported by Rainer Tammer.
1221
1222 2010-07-30  Bruno Haible  <bruno@clisp.org>
1223
1224         mbrlen: Fix cross-compilation guess for AIX.
1225         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1226         guess. Leftover from 2008-12-22.
1227
1228 2010-07-30  Bruno Haible  <bruno@clisp.org>
1229
1230         mbrtowc: Fix cross-compilation guess for AIX.
1231         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1232         guess. Leftover from 2008-12-21.
1233
1234 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1235
1236         init.sh: work around trap limitation of some shells
1237         * tests/init.sh (setup_): Move exit trap outside of shell function.
1238
1239 2010-07-29  Eric Blake  <eblake@redhat.com>
1240
1241         strtod: aid debugging
1242         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1243         understanding why strtod is rejected.
1244
1245 2010-07-28  Bruno Haible  <bruno@clisp.org>
1246
1247         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1248         * lib/unistr/u8-chr.c: Include <string.h>.
1249         * tests/unistr/test-u8-chr.c: Likewise.
1250         * tests/unistr/test-u16-chr.c: Likewise.
1251         * tests/unistr/test-u32-chr.c: Likewise.
1252         * tests/unistr/test-u8-strchr.c: Likewise.
1253         * tests/unistr/test-u16-strchr.c: Likewise.
1254         * tests/unistr/test-u32-strchr.c: Likewise.
1255         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1256         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1257         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1258         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1259
1260 2010-07-28  Bruno Haible  <bruno@clisp.org>
1261
1262         Use spaces for indentation, not tabs.
1263         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1264
1265 2010-07-27  Bruno Haible  <bruno@clisp.org>
1266
1267         mbspcasecmp: Fix function specification.
1268         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1269         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1270         Reported by Eric Blake <eblake@redhat.com>.
1271
1272 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1273
1274         timespec: use cast and not conditional, as truncation isn't possible
1275         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1276         instead of a conditional.  Comment about the situation in more detail.
1277         This undoes most of the 2009-10-29 patch.
1278
1279 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1280
1281         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1282         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1283         * lib/unistr/u8-strchr.c: Likewise.
1284         * modules/unistr/u8-chr: Depend on memchr.
1285
1286         unistr/u*-strchr: add tests
1287         * modules/unistr/u8-strchr-tests: New file.
1288         * modules/unistr/u16-strchr-tests: New file.
1289         * modules/unistr/u32-strchr-tests: New file.
1290         * tests/unistr/test-strchr.h: New file.
1291         * tests/unistr/test-u8-strchr.c: New file.
1292         * tests/unistr/test-u16-strchr.c: New file.
1293         * tests/unistr/test-u32-strchr.c: New file.
1294
1295         unistr/u*-chr: test multibyte sequences more
1296         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1297         test vector.
1298         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1299         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1300         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1301
1302         unistr/u*-chr: test multibyte sequences
1303         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1304
1305         unistr/u*-chr: prepare for multibyte tests
1306         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1307         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1308         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1309         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1310         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1311         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1312
1313 2010-07-18  Bruno Haible  <bruno@clisp.org>
1314
1315         unistr/u8-strchr: Optimize non-ASCII argument case.
1316         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1317         because the first byte often matches anyway.
1318         Reported by Pádraig Brady <P@draigbrady.com>.
1319
1320 2010-07-15  Karl Berry  <karl@gnu.org>
1321
1322         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1323
1324 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1325
1326         getcwd: on Solaris, work better if ancestors are inaccessible
1327         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1328         buffer and size, try again with a large buffer.  This works better
1329         on Solaris, since its getcwd succeeds even if the path to the root
1330         is inaccessible, and this is helpful in common cases such as .zfs
1331         hidden directories.  Problem reported by J Chapman Flack in
1332         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1333         Use system getcwd if it's declared, not merely if it's partly
1334         working; use the partly-working test only to avoid needless effort
1335         if the system getcwd fails.
1336         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1337         comment that was already obsolete and is now even more obsolete.
1338         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1339         now might call strdup.
1340
1341 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1342
1343         pthread: Add enough so that coreutils/src/sort.c compiles.
1344         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1345         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1346         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1347         Include <sys/types.h>, in case it defines pthread_t.
1348         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1349         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1350         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1351         (pthread_rwlockattr_t, pthread_spinlock_t):
1352         New typedefs, if HAVE_PTHREAD_T is not defined.
1353         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1354         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1355         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1356         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1357         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1358         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1359         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1360         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1361         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1362         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1363         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1364         New macros.
1365         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1366         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1367         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1368         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1369         (pthread_spin_unlock): New dummy functions.
1370         (pthread_create): Return EAGAIN; don't set errno.
1371         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1372         require AC_C_INLINE.
1373         * modules/pthread (Depends-on): Add sched, time.
1374         (pthread.h): Use AM_V_GEN.
1375
1376 2010-07-13  Bruno Haible  <bruno@clisp.org>
1377
1378         striconveh: Don't malloc memory if the result buffer is sufficient.
1379         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1380         buffer if its size is sufficient.
1381         Reported by Ludovic Courtès <ludo@gnu.org>.
1382
1383 2010-07-13  Bruno Haible  <bruno@clisp.org>
1384
1385         strtod: Add safety check.
1386         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1387
1388 2010-07-12  Bruno Haible  <bruno@clisp.org>
1389
1390         Unify tests that set gl_cv_func_ldexpl_no_libm.
1391         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1392         gl_FUNC_LDEXPL.
1393         (gl_FUNC_LDEXPL): Invoke it.
1394         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1395
1396 2010-07-12  Bruno Haible  <bruno@clisp.org>
1397
1398         Unify tests that set gl_cv_func_ldexp_no_libm.
1399         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1400         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1401         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1402         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1403         * modules/strtod (Files): Add m4/ldexp.m4.
1404
1405 2010-07-12  Bruno Haible  <bruno@clisp.org>
1406
1407         Unify tests that set gl_cv_func_frexpl_no_libm.
1408         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1409         gl_FUNC_FREXPL_NO_LIBM.
1410         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1411         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1412
1413 2010-07-12  Bruno Haible  <bruno@clisp.org>
1414
1415         Unify tests that set gl_cv_func_frexp_no_libm.
1416         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1417         gl_FUNC_FREXP_NO_LIBM.
1418         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1419         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1420
1421 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1422
1423         memcoll: clarify sizes versus lengths, document better, and tweak perf
1424         * lib/memcoll.c (strcoll_loop, memcoll0):
1425         Improve quality of descriptive comments.  Name variables
1426         consistently as to whether they are lengths (which do not include
1427         terminating null) versus sizes (which do).
1428         * lib/xmemcoll.c (xmemcoll0): Likewise.
1429         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1430         returned when s1size == 0; this is easier to compile and saves
1431         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1432
1433 2010-07-12  Bruno Haible  <bruno@clisp.org>
1434
1435         Tests for module '_Exit'.
1436         * modules/_Exit-tests: New file.
1437         * tests/test-_Exit.sh: New file.
1438         * tests/test-_Exit.c: New file.
1439
1440         New module '_Exit'.
1441         * lib/stdlib.in.h (__attribute__): New macro.
1442         (_Exit): New declaration.
1443         * lib/_Exit.c: New file.
1444         * m4/_Exit.m4: New file.
1445         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1446         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1447         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1448         * modules/_Exit: New file.
1449         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1450         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1451
1452 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1453
1454         strtod: make it more-accurate typically, and don't require libm
1455         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1456         Include limits.h.  Don't include string.h.
1457         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1458         (locale_isspace): New function, so that no casts are needed to
1459         check whether *s is a space.
1460         (ldexp): Provide an unused dummy if not available.
1461         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1462         (strtod): Use them.  This implementation prefers to use the
1463         underlying strtod if available, falling back on our own code
1464         only to fix known bugs.  This is more likely to produce an
1465         accurate result.  Also, it avoids the use of libm functions.
1466         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1467         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1468         was absent, but it caused a test failure with coreutils.
1469         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1470         with libm.
1471         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1472         * modules/strtod-tests (Makefile.am): Likewise.
1473
1474 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1475             Bruno Haible  <bruno@clisp.org>
1476
1477         unistr/u8-strchr: Optimize ASCII argument case.
1478         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1479
1480 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1481
1482         (x)memcoll: minor tweaks
1483         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1484         is after the type that it qualifies.
1485         (memcoll0): Likewise.
1486         * lib/memcoll.h (memcoll0): Likewise.
1487         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1488         * lib/xmemcoll.h (xmemcoll0): Likewise.
1489         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1490         differs from memcoll in that the NUL byte is part of the argument.
1491         Omit the abort-checks, as performance is a real issue here.  Plus,
1492         the checks were wrong anyway (an off-by-one error).  Omit local
1493         variable 'diff', as it's a bit clearer that way.
1494         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1495         no longer needed.
1496
1497 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1498
1499         (x)memcoll: speedup when input is known to be NUL delimited
1500         * lib/memcoll.c: Include stdlib.
1501         (memcoll0) New function.
1502         (strcoll_loop) New function, refactored for use in both memcoll
1503         and memcoll0.
1504         * lib/memcoll.h: Add prototype for memcoll0.
1505         * lib/xmemcoll.c: (xmemcoll0) New function.
1506         (collate_error) New function, refactored for use in both xmemcoll
1507         and xmemcoll0.
1508         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1509         * m4/memcoll.m4: add inline invocation.
1510
1511 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1512
1513         * build-aux/bootstrap: Remove any local translations
1514         from the translation project synchronization directory,
1515         so that local only translations are not distributed.
1516
1517 2010-07-04  Bruno Haible  <bruno@clisp.org>
1518
1519         fsusage: Clarify which code applies to which platforms.
1520         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1521         platform.
1522         * lib/fsusage.c (get_fs_usage): Likewise.
1523
1524 2010-07-04  Bruno Haible  <bruno@clisp.org>
1525
1526         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1527         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1528         Reported by Martin Lambers <marlam@marlam.de>.
1529
1530 2010-07-04  Jim Meyering  <meyering@redhat.com>
1531
1532         hash: once again explicitly disallow insertion of NULL
1533         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1534         inserting a NULL pointer cannot work with these functions.
1535         Add a comment with details.
1536         This reverts part of the 2010-07-01 commit, 5bef1a35
1537         "hash: extend module to deal with non-pointer keys".
1538
1539 2010-07-01  Bruno Haible  <bruno@clisp.org>
1540
1541         stdbool: Update doc.
1542         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1543         Info from Christian Weisgerber <naddy@mips.inka.de>.
1544
1545 2010-07-01  Jim Meyering  <meyering@redhat.com>
1546
1547         hash: extend module to deal with non-pointer keys
1548         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1549         but that allows insertion of non-pointer entries.
1550         Do not disallow an ENTRY value of NULL.
1551         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1552         * lib/hash.h (hash_insert0): Declare.
1553
1554 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1555
1556         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1557         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1558         not present (i.e. with autoconf 2.59 and when using gettextize, not
1559         gnulib), require AC_GNU_SOURCE instead.
1560
1561 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1562
1563         idpriv-drop: Fix tests.
1564         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1565         not to the test-idpriv-droptemp program.
1566
1567 2010-06-29  Bruno Haible  <bruno@clisp.org>
1568
1569         string: Fix syntax error with g++ 2.96.
1570         * lib/string.in.h (__pure__): Remove definition.
1571         (_GL_ATTRIBUTE_PURE): New macro.
1572         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1573         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1574         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1575
1576 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1577
1578         unitypes: Fix bug introduced on 2010-05-18.
1579         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1580
1581 2010-06-22  Eric Blake  <eblake@redhat.com>
1582
1583         memmem: slight optimization
1584         * lib/str-two-way.h (critical_factorization): Update comments.
1585         Reduce work during factorization phase.
1586         Reported by Carlos Bueno <carlos@bueno.org>.
1587
1588 2010-06-21  Bruno Haible  <bruno@clisp.org>
1589
1590         Fix HAVE_CALLOC_POSIX misnomer.
1591         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1592         !HAVE_CALLOC_POSIX.
1593         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1594         HAVE_CALLOC_POSIX.
1595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1596         instead of HAVE_CALLOC_POSIX.
1597         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1598         HAVE_CALLOC_POSIX.
1599
1600         Use modern idiom for calloc() replacement.
1601         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1602         AC_FUNC_CALLOC.
1603         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1604         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1605         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1606         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1607         (gl_REPLACE_CALLOC): New macro.
1608
1609 2010-06-21  Bruno Haible  <bruno@clisp.org>
1610
1611         Fix HAVE_REALLOC_POSIX misnomer.
1612         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1613         !HAVE_REALLOC_POSIX.
1614         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1615         HAVE_REALLOC_POSIX.
1616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1617         instead of HAVE_REALLOC_POSIX.
1618         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1619         HAVE_REALLOC_POSIX.
1620
1621         Use modern idiom for realloc() replacement.
1622         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1623         AC_FUNC_REALLOC.
1624         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1625         Autoconf's AC_FUNC_REALLOC.
1626         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1627         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
1628         (gl_REPLACE_REALLOC): New macro.
1629         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1630
1631 2010-06-21  Bruno Haible  <bruno@clisp.org>
1632
1633         Fix HAVE_MALLOC_POSIX misnomer.
1634         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
1635         !HAVE_MALLOC_POSIX.
1636         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
1637         HAVE_MALLOC_POSIX.
1638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
1639         instead of HAVE_MALLOC_POSIX.
1640         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
1641         HAVE_MALLOC_POSIX.
1642
1643         Use modern idiom for malloc() replacement.
1644         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
1645         AC_FUNC_MALLOC.
1646         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
1647         Autoconf's AC_FUNC_MALLOC.
1648         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1649         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
1650         (gl_REPLACE_MALLOC): New macro.
1651         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1652
1653 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
1654
1655         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
1656         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
1657         This macro takes 3 arguments, not 4.
1658
1659 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
1660
1661         ipv6: fix detection under mingw
1662         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
1663         in6_addr.
1664
1665 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
1666
1667         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
1668         that strtod() works when cross-compiling to a glibc version known
1669         to work.
1670
1671 2010-06-15  Bruno Haible  <bruno@clisp.org>
1672
1673         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
1674
1675 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
1676
1677         select: Correct timeout.
1678         * lib/select.c (rpl_select): Compute wait_timeout correctly.
1679
1680 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1681
1682         git-version-gen: init shell var to avoid env var influence
1683         * build-aux/git-version-gen (v): Init shell var to empty.
1684
1685 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
1686
1687         priv-set: Don't assume that priv.h exists merely because getppriv does.
1688         See Jan Andersen's bug report about AIX 5L in
1689         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
1690         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
1691         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
1692         * lib/priv-set.h: Likewise.
1693         * tests/test-priv-set.c: Likewise.
1694
1695 2010-06-13  Bruno Haible  <bruno@clisp.org>
1696
1697         relocatable: Make it easier to test whether to install wrappers.
1698         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
1699         RELOCATABLE_VIA_WRAPPER.
1700
1701 2010-06-13  Bruno Haible  <bruno@clisp.org>
1702
1703         gnulib-tool: Display specified modules and dependencies differently.
1704         * gnulib-tool (func_show_module_list): New function.
1705         (func_import, func_create_testdir): Invoke it.
1706         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1707
1708 2010-06-13  Bruno Haible  <bruno@clisp.org>
1709
1710         gnulib-tool: Align code of func_import and func_create_testdir.
1711         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
1712         specified_modules.
1713
1714 2010-06-12  Jim Meyering  <meyering@redhat.com>
1715
1716         test-inttostr: avoid spurious failure on Solaris 9
1717         * tests/test-inttostr.c (main): Skip the test when snprintf fails
1718         to accept "%ju".  Reported by Bruno Haible.
1719
1720 2010-06-11  Jim Meyering  <meyering@redhat.com>
1721
1722         test-sys_socket: mark variables as used more readably
1723         * tests/test-sys_socket.c (main): Mark otherwise unused variables
1724         as "used" explicitly via (void) statement casts.  This is more
1725         readable than using them in an artificial return expression.
1726         Suggestion from Bruno Haible.
1727
1728 2010-06-11  Bruno Haible  <bruno@clisp.org>
1729
1730         Avoid some more warnings from "gcc -Wwrite-strings".
1731         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
1732         to 'const char *'.
1733         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
1734         * tests/test-c-strcasestr.c (main): Likewise.
1735         * tests/test-mbscasestr1.c (main): Likewise.
1736         * tests/test-mbscasestr2.c (main): Likewise.
1737         * tests/test-memmem.c (main): Likewise.
1738         * tests/test-strstr.c (main): Likewise.
1739         * tests/test-strcasestr.c (main): Likewise.
1740
1741 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1742
1743         init.sh: change framework_failure_ to fail with status 99, not 1
1744         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
1745         automake's parallel-tests rule that this is an unexpected failure,
1746         even if the test is listed in XFAIL_TESTS.
1747
1748 2010-06-11  Jim Meyering  <meyering@redhat.com>
1749
1750         test-inttostr: avoid warnings about 4-6KB literal strings
1751         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
1752         Include "macros.h", for its definition of ASSERT.
1753         (CK): s/assert/ASSERT/
1754         * modules/inttostr-tests (Files): Add macros.h.
1755
1756         init.sh: don't use $ME_ or skip_ before they are defined
1757         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
1758         their first uses.  Also hoist their companions: warn_, fail_,
1759         framework_failure_, $stderr_fileno.  Prompted by a patch from
1760         Stefano Lattarini.
1761
1762         test-sys_socket: avoid set-but-not-used warnings from gcc
1763         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
1764         avoid warning about set-but-not-used variables.
1765
1766         test-xvasprintf: avoid 'const' discard warnings
1767         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
1768         "const" when assigning from literal strings.
1769         (test_xasprintf): Add "void" in function argument list to placate
1770         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
1771
1772         tests: avoid compilation warnings in argmatch and exclude tests...
1773         in packages that define ARGMATCH_DIE_DECL, like coreutils.
1774         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
1775         Since it always exits, declare with the "noreturn" attribute.
1776         * tests/test-argmatch.c: Likewise.
1777
1778         tests: avoid 'const' discard warnings in mbsstr tests
1779         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
1780         * tests/test-mbsstr2.c (main): Likewise.
1781
1782         test-verify: avoid warning from gcc's -Wmissing-declarations
1783         * tests/test-verify.c (function): Declare to be static.
1784
1785         test-inttostr.c: include <string.h> for use of strcmp
1786         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
1787
1788         test-linkat: avoid failed assertion on "other" architectures
1789         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
1790         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
1791         sparc: https://bugs.launchpad.net/bugs/591968
1792
1793 2010-06-11  Jim Meyering  <meyering@redhat.com>
1794
1795         printf.m4: avoid autoconf's "Expanded Before Required" warning
1796         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
1797         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
1798         autoconf warning.
1799
1800 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
1801
1802         Replacement header templates are now named with ".in", not "_".
1803         * doc/gnulib-intro.texi: Correct.
1804
1805 2010-06-10  Jim Meyering  <meyering@redhat.com>
1806
1807         inttostr-tests: depend on snprintf, not snprintf-posix
1808         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
1809         snprintf-posix, to avoid this aclocal failure:
1810           missing file gnulib-tests/vasnprintf.c
1811           configure.ac:45: error: expected source file, required through \
1812           AC_LIBSOURCES, not found
1813
1814 2010-06-10  Jim Meyering  <meyering@redhat.com>
1815
1816         inttostr: add a new function, inttostr, and tests
1817         The namesake function was not available.  The existence of the
1818         template file, inttostr.c makes its addition nontrivial.
1819         * lib/anytostr.c: Rename from inttostr.c.
1820         (anytostr): Rename from inttostr.
1821         * lib/inttostr.c: New file.
1822         * modules/inttostr (Files): Add anytostr.c.
1823         (Makefile.am): Set lib_SOURCES instead of ...
1824         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
1825         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
1826         * lib/offtostr.c: Likewise.
1827         * lib/uinttostr.c: Likewise.
1828         * lib/umaxtostr.c: Likewise.
1829         * modules/inttostr-tests: New file.
1830         * tests/test-inttostr.c: New file.  Test these functions.
1831
1832 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
1833             Bruno Haible  <bruno@clisp.org>
1834
1835         Add "Extending Gnulib" chapter to manual.
1836         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
1837         chapter.
1838         (Extending Gnulib): New chapter.
1839         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
1840         chapter.
1841
1842 2010-06-09  Bruno Haible  <bruno@clisp.org>
1843
1844         Avoid relocwrapper link errors due to gnulib replacement functions.
1845         * lib/areadlink.c: Use the system's malloc, realloc functions.
1846         (areadlink): Set errno to ENOMEM explicitly.
1847         * modules/areadlink (Depends-on): Remove malloc-posix.
1848         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1849
1850 2010-06-09  Bruno Haible  <bruno@clisp.org>
1851
1852         Avoid relocwrapper link errors due to gnulib replacement functions.
1853         * lib/canonicalize-lgpl.c: Use the system's malloc function.
1854         * lib/malloca.c: Likewise.
1855         * lib/relocatable.c: Likewise.
1856         * lib/progreloc.c: Use the system's malloc, sprintf functions.
1857         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
1858         * lib/setenv.c: Use the system's malloc, realloc functions.
1859         * lib/strerror.c: Use the system's sprintf function.
1860         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1861
1862 2010-06-04  Bruno Haible  <bruno@clisp.org>
1863
1864         Prefer documented low-level autoconf macro names.
1865         * m4/lib-link.m4: Use m4_translit instead of translit.
1866         * m4/environ.m4: Likewise.
1867         * m4/mathfunc.m4: Likewise.
1868         * m4/onceonly.m4: Likewise.
1869         * m4/stdint.m4: Likewise.
1870         Suggested by Eric Blake.
1871
1872 2010-06-04  Martin Lambers  <marlam@marlam.de>
1873             Bruno Haible  <bruno@clisp.org>
1874
1875         havelib: Allow library names with '+' characters.
1876         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1877         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
1878
1879 2010-06-09  Bruno Haible  <bruno@clisp.org>
1880
1881         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
1882         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
1883         realloc failed.
1884
1885 2010-06-08  Peter Simons  <simons@cryp.to>
1886
1887         maint.mk: make the news-check rule more configurable
1888         * top/maint.mk (news-check-lines-spec) New variable.
1889         (news-check): Use "sed -n 1,10p" in place of "head".
1890
1891 2010-06-07  Jim Meyering  <meyering@redhat.com>
1892
1893         do-release-commit-and-tag: fix typo in --help
1894         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
1895
1896         regex: avoid new dead-code warning with gcc-4.6.0
1897         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
1898         if-block containing a while-loop.  It's been unused for at least
1899         5 years.
1900
1901 2010-06-05  Bruno Haible  <bruno@clisp.org>
1902
1903         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
1904         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
1905
1906 2010-06-04  Bruno Haible  <bruno@clisp.org>
1907
1908         Update to GNU gettext 0.18.1.
1909         * modules/gettext (configure.ac): Require gettext infrastructure from
1910         version 0.18.1.
1911
1912 2010-06-03  Bruno Haible  <bruno@clisp.org>
1913
1914         Don't use AC_LIBOBJ with file names in subdirectories.
1915         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
1916         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
1917         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
1918         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
1919         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
1920         gl_LIBUNISTRING_LIBSOURCE.
1921         (Makefile.am): Augment lib_SOURCES here, conditionally.
1922         * NEWS: Drop requirement for Automake option 'subdir-objects'.
1923
1924 2010-06-03  Bruno Haible  <bruno@clisp.org>
1925
1926         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
1927         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
1928         expansion does not end with a newline.
1929         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
1930         unnecessary newline.
1931
1932 2010-06-03  Bruno Haible  <bruno@clisp.org>
1933
1934         Reduce dependencies.
1935         * tests/test-quotearg.h: New file, extracted from
1936         tests/test-quotearg.c.
1937         * tests/test-quotearg-simple.c: New file, extracted from
1938         tests/test-quotearg.c.
1939         * tests/test-quotearg.c: Don't include <ctype.h>.
1940         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
1941         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
1942         use_quote_double_quotes, use_quotearg_colon): Moved to
1943         tests/test-quotearg.h.
1944         (results_g, flag_results, custom_quotes, custom_results): Moved
1945         to tests/test-quotearg-simple.c.
1946         (main): Moved the part that does not depend on gettext to
1947         tests/test-quotearg-simple.c. Return 77 if the test cannot be
1948         performed.
1949         * modules/quotearg-simple: New file.
1950         * modules/quotearg-simple-tests: New file.
1951         * modules/quotearg (Depends-on): Add quotearg-simple.
1952         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
1953         (Files): Add tests/test-quotearg.h.
1954         Reported by Paolo Bonzini.
1955
1956 2010-06-03  Bruno Haible  <bruno@clisp.org>
1957
1958         Reduce dependencies.
1959         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
1960
1961 2010-06-03  Bruno Haible  <bruno@clisp.org>
1962
1963         time: Undefine more broken macros.
1964         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
1965         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
1966         Reported by Eric Blake.
1967
1968 2010-06-03  Bruno Haible  <bruno@clisp.org>
1969
1970         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
1971         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
1972         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
1973         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
1974         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
1975         Reported by Ludovic Courtès <ludo@gnu.org>.
1976
1977 2010-06-02  Eric Blake  <eblake@redhat.com>
1978
1979         time: work with mingw + pthreads-win32 library
1980         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
1981         if timespec is defined only in pthread.h.
1982         * modules/time (Makefile.am): Substitute it.
1983         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
1984         <pthread.h>, when needed.
1985         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
1986         from the library.
1987
1988 2010-05-31  Bruno Haible  <bruno@clisp.org>
1989
1990         Avoid expanding two macros in the wrong order.
1991         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
1992         gl_LIBUNISTRING if it is defined.
1993         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
1994         autoconf >= 2.64.
1995         Reported by Ludovic Courtès <ludo@gnu.org>.
1996
1997 2010-05-27  Jim Meyering  <meyering@redhat.com>
1998
1999         maint.mk: also prohibit "#undef" of always-defined symbols
2000         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2001         Allow more than one space before the symbol name.
2002         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2003         the regexp uses alternation.
2004
2005 2010-05-26  Eric Blake  <eblake@redhat.com>
2006
2007         maint.mk: avoid echo -e
2008         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2009         Convert all uses of echo -* to printf.
2010         Reported by Matthias Bolte.
2011
2012 2010-05-25  Bruno Haible  <bruno@clisp.org>
2013
2014         Update to GNU gettext 0.18, part 2.
2015         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2016         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2017
2018 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2019
2020         Add missing include in test-pwrite.c.
2021         * tests/test-pwrite.c: Include string.h, for strcmp.
2022
2023 2010-05-24  Bruno Haible  <bruno@clisp.org>
2024
2025         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2026
2027 2010-05-24  Bruno Haible  <bruno@clisp.org>
2028
2029         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2030         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2031         iconveh_error argument.
2032         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2033         U_STRCONV_TO_LOCALE.
2034         * lib/unistr/u16-strcoll.c: Likewise.
2035         * lib/unistr/u32-strcoll.c: Likewise.
2036         * modules/unistr/u8-strcoll (Depends-on): Add
2037         uniconv/u8-strconv-to-enc, localcharset. Remove
2038         uniconv/u8-strconv-to-locale.
2039         (configure.ac): Bump version number.
2040         * modules/unistr/u16-strcoll (Depends-on): Add
2041         uniconv/u16-strconv-to-enc, localcharset. Remove
2042         uniconv/u16-strconv-to-locale.
2043         (configure.ac): Bump version number.
2044         * modules/unistr/u32-strcoll (Depends-on): Add
2045         uniconv/u32-strconv-to-enc, localcharset. Remove
2046         uniconv/u32-strconv-to-locale.
2047         (configure.ac): Bump version number.
2048
2049 2010-05-24  Bruno Haible  <bruno@clisp.org>
2050
2051         Avoid a test failure on NetBSD 5.0.
2052         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2053         an iconv() bug.
2054
2055 2010-05-24  Bruno Haible  <bruno@clisp.org>
2056
2057         Adjust #include directive style.
2058         * modules/regex (Includes): Recommend to write <regex.h>.
2059
2060 2010-05-24  Bruno Haible  <bruno@clisp.org>
2061
2062         regex: Don't require alloca.
2063         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2064         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2065         only inside if (0).
2066
2067 2010-05-23  Jim Meyering  <meyering@redhat.com>
2068
2069         test-renameat.c: include <sys/stat.h>
2070         * tests/test-renameat.c: Include <sys/stat.h>; required for
2071         definition of S_IS* macros.
2072
2073 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2074
2075         Update maintainer documentation for 'relocatable-prog' module.
2076         * doc/relocatable-maint.texi: Update.
2077         Comments by Bruno Haible.
2078
2079 2010-05-23  Bruno Haible  <bruno@clisp.org>
2080
2081         git-merge-changelog: Enable --split-merged-entry by default.
2082         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2083         (usage): Don't mention this option any more.
2084         Reported by Ralf Wildenhues.
2085
2086 2010-05-23  Jim Meyering  <meyering@redhat.com>
2087
2088         test-pwrite: do not leave behind a test file named "out"
2089         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2090         The trivial-looking use of init.sh is really necessary.
2091         It ensures that the temporary file, "out", is created in
2092         a temporary directory, and removed upon termination.
2093         * tests/test-pwrite.sh: Re-add file.
2094         * modules/pwrite-tests: Reference it.
2095
2096 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2097
2098         Fix output redirection buglet in init.sh.
2099         * tests/init.sh: Fix redirection of stderr.
2100
2101 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2102
2103         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2104
2105 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2106
2107         * modules/valgrind-tests: New file.
2108         * m4/valgrind-tests.m4: New file.
2109         * doc/valgrind-tests.texi: New file.
2110         * doc/gnulib.texi (Running self-tests under valgrind): New
2111         section.
2112
2113 2010-05-19  Bruno Haible  <bruno@clisp.org>
2114
2115         Clean up dead code in recent commit.
2116         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2117         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2118         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2119         Suggested by Paolo Bonzini.
2120
2121 2010-05-19  Bruno Haible  <bruno@clisp.org>
2122
2123         Avoid valgrind error reports from libunistring.
2124         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2125         * modules/libunistring (Files): Add it.
2126         * modules/libunistring-optional (Files): Likewise.
2127
2128 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2129             Bruno Haible  <bruno@clisp.org>
2130
2131         New module 'libunistring-optional'.
2132         * modules/libunistring-optional: New file.
2133         * m4/libunistring-base.m4: New file.
2134         * m4/libunistring-optional.m4: New file.
2135         * lib/unicase.in.h: Renamed from lib/unicase.h.
2136         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2137         * lib/unictype.in.h: Renamed from lib/unictype.h.
2138         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2139         * lib/uniname.in.h: Renamed from lib/uniname.h.
2140         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2141         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2142         * lib/unistr.in.h: Renamed from lib/unistr.h.
2143         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2144         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2145         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2146         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2147         gl_LIBUNISTRING. If the library was found, determine the installed
2148         version and set LIBUNISTRING_VERSION.
2149         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2150         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2151         handle a configuration option --with-included-libunistring.
2152         * modules/libunistring (Files): Add m4/absolute-header.m4.
2153         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2154         Add m4/libunistring-base.m4.
2155         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2156         (Makefile.am): Build unicase.h from unicase.in.h.
2157         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2158         Add m4/libunistring-base.m4.
2159         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2160         (Makefile.am): Build uniconv.h from uniconv.in.h.
2161         * modules/unictype/base (Files): Use unictype.in.h instead of
2162         unictype.h. Add m4/libunistring-base.m4.
2163         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2164         (Makefile.am): Build unictype.h from unictype.in.h.
2165         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2166         Add m4/libunistring-base.m4.
2167         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2168         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2169         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2170         Add m4/libunistring-base.m4.
2171         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2172         (Makefile.am): Build uniname.h from uniname.in.h.
2173         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2174         Add m4/libunistring-base.m4.
2175         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2176         (Makefile.am): Build uninorm.h from uninorm.in.h.
2177         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2178         unistdio.h. Add m4/libunistring-base.m4.
2179         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2180         (Makefile.am): Build unistdio.h from unistdio.in.h.
2181         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2182         Add m4/libunistring-base.m4.
2183         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2184         (Makefile.am): Build unistr.h from unistr.in.h.
2185         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2186         Add m4/libunistring-base.m4.
2187         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2188         (Makefile.am): Build unitypes.h from unitypes.in.h.
2189         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2190         Add m4/libunistring-base.m4.
2191         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2192         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2193         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2194         uniwidth.h. Add m4/libunistring-base.m4.
2195         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2196         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2197         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2198         instead of augmenting lib_SOURCES.
2199         * modules/unicase/empty-suffix-context: Likewise.
2200         * modules/unicase/locale-language: Likewise.
2201         * modules/unicase/tolower: Likewise.
2202         * modules/unicase/totitle: Likewise.
2203         * modules/unicase/toupper: Likewise.
2204         * modules/unicase/u8-casecmp: Likewise.
2205         * modules/unicase/u8-casecoll: Likewise.
2206         * modules/unicase/u8-casefold: Likewise.
2207         * modules/unicase/u8-casexfrm: Likewise.
2208         * modules/unicase/u8-ct-casefold: Likewise.
2209         * modules/unicase/u8-ct-tolower: Likewise.
2210         * modules/unicase/u8-ct-totitle: Likewise.
2211         * modules/unicase/u8-ct-toupper: Likewise.
2212         * modules/unicase/u8-is-cased: Likewise.
2213         * modules/unicase/u8-is-casefolded: Likewise.
2214         * modules/unicase/u8-is-lowercase: Likewise.
2215         * modules/unicase/u8-is-titlecase: Likewise.
2216         * modules/unicase/u8-is-uppercase: Likewise.
2217         * modules/unicase/u8-prefix-context: Likewise.
2218         * modules/unicase/u8-suffix-context: Likewise.
2219         * modules/unicase/u8-tolower: Likewise.
2220         * modules/unicase/u8-totitle: Likewise.
2221         * modules/unicase/u8-toupper: Likewise.
2222         * modules/unicase/u16-casecmp: Likewise.
2223         * modules/unicase/u16-casecoll: Likewise.
2224         * modules/unicase/u16-casefold: Likewise.
2225         * modules/unicase/u16-casexfrm: Likewise.
2226         * modules/unicase/u16-ct-casefold: Likewise.
2227         * modules/unicase/u16-ct-tolower: Likewise.
2228         * modules/unicase/u16-ct-totitle: Likewise.
2229         * modules/unicase/u16-ct-toupper: Likewise.
2230         * modules/unicase/u16-is-cased: Likewise.
2231         * modules/unicase/u16-is-casefolded: Likewise.
2232         * modules/unicase/u16-is-lowercase: Likewise.
2233         * modules/unicase/u16-is-titlecase: Likewise.
2234         * modules/unicase/u16-is-uppercase: Likewise.
2235         * modules/unicase/u16-prefix-context: Likewise.
2236         * modules/unicase/u16-suffix-context: Likewise.
2237         * modules/unicase/u16-tolower: Likewise.
2238         * modules/unicase/u16-totitle: Likewise.
2239         * modules/unicase/u16-toupper: Likewise.
2240         * modules/unicase/u32-casecmp: Likewise.
2241         * modules/unicase/u32-casecoll: Likewise.
2242         * modules/unicase/u32-casefold: Likewise.
2243         * modules/unicase/u32-casexfrm: Likewise.
2244         * modules/unicase/u32-ct-casefold: Likewise.
2245         * modules/unicase/u32-ct-tolower: Likewise.
2246         * modules/unicase/u32-ct-totitle: Likewise.
2247         * modules/unicase/u32-ct-toupper: Likewise.
2248         * modules/unicase/u32-is-cased: Likewise.
2249         * modules/unicase/u32-is-casefolded: Likewise.
2250         * modules/unicase/u32-is-lowercase: Likewise.
2251         * modules/unicase/u32-is-titlecase: Likewise.
2252         * modules/unicase/u32-is-uppercase: Likewise.
2253         * modules/unicase/u32-prefix-context: Likewise.
2254         * modules/unicase/u32-suffix-context: Likewise.
2255         * modules/unicase/u32-tolower: Likewise.
2256         * modules/unicase/u32-totitle: Likewise.
2257         * modules/unicase/u32-toupper: Likewise.
2258         * modules/unicase/ulc-casecmp: Likewise.
2259         * modules/unicase/ulc-casecoll: Likewise.
2260         * modules/unicase/ulc-casexfrm: Likewise.
2261         * modules/uniconv/u8-conv-from-enc: Likewise.
2262         * modules/uniconv/u8-conv-to-enc: Likewise.
2263         * modules/uniconv/u8-strconv-from-enc: Likewise.
2264         * modules/uniconv/u8-strconv-from-locale: Likewise.
2265         * modules/uniconv/u8-strconv-to-enc: Likewise.
2266         * modules/uniconv/u8-strconv-to-locale: Likewise.
2267         * modules/uniconv/u16-conv-from-enc: Likewise.
2268         * modules/uniconv/u16-conv-to-enc: Likewise.
2269         * modules/uniconv/u16-strconv-from-enc: Likewise.
2270         * modules/uniconv/u16-strconv-from-locale: Likewise.
2271         * modules/uniconv/u16-strconv-to-enc: Likewise.
2272         * modules/uniconv/u16-strconv-to-locale: Likewise.
2273         * modules/uniconv/u32-conv-from-enc: Likewise.
2274         * modules/uniconv/u32-conv-to-enc: Likewise.
2275         * modules/uniconv/u32-strconv-from-enc: Likewise.
2276         * modules/uniconv/u32-strconv-from-locale: Likewise.
2277         * modules/uniconv/u32-strconv-to-enc: Likewise.
2278         * modules/uniconv/u32-strconv-to-locale: Likewise.
2279         * modules/unictype/bidicategory-byname: Likewise.
2280         * modules/unictype/bidicategory-name: Likewise.
2281         * modules/unictype/bidicategory-of: Likewise.
2282         * modules/unictype/bidicategory-test: Likewise.
2283         * modules/unictype/block-list: Likewise.
2284         * modules/unictype/block-test: Likewise.
2285         * modules/unictype/category-C: Likewise.
2286         * modules/unictype/category-Cc: Likewise.
2287         * modules/unictype/category-Cf: Likewise.
2288         * modules/unictype/category-Cn: Likewise.
2289         * modules/unictype/category-Co: Likewise.
2290         * modules/unictype/category-Cs: Likewise.
2291         * modules/unictype/category-L: Likewise.
2292         * modules/unictype/category-Ll: Likewise.
2293         * modules/unictype/category-Lm: Likewise.
2294         * modules/unictype/category-Lo: Likewise.
2295         * modules/unictype/category-Lt: Likewise.
2296         * modules/unictype/category-Lu: Likewise.
2297         * modules/unictype/category-M: Likewise.
2298         * modules/unictype/category-Mc: Likewise.
2299         * modules/unictype/category-Me: Likewise.
2300         * modules/unictype/category-Mn: Likewise.
2301         * modules/unictype/category-N: Likewise.
2302         * modules/unictype/category-Nd: Likewise.
2303         * modules/unictype/category-Nl: Likewise.
2304         * modules/unictype/category-No: Likewise.
2305         * modules/unictype/category-P: Likewise.
2306         * modules/unictype/category-Pc: Likewise.
2307         * modules/unictype/category-Pd: Likewise.
2308         * modules/unictype/category-Pe: Likewise.
2309         * modules/unictype/category-Pf: Likewise.
2310         * modules/unictype/category-Pi: Likewise.
2311         * modules/unictype/category-Po: Likewise.
2312         * modules/unictype/category-Ps: Likewise.
2313         * modules/unictype/category-S: Likewise.
2314         * modules/unictype/category-Sc: Likewise.
2315         * modules/unictype/category-Sk: Likewise.
2316         * modules/unictype/category-Sm: Likewise.
2317         * modules/unictype/category-So: Likewise.
2318         * modules/unictype/category-Z: Likewise.
2319         * modules/unictype/category-Zl: Likewise.
2320         * modules/unictype/category-Zp: Likewise.
2321         * modules/unictype/category-Zs: Likewise.
2322         * modules/unictype/category-and: Likewise.
2323         * modules/unictype/category-and-not: Likewise.
2324         * modules/unictype/category-byname: Likewise.
2325         * modules/unictype/category-name: Likewise.
2326         * modules/unictype/category-none: Likewise.
2327         * modules/unictype/category-of: Likewise.
2328         * modules/unictype/category-or: Likewise.
2329         * modules/unictype/category-test: Likewise.
2330         * modules/unictype/combining-class: Likewise.
2331         * modules/unictype/ctype-alnum: Likewise.
2332         * modules/unictype/ctype-alpha: Likewise.
2333         * modules/unictype/ctype-blank: Likewise.
2334         * modules/unictype/ctype-cntrl: Likewise.
2335         * modules/unictype/ctype-digit: Likewise.
2336         * modules/unictype/ctype-graph: Likewise.
2337         * modules/unictype/ctype-lower: Likewise.
2338         * modules/unictype/ctype-print: Likewise.
2339         * modules/unictype/ctype-punct: Likewise.
2340         * modules/unictype/ctype-space: Likewise.
2341         * modules/unictype/ctype-upper: Likewise.
2342         * modules/unictype/ctype-xdigit: Likewise.
2343         * modules/unictype/decimal-digit: Likewise.
2344         * modules/unictype/digit: Likewise.
2345         * modules/unictype/mirror: Likewise.
2346         * modules/unictype/numeric: Likewise.
2347         * modules/unictype/property-alphabetic: Likewise.
2348         * modules/unictype/property-ascii-hex-digit: Likewise.
2349         * modules/unictype/property-bidi-arabic-digit: Likewise.
2350         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2351         * modules/unictype/property-bidi-block-separator: Likewise.
2352         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2353         * modules/unictype/property-bidi-common-separator: Likewise.
2354         * modules/unictype/property-bidi-control: Likewise.
2355         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2356         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2357         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2358         * modules/unictype/property-bidi-european-digit: Likewise.
2359         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2360         * modules/unictype/property-bidi-left-to-right: Likewise.
2361         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2362         * modules/unictype/property-bidi-other-neutral: Likewise.
2363         * modules/unictype/property-bidi-pdf: Likewise.
2364         * modules/unictype/property-bidi-segment-separator: Likewise.
2365         * modules/unictype/property-bidi-whitespace: Likewise.
2366         * modules/unictype/property-byname: Likewise.
2367         * modules/unictype/property-combining: Likewise.
2368         * modules/unictype/property-composite: Likewise.
2369         * modules/unictype/property-currency-symbol: Likewise.
2370         * modules/unictype/property-dash: Likewise.
2371         * modules/unictype/property-decimal-digit: Likewise.
2372         * modules/unictype/property-default-ignorable-code-point: Likewise.
2373         * modules/unictype/property-deprecated: Likewise.
2374         * modules/unictype/property-diacritic: Likewise.
2375         * modules/unictype/property-extender: Likewise.
2376         * modules/unictype/property-format-control: Likewise.
2377         * modules/unictype/property-grapheme-base: Likewise.
2378         * modules/unictype/property-grapheme-extend: Likewise.
2379         * modules/unictype/property-grapheme-link: Likewise.
2380         * modules/unictype/property-hex-digit: Likewise.
2381         * modules/unictype/property-hyphen: Likewise.
2382         * modules/unictype/property-id-continue: Likewise.
2383         * modules/unictype/property-id-start: Likewise.
2384         * modules/unictype/property-ideographic: Likewise.
2385         * modules/unictype/property-ids-binary-operator: Likewise.
2386         * modules/unictype/property-ids-trinary-operator: Likewise.
2387         * modules/unictype/property-ignorable-control: Likewise.
2388         * modules/unictype/property-iso-control: Likewise.
2389         * modules/unictype/property-join-control: Likewise.
2390         * modules/unictype/property-left-of-pair: Likewise.
2391         * modules/unictype/property-line-separator: Likewise.
2392         * modules/unictype/property-logical-order-exception: Likewise.
2393         * modules/unictype/property-lowercase: Likewise.
2394         * modules/unictype/property-math: Likewise.
2395         * modules/unictype/property-non-break: Likewise.
2396         * modules/unictype/property-not-a-character: Likewise.
2397         * modules/unictype/property-numeric: Likewise.
2398         * modules/unictype/property-other-alphabetic: Likewise.
2399         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2400         * modules/unictype/property-other-grapheme-extend: Likewise.
2401         * modules/unictype/property-other-id-continue: Likewise.
2402         * modules/unictype/property-other-id-start: Likewise.
2403         * modules/unictype/property-other-lowercase: Likewise.
2404         * modules/unictype/property-other-math: Likewise.
2405         * modules/unictype/property-other-uppercase: Likewise.
2406         * modules/unictype/property-paired-punctuation: Likewise.
2407         * modules/unictype/property-paragraph-separator: Likewise.
2408         * modules/unictype/property-pattern-syntax: Likewise.
2409         * modules/unictype/property-pattern-white-space: Likewise.
2410         * modules/unictype/property-private-use: Likewise.
2411         * modules/unictype/property-punctuation: Likewise.
2412         * modules/unictype/property-quotation-mark: Likewise.
2413         * modules/unictype/property-radical: Likewise.
2414         * modules/unictype/property-sentence-terminal: Likewise.
2415         * modules/unictype/property-soft-dotted: Likewise.
2416         * modules/unictype/property-space: Likewise.
2417         * modules/unictype/property-terminal-punctuation: Likewise.
2418         * modules/unictype/property-test: Likewise.
2419         * modules/unictype/property-titlecase: Likewise.
2420         * modules/unictype/property-unassigned-code-value: Likewise.
2421         * modules/unictype/property-unified-ideograph: Likewise.
2422         * modules/unictype/property-uppercase: Likewise.
2423         * modules/unictype/property-variation-selector: Likewise.
2424         * modules/unictype/property-white-space: Likewise.
2425         * modules/unictype/property-xid-continue: Likewise.
2426         * modules/unictype/property-xid-start: Likewise.
2427         * modules/unictype/property-zero-width: Likewise.
2428         * modules/unictype/scripts: Likewise.
2429         * modules/unictype/syntax-c-ident: Likewise.
2430         * modules/unictype/syntax-c-whitespace: Likewise.
2431         * modules/unictype/syntax-java-ident: Likewise.
2432         * modules/unictype/syntax-java-whitespace: Likewise.
2433         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2434         * modules/unilbrk/u8-width-linebreaks: Likewise.
2435         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2436         * modules/unilbrk/u16-width-linebreaks: Likewise.
2437         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2438         * modules/unilbrk/u32-width-linebreaks: Likewise.
2439         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2440         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2441         * modules/uniname/uniname: Likewise.
2442         * modules/uninorm/canonical-decomposition: Likewise.
2443         * modules/uninorm/composition: Likewise.
2444         * modules/uninorm/decomposing-form: Likewise.
2445         * modules/uninorm/decomposition: Likewise.
2446         * modules/uninorm/filter: Likewise.
2447         * modules/uninorm/nfc: Likewise.
2448         * modules/uninorm/nfd: Likewise.
2449         * modules/uninorm/nfkc: Likewise.
2450         * modules/uninorm/nfkd: Likewise.
2451         * modules/uninorm/u8-normalize: Likewise.
2452         * modules/uninorm/u8-normcmp: Likewise.
2453         * modules/uninorm/u8-normcoll: Likewise.
2454         * modules/uninorm/u8-normxfrm: Likewise.
2455         * modules/uninorm/u16-normalize: Likewise.
2456         * modules/uninorm/u16-normcmp: Likewise.
2457         * modules/uninorm/u16-normcoll: Likewise.
2458         * modules/uninorm/u16-normxfrm: Likewise.
2459         * modules/uninorm/u32-normalize: Likewise.
2460         * modules/uninorm/u32-normcmp: Likewise.
2461         * modules/uninorm/u32-normcoll: Likewise.
2462         * modules/uninorm/u32-normxfrm: Likewise.
2463         * modules/unistdio/u8-asnprintf: Likewise.
2464         * modules/unistdio/u8-asprintf: Likewise.
2465         * modules/unistdio/u8-snprintf: Likewise.
2466         * modules/unistdio/u8-sprintf: Likewise.
2467         * modules/unistdio/u8-u8-asnprintf: Likewise.
2468         * modules/unistdio/u8-u8-asprintf: Likewise.
2469         * modules/unistdio/u8-u8-snprintf: Likewise.
2470         * modules/unistdio/u8-u8-sprintf: Likewise.
2471         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2472         * modules/unistdio/u8-u8-vasprintf: Likewise.
2473         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2474         * modules/unistdio/u8-u8-vsprintf: Likewise.
2475         * modules/unistdio/u8-vasnprintf: Likewise.
2476         * modules/unistdio/u8-vasprintf: Likewise.
2477         * modules/unistdio/u8-vsnprintf: Likewise.
2478         * modules/unistdio/u8-vsprintf: Likewise.
2479         * modules/unistdio/u16-asnprintf: Likewise.
2480         * modules/unistdio/u16-asprintf: Likewise.
2481         * modules/unistdio/u16-snprintf: Likewise.
2482         * modules/unistdio/u16-sprintf: Likewise.
2483         * modules/unistdio/u16-u16-asnprintf: Likewise.
2484         * modules/unistdio/u16-u16-asprintf: Likewise.
2485         * modules/unistdio/u16-u16-snprintf: Likewise.
2486         * modules/unistdio/u16-u16-sprintf: Likewise.
2487         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2488         * modules/unistdio/u16-u16-vasprintf: Likewise.
2489         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2490         * modules/unistdio/u16-u16-vsprintf: Likewise.
2491         * modules/unistdio/u16-vasnprintf: Likewise.
2492         * modules/unistdio/u16-vasprintf: Likewise.
2493         * modules/unistdio/u16-vsnprintf: Likewise.
2494         * modules/unistdio/u16-vsprintf: Likewise.
2495         * modules/unistdio/u32-asnprintf: Likewise.
2496         * modules/unistdio/u32-asprintf: Likewise.
2497         * modules/unistdio/u32-snprintf: Likewise.
2498         * modules/unistdio/u32-sprintf: Likewise.
2499         * modules/unistdio/u32-u32-asnprintf: Likewise.
2500         * modules/unistdio/u32-u32-asprintf: Likewise.
2501         * modules/unistdio/u32-u32-snprintf: Likewise.
2502         * modules/unistdio/u32-u32-sprintf: Likewise.
2503         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2504         * modules/unistdio/u32-u32-vasprintf: Likewise.
2505         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2506         * modules/unistdio/u32-u32-vsprintf: Likewise.
2507         * modules/unistdio/u32-vasnprintf: Likewise.
2508         * modules/unistdio/u32-vasprintf: Likewise.
2509         * modules/unistdio/u32-vsnprintf: Likewise.
2510         * modules/unistdio/u32-vsprintf: Likewise.
2511         * modules/unistdio/ulc-asnprintf: Likewise.
2512         * modules/unistdio/ulc-asprintf: Likewise.
2513         * modules/unistdio/ulc-fprintf: Likewise.
2514         * modules/unistdio/ulc-snprintf: Likewise.
2515         * modules/unistdio/ulc-sprintf: Likewise.
2516         * modules/unistdio/ulc-vasnprintf: Likewise.
2517         * modules/unistdio/ulc-vasprintf: Likewise.
2518         * modules/unistdio/ulc-vfprintf: Likewise.
2519         * modules/unistdio/ulc-vsnprintf: Likewise.
2520         * modules/unistdio/ulc-vsprintf: Likewise.
2521         * modules/unistr/u8-check: Likewise.
2522         * modules/unistr/u8-chr: Likewise.
2523         * modules/unistr/u8-cmp: Likewise.
2524         * modules/unistr/u8-cmp2: Likewise.
2525         * modules/unistr/u8-cpy: Likewise.
2526         * modules/unistr/u8-cpy-alloc: Likewise.
2527         * modules/unistr/u8-endswith: Likewise.
2528         * modules/unistr/u8-mblen: Likewise.
2529         * modules/unistr/u8-mbsnlen: Likewise.
2530         * modules/unistr/u8-mbtouc: Likewise.
2531         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2532         * modules/unistr/u8-mbtoucr: Likewise.
2533         * modules/unistr/u8-move: Likewise.
2534         * modules/unistr/u8-next: Likewise.
2535         * modules/unistr/u8-prev: Likewise.
2536         * modules/unistr/u8-set: Likewise.
2537         * modules/unistr/u8-startswith: Likewise.
2538         * modules/unistr/u8-stpcpy: Likewise.
2539         * modules/unistr/u8-stpncpy: Likewise.
2540         * modules/unistr/u8-strcat: Likewise.
2541         * modules/unistr/u8-strchr: Likewise.
2542         * modules/unistr/u8-strcmp: Likewise.
2543         * modules/unistr/u8-strcoll: Likewise.
2544         * modules/unistr/u8-strcpy: Likewise.
2545         * modules/unistr/u8-strcspn: Likewise.
2546         * modules/unistr/u8-strdup: Likewise.
2547         * modules/unistr/u8-strlen: Likewise.
2548         * modules/unistr/u8-strmblen: Likewise.
2549         * modules/unistr/u8-strmbtouc: Likewise.
2550         * modules/unistr/u8-strncat: Likewise.
2551         * modules/unistr/u8-strncmp: Likewise.
2552         * modules/unistr/u8-strncpy: Likewise.
2553         * modules/unistr/u8-strnlen: Likewise.
2554         * modules/unistr/u8-strpbrk: Likewise.
2555         * modules/unistr/u8-strrchr: Likewise.
2556         * modules/unistr/u8-strspn: Likewise.
2557         * modules/unistr/u8-strstr: Likewise.
2558         * modules/unistr/u8-strtok: Likewise.
2559         * modules/unistr/u8-to-u16: Likewise.
2560         * modules/unistr/u8-to-u32: Likewise.
2561         * modules/unistr/u8-uctomb: Likewise.
2562         * modules/unistr/u16-check: Likewise.
2563         * modules/unistr/u16-chr: Likewise.
2564         * modules/unistr/u16-cmp: Likewise.
2565         * modules/unistr/u16-cmp2: Likewise.
2566         * modules/unistr/u16-cpy: Likewise.
2567         * modules/unistr/u16-cpy-alloc: Likewise.
2568         * modules/unistr/u16-endswith: Likewise.
2569         * modules/unistr/u16-mblen: Likewise.
2570         * modules/unistr/u16-mbsnlen: Likewise.
2571         * modules/unistr/u16-mbtouc: Likewise.
2572         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2573         * modules/unistr/u16-mbtoucr: Likewise.
2574         * modules/unistr/u16-move: Likewise.
2575         * modules/unistr/u16-next: Likewise.
2576         * modules/unistr/u16-prev: Likewise.
2577         * modules/unistr/u16-set: Likewise.
2578         * modules/unistr/u16-startswith: Likewise.
2579         * modules/unistr/u16-stpcpy: Likewise.
2580         * modules/unistr/u16-stpncpy: Likewise.
2581         * modules/unistr/u16-strcat: Likewise.
2582         * modules/unistr/u16-strchr: Likewise.
2583         * modules/unistr/u16-strcmp: Likewise.
2584         * modules/unistr/u16-strcoll: Likewise.
2585         * modules/unistr/u16-strcpy: Likewise.
2586         * modules/unistr/u16-strcspn: Likewise.
2587         * modules/unistr/u16-strdup: Likewise.
2588         * modules/unistr/u16-strlen: Likewise.
2589         * modules/unistr/u16-strmblen: Likewise.
2590         * modules/unistr/u16-strmbtouc: Likewise.
2591         * modules/unistr/u16-strncat: Likewise.
2592         * modules/unistr/u16-strncmp: Likewise.
2593         * modules/unistr/u16-strncpy: Likewise.
2594         * modules/unistr/u16-strnlen: Likewise.
2595         * modules/unistr/u16-strpbrk: Likewise.
2596         * modules/unistr/u16-strrchr: Likewise.
2597         * modules/unistr/u16-strspn: Likewise.
2598         * modules/unistr/u16-strstr: Likewise.
2599         * modules/unistr/u16-strtok: Likewise.
2600         * modules/unistr/u16-to-u32: Likewise.
2601         * modules/unistr/u16-to-u8: Likewise.
2602         * modules/unistr/u16-uctomb: Likewise.
2603         * modules/unistr/u32-check: Likewise.
2604         * modules/unistr/u32-chr: Likewise.
2605         * modules/unistr/u32-cmp: Likewise.
2606         * modules/unistr/u32-cmp2: Likewise.
2607         * modules/unistr/u32-cpy: Likewise.
2608         * modules/unistr/u32-cpy-alloc: Likewise.
2609         * modules/unistr/u32-endswith: Likewise.
2610         * modules/unistr/u32-mblen: Likewise.
2611         * modules/unistr/u32-mbsnlen: Likewise.
2612         * modules/unistr/u32-mbtouc: Likewise.
2613         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2614         * modules/unistr/u32-mbtoucr: Likewise.
2615         * modules/unistr/u32-move: Likewise.
2616         * modules/unistr/u32-next: Likewise.
2617         * modules/unistr/u32-prev: Likewise.
2618         * modules/unistr/u32-set: Likewise.
2619         * modules/unistr/u32-startswith: Likewise.
2620         * modules/unistr/u32-stpcpy: Likewise.
2621         * modules/unistr/u32-stpncpy: Likewise.
2622         * modules/unistr/u32-strcat: Likewise.
2623         * modules/unistr/u32-strchr: Likewise.
2624         * modules/unistr/u32-strcmp: Likewise.
2625         * modules/unistr/u32-strcoll: Likewise.
2626         * modules/unistr/u32-strcpy: Likewise.
2627         * modules/unistr/u32-strcspn: Likewise.
2628         * modules/unistr/u32-strdup: Likewise.
2629         * modules/unistr/u32-strlen: Likewise.
2630         * modules/unistr/u32-strmblen: Likewise.
2631         * modules/unistr/u32-strmbtouc: Likewise.
2632         * modules/unistr/u32-strncat: Likewise.
2633         * modules/unistr/u32-strncmp: Likewise.
2634         * modules/unistr/u32-strncpy: Likewise.
2635         * modules/unistr/u32-strnlen: Likewise.
2636         * modules/unistr/u32-strpbrk: Likewise.
2637         * modules/unistr/u32-strrchr: Likewise.
2638         * modules/unistr/u32-strspn: Likewise.
2639         * modules/unistr/u32-strstr: Likewise.
2640         * modules/unistr/u32-strtok: Likewise.
2641         * modules/unistr/u32-to-u16: Likewise.
2642         * modules/unistr/u32-to-u8: Likewise.
2643         * modules/unistr/u32-uctomb: Likewise.
2644         * modules/uniwbrk/u8-wordbreaks: Likewise.
2645         * modules/uniwbrk/u16-wordbreaks: Likewise.
2646         * modules/uniwbrk/u32-wordbreaks: Likewise.
2647         * modules/uniwbrk/ulc-wordbreaks: Likewise.
2648         * modules/uniwbrk/wordbreak-property: Likewise.
2649         * modules/uniwidth/u8-strwidth: Likewise.
2650         * modules/uniwidth/u8-width: Likewise.
2651         * modules/uniwidth/u16-strwidth: Likewise.
2652         * modules/uniwidth/u16-width: Likewise.
2653         * modules/uniwidth/u32-strwidth: Likewise.
2654         * modules/uniwidth/u32-width: Likewise.
2655         * modules/uniwidth/width: Likewise.
2656         * modules/unicase/cased-tests (Makefile.am): Link all test programs
2657         with $(LIBUNISTRING).
2658         * modules/unicase/ignorable-tests: Likewise.
2659         * modules/unicase/locale-language-tests: Likewise.
2660         * modules/unicase/tolower-tests: Likewise.
2661         * modules/unicase/totitle-tests: Likewise.
2662         * modules/unicase/toupper-tests: Likewise.
2663         * modules/unicase/u8-casecmp-tests: Likewise.
2664         * modules/unicase/u8-casecoll-tests: Likewise.
2665         * modules/unicase/u8-casefold-tests: Likewise.
2666         * modules/unicase/u8-is-cased-tests: Likewise.
2667         * modules/unicase/u8-is-casefolded-tests: Likewise.
2668         * modules/unicase/u8-is-lowercase-tests: Likewise.
2669         * modules/unicase/u8-is-titlecase-tests: Likewise.
2670         * modules/unicase/u8-is-uppercase-tests: Likewise.
2671         * modules/unicase/u8-tolower-tests: Likewise.
2672         * modules/unicase/u8-totitle-tests: Likewise.
2673         * modules/unicase/u8-toupper-tests: Likewise.
2674         * modules/unicase/u16-casecmp-tests: Likewise.
2675         * modules/unicase/u16-casecoll-tests: Likewise.
2676         * modules/unicase/u16-casefold-tests: Likewise.
2677         * modules/unicase/u16-is-cased-tests: Likewise.
2678         * modules/unicase/u16-is-casefolded-tests: Likewise.
2679         * modules/unicase/u16-is-lowercase-tests: Likewise.
2680         * modules/unicase/u16-is-titlecase-tests: Likewise.
2681         * modules/unicase/u16-is-uppercase-tests: Likewise.
2682         * modules/unicase/u16-tolower-tests: Likewise.
2683         * modules/unicase/u16-totitle-tests: Likewise.
2684         * modules/unicase/u16-toupper-tests: Likewise.
2685         * modules/unicase/u32-casecmp-tests: Likewise.
2686         * modules/unicase/u32-casecoll-tests: Likewise.
2687         * modules/unicase/u32-casefold-tests: Likewise.
2688         * modules/unicase/u32-is-cased-tests: Likewise.
2689         * modules/unicase/u32-is-casefolded-tests: Likewise.
2690         * modules/unicase/u32-is-lowercase-tests: Likewise.
2691         * modules/unicase/u32-is-titlecase-tests: Likewise.
2692         * modules/unicase/u32-is-uppercase-tests: Likewise.
2693         * modules/unicase/u32-tolower-tests: Likewise.
2694         * modules/unicase/u32-totitle-tests: Likewise.
2695         * modules/unicase/u32-toupper-tests: Likewise.
2696         * modules/unicase/ulc-casecmp-tests: Likewise.
2697         * modules/unicase/ulc-casecoll-tests: Likewise.
2698         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
2699         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
2700         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
2701         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
2702         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
2703         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
2704         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
2705         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
2706         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
2707         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
2708         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
2709         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
2710         * modules/unictype/bidicategory-byname-tests: Likewise.
2711         * modules/unictype/bidicategory-name-tests: Likewise.
2712         * modules/unictype/bidicategory-of-tests: Likewise.
2713         * modules/unictype/bidicategory-test-tests: Likewise.
2714         * modules/unictype/block-list-tests: Likewise.
2715         * modules/unictype/block-of-tests: Likewise.
2716         * modules/unictype/block-test-tests: Likewise.
2717         * modules/unictype/category-C-tests: Likewise.
2718         * modules/unictype/category-Cc-tests: Likewise.
2719         * modules/unictype/category-Cf-tests: Likewise.
2720         * modules/unictype/category-Cn-tests: Likewise.
2721         * modules/unictype/category-Co-tests: Likewise.
2722         * modules/unictype/category-Cs-tests: Likewise.
2723         * modules/unictype/category-L-tests: Likewise.
2724         * modules/unictype/category-Ll-tests: Likewise.
2725         * modules/unictype/category-Lm-tests: Likewise.
2726         * modules/unictype/category-Lo-tests: Likewise.
2727         * modules/unictype/category-Lt-tests: Likewise.
2728         * modules/unictype/category-Lu-tests: Likewise.
2729         * modules/unictype/category-M-tests: Likewise.
2730         * modules/unictype/category-Mc-tests: Likewise.
2731         * modules/unictype/category-Me-tests: Likewise.
2732         * modules/unictype/category-Mn-tests: Likewise.
2733         * modules/unictype/category-N-tests: Likewise.
2734         * modules/unictype/category-Nd-tests: Likewise.
2735         * modules/unictype/category-Nl-tests: Likewise.
2736         * modules/unictype/category-No-tests: Likewise.
2737         * modules/unictype/category-P-tests: Likewise.
2738         * modules/unictype/category-Pc-tests: Likewise.
2739         * modules/unictype/category-Pd-tests: Likewise.
2740         * modules/unictype/category-Pe-tests: Likewise.
2741         * modules/unictype/category-Pf-tests: Likewise.
2742         * modules/unictype/category-Pi-tests: Likewise.
2743         * modules/unictype/category-Po-tests: Likewise.
2744         * modules/unictype/category-Ps-tests: Likewise.
2745         * modules/unictype/category-S-tests: Likewise.
2746         * modules/unictype/category-Sc-tests: Likewise.
2747         * modules/unictype/category-Sk-tests: Likewise.
2748         * modules/unictype/category-Sm-tests: Likewise.
2749         * modules/unictype/category-So-tests: Likewise.
2750         * modules/unictype/category-Z-tests: Likewise.
2751         * modules/unictype/category-Zl-tests: Likewise.
2752         * modules/unictype/category-Zp-tests: Likewise.
2753         * modules/unictype/category-Zs-tests: Likewise.
2754         * modules/unictype/category-and-not-tests: Likewise.
2755         * modules/unictype/category-and-tests: Likewise.
2756         * modules/unictype/category-byname-tests: Likewise.
2757         * modules/unictype/category-name-tests: Likewise.
2758         * modules/unictype/category-none-tests: Likewise.
2759         * modules/unictype/category-of-tests: Likewise.
2760         * modules/unictype/category-or-tests: Likewise.
2761         * modules/unictype/category-test-withtable-tests: Likewise.
2762         * modules/unictype/combining-class-tests: Likewise.
2763         * modules/unictype/ctype-alnum-tests: Likewise.
2764         * modules/unictype/ctype-alpha-tests: Likewise.
2765         * modules/unictype/ctype-blank-tests: Likewise.
2766         * modules/unictype/ctype-cntrl-tests: Likewise.
2767         * modules/unictype/ctype-digit-tests: Likewise.
2768         * modules/unictype/ctype-graph-tests: Likewise.
2769         * modules/unictype/ctype-lower-tests: Likewise.
2770         * modules/unictype/ctype-print-tests: Likewise.
2771         * modules/unictype/ctype-punct-tests: Likewise.
2772         * modules/unictype/ctype-space-tests: Likewise.
2773         * modules/unictype/ctype-upper-tests: Likewise.
2774         * modules/unictype/ctype-xdigit-tests: Likewise.
2775         * modules/unictype/decimal-digit-tests: Likewise.
2776         * modules/unictype/digit-tests: Likewise.
2777         * modules/unictype/mirror-tests: Likewise.
2778         * modules/unictype/numeric-tests: Likewise.
2779         * modules/unictype/property-alphabetic-tests: Likewise.
2780         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
2781         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
2782         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
2783         * modules/unictype/property-bidi-block-separator-tests: Likewise.
2784         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
2785         * modules/unictype/property-bidi-common-separator-tests: Likewise.
2786         * modules/unictype/property-bidi-control-tests: Likewise.
2787         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
2788         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
2789         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
2790         * modules/unictype/property-bidi-european-digit-tests: Likewise.
2791         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
2792         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
2793         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
2794         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
2795         * modules/unictype/property-bidi-pdf-tests: Likewise.
2796         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
2797         * modules/unictype/property-bidi-whitespace-tests: Likewise.
2798         * modules/unictype/property-byname-tests: Likewise.
2799         * modules/unictype/property-combining-tests: Likewise.
2800         * modules/unictype/property-composite-tests: Likewise.
2801         * modules/unictype/property-currency-symbol-tests: Likewise.
2802         * modules/unictype/property-dash-tests: Likewise.
2803         * modules/unictype/property-decimal-digit-tests: Likewise.
2804         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
2805         * modules/unictype/property-deprecated-tests: Likewise.
2806         * modules/unictype/property-diacritic-tests: Likewise.
2807         * modules/unictype/property-extender-tests: Likewise.
2808         * modules/unictype/property-format-control-tests: Likewise.
2809         * modules/unictype/property-grapheme-base-tests: Likewise.
2810         * modules/unictype/property-grapheme-extend-tests: Likewise.
2811         * modules/unictype/property-grapheme-link-tests: Likewise.
2812         * modules/unictype/property-hex-digit-tests: Likewise.
2813         * modules/unictype/property-hyphen-tests: Likewise.
2814         * modules/unictype/property-id-continue-tests: Likewise.
2815         * modules/unictype/property-id-start-tests: Likewise.
2816         * modules/unictype/property-ideographic-tests: Likewise.
2817         * modules/unictype/property-ids-binary-operator-tests: Likewise.
2818         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
2819         * modules/unictype/property-ignorable-control-tests: Likewise.
2820         * modules/unictype/property-iso-control-tests: Likewise.
2821         * modules/unictype/property-join-control-tests: Likewise.
2822         * modules/unictype/property-left-of-pair-tests: Likewise.
2823         * modules/unictype/property-line-separator-tests: Likewise.
2824         * modules/unictype/property-logical-order-exception-tests: Likewise.
2825         * modules/unictype/property-lowercase-tests: Likewise.
2826         * modules/unictype/property-math-tests: Likewise.
2827         * modules/unictype/property-non-break-tests: Likewise.
2828         * modules/unictype/property-not-a-character-tests: Likewise.
2829         * modules/unictype/property-numeric-tests: Likewise.
2830         * modules/unictype/property-other-alphabetic-tests: Likewise.
2831         * modules/unictype/property-other-default-ignorable-code-point-tests:
2832         Likewise.
2833         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
2834         * modules/unictype/property-other-id-continue-tests: Likewise.
2835         * modules/unictype/property-other-id-start-tests: Likewise.
2836         * modules/unictype/property-other-lowercase-tests: Likewise.
2837         * modules/unictype/property-other-math-tests: Likewise.
2838         * modules/unictype/property-other-uppercase-tests: Likewise.
2839         * modules/unictype/property-paired-punctuation-tests: Likewise.
2840         * modules/unictype/property-paragraph-separator-tests: Likewise.
2841         * modules/unictype/property-pattern-syntax-tests: Likewise.
2842         * modules/unictype/property-pattern-white-space-tests: Likewise.
2843         * modules/unictype/property-private-use-tests: Likewise.
2844         * modules/unictype/property-punctuation-tests: Likewise.
2845         * modules/unictype/property-quotation-mark-tests: Likewise.
2846         * modules/unictype/property-radical-tests: Likewise.
2847         * modules/unictype/property-sentence-terminal-tests: Likewise.
2848         * modules/unictype/property-soft-dotted-tests: Likewise.
2849         * modules/unictype/property-space-tests: Likewise.
2850         * modules/unictype/property-terminal-punctuation-tests: Likewise.
2851         * modules/unictype/property-test-tests: Likewise.
2852         * modules/unictype/property-titlecase-tests: Likewise.
2853         * modules/unictype/property-unassigned-code-value-tests: Likewise.
2854         * modules/unictype/property-unified-ideograph-tests: Likewise.
2855         * modules/unictype/property-uppercase-tests: Likewise.
2856         * modules/unictype/property-variation-selector-tests: Likewise.
2857         * modules/unictype/property-white-space-tests: Likewise.
2858         * modules/unictype/property-xid-continue-tests: Likewise.
2859         * modules/unictype/property-xid-start-tests: Likewise.
2860         * modules/unictype/property-zero-width-tests: Likewise.
2861         * modules/unictype/scripts-tests: Likewise.
2862         * modules/unictype/syntax-c-ident-tests: Likewise.
2863         * modules/unictype/syntax-c-whitespace-tests: Likewise.
2864         * modules/unictype/syntax-java-ident-tests: Likewise.
2865         * modules/unictype/syntax-java-whitespace-tests: Likewise.
2866         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
2867         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
2868         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
2869         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
2870         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
2871         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
2872         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
2873         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
2874         * modules/uniname/uniname-tests: Likewise.
2875         * modules/uninorm/canonical-decomposition-tests: Likewise.
2876         * modules/uninorm/compat-decomposition-tests: Likewise.
2877         * modules/uninorm/composition-tests: Likewise.
2878         * modules/uninorm/decomposing-form-tests: Likewise.
2879         * modules/uninorm/decomposition-tests: Likewise.
2880         * modules/uninorm/filter-tests: Likewise.
2881         * modules/uninorm/nfc-tests: Likewise.
2882         * modules/uninorm/nfd-tests: Likewise.
2883         * modules/uninorm/nfkc-tests: Likewise.
2884         * modules/uninorm/nfkd-tests: Likewise.
2885         * modules/uninorm/u8-normcmp-tests: Likewise.
2886         * modules/uninorm/u8-normcoll-tests: Likewise.
2887         * modules/uninorm/u16-normcmp-tests: Likewise.
2888         * modules/uninorm/u16-normcoll-tests: Likewise.
2889         * modules/uninorm/u32-normcmp-tests: Likewise.
2890         * modules/uninorm/u32-normcoll-tests: Likewise.
2891         * modules/unistdio/u8-asnprintf-tests: Likewise.
2892         * modules/unistdio/u8-vasnprintf-tests: Likewise.
2893         * modules/unistdio/u8-vasprintf-tests: Likewise.
2894         * modules/unistdio/u8-vsnprintf-tests: Likewise.
2895         * modules/unistdio/u8-vsprintf-tests: Likewise.
2896         * modules/unistdio/u16-asnprintf-tests: Likewise.
2897         * modules/unistdio/u16-vasnprintf-tests: Likewise.
2898         * modules/unistdio/u16-vasprintf-tests: Likewise.
2899         * modules/unistdio/u16-vsnprintf-tests: Likewise.
2900         * modules/unistdio/u16-vsprintf-tests: Likewise.
2901         * modules/unistdio/u32-asnprintf-tests: Likewise.
2902         * modules/unistdio/u32-vasnprintf-tests: Likewise.
2903         * modules/unistdio/u32-vasprintf-tests: Likewise.
2904         * modules/unistdio/u32-vsnprintf-tests: Likewise.
2905         * modules/unistdio/u32-vsprintf-tests: Likewise.
2906         * modules/unistdio/ulc-asnprintf-tests: Likewise.
2907         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
2908         * modules/unistdio/ulc-vasprintf-tests: Likewise.
2909         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
2910         * modules/unistdio/ulc-vsprintf-tests: Likewise.
2911         * modules/unistr/u8-check-tests: Likewise.
2912         * modules/unistr/u8-chr-tests: Likewise.
2913         * modules/unistr/u8-cmp-tests: Likewise.
2914         * modules/unistr/u8-cmp2-tests: Likewise.
2915         * modules/unistr/u8-cpy-alloc-tests: Likewise.
2916         * modules/unistr/u8-cpy-tests: Likewise.
2917         * modules/unistr/u8-mblen-tests: Likewise.
2918         * modules/unistr/u8-mbsnlen-tests: Likewise.
2919         * modules/unistr/u8-mbtouc-tests: Likewise.
2920         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
2921         * modules/unistr/u8-mbtoucr-tests: Likewise.
2922         * modules/unistr/u8-move-tests: Likewise.
2923         * modules/unistr/u8-next-tests: Likewise.
2924         * modules/unistr/u8-prev-tests: Likewise.
2925         * modules/unistr/u8-set-tests: Likewise.
2926         * modules/unistr/u8-stpcpy-tests: Likewise.
2927         * modules/unistr/u8-stpncpy-tests: Likewise.
2928         * modules/unistr/u8-strcat-tests: Likewise.
2929         * modules/unistr/u8-strcmp-tests: Likewise.
2930         * modules/unistr/u8-strcoll-tests: Likewise.
2931         * modules/unistr/u8-strcpy-tests: Likewise.
2932         * modules/unistr/u8-strdup-tests: Likewise.
2933         * modules/unistr/u8-strlen-tests: Likewise.
2934         * modules/unistr/u8-strmblen-tests: Likewise.
2935         * modules/unistr/u8-strmbtouc-tests: Likewise.
2936         * modules/unistr/u8-strncat-tests: Likewise.
2937         * modules/unistr/u8-strncmp-tests: Likewise.
2938         * modules/unistr/u8-strncpy-tests: Likewise.
2939         * modules/unistr/u8-strnlen-tests: Likewise.
2940         * modules/unistr/u8-to-u16-tests: Likewise.
2941         * modules/unistr/u8-to-u32-tests: Likewise.
2942         * modules/unistr/u8-uctomb-tests: Likewise.
2943         * modules/unistr/u16-check-tests: Likewise.
2944         * modules/unistr/u16-chr-tests: Likewise.
2945         * modules/unistr/u16-cmp-tests: Likewise.
2946         * modules/unistr/u16-cmp2-tests: Likewise.
2947         * modules/unistr/u16-cpy-alloc-tests: Likewise.
2948         * modules/unistr/u16-cpy-tests: Likewise.
2949         * modules/unistr/u16-mblen-tests: Likewise.
2950         * modules/unistr/u16-mbsnlen-tests: Likewise.
2951         * modules/unistr/u16-mbtouc-tests: Likewise.
2952         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
2953         * modules/unistr/u16-mbtoucr-tests: Likewise.
2954         * modules/unistr/u16-move-tests: Likewise.
2955         * modules/unistr/u16-next-tests: Likewise.
2956         * modules/unistr/u16-prev-tests: Likewise.
2957         * modules/unistr/u16-set-tests: Likewise.
2958         * modules/unistr/u16-stpcpy-tests: Likewise.
2959         * modules/unistr/u16-stpncpy-tests: Likewise.
2960         * modules/unistr/u16-strcat-tests: Likewise.
2961         * modules/unistr/u16-strcmp-tests: Likewise.
2962         * modules/unistr/u16-strcoll-tests: Likewise.
2963         * modules/unistr/u16-strcpy-tests: Likewise.
2964         * modules/unistr/u16-strdup-tests: Likewise.
2965         * modules/unistr/u16-strlen-tests: Likewise.
2966         * modules/unistr/u16-strmblen-tests: Likewise.
2967         * modules/unistr/u16-strmbtouc-tests: Likewise.
2968         * modules/unistr/u16-strncat-tests: Likewise.
2969         * modules/unistr/u16-strncmp-tests: Likewise.
2970         * modules/unistr/u16-strncpy-tests: Likewise.
2971         * modules/unistr/u16-strnlen-tests: Likewise.
2972         * modules/unistr/u16-to-u32-tests: Likewise.
2973         * modules/unistr/u16-to-u8-tests: Likewise.
2974         * modules/unistr/u16-uctomb-tests: Likewise.
2975         * modules/unistr/u32-check-tests: Likewise.
2976         * modules/unistr/u32-chr-tests: Likewise.
2977         * modules/unistr/u32-cmp-tests: Likewise.
2978         * modules/unistr/u32-cmp2-tests: Likewise.
2979         * modules/unistr/u32-cpy-alloc-tests: Likewise.
2980         * modules/unistr/u32-cpy-tests: Likewise.
2981         * modules/unistr/u32-mblen-tests: Likewise.
2982         * modules/unistr/u32-mbsnlen-tests: Likewise.
2983         * modules/unistr/u32-mbtouc-tests: Likewise.
2984         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
2985         * modules/unistr/u32-mbtoucr-tests: Likewise.
2986         * modules/unistr/u32-move-tests: Likewise.
2987         * modules/unistr/u32-next-tests: Likewise.
2988         * modules/unistr/u32-prev-tests: Likewise.
2989         * modules/unistr/u32-set-tests: Likewise.
2990         * modules/unistr/u32-stpcpy-tests: Likewise.
2991         * modules/unistr/u32-stpncpy-tests: Likewise.
2992         * modules/unistr/u32-strcat-tests: Likewise.
2993         * modules/unistr/u32-strcmp-tests: Likewise.
2994         * modules/unistr/u32-strcoll-tests: Likewise.
2995         * modules/unistr/u32-strcpy-tests: Likewise.
2996         * modules/unistr/u32-strdup-tests: Likewise.
2997         * modules/unistr/u32-strlen-tests: Likewise.
2998         * modules/unistr/u32-strmblen-tests: Likewise.
2999         * modules/unistr/u32-strmbtouc-tests: Likewise.
3000         * modules/unistr/u32-strncat-tests: Likewise.
3001         * modules/unistr/u32-strncmp-tests: Likewise.
3002         * modules/unistr/u32-strncpy-tests: Likewise.
3003         * modules/unistr/u32-strnlen-tests: Likewise.
3004         * modules/unistr/u32-to-u16-tests: Likewise.
3005         * modules/unistr/u32-to-u8-tests: Likewise.
3006         * modules/unistr/u32-uctomb-tests: Likewise.
3007         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3008         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3009         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3010         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3011         * modules/uniwidth/u8-strwidth-tests: Likewise.
3012         * modules/uniwidth/u8-width-tests: Likewise.
3013         * modules/uniwidth/u16-strwidth-tests: Likewise.
3014         * modules/uniwidth/u16-width-tests: Likewise.
3015         * modules/uniwidth/u32-strwidth-tests: Likewise.
3016         * modules/uniwidth/u32-width-tests: Likewise.
3017         * modules/uniwidth/width-tests: Likewise.
3018
3019 2010-05-18  Richard Jones  <rjones@redhat.com>
3020
3021         doc: users.txt: list hivex
3022         * users.txt: Add hivex.
3023
3024 2010-05-18  Richard Jones  <rjones@redhat.com>
3025
3026         doc: users.txt: list febootstrap
3027         * users.txt: Add febootstrap.
3028
3029 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3030
3031         bootstrap: fix an error when gnulib is not used as a git submodule
3032         * build-aux/bootstrap (gnulib_path): If its length is zero then
3033         assign "gnulib" to it.
3034         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3035
3036 2010-05-16  Bruno Haible  <bruno@clisp.org>
3037
3038         Avoid autoconf warnings about AM_ICONV.
3039         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3040         2.64.
3041
3042 2010-05-16  Bruno Haible  <bruno@clisp.org>
3043
3044         absolute-header: Make the macro usable in more situations.
3045         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3046         from gl_ABSOLUTE_HEADER.
3047         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3048
3049 2010-05-16  James Youngman  <jay@gnu.org>
3050
3051         doc: update users.txt
3052         * users.txt: Add CSSC.
3053
3054 2010-05-16  Jim Meyering  <meyering@redhat.com>
3055
3056         init.sh: fix an error in the previous change; add more comments
3057         * tests/init.sh: Compare exit code in loop against 9, not 2.
3058         Patch by Bruno Haible.
3059         Make the two tests more similar by adding an empty "then" clause.
3060         Add comments.
3061
3062         init.sh: avoid unnecessary shell re-exec
3063         * tests/init.sh: Improve the re-exec-required check to first test the
3064         current shell.  If it passes the test, do not search for a shell that
3065         does pass, and do not re-exec.  This test is particularly contorted to
3066         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3067         of $(...) evokes a syntax error and causes immediate shell exit with
3068         status 2.  Bruno Haible reported that the re-exec made it impossible
3069         to single-step through any init.sh-using script.
3070
3071 2010-05-16  Bruno Haible  <bruno@clisp.org>
3072
3073         Fix collision between gnulib's and libintl's printf replacements.
3074         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3075         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3076         (printf): When using GNU C, map the __printf__ function to rpl_printf
3077         via __asm__. When not using GNU C, define rpl_printf instead of
3078         __printf__.
3079         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3080         commit.
3081         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3082         commit.
3083         * m4/asm-underscore.m4: New file.
3084         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3085         * modules/stdio (Files): Add m4/asm-underscore.m4.
3086         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3087         Reported by Ben Pfaff.
3088
3089 2010-05-16  Bruno Haible  <bruno@clisp.org>
3090
3091         verify: Avoid skipping the test on openSUSE 11.0.
3092         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3093
3094 2010-05-13  Bruno Haible  <bruno@clisp.org>
3095
3096         Avoid useless warnings from G++.
3097         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3098         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3099         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3100
3101 2010-05-11  Jim Meyering  <meyering@redhat.com>
3102
3103         maint.mk: tweak preceding change
3104         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3105         regexps tighter by anchoring at EOL, and make the new group "shy"
3106         for slightly decreased overhead.
3107
3108 2010-05-11  Eric Blake  <eblake@redhat.com>
3109
3110         maint.mk: gnulib doesn't guarantee NSIG
3111         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3112
3113 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3114
3115         test-pwrite.c: Remove unused variable declaration.
3116         * tests/test-pwrite.c (main): Remove read_buf declaration.
3117
3118         Remove useless test-pwrite.sh file.
3119         * tests/test-pwrite.sh: Delete file.
3120         * modules/pwrite-tests: Remove references.
3121         Reported by Bruno Haible.
3122
3123 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3124
3125         init.sh: fix a typo
3126         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3127
3128 2010-05-10  Jim Meyering  <meyering@redhat.com>
3129
3130         maint.mk: avoid using a temporary file in the always-defined-macros check
3131         * top/maint.mk (.re-defmac): Remove rule.
3132         (gl_trap_): Remove definition.
3133         (sc_prohibit_always-defined_macros): Rewrite not to create and
3134         depend on a temporary file.  Instead, depend on GNU grep's ability
3135         to read a list of regular expressions from stdin when given "-f -".
3136
3137 2010-05-09  Bruno Haible  <bruno@clisp.org>
3138
3139         Update to GNU gettext 0.18, part 1.
3140         * m4/gettext.m4: Update to GNU gettext 0.18.
3141         * m4/intl.m4: Likewise.
3142         * m4/po.m4: Likewise.
3143         * modules/gettext (Files): Add m4/fcntl-o.m4.
3144         (configure.ac): Require gettext infrastructure from version 0.18.
3145
3146 2010-05-09  Jim Meyering  <meyering@redhat.com>
3147
3148         init.sh: enable MALLOC_PERTURB_
3149         * tests/init.sh: Enable glibc's malloc-perturbing option.
3150
3151         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3152         With my recent change in init.sh from the two-line form:
3153             -#   : ${srcdir=.}
3154             -#   . "$srcdir/init.sh"; path_prepend_ .
3155             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3156         I noticed that using the one-line form would cause this test
3157         to fail with a false-positive, or to stop working altogether,
3158         depending on whether help-version changed or all the tests did.
3159         * top/maint.mk (_hv_regex): Remove this definition.
3160         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3161         (_hv_regex_strong): Use a stronger regex to check for conformance.
3162         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3163         Give a separate diagnostic for lack of conforming use.
3164
3165         maint.mk: prohibit definition of symbols defined by gnulib
3166         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3167         definition of symbols defined by gnulib.
3168
3169 2010-05-09  Bruno Haible  <bruno@clisp.org>
3170
3171         acl: Avoid test failure on Cygwin-hosted mingw.
3172         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3173
3174 2010-05-09  Bruno Haible  <bruno@clisp.org>
3175
3176         error: Use system's fcntl function.
3177         * lib/error.c (fcntl): Undefine.
3178
3179 2010-05-09  Jim Meyering  <meyering@redhat.com>
3180
3181         verify: adjust formatting to be more consistent
3182         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3183         argument-list '('s, and after one comma.
3184
3185 2010-05-09  Bruno Haible  <bruno@clisp.org>
3186
3187         error: More reliable output on mingw.
3188         * lib/error.c: Include <windows.h>.
3189         (is_open): New function.
3190         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3191         defined.
3192
3193 2010-05-09  Bruno Haible  <bruno@clisp.org>
3194
3195         vasnprintf: Fix syntax errors in libintl build on mingw.
3196         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3197         pad_ourselves and prec_ourselves after use.
3198
3199 2010-05-08  Bruno Haible  <bruno@clisp.org>
3200
3201         * lib/config.charset: Update comments for Cygwin 1.7.
3202         * lib/localcharset.c: Likewise.
3203
3204 2010-05-07  Jim Meyering  <meyering@redhat.com>
3205
3206         init.sh: improve comments
3207         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3208         . "${srcdir=.}/init.sh"; path_prepend_ .
3209         Add a note about path_prepend_ and the alternative of using
3210         TESTS_ENVIRONMENT.
3211
3212 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3213
3214         exclude: Unescape hashed patterns in wildcard mode.
3215         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3216         to the hash list.
3217         * tests/test-exclude8.sh: New test case.
3218         * modules/exclude-tests: Add new test.
3219
3220 2010-05-05  Eric Blake  <eblake@redhat.com>
3221
3222         verify: automate tests
3223         * modules/verify-tests: New module.
3224         * tests/test-verify.sh: New file.
3225         * tests/test-verify.c: Guard each negative test with a unique id.
3226         Also avoid warning about unused left hand of comma expressions.
3227
3228 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3229
3230         Further improvements to verify.h, suggested by Eric Blake.
3231         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3232         the GL_* versions, to avoid collision with OpenGL.
3233         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3234         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3235         than testing merely whether it's defined.
3236
3237         Modify verify.h to pacify gcc -Wredundant_decls.
3238         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3239         These use the prefix "GL_" since they're likely to be useful elsewhere.
3240         We may need to break them out into a different .h file.
3241         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3242         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3243         of verify_function__.
3244
3245 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3246
3247         Tests for module pwrite.
3248         * modules/pwrite-tests: New file.
3249         * tests/test-pwrite.sh: New file.
3250         * tests/test-pwrite.c: New file.
3251
3252         New module pwrite.
3253         * lib/unistd.in.h (pwrite): New declaration.
3254         * lib/pwrite.c: New file, from glibc with modifications.
3255         * m4/pwrite.m4: New file.
3256         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3257         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3258         REPLACE_PWRITE.
3259         * modules/pwrite: New file.
3260         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3261         REPLACE_PWRITE.
3262         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3263         * doc/posix-functions/pwrite.texi: Mention the new module.
3264
3265 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3266
3267         pread: Update documentation.
3268         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3269
3270 2010-05-04  Eric Blake  <eblake@redhat.com>
3271
3272         docs: update cygwin progress
3273         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3274         this bug.
3275         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3276         Added in cygwin 1.7.2.
3277         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3278         Likewise.
3279         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3280         Likewise.
3281         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3282         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3283         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3284         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3285         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3286         Mention nproc module.
3287         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3288         bug in cygwin 1.7.5 addition.
3289         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3290         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3291         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3292         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3293         1.7.5.
3294         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3295         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3296         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3297         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3298         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3299         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3300         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3301         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3302         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3303         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3304         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3305         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3306         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3307         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3308         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3309         Likewise.
3310         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3311         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3312         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3313         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3314         Likewise.
3315         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3316         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3317         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3318         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3319         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3320         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3321         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3322         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3323         Likewise.
3324         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3325         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3326         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3327         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3328         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3329         Likewise.
3330         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3331         Likewise.
3332         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3333         Likewise.
3334         * doc/glibc-functions/xdrrec_endofrecord.texi
3335         (xdrrec_endofrecord): Likewise.
3336         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3337         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3338         Likewise.
3339         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3340         Likewise.
3341
3342 2010-05-04  Jim Meyering  <meyering@redhat.com>
3343
3344         gendocs.sh: make its "-s FILE" option more useful
3345         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3346         $PACKAGE to reflect the probably-different basename of "FILE".
3347
3348 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3349
3350         bootstrap: don't ignore download_po_files failure
3351         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3352         failure.
3353
3354 2010-05-03  Jim Meyering  <meyering@redhat.com>
3355
3356         maint.mk: allow to pass options to gendocs.sh
3357         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3358         (gendocs_options_): New overridable variable.
3359
3360         gnu-web-doc-update: don't ignore configure or build failure
3361         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3362
3363         announce-gen: backslash-escape '@'s in --help output
3364         * build-aux/announce-gen: Fix syntax errors.
3365
3366         maint.mk, announce-gen: allow project-specific announcement mail headers
3367         * top/maint.mk (translation_project_): Define default.
3368         (announcement_Cc_, announcement_mail_headers_): Likewise.
3369         (announcement): Invoke announce-gen with new --mail-headers option.
3370         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3371
3372         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3373         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3374         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3375         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3376         line in the "err2" output file when running "make check" in verbose
3377         mode (i.e., with set -x enabled).
3378
3379 2010-05-03  Bruno Haible  <bruno@clisp.org>
3380
3381         wctob: Fix for weird platforms.
3382         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3383         argument value.
3384
3385 2010-05-03  Jim Meyering  <meyering@redhat.com>
3386
3387         maint.mk: prohibit unwarranted use of <strings.h>
3388         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3389         strings.h in a file that does not also use strcasecmp, strncasecmp,
3390         ffs or ffsll.
3391
3392         maint.mk: remove obsolete comments
3393         * top/maint.mk: Remove stale, commented-out rules.
3394
3395 2010-05-02  Bruno Haible  <bruno@clisp.org>
3396
3397         wcwidth: Declare also when it's aliased.
3398         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3399         macro.
3400
3401 2010-05-02  Bruno Haible  <bruno@clisp.org>
3402
3403         Fix regression from 2010-04-25.
3404         * gnulib-tool (func_modules_transitive_closure): Check the status of
3405         all modules, not only of the tests that are of the form foo-tests where
3406         foo is a module.
3407
3408 2010-05-02  Bruno Haible  <bruno@clisp.org>
3409
3410         wctob: Work around nasty Cygwin 1.7.2 bug.
3411         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3412         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3413
3414 2010-05-01  Bruno Haible  <bruno@clisp.org>
3415
3416         fpurge: Sharper test.
3417         * tests/test-fpurge.c (main): Add one more ftell check.
3418         * modules/fpurge-tests (Depends-on): Add ftell.
3419         Suggested by Eric Blake.
3420
3421 2010-05-01  Bruno Haible  <bruno@clisp.org>
3422
3423         ftello: Another test.
3424         * tests/test-ftello3.c: New file.
3425         * modules/ftello-tests (Files): Add it.
3426         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3427         MOSTLYCLEANFILES.
3428
3429         ftell: Another test.
3430         * tests/test-ftell3.c: New file.
3431         * modules/ftell-tests (Files): Add it.
3432         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3433         MOSTLYCLEANFILES.
3434
3435 2010-05-01  Bruno Haible  <bruno@clisp.org>
3436
3437         ftell, ftello: Work around Solaris bug.
3438         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3439         * lib/ftello.c: Include stdio-impl.h.
3440         (ftello): On Solaris, when _IOWRT is set, compute the result without
3441         looking at _IOREAD.
3442         * modules/ftello (Files): Add lib/stdio-impl.h.
3443         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3444         * doc/posix-functions/ftello.texi: Likewise.
3445         Reported by Eric Blake.
3446
3447 2010-05-01  Bruno Haible  <bruno@clisp.org>
3448
3449         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3450         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3451         the _IOWRT flag is also set.
3452
3453 2010-05-01  Bruno Haible  <bruno@clisp.org>
3454
3455         Fix doc about a HP-UX stdio bug.
3456         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3457         * doc/posix-functions/ftello.texi: Likewise.
3458
3459 2010-05-01  Bruno Haible  <bruno@clisp.org>
3460
3461         lseek test: Fix failure on Solaris.
3462         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3463         output.
3464
3465 2010-04-30  Jim Meyering  <meyering@redhat.com>
3466
3467         bootstrap: don't ignore failure to generate po*/Makevars
3468         * build-aux/bootstrap (with_gettext): Don't ignore failure
3469         to create po/Makevars or runtime-po/Makevars.
3470
3471 2010-04-29  Eric Blake  <eblake@redhat.com>
3472
3473         headers: relax license to LGPLv2+
3474         * modules/fcntl-h (License): Relax license.
3475         * modules/getopt-posix (License): Likewise.
3476         * modules/locale (License): Likewise.
3477         * modules/math (License): Likewise.
3478         * modules/pty (License): Likewise.
3479         * modules/sched (License): Likewise.
3480         * modules/search (License): Likewise.
3481         * modules/spawn (License): Likewise.
3482         * modules/stdarg (License): Likewise.
3483         * modules/sysexits (License): Likewise.
3484
3485 2010-04-29  Jim Meyering  <meyering@redhat.com>
3486
3487         inttypes: relax license to LGPLv2+
3488         * modules/inttypes (License): Relax license.
3489
3490 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3491
3492         * top/maint.mk (indent): Run twice to produce idempotent results.
3493
3494 2010-04-28  Bruno Haible  <bruno@clisp.org>
3495
3496         getdate: Generate getdate.c in the source directory.
3497         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3498         MOSTLYCLEANFILES.
3499         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3500
3501 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3502
3503         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3504         is not declared as a const *; avoid warnings in that case.
3505
3506 2010-04-28  Eric Blake  <eblake@redhat.com>
3507
3508         canonicalize-lgpl: avoid compiler warning
3509         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3510         declaration' / 'extraneous semicolon' warning with some compilers.
3511         Reported by Andreas Gruenbacher.
3512
3513 2010-04-28  Jim Meyering  <meyering@redhat.com>
3514
3515         init.sh: ensure a more reliable exit status when exiting via trap
3516         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3517         Inspired by patches from Dmitry V. Levin.
3518         Also trap on signal 3 (SIGQUIT).
3519
3520 2010-04-27  Bruno Haible  <bruno@clisp.org>
3521
3522         Update doc about utimes().
3523         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3524         'utimens' module.
3525         Reported by Andreas Gruenbacher <agruen@suse.de>.
3526
3527 2010-04-27  Eric Blake  <eblake@redhat.com>
3528
3529         full-read, full-write: relax license
3530         * modules/full-read (License): Drop to LGPLv2+.
3531         * modules/full-write (License): Likewise.
3532         * modules/safe-read (License): Likewise.
3533         * modules/safe-write (License): Likewise.
3534
3535         pthread: mention library for linking
3536         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3537
3538 2010-04-27  Jim Meyering  <meyering@redhat.com>
3539
3540         maint.mk: fix a bug introduced in last change
3541         * top/maint.mk (gl_assured_headers_): Now that all names are on
3542         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3543         is not anchored to end of word, it should be adequate.
3544
3545         maint.mk: avoid side-effect in latest syntax-check
3546         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3547         to run commands via $(shell...), and hence to incur cost only when
3548         the new rule is actually run.
3549
3550         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3551         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3552         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3553         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3554         (gl_assured_headers_, az_, AZ_): Define.
3555         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3556
3557 2010-04-26  Jim Meyering  <jim@meyering.net>
3558             Bruno Haible  <bruno@clisp.org>
3559
3560         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3561         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3562         Prompted by an exchange with Gilles Espinasse.
3563
3564 2010-04-26  Jim Meyering  <meyering@redhat.com>
3565
3566         git-version-gen: aesthetic tweak
3567         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3568         so that the command remains on a single line.
3569
3570 2010-04-26  Eric Blake  <eblake@redhat.com>
3571
3572         git-version-gen: allow use on EBCDIC hosts
3573         * build-aux/git-version-gen (dirty): Use literal rather than tying
3574         ourselves to ascii.
3575         Reported by Steve Goetze.
3576
3577 2010-04-25  Bruno Haible  <bruno@clisp.org>
3578
3579         netdb: Add support for GNULIB_POSIXCHECK.
3580         * lib/netdb.in.h: Include warn-on-use.h.
3581         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3582         functions are used when GNULIB_POSIXCHECK is defined and the
3583         getaddrinfo module is not in use.
3584         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3585         freeaddrinfo, gai_strerror, getnameinfo are declared.
3586         * modules/netdb (Depends-on): Add warn-on-use.
3587         (Makefile.am): Include warn-on-use.h in netdb.h.
3588
3589 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3590
3591         build: avoid "make check" failure without .git/ directory
3592         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3593         there is no .git/ directory.
3594
3595 2010-04-25  Bruno Haible  <bruno@clisp.org>
3596
3597         ptsname: Fix misuse of ttyname_r.
3598         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3599         of errno.
3600
3601 2010-04-25  Bruno Haible  <bruno@clisp.org>
3602
3603         ttyname_r: Make it work on Solaris 10.
3604         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3605         if the system function has the POSIX declaration. Test whether the
3606         function fails if the buffer is less than 128 bytes large.
3607         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3608         system's ttyname_r function. Provide a reasonably large buffer.
3609         * modules/ttyname_r (Depends-on): Add extensions.
3610         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3611
3612 2010-04-25  Bruno Haible  <bruno@clisp.org>
3613
3614         Use the 'extensions' module for some more functions on Solaris.
3615         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3616         module.
3617         * doc/posix-functions/ctime_r.texi: Likewise.
3618         * doc/posix-functions/getgrgid_r.texi: Likewise.
3619         * doc/posix-functions/getgrnam_r.texi: Likewise.
3620         * doc/posix-functions/getpwnam_r.texi: Likewise.
3621         * doc/posix-functions/getpwuid_r.texi: Likewise.
3622         * doc/posix-functions/readdir_r.texi: Likewise.
3623         * doc/posix-functions/sigwait.texi: Likewise.
3624         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3625         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
3626
3627 2010-04-25  Bruno Haible  <bruno@clisp.org>
3628
3629         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
3630         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
3631         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
3632         * lib/ttyname_r.c: Include <limits.h>.
3633         (ttyname_r): Define using the system's ttyname_r function, if it exists
3634         and not on Solaris.
3635         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
3636         set.
3637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
3638         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
3639         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
3640         Reported by Simon Josefsson.
3641
3642 2010-04-25  Bruno Haible  <bruno@clisp.org>
3643
3644         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
3645         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
3646         * doc/posix-functions/ctime_r.texi: Likewise.
3647         * doc/posix-functions/getgrgid_r.texi: Likewise.
3648         * doc/posix-functions/getgrnam_r.texi: Likewise.
3649         * doc/posix-functions/getlogin_r.texi: Likewise.
3650         * doc/posix-functions/getpwnam_r.texi: Likewise.
3651         * doc/posix-functions/getpwuid_r.texi: Likewise.
3652         * doc/posix-functions/readdir_r.texi: Likewise.
3653         * doc/posix-functions/sigwait.texi: Likewise.
3654         * doc/posix-functions/ttyname_r.texi: Likewise.
3655         Reported by Simon Josefsson.
3656
3657 2010-04-25  Bruno Haible  <bruno@clisp.org>
3658
3659         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
3660         * gnulib-tool (func_usage): Document that --with-*-tests options apply
3661         also to --create-testdir.
3662         (func_acceptable): Don't consider the status of *-tests modules here.
3663         (func_modules_transitive_closure): Consider it here, before including a
3664         test module.
3665         (func_import, func_create_testdir): Set inc_all_direct_tests,
3666         inc_all_indirect_tests.
3667         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
3668         --create-testdir and --create-megatestdir.
3669
3670 2010-04-25  Bruno Haible  <bruno@clisp.org>
3671
3672         gnulib-tool: Add --without-*-tests options.
3673         * gnulib-tool (func_usage): Document the --without-*-tests options.
3674         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
3675         excl_unportable_tests): New variables.
3676         Fail if they are specified with --import or --update.
3677         (func_acceptable): Respect the excl_*_tests variables.
3678         (func_import): Set the excl_*_tests variables to empty.
3679
3680 2010-04-25  Simon Josefsson  <simon@josefsson.org>
3681             Bruno Haible  <bruno@clisp.org>
3682
3683         Work around a MacOS X 10.4 bug with openpty.
3684         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
3685         * tests/test-openpty.c (main): Close the master side explicitly.
3686
3687 2010-04-25  Bruno Haible  <bruno@clisp.org>
3688
3689         strnlen: Fix a C++ test error on MacOS X and Solaris.
3690         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
3691         the function is not declared.
3692         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
3693         Simon Josefsson.
3694
3695 2010-04-24  Bruno Haible  <bruno@clisp.org>
3696
3697         Avoid a gcc warning.
3698         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
3699         of correct type for %08lx directive.
3700         Reported by Eric Blake.
3701
3702 2010-04-24  Bruno Haible  <bruno@clisp.org>
3703
3704         vasnprintf: Correct errno value in case of out-of-memory.
3705         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
3706         or sprintf. Use the errno value from SNPRINTF or sprintf.
3707         Reported by Ian Beckwith <ianb@erislabs.net>.
3708
3709 2010-04-24  Bruno Haible  <bruno@clisp.org>
3710
3711         ansi-c++-opt: Find correct compiler when cross-compiling.
3712         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
3713         AC_CHECK_PROGS.
3714         Reported by Simon Josefsson.
3715
3716 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
3717
3718         vc-list-files: Add support for subversion
3719         * build-aux/vc-list-files: Use "svn list" to generate the list of
3720         files controlled by subversion.
3721
3722 2010-04-23  Jim Meyering  <meyering@redhat.com>
3723
3724         vc-list-files tests: convert to use init.sh
3725         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
3726         path_prepend_.
3727         Use Exit, not exit.
3728         Use skip_ rather than open coding it.
3729         Remove trap set-up and compare definitions.
3730         * tests/test-vc-list-files-git.sh: Likewise.
3731         * modules/vc-list-files-tests (Files): Add tests/init.sh.
3732
3733 2010-04-22  Simon Josefsson  <simon@josefsson.org>
3734
3735         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
3736         backup files.
3737
3738 2010-04-21  Simon Josefsson  <simon@josefsson.org>
3739
3740         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
3741
3742 2010-04-20  Eric Blake  <eblake@redhat.com>
3743
3744         tests: be robust to ignored SIGPIPE
3745         * tests/test-select-in.sh: Consume all output.
3746         * tests/test-lseek.sh: Check correct exit status, while avoiding
3747         EPIPE.
3748
3749 2010-04-20  Simon Josefsson  <simon@josefsson.org>
3750             Bruno Haible  <bruno@clisp.org>
3751
3752         visibility: Don't use -fvisibility if it leads to a warning.
3753         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
3754         yes, don't pretend that visibility works if it leads to a warning.
3755         Reported by Mike Gran <spk121@yahoo.com>.
3756
3757 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
3758
3759         * build-aux/bootstrap: Use "git -h" for testing for supported options
3760         instead of "git --help".  The short-form option only shows a summary,
3761         and doesn't layout the full man page.  Grep for the full option name
3762         in the summary, too.
3763
3764 2010-04-19  Bruno Haible  <bruno@clisp.org>
3765
3766         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
3767         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
3768         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
3769         mention of RELOCATABLE_STRIP.
3770         Reported by Sylvain Beucler <beuc@beuc.net>.
3771
3772 2010-04-19  Bruno Haible  <bruno@clisp.org>
3773
3774         * lib/diffseq.h: Fix typo in comment.
3775         Reported by Eric Blake.
3776
3777 2010-04-19  Bruno Haible  <bruno@clisp.org>
3778
3779         ioctl: Move autoconf macro to a .m4 file.
3780         * m4/ioctl.m4: New file, extracted from modules/ioctl.
3781         * modules/ioctl (Files): Add it.
3782         (configure.ac): Simply invoke gl_FUNC_IOCTL.
3783         Reported by Ian Beckwith <ianb@erislabs.net>.
3784
3785 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
3786             Bruno Haible  <bruno@clisp.org>
3787
3788         diffseq: Accommodate use-case with abstract arrays.
3789         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
3790         is not defined.
3791         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
3792         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
3793
3794 2010-04-18  Bruno Haible  <bruno@clisp.org>
3795
3796         * doc/posix-headers/stdbool.texi: More precise wording.
3797
3798 2010-04-17  Jim Meyering  <meyering@redhat.com>
3799
3800         maint.mk: use gnu-style indentation in an embedded perl script
3801         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
3802         Rename variable: s/two/last_two_bytes/
3803
3804 2010-04-16  Eric Blake  <eblake@redhat.com>
3805
3806         test-stdbool: skip test that fails with Solaris CC
3807         * tests/test-stdbool.c (f): Skip test that causes compilation
3808         error under buggy C++ compiler.
3809         * lib/stdbool.in.h: Document the limitation.
3810         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
3811
3812         setenv: allow compilation with C++
3813         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
3814         register keyword.
3815
3816         stdint: allow test to pass with C++
3817         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
3818
3819         getopt: allow compilation with C++
3820         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
3821         struct.
3822         * lib/getopt.c (_getopt_internal_r): Use correct type.
3823         Reported by Dagobert Michelson, via Joel E. Denny.
3824
3825 2010-04-16  Bruno Haible  <bruno@clisp.org>
3826
3827         Override netdb.h always.
3828         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
3829         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
3830         Reported by Ludovic Courtès <ludo@gnu.org>.
3831
3832 2010-04-15  Bruno Haible  <bruno@clisp.org>
3833
3834         openpty: Fix mistake from 2010-03-21.
3835         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
3836         Reported by Simon Josefsson.
3837
3838 2010-04-15  Eric Blake  <eblake@redhat.com>
3839
3840         test-forkpty: fix expected signature
3841         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
3842         Reported by Simon Josefsson.
3843
3844 2010-04-15  Jim Meyering  <meyering@redhat.com>
3845
3846         maint.mk: texinfo_suffix_re_: correct the default regexp
3847         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
3848
3849         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
3850         make it configurable via texinfo_suffix_re_.
3851
3852 2010-04-14  Eric Blake  <eblake@redhat.com>
3853
3854         strtok_r: relax license to LGPLv2+
3855         * modules/strtok_r (License): Relax license.
3856         Reported by Matthias Bolte.
3857
3858 2010-04-14  Simon Josefsson  <simon@josefsson.org>
3859
3860         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
3861         version 1.4.4 by default instead of requiring the libgcrypt
3862         version used during build.  This makes it possible to use the
3863         application with older but still binary compatible libgcrypt
3864         versions.
3865
3866 2010-04-13  Eric Blake  <eblake@redhat.com>
3867
3868         getopt-gnu: match recent glibc fixes and posix ruling
3869         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
3870         '+' handling, when requesting extensions.
3871         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
3872         'W;' handling.
3873         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
3874         * doc/posix-functions/getopt.texi (getopt): Document this.
3875         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3876         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3877         Likewise.
3878
3879         getopt: merge bug fixes from glibc
3880         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
3881         diagnostics.  Honor '+:' correctly.  Reject ';'.
3882
3883         getopt-posix: detect MacOS bug
3884         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
3885         optind when missing a required argument.
3886         * doc/posix-functions/getopt.texi (getopt): Document the bug.
3887         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3888         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3889         Likewise.
3890
3891         getopt-posix: avoid spurious failure on Solaris
3892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
3893         an indicator that setting optind=1 is sufficient for reset.
3894
3895         getopt-posix: avoid spurious failure on FreeBSD
3896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
3897         in POSIX mode, since the m4 test uses it.
3898
3899         gnulib-tool: silence warning on BSD sh
3900         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
3901
3902 2010-04-13  Jim Meyering  <meyering@redhat.com>
3903
3904         doc: users.txt: GNU patch now uses gnulib
3905         * users.txt: Add patch.
3906
3907 2010-04-12  Jim Meyering  <meyering@redhat.com>
3908
3909         maint.mk: generate more concise timing data for syntax-check rules
3910         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
3911         " done" from each line that reports a syntax-check test duration.
3912
3913 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
3914
3915         git-version-gen: use "git update-index..." rather than "git status"
3916         * build-aux/git-version-gen: Use git update-index --refresh, not
3917         "git status".  With some versions of git, "git status" would fail
3918         to update the index and result in an unwarranted "-dirty" suffix.
3919
3920 2010-04-11  Jim Meyering  <meyering@redhat.com>
3921
3922         openat: correct formatting (no semantic change)
3923         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
3924         Suggested by Bruno Haible.
3925
3926 2010-04-11  Bruno Haible  <bruno@clisp.org>
3927
3928         Stricter declaration checking in testdirs.
3929         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3930         If for_tests is true, augment AM_CPPFLAGS to define
3931         GNULIB_STRICT_CHECKING.
3932         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
3933         GNULIB_STRICT_CHECKING is defined, verify that the function is
3934         declared.
3935
3936 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
3937             Bruno Haible  <bruno@clisp.org>
3938
3939         libunistring: Improve configure output.
3940         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
3941         Don't say "consider installing GNU libunistring" when checking again
3942         with libiconv.
3943
3944 2010-04-11  Bruno Haible  <bruno@clisp.org>
3945
3946         libunistring: Correct value of $LTLIBUNISTRING.
3947         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
3948         correct the value of $LTLIBUNISTRING.
3949
3950 2010-04-11  Bruno Haible  <bruno@clisp.org>
3951
3952         havelib: Add static libraries to LIBS in the right order.
3953         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
3954         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
3955
3956 2010-04-11  Bruno Haible  <bruno@clisp.org>
3957
3958         libunistring: Detect libunistring also when it depends on libiconv.
3959         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
3960         the second AC_LIB_HAVE_LINKFLAGS invocation.
3961
3962 2010-04-11  James Youngman  <jay@gnu.org>
3963
3964         close-stream: declare local scalars to be "const"
3965         * lib/close-stream.c (close_stream): Make boolean variables const
3966         to document the fact that we set but do not change them.
3967
3968 2010-04-11  Bruno Haible  <bruno@clisp.org>
3969
3970         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
3971
3972 2010-04-11  Jim Meyering  <meyering@redhat.com>
3973
3974         maint.mk: don't include dist-check.mk
3975         * top/maint.mk: Remove bogus include directive.
3976
3977         maint.mk: improve empty-line-at-EOF check
3978         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
3979         solution, rather than tail+Perl-based one.  The latter would read
3980         a few kilobytes from the end of each file, and did not handle empty
3981         files properly.
3982
3983         maint.mk: print the elapsed time for each syntax-check rule
3984         * top/maint.mk (sc_m_rules_): Save start time in a file.
3985         (sc_z_rules_): New rules: remove temp file and print elapsed time.
3986         (local-check): Interpose the .z rules
3987
3988 2010-04-11  Jim Meyering  <meyering@redhat.com>
3989
3990         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
3991         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
3992         empty file with one that ends in an empty line.
3993
3994 2010-04-10  Bruno Haible  <bruno@clisp.org>
3995
3996         mkdir: Make it work on mingw64.
3997         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
3998         * lib/mkdir.c: Update comment.
3999         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4000
4001 2010-04-10  Bruno Haible  <bruno@clisp.org>
4002
4003         Don't override improved macro from newer autoconf.
4004         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4005         autoconf >= 2.62.
4006         Reported by Joel E. Denny <jdenny@clemson.edu>.
4007
4008 2010-04-10  Jim Meyering  <meyering@redhat.com>
4009
4010         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4011         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4012
4013         maint.mk: correct a diagnostic
4014         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4015         in diagnostic; now use $prohibit.
4016
4017 2010-04-10  Bruno Haible  <address@hidden>
4018
4019         fchownat: Fix a C++ test error on Solaris 8.
4020         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4021         the function does not exist.
4022
4023 2010-04-10  Bruno Haible  <bruno@clisp.org>
4024
4025         vasnprintf: Add more tests.
4026         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4027         (test_function): Test converting an invalid wide string.
4028
4029         vasnprintf: Correct handling of unconvertible wide string arguments.
4030         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4031         VASNPRINTF.
4032         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4033         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4034         smaller than the expected maximum need for the directive. Set errno to
4035         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4036         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4038         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4039         * modules/vasnprintf (Files): Add m4/printf.m4.
4040         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4041
4042 2010-04-10  Bruno Haible  <bruno@clisp.org>
4043
4044         vasnprintf: Fix crash in %ls directive.
4045         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4046         string is passed as argument to %ls, with no precision and no width.
4047         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4048
4049 2010-04-10  Bruno Haible  <bruno@clisp.org>
4050
4051         vasnprintf: Fix multiple test failures on mingw.
4052         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4053         _snprintf, or snwprintf, not _snwprintf.
4054
4055 2010-04-10  Bruno Haible  <bruno@clisp.org>
4056
4057         write: Fix a C++ test error on mingw.
4058         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4059
4060 2010-04-10  Bruno Haible  <bruno@clisp.org>
4061
4062         vasnprintf test: Reduce code duplication.
4063         * tests/test-vasnprintf.c (test_function): New function, extracted from
4064         test_vasnprintf.
4065         (test_vasnprintf, test_asnprintf): Invoke it.
4066
4067 2010-04-10  Bruno Haible  <bruno@clisp.org>
4068
4069         strnlen: Fix warning in C++ mode on MacOS X.
4070         * lib/string.in.h (strnlen): Use the modern idiom.
4071         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4072         defining strnlen as a macro already in <config.h>.
4073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4074         REPLACE_STRNLEN.
4075         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4076         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4077
4078 2010-04-08  James Youngman  <jay@gnu.org>
4079
4080         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4081         the example.
4082
4083 2010-04-09  Jim Meyering  <meyering@redhat.com>
4084
4085         maint.mk: print better diagnostic when there is no $(_hv_file)
4086         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4087         announce that when $(_hv_file) (aka help-version) does not exist.
4088
4089         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4090         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4091         not try to interpret its random input bytes.  Jarno Rajahalme reported
4092         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4093         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4094         (mktempd_): Likewise, just in case.
4095
4096         ftruncate: add two years to projected module removal date: 2012
4097         * m4/ftruncate.m4: Adjust comments.
4098
4099         ftruncate: mark module as obsolete; even MinGW provides it, now
4100         * modules/ftruncate (Status): Obsolete.
4101         (Notice): Say that.
4102         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4103         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4104
4105 2010-04-08  Bruno Haible  <bruno@clisp.org>
4106
4107         Fix side effects from tests-related modules.
4108         * modules/dprintf-posix (Comment): New section.
4109         * modules/fprintf-posix (Comment): Likewise.
4110         * modules/obstack-printf-posix (Comment): Likewise.
4111         * modules/printf-posix (Comment): Likewise.
4112         * modules/snprintf-posix (Comment): Likewise.
4113         * modules/sprintf-posix (Comment): Likewise.
4114         * modules/vasnprintf-posix (Comment): Likewise.
4115         * modules/vasprintf-posix (Comment): Likewise.
4116         * modules/vdprintf-posix (Comment): Likewise.
4117         * modules/vfprintf-posix (Comment): Likewise.
4118         * modules/vprintf-posix (Comment): Likewise.
4119         * modules/vsnprintf-posix (Comment): Likewise.
4120         * modules/vsprintf-posix (Comment): Likewise.
4121         * modules/xprintf-posix (Comment): Likewise.
4122         * modules/xvasprintf-posix (Comment): Likewise.
4123         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4124         * modules/floorf-tests (Depends-on): Likewise.
4125         * modules/round-tests (Depends-on): Likewise.
4126         * modules/roundf-tests (Depends-on): Likewise.
4127         * modules/trunc-tests (Depends-on): Likewise.
4128         * modules/truncf-tests (Depends-on): Likewise.
4129         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4130         'fprintf-posix' module is not present.
4131         * tests/test-floorf2.c (check): Likewise.
4132         * tests/test-trunc2.c (check): Likewise.
4133         * tests/test-truncf2.c (check): Likewise.
4134         * tests/test-round2.c (equal): Likewise.
4135         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4136
4137 2010-04-07  Karl Berry  <karl@gnu.org>
4138
4139         * config/srclist.txt,
4140         * config/srclistvars.sh,
4141         * config/srclist-update: doc fixes.
4142
4143 2010-04-07  Jim Meyering  <meyering@redhat.com>
4144
4145         maint.mk: add a PATH crosschecking syntax-check rule
4146         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4147         Useful if you use a test like the one in help-version (coreutils,
4148         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4149         printed by prog --version.
4150
4151 2010-04-06  Bruno Haible  <bruno@clisp.org>
4152
4153         Fix link error on mingw.
4154         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4155         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4156
4157 2010-04-06  Bruno Haible  <bruno@clisp.org>
4158
4159         Assume rmdir exists.
4160         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4161
4162 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4163
4164         doc: update users.txt
4165         * users.txt: Add gcal.
4166
4167 2010-04-06  Jim Meyering  <meyering@redhat.com>
4168
4169         init.sh: simply unset TMPDIR rather than risking env -i
4170         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4171         although it probably works fine on all Unix-based systems, some
4172         systems (Cygwin?) cannot tolerate a totally cleared environment.
4173         Suggestion from Eric Blake.
4174
4175 2010-04-06  Jim Meyering  <meyering@redhat.com>
4176
4177         init.sh: portability fix: use env's POSIX-specified -i option not -u
4178         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4179         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4180
4181 2010-04-05  Bruno Haible  <bruno@clisp.org>
4182
4183         btowc: Work around Cygwin 1.7.2 bug.
4184         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4185         does not map NUL to 0.
4186         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4187
4188 2010-04-05  Bruno Haible  <bruno@clisp.org>
4189
4190         Make the multithread modules work on Cygwin 1.7.2.
4191         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4192         imported symbols can be declared weak, so that it returns "no" on
4193         Cygwin 1.7.2.
4194
4195 2010-04-05  Bruno Haible  <bruno@clisp.org>
4196
4197         Use the module 'strncat'.
4198         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4199
4200         Tests for module 'strncat'.
4201         * modules/strncat-tests: New file.
4202         * tests/test-strncat.c: New file.
4203
4204         New module 'strncat'.
4205         * lib/string.in.h (strncat): New declaration.
4206         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4207         * m4/strncat.m4: New file, based on m4/memchr.m4.
4208         * modules/strncat: New file.
4209         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4210         is declared.
4211         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4212         REPLACE_STRNCAT.
4213         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4214         REPLACE_STRNCAT.
4215         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4216         module.
4217         * tests/test-string-c++.cc: Check signature of strncat.
4218
4219 2010-04-05  Jim Meyering  <meyering@redhat.com>
4220
4221         xstrtoumax-tests: convert to use init.sh
4222         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4223         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4224         Use Exit, not exit.
4225         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4226
4227         xstrtoimax-tests: convert to use init.sh
4228         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4229         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4230         Use Exit, not exit.
4231         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4232
4233 2010-04-05  Bruno Haible  <bruno@clisp.org>
4234
4235         sys_socket: Avoid #define replacements in C++ mode.
4236         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4237         warning to the function if possible, rather than #defining the symbol
4238         to a dysfunctional alias.
4239
4240 2010-04-05  Bruno Haible  <bruno@clisp.org>
4241
4242         fseeko: Fix C++ test error on mingw.
4243         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4244         gl_FUNC_FSEEKO.
4245         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4246         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4247         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4248         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4249
4250 2010-04-05  Bruno Haible  <bruno@clisp.org>
4251
4252         duplocale: Improve test output.
4253         * tests/test-duplocale.c (main): Print reason for skipped test.
4254
4255 2010-04-05  Bruno Haible  <bruno@clisp.org>
4256
4257         Assume rmdir exists.
4258         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4259         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4260
4261 2010-04-05  Bruno Haible  <bruno@clisp.org>
4262
4263         Fix link error on Solaris 8 with cc.
4264         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4265
4266 2010-04-05  Bruno Haible  <bruno@clisp.org>
4267
4268         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4269         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4270
4271 2010-04-05  Bruno Haible  <bruno@clisp.org>
4272
4273         vasprintf: Update documentation.
4274         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4275
4276 2010-04-05  Bruno Haible  <bruno@clisp.org>
4277
4278         ptsname: Improve test.
4279         * tests/test-ptsname.c (main): Also try the various master names of BSD
4280         systems.
4281
4282 2010-04-05  Bruno Haible  <bruno@clisp.org>
4283
4284         memchr: Avoid a possible C++ test error.
4285         * lib/string.in.h (memchr): Provide declaration if function is missing.
4286         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4287         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4289         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4290
4291 2010-04-05  Bruno Haible  <bruno@clisp.org>
4292
4293         strtok_r: Improve idiom.
4294         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4295         AC_LIBOBJ is used.
4296
4297 2010-04-05  Bruno Haible  <bruno@clisp.org>
4298
4299         strdup: Improve idiom.
4300         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4301         AC_LIBOBJ is used.
4302         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4303         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4304         when AC_LIBOBJ is used.
4305
4306 2010-04-05  Bruno Haible  <bruno@clisp.org>
4307
4308         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4309         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4310         don't set REPLACE_MBSINIT to 1.
4311         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4312         don't set REPLACE_MBRTOWC to 1.
4313         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4314         exist, don't set REPLACE_MBSRTOWCS to 1.
4315         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4316         exist, don't set REPLACE_MBSNRTOWCS to 1.
4317         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4318         don't set REPLACE_WCRTOMB to 1.
4319         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4320         exist, don't set REPLACE_WCSRTOMBS to 1.
4321         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4322         exist, don't set REPLACE_WCSNRTOMBS to 1.
4323
4324 2010-04-05  Bruno Haible  <bruno@clisp.org>
4325
4326         ldexpl: Improve idiom.
4327         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4328         make sure to set HAVE_DECL_LDEXPL to 0.
4329
4330 2010-04-05  Jim Meyering  <meyering@redhat.com>
4331
4332         xstrtol-tests: convert to use init.sh
4333         * modules/xstrtol-tests (Files): Add tests/init.sh.
4334         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4335         Use Exit, not exit.
4336         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4337
4338         atexit-tests: convert to use init.sh
4339         * modules/atexit-tests (Files): Add tests/init.sh.
4340         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4341         Use Exit, not exit.
4342         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4343
4344         init.sh: fix typo
4345         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4346
4347         init.sh: make it easier for a test script to write to the tty, ...
4348         when using automake's parallel-tests mode.
4349         * tests/init.sh (stderr_fileno_): Define overridable variable.
4350         (warn_): New function, to use it.
4351         (fail_, skip_, framework_failure_): Use warn_.
4352
4353 2010-04-04  Bruno Haible  <bruno@clisp.org>
4354
4355         btowc: Avoid warning.
4356         * lib/btowc.c: Include <stdlib.h>.
4357         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4358
4359 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4360             Bruno Haible  <bruno@clisp.org>
4361
4362         wchar: Port to NetBSD 1.5.
4363         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4364         * lib/wctype.in.h (WEOF): Likewise.
4365
4366 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4367             Bruno Haible  <bruno@clisp.org>
4368
4369         Port extended stdio to NetBSD 1.5.
4370         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4371         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4372         older.
4373
4374 2010-04-04  Bruno Haible  <bruno@clisp.org>
4375
4376         string: Remove unused substitution.
4377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4378         HAVE_DECL_STRERROR.
4379         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4380
4381 2010-04-04  Bruno Haible  <bruno@clisp.org>
4382
4383         strtod: Avoid a possible C++ test error.
4384         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4385         set REPLACE_STRTOD.
4386
4387 2010-04-04  Bruno Haible  <bruno@clisp.org>
4388
4389         strerror: Update documentation.
4390         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4391
4392 2010-04-04  Bruno Haible  <bruno@clisp.org>
4393
4394         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4395         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4396         _GL_CXXALIAS_SYS_CAST.
4397
4398 2010-04-04  Bruno Haible  <bruno@clisp.org>
4399
4400         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4401         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4402         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4403         REPLACE_FREXPL to 1.
4404         * doc/posix-functions/frexpl.texi: Update documentation.
4405
4406 2010-04-04  Bruno Haible  <bruno@clisp.org>
4407
4408         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4409         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4410
4411 2010-04-04  Bruno Haible  <bruno@clisp.org>
4412
4413         Implement nanosleep for native Windows.
4414         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4415
4416 2010-04-04  Bruno Haible  <bruno@clisp.org>
4417
4418         math: Fix some C++ test errors on Solaris 8.
4419         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4420
4421 2010-04-04  Bruno Haible  <bruno@clisp.org>
4422
4423         math: Fix some C++ test errors on Cygwin.
4424         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4425         truncl): Provide declaration if the system does not have it.
4426         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4427         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4428         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4429         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4430         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4431         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4432         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4433         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4434         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4435         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4436         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4437         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4438         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4439         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4440         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4441         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4443         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4444         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4445         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4446         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4447         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4448
4449 2010-04-04  Bruno Haible  <bruno@clisp.org>
4450
4451         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4452         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4453         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4454         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4455         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4456         * m4/isinf.m4 (gl_ISINF): Likewise.
4457         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4458
4459 2010-04-04  Bruno Haible  <bruno@clisp.org>
4460
4461         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4462         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4463
4464 2010-04-04  Bruno Haible  <bruno@clisp.org>
4465
4466         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4467         * modules/tmpfile (configure.ac): Update.
4468
4469         tmpfile: Fix C++ test error on mingw.
4470         * lib/stdio.in.h (tmpfile): New declaration.
4471         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4472         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4473         * modules/tmpfile (Depends-on): Add stdio.
4474         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4475         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4476         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4477         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4478         REPLACE_TMPFILE.
4479         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4480
4481 2010-04-04  Bruno Haible  <bruno@clisp.org>
4482
4483         ioctl: Fix C++ test error on mingw.
4484         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4485         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4486         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4487
4488 2010-04-03  Bruno Haible  <bruno@clisp.org>
4489
4490         wcwidth: Fix C++ test error on mingw.
4491         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4493         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4494
4495 2010-04-03  Bruno Haible  <bruno@clisp.org>
4496
4497         nanosleep: Fix C++ test error on mingw.
4498         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4499         * lib/time.in.h (nanosleep): Use modern idiom.
4500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4501         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4502         REPLACE_NANOSLEEP to 1.
4503         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4504         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4505
4506 2010-04-03  Bruno Haible  <bruno@clisp.org>
4507
4508         strptime: Fix C++ test error on mingw.
4509         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4510         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4511         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4512         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4513         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4514         not REPLACE_STRPTIME.
4515         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4516         REPLACE_STRPTIME.
4517
4518 2010-04-03  Bruno Haible  <bruno@clisp.org>
4519
4520         timegm: Fix C++ test error on mingw.
4521         * lib/time.in.h (timegm): Use modern idiom.
4522         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4523         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4524         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4525         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4526
4527 2010-04-03  Bruno Haible  <bruno@clisp.org>
4528
4529         timegm: Assume declaration if function exists.
4530         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4531         if it exists. Don't clobber ac_cv_func_timegm.
4532
4533 2010-04-03  Bruno Haible  <bruno@clisp.org>
4534
4535         time_r: Fix C++ test error on mingw.
4536         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4537         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4538         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4539         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4540         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4541
4542 2010-04-03  Bruno Haible  <bruno@clisp.org>
4543
4544         time_r: Minor updates.
4545         * modules/time_r (Description): Mention the provided functions.
4546         * lib/time_r.c: Don't include <string.h>.
4547         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4548         * doc/posix-functions/localtime_r.texi: Likewise.
4549
4550 2010-04-03  Bruno Haible  <bruno@clisp.org>
4551
4552         time: Fix regression introduced on 2010-03-08.
4553         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4554         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4555
4556 2010-04-03  Jim Meyering  <meyering@redhat.com>
4557
4558         maint.mk: don't silently disable project-specific syntax-check rules
4559         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4560         that they need to convert their project-specific syntax-check rules
4561         to use the new _sc_search_regexp.
4562
4563 2010-04-03  Bruno Haible  <bruno@clisp.org>
4564
4565         fchdir: Fix regression introduced on 2010-03-08.
4566         * lib/unistd.in.h (fchdir): Fix declaration.
4567         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4569         REPLACE_FCHDIR.
4570         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4571         REPLACE_FCHDIR.
4572
4573 2010-04-03  Bruno Haible  <bruno@clisp.org>
4574
4575         getpagesize: Fix C++ test error on mingw.
4576         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4577         system does not declare the function.
4578         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4579         declared.
4580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4581         HAVE_DECL_GETPAGESIZE.
4582         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4583
4584 2010-04-03  Bruno Haible  <bruno@clisp.org>
4585
4586         stdio: Make C++ tests work on mingw.
4587         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4588         does not declare the function.
4589
4590 2010-04-03  Bruno Haible  <bruno@clisp.org>
4591
4592         ftello: Fix C++ test error on mingw.
4593         * lib/stdio.in.h (ftello): Use modern idiom.
4594         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4595         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4596         is missing and that it needs to be replaced.
4597         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4599         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4600
4601 2010-04-03  Bruno Haible  <bruno@clisp.org>
4602
4603         fseeko: Fix C++ test error on mingw.
4604         * lib/stdio.in.h (fseeko): Use modern idiom.
4605         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4606         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4607         is missing and that it needs to be replaced.
4608         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4610         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4611
4612 2010-04-03  Bruno Haible  <bruno@clisp.org>
4613
4614         mkstemp: Fix C++ test error on mingw.
4615         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4616         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4617         function is missing and that it needs to be replaced.
4618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4619         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4620
4621 2010-04-03  Bruno Haible  <bruno@clisp.org>
4622
4623         stpncpy: Fix C++ test error on mingw.
4624         * lib/string.in.h (stpncpy): Use modern idiom.
4625         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
4626         function is missing and that it needs to be replaced.
4627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4628         REPLACE_STPNCPY.
4629         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
4630
4631 2010-04-03  Bruno Haible  <bruno@clisp.org>
4632
4633         sys_stat: Fix C++ test error on mingw.
4634         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
4635         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
4636
4637 2010-04-03  Bruno Haible  <bruno@clisp.org>
4638
4639         pty: Update doc.
4640         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
4641
4642 2010-04-03  Bruno Haible  <bruno@clisp.org>
4643
4644         unistd: Fix C++ test error on mingw.
4645         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
4646
4647 2010-04-03  Bruno Haible  <bruno@clisp.org>
4648
4649         Update doc regarding mingw.
4650         * doc/glibc-functions/openpty.texi: Update regarding mingw.
4651         * doc/glibc-functions/login_tty.texi: Likewise.
4652         * doc/glibc-functions/forkpty.texi: Likewise.
4653
4654 2010-04-03  Bruno Haible  <bruno@clisp.org>
4655
4656         stdlib: Avoid compilation failure of c-strtold on mingw.
4657         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
4658
4659 2010-04-03  Bruno Haible  <bruno@clisp.org>
4660
4661         locale: Make C++ tests work on Cygwin and mingw.
4662         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
4663         cannot provide the function.
4664         Reported by Simon Josefsson.
4665
4666 2010-04-03  Bruno Haible  <bruno@clisp.org>
4667
4668         localename: Port to MacOS X 10.6.
4669         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
4670         memory layout of the locales in MacOS X 10.6 as well.
4671         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
4672
4673 2010-04-02  Bruno Haible  <bruno@clisp.org>
4674
4675         gnulib-tool: Ensure that long-running tests are executed last.
4676         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
4677         running tests after the one for the other tests.
4678
4679 2010-04-02  Bruno Haible  <bruno@clisp.org>
4680
4681         gnulib-tool: Ensure the tests in the main directory are executed first.
4682         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
4683         start with the current directory.
4684
4685 2010-04-02  Bruno Haible  <bruno@clisp.org>
4686
4687         Tests for module 'havelib', moved here from GNU gettext.
4688         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
4689         modifications.
4690         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
4691         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
4692         with modifications.
4693         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
4694         modifications.
4695         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
4696         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
4697         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
4698         with modifications.
4699         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
4700         with modifications.
4701         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
4702         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
4703         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
4704         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
4705         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
4706         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
4707         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
4708         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
4709         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
4710         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
4711         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
4712         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
4713         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
4714         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
4715         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
4716         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
4717         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
4718         with modifications.
4719         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
4720         with modifications.
4721         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
4722         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
4723         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
4724         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
4725         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
4726         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
4727         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
4728         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
4729         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
4730         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
4731         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
4732         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
4733         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
4734         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
4735         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
4736         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
4737         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
4738         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
4739         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
4740         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
4741         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
4742         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
4743         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
4744         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
4745         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
4746         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
4747         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
4748         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
4749         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
4750         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
4751         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
4752         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
4753         * tests/havelib/rpathx/rpathx.c: New file, from
4754         gettext/autoconf-lib-link.
4755         * tests/havelib/rpathx/Makefile.am: New file, from
4756         gettext/autoconf-lib-link.
4757         * tests/havelib/rpathx/configure.ac: New file, from
4758         gettext/autoconf-lib-link with modifications.
4759         * tests/havelib/rpathy/rpathy.c: New file, from
4760         gettext/autoconf-lib-link.
4761         * tests/havelib/rpathy/Makefile.am: New file, from
4762         gettext/autoconf-lib-link.
4763         * tests/havelib/rpathy/configure.ac: New file, from
4764         gettext/autoconf-lib-link with modifications.
4765         * tests/havelib/rpathz/rpathz.c: New file, from
4766         gettext/autoconf-lib-link.
4767         * tests/havelib/rpathz/Makefile.am: New file, from
4768         gettext/autoconf-lib-link.
4769         * tests/havelib/rpathz/configure.ac: New file, from
4770         gettext/autoconf-lib-link with modifications.
4771         * tests/havelib/rpathlx/usex.c: New file, from
4772         gettext/autoconf-lib-link.
4773         * tests/havelib/rpathlx/Makefile.am: New file, from
4774         gettext/autoconf-lib-link.
4775         * tests/havelib/rpathlx/configure.ac: New file, from
4776         gettext/autoconf-lib-link with modifications.
4777         * tests/havelib/rpathly/usey.c: New file, from
4778         gettext/autoconf-lib-link.
4779         * tests/havelib/rpathly/Makefile.am: New file, from
4780         gettext/autoconf-lib-link.
4781         * tests/havelib/rpathly/configure.ac: New file, from
4782         gettext/autoconf-lib-link with modifications.
4783         * tests/havelib/rpathlz/usez.c: New file, from
4784         gettext/autoconf-lib-link.
4785         * tests/havelib/rpathlz/Makefile.am: New file, from
4786         gettext/autoconf-lib-link.
4787         * tests/havelib/rpathlz/configure.ac: New file, from
4788         gettext/autoconf-lib-link with modifications.
4789         * tests/havelib/rpathlyx/usey.c: New file, from
4790         gettext/autoconf-lib-link.
4791         * tests/havelib/rpathlyx/Makefile.am: New file, from
4792         gettext/autoconf-lib-link.
4793         * tests/havelib/rpathlyx/configure.ac: New file, from
4794         gettext/autoconf-lib-link with modifications.
4795         * tests/havelib/rpathlzyx/usez.c: New file, from
4796         gettext/autoconf-lib-link.
4797         * tests/havelib/rpathlzyx/Makefile.am: New file, from
4798         gettext/autoconf-lib-link.
4799         * tests/havelib/rpathlzyx/configure.ac: New file, from
4800         gettext/autoconf-lib-link with modifications.
4801         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
4802         with modifications.
4803
4804 2010-04-02  Bruno Haible  <bruno@clisp.org>
4805
4806         gnulib-tool: Create distributed built sources also for the tests.
4807         * gnulib-tool (func_create_testdir): Also generate distributed built
4808         sources in the tests directory.
4809
4810 2010-04-02  Bruno Haible  <bruno@clisp.org>
4811
4812         gnulib-tool: Obey user's environment variables.
4813         * gnulib-tool (func_create_testdir): When creating built sources,
4814         respect the environment variables for autoconf, automake, etc. given by
4815         the user.
4816
4817 2010-04-02  Bruno Haible  <bruno@clisp.org>
4818
4819         gnulib-tool: Provide the value of --m4-base to modules.
4820         * gnulib-tool (func_import, func_create_testdir): Emit a definition
4821         of gl_m4_base.
4822
4823 2010-04-02  Eric Blake  <eblake@redhat.com>
4824
4825         maint.mk: fix some fallout
4826         * NEWS: Document the incompatible change, and its effect on cfg.mk.
4827         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
4828
4829 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
4830
4831         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
4832         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
4833         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
4834         (sc_cast_of_x_alloc_return_value): Likewise.
4835         (sc_cast_of_alloca_return_value): Likewise.
4836         (sc_space_tab): Likewise.
4837         (sc_prohibit_atoi_atof): Likewise.
4838         (sc_prohibit_magic_number_exit): Likewise.
4839         (sc_error_exit_success): Likewise.
4840         (sc_file_system): Likewise.
4841         (sc_prohibit_have_config_h): Likewise.
4842         (sc_require_config_h): Likewise.
4843         (sc_prohibit_HAVE_MBRTOWC): Likewise.
4844         (sc_obsolete_symbols): Likewise.
4845         (sc_changelog): Likewise.
4846         (sc_program_name): Likewise.
4847         (sc_the_the): Likewise.
4848         (sc_trailing_blank): Likewise.
4849         (sc_two_space_separator_in_usage): Likewise.
4850         (sc_useless_cpp_parens): Likewise.
4851         (sc_GPL_version): Likewise.
4852         (sc_GFDL_version): Likewise.
4853         (sc_texinfo_acronym): Likewise.
4854         (sc_prohibit_cvs_keyword): Likewise.
4855         (sc_prohibit_stat_st_blocks): Likewise.
4856         (sc_prohibit_S_IS_definition): Likewise.
4857         (sc_redundant_const): Likewise.
4858         (sc_makefile_TAB_only_indentation): Likewise.
4859         (sc_m4_quote_check): Likewise.
4860         (sc_makefile_path_separator_check): Likewise.
4861         (sc_copyright_check): Likewise.
4862         (sc_Wundef_boolean): Likewise.
4863         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4864
4865         maint.mk: match 0 or more whitespace-before-function-call '('
4866         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
4867         that have zero or two-and-more spaces between the function name
4868         and the open parenthesis.
4869         (sc_error_message_warn_fatal): Likewise.
4870         (sc_error_message_uppercase): Likewise.
4871         (sc_error_message_period): Likewise.
4872
4873 2010-03-31  Eric Blake  <eblake@redhat.com>
4874
4875         maint.mk: check for [ as well as test
4876         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
4877         Based on a libvirt report by Matthias Bolte.
4878
4879         gnumakefile: don't squelch _version output
4880         * top/GNUmakefile (_version): Create one-shot dependency rather
4881         than using $(shell) when version must be regenerated.
4882         (_autoreconf): Run verbosely, by default.
4883
4884         sys_time: avoid compiler warnings
4885         * lib/sys_time.in.h (includes): Ensure gcc pragma is
4886         unconditional, fixing regression from 2010-03-29.
4887         Reported by Simon Josefsson.
4888
4889 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
4890
4891         maint.mk: s/_header_without_use/_sc_header_without_use/
4892         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
4893         (sc_prohibit_assert_without_use): Use the new name.
4894         (sc_prohibit_close_stream_without_use): Likewise.
4895         (sc_prohibit_getopt_without_use): Likewise.
4896         (sc_prohibit_quotearg_without_use): Likewise.
4897         (sc_prohibit_quote_without_use): Likewise.
4898         (sc_prohibit_long_options_without_use): Likewise.
4899         (sc_prohibit_inttostr_without_use): Likewise.
4900         (sc_prohibit_ignore_value_without_use): Likewise.
4901         (sc_prohibit_error_without_use): Likewise.
4902         (sc_prohibit_xalloc_without_use): Likewise.
4903         (sc_prohibit_hash_without_use): Likewise.
4904         (sc_prohibit_hash_pjw_without_use): Likewise.
4905         (sc_prohibit_safe_read_without_use): Likewise.
4906         (sc_prohibit_argmatch_without_use): Likewise.
4907         (sc_prohibit_canonicalize_without_use): Likewise.
4908         (sc_prohibit_root_dev_ino_without_use): Likewise.
4909         (sc_prohibit_openat_without_use): Likewise.
4910         (sc_prohibit_c_ctype_without_use): Likewise.
4911         (sc_prohibit_signal_without_use): Likewise.
4912         (sc_prohibit_intprops_without_use): Likewise.
4913
4914 2010-03-30  Eric Blake  <eblake@redhat.com>
4915
4916         maint: improve module indicators
4917         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
4918         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
4919         columns, and avoid extra macro expansion.
4920
4921         fdopendir: work around FreeBSD bug
4922         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
4923         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
4924         * modules/dirent (Makefile.am): Substitute it.
4925         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
4926         declaration.
4927         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
4928         fix.
4929         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4930
4931 2010-03-29  Bruno Haible  <bruno@clisp.org>
4932
4933         Emit #pragma system_header after the inclusion guard, not before.
4934         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
4935         guard that spans the entire file, not before. This enables an
4936         optimization in GCC's preprocessor.
4937         * lib/ctype.in.h: Likewise.
4938         * lib/dirent.in.h: Likewise.
4939         * lib/errno.in.h: Likewise.
4940         * lib/float.in.h: Likewise.
4941         * lib/getopt.in.h: Likewise.
4942         * lib/iconv.in.h: Likewise.
4943         * lib/langinfo.in.h: Likewise.
4944         * lib/locale.in.h: Likewise.
4945         * lib/math.in.h: Likewise.
4946         * lib/netdb.in.h: Likewise.
4947         * lib/netinet_in.in.h: Likewise.
4948         * lib/pty.in.h: Likewise.
4949         * lib/sched.in.h: Likewise.
4950         * lib/se-selinux.in.h: Likewise.
4951         * lib/search.in.h: Likewise.
4952         * lib/spawn.in.h: Likewise.
4953         * lib/stdarg.in.h: Likewise.
4954         * lib/stdint.in.h: Likewise.
4955         * lib/string.in.h: Likewise.
4956         * lib/strings.in.h: Likewise.
4957         * lib/sys_file.in.h: Likewise.
4958         * lib/sys_ioctl.in.h: Likewise.
4959         * lib/sys_time.in.h: Likewise.
4960         * lib/sys_times.in.h: Likewise.
4961         * lib/sys_utsname.in.h: Likewise.
4962         * lib/sys_wait.in.h: Likewise.
4963         * lib/sysexits.in.h: Likewise.
4964         * lib/wctype.in.h: Likewise.
4965
4966 2010-03-28  James Youngman  <jay@gnu.org>
4967
4968         save-cwd: don't leak a file descriptor when the caller execs.
4969         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
4970         saved file descriptor.
4971         * modules/save-cwd (Depends-on): Depend on cloexec.
4972
4973 2010-03-29  Bruno Haible  <bruno@clisp.org>
4974
4975         Remove vestiges of fts-lgpl module.
4976         * lib/fts_.h: Assume GNULIB_FTS is 1.
4977         * lib/fts.c: Likewise.
4978         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4979
4980 2010-03-28  Bruno Haible  <bruno@clisp.org>
4981
4982         Fix definition of tests witness macro.
4983         * gnulib-tool (func_import): Fix definition of witness macro.
4984
4985 2010-03-28  Bruno Haible  <bruno@clisp.org>
4986
4987         Fix ioctl's protoype on glibc systems.
4988         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
4989         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
4990         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
4991         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
4992         signature. If not, arrange to replace the ioctl function.
4993         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
4994         REPLACE_IOCTL.
4995         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
4996         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
4997         Reported by Ludovic Courtès <ludo@gnu.org>.
4998
4999 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5000
5001         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5002         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5003         made it so grep -r --include=GLOB* ... did not work.
5004
5005 2010-03-26  Jim Meyering  <meyering@redhat.com>
5006             Eric Blake  <eblake@redhat.com>
5007
5008         maint.mk: prohibit use of test's -o and -a operators
5009         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5010
5011 2010-03-28  Bruno Haible  <bruno@clisp.org>
5012
5013         Remove unused GNULIB_XYZ macro definitions.
5014         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5015         invocation.
5016
5017 2010-03-28  Bruno Haible  <bruno@clisp.org>
5018
5019         Mark privileged tests modules.
5020         * modules/idpriv-drop-tests (Status): New section.
5021         * modules/idpriv-droptemp-tests (Status): New section.
5022
5023 2010-03-28  Bruno Haible  <bruno@clisp.org>
5024
5025         Split C++ tests into separate tests modules.
5026         * modules/dirent-c++-tests: New file, extracted from
5027         modules/dirent-tests.
5028         * modules/dirent-tests: Depend on it.
5029         * modules/fcntl-h-c++-tests: New file, extracted from
5030         modules/fcntl-h-tests.
5031         * modules/fcntl-h-tests: Depend on it.
5032         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5033         * modules/glob-tests: Depend on it.
5034         * modules/iconv-h-c++-tests: New file, extracted from
5035         modules/iconv-h-tests.
5036         * modules/iconv-h-tests: Depend on it.
5037         * modules/langinfo-c++-tests: New file, extracted from
5038         modules/langinfo-tests.
5039         * modules/langinfo-tests: Depend on it.
5040         * modules/locale-c++-tests: New file, extracted from
5041         modules/locale-tests.
5042         * modules/locale-tests: Depend on it.
5043         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5044         * modules/math-tests: Depend on it.
5045         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5046         * modules/pty-tests: Depend on it.
5047         * modules/search-c++-tests: New file, extracted from
5048         modules/search-tests.
5049         * modules/search-tests: Depend on it.
5050         * modules/signal-c++-tests: New file, extracted from
5051         modules/signal-tests.
5052         * modules/signal-tests: Depend on it.
5053         * modules/spawn-c++-tests: New file, extracted from
5054         modules/spawn-tests.
5055         * modules/spawn-tests: Depend on it.
5056         * modules/stdio-c++-tests: New file, extracted from
5057         modules/stdio-tests.
5058         * modules/stdio-tests: Depend on it.
5059         * modules/stdlib-c++-tests: New file, extracted from
5060         modules/stdlib-tests.
5061         * modules/stdlib-tests: Depend on it.
5062         * modules/string-c++-tests: New file, extracted from
5063         modules/string-tests.
5064         * modules/string-tests: Depend on it.
5065         * modules/sys_ioctl-c++-tests: New file, extracted from
5066         modules/sys_ioctl-tests.
5067         * modules/sys_ioctl-tests: Depend on it.
5068         * modules/sys_select-c++-tests: New file, extracted from
5069         modules/sys_select-tests.
5070         * modules/sys_select-tests: Depend on it.
5071         * modules/sys_socket-c++-tests: New file, extracted from
5072         modules/sys_socket-tests.
5073         * modules/sys_socket-tests: Depend on it.
5074         * modules/sys_stat-c++-tests: New file, extracted from
5075         modules/sys_stat-tests.
5076         * modules/sys_stat-tests: Depend on it.
5077         * modules/sys_time-c++-tests: New file, extracted from
5078         modules/sys_time-tests.
5079         * modules/sys_time-tests: Depend on it.
5080         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5081         * modules/time-tests: Depend on it.
5082         * modules/unistd-c++-tests: New file, extracted from
5083         modules/unistd-tests.
5084         * modules/unistd-tests: Depend on it.
5085         * modules/wchar-c++-tests: New file, extracted from
5086         modules/wchar-tests.
5087         * modules/wchar-tests: Depend on it.
5088         * modules/wctype-c++-tests: New file, extracted from
5089         modules/wctype-tests.
5090         * modules/wctype-tests: Depend on it.
5091         Reported by Simon Josefsson.
5092
5093 2010-03-28  Bruno Haible  <bruno@clisp.org>
5094
5095         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5096         * gnulib-tool (func_exists_module): New function, extracted from
5097         func_verify_module.
5098         (func_verify_module): Use it.
5099         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5100         'foo' only if 'foo' exists.
5101         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5102         module.
5103
5104 2010-03-28  Bruno Haible  <bruno@clisp.org>
5105
5106         gnulib-tool: Add support for special categories of tests.
5107         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5108         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5109         (func_usage): Document them.
5110         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5111         inc_unportable_tests, inc_all_tests): New variables.
5112         (func_acceptable): Consider these variables.
5113         (func_modules_transitive_closure): Make it work when the 'Status' field
5114         consists of multiple words.
5115         (func_import): Store and restore the values of inc_cxx_tests,
5116         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5117         inc_all_tests in gnulib-comp.m4.
5118         (func_create_testdir): Set inc_all_tests to true.
5119         * doc/gnulib.texi (Extra tests modules): New section.
5120         Suggested by Jim Meyering.
5121
5122 2010-03-28  Bruno Haible  <bruno@clisp.org>
5123
5124         ansi-c++-opt: Allow turning off the C++ build by default.
5125         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5126         gl_CXX_CHOICE_DEFAULT_NO is defined.
5127         Requested by Eric Blake.
5128
5129 2010-03-28  Bruno Haible  <bruno@clisp.org>
5130
5131         unistd: Avoid #define replacements in C++ mode.
5132         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5133         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5134         setsockopt, shutdown, select): In C++, attach a warning to the function
5135         if possible, rather than #defining the symbol to a dysfunctional alias.
5136         Reported by John W. Eaton <jwe@gnu.org>.
5137
5138 2010-03-28  Bruno Haible  <bruno@clisp.org>
5139
5140         Fix link errors on mingw.
5141         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5142         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5143         $(LIBSOCKET).
5144         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5145         $(LIBSOCKET).
5146
5147 2010-03-28  Bruno Haible  <bruno@clisp.org>
5148             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5149
5150         lib-ignore: Determine different options for different compilers.
5151         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5152         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5153         Add comments.
5154         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5155         * NEWS: Mention the change.
5156
5157 2010-03-27  Bruno Haible  <bruno@clisp.org>
5158
5159         Remove unused GNULIB_XYZ macro definitions.
5160         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5161         * modules/fseek (configure.ac): Likewise.
5162         * modules/ioctl (configure.ac): Likewise.
5163         * modules/open (configure.ac): Likewise.
5164         * modules/stdlib-safer (configure.ac): Likewise.
5165
5166 2010-03-27  Bruno Haible  <bruno@clisp.org>
5167
5168         Add a remark about certain modules.
5169         * modules/malloc (Comment): New section.
5170         * modules/realloc (Comment): Likewise.
5171         * modules/sigpipe (Comment): Likewise.
5172
5173 2010-03-27  Bruno Haible  <bruno@clisp.org>
5174
5175         Resolve conflict between the two kinds of module indicators.
5176         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5177         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5178         * modules/canonicalize (configure.ac): Invoke
5179         gl_MODULE_INDICATOR_FOR_TESTS.
5180         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5181         GNULIB_XYZ.
5182         * tests/test-dirent-c++.cc: Likewise.
5183         * tests/test-dirent-safer.c: Likewise.
5184         * tests/test-dup2.c: Likewise.
5185         * tests/test-fchdir.c: Likewise.
5186         * tests/test-fcntl-h-c++.cc: Likewise.
5187         * tests/test-getopt.c: Likewise.
5188         * tests/test-getopt.h: Likewise.
5189         * tests/test-langinfo-c++.cc: Likewise.
5190         * tests/test-locale-c++.cc: Likewise.
5191         * tests/test-math-c++.cc: Likewise.
5192         * tests/test-pty-c++.cc: Likewise.
5193         * tests/test-search-c++.cc: Likewise.
5194         * tests/test-signal-c++.cc: Likewise.
5195         * tests/test-spawn-c++.cc: Likewise.
5196         * tests/test-stdio-c++.cc: Likewise.
5197         * tests/test-stdlib-c++.cc: Likewise.
5198         * tests/test-string-c++.cc: Likewise.
5199         * tests/test-sys_ioctl-c++.cc: Likewise.
5200         * tests/test-sys_select-c++.cc: Likewise.
5201         * tests/test-sys_socket-c++.cc: Likewise.
5202         * tests/test-sys_stat-c++.cc: Likewise.
5203         * tests/test-sys_time-c++.cc: Likewise.
5204         * tests/test-time-c++.cc: Likewise.
5205         * tests/test-unistd-c++.cc: Likewise.
5206         * tests/test-wchar-c++.cc: Likewise.
5207         * tests/uninorm/test-u8-nfc.c: Likewise.
5208         * tests/uninorm/test-u8-nfd.c: Likewise.
5209         * tests/uninorm/test-u8-nfkc.c: Likewise.
5210         * tests/uninorm/test-u8-nfkd.c: Likewise.
5211         * tests/uninorm/test-u16-nfc.c: Likewise.
5212         * tests/uninorm/test-u16-nfd.c: Likewise.
5213         * tests/uninorm/test-u16-nfkc.c: Likewise.
5214         * tests/uninorm/test-u16-nfkd.c: Likewise.
5215         * tests/uninorm/test-u32-nfc.c: Likewise.
5216         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5217         * tests/uninorm/test-u32-nfd.c: Likewise.
5218         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5219         * tests/uninorm/test-u32-nfkc.c: Likewise.
5220         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5221         * tests/uninorm/test-u32-nfkd.c: Likewise.
5222         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5223         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5224
5225 2010-03-27  Bruno Haible  <bruno@clisp.org>
5226
5227         Distinguish two kinds of module indicators.
5228         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5229         gl_MODULE_INDICATOR.
5230         (gl_MODULE_INDICATOR): New macro.
5231         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5232         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5233         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5234         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5235         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5236         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5237         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5238         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5239         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5240         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5241         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5242         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5243         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5244         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5245         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5246         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5247         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5248         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5249         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5250         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5251         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5252         * modules/cloexec (configure.ac): Likewise.
5253         * modules/getopt-gnu (configure.ac): Likewise.
5254         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5255         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5256         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5257         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5258
5259 2010-03-27  Bruno Haible  <bruno@clisp.org>
5260
5261         New module description field 'Comment'.
5262         * gnulib-tool: New option --extract-comment.
5263         (func_usage): Document it.
5264         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5265         (func_get_comment): New function.
5266         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5267
5268 2010-03-27  Bruno Haible  <bruno@clisp.org>
5269
5270         Addendum to 2010-02-07 commit.
5271         * gnulib-tool (func_usage): Document --extract-applicability option.
5272
5273 2010-03-27  Bruno Haible  <bruno@clisp.org>
5274
5275         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5276         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5277         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5278         rather than link errors.
5279
5280 2010-03-27  Bruno Haible  <bruno@clisp.org>
5281
5282         Avoid side effects from tests-related modules on the compilation of lib.
5283         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5284         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5285         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5286         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5287         macro.
5288         (func_import): Define a witness macro. Assign it a value that depends
5289         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5290         tests-related modules.
5291         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5292         Reported by Jim Meyering.
5293
5294 2010-03-27  Bruno Haible  <bruno@clisp.org>
5295
5296         Factorize common .m4 code.
5297         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5298         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5299         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5300         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5301         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5302         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5303         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5304         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5305         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5306         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5307         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5308         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5309         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5310         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5311         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5312         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5313         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5314         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5316         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5317         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5318         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5319         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5321         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5322         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5323         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5324         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5325         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5326         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5327         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5328         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5329
5330 2010-03-27  Bruno Haible  <bruno@clisp.org>
5331
5332         Fix a compilation error on Cygwin with g++ >= 4.3.
5333         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5334         if it is undefined or if we alias it to chmod.
5335         (lstat): Don't warn about the use of this function if it is undefined
5336         or if we alias it to stat.
5337         Reported by Simon Josefsson.
5338
5339 2010-03-27  Bruno Haible  <bruno@clisp.org>
5340
5341         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5342         * modules/getlogin (configure.ac): Update.
5343
5344         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5345         * modules/getlogin_r (configure.ac): Update.
5346
5347         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5349         * modules/inet_ntop (configure.ac): Update.
5350
5351         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5352         * modules/inet_pton (configure.ac): Update.
5353
5354         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5355         * modules/mbslen (configure.ac): Update.
5356
5357         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5358         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5359         * modules/forkpty (configure.ac): Update.
5360         * modules/openpty (configure.ac): Update.
5361
5362 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5363
5364         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5365         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5366
5367 2010-03-25  Eric Blake  <eblake@redhat.com>
5368
5369         maint: use pragma consistently across replacement headers
5370         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5371         * lib/dirent.in.h (system_header): Likewise.
5372         * lib/errno.in.h (system_header): Likewise.
5373         * lib/float.in.h (system_header): Likewise.
5374         * lib/getopt.in.h (system_header): Likewise.
5375         * lib/iconv.in.h (system_header): Likewise.
5376         * lib/inttypes.in.h (system_header): Likewise.
5377         * lib/langinfo.in.h (system_header): Likewise.
5378         * lib/locale.in.h (system_header): Likewise.
5379         * lib/math.in.h (system_header): Likewise.
5380         * lib/netdb.in.h (system_header): Likewise.
5381         * lib/netinet_in.in.h (system_header): Likewise.
5382         * lib/pty.in.h (system_header): Likewise.
5383         * lib/sched.in.h (system_header): Likewise.
5384         * lib/se-selinux.in.h (system_header): Likewise.
5385         * lib/search.in.h (system_header): Likewise.
5386         * lib/spawn.in.h (system_header): Likewise.
5387         * lib/stdarg.in.h (system_header): Likewise.
5388         * lib/stdint.in.h (system_header): Likewise.
5389         * lib/string.in.h (system_header): Likewise.
5390         * lib/strings.in.h (system_header): Likewise.
5391         * lib/sys_file.in.h (system_header): Likewise.
5392         * lib/sys_ioctl.in.h (system_header): Likewise.
5393         * lib/sys_socket.in.h (system_header): Likewise.
5394         * lib/sys_times.in.h (system_header): Likewise.
5395         * lib/sys_utsname.in.h (system_header): Likewise.
5396         * lib/sys_wait.in.h (system_header): Likewise.
5397         * lib/sysexits.in.h (system_header): Likewise.
5398         * lib/unistd.in.h (system_header): Likewise.
5399         * lib/wctype.in.h (system_header): Likewise.
5400
5401         arpa/inet: fix mingw compilation warning
5402         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5403         Reported by Matthew Bolte.
5404
5405 2010-03-25  Bruno Haible  <bruno@clisp.org>
5406
5407         Avoid collision between gnulib wrapper and libintl wrapper.
5408         * lib/printf.c (printf): Don't define if a printf wrapper is already
5409         defined in intl/printf.c.
5410         Reported by Michel Boaventura <michel@michelboaventura.com>.
5411
5412 2010-03-25  Bruno Haible  <bruno@clisp.org>
5413
5414         Use ANSI C.
5415         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5416
5417 2010-03-25  Bruno Haible  <bruno@clisp.org>
5418
5419         Minor formatting changes.
5420         * lib/acosl.c: Insert space before function argument list.
5421         * lib/argz.c: Likewise.
5422         * lib/asinl.c: Likewise.
5423         * lib/expl.c: Likewise.
5424         * lib/gen-uni-tables.c: Likewise.
5425         * lib/gettext.h: Likewise.
5426         * lib/glthread/lock.h: Likewise.
5427         * lib/tanl.c: Likewise.
5428         * lib/uniname/uniname.c: Likewise.
5429         * tests/test-idpriv-drop.c: Likewise.
5430         * tests/test-idpriv-droptemp.c: Likewise.
5431         * tests/test-lock.c: Likewise.
5432         * tests/test-tls.c: Likewise.
5433         * lib/argp-help.c: Insert space before function-like macro argument
5434         list.
5435         * lib/memcmp.c: Likewise.
5436         * tests/test-base64.c: Likewise.
5437         * lib/localename.c: Insert space before sizeof's argument list.
5438         * lib/safe-alloc.h: Likewise.
5439         * lib/file-set.h: Insert space before macro argument list.
5440         * tests/test-argp.c: Likewise.
5441         * lib/argp-namefrob.h: Insert space before function parameter list.
5442         * lib/getaddrinfo.c: Likewise.
5443         * lib/netdb.in.h: Likewise.
5444         * lib/parse-duration.h: Likewise.
5445         * lib/parse-duration.c: Likewise.
5446         * lib/poll.c: Likewise.
5447         * lib/select.c: Likewise.
5448         * lib/trim.h: Likewise.
5449         * tests/test-usleep.c: Likewise.
5450         * lib/ldexpl.c: Insert space before function parameter list and before
5451         function argument list.
5452         * lib/logl.c: Likewise.
5453         * lib/sqrtl.c: Likewise.
5454         * lib/trim.c: Likewise.
5455         * lib/cosl.c: Use GNU style indentation. Insert space before function
5456         argument list.
5457         * lib/sinl.c: Likewise.
5458         * lib/tsearch.c: Insert space after 'for'.
5459         Reported by Jim Meyering.
5460
5461 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5462
5463         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5464         config header before grepping, as it's not present before
5465         autoreconf/configure are run.  Reported by Simon Josefsson.
5466
5467 2010-03-23  Bruno Haible  <bruno@clisp.org>
5468
5469         pt_chown: Make it work with automake < 1.11.
5470         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5471         Reported by Simon Josefsson.
5472
5473 2010-03-23  Bruno Haible  <bruno@clisp.org>
5474
5475         pt_chown: Don't depend on GPLed modules.
5476         * lib/pt_chown.c: Don't include idpriv.h.
5477         (main): Don't drop privileges.
5478         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5479         Reported by Simon Josefsson.
5480
5481 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5482
5483         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5484         suggestions from karl@freefriends.org (Karl Berry).
5485
5486 2010-03-22  Eric Blake  <eblake@redhat.com>
5487
5488         gethostname: further tweaks
5489         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5490         are overriding gethostname.
5491         Suggested by Bruno Haible.
5492
5493 2010-03-21  Bruno Haible  <bruno@clisp.org>
5494
5495         Fix comments.
5496         * lib/forkpty.c (rpl_forkpty): Fix comment.
5497         * lib/openpty.c (rpl_openpty): Likewise.
5498         Reported by Eric Blake.
5499
5500 2010-03-22  Eric Blake  <eblake@redhat.com>
5501
5502         gethostname: fix build on mingw
5503         * lib/unistd.in.h (includes): Work around fact that mingw
5504         <winsock2.h> re-includes <unistd.h>, by avoiding any
5505         redeclarations if we are being included by <winsock2.h>.
5506         Reported by Matthias Bolte.
5507
5508 2010-03-21  Bruno Haible  <bruno@clisp.org>
5509
5510         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5511         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5512         modifications.
5513         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5514         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5515         provide the replacement.
5516         * modules/forkpty (Depends-on): Add openpty, login_tty.
5517         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5518         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5519         * doc/glibc-functions/forkpty.texi: More supported platforms.
5520         * config/srclist.txt: Add forkpty.c (commented).
5521
5522 2010-03-21  Bruno Haible  <bruno@clisp.org>
5523
5524         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5525         (Makefile.am): Verify that PTY_LIB is defined.
5526
5527         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5528
5529 2010-03-21  Bruno Haible  <bruno@clisp.org>
5530
5531         Tests for module 'login_tty'.
5532         * modules/login_tty-tests: New file.
5533         * tests/test-login_tty.c: New file.
5534
5535         New module 'login_tty'.
5536         * lib/login_tty.c: New file.
5537         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5538         * modules/login_tty: New file.
5539         * doc/glibc-functions/login_tty.texi: Mention the new module.
5540
5541 2010-03-21  Bruno Haible  <bruno@clisp.org>
5542
5543         login_tty: Documentation.
5544         * doc/glibc-functions/login_tty.texi: New file.
5545         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5546
5547 2010-03-21  Bruno Haible  <bruno@clisp.org>
5548
5549         pty: Consistent macro naming.
5550         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5551         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5552         * modules/pty (configure.ac): Update.
5553
5554 2010-03-21  Bruno Haible  <bruno@clisp.org>
5555
5556         Tests for openpty: Make stricter.
5557         * tests/test-openpty.c (main): Add test of canonical processing and
5558         erase.
5559         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5560
5561         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5562         * lib/openpty.c (openpty): New replacement function.
5563         * lib/pty.in.h: Include <termios.h>.
5564         (openpty): Update declaration. Add comments.
5565         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5566         is not declared, arrange to provide the replacement. Check for _getpty
5567         and posix_openpt.
5568         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5569         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5570         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5571         * modules/pty-tests (test_pty_c___LDADD): New variable.
5572         * doc/glibc-functions/openpty.texi: More supported platforms.
5573
5574 2010-03-21  Bruno Haible  <bruno@clisp.org>
5575
5576         setenv: Tweaks.
5577         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5578         the test program.
5579         * doc/posix-functions/setenv.texi: Update platforms list.
5580
5581 2010-03-21  Bruno Haible  <bruno@clisp.org>
5582
5583         New module 'unlockpt'.
5584         * lib/unlockpt.c: New file, from glibc with modifications.
5585         * m4/unlockpt.m4: New file.
5586         * modules/unlockpt: New file.
5587         * lib/stdlib.in.h (unlockpt): New declaration.
5588         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5589         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5590         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5591         HAVE_UNLOCKPT.
5592         * doc/posix-functions/unlockpt.texi: Mention the new module.
5593         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5594         * config/srclist.txt: Add unlockpt.c (commented).
5595
5596 2010-03-21  Jim Meyering  <meyering@redhat.com>
5597
5598         maint.mk: prohibit inclusion of "intprops.h" without use
5599         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5600
5601 2010-03-21  Bruno Haible  <bruno@clisp.org>
5602
5603         New module 'grantpt'.
5604         * lib/grantpt.c: New file, from glibc with modifications.
5605         * m4/grantpt.m4: New file.
5606         * modules/grantpt: New file.
5607         * lib/stdlib.in.h (grantpt): New declaration.
5608         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5609         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5610         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5611         HAVE_GRANTPT.
5612         * doc/posix-functions/grantpt.texi: Mention the new module.
5613         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5614         * config/srclist.txt: Add grantpt.c (commented).
5615
5616 2010-03-21  Bruno Haible  <bruno@clisp.org>
5617
5618         New module 'pt_chown'.
5619         * lib/pt_chown.c: New file, from glibc with modifications.
5620         * lib/pty-private.h: New file, from glibc with modifications.
5621         * modules/pt_chown: New file.
5622         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5623
5624 2010-03-21  Bruno Haible  <bruno@clisp.org>
5625
5626         Tests for module 'ptsname'.
5627         * modules/ptsname-tests: New file.
5628         * tests/test-ptsname.c: New file.
5629
5630         New module 'ptsname'.
5631         * lib/ptsname.c: New file, from glibc with modifications.
5632         * m4/ptsname.m4: New file.
5633         * modules/ptsname: New file.
5634         * lib/stdlib.in.h (ptsname): New declaration.
5635         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
5636         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
5637         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
5638         HAVE_PTSNAME.
5639         * doc/posix-functions/ptsname.texi: Mention the new module.
5640         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
5641         * config/srclist.txt: Add ptsname.c (commented).
5642
5643 2010-03-21  Bruno Haible  <bruno@clisp.org>
5644
5645         Tests for module 'ttyname_r'.
5646         * modules/ttyname_r-tests: New file.
5647         * tests/test-ttyname_r.c: New file.
5648
5649         New module 'ttyname_r'.
5650         * lib/ttyname_r.c: New file.
5651         * m4/ttyname_r.m4: New file.
5652         * modules/ttyname_r: New file.
5653         * lib/unistd.in.h (ttyname_r): New declaration.
5654         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
5655         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
5656         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
5657         HAVE_TTYNAME_R.
5658         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
5659         * doc/posix-functions/ttyname_r.texi: Mention the new module.
5660
5661 2010-03-20  Bruno Haible  <bruno@clisp.org>
5662
5663         signal: Undefine macro definitions in C++ mode.
5664         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
5665         sigfillset): Undefine macro definitions from the system header in C++
5666         mode.
5667         Reported by John W. Eaton <jwe@gnu.org>.
5668
5669 2010-03-20  Bruno Haible  <bruno@clisp.org>
5670
5671         Ensure no #include statements inside extern "C" { ... }.
5672         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
5673         contain #include statements.
5674         * lib/time.in.h: Likewise.
5675
5676 2010-03-20  Bruno Haible  <bruno@clisp.org>
5677
5678         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
5679         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
5680         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
5681         Reported by John W. Eaton <jwe@gnu.org>.
5682
5683 2010-03-20  Bruno Haible  <bruno@clisp.org>
5684
5685         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
5686         Reported by Jim Meyering.
5687
5688 2010-03-20  Bruno Haible  <bruno@clisp.org>
5689
5690         pipe: Set errno upon failure.
5691         * lib/pipe.h: Specify that when -1 is returned, errno is set.
5692         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
5693         errno value in error message.
5694
5695 2010-03-20  Bruno Haible  <bruno@clisp.org>
5696             Jim Meyering  <meyering@redhat.com>
5697
5698         lchown: Avoid "unused variable" warning.
5699         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
5700
5701 2010-03-20  Bruno Haible  <bruno@clisp.org>
5702
5703         Work around unlink() bug on MacOS X 10.5.6.
5704         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
5705         attempting to unlink a parent directory.
5706         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
5707         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
5708         activate for the replacement function.
5709         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
5710
5711 2010-03-20  Bruno Haible  <bruno@clisp.org>
5712
5713         Fix link errors on Solaris 8.
5714         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
5715         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
5716
5717 2010-03-19  Jim Meyering  <meyering@redhat.com>
5718
5719         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
5720         The _LIBC implementation of build_range_exp correctly honors the
5721         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
5722         However, the non-_LIBC implementation would ignore that syntax-bit
5723         flag and return REG_ERANGE unconditionally.
5724         This change makes it honor that flag.
5725         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
5726         Make two pointer parameters "const".
5727         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
5728         (parse_bracket_exp): Update caller.
5729
5730         regex.m4: correct the reversed range endpoint ([b-a]) test
5731         * m4/regex.m4: When requiring that [b-a] evoke failure,
5732         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
5733         test pass once again for x86-based systems.
5734
5735 2010-03-19  Bruno Haible  <bruno@clisp.org>
5736
5737         scandir: Fix link error on Solaris 8.
5738         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
5739         macros.
5740
5741 2010-03-19  Bruno Haible  <bruno@clisp.org>
5742
5743         getusershell: Fix documentation.
5744         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
5745         module.
5746         * doc/glibc-functions/setusershell.texi: Likewise.
5747
5748         getusershell: Provide declaration, missing on Solaris 9.
5749         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
5750         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
5751         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
5752         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
5753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5754         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
5755         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
5756         HAVE_GETUSERSHELL.
5757         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
5758
5759 2010-03-19  Bruno Haible  <bruno@clisp.org>
5760
5761         wctype: Provide iswblank function.
5762         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
5763         exists and is fine.
5764         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
5765         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
5766         * tests/test-wctype.c (main): Re-enable the iswblank tests.
5767         * doc/posix-functions/iswblank.texi: Update.
5768
5769 2010-03-19  Bruno Haible  <bruno@clisp.org>
5770
5771         Tests of module 'pty' in C++ mode.
5772         * modules/pty-tests: New file.
5773         * tests/test-pty-c++.cc: New file.
5774         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5775
5776 2010-03-19  Eric Blake  <eblake@redhat.com>
5777
5778         logb: fix documentation
5779         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
5780         1.5 declaration bug.
5781
5782         forkpty, openpty: prefer glibc's const-safe prototype
5783         * lib/forkpty.c (rpl_forkpty): New file.
5784         * lib/openpty.c (rpl_openpty): Likewise.
5785         * modules/forkpty (Files): Distribute it.
5786         * modules/openpty (Files): Likewise.
5787         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
5788         check...
5789         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
5790         replacement for for non-const BSD signature.
5791         * modules/pty (Makefile.am): Substitute witnesses.
5792         * lib/pty.in.h (forkpty, openpty): Declare replacements.
5793         * tests/test-forkpty.c: Update signature check.
5794         * tests/test-openpty.c: Likewise.
5795         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
5796         * doc/glibc-functions/openpty.texi (openpty): Likewise.
5797
5798         forkpty, openpty: split functions into new modules
5799         * modules/pty (Makefile.am): Substitute new witnesses.
5800         (Libraries): Move library detection...
5801         * modules/forkpty: ...into new module.
5802         * modules/openpty: Another new module.
5803         * modules/pty-tests: Rename and split...
5804         * modules/forkpty-tests: ...to this...
5805         * modules/openpty-tests: ...and this.
5806         * tests/test-pty.c: Rename and split...
5807         * tests/test-forkpty.c: ...to this...
5808         * tests/test-openpty.c: ...and this.
5809         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
5810         (gl_PTY): Split library searching...
5811         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
5812         (gl_FORKPTY, gl_OPENPTY): New macros.
5813         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
5814         * NEWS: Mention the split.
5815         * MODULES.html.sh (Misc): Document the modules.
5816         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
5817         * doc/glibc-functions/openpty.texi (openpty): Likewise.
5818
5819         pty: improve replacement header
5820         * lib/pty.in.h: New file.
5821         * modules/pty (Files): Ship it.
5822         (Makefile.am): Always build replacement.
5823         * m4/pty.m4: Rename...
5824         * m4/pty_h.m4: ...to this.
5825         (gl_PTY): Modernize setting of witness macros; update check of
5826         forkpty to take proper advantage of cache.
5827         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
5828
5829         getopt: avoid compiler warning
5830         * lib/getopt.c (attribute_hidden): Remove unused macro.
5831
5832 2010-03-18  Bruno Haible  <bruno@clisp.org>
5833
5834         Fix link errors on Solaris 8.
5835         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
5836         * modules/search-tests (test_search_c___LDADD): Likewise.
5837         * modules/signal-tests (test_signal_c___LDADD): Likewise.
5838         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
5839         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
5840         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
5841         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
5842         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
5843         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
5844
5845 2010-03-18  Bruno Haible  <bruno@clisp.org>
5846
5847         Fix bug introduced on 2010-03-14.
5848         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
5849         (gl_SPAWN_H): Require it.
5850         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
5851         Reported by Simon Josefsson.
5852
5853 2010-03-18  Bruno Haible  <bruno@clisp.org>
5854
5855         Fix typo introduced on 2009-12-31.
5856         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
5857         posix_spawn_file_actions_adddup2.
5858
5859 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
5860         and Eric Blake  <eblake@redhat.com>
5861
5862         test-vc-list-files-git: make more robust
5863         * tests/test-vc-list-files-git.sh: Unset problematic environment
5864         variables.  Chain commands together.
5865
5866 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
5867
5868         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
5869         `AC_CHECK_DECL' invocation.
5870
5871 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
5872
5873         * lib/inttostr.c (inttostr): Make sure the invocation of verify
5874         appears before executable statements. Suggested by Petr Sumbera
5875         <Petr.Sumbera@Sun.COM>.
5876
5877 2010-03-14  Bruno Haible  <bruno@clisp.org>
5878
5879         * tests/test-flock.c (test_exclusive): Comment out a test that causes
5880         portability problems. Instead use a simpler test.
5881         (main): Check that invalid arguments are rejected only on Linux.
5882
5883 2010-03-14  Bruno Haible  <bruno@clisp.org>
5884
5885         Fix bug introduced on 2009-12-31.
5886         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5887         gl_PREREQ_SYS_H_WINSOCK2 always.
5888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
5889         SYS_SOCKET_H variable.
5890         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
5891         Update comments.
5892         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
5893         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5894         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5895         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5896         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5897
5898 2010-03-14  Bruno Haible  <bruno@clisp.org>
5899
5900         Fix values returned by sinl, cosl.
5901         * lib/trigl.h: Add specification comments.
5902         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
5903         that combines the values from the precomputed table with the values of
5904         the Chebyshev polynomials.
5905
5906 2010-03-14  Bruno Haible  <bruno@clisp.org>
5907
5908         Fix compilation error when modules 'posix_spawn[p]' are not used.
5909         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
5910         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
5911
5912 2010-03-14  Bruno Haible  <bruno@clisp.org>
5913
5914         Fix compilation error on mingw when module 'time_r' is not used.
5915         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
5916         is 1.
5917         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
5918         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5919         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
5920         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
5921
5922 2010-03-14  Bruno Haible  <bruno@clisp.org>
5923
5924         Fix compilation error with Sun C.
5925         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
5926         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
5927         instead of GCC specific ULONG_LONG_MAX.
5928         * lib/xstrtoll.c: Likewise.
5929         * lib/xstrtoull.c: Likewise.
5930
5931 2010-03-13  Bruno Haible  <bruno@clisp.org>
5932
5933         Allow the user to disable C++ code and tests.
5934         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
5935         (gl_PROG_ANSI_CXX): Require it.
5936
5937 2010-03-13  Bruno Haible  <bruno@clisp.org>
5938
5939         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
5940         cases.
5941
5942 2010-03-13  Bruno Haible  <bruno@clisp.org>
5943
5944         Test that gnulib does not break the standard C++ headers.
5945         * tests/test-locale-c++2.cc: New file.
5946         * modules/locale-tests (Files): Add it.
5947         (Makefile.am): Compile it for test-locale-c++.
5948         * tests/test-math-c++2.cc: New file.
5949         * modules/math-tests (Files): Add it.
5950         (Makefile.am): Compile it for test-math-c++.
5951         * tests/test-signal-c++2.cc: New file.
5952         * modules/signal-tests (Files): Add it.
5953         (Makefile.am): Compile it for test-signal-c++.
5954         * tests/test-stdio-c++2.cc: New file.
5955         * modules/stdio-tests (Files): Add it.
5956         (Makefile.am): Compile it for test-stdio-c++.
5957         * tests/test-stdlib-c++2.cc: New file.
5958         * modules/stdlib-tests (Files): Add it.
5959         (Makefile.am): Compile it for test-stdlib-c++.
5960         * tests/test-string-c++2.cc: New file.
5961         * modules/string-tests (Files): Add it.
5962         (Makefile.am): Compile it for test-string-c++.
5963         * tests/test-time-c++2.cc: New file.
5964         * modules/time-tests (Files): Add it.
5965         (Makefile.am): Compile it for test-time-c++.
5966         Reported by John W. Eaton <jwe@gnu.org>.
5967
5968 2010-03-13  Bruno Haible  <bruno@clisp.org>
5969
5970         * gnulib-tool (func_usage): Clarify which options are available for
5971         --create-testdir and --create-megatestdir.
5972
5973 2010-03-13  Bruno Haible  <bruno@clisp.org>
5974
5975         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
5976         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
5977         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
5978         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5979         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
5980         when appropriate.
5981         Reported by Jim Meyering.
5982
5983 2010-03-12  Simon Josefsson  <simon@josefsson.org>
5984
5985         * gnulib-tool (func_import): Explain origin of code.
5986
5987 2010-03-12  Bruno Haible  <bruno@clisp.org>
5988
5989         Fix problem with automake's definition of CXXLINK.
5990         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
5991         Reported by Simon Josefsson and Ludovic Courtès.
5992
5993 2010-03-12  Bruno Haible  <bruno@clisp.org>
5994
5995         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
5996         stable releases.
5997
5998 2010-03-11  Bruno Haible  <bruno@clisp.org>
5999
6000         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6001         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6002         whether the system provides one variant or multiple variants of the
6003         function.
6004         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6005         C++ compilers.
6006         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6007         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6008         Reported by Jim Meyering.
6009
6010 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6011
6012         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6013
6014 2010-03-08  Bruno Haible  <bruno@clisp.org>
6015
6016         gnulib-tool: Add support for --libtool in --create-testdir.
6017         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6018         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6019
6020 2010-03-08  Eric Blake  <eblake@redhat.com>
6021
6022         gnulib-tool.texi: mention possibility of git submodule
6023         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6024         submodules.
6025         * doc/.gitignore: Ignore another generated file.
6026
6027 2010-03-08  Karl Berry  <karl@gnu.org>
6028
6029         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6030         of committing gnulib files while skipping others.
6031
6032 2010-03-07  Bruno Haible  <bruno@clisp.org>
6033
6034         Tests of module 'wctype' in C++ mode.
6035         * tests/test-wctype-c++.cc: New file.
6036         * modules/wctype-tests (Files): Add it and tests/signature.h.
6037         (Depends-on): Add ansi-c++-opt.
6038         (Makefile.am): Arrange to compile and run test-wctype-c++.
6039
6040         Tests of module 'wchar' in C++ mode.
6041         * tests/test-wchar-c++.cc: New file.
6042         * modules/wchar-tests (Files): Add it and tests/signature.h.
6043         (Depends-on): Add ansi-c++-opt.
6044         (Makefile.am): Arrange to compile and run test-wchar-c++.
6045         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6046         gl_MODULE_INDICATOR.
6047
6048         Tests of module 'unistd' in C++ mode.
6049         * tests/test-unistd-c++.cc: New file.
6050         * modules/unistd-tests (Files): Add it and tests/signature.h.
6051         (Depends-on): Add ansi-c++-opt.
6052         (Makefile.am): Arrange to compile and run test-unistd-c++.
6053         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6054         gl_MODULE_INDICATOR.
6055
6056         Tests of module 'time' in C++ mode.
6057         * tests/test-time-c++.cc: New file.
6058         * modules/time-tests (Files): Add it and tests/signature.h.
6059         (Depends-on): Add ansi-c++-opt.
6060         (Makefile.am): Arrange to compile and run test-time-c++.
6061         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6062
6063         Tests of module 'sys_time' in C++ mode.
6064         * tests/test-sys_time-c++.cc: New file.
6065         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6066         (Depends-on): Add ansi-c++-opt.
6067         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6068         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6069         gl_MODULE_INDICATOR.
6070
6071         Tests of module 'sys_stat' in C++ mode.
6072         * tests/test-sys_stat-c++.cc: New file.
6073         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6074         (Depends-on): Add ansi-c++-opt.
6075         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6076         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6077         gl_MODULE_INDICATOR.
6078
6079         Tests of module 'sys_socket' in C++ mode.
6080         * tests/test-sys_socket-c++.cc: New file.
6081         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6082         (Depends-on): Add ansi-c++-opt.
6083         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6084         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6085         gl_MODULE_INDICATOR.
6086
6087         Tests of module 'sys_select' in C++ mode.
6088         * tests/test-sys_select-c++.cc: New file.
6089         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6090         (Depends-on): Add ansi-c++-opt.
6091         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6092         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6093         gl_MODULE_INDICATOR.
6094
6095         Tests of module 'sys_ioctl' in C++ mode.
6096         * tests/test-sys_ioctl-c++.cc: New file.
6097         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6098         (Depends-on): Add ansi-c++-opt.
6099         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6100         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6101         gl_MODULE_INDICATOR.
6102
6103         Tests of module 'string' in C++ mode.
6104         * tests/test-string-c++.cc: New file.
6105         * modules/string-tests (Files): Add it and tests/signature.h.
6106         (Depends-on): Add ansi-c++-opt.
6107         (Makefile.am): Arrange to compile and run test-string-c++.
6108         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6109         gl_MODULE_INDICATOR.
6110
6111         Tests of module 'stdlib' in C++ mode.
6112         * tests/test-stdlib-c++.cc: New file.
6113         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6114         (Depends-on): Add ansi-c++-opt.
6115         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6116         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6117         gl_MODULE_INDICATOR.
6118
6119         Tests of module 'stdio' in C++ mode.
6120         * tests/test-stdio-c++.cc: New file.
6121         * modules/stdio-tests (Files): Add it and tests/signature.h.
6122         (Depends-on): Add ansi-c++-opt.
6123         (Makefile.am): Arrange to compile and run test-stdio-c++.
6124         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6125         gl_MODULE_INDICATOR.
6126
6127         Tests of module 'spawn' in C++ mode.
6128         * tests/test-spawn-c++.cc: New file.
6129         * modules/spawn-tests (Files): Add it and tests/signature.h.
6130         (Depends-on): Add ansi-c++-opt.
6131         (Makefile.am): Arrange to compile and run test-spawn-c++.
6132         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6133         gl_MODULE_INDICATOR.
6134
6135         Tests of module 'signal' in C++ mode.
6136         * tests/test-signal-c++.cc: New file.
6137         * modules/signal-tests (Files): Add it and tests/signature.h.
6138         (Depends-on): Add ansi-c++-opt.
6139         (Makefile.am): Arrange to compile and run test-signal-c++.
6140         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6141         gl_MODULE_INDICATOR.
6142
6143         Tests of module 'search' in C++ mode.
6144         * tests/test-search-c++.cc: New file.
6145         * modules/search-tests (Files): Add it and tests/signature.h.
6146         (Depends-on): Add ansi-c++-opt.
6147         (Makefile.am): Arrange to compile and run test-search-c++.
6148         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6149         gl_MODULE_INDICATOR.
6150
6151         Tests of module 'math' in C++ mode.
6152         * tests/test-math-c++.cc: New file.
6153         * modules/math-tests (Files): Add it and tests/signature.h.
6154         (Depends-on): Add ansi-c++-opt.
6155         (Makefile.am): Arrange to compile and run test-math-c++.
6156         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6157
6158         Tests of module 'locale' in C++ mode.
6159         * tests/test-locale-c++.cc: New file.
6160         * modules/locale-tests (Files): Add it and tests/signature.h.
6161         (Depends-on): Add ansi-c++-opt.
6162         (Makefile.am): Arrange to compile and run test-locale-c++.
6163         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6164         gl_MODULE_INDICATOR.
6165
6166         Tests of module 'langinfo' in C++ mode.
6167         * tests/test-langinfo-c++.cc: New file.
6168         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6169         (Depends-on): Add ansi-c++-opt.
6170         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6171         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6172         gl_MODULE_INDICATOR.
6173
6174         Tests of module 'iconv-h' in C++ mode.
6175         * tests/test-iconv-h-c++.cc: New file.
6176         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6177         (Depends-on): Add ansi-c++-opt.
6178         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6179
6180         Tests of module 'glob' in C++ mode.
6181         * tests/test-glob-c++.cc: New file.
6182         * modules/glob-tests (Files): Add it.
6183         (Depends-on): Add ansi-c++-opt.
6184         (Makefile.am): Arrange to compile and run test-glob-c++.
6185
6186         Tests of module 'fcntl-h' in C++ mode.
6187         * tests/test-fcntl-h-c++.cc: New file.
6188         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6189         (Depends-on): Add ansi-c++-opt.
6190         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6191         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6192         gl_MODULE_INDICATOR.
6193
6194         Tests of module 'dirent' in C++ mode.
6195         * tests/test-dirent-c++.cc: New file.
6196         * modules/dirent-tests (Files): Add it and tests/signature.h.
6197         (Depends-on): Add ansi-c++-opt.
6198         (Makefile.am): Arrange to compile and run test-dirent-c++.
6199         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6200         gl_MODULE_INDICATOR.
6201
6202         New module 'ansi-c++-opt'.
6203         * modules/ansi-c++-opt: New file.
6204         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6205
6206         Document C++ namespace mode.
6207         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6208
6209         wctype: Avoid #define replacements in C++ mode.
6210         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6211         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6212         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6213         In C++, define a namespaced alias symbol.
6214         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6215         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6216         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6217         rule.
6218
6219         wchar: Avoid #define replacements in C++ mode.
6220         * lib/wchar.in.h: Include c++defs.h.
6221         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6222         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6223         symbol.
6224         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6225         * modules/wchar (Depends-on): Add c++defs.
6226         (Makefile.am): Update wchar.h rule.
6227
6228         unistd: Avoid #define replacements in C++ mode.
6229         * lib/unistd.in.h: Include c++defs.h.
6230         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6231         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6232         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6233         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6234         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6235         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6236         symbol.
6237         (environ): Update.
6238         * modules/unistd (Depends-on): Add c++defs.
6239         (Makefile.am): Update unistd.h rule.
6240
6241         time: Avoid #define replacements in C++ mode.
6242         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6243         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6244         define a namespaced alias symbol.
6245         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6246         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6247         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6248         * modules/time (Depends-on): Add c++defs, warn-on-use.
6249         (Makefile.am): Update time.h rule.
6250         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6251         * modules/nanosleep (configure.ac): Likewise.
6252         * modules/strptime (configure.ac): Likewise.
6253         * modules/timegm (configure.ac): Likewise.
6254
6255         sys_time: Avoid #define replacements in C++ mode.
6256         * lib/sys_time.in.h: Include c++defs.h.
6257         (gettimeofday): In C++, define a namespaced alias symbol.
6258         * modules/sys_time (Depends-on): Add c++defs.
6259         (Makefile.am): Update sys/time.h rule.
6260
6261         sys_stat: Avoid #define replacements in C++ mode.
6262         * lib/sys_stat.in.h: Include c++defs.h.
6263         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6264         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6265         namespaced alias symbol.
6266         In C++, define a namespaced alias symbol.
6267         * modules/sys_stat (Depends-on): Add c++defs.
6268         (Makefile.am): Update sys/stat.h rule.
6269
6270         sys_socket: Avoid #define replacements in C++ mode.
6271         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6272         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6273         definitions also when the system has a <sys/socket.h>.
6274         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6275         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6276         In C++, define a namespaced alias symbol.
6277         * modules/sys_socket (Depends-on): Add c++defs.
6278         (Makefile.am): Update sys/socket.h rule.
6279
6280         sys_select: Avoid #define replacements in C++ mode.
6281         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6282         definitions also when the system has a <sys/select.h>.
6283         (select): In C++, define a namespaced alias symbol.
6284         * modules/sys_select (Depends-on): Add c++defs.
6285         (Makefile.am): Update sys/select.h rule.
6286
6287         sys_ioctl: Avoid #define replacements in C++ mode.
6288         * lib/sys_ioctl.in.h: Include c++defs.h.
6289         (ioctl): In C++, define a namespaced alias symbol.
6290         * modules/sys_ioctl (Depends-on): Add c++defs.
6291         (Makefile.am): Update sys/ioctl.h rule.
6292
6293         string: Avoid #define replacements in C++ mode.
6294         * lib/string.in.h: Include c++defs.h.
6295         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6296         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6297         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6298         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6299         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6300         * modules/string (Depends-on): Add c++defs.
6301         (Makefile.am): Update string.h rule.
6302
6303         stdlib: Avoid #define replacements in C++ mode.
6304         * lib/stdlib.in.h: Include c++defs.h.
6305         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6306         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6307         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6308         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6309         symbol.
6310         * modules/stdlib (Depends-on): Add c++defs.
6311         (Makefile.am): Update stdlib.h rule.
6312
6313         stdio: Avoid #define replacements in C++ mode.
6314         * lib/stdio.in.h: Include c++defs.h.
6315         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6316         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6317         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6318         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6319         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6320         namespaced alias symbol.
6321         * modules/stdio (Depends-on): Add c++defs.
6322         (Makefile.am): Update stdio.h rule.
6323
6324         spawn: Avoid #define replacements in C++ mode.
6325         * lib/spawn.in.h: Include c++defs.h.
6326         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6327         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6328         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6329         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6330         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6331         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6332         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6333         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6334         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6335         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6336         In C++, define a namespaced alias symbol.
6337         * modules/spawn (Depends-on): Add c++defs.
6338         (Makefile.am): Update spawn.h rule.
6339
6340         signal: Avoid #define replacements in C++ mode.
6341         * lib/signal.in.h: Include c++defs.h.
6342         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6343         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6344         namespaced alias symbol.
6345         * modules/signal (Depends-on): Add c++defs.
6346         (Makefile.am): Update signal.h rule.
6347
6348         search: Avoid #define replacements in C++ mode.
6349         * lib/search.in.h: Include c++defs.h.
6350         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6351         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6352         symbol.
6353         * modules/search (Depends-on): Add c++defs.
6354         (Makefile.am): Update search.h rule.
6355
6356         math: Avoid #define replacements in C++ mode.
6357         * lib/math.in.h: Include c++defs.h.
6358         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6359         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6360         trunc, truncl): In C++, define a namespaced alias symbol.
6361         * modules/math (Depends-on): Add c++defs.
6362         (Makefile.am): Update math.h rule.
6363
6364         locale: Avoid #define replacements in C++ mode.
6365         * lib/locale.in.h: Include c++defs.h.
6366         (duplocale): In C++, define a namespaced alias symbol.
6367         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6368         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6369         * modules/locale (Depends-on): Add c++defs.
6370         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6371
6372         langinfo: Avoid #define replacements in C++ mode.
6373         * lib/langinfo.in.h: Include c++defs.h.
6374         (nl_langinfo): In C++, define a namespaced alias symbol.
6375         * modules/langinfo (Depends-on): Add c++defs.
6376         (Makefile.am): Update langinfo.h rule.
6377
6378         iconv-h: Avoid #define replacements in C++ mode.
6379         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6380         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6381         symbol.
6382         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6383         whenever iconv is present.
6384         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6385         (Makefile.am): Update iconv.h rule.
6386
6387         glob: Avoid #define replacements in C++ mode.
6388         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6389         (_gl_glob_errfunc_fn): New type.
6390         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6391         symbol.
6392         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6393         (Makefile.am): Update glob.h rule.
6394
6395         fcntl-h: Avoid #define replacements in C++ mode.
6396         * lib/fcntl.in.h: Include c++defs.h.
6397         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6398         * modules/fcntl-h (Depends-on): Add c++defs.
6399         (Makefile.am): Update fcntl.h rule.
6400
6401         dirent: Avoid #define replacements in C++ mode.
6402         * lib/dirent.in.h: Include c++defs.h.
6403         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6404         namespaced alias symbol.
6405         (dirfd): Update declaration.
6406         * modules/dirent (Depends-on): Add c++defs.
6407         (Makefile.am): Update dirent.h rule.
6408
6409         ctype: Make it usable in C++ code.
6410         * lib/ctype.in.h: Include c++defs.h.
6411         (isblank): Declare as extern "C".
6412         * modules/ctype (Depends-on): Add c++defs.
6413         (Makefile.am): Update ctype.h rule.
6414
6415         New module 'c++defs'.
6416         * modules/c++defs: New file.
6417         * build-aux/c++defs.h: New file.
6418         Reported by John W. Eaton <jwe@gnu.org>.
6419
6420 2010-03-07  Bruno Haible  <bruno@clisp.org>
6421
6422         logb: Provide missing declaration for Cygwin.
6423         * lib/math.in.h (logb): New declaration.
6424         * m4/logb.m4: New file.
6425         * modules/logb (Files): Add m4/logb.m4.
6426         (Depends-on): Add math.
6427         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6428         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6430         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6431         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6432
6433 2010-03-07  Bruno Haible  <bruno@clisp.org>
6434
6435         Fix test-cond link error.
6436         * tests/test-cond.c: Include <stdio.h>.
6437
6438 2010-03-07  Bruno Haible  <bruno@clisp.org>
6439
6440         Fix test-dirent-safer link error.
6441         * modules/dirent-safer-tests (Makefile.am): Define
6442         test_dirent_safer_LDADD.
6443
6444 2010-03-07  Bruno Haible  <bruno@clisp.org>
6445
6446         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6447         among default module list.
6448
6449 2010-03-07  Bruno Haible  <bruno@clisp.org>
6450
6451         Fix link error on platforms with GNU libiconv.
6452         * modules/unistr/u8-strcoll-tests (Makefile): Define
6453         test_u8_strcoll_LDADD.
6454         * modules/unistr/u16-strcoll-tests (Makefile): Define
6455         test_u16_strcoll_LDADD.
6456         * modules/unistr/u32-strcoll-tests (Makefile): Define
6457         test_u32_strcoll_LDADD.
6458
6459 2010-03-07  Bruno Haible  <bruno@clisp.org>
6460
6461         Use POSIX declarations for socket functions.
6462         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6463         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6464         rpl_sendto): Change declaration to match POSIX.
6465         * lib/connect.c (rpl_connect): Likewise.
6466         * lib/accept.c (rpl_accept): Likewise.
6467         * lib/bind.c (rpl_bind): Likewise.
6468         * lib/getpeername.c (rpl_getpeername): Likewise.
6469         * lib/getsockname.c (rpl_getsockname): Likewise.
6470         * lib/recv.c (rpl_recv): Likewise.
6471         * lib/send.c (rpl_send): Likewise.
6472         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6473         * lib/sendto.c (rpl_sendto): Likewise.
6474
6475 2010-03-06  Bruno Haible  <bruno@clisp.org>
6476
6477         Clarify access, euidaccess, faccessat.
6478         * doc/posix-functions/faccessat.texi: Mention security problem under
6479         "Other problems", not "Portability problems".
6480         * doc/posix-functions/access.texi: Likewise. Mention a related security
6481         problem.
6482         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6483         * lib/euidaccess.c: Add comments about platforms.
6484         * lib/unistd.in.h (access, euidaccess): Add warnings.
6485
6486 2010-03-07  Bruno Haible  <bruno@clisp.org>
6487
6488         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6489         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6490         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6491         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6492         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6493         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6494         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6495         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6496         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6497         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6498         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6499         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6500         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6501         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6502         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6503         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6504         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6505         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6506         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6507         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6508         Likewise.
6509         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6510         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6511         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6512         Likewise.
6513         * tests/test-spawn.c (main): Make it work when
6514         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6515
6516 2010-03-07  Bruno Haible  <bruno@clisp.org>
6517
6518         Fix incorrect Makefile.am generation in German locale.
6519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6520         Execute sed command with character range in C locale.
6521
6522 2010-03-06  Bruno Haible  <bruno@clisp.org>
6523
6524         Tests for module 'iconv-h'.
6525         * modules/iconv-h-tests: New file.
6526         * tests/test-iconv-h.c: New file.
6527
6528         New module 'iconv-h'.
6529         * modules/iconv-h: New file.
6530         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6531         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6532         (configure.ac): Remove gl_ICONV_H.
6533         (Makefile.am): Remove rule for iconv.h.
6534
6535 2010-03-06  Bruno Haible  <bruno@clisp.org>
6536
6537         More consistent naming of *.m4 files.
6538         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6539         * modules/wctype (Files): Update.
6540
6541         More consistent naming of *.m4 files.
6542         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6543         * modules/wchar (Files): Update.
6544
6545 2010-03-06  Jim Meyering  <meyering@redhat.com>
6546
6547         euidaccess: relax license to LGPLv2+
6548         * modules/euidaccess (License): Relax to LGPLv2+.
6549
6550 2010-03-06  Bruno Haible  <bruno@clisp.org>
6551
6552         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6553         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6554         (Makefile.am): Augment lib_SOURCES instead.
6555
6556 2010-03-04  Jim Meyering  <meyering@redhat.com>
6557
6558         utime: remove obsolete module
6559         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6560         unnecessary for years, and has been marked as obsolete for 10 months.
6561         * modules/utime: Remove file.
6562         * lib/utime.c: Remove file.
6563         * m4/utime.m4: Remove file.
6564         * m4/utimes-null.m4: Remove file.
6565         * doc/posix-functions/utime.texi (utime): Remove reference to
6566         the module.  Move the sole "fixed by gnulib" item into the
6567         "problems not fixed by Gnulib" list.
6568         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6569
6570 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6571
6572         * modules/exit (License): Relax license to LGPLv2+.
6573         (Status): Mark as obsolete.
6574         * NEWS: Mention deprecated 'exit' module.
6575         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6576         of now obsolete 'exit'.
6577
6578 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6579
6580         fts-lgpl: remove unused module
6581         * modules/fts-lgpl: Remove.
6582         * MODULES.html.sh (func_all_modules): Adjust.
6583         * check-module (find_included_lib_files): Adjust.
6584         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6585
6586 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6587
6588         copy-acl: enhance Solaris ACL error handling
6589         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6590         * lib/set-mode-acl.c (qset_acl): Likewise.
6591
6592 2010-03-02  Bruno Haible  <bruno@clisp.org>
6593
6594         spawn: Don't override the system defined values on FreeBSD 8.
6595         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6596         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6597         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6598         if HAVE_POSIX_SPAWN is 1.
6599         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6600
6601 2010-03-01  Bruno Haible  <bruno@clisp.org>
6602
6603         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6604         regarding Automake.
6605
6606 2010-02-25  Bruno Haible  <bruno@clisp.org>
6607
6608         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6609         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6610         setting, not afterwards.
6611         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6612
6613 2010-02-24  Eric Blake  <eblake@redhat.com>
6614
6615         bootstrap, git-version-gen: use timestamp
6616         * build-aux/git-version-gen (scriptversion): Force UTC.
6617         * build-aux/bootstrap (scriptversion): New variable.
6618
6619         bootstrap: allow older git
6620         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6621         older than 1.6.4.  Requested by the libvirt project.
6622
6623 2010-02-23  Eric Blake  <eblake@redhat.com>
6624
6625         warn-on-use: work with old autoconf
6626         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
6627         AS_VAR semantics of autoconf 2.60.
6628         Reported by Bruno Haible.
6629
6630         bootstrap: improve some comments
6631         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
6632         clarification comments.
6633
6634         gettimeofday: provide correct function
6635         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
6636         when replacement is declared, otherwise provide gettimeofday.
6637         Reported by Michael Goffioul.
6638
6639 2010-02-23  Jim Meyering  <meyering@redhat.com>
6640
6641         lib-ignore: relax license to "unlimited", not LGPLv2+
6642         * modules/lib-ignore (License): Relax to "unlimited".
6643
6644 2010-02-23  Jim Meyering  <meyering@redhat.com>
6645
6646         lib-ignore: relax license to LGPLv2+
6647         * modules/lib-ignore (License): Relax to LGPLv2+.
6648
6649 2010-02-22  Eric Blake  <eblake@redhat.com>
6650
6651         lseek: avoid bash 3.2 broken pipe bug
6652         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
6653         warning from bash 3.2.
6654         Reported by Ben Pfaff, with analysis from Bruno Haible.
6655
6656         bootstrap: support non-FSF copyright holder
6657         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
6658         bootstrap.conf override of COPYRIGHT_HOLDER.
6659         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
6660
6661         bootstrap: interoperate with gettext 0.14.1
6662         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
6663
6664         bootstrap: allow for alternate submodule location
6665         * build-aux/bootstrap (gnulib_path): New variable; use instead of
6666         hardcoding submodule location.
6667         (gnulib_mk): Allow direct use of Makefile.am.
6668
6669         bootstrap: use GNULIB_SRCDIR to reduce disk usage
6670         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
6671         rather than reconfiguring where the submodule points.
6672
6673         gettimeofday: restore support for platforms that lack function
6674         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
6675         replacement if function is missing.
6676         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
6677         * modules/sys_time (Makefile.am): Substitute it.
6678         * lib/sys_time.in.h (gettimeofday): Check it.
6679         Reported by Michael Goffioul.
6680
6681 2010-02-21  Bruno Haible  <bruno@clisp.org>
6682
6683         * lib/stdio.in.h (obstack_printf): Fix typo.
6684
6685 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
6686
6687         vc-list-files: use bzr ls's -R option
6688         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
6689         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
6690
6691 2010-02-21  Jim Meyering  <meyering@redhat.com>
6692
6693         init.sh: fix EXEEXT shims to work also for names like test-prog
6694         * tests/init.sh: Re-exec a better shell, when needed.
6695         If the current shell lacks support for posix $(...), an init.sh-using
6696         test will now try to find a shell that supports that.  If EXEEXT is
6697         nonempty, we also require support for hyphen-in-alias-name and shell
6698         substitutions like ${var#glob}.  Failure to find such a shell results
6699         in a skipped test.
6700
6701 2010-02-21  Bruno Haible  <bruno@clisp.org>
6702
6703         Really work around around "broken pipe" error message from bash 3.2.
6704         * gnulib-tool (func_reset_sigpipe): Remove function.
6705         (echo): In bash 3.2, define to a function that uses printf.
6706         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
6707
6708 2010-02-20  Bruno Haible  <bruno@clisp.org>
6709
6710         Restore support for automake 1.9.6 with autoconf 2.61.
6711         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
6712         Reported by James Youngman <jay@gnu.org>.
6713
6714 2010-02-20  Bruno Haible  <bruno@clisp.org>
6715
6716         Improve *printf warning condition.
6717         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
6718         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
6719         and the function is overridden due to SIGPIPE emulation.
6720
6721 2010-02-20  Bruno Haible  <bruno@clisp.org>
6722
6723         * lib/stdio.in.h: Tweak comments.
6724
6725 2010-02-19  Bruno Haible  <bruno@clisp.org>
6726
6727         Make it easier to find modules. New gnulib-tool option '--find'.
6728         * gnulib-tool: New option --find.
6729         (func_usage): Document it.
6730         (func_sanitize_modulelist): New function, extracted from
6731         func_all_modules.
6732         (func_all_modules): Invoke it.
6733         * doc/gnulib-tool.texi (Which modules?): New node.
6734
6735 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
6736
6737         * lib/sys_select.in.h: Provide select replacement even if
6738         sys/select.h exists on a system, for Interix.
6739
6740 2010-02-18  Jim Meyering  <meyering@redhat.com>
6741
6742         init.sh: don't use $(...) just yet
6743         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
6744         to accommodate e.g., Solaris' /bin/sh.
6745
6746 2010-02-17  Bruno Haible  <bruno@clisp.org>
6747
6748         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
6749         Reported by Ludovic Courtès <ludo@gnu.org>.
6750
6751 2010-02-16  Simon Josefsson  <simon@josefsson.org>
6752
6753         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
6754         linking with -lintl.
6755
6756 2010-02-17  Simon Josefsson  <simon@josefsson.org>
6757
6758         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
6759         if not provided by the system's netdb.h.  Reported by
6760         ludo@gnu.org (Ludovic Courtès).
6761
6762 2010-02-15  Jim Meyering  <meyering@redhat.com>
6763
6764         init.sh: improve portability and efficiency
6765         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
6766         "dummy" in a for loop.
6767         Use '!', not '^' to select the complement of a character set used
6768         in a "case" statement.
6769         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
6770         Suggestions from Eric Blake.
6771
6772         init.sh: automatically accommodate programs with the .exe suffix
6773         Automatically arrange for an invocation of "prog" to execute the
6774         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
6775         may use the simpler "prog", yet still work when built on a system
6776         that requires specifying the added suffix.
6777         Do this by constructing a function named "prog" that invokes
6778         "prog.exe" for each .exe file in selected directories.
6779         * tests/init.sh (find_exe_basenames_): New function.
6780         (create_exe_shim_functions_): New function.
6781         (path_prepend_): Use it.
6782
6783         maint.mk: mark syntax-check sc_*.m rules as .PHONY
6784         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
6785         "make -t syntax-check" doesn't create a ton of sc_*.m files.
6786
6787 2010-02-14  Jim Meyering  <meyering@redhat.com>
6788
6789         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
6790         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
6791         (sc_prohibit_hash_pjw_without_use): New rule.
6792
6793         maint.mk: allow the default upload destination dir to be overridden
6794         * top/maint.mk (upload_dest_dir_): Define with a default that
6795         preserves the status quo.
6796         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
6797         Reported by Peter Simons.
6798
6799         maint.mk: prohibit inclusion of "hash.h" without_use
6800         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
6801
6802 2010-02-10  Jim Meyering  <meyering@redhat.com>
6803
6804         maint.mk: prohibit inclusion of "ignore-value.h" without_use
6805         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
6806
6807 2010-02-09  Eric Blake  <ebb9@byu.net>
6808         and Bruno Haible  <bruno@clisp.org>
6809
6810         obstack-printf-posix: ensure declaration
6811         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
6812         extracted from gl_FUNC_OBSTACK_PRINTF.
6813         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
6814         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
6815         Likewise.
6816         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
6817         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
6818         0.
6819
6820 2010-02-08  Bruno Haible  <bruno@clisp.org>
6821
6822         gnulib-tool: Fix typo in 2010-02-07 commit.
6823         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
6824         Reported by Eric Blake.
6825
6826 2010-02-07  Bruno Haible  <bruno@clisp.org>
6827
6828         gnulib-tool: Fix up caching patches.
6829         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
6830         option --no-cache. Use associative arrays when supported by the shell.
6831         (sed_comments): New variable.
6832         (modcache): Renamed from do_cache.
6833         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
6834         abbreviate unnecessarily.
6835         (have_associative): New variable.
6836         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
6837         way also for ksh and zsh.
6838         (func_init_sed_convert_to_cache_statements): New function, extracted
6839         from func_cache_lookup_module. Add support for associative arrays.
6840         Don't set the c_MODULE_cached variable here. Ignore all lines before
6841         the first field header. Remove only the final newline, not all trailing
6842         newlines. Support empty fields correctly. Limit the use of 'eval' to
6843         assignments.
6844         (func_get_description, func_get_status, func_get_notice,
6845         func_get_applicability, func_get_filelist, func_get_dependencies,
6846         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
6847         func_get_automake_snippet, func_get_include_directive,
6848         func_get_link_directive, func_get_license, func_get_maintainer):
6849         Update documentation. List the unoptimized code first. Add support for
6850         associative arrays. Limit the use of 'eval' to assignments.
6851         (func_get_applicability): Undo stylistic pessimisations.
6852         (func_get_automake_snippet, func_get_include_directive): Reduce code
6853         duplication.
6854         (func_modules_transitive_closure, func_modules_add_dummy,
6855         func_modules_notice, func_modules_to_filelist, func_add_file,
6856         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
6857         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
6858         func_create_testdir, func_create_megatestdir): Update documentation.
6859
6860 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6861
6862         * gnulib-tool (func_cache_lookup_module): Store the module name
6863         belonging to the cache variable; error out if two different
6864         module names map to the same cache variable name.
6865
6866 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6867
6868         gnulib-tool: Make caching optional.
6869         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
6870         Update matching short versions of --no-changelog.
6871         (func_usage): Update.
6872         (sed_extract_cache_prog): Renamed from ...
6873         (sed_extract_prog): ... this; revert to old extraction script.
6874         (func_get_description, func_get_status)
6875         (func_get_notice, func_get_applicability, func_get_filelist)
6876         (func_get_dependencies, func_get_autoconf_early_snippet)
6877         (func_get_autoconf_snippet, func_get_automake_snippet)
6878         (func_get_include_directive, func_get_link_directive)
6879         (func_get_license, func_get_maintainer): If $do_cache is false,
6880         use old, non-caching extraction scripts.
6881         Suggestion by Bruno Haible.
6882
6883 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6884
6885         gnulib-tool: cache module metainformation.
6886         * gnulib-tool (sed_extract_prog): Match newline before each
6887         header, and rewrite header to a shell variable suffix.
6888         (func_cache_var, func_cache_lookup_module): New functions,
6889         to turn a module name into a cache variable prefix, and to
6890         look up and cache module metainformation.
6891         (func_get_description, func_get_status)
6892         (func_get_notice, func_get_applicability, func_get_filelist)
6893         (func_get_dependencies, func_get_autoconf_early_snippet)
6894         (func_get_autoconf_snippet, func_get_automake_snippet)
6895         (func_get_include_directive, func_get_link_directive)
6896         (func_get_license, func_get_maintainer): Use
6897         func_cache_lookup_module.
6898
6899 2010-02-07  Bruno Haible  <bruno@clisp.org>
6900
6901         fnctl: Fix missing dependency.
6902         * modules/fcntl (Depends-on): Add getdtablesize.
6903         Reported by John W. Eaton <jwe@gnu.org>.
6904
6905 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6906
6907         Argp: fix recognition of short alias options.
6908
6909         * lib/argp-parse.c (convert_options): Fix improper use of
6910         `|' between character values.
6911         * tests/test-argp.c (group1_option): New alias option
6912         --read (-r).
6913         (group1_parser): Special handling for 'r'.
6914         (test15): New test case.
6915         (test_fun): Add test15.
6916         * tests/test-argp-2.sh: Update expected --help and --usage
6917         outputs.
6918
6919 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6920
6921         * tests/test-argp.c: Fix indentation.
6922
6923 2010-02-04  Eric Blake  <ebb9@byu.net>
6924
6925         gettimeofday: expose type of second argument
6926         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
6927         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
6928         * tests/test-gettimeofday.c: Use it to silence warning.
6929         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
6930         the issue.
6931
6932 2010-02-03  Jim Meyering  <meyering@redhat.com>
6933
6934         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
6935         * lib/regcomp.c (TYPE_SIGNED): Define.
6936         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
6937
6938         regcomp.c: avoid a new -Wshadow warning
6939         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
6940
6941 2010-02-01  Jim Meyering  <meyering@redhat.com>
6942
6943         removing useless parentheses in cpp #define directives
6944         For motivation, see commit c0221df4, "define STREQ(a,b)
6945         consistently, removing useless parentheses"
6946         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
6947         * lib/mountlist.c (MNT_IGNORE): Likewise.
6948         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
6949
6950 2010-02-01  Eric Blake  <ebb9@byu.net>
6951
6952         sys_time: use link-warning
6953         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
6954         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
6955         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
6956         * modules/sys_time (Depends-on): Add warn-on-use.
6957         (Makefile.am): Always build replacement.
6958         (configure.ac): Update substitutions.
6959         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
6960         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
6961         bother with SYS_TIME_H.
6962         * modules/gettimeofday (configure.ac): Declare indicator.
6963         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
6964         in use.
6965
6966         closein-tests: silence compiler warning
6967         * tests/test-closein.c (main): Ignore fread result.
6968         * modules/closein-tests (Depends-on): Add ignore-value.
6969
6970         tests: silence warning about system return
6971         * tests/test-areadlink-with-size.c (main): Ignore system result.
6972         * tests/test-areadlink.c (main): Likewise.
6973         * tests/test-areadlinkat-with-size.c (main): Likewise.
6974         * tests/test-areadlinkat.c (main): Likewise.
6975         * tests/test-canonicalize-lgpl.c (main): Likewise.
6976         * tests/test-canonicalize.c (main): Likewise.
6977         * tests/test-chown.c (main): Likewise.
6978         * tests/test-fchownat.c (main): Likewise.
6979         * tests/test-fdutimensat.c (main): Likewise.
6980         * tests/test-fstatat.c (main): Likewise.
6981         * tests/test-futimens.c (main): Likewise.
6982         * tests/test-lchown.c (main): Likewise.
6983         * tests/test-link.c (main): Likewise.
6984         * tests/test-linkat.c (main): Likewise.
6985         * tests/test-lstat.c (main): Likewise.
6986         * tests/test-mkdir.c (main): Likewise.
6987         * tests/test-mkdirat.c (main): Likewise.
6988         * tests/test-mkfifo.c (main): Likewise.
6989         * tests/test-mkfifoat.c (main): Likewise.
6990         * tests/test-mknod.c (main): Likewise.
6991         * tests/test-readlink.c (main): Likewise.
6992         * tests/test-remove.c (main): Likewise.
6993         * tests/test-rename.c (main): Likewise.
6994         * tests/test-renameat.c (main): Likewise.
6995         * tests/test-rmdir.c (main): Likewise.
6996         * tests/test-symlink.c (main): Likewise.
6997         * tests/test-symlinkat.c (main): Likewise.
6998         * tests/test-unlink.c (main): Likewise.
6999         * tests/test-unlinkat.c (main): Likewise.
7000         * tests/test-utimens.c (main): Likewise.
7001         * tests/test-utimensat.c (main): Likewise.
7002         * modules/areadlink-tests (Depends-on): Add ignore-value.
7003         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7004         * modules/areadlinkat-tests (Depends-on): Likewise.
7005         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7006         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7007         * modules/canonicalize-tests (Depends-on): Likewise.
7008         * modules/chown-tests (Depends-on): Likewise.
7009         * modules/fdutimensat-tests (Depends-on): Likewise.
7010         * modules/futimens-tests (Depends-on): Likewise.
7011         * modules/lchown-tests (Depends-on): Likewise.
7012         * modules/link-tests (Depends-on): Likewise.
7013         * modules/linkat-tests (Depends-on): Likewise.
7014         * modules/lstat-tests (Depends-on): Likewise.
7015         * modules/mkdir-tests (Depends-on): Likewise.
7016         * modules/mkfifo-tests (Depends-on): Likewise.
7017         * modules/mkfifoat-tests (Depends-on): Likewise.
7018         * modules/mknod-tests (Depends-on): Likewise.
7019         * modules/openat-tests (Depends-on): Likewise.
7020         * modules/readlink-tests (Depends-on): Likewise.
7021         * modules/remove-tests (Depends-on): Likewise.
7022         * modules/rename-tests (Depends-on): Likewise.
7023         * modules/renameat-tests (Depends-on): Likewise.
7024         * modules/rmdir-tests (Depends-on): Likewise.
7025         * modules/symlink-tests (Depends-on): Likewise.
7026         * modules/symlinkat-tests (Depends-on): Likewise.
7027         * modules/unlink-tests (Depends-on): Likewise.
7028         * modules/utimens-tests (Depends-on): Likewise.
7029         * modules/utimensat-tests (Depends-on): Likewise.
7030
7031 2010-01-31  Bruno Haible  <bruno@clisp.org>
7032
7033         Perform the same test for many <math.h> functions.
7034         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7035         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7036         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7037         of gl_MATHFUNC.
7038         * modules/acos (configure.ac): Likewise.
7039         * modules/asin (configure.ac): Likewise.
7040         * modules/atan (configure.ac): Likewise.
7041         * modules/atan2 (configure.ac): Likewise.
7042         * modules/cbrt (configure.ac): Likewise.
7043         * modules/copysign (configure.ac): Likewise.
7044         * modules/cos (configure.ac): Likewise.
7045         * modules/cosh (configure.ac): Likewise.
7046         * modules/erf (configure.ac): Likewise.
7047         * modules/erfc (configure.ac): Likewise.
7048         * modules/exp (configure.ac): Likewise.
7049         * modules/fmod (configure.ac): Likewise.
7050         * modules/hypot (configure.ac): Likewise.
7051         * modules/j0 (configure.ac): Likewise.
7052         * modules/j1 (configure.ac): Likewise.
7053         * modules/jn (configure.ac): Likewise.
7054         * modules/lgamma (configure.ac): Likewise.
7055         * modules/log (configure.ac): Likewise.
7056         * modules/log10 (configure.ac): Likewise.
7057         * modules/log1p (configure.ac): Likewise.
7058         * modules/pow (configure.ac): Likewise.
7059         * modules/remainder (configure.ac): Likewise.
7060         * modules/sin (configure.ac): Likewise.
7061         * modules/sinh (configure.ac): Likewise.
7062         * modules/tan (configure.ac): Likewise.
7063         * modules/tanh (configure.ac): Likewise.
7064         * modules/y0 (configure.ac): Likewise.
7065         * modules/y1 (configure.ac): Likewise.
7066         * modules/yn (configure.ac): Likewise.
7067         Suggested by Paolo Bonzini.
7068
7069 2010-01-31  Bruno Haible  <bruno@clisp.org>
7070
7071         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7072
7073 2010-01-31  Bruno Haible  <bruno@clisp.org>
7074
7075         Work around getdelim() bug on FreeBSD 8.0.
7076         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7077         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7078         not work.
7079         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7080         is 1.
7081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7082         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7083         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7084         a non-zero size.
7085         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7086
7087 2010-01-31  Bruno Haible  <bruno@clisp.org>
7088
7089         Work around getline() bug on FreeBSD 8.0.
7090         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7091         and a non-zero size.
7092         * tests/test-getline.c (main): Likewise.
7093         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7094         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7095
7096 2010-01-28  Eric Blake  <ebb9@byu.net>
7097
7098         regex: fix build failure
7099         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7100         platforms.
7101
7102 2010-01-28  Jim Meyering  <meyering@redhat.com>
7103
7104         regex: do not ignore memory allocation failure
7105         * lib/regex_internal.c (create_cd_newstate): Detect
7106         re_node_set_init_copy failure.   Extracted from glibc commit
7107         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7108
7109         regex: sync more white-space changes from libc
7110         * lib/regex_internal.c: White-space only changes.
7111         * lib/regexec.c: Likewise.
7112
7113         regex: add many uses of __attribute_warn_unused_result__
7114         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7115         * lib/regexec.c: Likewise.
7116         Extracted from a messy glibc commit.
7117
7118         regcomp.c: spelling and merge-artifact from glibc
7119         * lib/regcomp.c: Merge remainder of glibc's
7120         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7121
7122         regcomp.c: sync white-space changes from glibc
7123         * lib/regcomp.c: Merge to accommodate white space
7124         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7125
7126         regcomp.c: do not ignore internal return values
7127         * lib/regcomp.c: Do not ignore internal return values.
7128         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7129         but without its white-space changes and spelling fixes.
7130
7131         regex_internal.h: define __attribute_warn_unused_result__
7132         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7133
7134         maint: add a syntax-check rule to check for vulnerable Makefile.in
7135         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7136
7137 2010-01-27  Jim Meyering  <meyering@redhat.com>
7138
7139         ncftpput-ftp: clean up spaces
7140         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7141         Remove trailing blanks.
7142
7143 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7144
7145         * build-aux/git-version-gen: Fix copyright statement.
7146         * build-aux/gnupload: Likewise.
7147         * tests/test-arcfour.c: Likewise.
7148         * tests/test-arctwo.c: Likewise.
7149         * tests/test-count-one-bits.c: Likewise.
7150         * tests/test-crc.c: Likewise.
7151         * tests/test-des.c: Likewise.
7152         * tests/test-gc-arcfour.c: Likewise.
7153         * tests/test-gc-arctwo.c: Likewise.
7154         * tests/test-gc-des.c: Likewise.
7155         * tests/test-gc-hmac-md5.c: Likewise.
7156         * tests/test-gc-hmac-sha1.c: Likewise.
7157         * tests/test-gc-md2.c: Likewise.
7158         * tests/test-gc-md4.c: Likewise.
7159         * tests/test-gc-md5.c: Likewise.
7160         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7161         * tests/test-gc-rijndael.c: Likewise.
7162         * tests/test-gc-sha1.c: Likewise.
7163         * tests/test-gc.c: Likewise.
7164         * tests/test-gethostname.c: Likewise.
7165         * tests/test-gettimeofday.c: Likewise.
7166         * tests/test-hash.c: Likewise.
7167         * tests/test-hmac-md5.c: Likewise.
7168         * tests/test-hmac-sha1.c: Likewise.
7169         * tests/test-md2.c: Likewise.
7170         * tests/test-md4.c: Likewise.
7171         * tests/test-md5.c: Likewise.
7172         * tests/test-memchr.c: Likewise.
7173         * tests/test-memchr2.c: Likewise.
7174         * tests/test-memcmp.c: Likewise.
7175         * tests/test-memmem.c: Likewise.
7176         * tests/test-memrchr.c: Likewise.
7177         * tests/test-rawmemchr.c: Likewise.
7178         * tests/test-read-file.c: Likewise.
7179         * tests/test-rijndael.c: Likewise.
7180         * tests/test-sockets.c: Likewise.
7181         * tests/test-strchrnul.c: Likewise.
7182         * tests/test-strstr.c: Likewise.
7183         * tests/test-strtod.c: Likewise.
7184         * build-aux/ncftpput-ftp: Likewise.
7185
7186 2010-01-26  Eric Blake  <ebb9@byu.net>
7187
7188         ignore-value: update recommended header name
7189         * modules/ignore-value (Include): Only use <> for headers that
7190         exist in glibc.
7191
7192 2010-01-26  Jim Meyering  <meyering@redhat.com>
7193
7194         test-userspec.c: avoid compiler warnings
7195         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7196         and "initialization discards qualifiers..." warnings.
7197         Put the first "uid" in its own scope, and make char* members "const".
7198
7199 2010-01-25  Bruno Haible  <bruno@clisp.org>
7200
7201         gnulib-tool: Make warning diagnostics consistent.
7202         * gnulib-tool (func_warning): New function.
7203         Use it everywhere where gnulib-tool produces output to stderr and it is
7204         not a fatal error.
7205
7206 2010-01-25  Bruno Haible  <bruno@clisp.org>
7207
7208         Fix test dependencies.
7209         * modules/xstrtol-tests (Depends-on): Add inttypes.
7210         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7211
7212 2010-01-25 Pádraig Brady <P@draigBrady.com>
7213
7214         syntax-check: detect incorrect boolean macro values in config.h
7215         * modules/maintainer-makefile (configure.ac): Parameterize the location
7216         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7217         The logic is from Eric Blake and the location indicated by Jim Meyering.
7218         Note the more natural CONFIG_HEADER name is prohibited by automake
7219         for backwards compatibility reasons.
7220         * top/maint.mk (sc_Wundef_boolean): New rule.
7221
7222 2010-01-25  Jim Meyering  <meyering@redhat.com>
7223
7224         bootstrap: detect MacOS 10.6's shasum, too
7225         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7226         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7227
7228 2010-01-23  Jim Meyering  <meyering@redhat.com>
7229
7230         xstrtoll: new module
7231         * modules/xstrtoll: New file.
7232         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7233         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7234         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7235         ./configure fails if you use this module and lack "long long".
7236         * modules/xstrtoll-tests: New module.
7237         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7238         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7239         new init.sh-based test framework.
7240
7241 2010-01-24  Bruno Haible  <bruno@clisp.org>
7242
7243         Tests for module 'yn'.
7244         * modules/yn-tests: New file.
7245         * tests/test-yn.c: New file.
7246
7247         Tests for module 'y1'.
7248         * modules/y1-tests: New file.
7249         * tests/test-y1.c: New file.
7250
7251         Tests for module 'y0'.
7252         * modules/y0-tests: New file.
7253         * tests/test-y0.c: New file.
7254
7255         Tests for module 'tanh'.
7256         * modules/tanh-tests: New file.
7257         * tests/test-tanh.c: New file.
7258
7259         Tests for module 'tan'.
7260         * modules/tan-tests: New file.
7261         * tests/test-tan.c: New file.
7262
7263         Tests for module 'sqrt'.
7264         * modules/sqrt-tests: New file.
7265         * tests/test-sqrt.c: New file.
7266
7267         Tests for module 'sinh'.
7268         * modules/sinh-tests: New file.
7269         * tests/test-sinh.c: New file.
7270
7271         Tests for module 'sin'.
7272         * modules/sin-tests: New file.
7273         * tests/test-sin.c: New file.
7274
7275         Tests for module 'rint'.
7276         * modules/rint-tests: New file.
7277         * tests/test-rint.c: New file.
7278
7279         Tests for module 'remainder'.
7280         * modules/remainder-tests: New file.
7281         * tests/test-remainder.c: New file.
7282
7283         Tests for module 'pow'.
7284         * modules/pow-tests: New file.
7285         * tests/test-pow.c: New file.
7286
7287         Tests for module 'nextafter'.
7288         * modules/nextafter-tests: New file.
7289         * tests/test-nextafter.c: New file.
7290
7291         Tests for module 'modf'.
7292         * modules/modf-tests: New file.
7293         * tests/test-modf.c: New file.
7294
7295         Tests for module 'logb'.
7296         * modules/logb-tests: New file.
7297         * tests/test-logb.c: New file.
7298
7299         Tests for module 'log1p'.
7300         * modules/log1p-tests: New file.
7301         * tests/test-log1p.c: New file.
7302
7303         Tests for module 'log10'.
7304         * modules/log10-tests: New file.
7305         * tests/test-log10.c: New file.
7306
7307         Tests for module 'log'.
7308         * modules/log-tests: New file.
7309         * tests/test-log.c: New file.
7310
7311         Tests for module 'lgamma'.
7312         * modules/lgamma-tests: New file.
7313         * tests/test-lgamma.c: New file.
7314
7315         Tests for module 'ldexp'.
7316         * modules/ldexp-tests: New file.
7317         * tests/test-ldexp.c: New file.
7318
7319         Tests for module 'jn'.
7320         * modules/jn-tests: New file.
7321         * tests/test-jn.c: New file.
7322
7323         Tests for module 'j1'.
7324         * modules/j1-tests: New file.
7325         * tests/test-j1.c: New file.
7326
7327         Tests for module 'j0'.
7328         * modules/j0-tests: New file.
7329         * tests/test-j0.c: New file.
7330
7331         Tests for module 'hypot'.
7332         * modules/hypot-tests: New file.
7333         * tests/test-hypot.c: New file.
7334
7335         Tests for module 'fmod'.
7336         * modules/fmod-tests: New file.
7337         * tests/test-fmod.c: New file.
7338
7339         Tests for module 'fabs'.
7340         * modules/fabs-tests: New file.
7341         * tests/test-fabs.c: New file.
7342
7343         Tests for module 'exp'.
7344         * modules/exp-tests: New file.
7345         * tests/test-exp.c: New file.
7346
7347         Tests for module 'erfc'.
7348         * modules/erfc-tests: New file.
7349         * tests/test-erfc.c: New file.
7350
7351         Tests for module 'erf'.
7352         * modules/erf-tests: New file.
7353         * tests/test-erf.c: New file.
7354
7355         Tests for module 'cosh'.
7356         * modules/cosh-tests: New file.
7357         * tests/test-cosh.c: New file.
7358
7359         Tests for module 'cos'.
7360         * modules/cos-tests: New file.
7361         * tests/test-cos.c: New file.
7362
7363         Tests for module 'copysign'.
7364         * modules/copysign-tests: New file.
7365         * tests/test-copysign.c: New file.
7366
7367         Tests for module 'cbrt'.
7368         * modules/cbrt-tests: New file.
7369         * tests/test-cbrt.c: New file.
7370
7371         Tests for module 'atan2'.
7372         * modules/atan2-tests: New file.
7373         * tests/test-atan2.c: New file.
7374
7375         Tests for module 'atan'.
7376         * modules/atan-tests: New file.
7377         * tests/test-atan.c: New file.
7378
7379         Tests for module 'asin'.
7380         * modules/asin-tests: New file.
7381         * tests/test-asin.c: New file.
7382
7383         Tests for module 'acos'.
7384         * modules/acos-tests: New file.
7385         * tests/test-acos.c: New file.
7386
7387 2010-01-24  Bruno Haible  <bruno@clisp.org>
7388
7389         Fix tests for common <math.h> functions.
7390         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7391         code snippet that references the function pointer, rather than merely
7392         calling the function. Substitute the FUNC_LIBM variable.
7393         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7394         * modules/acos (configure.ac): Likewise.
7395         * modules/asin (configure.ac): Likewise.
7396         * modules/atan (configure.ac): Likewise.
7397         * modules/atan2 (configure.ac): Likewise.
7398         * modules/cbrt (configure.ac): Likewise.
7399         * modules/copysign (configure.ac): Likewise.
7400         * modules/cos (configure.ac): Likewise.
7401         * modules/cosh (configure.ac): Likewise.
7402         * modules/erf (configure.ac): Likewise.
7403         * modules/erfc (configure.ac): Likewise.
7404         * modules/exp (configure.ac): Likewise.
7405         * modules/fabs (configure.ac): Likewise.
7406         * modules/fmod (configure.ac): Likewise.
7407         * modules/hypot (configure.ac): Likewise.
7408         * modules/j0 (configure.ac): Likewise.
7409         * modules/j1 (configure.ac): Likewise.
7410         * modules/jn (configure.ac): Likewise.
7411         * modules/ldexp (configure.ac): Likewise.
7412         * modules/lgamma (configure.ac): Likewise.
7413         * modules/log (configure.ac): Likewise.
7414         * modules/log10 (configure.ac): Likewise.
7415         * modules/log1p (configure.ac): Likewise.
7416         * modules/logb (configure.ac): Likewise.
7417         * modules/modf (configure.ac): Likewise.
7418         * modules/nextafter (configure.ac): Likewise.
7419         * modules/pow (configure.ac): Likewise.
7420         * modules/remainder (configure.ac): Likewise.
7421         * modules/rint (configure.ac): Likewise.
7422         * modules/sin (configure.ac): Likewise.
7423         * modules/sinh (configure.ac): Likewise.
7424         * modules/tan (configure.ac): Likewise.
7425         * modules/tanh (configure.ac): Likewise.
7426         * modules/y0 (configure.ac): Likewise.
7427         * modules/y1 (configure.ac): Likewise.
7428         * modules/yn (configure.ac): Likewise.
7429
7430 2010-01-24  Bruno Haible  <bruno@clisp.org>
7431
7432         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7433         * tests/test-acosl.c (x): New variable.
7434         (main): Store argument in x and fetch it from x.
7435         * tests/test-asinl.c (x): New variable.
7436         (main): Store argument in x and fetch it from x.
7437         * tests/test-atanl.c (x): New variable.
7438         (main): Store argument in x and fetch it from x.
7439         * tests/test-cosl.c (x): New variable.
7440         (main): Store argument in x and fetch it from x.
7441         * tests/test-expl.c (x): New variable.
7442         (main): Store argument in x and fetch it from x.
7443         * tests/test-logl.c (x): New variable.
7444         (main): Store argument in x and fetch it from x.
7445         * tests/test-sinl.c (x): New variable.
7446         (main): Store argument in x and fetch it from x.
7447         * tests/test-sqrtl.c (x): New variable.
7448         (main): Store argument in x and fetch it from x.
7449         * tests/test-tanl.c (x): New variable.
7450         (main): Store argument in x and fetch it from x.
7451
7452 2010-01-24  Bruno Haible  <bruno@clisp.org>
7453
7454         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7455         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7456         assignments to the initial TESTS_ENVIRONMENT.
7457         * doc/gnulib.texi (Unit test modules): Document it.
7458         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7459         TESTS_ENVIRONMENT.
7460         * modules/btowc-tests (Makefile.am): Likewise.
7461         * modules/c-stack-tests (Makefile.am): Likewise.
7462         * modules/c-strcase-tests (Makefile.am): Likewise.
7463         * modules/copy-file-tests (Makefile.am): Likewise.
7464         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7465         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7466         * modules/mbrtowc-tests (Makefile.am): Likewise.
7467         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7468         * modules/mbscasestr-tests (Makefile.am): Likewise.
7469         * modules/mbschr-tests (Makefile.am): Likewise.
7470         * modules/mbscspn-tests (Makefile.am): Likewise.
7471         * modules/mbsinit-tests (Makefile.am): Likewise.
7472         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7473         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7474         * modules/mbspbrk-tests (Makefile.am): Likewise.
7475         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7476         * modules/mbsrchr-tests (Makefile.am): Likewise.
7477         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7478         * modules/mbsspn-tests (Makefile.am): Likewise.
7479         * modules/mbsstr-tests (Makefile.am): Likewise.
7480         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7481         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7482         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7483         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7484         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7485         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7486         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7487         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7488         * modules/wcrtomb-tests (Makefile.am): Likewise.
7489         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7490         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7491         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7492         assignments from TESTS_ENVIRONMENT.
7493         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7494         augmentation.
7495         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7496         * modules/atexit-tests (Makefile.am): Likewise.
7497         * modules/binary-io-tests (Makefile.am): Likewise.
7498         * modules/closein-tests (Makefile.am): Likewise.
7499         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7500         * modules/exclude-tests (Makefile.am): Likewise.
7501         * modules/fflush-tests (Makefile.am): Likewise.
7502         * modules/fpending-tests (Makefile.am): Likewise.
7503         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7504         * modules/freadahead-tests (Makefile.am): Likewise.
7505         * modules/freadptr-tests (Makefile.am): Likewise.
7506         * modules/freadseek-tests (Makefile.am): Likewise.
7507         * modules/fseek-tests (Makefile.am): Likewise.
7508         * modules/fseeko-tests (Makefile.am): Likewise.
7509         * modules/ftell-tests (Makefile.am): Likewise.
7510         * modules/ftello-tests (Makefile.am): Likewise.
7511         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7512         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7513         * modules/lseek-tests (Makefile.am): Likewise.
7514         * modules/parse-duration-tests (Makefile.am): Likewise.
7515         * modules/perror-tests (Makefile.am): Likewise.
7516         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7517         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7518         * modules/pipe-tests (Makefile.am): Likewise.
7519         * modules/pread-tests (Makefile.am): Likewise.
7520         * modules/printf-posix-tests (Makefile.am): Likewise.
7521         * modules/select-tests (Makefile.am): Likewise.
7522         * modules/sigpipe-tests (Makefile.am): Likewise.
7523         * modules/tsearch-tests (Makefile.am): Likewise.
7524         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7525         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7526         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7527         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7528         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7529         * modules/version-etc-tests (Makefile.am): Likewise.
7530         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7531         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7532         * modules/xalloc-die-tests (Makefile.am): Likewise.
7533         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7534         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7535         * modules/xstrtol-tests (Makefile.am): Likewise.
7536         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7537         * modules/yesno-tests (Makefile.am): Likewise.
7538         Suggested by Jim Meyering.
7539
7540 2010-01-24  Bruno Haible  <bruno@clisp.org>
7541
7542         More documentation.
7543         * doc/gnulib.texi (Writing modules): New chapter.
7544         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7545         the new chapter.
7546
7547 2010-01-24  Jim Meyering  <meyering@redhat.com>
7548
7549         maint.mk: do not prepend "./" after filtering
7550         * top/maint.mk (_prepend_srcdir_prefix): New variable
7551         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7552         "./" when $(srcdir) is ".".
7553
7554         define STREQ(a,b) consistently, removing useless parentheses
7555         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7556         since the only risk is that "a" or "b" contains an unparenthesized
7557         comma, but if either did that, STREQ would have 3 or more arguments.
7558         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7559         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7560         * lib/hash-triple.c (STREQ): Likewise.
7561         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7562         * lib/getugroups.c (STREQ): Likewise.
7563
7564 2010-01-23  Jim Meyering  <meyering@redhat.com>
7565
7566         maint.mk: fix syntax-check in a non-srcdir build directory
7567         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7568         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7569
7570 2010-01-22  Jim Meyering  <meyering@redhat.com>
7571
7572         userspec: add unit tests
7573         * tests/test-userspec.c: New file.
7574         * modules/userspec-tests: Likewise.
7575
7576 2010-01-21  Jim Meyering  <meyering@redhat.com>
7577
7578         maint.mk: handle source file names containing "." robustly
7579         * top/maint.mk (_dot_escaped_srcdir): Define.
7580         (VC_LIST): Use it in LHS of sed substitution.
7581
7582 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7583
7584         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7585         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7586         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7587         from a non-srcdir build.
7588
7589 2010-01-20  Eric Blake  <ebb9@byu.net>
7590
7591         warn-on-use: use instead of link-warning
7592         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7593         * modules/unistd (Depends-on, Makefile.am): Likewise.
7594         * modules/arpa_inet (Depends-on): Replace link-warning with
7595         warn-on-use.
7596         (Makefile.am): Update rules accordingly.
7597         * modules/ctype (Depends-on, Makefile.am): Likewise.
7598         * modules/dirent (Depends-on, Makefile.am): Likewise.
7599         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7600         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7601         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7602         * modules/locale (Depends-on, Makefile.am): Likewise.
7603         * modules/math (Depends-on, Makefile.am): Likewise.
7604         * modules/search (Depends-on, Makefile.am): Likewise.
7605         * modules/signal (Depends-on, Makefile.am): Likewise.
7606         * modules/spawn (Depends-on, Makefile.am): Likewise.
7607         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7608         * modules/string (Depends-on, Makefile.am): Likewise.
7609         * modules/strings (Depends-on, Makefile.am): Likewise.
7610         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7611         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7612         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7613         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7614         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7615         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7616         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7617         * modules/wchar (Depends-on, Makefile.am): Likewise.
7618         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7619         should be poisoned.
7620         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7621         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7622         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7623         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7624         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7625         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7626         * m4/math_h.m4 (gl_MATH_H): Likewise.
7627         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7628         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7629         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7630         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7631         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7632         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7633         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7634         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
7635         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7636         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7637         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7638         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7639         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7640         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7641         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7642         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7643         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
7644         GL_LINK_WARNING.
7645         * lib/ctype.in.h: Likewise.
7646         * lib/dirent.in.h: Likewise.
7647         * lib/fcntl.in.h: Likewise.
7648         * lib/inttypes.in.h: Likewise.
7649         * lib/langinfo.in.h: Likewise.
7650         * lib/locale.in.h: Likewise.
7651         * lib/math.in.h: Likewise.
7652         * lib/search.in.h: Likewise.
7653         * lib/signal.in.h: Likewise.
7654         * lib/spawn.in.h: Likewise.
7655         * lib/stdio.in.h: Likewise.
7656         * lib/stdlib.in.h: Likewise.
7657         * lib/string.in.h: Likewise.
7658         * lib/strings.in.h: Likewise.
7659         * lib/sys_file.in.h: Likewise.
7660         * lib/sys_ioctl.in.h: Likewise.
7661         * lib/sys_select.in.h: Likewise.
7662         * lib/sys_socket.in.h: Likewise.
7663         * lib/sys_stat.in.h: Likewise.
7664         * lib/sys_times.in.h: Likewise.
7665         * lib/sys_utsname.in.h: Likewise.
7666         * lib/unistd.in.h: Likewise.
7667         * lib/wchar.in.h: Likewise.
7668
7669 2010-01-20  Bruno Haible  <bruno@clisp.org>
7670
7671         Avoid duplicate -lm.
7672         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
7673         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
7674         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
7675         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
7676         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
7677         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
7678         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
7679         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
7680         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
7681         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
7682         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
7683         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7684         Reported by Paolo Bonzini.
7685
7686 2010-01-19  Bruno Haible  <bruno@clisp.org>
7687
7688         langinfo, nl_langinfo: Relicense under LGPLv2+.
7689         * modules/langinfo (License): Change to LGPLv2+.
7690         * modules/nl_langinfo (License): Likewise.
7691         Patch by David Lutterkort <lutter@redhat.com>.
7692
7693 2010-01-19  Bruno Haible  <bruno@clisp.org>
7694
7695         Avoid compilation error with cc on OSF/1 5.1.
7696         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
7697         statement, not before.
7698         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7699
7700 2010-01-18  Bruno Haible  <bruno@clisp.org>
7701
7702         Avoid a link error due to the __printf__ symbol.
7703         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
7704         and 2.6.x.
7705         (__format__, __printf__): Remove definitions.
7706         * lib/argp-fmtstream.h: Likewise.
7707         * lib/argp.h: Likewise.
7708         * lib/error.h: Likewise.
7709         * lib/vasnprintf.h: Likewise.
7710         * lib/xprintf.h: Likewise.
7711         * lib/xvasprintf.h: Likewise.
7712         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7713
7714 2010-01-18  Bruno Haible  <bruno@clisp.org>
7715
7716         Tests for module 'tanl'.
7717         * modules/tanl-tests: New file.
7718         * tests/test-tanl.c: New file.
7719
7720         Tests for module 'sqrtl'.
7721         * modules/sqrtl-tests: New file.
7722         * tests/test-sqrtl.c: New file.
7723
7724         Tests for module 'sinl'.
7725         * modules/sinl-tests: New file.
7726         * tests/test-sinl.c: New file.
7727
7728         Tests for module 'logl'.
7729         * modules/logl-tests: New file.
7730         * tests/test-logl.c: New file.
7731
7732         Tests for module 'expl'.
7733         * modules/expl-tests: New file.
7734         * tests/test-expl.c: New file.
7735
7736         Tests for module 'cosl'.
7737         * modules/cosl-tests: New file.
7738         * tests/test-cosl.c: New file.
7739
7740         Tests for module 'atanl'.
7741         * modules/atanl-tests: New file.
7742         * tests/test-atanl.c: New file.
7743
7744         Tests for module 'asinl'.
7745         * modules/asinl-tests: New file.
7746         * tests/test-asinl.c: New file.
7747
7748         Tests for module 'acosl'.
7749         * modules/acosl-tests: New file.
7750         * tests/test-acosl.c: New file.
7751
7752         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
7753         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7754         tanl): Use the standard gnulib idiom.
7755         * lib/cosl.c: Don't include trigl.c and sincosl.c.
7756         * lib/sinl.c: Likewise.
7757         * lib/tanl.c: Don't include trigl.c.
7758         (kernel_tanl): Make static.
7759         * lib/sincosl.c: Include trigl.h first.
7760         * lib/trigl.c: Likewise.
7761         * m4/acosl.m4: New file.
7762         * m4/asinl.m4: New file.
7763         * m4/atanl.m4: New file.
7764         * m4/cosl.m4: New file.
7765         * m4/expl.m4: New file.
7766         * m4/logl.m4: New file.
7767         * m4/sinl.m4: New file.
7768         * m4/sqrtl.m4: New file.
7769         * m4/tanl.m4: New file.
7770         * m4/mathl.m4: Remove file.
7771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
7772         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
7773         Don't initialize GNULIB_MATHL.
7774         * modules/acosl: New file.
7775         * modules/asinl: New file.
7776         * modules/atanl: New file.
7777         * modules/cosl: New file.
7778         * modules/expl: New file.
7779         * modules/logl: New file.
7780         * modules/sinl: New file.
7781         * modules/sqrtl: New file.
7782         * modules/tanl: New file.
7783         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
7784         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
7785         substitute GNULIB_MATHL.
7786         * modules/mathl: Rewritten.
7787         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
7788         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
7789         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
7790         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
7791         * doc/posix-functions/expl.texi: Mention the 'expl' module.
7792         * doc/posix-functions/logl.texi: Mention the 'logl' module.
7793         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
7794         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
7795         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
7796
7797 2010-01-18  Bruno Haible  <bruno@clisp.org>
7798
7799         sqrt: Make gl_FUNC_SQRT requirable.
7800         * m4/sqrt.m4: New file.
7801         * modules/sqrt (Files): Add it.
7802         (configure.ac): Invoke gl_FUNC_SQRT.
7803
7804 2010-01-18  Bruno Haible  <bruno@clisp.org>
7805
7806         New modules for common <math.h> functions.
7807         * m4/mathfunc.m4: New file.
7808         * modules/acos: New file.
7809         * modules/asin: New file.
7810         * modules/atan: New file.
7811         * modules/atan2: New file.
7812         * modules/cbrt: New file.
7813         * modules/copysign: New file.
7814         * modules/cos: New file.
7815         * modules/cosh: New file.
7816         * modules/erf: New file.
7817         * modules/erfc: New file.
7818         * modules/exp: New file.
7819         * modules/fabs: New file.
7820         * modules/fmod: New file.
7821         * modules/hypot: New file.
7822         * modules/j0: New file.
7823         * modules/j1: New file.
7824         * modules/jn: New file.
7825         * modules/ldexp: New file.
7826         * modules/lgamma: New file.
7827         * modules/log: New file.
7828         * modules/log10: New file.
7829         * modules/log1p: New file.
7830         * modules/logb: New file.
7831         * modules/modf: New file.
7832         * modules/nextafter: New file.
7833         * modules/pow: New file.
7834         * modules/remainder: New file.
7835         * modules/rint: New file.
7836         * modules/sin: New file.
7837         * modules/sinh: New file.
7838         * modules/sqrt: New file.
7839         * modules/tan: New file.
7840         * modules/tanh: New file.
7841         * modules/y0: New file.
7842         * modules/y1: New file.
7843         * modules/yn: New file.
7844         * doc/posix-functions/acos.texi: Mention the 'acos' module.
7845         * doc/posix-functions/asin.texi: Mention the 'asin' module.
7846         * doc/posix-functions/atan.texi: Mention the 'atan' module.
7847         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
7848         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
7849         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
7850         * doc/posix-functions/cos.texi: Mention the 'cos' module.
7851         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
7852         * doc/posix-functions/erf.texi: Mention the 'erf' module.
7853         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
7854         * doc/posix-functions/exp.texi: Mention the 'exp' module.
7855         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
7856         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
7857         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
7858         * doc/posix-functions/j0.texi: Mention the 'j0' module.
7859         * doc/posix-functions/j1.texi: Mention the 'j1' module.
7860         * doc/posix-functions/jn.texi: Mention the 'jn' module.
7861         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
7862         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
7863         * doc/posix-functions/log.texi: Mention the 'log' module.
7864         * doc/posix-functions/log10.texi: Mention the 'log10' module.
7865         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
7866         * doc/posix-functions/logb.texi: Mention the 'logb' module.
7867         * doc/posix-functions/modf.texi: Mention the 'modf' module.
7868         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
7869         * doc/posix-functions/pow.texi: Mention the 'pow' module.
7870         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
7871         * doc/posix-functions/rint.texi: Mention the 'rint' module.
7872         * doc/posix-functions/sin.texi: Mention the 'sin' module.
7873         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
7874         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
7875         * doc/posix-functions/tan.texi: Mention the 'tan' module.
7876         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
7877         * doc/posix-functions/y0.texi: Mention the 'y0' module.
7878         * doc/posix-functions/y1.texi: Mention the 'y1' module.
7879         * doc/posix-functions/yn.texi: Mention the 'yn' module.
7880
7881 2010-01-18  Jim Meyering  <meyering@redhat.com>
7882
7883         ignore-value: relax license to LGPLv2+
7884         * modules/ignore-value (License): Relax to LGPLv2+.
7885
7886         getdate: don't leak when TZ contains two or more '"'s
7887         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
7888         double quote in TZ after the first one.
7889
7890         readtokens: do not leak internal token_lengths buffer
7891         * lib/readtokens.c (readtokens): Free the local, lengths,
7892         when the supplied "token_lengths" parameter is NULL.
7893
7894 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7895
7896         Fix a couple of missing LIBTHREAD link failures on AIX.
7897         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
7898         $(LIBTHREAD).
7899         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
7900
7901         Link test-poll against INET_PTON_LIB.
7902         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
7903         for inet_pton on Solaris 10.
7904
7905 2010-01-17  Bruno Haible  <bruno@clisp.org>
7906
7907         unistdio/*-sprintf: Fix typo in module description.
7908         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
7909         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
7910         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
7911         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
7912         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
7913         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
7914         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
7915         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7916
7917 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7918
7919         gnulib-tool: fix filelist for AIX, HP-UX ksh.
7920         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
7921         variables in shell case patterns, for AIX and HP-UX ksh.
7922
7923         Split large sed scripts, for HP-UX sed.
7924         * modules/stdio: Split sed scripts around 50 sed commands,
7925         to avoid HP-UX limit of 99 commands, in the near future.
7926         * modules/string: Likewise.
7927         * modules/unistd: Likewise.
7928
7929         gnulib-tool: avoid writing in the current directory.
7930         * gnulib-tool (func_emit_lib_Makefile_am)
7931         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
7932         not in the current directory, so concurrent gnulib-tool
7933         instances do not interfere.
7934
7935 2010-01-16  Jim Meyering  <meyering@redhat.com>
7936
7937         doc: update users.txt
7938         * users.txt: Add grep.
7939         (diffutils, gzip): Update URLs.
7940
7941 2010-01-12  Bruno Haible  <bruno@clisp.org>
7942
7943         posix_spawn: Avoid test failure on Cygwin.
7944         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
7945         characters.
7946         Reported by Simon Josefsson.
7947
7948 2010-01-12  Bruno Haible  <bruno@clisp.org>
7949
7950         * tests/test-cond.c (main): When skipping the test, show the reason.
7951
7952 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7953
7954         * lib/striconv.c (str_cd_iconv): Avoid if before free.
7955
7956 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7957
7958         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
7959         VC_LIST_ALWAYS_EXCLUDE_REGEX.
7960
7961 2010-01-12  Eric Blake  <ebb9@byu.net>
7962
7963         build: guarantee AS_VAR_IF
7964         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
7965         (gl_AS_VAR_IF): Move...
7966         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
7967         Reported by Simon Josefsson.
7968
7969 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7970
7971         * lib/stdio.in.h: Fix typo.
7972
7973 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7974
7975         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
7976         libgpg-error.
7977
7978 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7979
7980         * tests/test-xalloc-die.sh: Use $EXEEXT.
7981
7982 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7983             Bruno Haible  <bruno@clisp.org>
7984
7985         getlogin, getlogin_r: Avoid test failure.
7986         * tests/test-getlogin.c: Include <stdio.h>.
7987         (main): Skip the test when the function fails because stdin is not a
7988         tty.
7989         * tests/test-getlogin_r.c: Include <stdio.h>.
7990         (main): Skip the test when the function fails because stdin is not a
7991         tty.
7992
7993 2010-01-11  Eric Blake  <ebb9@byu.net>
7994
7995         tests: avoid more large file warnings
7996         * tests/test-fflush.c: Avoid warning about ftell use.
7997         * tests/test-fseek.c: Avoid warning about fseek use.
7998
7999 2010-01-10  Bruno Haible  <bruno@clisp.org>
8000
8001         nproc: Work better on Linux when /proc and /sys are not mounted.
8002         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8003         as lower bound when, on glibc/Linux systems,
8004         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8005         Suggested by Pádraig Brady <P@draigbrady.com>.
8006         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8007
8008         nproc: Refactor.
8009         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8010         extracted from num_processors.
8011         (num_processors): Call it.
8012
8013 2010-01-11  Jim Meyering  <meyering@redhat.com>
8014
8015         utimecmp: avoid new warning from upcoming gcc-4.5.0
8016         * lib/utimecmp.c (BILLION): Define using #define rather than an
8017         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8018
8019 2010-01-11  Eric Blake  <ebb9@byu.net>
8020
8021         math: add portability warnings for classification macros
8022         * modules/math (Depends-on): Add warn-on-use.
8023         (Makefile.am): Provide new substitutions.
8024         * m4/math_h.m4 (gl_MATH_H): Require inline.
8025         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8026         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8027         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8028         implement warnings.
8029
8030         unistd: warn on use of environ without module
8031         * modules/unistd (Depends-on): Add warn-on-use.
8032         (Makefile.am): Provide new substitutions.
8033         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8034         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8035
8036         stdio: warn on suspicious uses
8037         * modules/stdio (Depends-on): Add warn-on-use.
8038         (Makefile.am): Provide new substitutions.
8039         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8040         fseeko.
8041         * lib/stdio.in.h (gets): Always warn on use.
8042         (fseek, ftell): Adjust when warnings are issued, and honor
8043         _GL_NO_LARGE_FILES as a way to silence the warning.
8044         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8045         any warning about large file offsets.
8046         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8047         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8048         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8049         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8050         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8051         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8052         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8053         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8054
8055         warn-on-use: new module
8056         * modules/warn-on-use: New file.
8057         * build-aux/warn-on-use.h: Likewise.
8058         * m4/warn-on-use.m4: Likewise.
8059         * MODULES.html.sh (Support for building): Mention it.
8060
8061 2010-01-10  Bruno Haible  <bruno@clisp.org>
8062
8063         Tests for module 'unistr/u32-strdup'.
8064         * modules/unistr/u32-strdup-tests: New file.
8065         * tests/unistr/test-u32-strdup.c: New file.
8066
8067         Tests for module 'unistr/u16-strdup'.
8068         * modules/unistr/u16-strdup-tests: New file.
8069         * tests/unistr/test-u16-strdup.c: New file.
8070
8071         Tests for module 'unistr/u8-strdup'.
8072         * modules/unistr/u8-strdup-tests: New file.
8073         * tests/unistr/test-u8-strdup.c: New file.
8074         * tests/unistr/test-strdup.h: New file.
8075
8076         Tests for module 'unistr/u32-strncmp'.
8077         * modules/unistr/u32-strncmp-tests: New file.
8078         * tests/unistr/test-u32-strncmp.c: New file.
8079
8080         Tests for module 'unistr/u16-strncmp'.
8081         * modules/unistr/u16-strncmp-tests: New file.
8082         * tests/unistr/test-u16-strncmp.c: New file.
8083
8084         Tests for module 'unistr/u8-strncmp'.
8085         * modules/unistr/u8-strncmp-tests: New file.
8086         * tests/unistr/test-u8-strncmp.c: New file.
8087         * tests/unistr/test-strncmp.h: New file.
8088
8089         Tests for module 'unistr/u32-strcoll'.
8090         * modules/unistr/u32-strcoll-tests: New file.
8091         * tests/unistr/test-u32-strcoll.c: New file.
8092
8093         Tests for module 'unistr/u16-strcoll'.
8094         * modules/unistr/u16-strcoll-tests: New file.
8095         * tests/unistr/test-u16-strcoll.c: New file.
8096
8097         Tests for module 'unistr/u8-strcoll'.
8098         * modules/unistr/u8-strcoll-tests: New file.
8099         * tests/unistr/test-u8-strcoll.c: New file.
8100
8101         Tests for module 'unistr/u32-strcmp'.
8102         * modules/unistr/u32-strcmp-tests: New file.
8103         * tests/unistr/test-u32-strcmp.c: New file.
8104         * tests/unistr/test-u32-strcmp.h: New file.
8105
8106         Tests for module 'unistr/u16-strcmp'.
8107         * modules/unistr/u16-strcmp-tests: New file.
8108         * tests/unistr/test-u16-strcmp.c: New file.
8109         * tests/unistr/test-u16-strcmp.h: New file.
8110
8111         Tests for module 'unistr/u8-strcmp'.
8112         * modules/unistr/u8-strcmp-tests: New file.
8113         * tests/unistr/test-u8-strcmp.c: New file.
8114         * tests/unistr/test-u8-strcmp.h: New file.
8115         * tests/unistr/test-strcmp.h: New file.
8116
8117         Tests for module 'unistr/u32-strncat'.
8118         * modules/unistr/u32-strncat-tests: New file.
8119         * tests/unistr/test-u32-strncat.c: New file.
8120
8121         Tests for module 'unistr/u16-strncat'.
8122         * modules/unistr/u16-strncat-tests: New file.
8123         * tests/unistr/test-u16-strncat.c: New file.
8124
8125         Tests for module 'unistr/u8-strncat'.
8126         * modules/unistr/u8-strncat-tests: New file.
8127         * tests/unistr/test-u8-strncat.c: New file.
8128         * tests/unistr/test-strncat.h: New file.
8129
8130         Tests for module 'unistr/u32-strcat'.
8131         * modules/unistr/u32-strcat-tests: New file.
8132         * tests/unistr/test-u32-strcat.c: New file.
8133
8134         Tests for module 'unistr/u16-strcat'.
8135         * modules/unistr/u16-strcat-tests: New file.
8136         * tests/unistr/test-u16-strcat.c: New file.
8137
8138         Tests for module 'unistr/u8-strcat'.
8139         * modules/unistr/u8-strcat-tests: New file.
8140         * tests/unistr/test-u8-strcat.c: New file.
8141         * tests/unistr/test-strcat.h: New file.
8142
8143         Tests for module 'unistr/u32-stpncpy'.
8144         * modules/unistr/u32-stpncpy-tests: New file.
8145         * tests/unistr/test-u32-stpncpy.c: New file.
8146
8147         Tests for module 'unistr/u16-stpncpy'.
8148         * modules/unistr/u16-stpncpy-tests: New file.
8149         * tests/unistr/test-u16-stpncpy.c: New file.
8150
8151         Tests for module 'unistr/u8-stpncpy'.
8152         * modules/unistr/u8-stpncpy-tests: New file.
8153         * tests/unistr/test-u8-stpncpy.c: New file.
8154         * tests/unistr/test-stpncpy.h: New file.
8155
8156         Tests for module 'unistr/u32-strncpy'.
8157         * modules/unistr/u32-strncpy-tests: New file.
8158         * tests/unistr/test-u32-strncpy.c: New file.
8159
8160         Tests for module 'unistr/u16-strncpy'.
8161         * modules/unistr/u16-strncpy-tests: New file.
8162         * tests/unistr/test-u16-strncpy.c: New file.
8163
8164         Tests for module 'unistr/u8-strncpy'.
8165         * modules/unistr/u8-strncpy-tests: New file.
8166         * tests/unistr/test-u8-strncpy.c: New file.
8167         * tests/unistr/test-strncpy.h: New file.
8168
8169         Tests for module 'unistr/u32-stpcpy'.
8170         * modules/unistr/u32-stpcpy-tests: New file.
8171         * tests/unistr/test-u32-stpcpy.c: New file.
8172
8173         Tests for module 'unistr/u16-stpcpy'.
8174         * modules/unistr/u16-stpcpy-tests: New file.
8175         * tests/unistr/test-u16-stpcpy.c: New file.
8176
8177         Tests for module 'unistr/u8-stpcpy'.
8178         * modules/unistr/u8-stpcpy-tests: New file.
8179         * tests/unistr/test-u8-stpcpy.c: New file.
8180         * tests/unistr/test-stpcpy.h: New file.
8181
8182         Tests for module 'unistr/u32-strcpy'.
8183         * modules/unistr/u32-strcpy-tests: New file.
8184         * tests/unistr/test-u32-strcpy.c: New file.
8185
8186         Tests for module 'unistr/u16-strcpy'.
8187         * modules/unistr/u16-strcpy-tests: New file.
8188         * tests/unistr/test-u16-strcpy.c: New file.
8189
8190         Tests for module 'unistr/u8-strcpy'.
8191         * modules/unistr/u8-strcpy-tests: New file.
8192         * tests/unistr/test-u8-strcpy.c: New file.
8193         * tests/unistr/test-strcpy.h: New file.
8194
8195         Tests for module 'unistr/u32-strnlen'.
8196         * modules/unistr/u32-strnlen-tests: New file.
8197         * tests/unistr/test-u32-strnlen.c: New file.
8198
8199         Tests for module 'unistr/u16-strnlen'.
8200         * modules/unistr/u16-strnlen-tests: New file.
8201         * tests/unistr/test-u16-strnlen.c: New file.
8202
8203         Tests for module 'unistr/u8-strnlen'.
8204         * modules/unistr/u8-strnlen-tests: New file.
8205         * tests/unistr/test-u8-strnlen.c: New file.
8206         * tests/unistr/test-strnlen.h: New file.
8207
8208         Tests for module 'unistr/u32-strlen'.
8209         * modules/unistr/u32-strlen-tests: New file.
8210         * tests/unistr/test-u32-strlen.c: New file.
8211
8212         Tests for module 'unistr/u16-strlen'.
8213         * modules/unistr/u16-strlen-tests: New file.
8214         * tests/unistr/test-u16-strlen.c: New file.
8215
8216         Tests for module 'unistr/u8-strlen'.
8217         * modules/unistr/u8-strlen-tests: New file.
8218         * tests/unistr/test-u8-strlen.c: New file.
8219
8220         Tests for module 'unistr/u32-prev'.
8221         * modules/unistr/u32-prev-tests: New file.
8222         * tests/unistr/test-u32-prev.c: New file.
8223
8224         Tests for module 'unistr/u16-prev'.
8225         * modules/unistr/u16-prev-tests: New file.
8226         * tests/unistr/test-u16-prev.c: New file.
8227
8228         Tests for module 'unistr/u8-prev'.
8229         * modules/unistr/u8-prev-tests: New file.
8230         * tests/unistr/test-u8-prev.c: New file.
8231
8232         Tests for module 'unistr/u32-next'.
8233         * modules/unistr/u32-next-tests: New file.
8234         * tests/unistr/test-u32-next.c: New file.
8235
8236         Tests for module 'unistr/u16-next'.
8237         * modules/unistr/u16-next-tests: New file.
8238         * tests/unistr/test-u16-next.c: New file.
8239
8240         Tests for module 'unistr/u8-next'.
8241         * modules/unistr/u8-next-tests: New file.
8242         * tests/unistr/test-u8-next.c: New file.
8243
8244         Tests for module 'unistr/u32-strmbtouc'.
8245         * modules/unistr/u32-strmbtouc-tests: New file.
8246         * tests/unistr/test-u32-strmbtouc.c: New file.
8247
8248         Tests for module 'unistr/u16-strmbtouc'.
8249         * modules/unistr/u16-strmbtouc-tests: New file.
8250         * tests/unistr/test-u16-strmbtouc.c: New file.
8251
8252         Tests for module 'unistr/u8-strmbtouc'.
8253         * modules/unistr/u8-strmbtouc-tests: New file.
8254         * tests/unistr/test-u8-strmbtouc.c: New file.
8255
8256         Tests for module 'unistr/u32-strmblen'.
8257         * modules/unistr/u32-strmblen-tests: New file.
8258         * tests/unistr/test-u32-strmblen.c: New file.
8259
8260         Tests for module 'unistr/u16-strmblen'.
8261         * modules/unistr/u16-strmblen-tests: New file.
8262         * tests/unistr/test-u16-strmblen.c: New file.
8263
8264         Tests for module 'unistr/u8-strmblen'.
8265         * modules/unistr/u8-strmblen-tests: New file.
8266         * tests/unistr/test-u8-strmblen.c: New file.
8267
8268         Tests for module 'unistr/u32-cpy-alloc'.
8269         * modules/unistr/u32-cpy-alloc-tests: New file.
8270         * tests/unistr/test-u32-cpy-alloc.c: New file.
8271
8272         Tests for module 'unistr/u16-cpy-alloc'.
8273         * modules/unistr/u16-cpy-alloc-tests: New file.
8274         * tests/unistr/test-u16-cpy-alloc.c: New file.
8275
8276         Tests for module 'unistr/u8-cpy-alloc'.
8277         * modules/unistr/u8-cpy-alloc-tests: New file.
8278         * tests/unistr/test-u8-cpy-alloc.c: New file.
8279         * tests/unistr/test-cpy-alloc.h: New file.
8280
8281         Tests for module 'unistr/u32-mbsnlen'.
8282         * modules/unistr/u32-mbsnlen-tests: New file.
8283         * tests/unistr/test-u32-mbsnlen.c: New file.
8284
8285         Tests for module 'unistr/u16-mbsnlen'.
8286         * modules/unistr/u16-mbsnlen-tests: New file.
8287         * tests/unistr/test-u16-mbsnlen.c: New file.
8288
8289         Tests for module 'unistr/u8-mbsnlen'.
8290         * modules/unistr/u8-mbsnlen-tests: New file.
8291         * tests/unistr/test-u8-mbsnlen.c: New file.
8292
8293         Tests for module 'unistr/u32-chr'.
8294         * modules/unistr/u32-chr-tests: New file.
8295         * tests/unistr/test-u32-chr.c: New file.
8296
8297         Tests for module 'unistr/u16-chr'.
8298         * modules/unistr/u16-chr-tests: New file.
8299         * tests/unistr/test-u16-chr.c: New file.
8300
8301         Tests for module 'unistr/u8-chr'.
8302         * modules/unistr/u8-chr-tests: New file.
8303         * tests/unistr/test-u8-chr.c: New file.
8304         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8305
8306         Tests for module 'unistr/u32-cmp2'.
8307         * modules/unistr/u32-cmp2-tests: New file.
8308         * tests/unistr/test-u32-cmp2.c: New file.
8309
8310         Tests for module 'unistr/u16-cmp2'.
8311         * modules/unistr/u16-cmp2-tests: New file.
8312         * tests/unistr/test-u16-cmp2.c: New file.
8313
8314         Tests for module 'unistr/u8-cmp2'.
8315         * modules/unistr/u8-cmp2-tests: New file.
8316         * tests/unistr/test-u8-cmp2.c: New file.
8317         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8318
8319         Tests for module 'unistr/u32-cmp'.
8320         * modules/unistr/u32-cmp-tests: New file.
8321         * tests/unistr/test-u32-cmp.c: New file.
8322
8323         Tests for module 'unistr/u16-cmp'.
8324         * modules/unistr/u16-cmp-tests: New file.
8325         * tests/unistr/test-u16-cmp.c: New file.
8326
8327         Tests for module 'unistr/u8-cmp'.
8328         * modules/unistr/u8-cmp-tests: New file.
8329         * tests/unistr/test-u8-cmp.c: New file.
8330         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8331
8332         Tests for module 'unistr/u32-set'.
8333         * modules/unistr/u32-set-tests: New file.
8334         * tests/unistr/test-u32-set.c: New file.
8335
8336         Tests for module 'unistr/u16-set'.
8337         * modules/unistr/u16-set-tests: New file.
8338         * tests/unistr/test-u16-set.c: New file.
8339
8340         Tests for module 'unistr/u8-set'.
8341         * modules/unistr/u8-set-tests: New file.
8342         * tests/unistr/test-u8-set.c: New file.
8343         * tests/unistr/test-set.h: New file.
8344
8345         Tests for module 'unistr/u32-move'.
8346         * modules/unistr/u32-move-tests: New file.
8347         * tests/unistr/test-u32-move.c: New file.
8348
8349         Tests for module 'unistr/u16-move'.
8350         * modules/unistr/u16-move-tests: New file.
8351         * tests/unistr/test-u16-move.c: New file.
8352
8353         Tests for module 'unistr/u8-move'.
8354         * modules/unistr/u8-move-tests: New file.
8355         * tests/unistr/test-u8-move.c: New file.
8356         * tests/unistr/test-move.h: New file.
8357
8358         Tests for module 'unistr/u32-cpy'.
8359         * modules/unistr/u32-cpy-tests: New file.
8360         * tests/unistr/test-u32-cpy.c: New file.
8361
8362         Tests for module 'unistr/u16-cpy'.
8363         * modules/unistr/u16-cpy-tests: New file.
8364         * tests/unistr/test-u16-cpy.c: New file.
8365
8366         Tests for module 'unistr/u8-cpy'.
8367         * modules/unistr/u8-cpy-tests: New file.
8368         * tests/unistr/test-u8-cpy.c: New file.
8369         * tests/unistr/test-cpy.h: New file.
8370
8371 2010-01-09  Bruno Haible  <bruno@clisp.org>
8372
8373         Tests for module 'unistr/u32-uctomb'.
8374         * modules/unistr/u32-uctomb-tests: New file.
8375         * tests/unistr/test-u32-uctomb.c: New file.
8376
8377         Tests for module 'unistr/u16-uctomb'.
8378         * modules/unistr/u16-uctomb-tests: New file.
8379         * tests/unistr/test-u16-uctomb.c: New file.
8380
8381         Tests for module 'unistr/u8-uctomb'.
8382         * modules/unistr/u8-uctomb-tests: New file.
8383         * tests/unistr/test-u8-uctomb.c: New file.
8384
8385         Tests for module 'unistr/u32-mbtoucr'.
8386         * modules/unistr/u32-mbtoucr-tests: New file.
8387         * tests/unistr/test-u32-mbtoucr.c: New file.
8388
8389         Tests for module 'unistr/u16-mbtoucr'.
8390         * modules/unistr/u16-mbtoucr-tests: New file.
8391         * tests/unistr/test-u16-mbtoucr.c: New file.
8392
8393         Tests for module 'unistr/u8-mbtoucr'.
8394         * modules/unistr/u8-mbtoucr-tests: New file.
8395         * tests/unistr/test-u8-mbtoucr.c: New file.
8396
8397         Tests for module 'unistr/u32-mbtouc'.
8398         * modules/unistr/u32-mbtouc-tests: New file.
8399         * tests/unistr/test-u32-mbtouc.c: New file.
8400
8401         Tests for module 'unistr/u16-mbtouc'.
8402         * modules/unistr/u16-mbtouc-tests: New file.
8403         * tests/unistr/test-u16-mbtouc.c: New file.
8404
8405         Tests for module 'unistr/u8-mbtouc'.
8406         * modules/unistr/u8-mbtouc-tests: New file.
8407         * tests/unistr/test-u8-mbtouc.c: New file.
8408
8409         Tests for module 'unistr/u32-mbtouc-unsafe'.
8410         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8411         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8412         * tests/unistr/test-u32-mbtouc.h: New file.
8413
8414         Tests for module 'unistr/u16-mbtouc-unsafe'.
8415         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8416         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8417         * tests/unistr/test-u16-mbtouc.h: New file.
8418
8419         Tests for module 'unistr/u8-mbtouc-unsafe'.
8420         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8421         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8422         * tests/unistr/test-u8-mbtouc.h: New file.
8423
8424         Tests for module 'unistr/u32-mblen'.
8425         * modules/unistr/u32-mblen-tests: New file.
8426         * tests/unistr/test-u32-mblen.c: New file.
8427
8428         Tests for module 'unistr/u16-mblen'.
8429         * modules/unistr/u16-mblen-tests: New file.
8430         * tests/unistr/test-u16-mblen.c: New file.
8431
8432         Tests for module 'unistr/u8-mblen'.
8433         * modules/unistr/u8-mblen-tests: New file.
8434         * tests/unistr/test-u8-mblen.c: New file.
8435
8436         Tests for module 'unistr/u32-to-u16'.
8437         * modules/unistr/u32-to-u16-tests: New file.
8438         * tests/unistr/test-u32-to-u16.c: New file.
8439
8440         Tests for module 'unistr/u32-to-u8'.
8441         * modules/unistr/u32-to-u8-tests: New file.
8442         * tests/unistr/test-u32-to-u8.c: New file.
8443
8444         Tests for module 'unistr/u16-to-u32'.
8445         * modules/unistr/u16-to-u32-tests: New file.
8446         * tests/unistr/test-u16-to-u32.c: New file.
8447
8448         Tests for module 'unistr/u16-to-u8'.
8449         * modules/unistr/u16-to-u8-tests: New file.
8450         * tests/unistr/test-u16-to-u8.c: New file.
8451
8452         Tests for module 'unistr/u8-to-u32'.
8453         * modules/unistr/u8-to-u32-tests: New file.
8454         * tests/unistr/test-u8-to-u32.c: New file.
8455
8456         Tests for module 'unistr/u8-to-u16'.
8457         * modules/unistr/u8-to-u16-tests: New file.
8458         * tests/unistr/test-u8-to-u16.c: New file.
8459
8460         Tests for module 'unistr/u32-check'.
8461         * modules/unistr/u32-check-tests: New file.
8462         * tests/unistr/test-u32-check.c: New file.
8463
8464         Tests for module 'unistr/u16-check'.
8465         * modules/unistr/u16-check-tests: New file.
8466         * tests/unistr/test-u16-check.c: New file.
8467
8468         Tests for module 'unistr/u8-check'.
8469         * modules/unistr/u8-check-tests: New file.
8470         * tests/unistr/test-u8-check.c: New file.
8471
8472         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8473         (category_equals): New function.
8474         (main): Add more tests.
8475         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8476
8477         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8478
8479 2010-01-10  Bruno Haible  <bruno@clisp.org>
8480
8481         unistr/u*-strcoll: Try harder to distinguish different strings.
8482         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8483         compare s1 and s2 to see if they are different.
8484
8485 2010-01-10  Bruno Haible  <bruno@clisp.org>
8486
8487         unistr/u*-stpncpy: Fix the return value.
8488         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8489         description of the return value consistent with stpncpy in glibc.
8490         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8491         written non-NUL unit.
8492
8493 2010-01-10  Bruno Haible  <bruno@clisp.org>
8494
8495         unistr/u*-next: Add missing dependencies.
8496         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8497         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8498         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8499
8500 2010-01-10  Bruno Haible  <bruno@clisp.org>
8501
8502         unistr/u8-mbsnlen: Fix return value for incomplete character.
8503         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8504         u8_mblen.
8505         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8506         Remove unistr/u8-mblen.
8507         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8508         u16_mblen.
8509         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8510         Remove unistr/u16-mblen.
8511
8512 2010-01-10  Bruno Haible  <bruno@clisp.org>
8513
8514         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8515         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8516         Reported by Brian Gough <bjg@gnu.org> and
8517         Chris Clayton <chris2553@googlemail.com> via
8518         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8519
8520 2010-01-09  Bruno Haible  <bruno@clisp.org>
8521
8522         unistr/u16-to-u32: Reject invalid input.
8523         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8524         u16_mbtouc.
8525         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8526         Remove unistr/u16-mbtouc.
8527
8528         unistr/u16-to-u8: Reject invalid input.
8529         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8530         u16_mbtouc.
8531         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8532         Remove unistr/u16-mbtouc.
8533
8534         unistr/u8-to-u32: Reject invalid input.
8535         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8536         u8_mbtouc.
8537         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8538         Remove unistr/u8-mbtouc.
8539
8540         unistr/u8-to-u16: Reject invalid input.
8541         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8542         u8_mbtouc.
8543         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8544         Remove unistr/u8-mbtouc.
8545
8546 2010-01-09  Bruno Haible  <bruno@clisp.org>
8547
8548         Tests for module 'getlogin'.
8549         * modules/getlogin-tests: New file.
8550         * tests/test-getlogin.c: New file.
8551
8552         New module 'getlogin'.
8553         * lib/unistd.in.h (getlogin): New declaration.
8554         * lib/getlogin.c: New file.
8555         * m4/getlogin.m4: New file.
8556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8557         HAVE_GETLOGIN.
8558         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8559         HAVE_GETLOGIN.
8560         * modules/getlogin: New file.
8561         * doc/posix-functions/getlogin.texi: Mention the new module.
8562         Reported by John W. Eaton <jwe@gnu.org>.
8563
8564 2010-01-09  Bruno Haible  <bruno@clisp.org>
8565
8566         getlogin_r: Support for native Windows.
8567         * lib/getlogin_r.c: Include <windows.h>
8568         (getlogin_r): Implement for native Windows.
8569         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8570         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8571         via John W. Eaton <jwe@gnu.org>.
8572
8573 2010-01-09  Bruno Haible  <bruno@clisp.org>
8574
8575         getlogin_r: Small fixes.
8576         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8577         succeeds.
8578         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8579         before testing whether getlogin_r is declared. No need to set
8580         HAVE_DECL_GETLOGIN_R to 1.
8581         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8582
8583 2010-01-09  Bruno Haible  <bruno@clisp.org>
8584
8585         * lib/unistd.in.h (getlogin_r): Add comment.
8586
8587 2010-01-09  Bruno Haible  <bruno@clisp.org>
8588
8589         Tests for module 'getlogin_r'.
8590         * modules/getlogin_r-tests: New file.
8591         * tests/test-getlogin_r.c: New file.
8592
8593 2010-01-09  Jim Meyering  <meyering@redhat.com>
8594
8595         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8596         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8597         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8598
8599 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8600
8601         * lib/dup2.c (rpl_dup2): Improve comment.
8602
8603 2010-01-08  Eric Blake  <ebb9@byu.net>
8604
8605         maint.mk: allow packages to add makefile @@ exceptions
8606         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8607         (sc_makefile_check): Rename...
8608         (sc_makefile_at_at_check): ...to this, and use hook.
8609
8610         dup2: work around mingw bug
8611         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8612         Reported by Simon Josefsson.
8613
8614 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8615
8616         glob: Fix C++ compilation.
8617         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8618         C++.
8619
8620 2010-01-07  Bruno Haible  <bruno@clisp.org>
8621
8622         Fix indentation of wctype.in.h, broken since 2007-01-06.
8623         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8624
8625 2010-01-07  Bruno Haible  <bruno@clisp.org>
8626
8627         mbslen: Avoid collision with system function.
8628         * lib/string.in.h [MirBSD]: Include <wchar.h>.
8629         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
8630         * m4/mbslen.m4: New file.
8631         * modules/mbslen (Files): Add it.
8632         (configure.ac): Invoke gl_MBSLEN.
8633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
8634         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
8635         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
8636         via Ian Beckwith <ianb@erislabs.net>.
8637
8638 2010-01-07  Bruno Haible  <bruno@clisp.org>
8639
8640         dirent: Document the last fix.
8641         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
8642
8643 2010-01-07  Bruno Haible  <bruno@clisp.org>
8644
8645         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
8646         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
8647         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
8648         va_list are defined.
8649         * doc/posix-headers/stdio.texi: Document the bug of missing types.
8650         Reported by Eric Blake.
8651
8652 2010-01-07  Bruno Haible  <bruno@clisp.org>
8653
8654         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
8655         * modules/xlist (Depends-on): Add 'list',
8656         * modules/xoset (Depends-on): Add 'oset'.
8657         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8658
8659 2010-01-07  Bruno Haible  <bruno@clisp.org>
8660
8661         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
8662         * doc/posix-functions/strncasecmp.texi: Likewise.
8663
8664 2010-01-07  Bruno Haible  <bruno@clisp.org>
8665
8666         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
8667
8668 2010-01-07  John W. Eaton  <jwe@octave.org>
8669
8670         wctype: allow C++ use
8671         * lib/wctype.in.h: Add extern "C" block for C++.
8672
8673 2010-01-06  Eric Blake  <ebb9@byu.net>
8674
8675         maint.mk: detect incorrect GFDL usage
8676         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
8677
8678 2010-01-06  Jim Meyering  <meyering@redhat.com>
8679         and Eric Blake  <ebb9@byu.net>
8680
8681         maint.mk: ignore multi-line copyright in NEWS
8682         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
8683
8684 2010-01-06  Eric Blake  <ebb9@byu.net>
8685
8686         select: add missing dependency
8687         * modules/select-tests (Depends-on): Move sockets dependency...
8688         * modules/select (Depends-on): ...here.
8689         Reported by Ian Beckwith.
8690
8691         doc: regenerate INSTALL
8692         * doc/INSTALL: Reflect recent autoconf update.
8693         * doc/INSTALL.ISO: Likewise.
8694         * doc/INSTALL.UTF-8: Likewise.
8695
8696         pread: fix compilation on glibc
8697         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
8698         Reported by Ralf Wildenhues.
8699
8700         dirent: fix test failure
8701         * lib/dirent.in.h (includes): Guarantee ino_t.
8702         Reported by Ralf Wildenhues.
8703
8704 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
8705
8706         linkat, renameat: avoid bad free
8707         * lib/at-func2.c (at_func2): Fix typo.
8708         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
8709
8710 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8711
8712         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
8713         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
8714         to avoid failure of symlink test later.
8715
8716 2010-01-06  Eric Blake  <ebb9@byu.net>
8717
8718         stdio, unistd: guarantee ssize_t
8719         * lib/unistd.in.h (includes): Ensure that types required by POSIX
8720         2008 are exposed when needed.
8721         * lib/stdio.in.h (includes): Likewise.
8722         Reported by Ralf Wildenhues.
8723
8724 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
8725
8726         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
8727         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
8728         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
8729
8730 2010-01-06  Jim Meyering  <meyering@redhat.com>
8731
8732         readtokens: this module *does* require xalloc.h
8733         It uses only functions that were omitted by the old syntax-check rule.
8734         * lib/readtokens.c: Include "xalloc.h" once again.
8735         * modules/readtokens (Depends-on): Add xalloc.
8736         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
8737
8738 2010-01-05  Eric Blake  <ebb9@byu.net>
8739
8740         maint: support 'make announcement' from a VPATH build
8741         * top/maint.mk (announcement): Look for correct NEWS file.
8742
8743 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
8744
8745         utimens (fdutimens): ignore a negative FD, per contract
8746         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
8747         when we have a valid file descriptor.  Otherwise, using a brand
8748         new glibc (with just-patched futimens that now fails with EBADF)
8749         would cause this function to fail with ENOSYS.
8750         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
8751         See also http://bugzilla.redhat.com/552320.
8752
8753 2010-01-05  Eric Blake  <ebb9@byu.net>
8754
8755         strcase: document what it provides
8756         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
8757         gnulib module.
8758         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
8759         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
8760
8761 2010-01-05  Jim Meyering  <meyering@redhat.com>
8762
8763         maint: remove useless inclusions of "xalloc.h"
8764         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
8765         * lib/readtokens.c: Likewise.
8766         * lib/same.c: Likewise.
8767         * modules/getloadavg (Depends-on): Remove xalloc.
8768         * modules/readtokens: Likewise.
8769         * modules/same: Likewise.
8770
8771         maint.mk: include 4 more function names in alloca.h-checking regexp
8772         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
8773         regexp.  Before, we would give a false-positive (saying alloca.h
8774         is included unnecessarily) when the only uses involved omitted symbols.
8775
8776         xalloc.h: use consistent formatting
8777         * lib/xalloc.h: Move declarations to start in the first column.
8778
8779 2010-01-05  Eric Blake  <ebb9@byu.net>
8780
8781         mkdir: avoid xalloc
8782         * lib/mkdir.c (includes): Drop unused header.
8783         Reported by John W. Eaton.
8784
8785 2010-01-04  Jim Meyering  <meyering@redhat.com>
8786
8787         nl_langinfo: avoid configure-time syntax error
8788         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
8789         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
8790         the empty string.  Don't let that provoke a shell syntax error.
8791
8792         regcomp, regexec, fnmatch: avoid array bounds read error
8793         * lib/regcomp.c (build_equiv_class): From glibc:
8794         Use only the low 24 bits of a findidx return value as an index
8795         into the weights array.  Patch by Ulrich Drepper:
8796         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
8797         * lib/regexec.c (check_node_accept_bytes): Likewise.
8798         * lib/fnmatch_loop.c (FCT): Likewise.
8799
8800         regcomp: skip collseq lookup when there are no rules
8801         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
8802         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
8803
8804         regcomp: recognize ill-formed { } expressions
8805         * lib/regcomp.c (parse_dup_op): From glibc:
8806         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
8807
8808         regcomp: fix typo in comment
8809         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
8810         s/satisfy/satisfies/.
8811
8812         regcomp: sync from glibc: remove dead store
8813         * lib/regcomp.c (duplicate_node_closure): Remove useless
8814         search_duplicated_node call and dead store.
8815
8816         regcomp: sync from glibc; always use nl_langinfo
8817         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
8818         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
8819         * modules/regex (Depends-on): Add nl_langinfo.
8820
8821 2010-01-04  Eric Blake  <ebb9@byu.net>
8822
8823         fdopendir: fix configure test
8824         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
8825
8826 2010-01-01  Bruno Haible  <bruno@clisp.org>
8827
8828         wchar: Remove unused configure check.
8829         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
8830
8831 2010-01-01  Eric Blake  <ebb9@byu.net>
8832
8833         headers: make check of system header explicit
8834         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
8835         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
8836         ourselves.
8837         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8838         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8839         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
8840         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
8841         internals.
8842         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
8843         missing.
8844         Suggested by Bruno Haible.
8845
8846 2010-01-01  Jim Meyering  <meyering@redhat.com>
8847
8848         ChangeLog: tweak to eliminate unnecessary copyright line
8849         * ChangeLog: Remove a copyright line that was mistakenly updated
8850         by today's update-copyright run.  Reported by Eric Blake.
8851
8852         test-update-copyright: don't let envvar setting cause test failure
8853         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8854
8855 2010-01-01  Bruno Haible  <bruno@clisp.org>
8856
8857         localename: Avoid gcc warning.
8858         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
8859         function if it is not used.
8860
8861 2010-01-01  Jim Meyering  <meyering@redhat.com>
8862
8863         update nearly all FSF copyright year lists to include 2010
8864         Use the same procedure as for 2009, outlined in
8865         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
8866
8867         version-etc: set COPYRIGHT_YEAR to 2010
8868         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
8869
8870 2009-12-31  Eric Blake  <ebb9@byu.net>
8871
8872         doc: correct availability of cygwin 1.5.x getopt
8873         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
8874         variables.
8875         * doc/posix-functions/opterr.texi (opterr): Likewise.
8876         * doc/posix-functions/optind.texi (optind): Likewise.
8877         * doc/posix-functions/optopt.texi (optopt): Likewise.
8878         * doc/posix-functions/tzname.texi (tzname): Likewise.
8879
8880         openat: update maintainer
8881         * modules/openat (Maintainer): Add myself.
8882
8883         utimens: avoid shadowing warning
8884         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
8885         buffers into one, to avoid shadowing, as well as avoiding a
8886         redundant stat.
8887         Reported by Jim Meyering.
8888
8889         test-dup2: avoid compiler warning
8890         * tests/test-dup2.c (is_inheritable): Only define if used.
8891
8892 2010-01-01  Bruno Haible  <bruno@clisp.org>
8893
8894         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
8895         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
8896         defined, use wctomb instead of wcrtomb.
8897
8898 2010-01-01  Bruno Haible  <bruno@clisp.org>
8899
8900         iconv: Reject native Solaris iconv.
8901         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
8902         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
8903
8904 2009-12-31  Bruno Haible  <bruno@clisp.org>
8905
8906         * tests/test-signal.c (main): Remove test of 'SIG'.
8907
8908 2009-12-31  Bruno Haible  <bruno@clisp.org>
8909
8910         spawn: Fix incomplete fix.
8911         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8912         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8913         warnings for GNULIB_POSIXCHECK again.
8914         Reported by Eric Blake.
8915
8916 2009-12-31  Bruno Haible  <bruno@clisp.org>
8917
8918         Avoid namespace pollution on glibc systems.
8919         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
8920         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
8921         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
8922         glibc systems.
8923
8924 2009-12-31  Bruno Haible  <bruno@clisp.org>
8925
8926         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
8927         (gl_REPLACE_WCHAR_H): Turn into a no-op.
8928         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
8929         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8930         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8931         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8932         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8933
8934 2009-12-31  Bruno Haible  <bruno@clisp.org>
8935
8936         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8937         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
8938         afterwards.
8939
8940 2009-12-31  Bruno Haible  <bruno@clisp.org>
8941
8942         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
8943         SYS_UTSNAME_H.
8944
8945 2009-12-31  Bruno Haible  <bruno@clisp.org>
8946
8947         spawn: Fix misapplied patch.
8948         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8949         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8950         warnings for GNULIB_POSIXCHECK.
8951
8952 2009-12-31  Bruno Haible  <bruno@clisp.org>
8953
8954         times: Update after sys_times changed.
8955         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
8956         * modules/times (Files): Add it.
8957         (configure.ac): Invoke gl_FUNC_TIMES.
8958
8959 2009-12-31  Bruno Haible  <bruno@clisp.org>
8960
8961         Use AC_C_INLINE where necessary.
8962         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
8963         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8964         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8965         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8966         * m4/mbfile.m4 (gl_MBFILE): Likewise.
8967         * m4/mbiter.m4 (gl_MBITER): Likewise.
8968         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8969         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8970         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
8971         * modules/u64 (configure.ac): Likewise.
8972
8973 2009-12-31  Bruno Haible  <bruno@clisp.org>
8974
8975         Use AC_C_INLINE instead of module 'inline' where possible.
8976         * modules/inline (Description): Clarify purpose.
8977         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
8978         * modules/count-one-bits (Depends-on): Remove inline.
8979         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
8980         * modules/openat (Depends-on): Remove inline.
8981         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
8982         instead of depending on module 'inline'.
8983         * modules/filevercmp (Depends-on, configure.ac): Likewise.
8984         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
8985         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
8986         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
8987         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
8988         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
8989         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
8990         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
8991         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
8992         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
8993         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
8994         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
8995         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
8996         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
8997         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
8998         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
8999         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9000         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9001         Likewise.
9002         * modules/unictype/property-ascii-hex-digit (Depends-on,
9003         configure.ac): Likewise.
9004         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9005         configure.ac): Likewise.
9006         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9007         configure.ac): Likewise.
9008         * modules/unictype/property-bidi-block-separator (Depends-on,
9009         configure.ac): Likewise.
9010         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9011         configure.ac): Likewise.
9012         * modules/unictype/property-bidi-common-separator (Depends-on,
9013         configure.ac): Likewise.
9014         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9015         Likewise.
9016         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9017         configure.ac): Likewise.
9018         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9019         configure.ac): Likewise.
9020         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9021         configure.ac): Likewise.
9022         * modules/unictype/property-bidi-european-digit (Depends-on,
9023         configure.ac): Likewise.
9024         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9025         configure.ac): Likewise.
9026         * modules/unictype/property-bidi-left-to-right (Depends-on,
9027         configure.ac): Likewise.
9028         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9029         configure.ac): Likewise.
9030         * modules/unictype/property-bidi-other-neutral (Depends-on,
9031         configure.ac): Likewise.
9032         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9033         Likewise.
9034         * modules/unictype/property-bidi-segment-separator (Depends-on,
9035         configure.ac): Likewise.
9036         * modules/unictype/property-bidi-whitespace (Depends-on,
9037         configure.ac): Likewise.
9038         * modules/unictype/property-combining (Depends-on, configure.ac):
9039         Likewise.
9040         * modules/unictype/property-composite (Depends-on, configure.ac):
9041         Likewise.
9042         * modules/unictype/property-currency-symbol (Depends-on,
9043         configure.ac): Likewise.
9044         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9045         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9046         Likewise.
9047         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9048         configure.ac): Likewise.
9049         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9050         Likewise.
9051         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9052         Likewise.
9053         * modules/unictype/property-extender (Depends-on, configure.ac):
9054         Likewise.
9055         * modules/unictype/property-format-control (Depends-on, configure.ac):
9056         Likewise.
9057         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9058         Likewise.
9059         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9060         Likewise.
9061         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9062         Likewise.
9063         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9064         Likewise.
9065         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9066         Likewise.
9067         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9068         Likewise.
9069         * modules/unictype/property-id-start (Depends-on, configure.ac):
9070         Likewise.
9071         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9072         Likewise.
9073         * modules/unictype/property-ids-binary-operator (Depends-on,
9074         configure.ac): Likewise.
9075         * modules/unictype/property-ids-trinary-operator (Depends-on,
9076         configure.ac): Likewise.
9077         * modules/unictype/property-ignorable-control (Depends-on,
9078         configure.ac): Likewise.
9079         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9080         Likewise.
9081         * modules/unictype/property-join-control (Depends-on, configure.ac):
9082         Likewise.
9083         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9084         Likewise.
9085         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9086         Likewise.
9087         * modules/unictype/property-logical-order-exception (Depends-on,
9088         configure.ac): Likewise.
9089         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9090         Likewise.
9091         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9092         * modules/unictype/property-non-break (Depends-on, configure.ac):
9093         Likewise.
9094         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9095         Likewise.
9096         * modules/unictype/property-numeric (Depends-on, configure.ac):
9097         Likewise.
9098         * modules/unictype/property-other-alphabetic (Depends-on,
9099         configure.ac): Likewise.
9100         * modules/unictype/property-other-default-ignorable-code-point
9101         (Depends-on, configure.ac): Likewise.
9102         * modules/unictype/property-other-grapheme-extend (Depends-on,
9103         configure.ac): Likewise.
9104         * modules/unictype/property-other-id-continue (Depends-on,
9105         configure.ac): Likewise.
9106         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9107         Likewise.
9108         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9109         Likewise.
9110         * modules/unictype/property-other-math (Depends-on, configure.ac):
9111         Likewise.
9112         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9113         Likewise.
9114         * modules/unictype/property-paired-punctuation (Depends-on,
9115         configure.ac): Likewise.
9116         * modules/unictype/property-paragraph-separator (Depends-on,
9117         configure.ac): Likewise.
9118         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9119         Likewise.
9120         * modules/unictype/property-pattern-white-space (Depends-on,
9121         configure.ac): Likewise.
9122         * modules/unictype/property-private-use (Depends-on, configure.ac):
9123         Likewise.
9124         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9125         Likewise.
9126         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9127         Likewise.
9128         * modules/unictype/property-radical (Depends-on, configure.ac):
9129         Likewise.
9130         * modules/unictype/property-sentence-terminal (Depends-on,
9131         configure.ac): Likewise.
9132         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9133         Likewise.
9134         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9135         * modules/unictype/property-terminal-punctuation (Depends-on,
9136         configure.ac): Likewise.
9137         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9138         Likewise.
9139         * modules/unictype/property-unassigned-code-value (Depends-on,
9140         configure.ac): Likewise.
9141         * modules/unictype/property-unified-ideograph (Depends-on,
9142         configure.ac): Likewise.
9143         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9144         Likewise.
9145         * modules/unictype/property-variation-selector (Depends-on,
9146         configure.ac): Likewise.
9147         * modules/unictype/property-white-space (Depends-on, configure.ac):
9148         Likewise.
9149         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9150         Likewise.
9151         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9152         Likewise.
9153         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9154         Likewise.
9155         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9156         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9157         Likewise.
9158
9159 2009-12-31  Bruno Haible  <bruno@clisp.org>
9160
9161         Remove unnecessary AC_C_INLINE invocation.
9162         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9163         since 2009-08-21.
9164
9165 2009-12-31  Jim Meyering  <meyering@redhat.com>
9166
9167         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9168         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9169         With this change, we can all remove the gpg_key_ID = ... definition
9170         from our respective cfg.mk files.
9171
9172         maint.mk: create announcement template in ~/, not in /tmp
9173         * top/maint.mk (emit_upload_commands): Adjust.
9174         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9175         Remove temporary file, .ci-msg.
9176
9177 2009-12-31  Eric Blake  <ebb9@byu.net>
9178
9179         link-warning: always build headers with link warnings
9180         * modules/arpa_inet (Makefile.am): Always build replacement
9181         header.
9182         * modules/ctype (Makefile.am): Likewise.
9183         * modules/dirent (Makefile.am): Likewise.
9184         * modules/inttypes (Makefile.am): Likewise.
9185         * modules/langinfo (Makefile.am): Likewise.
9186         * modules/locale (Makefile.am): Likewise.
9187         * modules/spawn (Makefile.am): Likewise.
9188         * modules/sys_file (Makefile.am): Likewise.
9189         * modules/sys_ioctl (Makefile.am): Likewise.
9190         * modules/sys_select (Makefile.am): Likewise.
9191         * modules/sys_socket (Makefile.am): Likewise.
9192         * modules/sys_times (Makefile.am): Likewise.
9193         * modules/sys_utsname (Makefile.am): Likewise.
9194         * modules/sys_wait (Makefile.am): Likewise.
9195         * modules/wchar (Makefile.am): Likewise.
9196         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9197         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9198         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9199         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9200         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9201         Likewise.
9202         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9203         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9204         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9205         Likewise.
9206         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9207         Likewise.
9208         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9209         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9210         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9211         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9212         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9213         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9214         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9215         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9216         (gl_WCHAR_H_DEFAULTS): Likewise.
9217
9218 2009-12-31  Eric Blake  <ebb9@byu.net>
9219
9220         signal, spawn: use link warnings
9221         * lib/signal.in.h (sigset_t): Make unconditional.
9222         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9223         (sigpending, sigprocmask, sigaction): Add link warnings.
9224         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9225         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9226         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9227         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9228         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9229         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9230         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9231         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9232         (posix_spawn_file_actions_destroy)
9233         (posix_spawn_file_actions_addopen)
9234         (posix_spawn_file_actions_addclose)
9235         (posix_spawn_file_actions_adddup2): Likewise.
9236         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9237         * tests/test-signal.c (main): Enhance test.
9238
9239         spawn: improve wrapper support
9240         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9241         (gl_SPAWN_H_DEFAULTS): New defaults.
9242         * modules/spawn (Makefile.am): Substitute them.
9243         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9244         Only declare if missing or broken.
9245
9246         sys_times, sys_utsname: use include_next
9247         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9248         header.
9249         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9250         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9251         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9252         * modules/sys_times (Depends-on): Add include_next.
9253         (Makefile.am): Substitute additional values.
9254         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9255         * lib/sys_times.in.h (includes): Include native header, if
9256         available.
9257         * lib/sys_utsname.in.h (includes): Likewise.
9258         * tests/test-sys_times.c (main): Enhance test.
9259
9260         fdutimensat: revert prior patch
9261         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9262         utimens.h.
9263         Reported by Bruno Haible.
9264
9265 2009-12-30  Eric Blake  <ebb9@byu.net>
9266
9267         sys_wait: drop link-warning dependency
9268         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9269         link-warning efforts.
9270         * lib/sys_wait.in.h: Likewise.
9271
9272         fdutimensat: remove bogus dependency
9273         * modules/fdutimensat (Depends-on): Drop inline.
9274
9275         unistd: fix typo
9276         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9277
9278 2009-12-30  Bruno Haible  <bruno@clisp.org>
9279
9280         Fix compilation error with Solaris cc.
9281         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9282         * lib/unicase/u16-is-invariant.c: Likewise.
9283         * lib/unicase/u32-is-invariant.c: Likewise.
9284         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9285
9286 2009-12-30  Bruno Haible  <bruno@clisp.org>
9287
9288         Fix test crash.
9289         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9290         locales.
9291         Reported by Simon Josefsson <simon@josefsson.org>.
9292
9293 2009-12-30  Bruno Haible  <bruno@clisp.org>
9294
9295         Fix compilation error on most platforms.
9296         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9297         Reported by Simon Josefsson <simon@josefsson.org>
9298         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9299
9300 2009-12-30  Eric Blake  <ebb9@byu.net>
9301
9302         futimens, utimensat: work around ntfs-3g bug
9303         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9304         a ctime bug is present, and expand workaround to cover ntfs-3g.
9305         * lib/utimens.c (fdutimens, lutimens): Likewise.
9306         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9307         (validate_timespec): Adjust return value.
9308         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9309         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9310         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9311
9312 2009-12-29  Eric Blake  <ebb9@byu.net>
9313
9314         link-warning: make usage consistent
9315         * modules/ctype (Depends-on): Add link-warning.
9316         (Makefile.am): Update rules accordingly.
9317         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9318         * modules/locale (Depends-on, Makefile.am): Likewise.
9319         * modules/sys_file (Makefile.am): Likewise.
9320         * modules/getopt-posix (Makefile.am): Delete unused link warning
9321         efforts.
9322         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9323         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9324         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9325         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9326
9327         stdio: remove unused variables
9328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9329         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9330         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9331
9332         tests: test more substitute headers
9333         * modules/ctype-tests: New file.
9334         * modules/dirent-tests: Likewise.
9335         * modules/spawn-tests: Likewise.
9336         * modules/sys_file-tests: Likewise.
9337         * modules/sys_ioctl-tests: Likewise.
9338         * modules/sys_wait-tests: Likewise.
9339         * tests/test-ctype.c: Likewise.
9340         * tests/test-dirent.c: Likewise.
9341         * tests/test-spawn.c: Likewise.
9342         * tests/test-sys_file.c: Likewise.
9343         * tests/test-sys_ioctl.c: Likewise.
9344         * tests/test-sys_wait.c: Likewise.
9345         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9346         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9347         whether or not flock is in use.
9348
9349         tests: remove License section from module
9350         * modules/arpa_inet-tests: Remove unneeded section.
9351         * modules/byteswap-tests: Likewise.
9352         * modules/ceilf-tests: Likewise.
9353         * modules/ceill-tests: Likewise.
9354         * modules/crypto/des-tests: Likewise.
9355         * modules/crypto/gc-arcfour-tests: Likewise.
9356         * modules/crypto/gc-arctwo-tests: Likewise.
9357         * modules/crypto/gc-des-tests: Likewise.
9358         * modules/crypto/gc-hmac-md5-tests: Likewise.
9359         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9360         * modules/crypto/gc-md2-tests: Likewise.
9361         * modules/crypto/gc-md4-tests: Likewise.
9362         * modules/crypto/gc-md5-tests: Likewise.
9363         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9364         * modules/crypto/gc-rijndael-tests: Likewise.
9365         * modules/crypto/gc-sha1-tests: Likewise.
9366         * modules/crypto/gc-tests: Likewise.
9367         * modules/crypto/md2-tests: Likewise.
9368         * modules/crypto/md4-tests: Likewise.
9369         * modules/fcntl-h-tests: Likewise.
9370         * modules/floorf-tests: Likewise.
9371         * modules/floorl-tests: Likewise.
9372         * modules/frexp-nolibm-tests: Likewise.
9373         * modules/frexp-tests: Likewise.
9374         * modules/frexpl-nolibm-tests: Likewise.
9375         * modules/frexpl-tests: Likewise.
9376         * modules/getaddrinfo-tests: Likewise.
9377         * modules/inttypes-tests: Likewise.
9378         * modules/isfinite-tests: Likewise.
9379         * modules/isinf-tests: Likewise.
9380         * modules/ldexpl-tests: Likewise.
9381         * modules/locale-tests: Likewise.
9382         * modules/math-tests: Likewise.
9383         * modules/netdb-tests: Likewise.
9384         * modules/netinet_in-tests: Likewise.
9385         * modules/printf-frexp-tests: Likewise.
9386         * modules/printf-frexpl-tests: Likewise.
9387         * modules/priv-set-tests: Likewise.
9388         * modules/random_r-tests: Likewise.
9389         * modules/round-tests: Likewise.
9390         * modules/roundf-tests: Likewise.
9391         * modules/roundl-tests: Likewise.
9392         * modules/search-tests: Likewise.
9393         * modules/select-tests: Likewise.
9394         * modules/signal-tests: Likewise.
9395         * modules/stdbool-tests: Likewise.
9396         * modules/stddef-tests: Likewise.
9397         * modules/stdint-tests: Likewise.
9398         * modules/stdio-tests: Likewise.
9399         * modules/stdlib-tests: Likewise.
9400         * modules/string-tests: Likewise.
9401         * modules/strings-tests: Likewise.
9402         * modules/sys_select-tests: Likewise.
9403         * modules/sys_socket-tests: Likewise.
9404         * modules/sys_stat-tests: Likewise.
9405         * modules/sys_time-tests: Likewise.
9406         * modules/sys_utsname-tests: Likewise.
9407         * modules/sysexits-tests: Likewise.
9408         * modules/time-tests: Likewise.
9409         * modules/trunc-tests: Likewise.
9410         * modules/truncf-tests: Likewise.
9411         * modules/truncl-tests: Likewise.
9412         * modules/tsearch-tests: Likewise.
9413         * modules/unistd-tests: Likewise.
9414         * modules/wchar-tests: Likewise.
9415         * modules/wctype-tests: Likewise.
9416
9417         tests: fix license on several tests
9418         * tests/test-des.c: Update to GPLv3+.
9419         * tests/test-flock.c: Likewise.
9420         * tests/test-fsync.c: Likewise.
9421         * tests/test-futimens.h: Likewise.
9422         * tests/test-gc-arcfour.c: Likewise.
9423         * tests/test-gc-arctwo.c: Likewise.
9424         * tests/test-gc-des.c: Likewise.
9425         * tests/test-gc-hmac-md5.c: Likewise.
9426         * tests/test-gc-hmac-sha1.c: Likewise.
9427         * tests/test-gc-md2.c: Likewise.
9428         * tests/test-gc-md4.c: Likewise.
9429         * tests/test-gc-md5.c: Likewise.
9430         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9431         * tests/test-gc-rijndael.c: Likewise.
9432         * tests/test-gc-sha1.c: Likewise.
9433         * tests/test-gc.c: Likewise.
9434         * tests/test-getcwd.c: Likewise.
9435         * tests/test-link.c: Likewise.
9436         * tests/test-link.h: Likewise.
9437         * tests/test-lutimens.h: Likewise.
9438         * tests/test-md2.c: Likewise.
9439         * tests/test-md4.c: Likewise.
9440         * tests/test-mkdir.h: Likewise.
9441         * tests/test-rename.c: Likewise.
9442         * tests/test-rename.h: Likewise.
9443         * tests/test-safe-alloc.c: Likewise.
9444         * tests/test-utimens-common.h: Likewise.
9445         * tests/test-utimens.h: Likewise.
9446
9447         maint: sync license texts
9448         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9449         * doc/gpl-3.0.texi: Revert copyright year update.
9450         * doc/lgpl-3.0.texi: Likewise.
9451
9452 2009-12-29  Jim Meyering  <meyering@redhat.com>
9453
9454         update nearly all FSF copyright year lists to include 2009
9455         The files named by the following are exempted:
9456             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9457               test -f "$dst" && { echo "$dst"; continue; }
9458               test -d "$dst" || continue
9459               echo "$dst"/$(basename "$src")
9460             done > exempt
9461             git ls-files tests/unictype >> exempt
9462         In the remaining files, convert to all-interval notation if
9463         - there is already at least one year interval like 2000-2003
9464         - the file is maintained by me
9465         - the file is in lib/uni*/, where that style already prevails
9466         Otherwise, use update-copyright's default.
9467
9468 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9469         and Eric Blake  <ebb9@byu.net>
9470
9471         tests: don't require debug system() to pass
9472         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9473         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9474         * tests/test-unlink.h (test_unlink_func): Likewise.
9475         * tests/test-fstatat.c (main): ...into callers.
9476         * tests/test-lstat.c (main): Likewise.
9477         * tests/test-rmdir.c (main): Likewise.
9478         * tests/test-unlink.c (main): Likewise.
9479         * tests/test-unlinkat.c (main): Likewise.
9480         * tests/test-areadlink-with-size.c (main): Don't require a
9481         debug-only system call to pass, aiding cross-testing to mingw.
9482         * tests/test-areadlink.c (main): Likewise.
9483         * tests/test-areadlinkat-with-size.c (main): Likewise.
9484         * tests/test-areadlinkat.c (main): Likewise.
9485         * tests/test-canonicalize-lgpl.c (main): Likewise.
9486         * tests/test-canonicalize.c (main): Likewise.
9487         * tests/test-chown.c (main): Likewise.
9488         * tests/test-fchownat.c (main): Likewise.
9489         * tests/test-lchown.c (main): Likewise.
9490         * tests/test-fdutimensat.c (main): Likewise.
9491         * tests/test-futimens.c (main): Likewise.
9492         * tests/test-link.c (main): Likewise.
9493         * tests/test-linkat.c (main): Likewise.
9494         * tests/test-mkdir.c (main): Likewise.
9495         * tests/test-mkdirat.c (main): Likewise.
9496         * tests/test-mkfifo.c (main): Likewise.
9497         * tests/test-mkfifoat.c (main): Likewise.
9498         * tests/test-mknod.c (main): Likewise.
9499         * tests/test-readlink.c (main): Likewise.
9500         * tests/test-remove.c (main): Likewise.
9501         * tests/test-rename.c (main): Likewise.
9502         * tests/test-renameat.c (main): Likewise.
9503         * tests/test-symlink.c (main): Likewise.
9504         * tests/test-symlinkat.c (main): Likewise.
9505         * tests/test-utimens.c (main): Likewise.
9506         * tests/test-utimensat.c (main): Likewise.
9507
9508 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9509
9510         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9511         on $(UNUSED_PARAMETER_H) to avoid build failure.
9512
9513 2009-12-28  Jim Meyering  <meyering@redhat.com>
9514
9515         update-copyright: you may specify a max. line length other than 72
9516         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9517
9518         maint: use consistent FSF copyright line syntax
9519         * lib/posixtm.c: Add missing comma in FSF copyright line.
9520         * lib/posixtm.h: Likewise.
9521         * lib/getugroups.c: Add missing ", Inc.".
9522
9523         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9524         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9525         FSF copyright line.  Remove trailing blanks.
9526
9527 2009-12-28  Eric Blake  <ebb9@byu.net>
9528
9529         test-dup2: reduce dependencies
9530         * modules/cloexec (Configure.ac): Set witness.
9531         * modules/dup2-tests (Depends-on): Drop cloexec.
9532         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9533         not present.
9534         Suggested by Bruno Haible.
9535
9536 2009-12-26  Bruno Haible  <bruno@clisp.org>
9537
9538         Remove an unneeded dependency.
9539         * modules/fseterr (Depends-on): Remove dup2.
9540
9541 2009-12-26  Eric Blake  <ebb9@byu.net>
9542
9543         tests: use macros.h in more places
9544         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9545         (ASSERT_STREAM): Provide default of stderr.
9546         * tests/test-dirent-safer.c: Include macros.h, using alternate
9547         stream for assertions.
9548         * tests/test-dup-safer.c: Likewise.
9549         * tests/test-freopen-safer.c: Likewise.
9550         * tests/test-getopt.c: Likewise.
9551         * tests/test-openat-safer.c: Likewise.
9552         * tests/test-pipe.c: Likewise.
9553         * tests/test-popen-safer.c: Likewise.
9554         * modules/dirent-safer-tests (Files): Include macros.h.
9555         * modules/unistd-safer-tests (Files): Likewise.
9556         * modules/freopen-safer-tests (Files): Likewise.
9557         * modules/getopt-posix-tests (Files): Likewise.
9558         * modules/openat-safer-tests (Files): Likewise.
9559         * modules/pipe-tests (Files): Likewise.
9560
9561 2009-12-26  Bruno Haible  <bruno@clisp.org>
9562
9563         javacomp: Portability fix.
9564         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9565         that it also works on Solaris.
9566
9567 2009-12-26  Bruno Haible  <bruno@clisp.org>
9568
9569         localename: Fix storage allocation of gl_locale_name_thread's result.
9570         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9571         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9572         all platforms that have 'uselocale'.
9573         (gl_locale_name_thread_unsafe): New function, extracted from
9574         gl_locale_name_thread.
9575         (gl_locale_name_thread): Call struniq on all platforms that have
9576         'uselocale'.
9577         * tests/test-localename.c (test_locale_name_thread): Check that the
9578         resulting strings are permanently allocated.
9579         * modules/localename-tests (Depends-on): Add strdup.
9580
9581 2009-12-26  Bruno Haible  <bruno@clisp.org>
9582
9583         * tests/test-localename.c (categories): Fill in the strings.
9584
9585 2009-12-26  Jim Meyering  <meyering@redhat.com>
9586
9587         isdir: complete the removal of m4/isdir.m4
9588         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9589
9590         isdir: clean up, since at least grep still uses it
9591         * lib/isdir.c: Include "isdir.h".
9592         (S_ISDIR): Remove now-unneeded definition.
9593         * modules/isdir (Files): Add lib/isdir.h.
9594         * lib/isdir.h: New file, with declaration.
9595         * m4/isdir.m4: Remove file -- unneeded.
9596
9597 2009-12-25  Bruno Haible  <bruno@clisp.org>
9598
9599         selinux-h: Make generated .h files standalone.
9600         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9601         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9602         * lib/se-selinux.in.h: Likewise.
9603         * modules/selinux-h (Depends-on): Add unused-parameter.
9604         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9605         selinux/selinux.h and selinux/context.h.
9606         Suggested by Eric Blake.
9607
9608 2009-12-25  Bruno Haible  <bruno@clisp.org>
9609
9610         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9611         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9612         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9613         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9614         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9615
9616 2009-12-24  Bruno Haible  <bruno@clisp.org>
9617
9618         openat: Fix warning.
9619         * lib/openat-proc.c: Include <unistd.h>.
9620
9621 2009-12-24  Bruno Haible  <bruno@clisp.org>
9622
9623         New module 'unused-parameter'.
9624         * build-aux/unused-parameter.h: New file, extracted from earlier
9625         gnulib-common.m4.
9626         * modules/unused-parameter: New file.
9627         * lib/unistr.h: Include unused-parameter.h.
9628         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
9629         _GL_UNUSED.
9630         * modules/unistr/base (Depends-on): Add unused-parameter.
9631
9632 2009-12-24  Bruno Haible  <bruno@clisp.org>
9633
9634         Add missing dependencies to 'extensions' module.
9635         * m4/extensions.m4: Add comment.
9636         * modules/accept4 (Depends-on): Add extensions.
9637         * modules/dup3 (Depends-on): Likewise.
9638         * modules/fcntl (Depends-on): Likewise.
9639         * modules/futimens (Depends-on): Likewise.
9640         * modules/mknod (Depends-on): Likewise.
9641         * modules/pipe2 (Depends-on): Likewise.
9642         * modules/stat-time (Depends-on): Likewise.
9643         * modules/strcasestr-simple (Depends-on): Likewise.
9644         * modules/strsignal (Depends-on): Likewise.
9645         * modules/utimensat (Depends-on): Likewise.
9646         * modules/localcharset (Depends-on): Likewise. Needed because of
9647         gl_FCNTL_O_FLAGS.
9648         * modules/wcrtomb (Depends-on): Likewise. Needed because of
9649         AC_TYPE_MBSTATE_T.
9650         * modules/wcsnrtombs (Depends-on): Likewise.
9651         * modules/wcsrtombs (Depends-on): Likewise.
9652
9653 2009-12-24  Bruno Haible  <bruno@clisp.org>
9654
9655         binary-io: Avoid gcc warning due to SET_BINARY.
9656         * lib/binary-io.h (SET_BINARY): Cast the result to void.
9657         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
9658
9659 2009-12-24  Bruno Haible  <bruno@clisp.org>
9660
9661         Avoid future namespace pollution on glibc systems.
9662         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
9663         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
9664         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
9665         glibc systems.
9666
9667 2009-12-24  Bruno Haible  <bruno@clisp.org>
9668
9669         Refactor common macros used in tests.
9670         * tests/macros.h: New file.
9671         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
9672         and/or <stdlib.h>, if appropriate.
9673         (ASSERT, SIZEOF): Remove macros.
9674         * tests/test-areadlink-with-size.c: Likewise.
9675         * tests/test-areadlinkat.c: Likewise.
9676         * tests/test-areadlinkat-with-size.c: Likewise.
9677         * tests/test-argmatch.c: Likewise.
9678         * tests/test-argv-iter.c: Likewise.
9679         * tests/test-array-mergesort.c: Likewise.
9680         * tests/test-array_list.c: Likewise.
9681         * tests/test-array_oset.c: Likewise.
9682         * tests/test-avltree_list.c: Likewise.
9683         * tests/test-avltree_oset.c: Likewise.
9684         * tests/test-avltreehash_list.c: Likewise.
9685         * tests/test-base64.c: Likewise.
9686         * tests/test-binary-io.c: Likewise.
9687         * tests/test-bitrotate.c: Likewise.
9688         * tests/test-btowc.c: Likewise.
9689         * tests/test-byteswap.c: Likewise.
9690         * tests/test-c-ctype.c: Likewise.
9691         * tests/test-c-stack.c: Likewise.
9692         * tests/test-c-strcasecmp.c: Likewise.
9693         * tests/test-c-strcasestr.c: Likewise.
9694         * tests/test-c-strncasecmp.c: Likewise.
9695         * tests/test-c-strstr.c: Likewise.
9696         * tests/test-canonicalize-lgpl.c: Likewise.
9697         * tests/test-canonicalize.c: Likewise.
9698         * tests/test-carray_list.c: Likewise.
9699         * tests/test-ceilf1.c: Likewise.
9700         * tests/test-ceilf2.c: Likewise.
9701         * tests/test-ceill.c: Likewise.
9702         * tests/test-chown.c: Likewise.
9703         * tests/test-cloexec.c: Likewise.
9704         * tests/test-copy-acl.c: Likewise.
9705         * tests/test-copy-file.c: Likewise.
9706         * tests/test-count-one-bits.c: Likewise.
9707         * tests/test-dprintf-posix.c: Likewise.
9708         * tests/test-dup2.c: Likewise.
9709         * tests/test-dup3.c: Likewise.
9710         * tests/test-duplocale.c: Likewise.
9711         * tests/test-fbufmode.c: Likewise.
9712         * tests/test-fchdir.c: Likewise.
9713         * tests/test-fchownat.c: Likewise.
9714         * tests/test-fcntl-safer.c: Likewise.
9715         * tests/test-fcntl.c: Likewise.
9716         * tests/test-fdopendir.c: Likewise.
9717         * tests/test-fdutimensat.c: Likewise.
9718         * tests/test-fflush2.c: Likewise.
9719         * tests/test-file-has-acl.c: Likewise.
9720         * tests/test-filevercmp.c: Likewise.
9721         * tests/test-flock.c: Likewise.
9722         * tests/test-floorf1.c: Likewise.
9723         * tests/test-floorf2.c: Likewise.
9724         * tests/test-floorl.c: Likewise.
9725         * tests/test-fnmatch.c: Likewise.
9726         * tests/test-fopen.h: Likewise.
9727         * tests/test-fpending.c: Likewise.
9728         * tests/test-fprintf-posix.c: Likewise.
9729         * tests/test-fpurge.c: Likewise.
9730         * tests/test-freadable.c: Likewise.
9731         * tests/test-freadahead.c: Likewise.
9732         * tests/test-freading.c: Likewise.
9733         * tests/test-freadptr.c: Likewise.
9734         * tests/test-freadptr2.c: Likewise.
9735         * tests/test-freadseek.c: Likewise.
9736         * tests/test-freopen.c: Likewise.
9737         * tests/test-frexp.c: Likewise.
9738         * tests/test-frexpl.c: Likewise.
9739         * tests/test-fseek.c: Likewise.
9740         * tests/test-fseeko.c: Likewise.
9741         * tests/test-fstatat.c: Likewise.
9742         * tests/test-fstrcmp.c: Likewise.
9743         * tests/test-fsync.c: Likewise.
9744         * tests/test-ftell.c: Likewise.
9745         * tests/test-ftello.c: Likewise.
9746         * tests/test-func.c: Likewise.
9747         * tests/test-futimens.c: Likewise.
9748         * tests/test-fwritable.c: Likewise.
9749         * tests/test-fwriting.c: Likewise.
9750         * tests/test-getcwd.c: Likewise.
9751         * tests/test-getdate.c: Likewise.
9752         * tests/test-getdelim.c: Likewise.
9753         * tests/test-getdtablesize.c: Likewise.
9754         * tests/test-getgroups.c: Likewise.
9755         * tests/test-getline.c: Likewise.
9756         * tests/test-getndelim2.c: Likewise.
9757         * tests/test-glob.c: Likewise.
9758         * tests/test-hash.c: Likewise.
9759         * tests/test-i-ring.c: Likewise.
9760         * tests/test-iconv-utf.c: Likewise.
9761         * tests/test-iconv.c: Likewise.
9762         * tests/test-idpriv-drop.c: Likewise.
9763         * tests/test-idpriv-droptemp.c: Likewise.
9764         * tests/test-inet_ntop.c: Likewise.
9765         * tests/test-inet_pton.c: Likewise.
9766         * tests/test-isblank.c: Likewise.
9767         * tests/test-isfinite.c: Likewise.
9768         * tests/test-isinf.c: Likewise.
9769         * tests/test-isnan.c: Likewise.
9770         * tests/test-isnand.h: Likewise.
9771         * tests/test-isnanf.h: Likewise.
9772         * tests/test-isnanl.h: Likewise.
9773         * tests/test-lchown.c: Likewise.
9774         * tests/test-ldexpl.c: Likewise.
9775         * tests/test-link.c: Likewise.
9776         * tests/test-linkat.c: Likewise.
9777         * tests/test-linked_list.c: Likewise.
9778         * tests/test-linkedhash_list.c: Likewise.
9779         * tests/test-localename.c: Likewise.
9780         * tests/test-lseek.c: Likewise.
9781         * tests/test-lstat.c: Likewise.
9782         * tests/test-mbmemcasecmp.c: Likewise.
9783         * tests/test-mbmemcasecoll.c: Likewise.
9784         * tests/test-mbrtowc.c: Likewise.
9785         * tests/test-mbscasecmp.c: Likewise.
9786         * tests/test-mbscasestr1.c: Likewise.
9787         * tests/test-mbscasestr2.c: Likewise.
9788         * tests/test-mbscasestr3.c: Likewise.
9789         * tests/test-mbscasestr4.c: Likewise.
9790         * tests/test-mbschr.c: Likewise.
9791         * tests/test-mbscspn.c: Likewise.
9792         * tests/test-mbsinit.c: Likewise.
9793         * tests/test-mbsncasecmp.c: Likewise.
9794         * tests/test-mbsnrtowcs.c: Likewise.
9795         * tests/test-mbspbrk.c: Likewise.
9796         * tests/test-mbspcasecmp.c: Likewise.
9797         * tests/test-mbsrchr.c: Likewise.
9798         * tests/test-mbsrtowcs.c: Likewise.
9799         * tests/test-mbsspn.c: Likewise.
9800         * tests/test-mbsstr1.c: Likewise.
9801         * tests/test-mbsstr2.c: Likewise.
9802         * tests/test-mbsstr3.c: Likewise.
9803         * tests/test-memchr.c: Likewise.
9804         * tests/test-memchr2.c: Likewise.
9805         * tests/test-memcmp.c: Likewise.
9806         * tests/test-memmem.c: Likewise.
9807         * tests/test-memrchr.c: Likewise.
9808         * tests/test-mkdir.c: Likewise.
9809         * tests/test-mkdirat.c: Likewise.
9810         * tests/test-mkfifo.c: Likewise.
9811         * tests/test-mkfifoat.c: Likewise.
9812         * tests/test-mknod.c: Likewise.
9813         * tests/test-nanosleep.c: Likewise.
9814         * tests/test-nl_langinfo.c: Likewise.
9815         * tests/test-obstack-printf.c: Likewise.
9816         * tests/test-open.c: Likewise.
9817         * tests/test-openat.c: Likewise.
9818         * tests/test-pipe-filter-gi1.c: Likewise.
9819         * tests/test-pipe-filter-gi2-main.c: Likewise.
9820         * tests/test-pipe-filter-ii1.c: Likewise.
9821         * tests/test-pipe-filter-ii2-main.c: Likewise.
9822         * tests/test-pipe2.c: Likewise.
9823         * tests/test-popen.h: Likewise.
9824         * tests/test-posixtm.c: Likewise.
9825         * tests/test-pread.c: Likewise.
9826         * tests/test-printf-frexp.c: Likewise.
9827         * tests/test-printf-frexpl.c: Likewise.
9828         * tests/test-printf-posix.c: Likewise.
9829         * tests/test-priv-set.c: Likewise.
9830         * tests/test-quotearg.c: Likewise.
9831         * tests/test-random_r.c: Likewise.
9832         * tests/test-rawmemchr.c: Likewise.
9833         * tests/test-rbtree_list.c: Likewise.
9834         * tests/test-rbtree_oset.c: Likewise.
9835         * tests/test-rbtreehash_list.c: Likewise.
9836         * tests/test-readlink.c: Likewise.
9837         * tests/test-remove.c: Likewise.
9838         * tests/test-rename.c: Likewise.
9839         * tests/test-renameat.c: Likewise.
9840         * tests/test-rmdir.c: Likewise.
9841         * tests/test-round1.c: Likewise.
9842         * tests/test-roundf1.c: Likewise.
9843         * tests/test-roundl.c: Likewise.
9844         * tests/test-safe-alloc.c: Likewise.
9845         * tests/test-sameacls.c: Likewise.
9846         * tests/test-set-mode-acl.c: Likewise.
9847         * tests/test-setenv.c: Likewise.
9848         * tests/test-sigaction.c: Likewise.
9849         * tests/test-signbit.c: Likewise.
9850         * tests/test-sleep.c: Likewise.
9851         * tests/test-snprintf-posix.c: Likewise.
9852         * tests/test-snprintf.c: Likewise.
9853         * tests/test-sprintf-posix.c: Likewise.
9854         * tests/test-stat-time.c: Likewise.
9855         * tests/test-stat.c: Likewise.
9856         * tests/test-strcasestr.c: Likewise.
9857         * tests/test-strchrnul.c: Likewise.
9858         * tests/test-strerror.c: Likewise.
9859         * tests/test-striconv.c: Likewise.
9860         * tests/test-striconveh.c: Likewise.
9861         * tests/test-striconveha.c: Likewise.
9862         * tests/test-strsignal.c: Likewise.
9863         * tests/test-strstr.c: Likewise.
9864         * tests/test-strtod.c: Likewise.
9865         * tests/test-strverscmp.c: Likewise.
9866         * tests/test-symlink.c: Likewise.
9867         * tests/test-symlinkat.c: Likewise.
9868         * tests/test-trunc1.c: Likewise.
9869         * tests/test-trunc2.c: Likewise.
9870         * tests/test-truncf1.c: Likewise.
9871         * tests/test-truncf2.c: Likewise.
9872         * tests/test-truncl.c: Likewise.
9873         * tests/test-uname.c: Likewise.
9874         * tests/test-unlink.c: Likewise.
9875         * tests/test-unlinkat.c: Likewise.
9876         * tests/test-unsetenv.c: Likewise.
9877         * tests/test-usleep.c: Likewise.
9878         * tests/test-utimens.c: Likewise.
9879         * tests/test-utimensat.c: Likewise.
9880         * tests/test-vasnprintf-posix.c: Likewise.
9881         * tests/test-vasnprintf-posix2.c: Likewise.
9882         * tests/test-vasnprintf.c: Likewise.
9883         * tests/test-vasprintf-posix.c: Likewise.
9884         * tests/test-vasprintf.c: Likewise.
9885         * tests/test-vdprintf-posix.c: Likewise.
9886         * tests/test-vfprintf-posix.c: Likewise.
9887         * tests/test-vprintf-posix.c: Likewise.
9888         * tests/test-vsnprintf-posix.c: Likewise.
9889         * tests/test-vsnprintf.c: Likewise.
9890         * tests/test-vsprintf-posix.c: Likewise.
9891         * tests/test-wcrtomb.c: Likewise.
9892         * tests/test-wcsnrtombs.c: Likewise.
9893         * tests/test-wcsrtombs.c: Likewise.
9894         * tests/test-wctype.c: Likewise.
9895         * tests/test-wcwidth.c: Likewise.
9896         * tests/test-xfprintf-posix.c: Likewise.
9897         * tests/test-xmemdup0.c: Likewise.
9898         * tests/test-xprintf-posix.c: Likewise.
9899         * tests/test-xvasprintf.c: Likewise.
9900         * tests/unicase/test-locale-language.c: Likewise.
9901         * tests/unicase/test-mapping-part1.h: Likewise.
9902         * tests/unicase/test-predicate-part1.h: Likewise.
9903         * tests/unicase/test-u8-casecmp.c: Likewise.
9904         * tests/unicase/test-u8-casecoll.c: Likewise.
9905         * tests/unicase/test-u8-casefold.c: Likewise.
9906         * tests/unicase/test-u8-is-cased.c: Likewise.
9907         * tests/unicase/test-u8-is-casefolded.c: Likewise.
9908         * tests/unicase/test-u8-is-lowercase.c: Likewise.
9909         * tests/unicase/test-u8-is-titlecase.c: Likewise.
9910         * tests/unicase/test-u8-is-uppercase.c: Likewise.
9911         * tests/unicase/test-u8-tolower.c: Likewise.
9912         * tests/unicase/test-u8-totitle.c: Likewise.
9913         * tests/unicase/test-u8-toupper.c: Likewise.
9914         * tests/unicase/test-u16-casecmp.c: Likewise.
9915         * tests/unicase/test-u16-casecoll.c: Likewise.
9916         * tests/unicase/test-u16-casefold.c: Likewise.
9917         * tests/unicase/test-u16-is-cased.c: Likewise.
9918         * tests/unicase/test-u16-is-casefolded.c: Likewise.
9919         * tests/unicase/test-u16-is-lowercase.c: Likewise.
9920         * tests/unicase/test-u16-is-titlecase.c: Likewise.
9921         * tests/unicase/test-u16-is-uppercase.c: Likewise.
9922         * tests/unicase/test-u16-tolower.c: Likewise.
9923         * tests/unicase/test-u16-totitle.c: Likewise.
9924         * tests/unicase/test-u16-toupper.c: Likewise.
9925         * tests/unicase/test-u32-casecmp.c: Likewise.
9926         * tests/unicase/test-u32-casecoll.c: Likewise.
9927         * tests/unicase/test-u32-casefold.c: Likewise.
9928         * tests/unicase/test-u32-is-cased.c: Likewise.
9929         * tests/unicase/test-u32-is-casefolded.c: Likewise.
9930         * tests/unicase/test-u32-is-lowercase.c: Likewise.
9931         * tests/unicase/test-u32-is-titlecase.c: Likewise.
9932         * tests/unicase/test-u32-is-uppercase.c: Likewise.
9933         * tests/unicase/test-u32-tolower.c: Likewise.
9934         * tests/unicase/test-u32-totitle.c: Likewise.
9935         * tests/unicase/test-u32-toupper.c: Likewise.
9936         * tests/unicase/test-ulc-casecmp.c: Likewise.
9937         * tests/unicase/test-ulc-casecoll.c: Likewise.
9938         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9939         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9940         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9941         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9942         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9943         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9944         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9945         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9946         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9947         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9948         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9949         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9950         * tests/unictype/test-bidi_byname.c: Likewise.
9951         * tests/unictype/test-bidi_name.c: Likewise.
9952         * tests/unictype/test-bidi_of.c: Likewise.
9953         * tests/unictype/test-bidi_test.c: Likewise.
9954         * tests/unictype/test-block_list.c: Likewise.
9955         * tests/unictype/test-block_of.c: Likewise.
9956         * tests/unictype/test-block_test.c: Likewise.
9957         * tests/unictype/test-categ_and.c: Likewise.
9958         * tests/unictype/test-categ_and_not.c: Likewise.
9959         * tests/unictype/test-categ_byname.c: Likewise.
9960         * tests/unictype/test-categ_name.c: Likewise.
9961         * tests/unictype/test-categ_none.c: Likewise.
9962         * tests/unictype/test-categ_of.c: Likewise.
9963         * tests/unictype/test-categ_or.c: Likewise.
9964         * tests/unictype/test-categ_test_withtable.c: Likewise.
9965         * tests/unictype/test-combining.c: Likewise.
9966         * tests/unictype/test-decdigit.c: Likewise.
9967         * tests/unictype/test-digit.c: Likewise.
9968         * tests/unictype/test-mirror.c: Likewise.
9969         * tests/unictype/test-numeric.c: Likewise.
9970         * tests/unictype/test-pr_byname.c: Likewise.
9971         * tests/unictype/test-pr_test.c: Likewise.
9972         * tests/unictype/test-predicate-part1.h: Likewise.
9973         * tests/unictype/test-scripts.c: Likewise.
9974         * tests/unictype/test-sy_c_ident.c: Likewise.
9975         * tests/unictype/test-sy_java_ident.c: Likewise.
9976         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
9977         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
9978         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
9979         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
9980         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
9981         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
9982         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
9983         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
9984         * tests/uninorm/test-canonical-decomposition.c: Likewise.
9985         * tests/uninorm/test-compat-decomposition.c: Likewise.
9986         * tests/uninorm/test-composition.c: Likewise.
9987         * tests/uninorm/test-decomposing-form.c: Likewise.
9988         * tests/uninorm/test-decomposition.c: Likewise.
9989         * tests/uninorm/test-u8-nfc.c: Likewise.
9990         * tests/uninorm/test-u8-nfd.c: Likewise.
9991         * tests/uninorm/test-u8-nfkc.c: Likewise.
9992         * tests/uninorm/test-u8-nfkd.c: Likewise.
9993         * tests/uninorm/test-u8-normcmp.c: Likewise.
9994         * tests/uninorm/test-u8-normcoll.c: Likewise.
9995         * tests/uninorm/test-u16-nfc.c: Likewise.
9996         * tests/uninorm/test-u16-nfd.c: Likewise.
9997         * tests/uninorm/test-u16-nfkc.c: Likewise.
9998         * tests/uninorm/test-u16-nfkd.c: Likewise.
9999         * tests/uninorm/test-u16-normcmp.c: Likewise.
10000         * tests/uninorm/test-u16-normcoll.c: Likewise.
10001         * tests/uninorm/test-u32-nfc.c: Likewise.
10002         * tests/uninorm/test-u32-nfd.c: Likewise.
10003         * tests/uninorm/test-u32-nfkc.c: Likewise.
10004         * tests/uninorm/test-u32-nfkd.c: Likewise.
10005         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10006         * tests/uninorm/test-u32-normcmp.c: Likewise.
10007         * tests/uninorm/test-u32-normcoll.c: Likewise.
10008         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10009         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10010         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10011         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10012         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10013         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10014         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10015         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10016         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10017         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10018         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10019         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10020         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10021         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10022         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10023         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10024         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10025         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10026         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10027         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10028         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10029         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10030         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10031         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10032         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10033         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10034         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10035         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10036         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10037         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10038         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10039         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10040         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10041         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10042         * tests/uniwidth/test-u8-width.c: Likewise.
10043         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10044         * tests/uniwidth/test-u16-width.c: Likewise.
10045         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10046         * tests/uniwidth/test-u32-width.c: Likewise.
10047         * tests/uniwidth/test-uc_width.c: Likewise.
10048         * tests/uniwidth/test-uc_width2.c: Likewise.
10049         * modules/acl-tests (Files): Add tests/macros.h.
10050         * modules/areadlink-tests (Files): Likewise.
10051         * modules/areadlink-with-size-tests (Files): Likewise.
10052         * modules/areadlinkat-tests (Files): Likewise.
10053         * modules/areadlinkat-with-size-tests (Files): Likewise.
10054         * modules/argmatch-tests (Files): Likewise.
10055         * modules/argv-iter-tests (Files): Likewise.
10056         * modules/array-list-tests (Files): Likewise.
10057         * modules/array-mergesort-tests (Files): Likewise.
10058         * modules/array-oset-tests (Files): Likewise.
10059         * modules/avltree-list-tests (Files): Likewise.
10060         * modules/avltree-oset-tests (Files): Likewise.
10061         * modules/avltreehash-list-tests (Files): Likewise.
10062         * modules/base64-tests (Files): Likewise.
10063         * modules/binary-io-tests (Files): Likewise.
10064         * modules/bitrotate-tests (Files): Likewise.
10065         * modules/btowc-tests (Files): Likewise.
10066         * modules/byteswap-tests (Files): Likewise.
10067         * modules/c-ctype-tests (Files): Likewise.
10068         * modules/c-stack-tests (Files): Likewise.
10069         * modules/c-strcase-tests (Files): Likewise.
10070         * modules/c-strcasestr-tests (Files): Likewise.
10071         * modules/c-strstr-tests (Files): Likewise.
10072         * modules/canonicalize-lgpl-tests (Files): Likewise.
10073         * modules/canonicalize-tests (Files): Likewise.
10074         * modules/carray-list-tests (Files): Likewise.
10075         * modules/ceilf-tests (Files): Likewise.
10076         * modules/ceill-tests (Files): Likewise.
10077         * modules/chown-tests (Files): Likewise.
10078         * modules/cloexec-tests (Files): Likewise.
10079         * modules/copy-file-tests (Files): Likewise.
10080         * modules/count-one-bits-tests (Files): Likewise.
10081         * modules/dprintf-posix-tests (Files): Likewise.
10082         * modules/dup2-tests (Files): Likewise.
10083         * modules/dup3-tests (Files): Likewise.
10084         * modules/duplocale-tests (Files): Likewise.
10085         * modules/fbufmode-tests (Files): Likewise.
10086         * modules/fchdir-tests (Files): Likewise.
10087         * modules/fcntl-safer-tests (Files): Likewise.
10088         * modules/fcntl-tests (Files): Likewise.
10089         * modules/fdopendir-tests (Files): Likewise.
10090         * modules/fdutimensat-tests (Files): Likewise.
10091         * modules/fflush-tests (Files): Likewise.
10092         * modules/filevercmp-tests (Files): Likewise.
10093         * modules/flock-tests (Files): Likewise.
10094         * modules/floorf-tests (Files): Likewise.
10095         * modules/floorl-tests (Files): Likewise.
10096         * modules/fnmatch-tests (Files): Likewise.
10097         * modules/fopen-safer-tests (Files): Likewise.
10098         * modules/fopen-tests (Files): Likewise.
10099         * modules/fpending-tests (Files): Likewise.
10100         * modules/fprintf-posix-tests (Files): Likewise.
10101         * modules/fpurge-tests (Files): Likewise.
10102         * modules/freadable-tests (Files): Likewise.
10103         * modules/freadahead-tests (Files): Likewise.
10104         * modules/freading-tests (Files): Likewise.
10105         * modules/freadptr-tests (Files): Likewise.
10106         * modules/freadseek-tests (Files): Likewise.
10107         * modules/freopen-tests (Files): Likewise.
10108         * modules/frexp-nolibm-tests (Files): Likewise.
10109         * modules/frexp-tests (Files): Likewise.
10110         * modules/frexpl-nolibm-tests (Files): Likewise.
10111         * modules/frexpl-tests (Files): Likewise.
10112         * modules/fseek-tests (Files): Likewise.
10113         * modules/fseeko-tests (Files): Likewise.
10114         * modules/fstrcmp-tests (Files): Likewise.
10115         * modules/fsync-tests (Files): Likewise.
10116         * modules/ftell-tests (Files): Likewise.
10117         * modules/ftello-tests (Files): Likewise.
10118         * modules/func-tests (Files): Likewise.
10119         * modules/futimens-tests (Files): Likewise.
10120         * modules/fwritable-tests (Files): Likewise.
10121         * modules/fwriting-tests (Files): Likewise.
10122         * modules/getcwd-tests (Files): Likewise.
10123         * modules/getdate-tests (Files): Likewise.
10124         * modules/getdelim-tests (Files): Likewise.
10125         * modules/getdtablesize-tests (Files): Likewise.
10126         * modules/getgroups-tests (Files): Likewise.
10127         * modules/getline-tests (Files): Likewise.
10128         * modules/getndelim2-tests (Files): Likewise.
10129         * modules/glob-tests (Files): Likewise.
10130         * modules/hash-tests (Files): Likewise.
10131         * modules/i-ring-tests (Files): Likewise.
10132         * modules/iconv-tests (Files): Likewise.
10133         * modules/iconv_open-utf-tests (Files): Likewise.
10134         * modules/idpriv-drop-tests (Files): Likewise.
10135         * modules/idpriv-droptemp-tests (Files): Likewise.
10136         * modules/inet_ntop-tests (Files): Likewise.
10137         * modules/inet_pton-tests (Files): Likewise.
10138         * modules/isblank-tests (Files): Likewise.
10139         * modules/isfinite-tests (Files): Likewise.
10140         * modules/isinf-tests (Files): Likewise.
10141         * modules/isnan-tests (Files): Likewise.
10142         * modules/isnand-nolibm-tests (Files): Likewise.
10143         * modules/isnand-tests (Files): Likewise.
10144         * modules/isnanf-nolibm-tests (Files): Likewise.
10145         * modules/isnanf-tests (Files): Likewise.
10146         * modules/isnanl-nolibm-tests (Files): Likewise.
10147         * modules/isnanl-tests (Files): Likewise.
10148         * modules/lchown-tests (Files): Likewise.
10149         * modules/ldexpl-tests (Files): Likewise.
10150         * modules/link-tests (Files): Likewise.
10151         * modules/linkat-tests (Files): Likewise.
10152         * modules/linked-list-tests (Files): Likewise.
10153         * modules/linkedhash-list-tests (Files): Likewise.
10154         * modules/localename-tests (Files): Likewise.
10155         * modules/lseek-tests (Files): Likewise.
10156         * modules/lstat-tests (Files): Likewise.
10157         * modules/mbmemcasecmp-tests (Files): Likewise.
10158         * modules/mbmemcasecoll-tests (Files): Likewise.
10159         * modules/mbrtowc-tests (Files): Likewise.
10160         * modules/mbscasecmp-tests (Files): Likewise.
10161         * modules/mbscasestr-tests (Files): Likewise.
10162         * modules/mbschr-tests (Files): Likewise.
10163         * modules/mbscspn-tests (Files): Likewise.
10164         * modules/mbsinit-tests (Files): Likewise.
10165         * modules/mbsncasecmp-tests (Files): Likewise.
10166         * modules/mbsnrtowcs-tests (Files): Likewise.
10167         * modules/mbspbrk-tests (Files): Likewise.
10168         * modules/mbspcasecmp-tests (Files): Likewise.
10169         * modules/mbsrchr-tests (Files): Likewise.
10170         * modules/mbsrtowcs-tests (Files): Likewise.
10171         * modules/mbsspn-tests (Files): Likewise.
10172         * modules/mbsstr-tests (Files): Likewise.
10173         * modules/memchr-tests (Files): Likewise.
10174         * modules/memchr2-tests (Files): Likewise.
10175         * modules/memcmp-tests (Files): Likewise.
10176         * modules/memmem-tests (Files): Likewise.
10177         * modules/memrchr-tests (Files): Likewise.
10178         * modules/mkdir-tests (Files): Likewise.
10179         * modules/mkfifo-tests (Files): Likewise.
10180         * modules/mkfifoat-tests (Files): Likewise.
10181         * modules/mknod-tests (Files): Likewise.
10182         * modules/nanosleep-tests (Files): Likewise.
10183         * modules/nl_langinfo-tests (Files): Likewise.
10184         * modules/obstack-printf-tests (Files): Likewise.
10185         * modules/open-tests (Files): Likewise.
10186         * modules/openat-tests (Files): Likewise.
10187         * modules/pipe-filter-gi-tests (Files): Likewise.
10188         * modules/pipe-filter-ii-tests (Files): Likewise.
10189         * modules/pipe2-tests (Files): Likewise.
10190         * modules/popen-safer-tests (Files): Likewise.
10191         * modules/popen-tests (Files): Likewise.
10192         * modules/posixtm-tests (Files): Likewise.
10193         * modules/pread-tests (Files): Likewise.
10194         * modules/printf-frexp-tests (Files): Likewise.
10195         * modules/printf-frexpl-tests (Files): Likewise.
10196         * modules/printf-posix-tests (Files): Likewise.
10197         * modules/priv-set-tests (Files): Likewise.
10198         * modules/quotearg-tests (Files): Likewise.
10199         * modules/random_r-tests (Files): Likewise.
10200         * modules/rawmemchr-tests (Files): Likewise.
10201         * modules/rbtree-list-tests (Files): Likewise.
10202         * modules/rbtree-oset-tests (Files): Likewise.
10203         * modules/rbtreehash-list-tests (Files): Likewise.
10204         * modules/readlink-tests (Files): Likewise.
10205         * modules/remove-tests (Files): Likewise.
10206         * modules/rename-tests (Files): Likewise.
10207         * modules/renameat-tests (Files): Likewise.
10208         * modules/rmdir-tests (Files): Likewise.
10209         * modules/round-tests (Files): Likewise.
10210         * modules/roundf-tests (Files): Likewise.
10211         * modules/roundl-tests (Files): Likewise.
10212         * modules/safe-alloc-tests (Files): Likewise.
10213         * modules/setenv-tests (Files): Likewise.
10214         * modules/sigaction-tests (Files): Likewise.
10215         * modules/signbit-tests (Files): Likewise.
10216         * modules/sleep-tests (Files): Likewise.
10217         * modules/snprintf-posix-tests (Files): Likewise.
10218         * modules/snprintf-tests (Files): Likewise.
10219         * modules/sprintf-posix-tests (Files): Likewise.
10220         * modules/stat-tests (Files): Likewise.
10221         * modules/stat-time-tests (Files): Likewise.
10222         * modules/strcasestr-tests (Files): Likewise.
10223         * modules/strchrnul-tests (Files): Likewise.
10224         * modules/strerror-tests (Files): Likewise.
10225         * modules/striconv-tests (Files): Likewise.
10226         * modules/striconveh-tests (Files): Likewise.
10227         * modules/striconveha-tests (Files): Likewise.
10228         * modules/strsignal-tests (Files): Likewise.
10229         * modules/strstr-tests (Files): Likewise.
10230         * modules/strtod-tests (Files): Likewise.
10231         * modules/strverscmp-tests (Files): Likewise.
10232         * modules/symlink-tests (Files): Likewise.
10233         * modules/symlinkat-tests (Files): Likewise.
10234         * modules/trunc-tests (Files): Likewise.
10235         * modules/truncf-tests (Files): Likewise.
10236         * modules/truncl-tests (Files): Likewise.
10237         * modules/uname-tests (Files): Likewise.
10238         * modules/unicase/cased-tests (Files): Likewise.
10239         * modules/unicase/ignorable-tests (Files): Likewise.
10240         * modules/unicase/locale-language-tests (Files): Likewise.
10241         * modules/unicase/tolower-tests (Files): Likewise.
10242         * modules/unicase/totitle-tests (Files): Likewise.
10243         * modules/unicase/toupper-tests (Files): Likewise.
10244         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10245         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10246         * modules/unicase/u8-casefold-tests (Files): Likewise.
10247         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10248         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10249         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10250         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10251         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10252         * modules/unicase/u8-tolower-tests (Files): Likewise.
10253         * modules/unicase/u8-totitle-tests (Files): Likewise.
10254         * modules/unicase/u8-toupper-tests (Files): Likewise.
10255         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10256         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10257         * modules/unicase/u16-casefold-tests (Files): Likewise.
10258         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10259         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10260         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10261         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10262         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10263         * modules/unicase/u16-tolower-tests (Files): Likewise.
10264         * modules/unicase/u16-totitle-tests (Files): Likewise.
10265         * modules/unicase/u16-toupper-tests (Files): Likewise.
10266         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10267         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10268         * modules/unicase/u32-casefold-tests (Files): Likewise.
10269         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10270         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10271         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10272         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10273         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10274         * modules/unicase/u32-tolower-tests (Files): Likewise.
10275         * modules/unicase/u32-totitle-tests (Files): Likewise.
10276         * modules/unicase/u32-toupper-tests (Files): Likewise.
10277         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10278         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10279         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10280         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10281         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10282         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10283         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10284         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10285         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10286         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10287         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10288         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10289         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10290         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10291         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10292         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10293         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10294         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10295         * modules/unictype/block-list-tests (Files): Likewise.
10296         * modules/unictype/block-of-tests (Files): Likewise.
10297         * modules/unictype/block-test-tests (Files): Likewise.
10298         * modules/unictype/category-C-tests (Files): Likewise.
10299         * modules/unictype/category-Cc-tests (Files): Likewise.
10300         * modules/unictype/category-Cf-tests (Files): Likewise.
10301         * modules/unictype/category-Cn-tests (Files): Likewise.
10302         * modules/unictype/category-Co-tests (Files): Likewise.
10303         * modules/unictype/category-Cs-tests (Files): Likewise.
10304         * modules/unictype/category-L-tests (Files): Likewise.
10305         * modules/unictype/category-Ll-tests (Files): Likewise.
10306         * modules/unictype/category-Lm-tests (Files): Likewise.
10307         * modules/unictype/category-Lo-tests (Files): Likewise.
10308         * modules/unictype/category-Lt-tests (Files): Likewise.
10309         * modules/unictype/category-Lu-tests (Files): Likewise.
10310         * modules/unictype/category-M-tests (Files): Likewise.
10311         * modules/unictype/category-Mc-tests (Files): Likewise.
10312         * modules/unictype/category-Me-tests (Files): Likewise.
10313         * modules/unictype/category-Mn-tests (Files): Likewise.
10314         * modules/unictype/category-N-tests (Files): Likewise.
10315         * modules/unictype/category-Nd-tests (Files): Likewise.
10316         * modules/unictype/category-Nl-tests (Files): Likewise.
10317         * modules/unictype/category-No-tests (Files): Likewise.
10318         * modules/unictype/category-P-tests (Files): Likewise.
10319         * modules/unictype/category-Pc-tests (Files): Likewise.
10320         * modules/unictype/category-Pd-tests (Files): Likewise.
10321         * modules/unictype/category-Pe-tests (Files): Likewise.
10322         * modules/unictype/category-Pf-tests (Files): Likewise.
10323         * modules/unictype/category-Pi-tests (Files): Likewise.
10324         * modules/unictype/category-Po-tests (Files): Likewise.
10325         * modules/unictype/category-Ps-tests (Files): Likewise.
10326         * modules/unictype/category-S-tests (Files): Likewise.
10327         * modules/unictype/category-Sc-tests (Files): Likewise.
10328         * modules/unictype/category-Sk-tests (Files): Likewise.
10329         * modules/unictype/category-Sm-tests (Files): Likewise.
10330         * modules/unictype/category-So-tests (Files): Likewise.
10331         * modules/unictype/category-Z-tests (Files): Likewise.
10332         * modules/unictype/category-Zl-tests (Files): Likewise.
10333         * modules/unictype/category-Zp-tests (Files): Likewise.
10334         * modules/unictype/category-Zs-tests (Files): Likewise.
10335         * modules/unictype/category-and-not-tests (Files): Likewise.
10336         * modules/unictype/category-and-tests (Files): Likewise.
10337         * modules/unictype/category-byname-tests (Files): Likewise.
10338         * modules/unictype/category-name-tests (Files): Likewise.
10339         * modules/unictype/category-none-tests (Files): Likewise.
10340         * modules/unictype/category-of-tests (Files): Likewise.
10341         * modules/unictype/category-or-tests (Files): Likewise.
10342         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10343         * modules/unictype/combining-class-tests (Files): Likewise.
10344         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10345         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10346         * modules/unictype/ctype-blank-tests (Files): Likewise.
10347         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10348         * modules/unictype/ctype-digit-tests (Files): Likewise.
10349         * modules/unictype/ctype-graph-tests (Files): Likewise.
10350         * modules/unictype/ctype-lower-tests (Files): Likewise.
10351         * modules/unictype/ctype-print-tests (Files): Likewise.
10352         * modules/unictype/ctype-punct-tests (Files): Likewise.
10353         * modules/unictype/ctype-space-tests (Files): Likewise.
10354         * modules/unictype/ctype-upper-tests (Files): Likewise.
10355         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10356         * modules/unictype/decimal-digit-tests (Files): Likewise.
10357         * modules/unictype/digit-tests (Files): Likewise.
10358         * modules/unictype/mirror-tests (Files): Likewise.
10359         * modules/unictype/numeric-tests (Files): Likewise.
10360         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10361         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10362         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10363         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10364         Likewise.
10365         * modules/unictype/property-bidi-block-separator-tests (Files):
10366         Likewise.
10367         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10368         Likewise.
10369         * modules/unictype/property-bidi-common-separator-tests (Files):
10370         Likewise.
10371         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10372         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10373         Likewise.
10374         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10375         Likewise.
10376         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10377         Likewise.
10378         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10379         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10380         Likewise.
10381         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10382         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10383         Likewise.
10384         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10385         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10386         * modules/unictype/property-bidi-segment-separator-tests (Files):
10387         Likewise.
10388         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10389         * modules/unictype/property-byname-tests (Files): Likewise.
10390         * modules/unictype/property-combining-tests (Files): Likewise.
10391         * modules/unictype/property-composite-tests (Files): Likewise.
10392         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10393         * modules/unictype/property-dash-tests (Files): Likewise.
10394         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10395         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10396         Likewise.
10397         * modules/unictype/property-deprecated-tests (Files): Likewise.
10398         * modules/unictype/property-diacritic-tests (Files): Likewise.
10399         * modules/unictype/property-extender-tests (Files): Likewise.
10400         * modules/unictype/property-format-control-tests (Files): Likewise.
10401         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10402         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10403         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10404         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10405         * modules/unictype/property-hyphen-tests (Files): Likewise.
10406         * modules/unictype/property-id-continue-tests (Files): Likewise.
10407         * modules/unictype/property-id-start-tests (Files): Likewise.
10408         * modules/unictype/property-ideographic-tests (Files): Likewise.
10409         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10410         * modules/unictype/property-ids-trinary-operator-tests (Files):
10411         Likewise.
10412         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10413         * modules/unictype/property-iso-control-tests (Files): Likewise.
10414         * modules/unictype/property-join-control-tests (Files): Likewise.
10415         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10416         * modules/unictype/property-line-separator-tests (Files): Likewise.
10417         * modules/unictype/property-logical-order-exception-tests (Files):
10418         Likewise.
10419         * modules/unictype/property-lowercase-tests (Files): Likewise.
10420         * modules/unictype/property-math-tests (Files): Likewise.
10421         * modules/unictype/property-non-break-tests (Files): Likewise.
10422         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10423         * modules/unictype/property-numeric-tests (Files): Likewise.
10424         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10425         * modules/unictype/property-other-default-ignorable-code-point-tests
10426         (Files): Likewise.
10427         * modules/unictype/property-other-grapheme-extend-tests (Files):
10428         Likewise.
10429         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10430         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10431         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10432         * modules/unictype/property-other-math-tests (Files): Likewise.
10433         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10434         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10435         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10436         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10437         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10438         * modules/unictype/property-private-use-tests (Files): Likewise.
10439         * modules/unictype/property-punctuation-tests (Files): Likewise.
10440         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10441         * modules/unictype/property-radical-tests (Files): Likewise.
10442         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10443         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10444         * modules/unictype/property-space-tests (Files): Likewise.
10445         * modules/unictype/property-terminal-punctuation-tests (Files):
10446         Likewise.
10447         * modules/unictype/property-test-tests (Files): Likewise.
10448         * modules/unictype/property-titlecase-tests (Files): Likewise.
10449         * modules/unictype/property-unassigned-code-value-tests (Files):
10450         Likewise.
10451         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10452         * modules/unictype/property-uppercase-tests (Files): Likewise.
10453         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10454         * modules/unictype/property-white-space-tests (Files): Likewise.
10455         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10456         * modules/unictype/property-xid-start-tests (Files): Likewise.
10457         * modules/unictype/property-zero-width-tests (Files): Likewise.
10458         * modules/unictype/scripts-tests (Files): Likewise.
10459         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10460         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10461         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10462         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10463         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10464         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10465         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10466         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10467         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10468         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10469         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10470         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10471         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10472         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10473         * modules/uninorm/composition-tests (Files): Likewise.
10474         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10475         * modules/uninorm/decomposition-tests (Files): Likewise.
10476         * modules/uninorm/filter-tests (Files): Likewise.
10477         * modules/uninorm/nfc-tests (Files): Likewise.
10478         * modules/uninorm/nfd-tests (Files): Likewise.
10479         * modules/uninorm/nfkc-tests (Files): Likewise.
10480         * modules/uninorm/nfkd-tests (Files): Likewise.
10481         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10482         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10483         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10484         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10485         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10486         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10487         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10488         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10489         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10490         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10491         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10492         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10493         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10494         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10495         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10496         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10497         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10498         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10499         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10500         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10501         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10502         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10503         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10504         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10505         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10506         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10507         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10508         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10509         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10510         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10511         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10512         * modules/uniwidth/u8-width-tests (Files): Likewise.
10513         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10514         * modules/uniwidth/u16-width-tests (Files): Likewise.
10515         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10516         * modules/uniwidth/u32-width-tests (Files): Likewise.
10517         * modules/uniwidth/width-tests (Files): Likewise.
10518         * modules/unlink-tests (Files): Likewise.
10519         * modules/unsetenv-tests (Files): Likewise.
10520         * modules/usleep-tests (Files): Likewise.
10521         * modules/utimens-tests (Files): Likewise.
10522         * modules/utimensat-tests (Files): Likewise.
10523         * modules/vasnprintf-posix-tests (Files): Likewise.
10524         * modules/vasnprintf-tests (Files): Likewise.
10525         * modules/vasprintf-posix-tests (Files): Likewise.
10526         * modules/vasprintf-tests (Files): Likewise.
10527         * modules/vdprintf-posix-tests (Files): Likewise.
10528         * modules/vfprintf-posix-tests (Files): Likewise.
10529         * modules/vprintf-posix-tests (Files): Likewise.
10530         * modules/vsnprintf-posix-tests (Files): Likewise.
10531         * modules/vsnprintf-tests (Files): Likewise.
10532         * modules/vsprintf-posix-tests (Files): Likewise.
10533         * modules/wcrtomb-tests (Files): Likewise.
10534         * modules/wcsnrtombs-tests (Files): Likewise.
10535         * modules/wcsrtombs-tests (Files): Likewise.
10536         * modules/wctype-tests (Files): Likewise.
10537         * modules/wcwidth-tests (Files): Likewise.
10538         * modules/xmemdup0-tests (Files): Likewise.
10539         * modules/xprintf-posix-tests (Files): Likewise.
10540         * modules/xvasprintf-tests (Files): Likewise.
10541
10542 2009-12-24  Eric Blake  <ebb9@byu.net>
10543
10544         test-nanosleep: fix typo
10545         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10546         patch.
10547         Reported by Bruno Haible.
10548
10549 2009-12-24  Bruno Haible  <bruno@clisp.org>
10550
10551         Reduce namespace pollution on glibc systems.
10552         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10553         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10554         systems.
10555         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10556         <getopt.h> on glibc systems.
10557         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10558         systems.
10559         * lib/fcntl.c: Include <unistd.h> here instead.
10560
10561 2009-12-24  Bruno Haible  <bruno@clisp.org>
10562
10563         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10564
10565 2009-12-24  Eric Blake  <ebb9@byu.net>
10566
10567         tests: add signature checks
10568         * tests/signature.h (SIGNATURE_CHECK): New file.
10569         * modules/atexit-tests (Files): Use it.
10570         * modules/btowc-tests (Files): Likewise.
10571         * modules/canonicalize-lgpl-tests (Files): Likewise.
10572         * modules/ceilf-tests (Files): Likewise.
10573         * modules/ceill-tests (Files): Likewise.
10574         * modules/chown-tests (Files): Likewise.
10575         * modules/dprintf-posix-tests (Files): Likewise.
10576         * modules/dup2-tests (Files): Likewise.
10577         * modules/dup3-tests (Files): Likewise.
10578         * modules/duplocale-tests (Files): Likewise.
10579         * modules/fchdir-tests (Files): Likewise.
10580         * modules/fcntl-tests (Files): Likewise.
10581         * modules/fdopendir-tests (Files): Likewise.
10582         * modules/fflush-tests (Files): Likewise.
10583         * modules/flock-tests (Files): Likewise.
10584         * modules/floorf-tests (Files): Likewise.
10585         * modules/floorl-tests (Files): Likewise.
10586         * modules/fnmatch-tests (Files): Likewise.
10587         * modules/fopen-tests (Files): Likewise.
10588         * modules/fprintf-posix-tests (Files): Likewise.
10589         * modules/freopen-tests (Files): Likewise.
10590         * modules/frexp-nolibm-tests (Files): Likewise.
10591         * modules/frexp-tests (Files): Likewise.
10592         * modules/frexpl-nolibm-tests (Files): Likewise.
10593         * modules/frexpl-tests (Files): Likewise.
10594         * modules/fseek-tests (Files): Likewise.
10595         * modules/fseeko-tests (Files): Likewise.
10596         * modules/fsync-tests (Files): Likewise.
10597         * modules/ftell-tests (Files): Likewise.
10598         * modules/ftello-tests (Files): Likewise.
10599         * modules/futimens-tests (Files): Likewise.
10600         * modules/getaddrinfo-tests (Files): Likewise.
10601         * modules/getcwd-tests (Files): Likewise.
10602         * modules/getdelim-tests (Files): Likewise.
10603         * modules/getdtablesize-tests (Files): Likewise.
10604         * modules/getgroups-tests (Files): Likewise.
10605         * modules/gethostname-tests (Files): Likewise.
10606         * modules/getline-tests (Files): Likewise.
10607         * modules/getopt-posix-tests (Files): Likewise.
10608         * modules/gettimeofday-tests (Files): Likewise.
10609         * modules/glob-tests (Files): Likewise.
10610         * modules/iconv-tests (Files): Likewise.
10611         * modules/inet_ntop-tests (Files): Likewise.
10612         * modules/inet_pton-tests (Files): Likewise.
10613         * modules/isblank-tests (Files): Likewise.
10614         * modules/lchown-tests (Files): Likewise.
10615         * modules/ldexpl-tests (Files): Likewise.
10616         * modules/link-tests (Files): Likewise.
10617         * modules/linkat-tests (Files): Likewise.
10618         * modules/lseek-tests (Files): Likewise.
10619         * modules/lstat-tests (Files): Likewise.
10620         * modules/mbrtowc-tests (Files): Likewise.
10621         * modules/mbsinit-tests (Files): Likewise.
10622         * modules/mbsnrtowcs-tests (Files): Likewise.
10623         * modules/mbsrtowcs-tests (Files): Likewise.
10624         * modules/memchr-tests (Files): Likewise.
10625         * modules/memcmp-tests (Files): Likewise.
10626         * modules/memmem-tests (Files): Likewise.
10627         * modules/memrchr-tests (Files): Likewise.
10628         * modules/mkdir-tests (Files): Likewise.
10629         * modules/mkfifo-tests (Files): Likewise.
10630         * modules/mkfifoat-tests (Files): Likewise.
10631         * modules/mknod-tests (Files): Likewise.
10632         * modules/nanosleep-tests (Files): Likewise.
10633         * modules/nl_langinfo-tests (Files): Likewise.
10634         * modules/obstack-printf-tests (Files): Likewise.
10635         * modules/open-tests (Files): Likewise.
10636         * modules/openat-tests (Files): Likewise.
10637         * modules/perror-tests (Files): Likewise.
10638         * modules/pipe2-tests (Files): Likewise.
10639         * modules/poll-tests (Files): Likewise.
10640         * modules/popen-tests (Files): Likewise.
10641         * modules/posix_spawn-tests (Files): Likewise.
10642         * modules/posix_spawnp-tests (Files): Likewise.
10643         * modules/pread-tests (Files): Likewise.
10644         * modules/printf-posix-tests (Files): Likewise.
10645         * modules/pty-tests (Files): Likewise.
10646         * modules/random_r-tests (Files): Likewise.
10647         * modules/rawmemchr-tests (Files): Likewise.
10648         * modules/readlink-tests (Files): Likewise.
10649         * modules/remove-tests (Files): Likewise.
10650         * modules/rename-tests (Files): Likewise.
10651         * modules/renameat-tests (Files): Likewise.
10652         * modules/rmdir-tests (Files): Likewise.
10653         * modules/round-tests (Files): Likewise.
10654         * modules/roundf-tests (Files): Likewise.
10655         * modules/roundl-tests (Files): Likewise.
10656         * modules/select-tests (Files): Likewise.
10657         * modules/setenv-tests (Files): Likewise.
10658         * modules/sigaction-tests (Files): Likewise.
10659         * modules/sleep-tests (Files): Likewise.
10660         * modules/snprintf-posix-tests (Files): Likewise.
10661         * modules/snprintf-tests (Files): Likewise.
10662         * modules/sprintf-posix-tests (Files): Likewise.
10663         * modules/stat-tests (Files): Likewise.
10664         * modules/strcasestr-tests (Files): Likewise.
10665         * modules/strchrnul-tests (Files): Likewise.
10666         * modules/strerror-tests (Files): Likewise.
10667         * modules/strsignal-tests (Files): Likewise.
10668         * modules/strstr-tests (Files): Likewise.
10669         * modules/strtod-tests (Files): Likewise.
10670         * modules/strverscmp-tests (Files): Likewise.
10671         * modules/symlink-tests (Files): Likewise.
10672         * modules/symlinkat-tests (Files): Likewise.
10673         * modules/times-tests (Files): Likewise.
10674         * modules/trunc-tests (Files): Likewise.
10675         * modules/truncf-tests (Files): Likewise.
10676         * modules/truncl-tests (Files): Likewise.
10677         * modules/tsearch-tests (Files): Likewise.
10678         * modules/uname-tests (Files): Likewise.
10679         * modules/unlink-tests (Files): Likewise.
10680         * modules/unsetenv-tests (Files): Likewise.
10681         * modules/usleep-tests (Files): Likewise.
10682         * modules/utimensat-tests (Files): Likewise.
10683         * modules/vasprintf-tests (Files): Likewise.
10684         * modules/vdprintf-posix-tests (Files): Likewise.
10685         * modules/vfprintf-posix-tests (Files): Likewise.
10686         * modules/vprintf-posix-tests (Files): Likewise.
10687         * modules/vsnprintf-posix-tests (Files): Likewise.
10688         * modules/vsnprintf-tests (Files): Likewise.
10689         * modules/vsprintf-posix-tests (Files): Likewise.
10690         * modules/wcrtomb-tests (Files): Likewise.
10691         * modules/wcsnrtombs-tests (Files): Likewise.
10692         * modules/wcsrtombs-tests (Files): Likewise.
10693         * modules/wcwidth-tests (Files): Likewise.
10694         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
10695         * tests/test-isinf.c (isinf): Likewise.
10696         * tests/test-isnan.c (isnan): Likewise.
10697         * tests/test-signbit.c (signbit): Likewise.
10698         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
10699         declaration, either as macro or with correct signature.
10700         (select): Ensure function under test is declared with correct
10701         signature in correct header.
10702         * tests/test-atexit.c (atexit): Likewise.
10703         * tests/test-btowc.c (btowc): Likewise.
10704         * tests/test-canonicalize-lgpl.c (realpath)
10705         (canonicalize_file_name): Likewise.
10706         * tests/test-ceilf1.c (ceilf): Likewise.
10707         * tests/test-ceill.c (ceill): Likewise.
10708         * tests/test-chown.c (chown): Likewise.
10709         * tests/test-dprintf-posix.c (dprintf): Likewise.
10710         * tests/test-dup2.c (dup2): Likewise.
10711         * tests/test-dup3.c (dup3): Likewise.
10712         * tests/test-duplocale.c (duplocale): Likewise.
10713         * tests/test-fchdir.c (fchdir): Likewise.
10714         * tests/test-fchownat.c (fchownat): Likewise.
10715         * tests/test-fcntl.c (fcntl): Likewise.
10716         * tests/test-fdopendir.c (fdopendir): Likewise.
10717         * tests/test-fflush.c (fflush): Likewise.
10718         * tests/test-flock.c (flock): Likewise.
10719         * tests/test-floorf1.c (floorf): Likewise.
10720         * tests/test-floorl.c (floorl): Likewise.
10721         * tests/test-fnmatch.c (fnmatch): Likewise.
10722         * tests/test-fopen.c (fopen): Likewise.
10723         * tests/test-fprintf-posix.c (fprintf): Likewise.
10724         * tests/test-freopen.c (freopen): Likewise.
10725         * tests/test-frexp.c (frexp): Likewise.
10726         * tests/test-frexpl.c (frexpl): Likewise.
10727         * tests/test-fseek.c (fseek): Likewise.
10728         * tests/test-fseeko.c (fseeko): Likewise.
10729         * tests/test-fstatat.c (fstatat): Likewise.
10730         * tests/test-fsync.c (fsync): Likewise.
10731         * tests/test-ftell.c (ftell): Likewise.
10732         * tests/test-ftello.c (ftello): Likewise.
10733         * tests/test-futimens.c (futimens): Likewise.
10734         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
10735         (gai_strerror): Likewise.
10736         * tests/test-getcwd.c (getcwd): Likewise.
10737         * tests/test-getdelim.c (getdelim): Likewise.
10738         * tests/test-getdtablesize.c (getdtablesize): Likewise.
10739         * tests/test-getgroups.c (getgroups): Likewise.
10740         * tests/test-gethostname.c (gethostname): Likewise.
10741         * tests/test-getline.c (getline): Likewise.
10742         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
10743         Likewise.
10744         * tests/test-gettimeofday.c (gettimeofday): Likewise.
10745         * tests/test-glob.c (glob, globfree): Likewise.
10746         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
10747         * tests/test-inet_ntop.c (inet_ntop): Likewise.
10748         * tests/test-inet_pton.c (inet_pton): Likewise.
10749         * tests/test-isblank.c (isblank): Likewise.
10750         * tests/test-lchown.c (lchown): Likewise.
10751         * tests/test-ldexpl.c (ldexpl): Likewise.
10752         * tests/test-link.c (link): Likewise.
10753         * tests/test-linkat.c (linkat): Likewise.
10754         * tests/test-lseek.c (lseek): Likewise.
10755         * tests/test-lstat.c (lstat): Likewise.
10756         * tests/test-mbrtowc.c (mbrtowc): Likewise.
10757         * tests/test-mbsinit.c (mbsinit): Likewise.
10758         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
10759         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
10760         * tests/test-memchr.c (memchr): Likewise.
10761         * tests/test-memcmp.c (memcmp): Likewise.
10762         * tests/test-memmem.c (memmem): Likewise.
10763         * tests/test-memrchr.c (memrchr): Likewise.
10764         * tests/test-mkdir.c (mkdir): Likewise.
10765         * tests/test-mkdirat.c (mkdirat): Likewise.
10766         * tests/test-mkfifo.c (mkfifo): Likewise.
10767         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
10768         * tests/test-mknod.c (mknod): Likewise.
10769         * tests/test-nanosleep.c (nanosleep): Likewise.
10770         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
10771         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
10772         Likewise.
10773         * tests/test-open.c (open): Likewise.
10774         * tests/test-openat.c (openat): Likewise.
10775         * tests/test-perror.c (perror): Likewise.
10776         * tests/test-pipe2.c (pipe2): Likewise.
10777         * tests/test-poll.c (poll): Likewise.
10778         * tests/test-popen.c (popen, pclose): Likewise.
10779         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
10780         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
10781         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
10782         (posix_spawn_file_actions_destroy)
10783         (posix_spawn_file_actions_addclose)
10784         (posix_spawn_file_actions_addopen)
10785         (posix_spawn_file_actions_adddup2): Likewise.
10786         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
10787         * tests/test-pread.c (pread): Likewise.
10788         * tests/test-printf-posix.c (printf): Likewise.
10789         * tests/test-pty.c (openpty, forkpty): Likewise.
10790         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
10791         (random_r): Likewise.
10792         * tests/test-rawmemchr.c (rawmemchr): Likewise.
10793         * tests/test-readlink.c (readlink): Likewise.
10794         * tests/test-remove.c (remove): Likewise.
10795         * tests/test-rename.c (rename): Likewise.
10796         * tests/test-renameat.c (renameat): Likewise.
10797         * tests/test-rmdir.c (rmdir): Likewise.
10798         * tests/test-round1.c (round): Likewise.
10799         * tests/test-roundf1.c (roundf): Likewise.
10800         * tests/test-roundl.c (roundl): Likewise.
10801         * tests/test-setenv.c (setenv): Likewise.
10802         * tests/test-sigaction.c (sigaction): Likewise.
10803         * tests/test-sleep.c (sleep): Likewise.
10804         * tests/test-snprintf.c (snprintf): Likewise.
10805         * tests/test-sprintf-posix.c (sprintf): Likewise.
10806         * tests/test-stat.c (stat): Likewise.
10807         * tests/test-stpncpy.c (stpncpy): Likewise.
10808         * tests/test-strcasestr.c (strcasestr): Likewise.
10809         * tests/test-strchrnul.c (strchrnul): Likewise.
10810         * tests/test-strerror.c (strerror): Likewise.
10811         * tests/test-strsignal.c (strsignal): Likewise.
10812         * tests/test-strstr.c (strstr): Likewise.
10813         * tests/test-strtod.c (strtod): Likewise.
10814         * tests/test-strverscmp.c (strverscmp): Likewise.
10815         * tests/test-symlink.c (symlink): Likewise.
10816         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
10817         * tests/test-times.c (times): Likewise.
10818         * tests/test-trunc1.c (trunc): Likewise.
10819         * tests/test-truncf1.c (truncf): Likewise.
10820         * tests/test-truncl.c (truncl): Likewise.
10821         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
10822         Likewise.
10823         * tests/test-uname.c (uname): Likewise.
10824         * tests/test-unlink.c (unlink): Likewise.
10825         * tests/test-unlinkat.c (unlinkat): Likewise.
10826         * tests/test-unsetenv.c (unsetenv): Likewise.
10827         * tests/test-usleep.c (usleep): Likewise.
10828         * tests/test-utimensat.c (utimensat): Likewise.
10829         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
10830         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
10831         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
10832         * tests/test-vprintf-posix.c (vprintf): Likewise.
10833         * tests/test-vsnprintf.c (vsnprintf): Likewise.
10834         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
10835         * tests/test-wcrtomb.c (wcrtomb): Likewise.
10836         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
10837         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
10838         * tests/test-wcwidth.c (wcwidth): Likewise.
10839
10840         build: pull in conditional headers during GNULIB_POSIXCHECK
10841         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
10842         definitions from any conditionally-included headers.
10843         * lib/stdlib.in.h (includes): Likewise.
10844         * lib/unistd.in.h (includes): Likewise.
10845
10846 2009-12-24  Bruno Haible  <bruno@clisp.org>
10847
10848         * tests/test-argv-iter.c: Include header file being tested immediately
10849         after config.h.
10850         * tests/test-base64.c: Likewise.
10851         * tests/test-flock.c: Likewise.
10852         * tests/test-fsync.c: Likewise.
10853         * tests/test-getdate.c: Likewise.
10854         * tests/test-getndelim2.c: Likewise.
10855         * tests/test-isfinite.c: Likewise.
10856         * tests/test-isinf.c: Likewise.
10857         * tests/test-strerror.c: Likewise.
10858         * tests/test-strsignal.c: Likewise.
10859
10860 2009-12-23  Eric Blake  <ebb9@byu.net>
10861
10862         unistd: work around cygwin bug
10863         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
10864         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
10865         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10866
10867 2009-12-23  Bruno Haible  <bruno@clisp.org>
10868
10869         localename: More tests.
10870         * tests/test-localename.c (SIZEOF): New macro.
10871         (categories): New variable.
10872         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
10873         test_locale_name_default): Add test w.r.t. thread locale.
10874         (test_locale_name_thread): New function.
10875         (main): Invoke it.
10876
10877         localename: Make aware of thread locale.
10878         * lib/localename.h (gl_locale_name_thread): New declaration.
10879         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
10880         behaviour with respect to thread locale.
10881         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
10882         <langinfo.h>, glthread/lock.h.
10883         (SIZE_BITS): New macro.
10884         (string_hash): New function.
10885         (struct hash_node): New type.
10886         (HASH_TABLE_SIZE): New macro.
10887         (struniq_hash_table, struniq_lock): New variables.
10888         (struniq): New function.
10889         (gl_locale_name_thread): New function.
10890         (gl_locale_name): Invoke it.
10891         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
10892         * modules/localename (Depends-on): Add lock.
10893         Reported by Mike Gran <spk121@yahoo.com>.
10894
10895 2009-12-23  Eric Blake  <ebb9@byu.net>
10896
10897         va-args: new module
10898         * modules/va-args: New file.
10899         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
10900         * MODULES.html.sh (Core language properties): Mention it.
10901
10902         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
10903         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
10904         named alias for __attribute__((__unused__)).
10905         * lib/chown.c: Update client.
10906         * lib/fchmodat.c: Likewise.
10907         * lib/fts.c: Likewise.
10908         * lib/getdate.y: Likewise.
10909         * lib/getgroups.c: Likewise.
10910         * lib/getopt.c: Likewise.
10911         * lib/getugroups.c: Likewise.
10912         * lib/mkdir.c: Likewise.
10913         * lib/mkfifo.c: Likewise.
10914         * lib/mkfifoat.c: Likewise.
10915         * lib/mknod.c: Likewise.
10916         * lib/mknodat.c: Likewise.
10917         * lib/readlink.c: Likewise.
10918         * lib/se-context.in.h: Likewise.
10919         * lib/se-selinux.in.h: Likewise.
10920         * lib/sockets.c: Likewise.
10921         * lib/symlink.c: Likewise.
10922         * lib/symlinkat.c: Likewise.
10923         * lib/unicodeio.c: Likewise.
10924         * lib/unistr.h: Likewise.
10925         * tests/test-areadlink.c: Likewise.
10926         * tests/test-areadlinkat.c: Likewise.
10927         * tests/test-filenamecat.c: Likewise.
10928         * tests/test-fseeko.c: Likewise.
10929         * tests/test-ftello.c: Likewise.
10930         * tests/test-getdate.c: Likewise.
10931         * tests/test-getgroups.c: Likewise.
10932         * tests/test-gethostname.c: Likewise.
10933         * tests/test-quotearg.c: Likewise.
10934         * tests/test-version-etc.c: Likewise.
10935         * tests/test-xalloc-die.c: Likewise.
10936         * tests/test-xfprintf-posix.c: Likewise.
10937         * tests/test-xprintf-posix.c: Likewise.
10938         * tests/test-xvasprintf.c: Likewise.
10939
10940         tests: avoid compiler warnings
10941         * tests/test-fcntl.c (main): Delete unused parameters.
10942         * tests/test-freopen-safer.c (main): Likewise.
10943         * tests/test-xalloc-die.c (main): Mark unused parameters.
10944         * tests/test-fseeko.c (main): Likewise.
10945         * tests/test-ftello.c (main): Likewise.
10946         * tests/test-nanosleep.c (main): Avoid declaration warning.
10947         * tests/test-sleep.c (main): Likewise.
10948         * tests/test-unsetenv.c (main): Silence warning about string
10949         literal.
10950         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10951
10952 2009-12-23  Bruno Haible  <bruno@clisp.org>
10953
10954         * tests/test-localename.c (test_locale_name): New function, extracted
10955         from main. Also test mixed situations.
10956         (test_locale_name_posix, test_locale_name_environ,
10957         test_locale_name_default): New functions.
10958         (main): Invoke them all.
10959         * modules/localename-tests (configure.ac): Test for newlocale.
10960
10961 2009-12-23  Bruno Haible  <bruno@clisp.org>
10962
10963         unistd: Ensure getcwd gets declared before being overridden.
10964         * lib/unistd.in.h: Conditionally include <io.h>.
10965
10966 2009-12-22  Bruno Haible  <bruno@clisp.org>
10967
10968         wchar: Diagnose broken combination of glibc and gcc versions and flags.
10969         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
10970         (gl_WCHAR_H): Invoke it.
10971         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
10972         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
10973         Reported by Karl Berry <karl@freefriends.org>.
10974
10975 2009-12-22  Eric Blake  <ebb9@byu.net>
10976
10977         math, unistd: avoid redundant includes
10978         * lib/math.in.h (isnan): No need to re-include <math.h>.
10979         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
10980
10981         getsubopt: work around cygwin bug
10982         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
10983         avoid conflicting with system getsubopt.
10984         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
10985         bug.
10986
10987         getopt: synchronize from glibc
10988         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
10989         parameter order.  Adjust all callers.
10990         (_getopt_internal_r, main): Adjust quoting in error messages.
10991         Drop considerations for outdated POSIX 1003.2 error message.
10992         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
10993         callers.
10994         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
10995
10996         test-getopt: test stderr behavior
10997         * modules/getopt-posix-tests (Depends-on): Add dup2.
10998         * tests/test-getopt.c (ASSERT): Avoid stderr.
10999         (main): Move stderr to a temporary file.
11000         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11001         Instead, add parameter to inform caller if output occurred.
11002         (test_getopt): Adjust all existing tests to expect silence, and
11003         add new tests of leading ":".
11004         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11005         glibc shortcomings with leading "-:" or "+:" in optstring.
11006         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11007         Likewise.
11008         * doc/posix-functions/getopt.texi (getopt): Likewise.
11009
11010         test-getopt: enhance test
11011         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11012         supports optind=0.
11013         * tests/test-getopt.c (OPTIND_MIN): Move...
11014         * tests/test-getopt.h (OPTIND_MIN): ...here.
11015         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11016         Require that optind=0 works, since modern BSD supports it in
11017         addition to optreset, and since coreutils expects it.
11018         (test_getopt_long_only): New test.
11019         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11020         glibc shortcomings with 'W;', and enforcement of optind=0.
11021         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11022         Likewise.
11023
11024 2009-12-21  Bruno Haible  <bruno@clisp.org>
11025
11026         localename: Improvements for MacOS X and Cygwin.
11027         * lib/localename.h (gl_locale_name_environ): New declaration.
11028         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11029         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11030         (gl_locale_name_posix): Invoke it.
11031         (gl_locale_name_default): Add comments. Use Windows native API also on
11032         Cygwin.
11033
11034 2009-12-21  Bruno Haible  <bruno@clisp.org>
11035
11036         Update list of Win32 locale ids.
11037         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11038         (LANG_SAMI): Renamed from LANG_SAAMI.
11039         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11040         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11041         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11042         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11043         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11044         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11045         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11046         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11047         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11048         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11049         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11050         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11051         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11052         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11053         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11054         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11055         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11056         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11057         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11058         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11059         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11060         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11061         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11062         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11063         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11064         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11065         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11066         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11067         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11068         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11069         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11070         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11071         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11072         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11073         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11074         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11075         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11076         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11077         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11078         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11079         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11080         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11081         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11082         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11083         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11084         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11085         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11086         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11087         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11088         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11089         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11090         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11091         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11092         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11093         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11094         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11095         Add more languages and countries for Sami, Sorbian. Add more countries
11096         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11097         for Pashto. Change country for Syriac, Tswana.
11098
11099 2009-12-21  Eric Blake  <ebb9@byu.net>
11100
11101         test-utimens: avoid spurious failure
11102         * tests/test-chown.h (nap): Factor...
11103         * tests/nap.h: ...into new file.
11104         * tests/test-lchown.h (nap): Avoid duplication.
11105         * tests/test-utimens-common.h (nap): Use shared implementation,
11106         necessary on file systems with 1-second resolution.
11107         * modules/chown-tests (Files): Include new file.
11108         * modules/fdutimensat-tests (Files): Likewise.
11109         * modules/futimens-tests (Files): Likewise.
11110         * modules/lchown-tests (Files): Likewise.
11111         * modules/openat-tests (Files): Likewise.
11112         * modules/utimens-tests (Files): Likewise.
11113         * modules/utimensat-tests (Files): Likewise.
11114
11115 2009-12-19  Eric Blake  <ebb9@byu.net>
11116
11117         futimens, utimensat: work around Linux bug
11118         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11119         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11120         * lib/utimensat.c (rpl_utimensat): Work around it.
11121         * lib/futimens.c (rpl_futimens): Adjust comment.
11122
11123         utimens: work around Linux ctime bug
11124         * lib/utimens.c (detect_ctime_bug): New helper function.
11125         (update_timespec): Differentiate between workaround needed for
11126         this bug vs. what is needed for systems that lack utimensat.
11127         (fdutimens, lutimens): Work around bug.
11128
11129         utimens: check for ctime update
11130         * tests/test-utimens-common.h (check_ctime): Define.
11131         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11132         * tests/test-futimens.h (test_futimens): Likewise.
11133         * tests/test-lutimens.h (test_lutimens): Likewise.
11134         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11135         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11136
11137 2009-12-19  Bruno Haible  <bruno@clisp.org>
11138
11139         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11140         * tests/test-dprintf-posix2.sh: New file.
11141         * tests/test-dprintf-posix2.c: New file.
11142         * modules/dprintf-posix-tests (Files): Add them.
11143         (configure.ac): Check for getrlimit and setrlimit.
11144         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11145
11146 2009-12-19  Bruno Haible  <bruno@clisp.org>
11147
11148         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11149         * tests/test-fprintf-posix3.sh: New file.
11150         * tests/test-fprintf-posix3.c: New file.
11151         * modules/fprintf-posix-tests (Files): Add them.
11152         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11153
11154 2009-12-19  Eric Blake  <ebb9@byu.net>
11155
11156         dirfd: fix prototype
11157         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11158         * lib/dirfd.c (dirfd): Likewise.
11159
11160         canonicalize: reduce memory usage
11161         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11162         allocation to size.
11163         Reported by Solar Designer <solar@openwall.com>.
11164
11165 2009-12-19  Bruno Haible  <bruno@clisp.org>
11166
11167         New module attribute 'Applicability'.
11168         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11169         * gnulib-tool: New option --extract-applicability.
11170         (func_usage): Document it.
11171         (sed_extract_prog): Recognize it.
11172         (func_get_applicability): New function.
11173         (func_import): Generalize handling of 'link-warning' module.
11174         * modules/link-warning (Applicability): New section.
11175         * modules/arg-nonnull (Applicability): New section.
11176         Repoted by Simon Josefsson <simon@josefsson.org>.
11177
11178 2009-12-19  Bruno Haible  <bruno@clisp.org>
11179
11180         fflush: tweak
11181         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11182         * lib/fseeko.c (rpl_fseeko): Likewise.
11183
11184 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11185
11186         * lib/gl_list.h: Fix typo in comment.
11187
11188 2009-12-16  Eric Blake  <ebb9@byu.net>
11189
11190         fcntl: use to simplify other modules
11191         * modules/cloexec (Depends-on): Add fcntl.
11192         * modules/fchdir (Depends-on): Likewise.
11193         * modules/fd-safer-flag (Depends-on): Likewise.
11194         * modules/unistd-safer (Depends-on): Likewise.
11195         * modules/dup3 (configure.ac): Set module indicator.
11196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11197         missing.
11198         * lib/fchdir.c (_gl_register_dup): Fix comment.
11199         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11200         * lib/dup-safer.c (dup_safer): Likewise.
11201         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11202         * lib/dup3.c (dup3): Likewise.
11203         * tests/test-fchdir.c (main): Enhance test.
11204         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11205
11206         fcntl: port portions of fcntl to mingw
11207         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11208         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11209         replacement for mingw.
11210         * modules/fcntl (Description): Update.
11211         (Depends-on): Add dup2.
11212         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11213         * modules/fcntl-h (Makefile.am): Substitute it.
11214         * lib/fcntl.in.h (fcntl): Update declaration.
11215         (F_DUPFD, F_GETFD): New macros, when needed.
11216         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11217         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11218         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11219         we now guarantee.
11220
11221         fcntl: work around cygwin bug in F_DUPFD
11222         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11223         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11224         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11225         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11226         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11227
11228         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11229         * modules/fcntl (Files): List new files.
11230         (configure.ac): Run a test.
11231         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11232         * lib/fcntl.c (rpl_fcntl): Likewise.
11233         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11234         (gl_FCNTL_H): Always replace fcntl.h.
11235         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11236         * lib/fcntl.in.h (fcntl): Declare replacement.
11237         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11238         needed, plus a witness.
11239         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11240         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11241         * tests/test-fcntl.c: New file.
11242         * modules/fcntl-tests: Likewise.
11243
11244         binary-io: avoid potential compilation warning
11245         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11246         directives.
11247
11248         fflush: avoid compilation error on NetBSD
11249         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11250         between off_t and fpos_t, since the latter is sometimes a struct.
11251         * lib/fseeko.c (rpl_fseeko): Likewise.
11252         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11253
11254 2009-12-15  Eric Blake  <ebb9@byu.net>
11255
11256         fcntl-h, stdio, sys_ioctl: fix declarations
11257         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11258         function must not take arguments.
11259         * lib/sys_ioctl.in.h (ioctl): Likewise.
11260         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11261         (open): Add a link warning.
11262
11263 2009-12-15  Jim Meyering  <meyering@redhat.com>
11264
11265         areadlink, areadlink-with-size: relax license to LGPLv2+
11266         * modules/areadlink (License): Relax to LGPLv2+.
11267         * modules/areadlink-with-size (License): Likewise.
11268
11269 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11270             Bruno Haible  <bruno@clisp.org>
11271
11272         *printf: Fix memory leak.
11273         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11274         * lib/vfprintf.c (vfprintf): Likewise.
11275         * lib/dprintf.c (dprintf): Likewise.
11276         * lib/vdprintf.c (vdprintf): Likewise.
11277
11278 2009-12-14  Eric Blake  <ebb9@byu.net>
11279
11280         accept4: adjust module dependencies
11281         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11282
11283         utimens: one more try at avoiding compiler warning
11284         * lib/utimens.c (lutimens): Lower scope of result.
11285
11286 2009-12-13  Bruno Haible  <bruno@clisp.org>
11287
11288         Move the malloc checking from module 'list' to new module 'xlist'.
11289         * modules/xlist: New file.
11290         * lib/gl_xlist.h: New file.
11291         * lib/gl_xlist.c: New file.
11292         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11293         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11294         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11295         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11296         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11297         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11298         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11299         gl_sortedlist_nx_add): New declarations.
11300         (struct gl_list_implementation): Rename and change methods accordingly.
11301         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11302         (gl_list_nx_create): Renamed from gl_list_create.
11303         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11304         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11305         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11306         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11307         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11308         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11309         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11310         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11311         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11312         gl_list_create_empty.
11313         (gl_list_nx_create): Renamed from gl_list_create.
11314         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11315         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11316         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11317         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11318         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11319         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11320         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11321         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11322         * lib/gl_array_list.c: Don't include xalloc.h.
11323         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11324         NULL upon out-of-memory.
11325         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11326         out-of-memory.
11327         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11328         Change return type to 'int'.
11329         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11330         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11331         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11332         upon out-of-memory.
11333         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11334         upon out-of-memory.
11335         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11336         upon out-of-memory.
11337         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11338         upon out-of-memory.
11339         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11340         out-of-memory.
11341         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11342         Update.
11343         (gl_array_list_implementation): Update.
11344         * lib/gl_carray_list.c: Don't include xalloc.h.
11345         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11346         Return NULL upon out-of-memory.
11347         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11348         out-of-memory.
11349         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11350         Change return type to 'int'.
11351         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11352         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11353         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11354         upon out-of-memory.
11355         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11356         upon out-of-memory.
11357         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11358         out-of-memory.
11359         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11360         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11361         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11362         Update.
11363         (gl_carray_list_implementation): Update.
11364         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11365         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11366         gl_linked_create_empty. Return NULL upon out-of-memory.
11367         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11368         out-of-memory.
11369         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11370         Change return type to 'int'. Return -1 upon out-of-memory.
11371         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11372         out-of-memory.
11373         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11374         upon out-of-memory.
11375         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11376         upon out-of-memory.
11377         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11378         NULL upon out-of-memory.
11379         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11380         upon out-of-memory.
11381         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11382         out-of-memory.
11383         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11384         Update.
11385         * lib/gl_linked_list.c: Don't include xalloc.h.
11386         (gl_linked_list_implementation): Update.
11387         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11388         (add_to_bucket): Change return type to 'int'.
11389         (gl_linkedhash_list_implementation): Update.
11390         * lib/gl_anytree_list1.h (free_subtree): New function.
11391         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11392         gl_tree_create_empty. Return NULL upon out-of-memory.
11393         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11394         Change return type to 'int'. Return -1 upon out-of-memory.
11395         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11396         out-of-memory.
11397         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11398         (gl_tree_remove_node): New function, moved here from
11399         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11400         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11401         Update.
11402         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11403         malloc, not xmalloc. Return NULL upon out-of-memory.
11404         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11405         out-of-memory.
11406         (gl_tree_remove_node_from_tree): New function, extracted from
11407         gl_tree_remove_node.
11408         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11409         upon out-of-memory.
11410         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11411         out-of-memory.
11412         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11413         upon out-of-memory.
11414         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11415         upon out-of-memory.
11416         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11417         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11418         not xmalloc. Return NULL upon out-of-memory.
11419         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11420         out-of-memory.
11421         (gl_tree_remove_node_from_tree): New function, extracted from
11422         gl_tree_remove_node.
11423         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11424         upon out-of-memory.
11425         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11426         out-of-memory.
11427         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11428         upon out-of-memory.
11429         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11430         upon out-of-memory.
11431         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11432         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11433         gl_anytree_list1.h before gl_anyavltree_list2.h.
11434         (gl_avltree_list_implementation): Update.
11435         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11436         gl_anytree_list1.h before gl_anyavltree_list2.h.
11437         (gl_rbtree_list_implementation): Update.
11438         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11439         Change return type to 'int'. Return -1 upon out-of-memory. Use
11440         __builtin_expect.
11441         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11442         (gl_avltreehash_list_implementation): Update.
11443         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11444         (gl_rbtreehash_list_implementation): Update.
11445         * modules/array-list (Depends-on): Remove xalloc.
11446         * modules/carray-list (Depends-on): Likewise.
11447         * modules/linked-list (Depends-on): Likewise.
11448         * modules/linkedhash-list (Depends-on): Likewise.
11449         * modules/avltree-list (Depends-on): Likewise.
11450         * modules/rbtree-list (Depends-on): Likewise.
11451         * modules/avltreehash-list (Depends-on): Likewise.
11452         * modules/rbtreehash-list (Depends-on): Likewise.
11453
11454         * modules/xsublist: New file.
11455         * lib/gl_xsublist.h: New file.
11456         * lib/gl_xsublist.c: New file.
11457         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11458         (gl_sublist_nx_create): New declaration.
11459         * lib/gl_sublist.c: Don't include xalloc.h.
11460         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11461         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11462         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11463         Change return type to 'int'. Return -1 upon out-of-memory.
11464         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11465         upon out-of-memory.
11466         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11467         NULL upon out-of-memory.
11468         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11469         upon out-of-memory.
11470         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11471         NULL upon out-of-memory.
11472         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11473         NULL upon out-of-memory.
11474         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11475         upon out-of-memory.
11476         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11477         (gl_sublist_list_implementation): Update.
11478         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11479         upon out-of-memory.
11480         * modules/sublist (Depends-on): Remove xalloc.
11481
11482         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11483         * tests/test-carray_list.c: Likewise.
11484         * tests/test-linked_list.c: Likewise.
11485         * tests/test-linkedhash_list.c: Likewise.
11486         * tests/test-avltree_list.c: Likewise.
11487         * tests/test-rbtree_list.c: Likewise.
11488         * tests/test-avltreehash_list.c: Likewise.
11489         * tests/test-rbtreehash_list.c: Likewise.
11490         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11491         * modules/carray-list-tests (Makefile.am): Likewise.
11492         * modules/linked-list-tests (Makefile.am): Likewise.
11493         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11494         * modules/avltree-list-tests (Makefile.am): Likewise.
11495         * modules/rbtree-list-tests (Makefile.am): Likewise.
11496         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11497         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11498
11499         * NEWS: Mention the changes.
11500
11501         * lib/clean-temp.c: Include gl_xlist.h.
11502         * modules/clean-temp (Depends-on): Add xlist.
11503
11504         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11505         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11506
11507         * tests/test-array_oset.c: Include gl_xlist.h.
11508         * modules/array-oset-tests (Depends-on): Add xlist.
11509
11510         Reported by José E. Marchesi <jemarch@gnu.org>.
11511
11512 2009-12-13  Bruno Haible  <bruno@clisp.org>
11513
11514         Move the malloc checking from module 'oset' to new module 'xoset'.
11515         * modules/xoset: New file.
11516         * lib/gl_xoset.h: New file.
11517         * lib/gl_xoset.c: New file.
11518         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11519         declarations.
11520         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11521         (struct gl_oset_implementation): Rename and change methods accordingly.
11522         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11523         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11524         'int'. Mark as __warn_unused_result__.
11525         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11526         gl_oset_create_empty.
11527         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11528         'int'.
11529         * lib/gl_array_oset.c: Don't include xalloc.h.
11530         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11531         malloc, not xmalloc.
11532         (grow): Change return type to 'int'. Don't call xalloc_die.
11533         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11534         to 'int'.
11535         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11536         'int'.
11537         (gl_array_oset_implementation): Update.
11538         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11539         gl_tree_create_empty.
11540         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11541         'int'.
11542         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11543         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11544         xmalloc.
11545         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11546         not xmalloc.
11547         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11548         xmalloc.
11549         (gl_avltree_oset_implementation): Update.
11550         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11551         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11552         xmalloc.
11553         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11554         not xmalloc.
11555         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11556         xmalloc.
11557         (gl_rbtree_oset_implementation): Update.
11558         * modules/array-oset (Depends-on): Remove xalloc.
11559         * modules/avltree-oset (Depends-on): Likewise.
11560         * modules/rbtree-oset (Depends-on): Likewise.
11561         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11562         * tests/test-avltree_oset.c: Likewise.
11563         * tests/test-rbtree_oset.c: Likewise.
11564         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11565         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11566         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11567         * NEWS: Mention the change.
11568
11569 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11570
11571         maint.mk: allow a project to override release-prep commands
11572         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11573         commands into a new rule.
11574         (release-prep): New rule.
11575         (release-prep-hook): New overridable variable.
11576
11577 2009-12-13  Bruno Haible  <bruno@clisp.org>
11578
11579         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11580
11581 2009-12-13  Jim Meyering  <meyering@redhat.com>
11582
11583         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11584         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11585
11586 2009-12-12  Bruno Haible  <bruno@clisp.org>
11587
11588         duplocale: Tweak.
11589         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11590
11591 2009-12-12  Karl Berry  <karl@gnu.org>
11592
11593         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11594
11595 2009-12-12  Bruno Haible  <bruno@clisp.org>
11596
11597         * m4/po.m4: Undo incorrect untabification.
11598
11599 2009-12-12  Bruno Haible  <bruno@clisp.org>
11600
11601         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11602         * modules/c-strtod (Depends-on): Add locale.
11603         * modules/c-strtold (Depends-on): Likewise.
11604
11605 2009-12-12  Bruno Haible  <bruno@clisp.org>
11606
11607         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11608
11609 2009-12-11  Eric Blake  <ebb9@byu.net>
11610
11611         setenv: relax requirement in light of POSIX ruling
11612         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11613         not NULL.
11614         * tests/test-setenv.c (main): Relax test.
11615         * tests/test-unsetenv.c (main): Likewise.
11616         * doc/posix-functions/setenv.texi (setenv): Document this.
11617         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11618
11619 2009-12-11  Bruno Haible  <bruno@clisp.org>
11620
11621         New module 'fd-safer-flag'.
11622         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11623         * lib/dup-safer.c (dup_safer_flag): Remove function.
11624         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11625         * lib/fd-safer.c (fd_safer_flag): Remove function.
11626         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
11627         * modules/cloexec (configure.ac): Drop indicator macro.
11628         * modules/fd-safer-flag: New file.
11629         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
11630         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
11631         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
11632
11633 2009-12-11  Bruno Haible  <bruno@clisp.org>
11634
11635         Tests for module 'nl_langinfo'.
11636         * modules/nl_langinfo-tests: New file.
11637         * tests/test-nl_langinfo.sh: New file.
11638         * tests/test-nl_langinfo.c: New file.
11639
11640         New module 'nl_langinfo'.
11641         * lib/nl_langinfo.c: New file.
11642         * m4/nl_langinfo.m4: New file.
11643         * modules/nl_langinfo: New file.
11644         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
11645
11646 2009-12-11  Bruno Haible  <bruno@clisp.org>
11647
11648         Tests for module 'langinfo'.
11649         * modules/langinfo-tests: New file.
11650         * tests/test-langinfo.c: New file.
11651
11652         New module 'langinfo'.
11653         * lib/langinfo.in.h: New file.
11654         * m4/langinfo_h.m4: New file.
11655         * modules/langinfo: New file.
11656         * doc/posix-headers/langinfo.texi: Mention the new module.
11657
11658 2009-12-11  Bruno Haible  <bruno@clisp.org>
11659
11660         * lib/config.charset: Untabify.
11661
11662 2009-12-11  Bruno Haible  <bruno@clisp.org>
11663
11664         * modules/unistd-safer (configure.ac): Drop indicator macro.
11665
11666 2009-12-11  Bruno Haible  <bruno@clisp.org>
11667
11668         Move pipe2-safer code to its own file.
11669         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
11670         * lib/pipe-safer.c (pipe2_safer): Remove function.
11671         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
11672         (Makefile.am): Add it to lib_SOURCES.
11673
11674 2009-12-10  Bruno Haible  <bruno@clisp.org>
11675
11676         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
11677
11678 2009-12-10  Bruno Haible  <bruno@clisp.org>
11679
11680         Declare which arguments expect non-NULL values, for GCC and clang.
11681         * build-aux/arg-nonnull.h: New file.
11682         * modules/arg-nonnull: New file.
11683         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
11684         (inet_ntop, inet_pton): Use it.
11685         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
11686         (closedir, dirfd, opendir, scandir, alphasort): Use it.
11687         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
11688         (open, openat): Use it.
11689         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
11690         (fnmatch): Use it.
11691         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
11692         (getopt, getopt_long, getopt_long_only): Use it.
11693         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
11694         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
11695         Use it.
11696         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
11697         (iconv_open): Use it.
11698         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
11699         (strtoimax, strtoumax): Use it.
11700         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
11701         (duplocale): Use it.
11702         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
11703         (frexp, frexpl): Use it.
11704         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
11705         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
11706         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
11707         (tsearch, tfind, tdelete, twalk): Use it.
11708         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
11709         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11710         sigpending): Use it.
11711         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
11712         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11713         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11714         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11715         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11716         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11717         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11718         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11719         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11720         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11721         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11722         Use it.
11723         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
11724         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
11725         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
11726         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
11727         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
11728         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
11729         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
11730         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
11731         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
11732         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
11733         strtoull, unsetenv): Use it.
11734         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
11735         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11736         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11737         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
11738         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
11739         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
11740         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
11741         (strcasecmp, strncasecmp): Use it.
11742         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
11743         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
11744         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
11745         rpl_setsockopt): Use it.
11746         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
11747         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
11748         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
11749         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
11750         (gettimeofday): Use it.
11751         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
11752         (times): Use it.
11753         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
11754         (uname): Use it.
11755         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
11756         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
11757         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
11758         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
11759         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
11760         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
11761         unlinkat, write): Use it.
11762         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
11763         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
11764         * lib/argv-iter.h: Include arg-nonnull.h.
11765         (_ATTRIBUTE_NONNULL_): Remove macro.
11766         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
11767         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
11768         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
11769         optimization.
11770         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
11771         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
11772         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
11773         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
11774         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
11775         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
11776         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
11777         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
11778         * modules/arpa_inet (Depends-on): Add arg-nonnull.
11779         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
11780         * modules/dirent (Depends-on): Add arg-nonnull.
11781         (Makefile.am): Insert arg-nonnull.h into dirent.h.
11782         * modules/fcntl-h (Depends-on): Add arg-nonnull.
11783         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
11784         * modules/fnmatch (Depends-on): Add arg-nonnull.
11785         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
11786         * modules/getopt-posix (Depends-on): Add arg-nonnull.
11787         (Makefile.am): Insert arg-nonnull.h into getopt.h.
11788         * modules/glob (Depends-on): Add arg-nonnull.
11789         (Makefile.am): Insert arg-nonnull.h into glob.h.
11790         * modules/iconv_open (Depends-on): Add arg-nonnull.
11791         (Makefile.am): Insert arg-nonnull.h into iconv.h.
11792         * modules/inttypes (Depends-on): Add arg-nonnull.
11793         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
11794         * modules/locale (Depends-on): Add arg-nonnull.
11795         (Makefile.am): Insert arg-nonnull.h into locale.h.
11796         * modules/math (Depends-on): Add arg-nonnull.
11797         (Makefile.am): Insert arg-nonnull.h into math.h.
11798         * modules/netdb (Depends-on): Add arg-nonnull.
11799         (Makefile.am): Insert arg-nonnull.h into netdb.h.
11800         * modules/search (Depends-on): Add arg-nonnull.
11801         (Makefile.am): Insert arg-nonnull.h into search.h.
11802         * modules/signal (Depends-on): Add arg-nonnull.
11803         (Makefile.am): Insert arg-nonnull.h into signal.h.
11804         * modules/spawn (Depends-on): Add arg-nonnull.
11805         (Makefile.am): Insert arg-nonnull.h into spawn.h.
11806         * modules/stdio (Depends-on): Add arg-nonnull.
11807         (Makefile.am): Insert arg-nonnull.h into stdio.h.
11808         * modules/stdlib (Depends-on): Add arg-nonnull.
11809         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
11810         * modules/string (Depends-on): Add arg-nonnull.
11811         (Makefile.am): Insert arg-nonnull.h into string.h.
11812         * modules/strings (Depends-on): Add arg-nonnull.
11813         (Makefile.am): Insert arg-nonnull.h into strings.h.
11814         * modules/sys_socket (Depends-on): Add arg-nonnull.
11815         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
11816         * modules/sys_stat (Depends-on): Add arg-nonnull.
11817         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
11818         * modules/sys_time (Depends-on): Add arg-nonnull.
11819         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
11820         * modules/sys_times (Depends-on): Add arg-nonnull.
11821         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
11822         * modules/sys_utsname (Depends-on): Add arg-nonnull.
11823         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
11824         * modules/time (Depends-on): Add arg-nonnull.
11825         (Makefile.am): Insert arg-nonnull.h into time.h.
11826         * modules/unistd (Depends-on): Add arg-nonnull.
11827         (Makefile.am): Insert arg-nonnull.h into unistd.h.
11828         * modules/wchar (Depends-on): Add arg-nonnull.
11829         (Makefile.am): Insert arg-nonnull.h into wchar.h.
11830         * modules/argv-iter (Depends-on): Add arg-nonnull.
11831         * tests/test-canonicalize.c (null_ptr): New function.
11832         (main): Use it.
11833         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
11834         (main): Use it.
11835         * tests/test-memmem.c (null_ptr): New function.
11836         (main): Use it.
11837         Reported by Jim Meyering.
11838
11839 2009-12-10  Bruno Haible  <bruno@clisp.org>
11840
11841         Use spaces for indentation, not tabs.
11842         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11843         * m4/*.m4: Untabify.
11844         * build-aux/*.h: Untabify.
11845         * tests/**/*.[hc]: Untabify.
11846         * README: New section "Indent with spaces, not TABs", based on
11847         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
11848         * NEWS: Mention the change.
11849
11850 2009-12-10  Bruno Haible  <bruno@clisp.org>
11851
11852         pty test: Fix link error.
11853         * modules/pty-tests (Makefile.am): Add the default LDADD value to
11854         test_pty_LDADD.
11855
11856 2009-12-07  Simon Josefsson  <simon@josefsson.org>
11857
11858         * modules/pty: New file.
11859         * modules/pty-tests: New file.
11860         * m4/pty.m4: New file.
11861         * tests/test-pty.c: New file.
11862         * doc/glibc-headers/pty.texi: Modified.
11863         * doc/glibc-functions/forkpty.texi: Modified.
11864         * doc/glibc-functions/openpty.texi: Modified.
11865
11866 2009-12-10  Bruno Haible  <bruno@clisp.org>
11867
11868         Avoid syntax error in C++ mode.
11869         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
11870
11871 2009-12-10  Bruno Haible  <bruno@clisp.org>
11872
11873         Use sed with option -e.
11874         * gnulib-tool (func_version, func_emit_copyright_notice,
11875         func_emit_initmacro_end, func_import, func_create_testdir): Pass
11876         option -e to sed.
11877         * modules/link-warning (Makefile.am): Likewise.
11878
11879 2009-12-10  Jim Meyering  <meyering@redhat.com>
11880
11881         mgetgroups: do not write bytes beyond end of malloc'd buffer
11882         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
11883         username, we call getgroups with a one-element-shorter buffer,
11884         but still told it the length was original, max_n_groups.
11885
11886 2009-12-09  Eric Blake  <ebb9@byu.net>
11887
11888         cloexec: relax license
11889         * modules/cloexec (Maintainer): Add myself.
11890         (License): Use LGPL, not GPL.
11891
11892         link-warning: optimize generation
11893         * modules/link-warning (Makefile.am): Reduce process usage.
11894
11895 2009-12-09  Bruno Haible  <bruno@clisp.org>
11896
11897         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
11898         workaround was added on 2009-11-17.
11899
11900 2009-12-09  Jim Meyering  <meyering@redhat.com>
11901             Bruno Haible  <bruno@clisp.org>
11902
11903         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
11904         * modules/link-warning (Makefile.am): Make the comment-removing sed
11905         command more robust in the face of bootstrap-prepended comment lines.
11906
11907 2009-12-09  Bruno Haible  <bruno@clisp.org>
11908
11909         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
11910         most one group.
11911
11912 2009-12-09  Simon Josefsson <simon@josefsson.org>
11913             Bruno Haible  <bruno@clisp.org>
11914
11915         * build-aux/link-warning.h: Add copyright notice.
11916         * modules/link-warning (Makefile.am): Generate link-warning.h from
11917         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
11918         * NEWS: Mention change in link-warning module.
11919         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
11920         * modules/dirent (Makefile.am): Add dependency to dirent.h.
11921         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
11922         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
11923         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
11924         * modules/math (Makefile.am): Add dependency to math.h.
11925         * modules/search (Makefile.am): Add dependency to search.h.
11926         * modules/signal (Makefile.am): Add dependency to signal.h.
11927         * modules/spawn (Makefile.am): Add dependency to spawn.h.
11928         * modules/stdio (Makefile.am): Add dependency to stdio.h.
11929         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
11930         * modules/string (Makefile.am): Add dependency to string.h.
11931         * modules/strings (Makefile.am): Add dependency to strings.h.
11932         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
11933         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
11934         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
11935         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
11936         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
11937         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
11938         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
11939         * modules/unistd (Makefile.am): Add dependency to unistd.h.
11940         * modules/wchar (Makefile.am): Add dependency to wchar.h.
11941
11942 2009-12-09  Bruno Haible  <bruno@clisp.org>
11943
11944         fchdir: Optimize away rpl_fstat when possible.
11945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
11946         REPLACE_OPEN_DIRECTORY.
11947         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
11948
11949 2009-12-09  Bruno Haible  <bruno@clisp.org>
11950
11951         * lib/fchdir.c: Update comment.
11952
11953 2009-12-09  Bruno Haible  <bruno@clisp.org>
11954
11955         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
11956
11957 2009-12-08  Eric Blake  <ebb9@byu.net>
11958
11959         fchdir: avoid memory leak on re-registration.
11960         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
11961
11962 2009-12-08  Jim Meyering  <meyering@redhat.com>
11963
11964         init.sh: avoid Solaris 10 /bin/sh portability problem
11965         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
11966         sourced script:
11967           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
11968           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
11969           bar
11970         tests/init.sh relied on that, accepting a --set-path=DIR argument,
11971         and two tests used that idiom.
11972         * tests/init.sh: Update suggested usage comments.
11973         (path_prepend_): New function, to be used in place
11974         of the --src-path=DIR option.
11975         (setup_): Move PATH-prepending code into path_prepend_.
11976         * tests/test-pread.sh: Adapt to new usage.
11977         * tests/test-xalloc-die.sh: Likewise.
11978
11979 2009-12-08  Simon Josefsson  <simon@josefsson.org>
11980
11981         * doc/gnulib.texi (Glibc pty.h): Add.
11982         * doc/glibc-functions/forkpty.texi: Add.
11983         * doc/glibc-functions/openpty.texi: Add.
11984         Suggested by Bruno Haible.
11985
11986 2009-12-08  Eric Blake  <ebb9@byu.net>
11987
11988         fchdir: fix logic bugs
11989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
11990         * tests/test-fchdir.c (main): Enhance test.
11991         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
11992         is in use.
11993
11994         dup2: fix logic bugs
11995         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
11996         REPLACE_DUP2 to decide when rpl_dup2 is needed.
11997         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
11998         exists.
11999         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12000
12001 2009-12-07  Eric Blake  <ebb9@byu.net>
12002
12003         unlink: fix m4 detection
12004         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12005
12006         unistd-safer: add unit test
12007         * modules/unistd-safer-tests: New file.
12008         * tests/test-dup-safer.c: Likewise.
12009         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12010         * tests/test-dup2.c (setmode): Likewise.
12011         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12012
12013         cloexec: preserve text vs. binary across dup_cloexec
12014         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12015         mode.
12016         * modules/dup2-tests (Depends-on): Add binary-io.
12017         * modules/cloexec-tests (Depends-on): Likewise.
12018         * tests/test-dup2.c (setmode, is_mode): New helpers.
12019         (main): Add tests that translation mode is preserved.
12020         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12021         Reported by Bruno Haible.
12022
12023         mgetgroups: reduce duplicate listings
12024         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12025         resulting array.
12026         * tests/test-chown.h (test_chown): Simplify client.
12027         * tests/test-lchown.h (test_lchown): Likewise.
12028
12029 2009-12-06  Bruno Haible  <bruno@clisp.org>
12030
12031         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12032         value.
12033
12034 2009-12-06  Bruno Haible  <bruno@clisp.org>
12035
12036         * lib/progname.c: Include stdio.h, stdlib.h.
12037         (set_program_name): Reject a NULL argument.
12038
12039 2009-12-05  Eric Blake  <ebb9@byu.net>
12040
12041         pipe2-safer: new module
12042         * modules/pipe2-safer: New file.
12043         * lib/unistd-safer.h (pipe2_safer): New prototype.
12044         * lib/unistd--.h (pipe2): New wrapper.
12045         * lib/pipe-safer.c (pipe2_safer): New function.
12046         * modules/pipe (Depends-on): Add pipe2-safer.
12047         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12048
12049         stdlib-safer: preserve cloexec flag for mkostemp[s]
12050         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12051         fd_safer_flag.
12052
12053         unistd-safer: allow preservation of cloexec status via flag
12054         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12055         prototypes.
12056         * lib/dup-safer.c (dup_safer_flag): New function.
12057         * lib/fd-safer.c (fd_safer_flag): Likewise.
12058         * modules/cloexec (configure.ac): Set witness.
12059
12060         test-dup2: enhance test
12061         * modules/dup2-tests (Depends-on): Add cloexec.
12062         * tests/test-dup2.c (main): Enhance test.
12063
12064         cloexec: add dup_cloexec
12065         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12066         header and comments.
12067         * lib/cloexec.c (set_cloexec_flag): Add comments.
12068         (dup_cloexec): New function, with mingw implementation borrowed
12069         from...
12070         * lib/w32spawn.h (dup_noinherit): ...here.
12071         * modules/execute (Depends-on): Add cloexec.
12072         * modules/pipe (Depends-on): Likewise.
12073         * modules/cloexec (Depends-on): Add dup2.
12074         * modules/cloexec-tests (Files): New file.
12075         * tests/test-cloexec.c: Likewise.
12076
12077         test-xalloc-die: fix test for mingw
12078         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12079         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12080         directory and .exe suffix off argv[0] output.
12081
12082         test-fseeko: fix test for mingw
12083         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12084         than undefining fseek, so test will pass on mingw.
12085
12086 2009-12-05  Bruno Haible  <bruno@clisp.org>
12087
12088         * lib/progname.h (set_program_name): Clarify specification.
12089         * lib/progname.c (set_program_name): Likewise.
12090         Reported by Jim Meyering.
12091
12092 2009-12-05  Jim Meyering  <meyering@redhat.com>
12093
12094         maint.mk: backslash-escape parens in default regexp
12095         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12096         backslash-escape the literal parentheses.
12097
12098         maint.mk: news-date-check: use grep -E
12099         * top/maint.mk (today): Define a Make variable, not a...
12100         (news-date-check): ...shell variable.
12101         (news-date-regexp): Use the Make variable.
12102         Use grep's -E option.  Change the failing diagnostic to mention
12103         the variable, $(news-date-regexp).
12104
12105 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12106
12107         maintainer-makefile: allow customization of NEWS entry format
12108         * top/maint.mk (news-date-regexp): New overridable variable.
12109         (news-date-check): Use it.
12110
12111 2009-12-04  Eric Blake  <ebb9@byu.net>
12112
12113         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12114         * lib/mgetgroups.h (xgetgroups): New prototype.
12115         * lib/mgetgroups.c (xgetgroups): New wrapper.
12116         (mgetgroups): Handle ENOSYS.
12117         * modules/mgetgroups (Depends-on): Add realloc.
12118         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12119
12120         mgetgroups: avoid argument promotion issues with -1
12121         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12122         for invalid gid_t.
12123         * tests/test-chown.h (getegid, test_chown): Likewise.
12124         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12125
12126 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12127
12128         exclude: Fix header file problems.
12129         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12130
12131 2009-12-01  Jim Meyering  <meyering@redhat.com>
12132
12133         fts: fts_open: do not let an empty string cause immediate failure
12134         This is required in support of GNU rm, for which the command
12135         "rm A '' B" must process and remove both A and B, in spite of
12136         the empty string argument.
12137         * lib/fts.c (fts_open): Do not let the presence of an empty string
12138         cause fts_open to fail immediately.  Most fts-using tools must be
12139         able to process all arguments, in order, and can be expected to
12140         diagnose such arguments themselves.
12141
12142 2009-11-30  Eric Blake  <ebb9@byu.net>
12143
12144         utimens: fix compilation error
12145         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12146         Declare variable at right scope.
12147
12148 2009-11-29  Jim Meyering  <meyering@redhat.com>
12149
12150         bootstrap: handle perl-5.11's changed --version output
12151         * build-aux/bootstrap (get_version): Handle perl separately,
12152         since perl-5.11's --version output is different.
12153
12154 2009-11-28  Jim Meyering  <meyering@redhat.com>
12155
12156         userspec: depend on the inttostr module, too
12157         * modules/userspec (Depends-on): Add inttostr.
12158
12159         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12160         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12161         number of MAXUID when it evaluates to (uid_t) -1.
12162         Likewise for group ID.  Reported by Matt McCutchen in
12163         <http://savannah.gnu.org/bugs/?28113>
12164
12165         userspec: reformat to use spaces, not TABs
12166         * lib/userspec.c: Expand TABs to spaces.
12167         Add Emacs' "indent-tabs-mode: nil" hint.
12168
12169 2009-11-27  Eric Blake  <ebb9@byu.net>
12170
12171         getopt-gnu: flush out another BSD bug
12172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12173         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12174         flush out BSD bug.
12175         * tests/test-getopt.h (test_getopt): End lists with NULL.
12176         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12177         (test_getopt_long_posix): Enhance test.
12178         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12179         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12180         getopt-gnu.
12181         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12182         Likewise.
12183
12184 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12185
12186         * modules/idpriv-droptemp-tests (Notice): Fix text.
12187
12188 2009-11-27  Jim Meyering  <meyering@redhat.com>
12189
12190         test-xalloc-die: avoid spurious failure due to libtool argv difference
12191         In a libtool-enabled project, this test would fail due to a difference
12192         in the emitted program name, e.g.,
12193         -test-xalloc-die: memory exhausted
12194         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12195         Use program to avoid that.
12196         * modules/xalloc-die-tests (Depends-on): Add progname.
12197         * tests/test-xalloc-die.c: Include progname.h".
12198         (program_name): Remove decl.
12199         (main): Call set_program_name.
12200         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12201
12202 2009-11-26  Richard Jones  <rjones@redhat.com>
12203
12204         w32sock: leave win32 error in place.
12205         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12206
12207 2009-11-26  Eric Blake  <ebb9@byu.net>
12208
12209         init.sh: suggest to use skip_ and fail_ functions in comments
12210         * tests/init.sh: Add a sentence.
12211
12212 2009-11-25  Bruno Haible  <bruno@clisp.org>
12213
12214         init.sh: add documentation in comments
12215         * tests/init.sh: Add some developer and user documentation.
12216
12217 2009-11-26  Jim Meyering  <meyering@redhat.com>
12218
12219         init.sh: accommodate even those who specify bogus srcdir manually
12220         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12221         configure-time tests to be sanitized, so that there is no need to
12222         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12223         (with no double quotes) suffices.  However, since tests may be
12224         invoked manually, and since you may explicitly set srcdir to the
12225         name of a directory containing spaces, do quote its uses here.
12226         * tests/test-pread.sh: Likewise.
12227         Suggested by Bruno Haible.
12228
12229         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12230         * tests/test-pread.sh: Write no data into the pipe, because
12231         test-pread actually reads none.  This avoids a diagnostic,
12232         "bash: echo: write error: Broken pipe", that arises in the unusual
12233         event something is ignoring SIGPIPE, and might be interpreted
12234         as some sort of failure.  Reported by Bruno Haible.
12235
12236 2009-11-25  Jim Meyering  <meyering@redhat.com>
12237
12238         test-pread: cover failure with ESPIPE and EINVAL
12239         * tests/test-pread.c (main): Test for failure, too.
12240         * tests/test-pread.sh: Invoke with stdin on a pipe.
12241         Suggested by Eric Blake.
12242
12243         pread: improvement and fix
12244         * modules/pread (Depends-on): Depend on lseek, for portability to
12245         e.g., mingw.  Suggested by Eric Blake.
12246         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12247
12248         unistd.in.h: correct declaration of pread
12249         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12250         Reported by Richard W.M. Jones.
12251
12252         test-pread.sh: distribute the test script
12253         * modules/pread-tests (Files): Include test-pread.sh.
12254
12255         test-pread.sh: clean up
12256         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12257         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12258         That is unnecessary, since it's always ".".
12259         Suggestion from Eric Blake.
12260
12261         test-pread.sh: make executable
12262         * tests/test-pread.sh: Set executable bit.
12263         Reported by Eric Blake.
12264
12265         correct typo in test-pread.sh
12266         * tests/test-pread.sh: Add #! line.
12267
12268         test pread
12269         * tests/test-pread.c: New file.
12270         * tests/test-pread.sh: Likewise.
12271         * modules/pread-tests: Likewise.
12272
12273         pread: new module
12274         * modules/pread: New file.
12275         * lib/unistd.in.h (pread): Define/declare.
12276         * lib/pread.c (pread): New file.
12277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12278         * modules/unistd (Makefile.am): Substitute witnesses.
12279         * doc/posix-functions/pread.texi (pread): Update.
12280         * MODULES.html.sh: Add pread.
12281
12282 2009-11-25  Jim Meyering  <meyering@redhat.com>
12283
12284         tests/init.sh: new file to be used via most *.sh tests
12285         * tests/init.sh: New file.
12286
12287 2009-11-25  Eric Blake  <ebb9@byu.net>
12288
12289         utimens: work around older Linux failure with symlinks
12290         * lib/utimens.c (lutimensat_works_really): New variable.
12291         (fdutimens, lutimens): Use it to manage kernels that support
12292         nanosecond times on files, but not on symlinks.
12293         Reported by Ondřej Vašík.
12294
12295         utimes: fix configure grammar
12296         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12297
12298 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12299
12300         regex: Fix fastmap for multibyte character ranges.
12301         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12302         characters when a multibyte character range is included.
12303
12304 2009-11-22  Andy Wingo  <wingo@pobox.com>
12305
12306         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12307         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12308
12309 2009-11-24  Bruno Haible  <bruno@clisp.org>
12310
12311         doc: Most *_l functions exist in MacOS X 10.5.
12312         * doc/posix-functions/duplocale.texi: Update platforms list.
12313         * doc/posix-functions/freelocale.texi: Likewise.
12314         * doc/posix-functions/newlocale.texi: Likewise.
12315         * doc/posix-functions/uselocale.texi: Likewise.
12316         * doc/posix-functions/isalnum_l.texi: Likewise.
12317         * doc/posix-functions/isalpha_l.texi: Likewise.
12318         * doc/posix-functions/isblank_l.texi: Likewise.
12319         * doc/posix-functions/iscntrl_l.texi: Likewise.
12320         * doc/posix-functions/isdigit_l.texi: Likewise.
12321         * doc/posix-functions/isgraph_l.texi: Likewise.
12322         * doc/posix-functions/islower_l.texi: Likewise.
12323         * doc/posix-functions/isprint_l.texi: Likewise.
12324         * doc/posix-functions/ispunct_l.texi: Likewise.
12325         * doc/posix-functions/isspace_l.texi: Likewise.
12326         * doc/posix-functions/isupper_l.texi: Likewise.
12327         * doc/posix-functions/iswalnum_l.texi: Likewise.
12328         * doc/posix-functions/iswalpha_l.texi: Likewise.
12329         * doc/posix-functions/iswblank_l.texi: Likewise.
12330         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12331         * doc/posix-functions/iswctype_l.texi: Likewise.
12332         * doc/posix-functions/iswdigit_l.texi: Likewise.
12333         * doc/posix-functions/iswgraph_l.texi: Likewise.
12334         * doc/posix-functions/iswlower_l.texi: Likewise.
12335         * doc/posix-functions/iswprint_l.texi: Likewise.
12336         * doc/posix-functions/iswpunct_l.texi: Likewise.
12337         * doc/posix-functions/iswspace_l.texi: Likewise.
12338         * doc/posix-functions/iswupper_l.texi: Likewise.
12339         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12340         * doc/posix-functions/isxdigit_l.texi: Likewise.
12341         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12342         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12343         * doc/posix-functions/strcoll_l.texi: Likewise.
12344         * doc/posix-functions/strfmon_l.texi: Likewise.
12345         * doc/posix-functions/strftime_l.texi: Likewise.
12346         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12347         * doc/posix-functions/strxfrm_l.texi: Likewise.
12348         * doc/posix-functions/tolower_l.texi: Likewise.
12349         * doc/posix-functions/toupper_l.texi: Likewise.
12350         * doc/posix-functions/towctrans_l.texi: Likewise.
12351         * doc/posix-functions/towlower_l.texi: Likewise.
12352         * doc/posix-functions/towupper_l.texi: Likewise.
12353         * doc/posix-functions/wcscoll_l.texi: Likewise.
12354         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12355         * doc/posix-functions/wctrans_l.texi: Likewise.
12356         * doc/posix-functions/wctype_l.texi: Likewise.
12357         * doc/glibc-functions/strptime_l.texi: Likewise.
12358         * doc/glibc-functions/strtod_l.texi: Likewise.
12359         * doc/glibc-functions/strtof_l.texi: Likewise.
12360         * doc/glibc-functions/strtol_l.texi: Likewise.
12361         * doc/glibc-functions/strtold_l.texi: Likewise.
12362         * doc/glibc-functions/strtoll_l.texi: Likewise.
12363         * doc/glibc-functions/strtoul_l.texi: Likewise.
12364         * doc/glibc-functions/strtoull_l.texi: Likewise.
12365         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12366         * doc/glibc-functions/wcstod_l.texi: Likewise.
12367         * doc/glibc-functions/wcstof_l.texi: Likewise.
12368         * doc/glibc-functions/wcstol_l.texi: Likewise.
12369         * doc/glibc-functions/wcstold_l.texi: Likewise.
12370         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12371         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12372         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12373
12374 2009-11-24  Bruno Haible  <bruno@clisp.org>
12375
12376         duplocale: Fix logic bug.
12377         * lib/duplocale.c: Don't include <langinfo.h>.
12378         (_NL_LOCALE_NAME): Remove macro.
12379         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12380         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12381
12382 2009-11-23  Jim Meyering  <meyering@redhat.com>
12383
12384         test-update-copyright: don't hard-code /usr/bin/perl
12385         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12386         perl to print the current year.  Gilles Espinasse reported that
12387         the replaced use of perl was hard-coded as /usr/bin/perl.
12388
12389 2009-11-23  Bruno Haible  <bruno@clisp.org>
12390
12391         duplocale: Add support for glibc 2.3.x.
12392         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12393
12394 2009-11-22  Bruno Haible  <bruno@clisp.org>
12395
12396         vasnprintf: Tiny optimization.
12397         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12398         MacOS X.
12399
12400 2009-11-22  Bruno Haible  <bruno@clisp.org>
12401
12402         Tests for module 'duplocale'.
12403         * modules/duplocale-tests: New file.
12404         * tests/test-duplocale.c: New file.
12405
12406         New module 'duplocale'.
12407         * m4/duplocale.m4: New file.
12408         * lib/locale.in.h (duplocale): New declaration.
12409         * lib/duplocale.c: New file.
12410         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12411         gl_LOCALE_H_DEFAULTS): New macros.
12412         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12413         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12414         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12415         REPLACE_DUPLOCALE.
12416         * modules/duplocale: New file.
12417         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12418
12419 2009-11-22  Bruno Haible  <bruno@clisp.org>
12420
12421         * modules/locale-tests (configure.ac): Test for newlocale function.
12422         * tests/test-locale.c: When the system has extended locale functions,
12423         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12424
12425         locale: Make locale_t available when possible.
12426         * lib/locale.in.h: Include <xlocale.h> when it exists.
12427         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12428         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12429         * modules/locale (Depends-on): Add extensions.
12430         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12431         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12432
12433 2009-11-22  Bruno Haible  <bruno@clisp.org>
12434
12435         Add comments.
12436         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12437         invocation.
12438         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12439         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12440         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12441
12442 2009-11-22  Bruno Haible  <bruno@clisp.org>
12443
12444         error: account for the possibility of freopen (stdout).
12445         * lib/error.c: Include <unistd.h>.
12446         (flush_stdout): New function, extracted from error and error_at_line.
12447         Determine stdout's fd dynamically.
12448         (error, error_at_line): Invoke flush_stdout.
12449         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12450         * modules/error (Depends-on): Add unistd.
12451
12452 2009-11-22  Bruno Haible  <bruno@clisp.org>
12453
12454         diffseq: Add comment.
12455         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12456
12457 2009-11-22  Jim Meyering  <meyering@redhat.com>
12458
12459         c-stack: avoid defining an unused static function
12460         * lib/c-stack.c (find_stack_direction): Do not define this function
12461         when it will not be used.
12462
12463         diffseq: avoid spurious gcc warnings
12464         * lib/diffseq.h (IF_LINT2): Define.
12465         (compareseq): Use it to initialize two members of "part".
12466         This avoids two used-uninitialized warnings.
12467
12468 2009-11-21  Jim Meyering  <meyering@redhat.com>
12469
12470         c-stack: avoid "ignoring return value of `write'" warning
12471         * lib/c-stack.c: Include "ignore-value.h".
12472         (die): Explicitly ignore each write return value.
12473         * modules/c-stack (Depends-on): Add ignore-value.
12474
12475 2009-11-21  Bruno Haible  <bruno@clisp.org>
12476
12477         diffseq: reduce scope of variable 'best'.
12478         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12479         variable, earlier used for two different purposes.
12480
12481 2009-11-21  Jim Meyering  <meyering@redhat.com>
12482
12483         diffseq: remove useless assignment to "best"
12484         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12485         assignment.  At that point "best" is already guaranteed to be zero.
12486
12487 2009-11-20  Eric Blake  <ebb9@byu.net>
12488
12489         build: mention ftp redirector in release announcements
12490         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12491         values that used to come from cfg.mk; mention FTP redirect URL.
12492         * build-aux/announce-gen: Mention the mirror list.
12493         Suggested by Karl Berry.
12494
12495         nanosleep: improve port to mingw
12496         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12498         LIB_NANOSLEEP, but only when needed.
12499         * modules/select (Link): Document LIBSOCKET.
12500         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12501         enough.
12502
12503         nanosleep: work around cygwin bug
12504         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12505         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12506         bug.
12507         (getnow): Delete, not needed.
12508         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12509         LIB_CLOCK_GETTIME.
12510         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12511         clock-time, gettime.
12512         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12513         bug.
12514         * modules/nanosleep-tests: New test.
12515         * tests/test-nanosleep.c: New file.
12516
12517         sleep: work around cygwin bug
12518         * lib/sleep.c (rpl_sleep): Work around the bug.
12519         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12520         (gl_PREREQ_SLEEP): Delete unused macro.
12521         * modules/sleep (Depends-on): Add verify.
12522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12523         * modules/unistd (Makefile.am): Substitute witness.
12524         * lib/unistd.in.h (sleep): Update prototype.
12525         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12526         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12527         * modules/sleep-tests (Depends-on): Check for alarm.
12528
12529 2009-11-20  Jim Meyering  <meyering@redhat.com>
12530
12531         maint.mk: improve sc_prohibit_magic_number_exit
12532         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12533         so it does not match uses like System.exit(1).
12534         Add comments showing how to correct all offenders.
12535
12536 2009-11-19  Eric Blake  <ebb9@byu.net>
12537
12538         xalloc-die-tests: add missing library
12539         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12540
12541         test-xvasprintf: silence compiler warnings
12542         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12543         empty string from gcc.
12544
12545 2009-11-19  Jim Meyering  <meyering@redhat.com>
12546
12547         xfreopen: new module, from coreutils
12548         * modules/xfreopen: New module.
12549         * lib/xfreopen.c: New file.
12550         * lib/xfreopen.h: New file.
12551         * MODULES.html.sh (File stream based Input/Output"): Add it.
12552
12553 2009-11-19  Eric Blake  <ebb9@byu.net>
12554
12555         manywarnings: depend on warnings
12556         * modules/manywarnings (Depends-on): Add warnings.
12557
12558         build: avoid compiler warnings
12559         * lib/select.c (rpl_select): Delete unused variable.
12560         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12561
12562 2009-11-18  Eric Blake  <ebb9@byu.net>
12563
12564         tests: avoid false negative with --with-packager
12565         * tests/test-version-etc.sh: Discard packager information.
12566         * tests/test-argp-version-etc-1.sh: Likewise.
12567         Reported by Mike Frysinger.
12568
12569         utimens: fix regression on Solaris
12570         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12571         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12572         can only change fd timestamps via futimesat.  Instead, use an
12573         additional witness macro to avoid BSD bug.
12574         Reported by Jim Meyering.
12575
12576 2009-11-17  Eric Blake  <ebb9@byu.net>
12577
12578         usleep: use it to simplify tests
12579         * modules/stat-time-tests (Depends-on): Add usleep.
12580         (configure.ac): Drop usleep check.
12581         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12582         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12583         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12584         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12585         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12586         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12587         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12588         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12589         Likewise.
12590         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12591         * tests/test-lchown.h (nap): Likewise.
12592         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12593         * tests/test-stat-time.c (nap): Likewise.
12594         * tests/test-utimens-common.h (nap): Update comments.
12595
12596         usleep: new module
12597         * modules/usleep: New file.
12598         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12599         * lib/usleep.c (usleep): Likewise.
12600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12601         * modules/unistd (Makefile.am): Substitute witnesses.
12602         * lib/unistd.in.h (usleep): Add declaration.
12603         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12604         * MODULES.html.sh (Date and time): Likewise.
12605         * modules/usleep-tests (Depends-on): New test.
12606         * tests/test-usleep.c: New file.
12607
12608         chown: work around OpenBSD bug
12609         * lib/chown.c (rpl_chown): Work around the bug.
12610         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12611         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12612         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12613         * modules/chown (Depends-on): Add stdbool.
12614         * modules/lchown (Depends-on): Likewise.
12615         * doc/posix-functions/chown.texi (chown): Document the bug.
12616         * doc/posix-functions/lchown.texi (lchown): Likewise.
12617         * tests/test-lchown.h (test_chown): Relax test.
12618
12619         mkstemp: avoid conflict with C++ keyword template
12620         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12621         * lib/mkostemp.c (mkostemp): Likewise.
12622         * lib/mkostemps.c (mkostemps): Likewise.
12623         * lib/mkstemp.c (mkstemp): Likewise.
12624         * lib/mkstemps.c (mkstemps): Likewise.
12625
12626         xalloc-die-tests: optimize
12627         * tests/test-xalloc-die.sh: Reduce number of processes.
12628
12629 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12630
12631         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
12632         patch from ludo@gnu.org (Ludovic Courtès).
12633
12634 2009-11-17  Jim Meyering  <meyering@redhat.com>
12635
12636         version-etc: use proper license string
12637         * modules/version-etc (License): Use LGPL, not LGPLv3+.
12638         * modules/version-etc-fsf: Likewise.
12639
12640 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12641
12642         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
12643         printed to stdout.  Deal with EOL differences.
12644
12645 2009-11-17  Eric Blake  <ebb9@byu.net>
12646
12647         unsetenv: work around Solaris bug
12648         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
12649         * lib/unsetenv.c (rpl_unsetenv): Work around it.
12650         Reported by Jim Meyering.
12651
12652         vasnprintf: avoid compiler warnings
12653         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
12654         variables.
12655         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
12656
12657 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12658
12659         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
12660         settings since xalloc-die is no longer the self test,
12661         xalloc-die.sh is.
12662
12663 2009-11-17  Jim Meyering  <meyering@redhat.com>
12664
12665         test-xalloc-die.sh: make the code agree with the commit log
12666         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
12667         at the end, just in case you happen to have a test-xalloc-die
12668         program in some other PATH directory.
12669
12670         test-xalloc-die.sh: fix a portability bug
12671         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
12672         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
12673         Otherwise, argv[0] (as often seen in diagnostics) would be too
12674         system-dependent, sometimes with, and sometimes without the leading "./".
12675
12676         version-etc-fsf: relax license to LGPLv3+
12677         * modules/version-etc-fsf (License): Relax license.
12678
12679 2009-11-16  Eric Blake  <ebb9@byu.net>
12680
12681         xalloc-die-tests: avoid printing null pointer
12682         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
12683         shell script.
12684         * tests/test-xalloc-die.c (program_name): Declare.
12685         * tests/test-xalloc-die.sh (tmpfiles): New file.
12686
12687         setenv, unsetenv: work around various bugs
12688         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
12689         (setenv) [HAVE_SETENV]: Work around bugs.
12690         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
12691         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
12692         for bugs.
12693         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
12694         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
12695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
12696         * modules/stdlib (Makefile.am): Update substitutions.
12697         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
12698         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
12699         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12700         * modules/setenv-tests: New test.
12701         * modules/unsetenv-tests: Likewise.
12702         * tests/test-setenv.c: New file.
12703         * tests/test-unsetenv.c: Likewise.
12704
12705 2009-11-16  Jim Meyering  <meyering@redhat.com>
12706
12707         version-etc: relax license to LGPLv3+
12708         * modules/version-etc (License): Relax license.
12709
12710         better AC_REQUIRE expanded-before-required-warning avoidance
12711         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
12712         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
12713         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
12714         which is no longer needed.
12715
12716 2009-11-16  Eric Blake  <ebb9@byu.net>
12717
12718         test-freading: clean up temporary file
12719         * tests/test-freading.c (main): Remove file on success, and use
12720         ASSERT more liberally.
12721         Reported by Jim Meyering.
12722
12723 2009-11-16  Jim Meyering  <meyering@redhat.com>
12724
12725         avoid new AC_REQUIRE expanded-before-required warnings
12726         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
12727         merely using it.
12728         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
12729         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
12730
12731 2009-11-15  Simon Josefsson  <simon@josefsson.org>
12732
12733         * tests/test-xalloc-die.c: New file.
12734         * modules/xalloc-die-tests: New file.
12735         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
12736         XFAIL_TESTS so it can be appended by modules.
12737
12738 2009-11-15  Simon Josefsson  <simon@josefsson.org>
12739
12740         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
12741         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
12742
12743 2009-11-14  Eric Blake  <ebb9@byu.net>
12744
12745         fnmatch: avoid compiler warning
12746         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
12747         to silence compiler warning about mismatch signedness in ?:.
12748         Reported by Robert Millan.
12749
12750         intprops: add double-inclusion guard
12751         * lib/intprops.h: Allow idempotent includes.
12752         Suggested by Bruce Korb.
12753
12754         openat: detect Solaris fchownat bug
12755         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
12756         penalizing glibc chownat when only lchownat is broken.
12757         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
12758         trailing slash bugs.
12759         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
12760         * modules/openat-tests (Files): Include more files.
12761         (Depends-on): Add mgetgroups, sleep, stat-time.
12762         (configure.ac): Add additional checks.
12763         (Makefile.am): Build new test.
12764         * tests/test-fchownat.c: New file.
12765
12766         lchown: detect Solaris and FreeBSD bug
12767         * lib/lchown.c (rpl_lchown): Work around bug.
12768         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
12769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12770         * modules/unistd (Makefile.am): Populate it.
12771         * lib/unistd.in.h (lchown): Update declaration.
12772         * doc/posix-functions/lchown.texi (lchown): Document the bug.
12773         * modules/lchown-tests: New file.
12774         * tests/test-lchown.h (test_lchown): Likewise.
12775         * tests/test-lchown.c (main): Likewise.
12776
12777         chown: detect Solaris and FreeBSD bug
12778         * lib/chown.c (rpl_chown): Work around bug.
12779         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
12780         (gl_PREREQ_CHOWN): Delete.
12781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12782         * modules/unistd (Makefile.am): Populate it.
12783         * lib/unistd.in.h (chown): Update declaration.
12784         * lib/lchown.c (chown): Update client.
12785         * modules/lchown (Depends-on): Add lstat.
12786         * doc/posix-functions/chown.texi (chown): Document the bug.
12787         * doc/posix-functions/getgroups.texi (getgroups): Document
12788         getgroups pitfall.
12789         * modules/chown-tests: New file.
12790         * tests/test-chown.h (test_chown): Likewise.
12791         * tests/test-chown.c (main): Likewise.
12792
12793 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
12794
12795         gnulib-tool: correctly detect absence of m4 directories
12796         * gnulib-tool: Avoid extra newline on data passed to wc -l.
12797
12798 2009-11-14  Jim Meyering  <meyering@redhat.com>
12799
12800         maint.mk: Prohibit inclusion of "xalloc.h" without use.
12801         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12802
12803 2009-11-14  John W. Eaton  <jwe@gnu.org>
12804
12805         strftime.h: wrap funtion declaration in extern "C" block
12806         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
12807
12808 2009-11-13  Eric Blake  <ebb9@byu.net>
12809
12810         getgroups: avoid compiler warning
12811         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
12812
12813         getgroups: work around FreeBSD bug
12814         * lib/getgroups.c (rpl_getgroups): Work around the bug.
12815         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
12816         * doc/posix-functions/getgroups.texi (getgroups): Document it.
12817         * tests/test-getgroups.c (main): Fix buffer overrun.
12818
12819         getgroups: avoid compilation failure
12820         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
12821         * modules/getgroups (Depends-on): Add stdint.
12822
12823 2009-11-13  Jim Meyering  <meyering@redhat.com>
12824
12825         test-getgroups: avoid compilation failure
12826         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
12827
12828 2009-11-13  Eric Blake  <ebb9@byu.net>
12829
12830         mgetgroups: new module, taken from coreutils
12831         * modules/mgetgroups: New file.
12832         * lib/mgetgroups.h: Likewise.
12833         * lib/mgetgroups.c (mgetgroups): Likewise.
12834         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
12835         * MODULES.html.sh (Users and groups): Mention it.
12836
12837         getgroups: don't expose GETGROUPS_T to user
12838         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
12839         an element at a time if GETGROUPS_T is wrong size.
12840         * lib/getugroups.h (getugroups): Change signature.
12841         * lib/unistd.in.h (getgroups): Likewise.
12842         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
12843         signature needs fixing.
12844         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
12845         AC_TYPE_GETGROUPS.
12846         * modules/group-member (Depends-on): Add getgroups.
12847         * lib/group-member.c (group_info, get_group_info): Use gid_t.
12848         (group_member): Rely on getgroups replacement.
12849         * lib/getugroups.c (getugroups): Use gid_t.
12850         * tests/test-getgroups.c (main): Likewise.
12851         * NEWS: Mention the signature change.
12852         * doc/posix-functions/getgroups.texi (getgroups): Mention the
12853         problem with signature.
12854         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
12855         GETGROUPS_T is still useful for setgroups.
12856
12857         getgroups, getugroups: provide stubs for mingw
12858         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
12859         * lib/getugroups.c (getugroups): Likewise.
12860         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
12861         function.  Modernize replacement scheme.
12862         (gl_PREREQ_GETGROUPS): Delete.
12863         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
12864         * modules/getgroups (configure.ac): Declare witness.
12865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12866         * modules/unistd (Depends-on): Substitute witness.
12867         * lib/unistd.in.h (getgroups): Declare replacement.
12868
12869         getgroups: avoid calling exit
12870         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
12871         drop xalloc.
12872         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
12873         dependencies.
12874         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
12875         exiting, in the rare case of malloc failure.
12876
12877         getgroups: fix logic error
12878         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
12879         has more than 20 groups.
12880         * modules/getgroups-tests: New test.
12881         * tests/test-getgroups.c: New file.
12882
12883 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12884
12885         * tests/test-base64.c: Improve.
12886
12887 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12888
12889         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
12890         Blake <ebb9@byu.net>.
12891
12892 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12893
12894         * tests/test-xvasprintf.c: Add %s%s related checks.
12895
12896 2009-11-12  Eric Blake  <ebb9@byu.net>
12897
12898         version-etc: match standards.texi style
12899         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
12900         and use <> only for URLs.
12901
12902 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
12903
12904         fts: do not fail on a submount during traversal
12905         * lib/fts.c (fts_build): Read the stat info again after opening
12906         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
12907         Original report at http://bugzilla.redhat.com/501848.
12908
12909 2009-11-12  Jim Meyering  <meyering@redhat.com>
12910
12911         bootstrap: sync from coreutils
12912         * build-aux/bootstrap (bootstrap_epilogue): New function.
12913         Use git_modules_config in one more place.  This make bootstrap's
12914         --gnulib-srcdir option more useful for testing.
12915
12916         bootstrap: generalize autoheader check
12917         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
12918         AC_CONFIG_HEADERS.
12919
12920 2009-11-11  Eric Blake  <ebb9@byu.net>
12921
12922         mkfifoat: use new modules for Solaris and BSD bugs
12923         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
12924         * lib/mkfifoat.c (mknodat): Split...
12925         * lib/mknodat.c (mknodat): ...into new file.
12926         * modules/mkfifoat (Files): Ship new file.
12927         (Depends-on): Add mkfifo, mknod.
12928         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
12929         (Depends-on): Add symlink.
12930         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
12931         redundant with test_mkfifo.h.
12932         (do_mkfifoat, do_mknodat): New helpers.
12933
12934         mknod: new module
12935         * modules/mknod: New file.
12936         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
12937         * lib/mknod.c (mknod): Likewise.
12938         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12939         defaults.
12940         * modules/sys_stat (Makefile.am): Substitute them.
12941         * lib/sys_stat.in.h (mknod): Declare replacement.
12942         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12943         Document it.
12944         * doc/posix-functions/mknod.texi (mknod): Likewise.
12945         * modules/mknod-tests: New test.
12946         * tests/test-mknod.c: Likewise.
12947
12948         mkfifo: new module
12949         * modules/mkfifo: New file.
12950         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12951         * lib/mkfifo.c (mkfifo): Likewise.
12952         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12953         defaults.
12954         * modules/sys_stat (Makefile.am): Substitute them.
12955         * lib/sys_stat.in.h (mkfifo): Declare replacement.
12956         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12957         Document it.
12958         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
12959         * modules/mkfifo-tests: New test.
12960         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
12961         from test-mkfifoat.c.
12962         * tests/test-mkfifo.c: New file.
12963
12964         readlink: detect FreeBSD bug
12965         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
12966         slash on symlink.
12967         * doc/posix-functions/readlink.texi (readlink): Document the bug.
12968         * tests/test-readlink.h (test_readlink): Enhance test.
12969
12970         symlink: detect FreeBSD bug
12971         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
12972         slash on symlink.
12973         * doc/posix-functions/symlink.texi (symlink): Document the bug.
12974         * tests/test-symlink.h (test_symlink): Enhance test.
12975
12976 2009-11-10  Eric Blake  <ebb9@byu.net>
12977
12978         link: detect FreeBSD bug
12979         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
12980         symlink.
12981         * doc/posix-functions/link.texi (link): Document the bug.
12982         * tests/test-link.h (test_link): Enhance test.
12983         * tests/test-linkat.c (main): Update caller.
12984
12985         unlink, remove: detect FreeBSD bug
12986         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
12987         slash on symlink.
12988         * doc/posix-functions/unlink.texi (unlink): Document the bug.
12989         * doc/posix-functions/remove.texi (remove): Likewise.
12990         * tests/test-unlink.h (test_unlink): Enhance test.
12991         * tests/test-remove.c (main): Likewise.
12992
12993 2009-11-09  Eric Blake  <ebb9@byu.net>
12994
12995         rename: detect FreeBSD bug
12996         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
12997         slash on symlink.
12998         * modules/renameat-tests (Depends-on): Add filenamecat.
12999         * tests/test-rename.h (test_rename): Allow one more errno.
13000         * tests/test-renameat.c (main): Likewise.
13001         * doc/posix-functions/rename.texi (rename): Document the bug.
13002
13003         open: detect FreeBSD bug
13004         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13005         symlink.
13006         * doc/posix-functions/open.texi (open): Document the bug.
13007         * doc/posix-functions/utimes.texi (utimes): Likewise.
13008         * tests/test-open.h (test_open): Add parameters, and test symlink
13009         handling.
13010         * tests/test-open.c (main): Adjust caller.
13011         * tests/test-fcntl-safer.c (main): Likewise.
13012         * modules/open-tests (Depends-on): Add stdbool, symlink.
13013         * modules/fcntl-safer-tests (Depends-on): Likewise.
13014         * tests/test-openat.c (main): Add test-open tests.
13015
13016         stat: detect FreeBSD bug
13017         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13018         symlink.
13019         * doc/posix-functions/stat.texi (stat): Document the bug.
13020         * tests/test-stat.h (test_stat_func): Add argument.
13021         * tests/test-stat.c (main): Adjust caller.
13022         * tests/test-fstatat.c (main): Likewise.
13023         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13024         Reported by Jim Meyering.
13025
13026 2009-11-09  James Youngman  <jay@gnu.org>
13027
13028         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13029         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13030
13031 2009-11-08  Jim Meyering  <meyering@redhat.com>
13032
13033         utimens: remove invalid futimesat call
13034         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13035         It used the file descriptor of the target file as the DIR_FD
13036         parameter and NULL as the file name.  That caused failure with
13037         errno == EFAULT on FreeBSD-8.0-rc2
13038
13039 2009-11-07  Eric Blake  <ebb9@byu.net>
13040
13041         fflush, freadseek: use fseeko, not fseek
13042         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13043         (clear_ungetc_buffer): Avoid potential problems on large files.
13044         * lib/freadseek.c (freadseek): Likewise.
13045         * modules/freadseek (Depends-on): Add fseeko.
13046         * modules/fseek (configure.ac): Set a witness.
13047         * tests/test-fflush.c (main): Use fseeko.
13048         * tests/test-fpurge.c (fseek): Disable link warning.
13049         * tests/test-freadable.c (fseek): Likewise.
13050         * tests/test-freading.c (fseek): Likewise.
13051         * tests/test-fseeko.c (fseek): Likewise.
13052         * tests/test-ftell.c (fseek): Likewise.
13053         * tests/test-ftello.c (fseek): Likewise.
13054         * tests/test-fwritable.c (fseek): Likewise.
13055         * tests/test-fwriting.c (fseek): Likewise.
13056
13057 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13058
13059         * modules/memchr (Depends-on): Drop getpagesize dependency.
13060
13061 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13062
13063         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13064         Reported by Ludovic Courtès.
13065         * build-aux/pmccabe2html: Improve example usage.
13066         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13067
13068 2009-11-06  Jim Meyering  <meyering@redhat.com>
13069
13070         do-release-commit-and-tag: New module.
13071         Automate the release-commit and tag process.
13072         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13073         * modules/do-release-commit-and-tag: New file.
13074         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13075
13076 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13077
13078         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13079         because test-select.c uses inet_pton.
13080
13081 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13082
13083         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13084         GETADDRINFO_LIB.  Bump serial number.
13085         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13086         Suggested by Eric Blake <ebb9@byu.net>.
13087
13088 2009-11-05  Eric Blake  <ebb9@byu.net>
13089
13090         strtod: detect darwin bug
13091         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13092         Reported by Leo Davis.
13093
13094         freopen-safer: new module
13095         * modules/freopen-safer: New module.
13096         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13097         * lib/freopen-safer.c (freopen_safer): New file.
13098         * lib/stdio-safer.h (freopen_safer): New declaration.
13099         * lib/stdio--.h (freopen): New override.
13100         * MODULES.html.sh (File stream based Input/Output): Mention it.
13101         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13102         freopen-safer module.
13103         * doc/posix-functions/stderr.texi (stderr): Likewise.
13104         * doc/posix-functions/stdin.texi (stdin): Likewise.
13105         * doc/posix-functions/stdout.texi (stdout): Likewise.
13106         * modules/freopen-safer-tests: New test.
13107         * tests/test-reopen-safer.c: New file.
13108
13109 2009-11-05  Jim Meyering  <meyering@redhat.com>
13110
13111         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13112         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13113
13114 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13115
13116         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13117
13118 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13119
13120         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13121
13122 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13123
13124         Fix link error.
13125         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13126         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13127
13128 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13129
13130         * tests/test-func.c: Also test value of __func__.
13131
13132 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13133
13134         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13135         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13136
13137 2009-11-05  Bruno Haible  <bruno@clisp.org>
13138
13139         Fix link error.
13140         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13141         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13142         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13143
13144 2009-11-05  Bruno Haible  <bruno@clisp.org>
13145
13146         Tests for module 'inet_pton'.
13147         * modules/inet_pton-tests: New file.
13148         * tests/test-inet_pton.c: New file.
13149
13150 2009-11-05  Bruno Haible  <bruno@clisp.org>
13151
13152         Tests for module 'inet_ntop'.
13153         * modules/inet_ntop-tests: New file.
13154         * tests/test-inet_ntop.c: New file.
13155
13156 2009-11-04  Eric Blake  <ebb9@byu.net>
13157
13158         stdlib-safer: wrap all mkstemp variants
13159         * modules/mkostemp (configure.ac): Set witness.
13160         * modules/mkostemps (configure.ac): Likewise.
13161         * modules/mkstemps (configure.ac): Likewise.
13162         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13163         (mkstemps_safer): Wrap more functions.
13164         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13165         wrapping.
13166         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13167         (mkstemps_safer): Implement the wrappers.
13168
13169         mkstemps, mkostemps: new modules
13170         * modules/mkostemps: New module.
13171         * modules/mkstemps: Likewise.
13172         * lib/mkostemps.c (mkostemps): New file.
13173         * lib/mkstemps.c (mkstemps): Likewise.
13174         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13175         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13177         * modules/stdlib (Makefile.am): Substitute them.
13178         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13179         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13180         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13181         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13182         * MODULES.html.sh (File system functions): Mention them.
13183
13184         tempname: resync from glibc
13185         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13186         same values for __GT_FILE as glibc.  Abort even when assertions
13187         are disabled.
13188         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13189         match its value otherwise.  Allow idempotent inclusion.
13190         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13191         * lib/mkostemp.c (mkostemp): Likewise.
13192         * lib/mkstemp.c (mkstemp): Likewise.
13193         * lib/tmpfile.c (tmpfile): Likewise.
13194         * NEWS: Document this.
13195
13196         utimens: fix use of futimens on older Linux
13197         * lib/utimens.c (fdutimens): Use updated, rather than original,
13198         timespec to avoid bug in older Linux kernel.
13199         Reported by Simon Josefsson.
13200
13201 2009-11-04  Bruno Haible  <bruno@clisp.org>
13202
13203         Make num_processors more flexible and consistent.
13204         * lib/nproc.h (enum nproc_query): New type.
13205         (num_processors): Add a 'query' argument.
13206         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13207         (num_processors): Add a 'query' argument. Test the value of the
13208         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13209         mingw, count the number of CPUs available for the current process.
13210         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13211         Check for sched_getaffinity and sched_getaffinity_np.
13212         * modules/nproc (Depends-on): Add c-ctype, extensions.
13213         * NEWS: Mention the change.
13214
13215 2009-11-03  Bruno Haible  <bruno@clisp.org>
13216
13217         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13218
13219 2009-11-03  Jim Meyering  <meyering@redhat.com>
13220
13221         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13222         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13223         if it is defined.
13224
13225 2009-11-02  Eric Blake  <ebb9@byu.net>
13226
13227         mktime, timegm: share common declaration
13228         * lib/mktime-internal.h: New file.
13229         * lib/mktime.c: Use it rather than open-coding a declaration.
13230         * lib/timegm.c: Likewise.
13231         * modules/mktime (Files): Ship it.
13232         * modules/timegm (Files): Likewise.
13233         Suggested by Bruno Haible.
13234
13235         test-update-copyright: update test to match script changes
13236         * tests/test-update-copyright.sh: Avoid hard-coding perl
13237         location.  Don't update *.bak created by earlier runs.
13238
13239 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13240             Simon Josefsson  <simon@josefsson.org>
13241             Bruno Haible  <bruno@clisp.org>
13242
13243         Fix link error on Solaris 8.
13244         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13245         also in libnsl. Define also INET_PTON_LIB.
13246         * modules/inet_pton (Link): New section.
13247
13248 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13249             Bruno Haible  <bruno@clisp.org>
13250
13251         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13252         * modules/inet_ntop (Link): New section.
13253         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13254
13255 2009-11-02  Eric Blake  <ebb9@byu.net>
13256
13257         maint: avoid compiler warnings in m4 macros
13258         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13259         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13260
13261 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13262
13263         * m4/pmccabe2html.m4: Remove file.
13264         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13265         function.  Change maintainer.
13266         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13267         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13268         Courtès).
13269
13270 2009-10-31  Eric Blake  <ebb9@byu.net>
13271
13272         fseeko: fix m4 regression
13273         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13274         regression from 2009-10-27.
13275         Reported by Ralf Wildenhues.
13276
13277 2009-10-31  Jim Meyering  <meyering@redhat.com>
13278
13279         inttostr: aesthetics and improved (compile-time) safety
13280         Define inttype_is_signed rather than inttype_is_unsigned,
13281         since the sole use is via "#if inttype_is_signed".
13282         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13283         inttype_is_unsigned.
13284         * lib/offtostr.c (inttype_is_signed): Likewise.
13285         * lib/uinttostr.c (inttype_is_signed): Likewise.
13286         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13287         * lib/inttostr.c (inttostr): Use verify to cross-check the
13288         inttype_is_signed value and the signedness of the actual type.
13289         * modules/inttostr (Depends-on): Add verify.
13290
13291 2009-10-30  Eric Blake  <ebb9@byu.net>
13292
13293         build: avoid compiler warnings
13294         * lib/fchmodat.c (lchmod): Mark unused variables.
13295         * lib/getopt.c (_getopt_initialize): Likewise.
13296         * lib/mktime.c (__mktime_internal): Provide prototype.
13297         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13298         older gcc that do not understand #pragma GCC diagnostic.
13299         * lib/uinttostr.c (inttype_is_unsigned): Define.
13300         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13301
13302 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13303
13304         stat: fix compilation on AIX
13305         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13306         only see struct stat64.
13307
13308 2009-10-30  Eric Blake  <ebb9@byu.net>
13309
13310         exclude: make more robust
13311         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13312         rather than masking a coding bug.
13313         Suggested by Bruno Haible.
13314
13315 2009-10-30  Jim Meyering  <meyering@redhat.com>
13316
13317         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13318         Rather than putting #!/usr/bin/perl on the first line,
13319         start with a variant of what's recommended by "man perlrun" that
13320         invokes the first "perl" program from your shell's search path.
13321         * build-aux/gitlog-to-changelog: Replace #!... as above.
13322         Add a "Local Variables" perl mode setting.
13323         Prompted by a patch from Ludovic Courtès.
13324         Improved by Eric Blake.
13325         * build-aux/useless-if-before-free: Likewise.
13326         * build-aux/announce-gen: Likewise.
13327         * build-aux/update-copyright: Likewise.
13328
13329 2009-10-29  Eric Blake  <ebb9@byu.net>
13330
13331         filenamecat-lgpl: adjust clients
13332         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13333         filenamecat.
13334         * modules/renameat (Depends-on): Likewise.
13335
13336         filenamecat: split into filenamecat-lgpl
13337         * modules/filenamecat-lgpl: New module.
13338         * modules/filenamecat (Files): Move library-safe files into
13339         filenamecat-lgpl.
13340         (Depends-on): Add filenamecat-lgpl.
13341         (configure.ac): Declare witness.
13342         * lib/filenamecat.h (file_name_concat): Only declare when using
13343         GPL module.
13344         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13345         Move...
13346         * lib/filenamecat-lgpl.c: ...into new file.
13347         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13348         (gl_FILE_NAME_CONCAT): Use it.
13349         * MODULES.html.sh (File system functions): Mention new module.
13350
13351         argp: avoid memory leak
13352         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13353         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13354         base_name, since the latter malloc()s and can call exit().
13355         Leak introduced 2006-07-03.
13356
13357         dirname-lgpl: adjust clients that don't need full dirname
13358         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13359         * modules/filenamecat (Depends-on): Likewise.
13360         * modules/linkat (Depends-on): Likewise.
13361         * modules/mkancesdirs (Depends-on): Likewise.
13362         * modules/mkdir (Depends-on): Likewise.
13363         * modules/openat (Depends-on): Likewise.
13364         * modules/savewd (Depends-on): Likewise.
13365         * modules/rename (Depends-on): Likewise.
13366         (License): Relax license.
13367         * modules/mkdir-tests (Depends-on): Drop progname.
13368         (Makefile.am): Delete unneeded LDADD.
13369         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13370
13371         dirname: split into dirname-lgpl
13372         * modules/dirname-lgpl: New module.
13373         * modules/dirname (Files): Move library-safe files into
13374         dirname-lgpl.
13375         (Depends-on): Add dirname-lgpl.
13376         (configure.ac): Declare witness.
13377         * modules/double-slash-root (License): Relax license.
13378         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13379         module.
13380         * lib/dirname.c (dir_len, mdir_name): Move...
13381         * lib/dirname-lgpl.c: ...into new file.
13382         * lib/basename.c (last_component, base_len): Move...
13383         * lib/basename-lgpl.c: ...into new file.
13384         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13385         (gl_DIRNAME): Use it.
13386         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13387         Mention new module.
13388         * modules/dirname-tests (Depends-on): Add progname.
13389         * tests/test-dirname.c (program_name): Delete.
13390
13391         mkdir: make safe for libraries
13392         * modules/mkdir (Depends-on): Drop xalloc.
13393         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13394         exit.
13395
13396         tests: avoid some compiler warnings
13397         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13398         literals.
13399         * tests/test-memchr.c (main): Avoid type mismatch.
13400         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13401         * tests/test-base64.c (main): Likewise.
13402         * tests/test-getdelim.c (main): Likewise.
13403         * tests/test-gethostname.c (main): Likewise.
13404         * tests/test-getline.c (main): Likewise.
13405         * tests/test-netinet_in.c (main): Likewise.
13406         * tests/test-select.c (open_server_socket, main): Likewise.
13407         * tests/test-select-stdin.c (main): Likewise.
13408         * tests/test-sockets.c (main): Likewise.
13409         * tests/test-strsignal.c (main): Likewise.
13410         * tests/test-sys_select.c (main): Likewise.
13411         * tests/test-sys_socket.c (main): Likewise.
13412         * tests/test-u64.c (main): Likewise.
13413         * tests/test-xfprintf-posix.c (main): Likewise.
13414         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13415
13416         sockets: avoid compiler warning
13417         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13418
13419         maint: detect usage(1) and other suspicious exits
13420         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13421
13422 2009-10-29  Jim Meyering  <meyering@redhat.com>
13423
13424         timespec: long-to-int truncation could make timespec_cmp malfunction
13425         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13426         a multiple of 2^32 nanoseconds as no difference.
13427
13428 2009-10-28  Jim Meyering  <meyering@redhat.com>
13429
13430         fprintftime: wrap macro code argument in "do {...} while(0)"
13431         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13432         cpy macro must be a statement that can be followed by a semicolon.
13433         Now that the else clause contains a comment and is hence longer
13434         than one line, I require curly braces.  That in turn requires
13435         that we wrap this code block in the standard do...while(0).
13436
13437         fprintftime: remove stray semicolon from previous change
13438         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13439
13440         fprintftime: avoid a warning about ignored fwrite return value
13441         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13442         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13443         that is unsafe.
13444         * modules/fprintftime (Depends-on): Add ignore-value.
13445
13446         exclude: avoid an unwarranted warning
13447         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13448
13449 2009-10-27  Eric Blake  <ebb9@byu.net>
13450
13451         fseek: avoid compilation failure when fflush is replaced
13452         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13453         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13454         module is in use.
13455         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13456         module is not in use; since REPLACE_FSEEK worked otherwise.
13457         (GNULIB_FTELLO): Likewise for ftell.
13458         Reported by Ian Beckwith and others.
13459
13460 2009-10-27  Bruno Haible  <bruno@clisp.org>
13461
13462         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13463         Reported by Jim Meyering.
13464
13465 2009-10-27  Jim Meyering  <jim@meyering.net>
13466             Bruno Haible  <bruno@clisp.org>
13467
13468         Avoid warning despite dropping the return value of fwrite.
13469         * lib/unicodeio.c: Include ignore-value.h.
13470         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13471         * modules/unicodeio (Depends-on): Add ignore-value.
13472
13473 2009-10-26  Eric Blake  <ebb9@byu.net>
13474
13475         areadlinkat: fix fallback path
13476         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13477         pointer and zero.
13478
13479 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13480
13481         Use a better IO block size for modern systems
13482         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13483         * lib/md2.c: Likewise.
13484         * lib/md4.c: Likewise.
13485         * lib/md5.c: Likewise.
13486         * lib/sha1.c: Likewise.
13487         * lib/sha256.c: Likewise.
13488         * lib/sha512.c: Likewise.
13489
13490 2009-10-22  Eric Blake  <ebb9@byu.net>
13491
13492         tests: avoid several compiler warnings
13493         * tests/test-getcwd.c (main): Avoid buffer underflow.
13494         * tests/test-getdate.c (main): String literals are not safe with
13495         putenv, so use setenv.  Declare unused argument.
13496         * modules/getdate-tests (Depends-on): Add setenv.
13497         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13498         problems with string literals in char *.
13499         * tests/test-hash.c (main): Avoid shadowing declaration.
13500         (insert_new): Treat string literals as char const *.
13501         * tests/test-getopt.h (test_getopt): Likewise.
13502         (getopt_loop): Alter types to minimize casting elsewhere.
13503         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13504         (test_getopt_long_posix): Likewise.
13505         (do_getopt_long): Add wrapper to minimize casting.
13506         * tests/test-atexit.c (clear_temp_file): Use void.
13507         * tests/test-areadlink-with-size.c (main): Declare unused
13508         arguments.
13509         * tests/test-areadlink.c (main): Likewise.
13510         * tests/test-areadlinkat-with-size.c (main): Likewise.
13511         * tests/test-areadlinkat.c (main): Likewise.
13512         * tests/test-canonicalize-lgpl.c (main): Likewise.
13513         * tests/test-canonicalize.c (main): Likewise.
13514         * tests/test-dirent-safer.c (main): Likewise.
13515         * tests/test-dirname.c (main): Likewise.
13516         * tests/test-dup2.c (main): Likewise.
13517         * tests/test-fchdir.c (main): Likewise.
13518         * tests/test-fcntl-h.c (main): Likewise.
13519         * tests/test-fcntl-safer.c (main): Likewise.
13520         * tests/test-fdopendir.c (main): Likewise.
13521         * tests/test-fdutimensat.c (main): Likewise.
13522         * tests/test-fflush.c (main): Likewise.
13523         * tests/test-filenamecat.c (main): Likewise.
13524         * tests/test-filevercmp.c (main): Likewise.
13525         * tests/test-fopen-safer.c (main): Likewise.
13526         * tests/test-fopen.c (main): Likewise.
13527         * tests/test-fpending.c (main): Likewise.
13528         * tests/test-fpurge.c (main): Likewise.
13529         * tests/test-freading.c (main): Likewise.
13530         * tests/test-fstatat.c (main): Likewise.
13531         * tests/test-fsync.c (main): Likewise.
13532         * tests/test-futimens.c (main): Likewise.
13533         * tests/test-getndelim2.c (main): Likewise.
13534         * tests/test-gettimeofday.c (main): Likewise.
13535         * tests/test-getopt.c (main): Likewise.
13536         * tests/test-i-ring.c (main): Likewise.
13537         * tests/test-inttypes.c (main): Likewise.
13538         * tests/test-link.c (main): Likewise.
13539         * tests/test-lstat.c (main): Likewise.
13540         * tests/test-math.c (main): Likewise.
13541         * tests/test-md5.c (main): Likewise.
13542         * tests/test-memchr2.c (main): Likewise.
13543         * tests/test-memrchr.c (main): Likewise.
13544         * tests/test-mkdir.c (main): Likewise.
13545         * tests/test-mkdirat.c (main): Likewise.
13546         * tests/test-mkfifoat.c (main): Likewise.
13547         * tests/test-open.c (main): Likewise.
13548         * tests/test-openat-safer.c (main): Likewise.
13549         * tests/test-openat.c (main): Likewise.
13550         * tests/test-quotearg.c (main): Likewise.
13551         * tests/test-rawmemchr.c (main): Likewise.
13552         * tests/test-readlink.c (main): Likewise.
13553         * tests/test-remove.c (main): Likewise.
13554         * tests/test-rename.c (main): Likewise.
13555         * tests/test-renameat.c (main): Likewise.
13556         * tests/test-rmdir.c (main): Likewise.
13557         * tests/test-sha1.c (main): Likewise.
13558         * tests/test-signal.c (main): Likewise.
13559         * tests/test-sigaction.c (main): Likewise.
13560         * tests/test-stat.c (main): Likewise.
13561         * tests/test-stat-time.c (main): Likewise.
13562         * tests/test-stddef.c (main): Likewise.
13563         * tests/test-stdint.c (main): Likewise.
13564         * tests/test-stdio.c (main): Likewise.
13565         * tests/test-stdlib.c (main): Likewise.
13566         * tests/test-strchrnul.c (main): Likewise.
13567         * tests/test-strerror.c (main): Likewise.
13568         * tests/test-string.c (main): Likewise.
13569         * tests/test-strtod.c (main): Likewise.
13570         * tests/test-strverscmp.c (main): Likewise.
13571         * tests/test-symlink.c (main): Likewise.
13572         * tests/test-symlinkat.c (main): Likewise.
13573         * tests/test-sys_stat.c (main): Likewise.
13574         * tests/test-sys_time.c (main): Likewise.
13575         * tests/test-time.c (main): Likewise.
13576         * tests/test-unistd.c (main): Likewise.
13577         * tests/test-unlink.c (main): Likewise.
13578         * tests/test-unlinkat.c (main): Likewise.
13579         * tests/test-utimens.c (main): Likewise.
13580         * tests/test-utimensat.c (main): Likewise.
13581         * tests/test-version-etc.c (main): Likewise.
13582         * tests/test-wchar.c (main): Likewise.
13583         * tests/test-wctype.c (main): Likewise.
13584         * tests/test-xprintf-posix.c (main): Likewise.
13585         * tests/test-posixtm.c (main): Likewise.
13586         (STREQ): Delete unused macro.
13587         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13588         shadowed variables.
13589         * tests/test-memchr.c (main): Likewise.
13590
13591 2009-10-21  Eric Blake  <ebb9@byu.net>
13592
13593         areadlinkat: avoid failure on older glibc
13594         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13595         rather than mis-comparing 0 against FUNC_RESULT of char*.
13596
13597 2009-10-21  Bruno Haible  <bruno@clisp.org>
13598
13599         * modules/stpncpy (License): Relicense under LGPLv2+.
13600         Reported by David Lutterkort <lutter@redhat.com>.
13601
13602 2009-10-20  Eric Blake  <ebb9@byu.net>
13603
13604         utimensat: work around Solaris 9 bug
13605         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13606         has trailing slash bugs.
13607         * tests/test-lutimens.h (test_lutimens): Enhance test.
13608         * tests/test-utimens.h (test_utimens): Likewise.
13609         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13610         * doc/posix-functions/utimes.texi (utimes): Likewise.
13611         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13612         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13613         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13614         * doc/posix-functions/futimens.texi (futimens): Likewise.
13615
13616         fdutimensat: new module
13617         * modules/fdutimensat: New file.
13618         * lib/fdutimensat.c (fdutimensat): Likewise.
13619         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13620         * MODULES.html.sh (File system functions): Mention module.
13621         * modules/fdutimensat-tests: New test.
13622         * tests/test-fdutimensat.c: Likewise.
13623
13624         doc: regenerate INSTALL
13625         * doc/INSTALL: Reflect recent autoconf update.
13626         * doc/INSTALL.ISO: Likewise.
13627         * doc/INSTALL.UTF-8: Likewise.
13628
13629 2009-10-20  Pádraig Brady  <P@draigBrady.com>
13630
13631         acl: warn if ACL support is not detected
13632         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
13633
13634 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
13635
13636         * lib/nproc.h: Add extern "C" block for C++.
13637
13638 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
13639             Bruno Haible  <bruno@clisp.org>
13640
13641         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
13642         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
13643         * doc/posix-functions/isalpha.texi: Likewise.
13644         * doc/posix-functions/isblank.texi: Likewise.
13645         * doc/posix-functions/iscntrl.texi: Likewise.
13646         * doc/posix-functions/isdigit.texi: Likewise.
13647         * doc/posix-functions/isgraph.texi: Likewise.
13648         * doc/posix-functions/islower.texi: Likewise.
13649         * doc/posix-functions/isprint.texi: Likewise.
13650         * doc/posix-functions/ispunct.texi: Likewise.
13651         * doc/posix-functions/isspace.texi: Likewise.
13652         * doc/posix-functions/isupper.texi: Likewise.
13653         * doc/posix-functions/isxdigit.texi: Likewise.
13654
13655 2009-10-18  Bruno Haible  <bruno@clisp.org>
13656
13657         Tests for module 'isblank'.
13658         * modules/isblank-tests: New file.
13659         * tests/test-isblank.c: New file.
13660
13661         New module 'isblank'.
13662         * lib/isblank.c: New file.
13663         * m4/isblank.m4: New file.
13664         * modules/isblank: New file.
13665         * doc/posix-functions/isblank.texi: Mention the new module.
13666
13667 2009-10-18  Bruno Haible  <bruno@clisp.org>
13668
13669         New module 'ctype'.
13670         * lib/ctype.in.h: New file.
13671         * m4/ctype.m4: New file.
13672         * modules/ctype: New file.
13673         * doc/posix-headers/ctype.texi: Mention the new module.
13674
13675 2009-10-18  Jim Meyering  <meyering@redhat.com>
13676
13677         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
13678         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
13679         right after its initialization, rather than farther down.
13680         Keeping these in close proximity makes it easier to ensure
13681         that each such variable is initialized.  E.g.,
13682
13683             LIB_CLOCK_GETTIME=
13684             AC_SUBST([LIB_CLOCK_GETTIME])
13685
13686         This change also increments these serial numbers.
13687         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
13688         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13690
13691 2009-10-18  Bruno Haible  <bruno@clisp.org>
13692
13693         Don't let environment variables perturb build.
13694         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
13695         (gl_PREREQ_GETHRXTIME): ... not here.
13696
13697 2009-10-18  Bruno Haible  <bruno@clisp.org>
13698
13699         Avoid symlink attack in localcharset module.
13700         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
13701         (O_NOFOLLOW): Define fallback.
13702         (get_charset_aliases): Don't open the file if it is a symbolic link.
13703         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
13704         gl_FCNTL_H.
13705         (gl_FCNTL_H): Require it.
13706         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
13707         * modules/localcharset (Files): Add m4/fcntl_h.m4.
13708         Reported by Fergal Glynn <fglynn@veracode.com>.
13709
13710 2009-10-18  Bruno Haible  <bruno@clisp.org>
13711
13712         Implement nproc for mingw.
13713         * lib/nproc.c: Include <windows.h>
13714         (num_processors): On native Windows platforms, try GetSystemInfo.
13715
13716 2009-10-18  Bruno Haible  <bruno@clisp.org>
13717
13718         Implement nproc for IRIX.
13719         * lib/nproc.c: Include <sys/sysmp.h>.
13720         (num_processors): On IRIX systems, try sysmp.
13721         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
13722
13723 2009-10-18  Bruno Haible  <bruno@clisp.org>
13724
13725         Implement nproc for HP-UX.
13726         * lib/nproc.c: Include <sys/pstat.h>
13727         (num_processors): On HP-UX systems, try pstat_getdynamic.
13728         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
13729         pstat_getdynamic.
13730
13731 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
13732             Bruno Haible  <bruno@clisp.org>
13733
13734         Implement nproc for NetBSD, OpenBSD.
13735         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
13736         (ARRAY_SIZE): New macro.
13737         (num_processors): On BSD systems, try sysctl of HW_NCPU.
13738         * m4/nproc.m4: New file.
13739         * modules/nproc (Files): Add m4/nproc.m4.
13740         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
13741         (Makefile.am): Instead, augment lib_SOURCES.
13742
13743 2009-10-18  Bruno Haible  <bruno@clisp.org>
13744
13745         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
13746         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
13747         sys/param.h.
13748
13749 2009-10-16  Eric Blake  <ebb9@byu.net>
13750
13751         utimensat: new module
13752         * modules/utimensat: New file.
13753         * lib/utimensat.c (utimensat): Likewise.
13754         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13755         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
13756         so we can work around Linux bugs.
13757         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13758         * modules/sys_stat (Makefile.am): Substitute them.
13759         * lib/sys_stat.in.h (utimensat): Declare it.
13760         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13761         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13762         * modules/utimensat-tests: New test.
13763         * tests/test-utimensat.c: Likewise.
13764
13765         utimens: let lutimens work on non-symlinks
13766         * lib/utimens.c (lutimens): Fall back to utimens rather than
13767         failing with ENOSYS, when file is not a symlink.
13768         (utimens): Reduce redirection.
13769         * tests/test-lutimens.h (test_lutimens): Update test to cover
13770         non-symlinks.
13771         * tests/test-utimens.h (test_utimens): Update test to cover
13772         symlinks.
13773         * tests/test-utimens.c (main): Update caller.
13774
13775         utimens: cache whether utimensat syscall works
13776         * lib/utimens.c (utimensat_works_really): New cache variable.
13777         (fdutimens, lutimens): Use it to avoid failing syscall.
13778
13779         test-stat-time, test-utimens: improve portability
13780         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
13781         ext4 on alpha, and for cygwin.
13782         * tests/test-utimens-common.h: New file.
13783         (nap): Factor delays into single function.
13784         * tests/test-lutimens.h (test_lutimens): Use new header.
13785         * tests/test-futimens.h (test_futimens): Likewise.
13786         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
13787         timestamps to occur from same machine, as was done previously for
13788         test_utimens.
13789         * modules/utimens-tests (Files): Ship new file.
13790         * modules/futimens-tests (Files): Likewise.
13791         Reported in part by Jim Meyering.
13792
13793         sys_stat: sort replacement declarations
13794         * lib/sys_stat.in.h: Sort declarations.
13795         * lib/futimens.c (futimens): Fix typo.
13796
13797 2009-10-15  Jim Meyering  <meyering@redhat.com>
13798
13799         don't let environment settings perturb build
13800         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
13801         could cause a configure-time and/or build-time malfunction.
13802         Typically, a configure-time function-in-library test is performed
13803         via code like this:
13804
13805           LIB_VAR=
13806           AC_SUBST([LIB_VAR])
13807           prefix_saved_LIBS=$LIBS
13808             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
13809                        [test "$ac_cv_search_FUNC" = "none required" ||
13810                         LIB_VAR=$ac_cv_search_FUNC])
13811           LIBS=$prefix_saved_LIBS
13812
13813         However, in each of the files affected by this change, the LIB_VAR=
13814         initialization was omitted.  Thus, when set in the environment, its
13815         value would propagate into generated Makefiles when FUNC is not found
13816         in LIB_NAME.
13817         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
13818         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13820
13821 2009-10-14  Eric Blake  <ebb9@byu.net>
13822
13823         fchdir: avoid infinite recursion in mingw
13824         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
13825         recursing.
13826
13827         test-stat-time: port to mingw
13828         * tests/test-stat-time.c (force_unlink): Return a value.
13829         (test_ctime) [W32]: Fix compilation error.
13830         (nap): Don't call usleep with too large an argument.  Use
13831         force_unlink.
13832         * doc/pastposix-functions/usleep.texi (usleep): Document the
13833         portability issue.
13834
13835 2009-10-13  Jim Meyering  <meyering@redhat.com>
13836
13837         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
13838         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
13839         * modules/pipe-filter-ii: Likewise.
13840         * modules/sys_socket-tests: Likewise.
13841         * modules/tsearch-tests: Likewise.
13842         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
13843         (check): Depend on it.
13844
13845 2009-10-12  Eric Blake  <ebb9@byu.net>
13846
13847         utimens-tests: port to NFS file systems
13848         * tests/test-utimens.h (test_utimens): Refactor utimecmp
13849         comparisons to avoid spurious failures from timestamp drift
13850         between NFS machines.
13851
13852 2009-10-12  Eric Blake  <ebb9@byu.net>
13853
13854         stat-time-tests: minor cleanups
13855         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
13856         * tests/test-stat-time.c (nap): Separate assignment from call.
13857         Suggested by Paolo Bonzini and Bruno Haible.
13858
13859         sys_stat: guarantee struct timespec
13860         * lib/sys_stat.in.h (includes): Always include <time.h>
13861         * modules/sys_stat (Depends-on): Add time.
13862         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
13863         mode_t permission values.
13864         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
13865         get at subsecond timestamps.
13866
13867 2009-10-10  Eric Blake  <ebb9@byu.net>
13868
13869         futimens: new module
13870         * modules/futimens: New file.
13871         * lib/futimens.c (futimens): Likewise.
13872         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
13873         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
13874         we can work around Linux bugs.
13875         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13876         * modules/sys_stat (Makefile.am): Substitute them.
13877         * lib/sys_stat.in.h (futimens): Declare it.
13878         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13879         * doc/posix-functions/futimens.texi (futimens): Likewise.
13880         * modules/futimens-tests: New test.
13881         * tests/test-futimens.c: Likewise.
13882
13883         utimens: introduce fdutimens
13884         * lib/utimens.h (fdutimens): New prototype.
13885         * lib/utimens.c (gl_futimens): Move guts...
13886         (fdutimens): ...to new interface.
13887         * tests/test-utimens.c (do_fdutimens): Use it.
13888
13889         utimens: add UTIME_NOW and UTIME_OMIT support
13890         * lib/utimens.c (validate_timespec, update_timespec): New helper
13891         functions.
13892         (gl_futimens, lutimens): Use them.
13893         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
13894         stdbool, sys_stat.
13895         (Link): Mention resulting library dependency.
13896         * modules/utimecmp (Link): Likewise.
13897         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
13898         (Makefile.am): Pick up library dependency.
13899         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
13900         definition.
13901         * tests/test-sys_stat.c: Test the definitions.
13902         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
13903         * NEWS: Document library dependency.
13904
13905         utimecmp: support symlink timestamps
13906         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
13907         hashing when possible.  Use pathconf when available.
13908         (SYSCALL_RESOLUTION): Recognize tighter resolution.
13909         * modules/utimecmp (Depends-on): Add lstat.
13910
13911         utimens: add lutimens interface
13912         * lib/utimens.c (lutimens): New function.
13913         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
13914         * lib/utimens.h (lutimens): Declare new interface.
13915         * tests/test-utimens.c (main): Enhance test.
13916         * tests/test-lutimens.h (test_lutimens): New file.
13917         * modules/utimens-tests (Files): Distribute it.
13918         (Depends-on): Add symlink.
13919         (configure.ac): Check for usleep.
13920
13921         utimens: validate futimens usage
13922         * lib/utimens.c (gl_futimens): Require valid fd up front, using
13923         fewer syscalls on failure later on.  Avoid compiler warning on
13924         mingw.
13925         * modules/utimens (Depends-on): Add dup2.
13926
13927         utimens: add test
13928         * modules/utimens-tests: New test.
13929         * tests/test-utimens.h: New file.
13930         * tests/test-futimens.h: Likewise.
13931         * tests/test-utimens.c: Likewise.
13932
13933         doc: mention timestamp portability issues
13934         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
13935         instead.
13936         * doc/posix-functions/utime.texi (utime): Likewise.
13937         * doc/posix-functions/utimes.texi (utimes): Likewise.
13938         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
13939         instead.
13940         * doc/posix-functions/futimens.texi (futimens): Mention utimens
13941         module.
13942         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13943         Mention weakness with symlink timestamps.
13944         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
13945         to utimensat/futimens instead.
13946         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
13947
13948         test-dup2: enhance test
13949         * tests/test-dup2.c (main): Also check AT_FDCWD.
13950
13951         test-stat-time: avoid more spurious failures
13952         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
13953         xfs; and avoid race if the two timestamps cross quantization edge.
13954
13955         relocatable: prefer 'file system' over 'filesystem'
13956         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
13957         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
13958         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
13959         * doc/relocatable.texi (Enabling Relocatability): Likewise.
13960         * lib/relocatable.c (compute_curr_prefix): Likewise.
13961
13962 2009-10-10  Jim Meyering  <meyering@redhat.com>
13963
13964         stat-time-tests: check for the usleep function
13965         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
13966
13967 2009-10-10  Bruno Haible  <bruno@clisp.org>
13968
13969         * modules/xnanosleep: Put the Link section after the Include section.
13970
13971 2009-10-09  Eric Blake  <ebb9@byu.net>
13972
13973         dup2: work around FreeBSD 6.1 bug
13974         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
13975         * doc/posix-functions/dup2.texi (dup2): Document it.
13976         Reported by Nelson H. F. Beebe and Jim Meyering.
13977
13978         test-stat-time: port to buggy NFS clients
13979         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
13980         (test_ctime): Also skip test if mtime and ctime are skewed.
13981
13982         maint: prefer 'file system' over 'filesystem'
13983         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13984         * doc/posix-functions/lstat.texi (lstat): Likewise.
13985         * lib/file-has-acl.c (file_has_acl): Likewise.
13986         * lib/fwriteerror.c [TEST]: Likewise.
13987         * tests/test-areadlink.h (test_areadlink): Likewise.
13988         * tests/test-areadlinkat-with-size.c (main): Likewise.
13989         * tests/test-areadlinkat.c (main): Likewise.
13990         * tests/test-canonicalize-lgpl.c (main): Likewise.
13991         * tests/test-canonicalize.c (main): Likewise.
13992         * tests/test-fstatat.c (main): Likewise.
13993         * tests/test-linkat.c (main): Likewise.
13994         * tests/test-lstat.h (test_lstat_func): Likewise.
13995         * tests/test-mkdir.h (test_mkdir): Likewise.
13996         * tests/test-readlink.h (test_readlink): Likewise.
13997         * tests/test-remove.c (main): Likewise.
13998         * tests/test-rename.h (test_rename): Likewise.
13999         * tests/test-renameat.c (main): Likewise.
14000         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14001         * tests/test-symlink.h (test_symlink): Likewise.
14002         * tests/test-symlinkat.c (main): Likewise.
14003         * tests/test-unlink.h (test_unlink_func): Likewise.
14004         * tests/test-unlinkat.c (main): Likewise.
14005
14006         maint: make realtime library usage explicit
14007         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14008         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14009         * modules/settime (Link): Likewise.
14010         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14011
14012         test-stat-time: speed up execution
14013         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14014         warning on mingw.
14015         (nap): New helper function.
14016         (prepare_test): Use it to reduce sleep time.
14017         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14018         execution.
14019         * modules/stat-time-tests (configure.ac): Check for usleep.
14020
14021 2009-10-09  Jim Meyering  <meyering@redhat.com>
14022
14023         selinux-h: always use getfilecon wrappers
14024         * lib/getfilecon.c: New file.
14025         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14026         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14027         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14028         (fgetfilecon): Provide a stub.
14029         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14030         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14031         file unconditionally.
14032         When <selinux/selinux.h> is found, arrange to use wrappers.
14033         * modules/selinux-h (Files): Add getfilecon.c.
14034         (Makefile.am): Substitute include-next-related bits
14035         into the now-always-generated selinux/selinux.h file.
14036         * doc/glibc-functions/lgetfilecon.texi: New file.
14037         * doc/glibc-functions/fgetfilecon.texi: New file.
14038         * doc/glibc-functions/getfilecon.texi: New file.
14039         * doc/glibc-functions/getfilecon-desc.texi: New file.
14040         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14041         which to pull in the new files.
14042         * MODULES.html.sh (Misc): Add selinux-h.
14043
14044 2009-10-08  Jim Meyering  <meyering@redhat.com>
14045
14046         unistd: fix comment typo
14047         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14048
14049 2009-10-08  Eric Blake  <ebb9@byu.net>
14050
14051         areadlink: use SIZE_MAX consistently
14052         * modules/areadlink (Depends-on): Add stdint.
14053         * modules/areadlink-with-size (Depends-on): Likewise.
14054         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14055         gives NULL; drop sys/types, since unistd gives size_t; and add
14056         stdint for SIZE_MAX.
14057         (SIZE_MAX): Rely on headers.
14058         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14059         and add stdint.
14060         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14061         (SIZE_MAX): Likewise.
14062         (INITIAL_BUF_SIZE): Turn into enum.
14063         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14064
14065 2009-10-08  Jim Meyering  <meyering@redhat.com>
14066
14067         areadlinkat: avoid compilation failure
14068         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14069         Fix typo in comment.
14070
14071 2009-10-07  Eric Blake  <ebb9@byu.net>
14072
14073         areadlinkat-with-size: new module
14074         * modules/areadlinkat-with-size: New module.
14075         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14076         * lib/areadlink.h (areadlinkat): Declare it.
14077         * MODULES.html.sh (File system functions): Mention it.
14078         * modules/areadlinkat-with-size-tests: New test.
14079         * tests/test-areadlinkat-with-size.c: New file.
14080
14081         xreadlinkat: new module
14082         * modules/xreadlinkat: New module.
14083         * lib/xreadlinkat.c (xreadlinkat): New file.
14084         * lib/xreadlink.h (xreadlinkat): Declare it.
14085         * MODULES.html.sh (File system functions): Mention it.
14086
14087         areadlinkat: new module
14088         * lib/at-func.c (FUNC_FAIL): New define.
14089         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14090         * modules/areadlinkat: New module.
14091         * lib/linkat.c (areadlinkat): Move...
14092         * lib/areadlinkat.c (areadlinkat): ...to new file.
14093         * lib/areadlink.h (areadlinkat): Declare it.
14094         * modules/linkat (Depends-on): Add areadlinkat.
14095         * MODULES.html.sh (File system functions): Mention it.
14096         * modules/areadlinkat-tests: New test.
14097         * tests/test-areadlinkat.c: New file.
14098
14099         areadlink, areadlink-with-size: add tests
14100         * modules/areadlink-tests: New test.
14101         * modules/areadlink-with-size-tests: Likewise.
14102         * tests/test-areadlink.h: New file.
14103         * tests/test-areadlink.c: Likewise.
14104         * tests/test-areadlink-with-size.c: Likewise.
14105
14106         maint: minor cleanups
14107         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14108         _UNUSED_PARAMETER_ instead.
14109         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14110         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14111         * modules/linkat-tests (Files): Distribute test-link.h.
14112
14113         openat, utimens: whitespace cleanup
14114         * lib/openat.c: Prefer space throughout, rather than mix of 8
14115         spaces vs. tabs.
14116         * lib/at-func.c: Likewise.
14117         * lib/utimens.c: Likewise.
14118
14119         openat: avoid using wrong fd
14120         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14121         working directory chooses same fd.
14122         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14123
14124         mkdir, mkdirat: fix cygwin 1.5.x bug
14125         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14126         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14127         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14128         bug.
14129         (gl_PREREQ_MKDIR): Delete unused macro.
14130         * modules/mkdir (Files): Track file rename.
14131         (configure.ac): Update macro name.
14132         * modules/openat (Depends-on): Add mkdir.
14133         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14134
14135         mkdir, mkdirat: add tests
14136         * modules/mkdir-tests: New test.
14137         * tests/test-mkdir.h: New file.
14138         * tests/test-mkdir.c: Likewise.
14139         * tests/test-mkdirat.c: Likewise.
14140         * modules/openat-tests (Files): Add new files.
14141         (Makefile.am): Run new test.
14142
14143 2009-10-06  Eric Blake  <ebb9@byu.net>
14144
14145         doc: tweak *at function documentation
14146         * doc/posix-functions/faccessat.texi (faccessat): Mention
14147         known issue with replacement.
14148         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14149         * doc/posix-functions/linkat.texi (linkat): Likewise.
14150         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14151         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14152         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14153         * doc/posix-functions/renameat.texi (renameat): Likewise.
14154         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14155
14156         openat: fix GNU/Hurd bug in unlinkat
14157         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14158         broken.
14159         * doc/posix-functions/unlink.texi (unlink): Document this.
14160         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14161
14162         fdopendir: fix GNU/Hurd bug
14163         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14164         allowing non-directory fds.
14165         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14166         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14167         * modules/dirent (Makefile.am): Substitute it.
14168         * lib/dirent.in.h (fdopendir): Declare replacement.
14169         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14170         * tests/test-fdopendir.c (main): Test something other than
14171         /dev/null, since on Hurd that behaves like a directory.
14172
14173         test-symlink: port to GNU/Hurd
14174         * tests/test-symlink.h (test_symlink): Relax expected errno.
14175
14176         doc: tweak more cygwin information
14177         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14178         now compatible with glibc.
14179         * doc/posix-functions/getopt.texi (getopt): Likewise.
14180
14181         getopt-gnu: add another test
14182         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14183         guarantee behavior relied on by m4.
14184         * tests/test-getopt.c (main): Use it.
14185         * modules/getopt-posix-tests (Depends-on): Add setenv.
14186         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14187
14188         getopt: fix compilation on darwin
14189         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14190         include.
14191         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14192         Reported by Ludovic Courtès.
14193
14194 2009-10-06  Bruno Haible  <bruno@clisp.org>
14195
14196         * modules/size_max (Description): Discourage its use.
14197         Reported by Simon Josefsson.
14198
14199 2009-10-06  Jim Meyering  <meyering@redhat.com>
14200
14201         linkat: avoid compilation failure
14202         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14203
14204 2009-10-05  Eric Blake  <ebb9@byu.net>
14205
14206         linkat: support Linux 2.6.17
14207         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14208         linkat on Linux, but allow cache variable override.
14209         * lib/linkat.c (rpl_linkat): Define override.
14210         * modules/linkat (Depends-on): Add symlinkat.
14211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14212         * modules/unistd (Makefile.am): Substitute it.
14213         * lib/unistd.in.h (linkat): Declare replacement.
14214         Reported by Pádraig Brady.
14215
14216         quotearg: port test to systems with C.UTF-8 locale
14217         * tests/test-quotearg.c (struct result_strings): Add another
14218         member, differentiating between C.ASCII and C.UTF-8 handling.
14219         (compare_strings): Add parameter.
14220         (main): Adjust all callers.
14221
14222         getopt: avoid clash with FreeBSD _getopt_internal
14223         * lib/getopt.in.h (_getopt_internal): Override the name.
14224         * lib/getopt_int.h (includes): Pick up any overrides.
14225         Reported by Reuben Thomas.
14226
14227         hash: allow C89 compilation
14228         * lib/hash.c (check_tuning): Move declaration before statement.
14229         Reported by Reuben Thomas.
14230
14231 2009-10-05  Karl Berry  <karl@gnu.org>
14232
14233         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14234
14235 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14236             Bruno Haible  <bruno@clisp.org>
14237
14238         * lib/uname.c (uname): Use a table-driven algorithm to compute
14239         Windows NT versions.
14240
14241 2009-10-04  Bruno Haible  <bruno@clisp.org>
14242
14243         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14244         program_invocation_short_name.
14245         * modules/progname (configure.ac): Test for presence of
14246         program_invocation_short_name.
14247         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14248
14249 2009-10-04  Bruno Haible  <bruno@clisp.org>
14250
14251         * lib/progname.c (set_program_name): Fix comment.
14252         Reported by Jim Meyering.
14253
14254 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14255             Bruno Haible  <bruno@clisp.org>
14256
14257         * lib/uname.c: Include <string.h>.
14258         (uname): Do only one call to GetVersionEx in the common case.
14259
14260 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14261             Bruno Haible  <bruno@clisp.org>
14262
14263         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14264         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14265         (uname): Add support for Windows CE and various non-x86 CPU types.
14266
14267 2009-10-03  Bruno Haible  <bruno@clisp.org>
14268
14269         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14270         invocation to tests/configure.ac.
14271         Reported by Ian Beckwith <ianb@erislabs.net>.
14272
14273 2009-10-02  Eric Blake  <ebb9@byu.net>
14274
14275         fchdir: avoid compiler warning
14276         * lib/fchdir.c (canonicalize_file_name)
14277         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14278
14279         test-open: support mingw errno values
14280         * tests/test-open.h (test_open): Relax test.
14281         * tests/test-fopen.h (test_fopen): Likewise.
14282         * tests/test-openat-safer.c (main): Likewise.
14283
14284         open: fix opening directory on mingw
14285         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14286
14287         test-open: on GNU/Hurd, /dev/null is a directory
14288         * tests/test-fopen.h (main): Rename...
14289         (test_fopen): ...to this.  Use a guaranteed non-directory when
14290         confirming open behavior on trailing slash.
14291         * tests/test-openat-safer.c (main): Likewise.
14292         * tests/test-open.h (main): Likewise....
14293         (test_open): ...to this.
14294         * tests/test-fopen.c (main): Adjust caller.
14295         * tests/test-fopen-safer.c (main): Likewise.
14296         * tests/test-open.c (main): Likewise.
14297         * tests/test-fcntl-safer.c (main): Likewise.
14298         Reported by Samuel Thibault.
14299
14300         rename, fchdir: don't ignore chdir failure
14301         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14302         * lib/rename.c (rpl_rename) [W32]: Likewise.
14303         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14304         an empty destination directory if source cannot be renamed,
14305         although there is still possibility for failure.
14306         * doc/posix-functions/rename.texi (rename): Document the race.
14307         Reported by Jim Meyering.
14308
14309         maint: cleanup whitespace in recent commits
14310         * lib/rename.c (rpl_rename): Remove tabs.
14311         * tests/test-link.h (test_link): Likewise.
14312         * lib/fchdir.c (get_name): Likewise.
14313         Reported by Jim Meyering.
14314
14315 2009-10-02  Ben Pfaff  <blp@gnu.org>
14316
14317         relocatable-prog-wrapper: Add missing dependency on
14318         double-slash-root.
14319         * modules/relocatable-prog-wrapper: Add dependency.
14320         Reported by Ian Beckwith <ianb@erislabs.net>.
14321
14322 2009-10-02  Eric Blake  <ebb9@byu.net>
14323
14324         renameat: fix Solaris bugs
14325         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14326         needed fixing.
14327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14328         * modules/stdio (Makefile.am): Substitute it.
14329         * lib/stdio.in.h (renameat): Declare replacement.
14330         * lib/renameat.c (rpl_renameat): Implement fix.
14331
14332         renameat: new module
14333         * modules/renameat: New file.
14334         * lib/renameat.c (renameat): Likewise.
14335         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14337         * modules/stdio (Makefile.am): Substitute them.
14338         * lib/stdio.in.h (renameat): Declare it.
14339         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14340         * doc/posix-functions/renameat.texi (renameat): Likewise.
14341         * modules/renameat-tests: New test.
14342         * tests/test-renameat.c: Likewise.
14343
14344         rename: fix mingw bugs
14345         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14346         directory overwrite bugs.
14347
14348         rename: fix another cygwin 1.5 bug
14349         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14350         checks.
14351         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14352         unnecessary cygwin workarounds.  Also work around bug with moving
14353         full directory onto an empty one.
14354         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14355
14356         rename-dest-slash: merge into rename module
14357         * modules/rename-dest-slash (Status): Mark obsolete.
14358         (Depends-on): Add rename.
14359         (Files): Let rename do it all.
14360         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14361         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14362         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14363         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14364         * lib/rename.c (rpl_rename): Update comments.
14365
14366         rename: fix cygwin 1.5.x bugs
14367         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14368         * lib/rename.c (rpl_rename): Work around them.
14369         * modules/rename (Depends-on): Add same-inode.
14370
14371         rename: fix Solaris 10 bug
14372         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14373         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14374         was the only bug.
14375
14376         rename: fix Solaris 9 bug
14377         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14378         on non-directory.  Avoid calling exit.
14379         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14380         strdup.
14381         * modules/rename-tests (Depends-on): Drop lstat.
14382         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14383         (gl_PREREQ_RENAME): Delete unused macro.
14384
14385         rename-dest-slash: fix NetBSD bug
14386         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14387         links.
14388         * modules/rename-dest-slash (Depends-on): Add same-inode.
14389
14390         rename-tests: new test, exposes several platform bugs
14391         * modules/rename-tests: New file.
14392         * tests/test-rename.h: Likewise.
14393         * tests/test-rename.c: Likewise.
14394         * doc/posix-functions/rename.texi (rename): Improve documentation,
14395         including bugs that will eventually be fixed in gnulib.
14396
14397 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14398
14399         * lib/uname.c: Include <stdlib.h>
14400         (uname): Assume version info is available.
14401
14402 2009-10-02  Jim Meyering  <meyering@redhat.com>
14403
14404         gnu-web-doc-update: correct --help output
14405         * build-aux/gnu-web-doc-update: Make --help output relevant.
14406
14407         gnu-web-doc-update: add standard options
14408         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14409
14410         gnu-web-doc-update: New module.
14411         Use this script to automatically update the on-line web documentation
14412         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14413         * modules/gnu-web-doc-update: New file, from coreutils.
14414         * build-aux/gnu-web-doc-update: New script.
14415
14416 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14417
14418         link: LoadLibrary is not needed.
14419         * lib/link.c: Use GetModuleHandle.
14420
14421 2009-10-01  Eric Blake  <ebb9@byu.net>
14422
14423         getopt: bump serial number
14424         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14425         change.
14426
14427         tests: tighten link, rmdir, and remove tests
14428         * tests/test-link.h (includes): No need to use <config.h> here.
14429         Clean up if directory hard link was created, otherwise test for
14430         trailing '.'.
14431         * tests/test-linkat.c (main): Simplify.
14432         * tests/test-remove.c (main): Enhance test for trailing '.'.
14433         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14434
14435 2009-10-01  Jim Meyering  <meyering@redhat.com>
14436
14437         maint.mk: requiring "make major" was annoying, for a "minor" release.
14438         What is intended is "stable", to contrast with alpha and beta,
14439         so require "make stable", not "make major".
14440         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14441         (get_tool_versions): Likewise.
14442         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14443
14444 2009-09-30  Ben Pfaff  <blp@gnu.org>
14445
14446         Fix broken build of replacement for Windows tmpfile().
14447         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14448         flags argument added along with the 'mkostemp' module.
14449
14450 2009-09-28  Bruno Haible  <bruno@clisp.org>
14451
14452         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14453         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14454         to 'remove_elt'.
14455         (gl_list_remove): Update.
14456         * lib/gl_list.c (gl_list_remove): Update.
14457         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14458         to 'remove_elt'.
14459         (gl_oset_remove): Update.
14460         * lib/gl_list.c (gl_oset_remove): Update.
14461         Reported by Eric Blake.
14462
14463 2009-09-28  Eric Blake  <ebb9@byu.net>
14464
14465         doc: mention yet more cygwin 1.7 status
14466         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14467         cygwin.
14468         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14469         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14470
14471         argp: fix test failure
14472         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14473         that are not upper-case.  Pass correct range to tolower.
14474
14475 2009-09-27  Jim Meyering  <meyering@redhat.com>
14476
14477         test-yesno: work around sparc-dash here-document infelicity
14478         Without this change, the literal \177 byte in a here document
14479         would make dash 0.5.5.1-3 access uninitialized memory.
14480         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14481         Instead, use a marker, "@", and filter through tr to create the desired
14482         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14483
14484 2009-09-27  Bruno Haible  <bruno@clisp.org>
14485
14486         Disable untested support for new flavours of ACLs on AIX.
14487         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14488         progress.
14489         * lib/set-mode-acl.c (qset_acl): Likewise.
14490
14491 2008-12-07  Bruno Haible  <bruno@clisp.org>
14492
14493         Add support for new flavours of ACLs on AIX. (Untested.)
14494         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14495         (file_has_acl): Add support for newer AIX.
14496         * lib/set-mode-acl.c (qset_acl): Likewise.
14497         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14498         Rainer Tammer <tammer@tammer.net>.
14499
14500 2009-09-26  Eric Blake  <ebb9@byu.net>
14501
14502         argp: fix compilation of getopt
14503         * lib/getopt.in.h (includes): Use different guard than glibc.
14504         Reported by Sergey Poznyakoff.
14505
14506         doc: mention more cygwin 1.7 status
14507         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14508         bug.
14509         * doc/posix-functions/execl.texi (execl): Likewise.
14510         * doc/posix-functions/execle.texi (execle): Likewise.
14511         * doc/posix-functions/execlp.texi (execlp): Likewise.
14512         * doc/posix-functions/execv.texi (execv): Likewise.
14513         * doc/posix-functions/execve.texi (execve): Likewise.
14514         * doc/posix-functions/execvp.texi (execvp): Likewise.
14515         * doc/glibc-functions/canonicalize_file_name.texi
14516         (canonicalize_file_name): Cygwin 1.7 now provides this.
14517         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14518         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14519         on AT_SYMLINK_NOFOLLOW.
14520
14521 2009-09-24  Eric Blake  <ebb9@byu.net>
14522
14523         test-linkat: make test more robust
14524         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14525
14526         getopt: fix inclusion guards for cygwin
14527         * modules/getopt-posix (Depends-on): Add include-next.
14528         (Makefile.am): Substitute more items in replacement header.
14529         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14530         <getopt.h>.
14531         * lib/getopt.in.h (includes): Use split inclusion guard, and
14532         prefer <getopt.h> over include <unistd.h> when one is present.
14533         (option): Also override name of 'struct option'.
14534
14535         same-inode: revert prior change; it is not yet ready
14536         * NEWS: Undo mention of this change.
14537         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14538         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14539         * lib/cycle-check.c (cycle_check): Likewise.
14540         * lib/same.c (same_name): Likewise.
14541         * lib/at-func2.c (at_func2): Likewise.
14542
14543 2009-09-23  Eric Blake  <ebb9@byu.net>
14544
14545         linkat: new module
14546         * modules/linkat: New file.
14547         * lib/at-func2.c (at_func2): Likewise.
14548         * lib/linkat.c (linkat): Likewise.
14549         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14550         * lib/openat-priv.h (at_func2): Add declaration.
14551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14552         * modules/unistd (Makefile.am): Substitute them.
14553         * lib/unistd.in.h (linkat): Declare it.
14554         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14555         * doc/posix-functions/linkat.texi (linkat): Likewise.
14556         * doc/posix-functions/link.texi (link): Tweak wording.
14557         * tests/test-link.c (main): Move guts...
14558         * tests/test-link.h (test_link): ...into new file.
14559         * modules/linkat-tests: New test.
14560         * tests/test-linkat.c: Likewise.
14561         * modules/link-tests (Files): Ship new file.
14562         (Depends-on): Add stdbool.
14563
14564         dirname: add library-safe mdir_name
14565         * lib/dirname.h (mdir_name): New prototype.
14566         * lib/dirname.c (dir_name): Move guts...
14567         (mdir_name): ...to new function that avoids xalloc_die.
14568
14569         fchdir: another mingw fix
14570         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14571         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14572         on mingw (where it has not yet been ported), and make it optional
14573         elsewhere.
14574         (_gl_register_fd): Use it.
14575
14576         same-inode: make SAME_INODE tri-state, to port to mingw
14577         * NEWS: Mention this change.
14578         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14579         st_ino always being 0.
14580         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14581         * lib/cycle-check.c (cycle_check): Likewise.
14582         * lib/same.c (same_name): Likewise.
14583
14584         lstat: avoid mingw compilation error
14585         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14586         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14587         lstat ourselves.
14588         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14589         was adequate.
14590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14591         the checks for lstat.
14592         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14593
14594         link: fix test failure on Solaris 9
14595         * lib/link.c (rpl_link): Don't assume link will catch bogus
14596         trailing slash on source.
14597
14598         test-symlinkat: enhance test
14599         * tests/test-readlink.c (main): Move guts...
14600         * tests/test-readlink.h (test_readlink): ...into new file.
14601         * tests/test-symlink.c (main): Move guts...
14602         * tests/test-symlink.h (test_symlink): ...into new file.
14603         * tests/test-symlinkat.c (main): Use new files for further
14604         coverage.
14605         (do_symlink, do_readlink): New helper functions.
14606         * modules/symlink-tests (Files): Ship new file.
14607         (Depends-on): Add stdbool.
14608         * modules/readlink-tests (Files): Ship new file.
14609         (Depends-on): Add stdbool.
14610         * modules/symlinkat-tests (Files): Use new files.
14611
14612 2009-09-23  Eric Blake  <ebb9@byu.net>
14613
14614         readlink: document portability issue with symlink length
14615         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14616         systems have bogus st_size on symlinks, and mention the
14617         areadlink-with-size module.
14618         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14619         * doc/posix-functions/readlink.texi (readlink): Mention the
14620         areadlink module, and ERANGE failure.
14621         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14622         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14623
14624         readlink: fix Solaris 9 bug with trailing slash
14625         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
14626         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
14627         * doc/posix-functions/readlink.texi (readlink): Document this.
14628         * modules/readlink-tests: New test.
14629         * tests/test-readlink.c: Likewise.
14630
14631         readlink: fix cygwin 1.5.x bug with return type
14632         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
14633         * lib/unistd.in.h (readlink): Use ssize_t.
14634         * lib/readlink.c (readlink): Likewise.
14635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14636         * modules/unistd (Makefile.am): Substitute it.
14637         * lib/unistd.in.h (readlink): Declare replacement.
14638         * doc/posix-functions/readlink.texi (readlink): Document this.
14639
14640         symlink: use throughout gnulib
14641         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
14642         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
14643         symlink is not used.
14644         * modules/symlinkat (Depends-on): Add symlink.
14645         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14646         * modules/canonicalize-tests (Depends-on): Likewise.
14647         * modules/lstat-tests (Depends-on): Likewise.
14648         * modules/openat-tests (Depends-on): Likewise.
14649         * modules/remove-tests (Depends-on): Likewise.
14650         * modules/rmdir-tests (Depends-on): Likewise.
14651         * modules/unlink-tests (Depends-on): Likewise.
14652         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
14653         * tests/test-canonicalize.c (symlink): Likewise.
14654         * tests/test-fstatat.c (symlink): Likewise.
14655         * tests/test-lstat.c (symlink): Likewise.
14656         * tests/test-remove.c (symlink): Likewise.
14657         * tests/test-rmdir.c (symlink): Likewise.
14658         * tests/test-unlink.c (symlink): Likewise.
14659         * tests/test-unlinkat.c (symlink): Likewise.
14660
14661         symlink: new module, for Solaris 9 bug
14662         * modules/symlink: New file.
14663         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14664         * lib/symlink.c: Likewise.
14665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14666         * modules/unistd (Makefile.am): Substitute them.
14667         * lib/unistd.in.h (symlink): Declare replacement.
14668         * MODULES.html.sh (File system functions): Mention it.
14669         * doc/posix-functions/symlink.texi (symlink): Likewise.
14670         * modules/symlink-tests: New test.
14671         * tests/test-symlink.c: Likewise.
14672
14673 2009-09-23  Bruno Haible  <bruno@clisp.org>
14674
14675         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
14676         when needed.
14677         Test case: gnulib-tool --import --with-tests atexit inttypes.
14678         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
14679
14680 2009-09-23  Bruno Haible  <bruno@clisp.org>
14681
14682         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
14683         subcommand, not in a subshell.
14684
14685 2009-09-22  Eric Blake  <ebb9@byu.net>
14686
14687         unistd: sort replacement declarations
14688         * lib/unistd.in.h: Sort declarations.
14689
14690         open, openat: minor optimization
14691         * lib/open.c (open): If open succeeded, len is non-zero.
14692         * lib/openat.c (rpl_openat): Likewise.
14693
14694         link-follow: ensure correct result
14695         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
14696         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
14697         distinguish between possible failures.
14698
14699 2009-09-21  Eric Blake  <ebb9@byu.net>
14700
14701         fts: avoid compiler warning
14702         * lib/fts.c (dirent_inode_sort_may_be_useful)
14703         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
14704
14705 2009-09-19  Bruno Haible  <bruno@clisp.org>
14706
14707         * lib/progreloc.c (canonicalize_file_name): New declaration.
14708
14709 2009-09-19  Eric Blake  <ebb9@byu.net>
14710
14711         link: fix quoting
14712         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
14713
14714         openat: fix openat bugs on Solaris 9
14715         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
14716         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
14717         * modules/openat (Depends-on): Add open.
14718         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
14719         * modules/fcntl-h (Makefile.am): Substitute it.
14720         * lib/fcntl.in.h (openat): Declare replacement.
14721         * doc/posix-functions/openat.texi (openat): Document this.
14722
14723         openat: move fstatat and unlinkat into correct files
14724         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
14725         compiled.
14726         * lib/openat.c (fstatat, unlinkat): Move...
14727         * lib/fstatat.c (fstatat): ...into correct files.
14728         * lib/unlinkat.c (unlinkat): Likewise.
14729
14730         openat: fix unlinkat bugs on Solaris 9
14731         * lib/unlinkat.c (unlinkat): New file.
14732         * modules/openat (Depends-on): Add unlink.
14733         (Files): Distribute it.
14734         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
14735         trailing slash behavior is broken.
14736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14737         * modules/unistd (Makefile.am): Substitute it.
14738         * lib/unistd.in.h (unlinkat): Declare replacement.
14739         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
14740
14741         openat: fix fstatat bugs on Solaris 9
14742         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
14743         stat.
14744         * doc/posix-functions/fstatat.texi (fstatat): Document this.
14745
14746         test-unlinkat: enhance test, to expose Solaris 9 bug
14747         * tests/test-unlink.c (main): Factor guts...
14748         * tests/test-unlink.h (test_rmdir_func): ...into new file.
14749         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
14750         * tests/test-rmdir.c (main): Adjust caller.
14751         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
14752         (unlinker): New helper function.
14753         (rmdirat): Enhance check.
14754         * modules/rmdir-tests (Depends-on): Add stdbool.
14755         * modules/unlink-tests (Depends-on): Likewise.
14756         (Files): Add test-unlink.h.
14757         * modules/openat-tests (Files): Likewise.
14758         (Depends-on): Add unlinkdir.
14759
14760         test-fstatat: new test, to expose Solaris 9 bugs
14761         * tests/test-stat.c (main): Factor guts...
14762         * tests/test-stat.h (test_stat_func): ...into new file.
14763         * tests/test-lstat.c (main): Factor guts...
14764         * tests/test-lstat.h (test_lstat_func): ...into new file.
14765         * tests/test-fstatat.c: New file.
14766         * modules/stat-tests (Files): Add test-stat.h.
14767         * modules/lstat-tests (Files): Add test-lstat.h.
14768         (Depends-on): Add stdbool.
14769         * modules/openat-tests (Depends-on): Add pathmax.
14770         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
14771         (Makefile.am): Run new test.
14772
14773         remove: new module, for mingw and Solaris 9 bugs
14774         * modules/remove: New file.
14775         * lib/remove.c: Likewise.
14776         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
14777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14778         * modules/stdio (Makefile.am): Use them.
14779         * lib/stdio.in.h (remove): Declare replacement.
14780         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14781         * doc/posix-functions/remove.texi (remove): Likewise.
14782         * modules/remove-tests: New test.
14783         * tests/test-remove.c: Likewise.
14784
14785         unlink: new module, for Solaris 9 bug
14786         * modules/unlink: New file.
14787         * lib/unlink.c: Likewise.
14788         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14790         * modules/unistd (Makefile.am): Use them.
14791         * lib/unistd.in.h (stat): Declare replacement.
14792         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14793         * doc/posix-functions/unlink.texi (unlink): Likewise.
14794         * modules/unlink-tests: New test.
14795         * tests/test-unlink.c: Likewise.
14796
14797         lstat: fix Solaris 9 bug
14798         * lib/lstat.c (lstat): Also check for trailing slash on
14799         non-symlink, non-directories.  Use stat module to simplify logic.
14800         * doc/posix-functions/lstat.texi (lstat): Document it.
14801         * modules/lstat-tests (Depends-on): Add errno, same-inode.
14802         (configure.ac): Check for symlink.
14803         * tests/test-lstat.c (main): Add more tests.
14804
14805         stat: add as dependency to other modules
14806         * modules/chown (Depends-on): Add stat.
14807         * modules/euidaccess (Depends-on): Likewise.
14808         * modules/fchdir (Depends-on): Likewise.
14809         * modules/isdir (Depends-on): Likewise.
14810         * modules/link (Depends-on): Likewise.
14811         * modules/lstat (Depends-on): Likewise.
14812         * modules/mkdir-p (Depends-on): Likewise.
14813         * modules/modechange (Depends-on): Likewise.
14814         * modules/open (Depends-on): Likewise.
14815         * modules/readlink (Depends-on): Likewise.
14816         * modules/same (Depends-on): Likewise.
14817
14818         stat: fix Solaris 9 bug
14819         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
14820         slash.
14821         * lib/stat.c (rpl_stat): Work around it.
14822         * doc/posix-functions/stat.texi (stat): Update documentation.
14823
14824         stat: new module, for mingw bug
14825         * modules/stat: New file.
14826         * lib/stat.c: Likewise.
14827         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14828         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14829         * modules/sys_stat (Makefile.am): Use them.
14830         * lib/sys_stat.in.h (stat): Declare replacement.
14831         * lib/openat.c (fstatat): Deal with lstat and stat being function
14832         macros.
14833         * modules/openat (Depends-on): Add inline.
14834         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14835         * doc/posix-functions/stat.texi (stat): Likewise.
14836         * modules/stat-tests: New test.
14837         * tests/test-stat.c: Likewise.
14838
14839 2009-09-19  Jim Meyering  <meyering@redhat.com>
14840
14841         syntax-check: detect unnecessary inclusion of canonicalize.h
14842         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
14843
14844 2009-09-19  Eric Blake  <ebb9@byu.net>
14845
14846         canonicalize-lgpl: adjust clients to use correct header
14847         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14848         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
14849         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
14850         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
14851         * lib/progreloc.c (includes): Likewise.
14852
14853 2009-09-19  Jim Meyering  <meyering@redhat.com>
14854
14855         test-posixtm.c: correct a comment
14856         * tests/test-posixtm.c: Correct first-line comment.
14857         Spotted by Eric Blake.
14858
14859 2009-09-16  Jim Meyering  <meyering@redhat.com>
14860
14861         posixtm-tests: make T const-correct; add a test case
14862         * tests/test-posixtm.c (T): Declare const.
14863         Add a test for -(2^31+1).
14864         Remove useless can-succeed-only-in-2002 test.
14865
14866         posixtm-tests: adjust the sole failing test
14867         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
14868         expected output matches what mktime now produces.  Cross-checked via
14869         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
14870
14871         posixtm: move #ifdef'd tests into a new module
14872         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
14873         * tests/test-posixtm.c: ... this new file.
14874         * modules/posixtm-tests: New module.
14875
14876 2009-09-19  Eric Blake  <ebb9@byu.net>
14877
14878         openat: simplify use of at-func.c
14879         * lib/at-func.c (includes): Include prerequisites here, to
14880         simplify requirements on client files.
14881         * lib/openat-priv.h: Add double-inclusion guard.
14882         * lib/faccessat.c (includes): Simplify.
14883         * lib/fchmodat.c (includes): Likewise.
14884         * lib/fchownat.c (includes): Likewise.
14885         * lib/mkdirat.c (includes): Likewise.
14886         * lib/mkfifoat.c (includes): Likewise.
14887         * lib/symlinkat.c (includes): Likewise.
14888
14889         openat: allow return of fd 0
14890         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
14891         * modules/save-cwd (Depends-on): Replace fcntl-safer with
14892         unistd-safer.
14893         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
14894         <fcntl.h>; this module does not leak fds.
14895         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
14896         must be allowed to return 0, leaving openat_safer to add the
14897         safety.
14898         (openat_permissive): Avoid writing to just-opened fd 2 if
14899         restoring the current directory fails.
14900         * lib/openat-die.c (openat_restore_fail): Add comment.
14901         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
14902         (save_cwd): Guarantee safe fd, but without use of open_safer.
14903         * tests/test-openat.c: New test.
14904         * modules/openat-tests (Files, Makefile.am): Distribute and build
14905         new file.
14906
14907         relocatable-prog-wrapper: fix build
14908         * modules/relocatable-prog-wrapper (Files): Update name of
14909         canonicalize m4 file, broken on 2009-09-17.
14910         Reported by emad hajjar <aleppos@hotmail.com>.
14911
14912 2009-09-19  Bruno Haible  <bruno@clisp.org>
14913
14914         * lib/safe-alloc.h: Use the standard header with GPL copyright.
14915         * lib/safe-alloc.c: Likewise.
14916         Reported by Ian Beckwith <ianb@erislabs.net>.
14917
14918 2009-09-18  Bruno Haible  <bruno@clisp.org>
14919
14920         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
14921         Reported by <erobles@sensacd.com.mx>.
14922
14923 2009-09-17  Eric Blake  <ebb9@byu.net>
14924
14925         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
14926         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
14927         slashes when checking if last component is missing.
14928         * tests/test-canonicalize.c (main): Test this.
14929
14930         canonicalize, canonicalize-lgpl: honor // if distinct from /
14931         * modules/canonicalize (Files): Add double-slash-root.m4.
14932         * modules/canonicalize-lgpl (Files): Likewise.
14933         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14934         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
14935         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
14936         fallback definition.
14937         (canonicalize_filename_mode): Use it to protect //.
14938         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
14939         (__realpath): Likewise.
14940         * tests/test-canonicalize.c (main): Test this.
14941         * tests/test-canonicalize-lgpl.c (main): Likewise.
14942         * modules/canonicalize-tests (Depends-on): Add same-inode.
14943         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14944
14945         canonicalize-lgpl: fix glibc bug with trailing slash
14946         * m4/canonicalize-lgpl.m4: Move contents...
14947         * m4/canonicalize.m4: ...here.
14948         (gl_CANONICALIZE_LGPL): Factor realpath check...
14949         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
14950         glibc 2.3.5 bug, fixed 2005-04-27.
14951         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
14952         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
14953         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
14954         * modules/canonicalize-lgpl (Files): Manage file rename.
14955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14956         * modules/stdlib (Makefile.am): Substitute witness.
14957         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
14958         is needed.
14959         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
14960         replacement is required.
14961         * lib/canonicalize.c (canonicalize_file_name): Likewise.
14962         * doc/glibc-functions/canonicalize_file_name.texi
14963         (canonicalize_file_name): Document this.
14964         * doc/posix-functions/realpath.texi (realpath): Likewise.
14965
14966         canonicalize-lgpl: reject non-directory with trailing slash
14967         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
14968         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
14969         catches failures in glibc 2.3.5.
14970         * tests/test-canonicalize.c (main): Likewise.
14971
14972         canonicalize-lgpl: use native realpath if it works
14973         * lib/canonicalize-lgpl.c (realpath): Guard with
14974         FUNC_REALPATH_WORKS.
14975         * lib/stdlib.in.h (realpath): Make declaration optional based on
14976         HAVE_REALPATH.
14977         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
14978         native realpath works.
14979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14980         * modules/stdlib (Makefile.am): Substitute witness.
14981
14982         canonicalize, canonicalize-lgpl: use <stdlib.h>
14983         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
14984         (Include): Mention <stdlib.h>.
14985         (configure.ac): Mention functions we provide.
14986         * modules/canonicalize (configure.ac): Likewise.
14987         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
14988         realpath if canonicalize_file_name is missing.
14989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
14990         * modules/stdlib (Makefile.am): Substitute witnesses.
14991         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
14992         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
14993         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
14994         * NEWS: Document this.
14995         * doc/glibc-functions/canonicalize_file_name.texi
14996         (canonicalize_file_name): Likewise.
14997         * doc/posix-functions/realpath.texi (realpath): Likewise.
14998         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
14999
15000         test-canonicalize: consolidate into single C program
15001         * tests/test-canonicalize.sh: Delete; move setup into...
15002         * tests/test-canonicalize.c (main): ...the program, making it
15003         easier to run in debugger.  Add some tests.
15004         * modules/canonicalize-tests (Files): Remove unused file.
15005         (Depends-on): Add progname.
15006         (configure.ac, Makefile.am): Simplify.
15007
15008         test-canonicalize-lgpl: consolidate into single C program
15009         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15010         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15011         easier to run in debugger.  Add some tests.
15012         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15013         (configure.ac, Makefile.am): Simplify.
15014
15015         canonicalize: avoid resolvepath
15016         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15017         unnecessary checks.
15018         * lib/canonicalize.c (includes): Simplify.
15019         (canonicalize_file_name): Drop resolvepath implementation.
15020         * modules/canonicalize (Depends-on): Drop filenamecat.
15021
15022         canonicalize: don't lose errno
15023         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15024         over calls to free.
15025
15026         canonicalize: simplify errno handling
15027         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15028         assignment.
15029
15030         canonicalize, canonicalize-lgpl: update module dependencies
15031         * modules/canonicalize (Depends-on): Add extensions, lstat,
15032         pathmax, stdlib.
15033         (Files): Drop pathmax.h.
15034         (configure.ac): Adjust macro name.
15035         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15036         lstat, stdlib, sys_stat.
15037         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15038         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15039         extensions.
15040         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15041         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15042         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15043         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15044         declaration, if available.
15045         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15046         we can rely on the readlink module.
15047         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15048         (includes): Use <unistd.h> unconditionally.
15049
15050 2009-09-17  Eric Blake  <ebb9@byu.net>
15051
15052         maint: make Include sections of modules consistent
15053         * modules/alloca: Use only header name; no need to list #include.
15054         * modules/alloca-opt: Likewise.
15055         * modules/arpa_inet: Likewise.
15056         * modules/canon-host: Likewise.
15057         * modules/configmake: Likewise.
15058         * modules/dirent: Likewise.
15059         * modules/eealloc: Likewise.
15060         * modules/environ: Likewise.
15061         * modules/fchdir: Likewise.
15062         * modules/fcntl: Likewise.
15063         * modules/fcntl-h: Likewise.
15064         * modules/gethrxtime: Likewise.
15065         * modules/gettime: Likewise.
15066         * modules/ignore-value: Likewise.
15067         * modules/inet_ntop: Likewise.
15068         * modules/inet_pton: Likewise.
15069         * modules/inttypes: Likewise.
15070         * modules/isnand-nolibm: Likewise.
15071         * modules/isnanf-nolibm: Likewise.
15072         * modules/mbchar: Likewise.
15073         * modules/mbfile: Likewise.
15074         * modules/mbiter: Likewise.
15075         * modules/mbuiter: Likewise.
15076         * modules/netdb: Likewise.
15077         * modules/netinet_in: Likewise.
15078         * modules/nproc: Likewise.
15079         * modules/pagealign_alloc: Likewise.
15080         * modules/poll: Likewise.
15081         * modules/printf-frexp: Likewise.
15082         * modules/pthread: Likewise.
15083         * modules/putenv: Likewise.
15084         * modules/random_r: Likewise.
15085         * modules/relocatable-prog: Likewise.
15086         * modules/search: Likewise.
15087         * modules/select: Likewise.
15088         * modules/selinux-h: Likewise.
15089         * modules/settime: Likewise.
15090         * modules/signal: Likewise.
15091         * modules/size_max: Likewise.
15092         * modules/socklen: Likewise.
15093         * modules/ssize_t: Likewise.
15094         * modules/stdarg: Likewise.
15095         * modules/stdbool: Likewise.
15096         * modules/stddef: Likewise.
15097         * modules/stdint: Likewise.
15098         * modules/stdio: Likewise.
15099         * modules/stdlib: Likewise.
15100         * modules/string: Likewise.
15101         * modules/strings: Likewise.
15102         * modules/sys_file: Likewise.
15103         * modules/sys_ioctl: Likewise.
15104         * modules/sys_select: Likewise.
15105         * modules/sys_socket: Likewise.
15106         * modules/sys_stat: Likewise.
15107         * modules/sys_time: Likewise.
15108         * modules/sys_times: Likewise.
15109         * modules/sys_utsname: Likewise.
15110         * modules/sys_wait: Likewise.
15111         * modules/sysexits: Likewise.
15112         * modules/time: Likewise.
15113         * modules/times: Likewise.
15114         * modules/tmpfile: Likewise.
15115         * modules/trim: Likewise.
15116         * modules/unistd: Likewise.
15117         * modules/wchar: Likewise.
15118         * modules/wctype: Likewise.
15119
15120 2009-09-17  Bruno Haible  <bruno@clisp.org>
15121
15122         Make getdate.y compile on QNX and NetBSD 5 / i386.
15123         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15124         TIME_T_FITS_IN_LONG_INT.
15125         * lib/getdate.y (long_time_t): New type.
15126         (relative_time): Change type of 'seconds' field to long_time_t.
15127         (get_date): Update types of local variables. Check against overflow
15128         during conversion from long_time_t to time_t.
15129         Reported by Matt Kraai <kraai@ftbfs.org>
15130         and Hasso Tepper <hasso@netbsd.org>.
15131
15132 2009-09-17  Bruno Haible  <bruno@clisp.org>
15133
15134         * modules/COPYING: Update copyright years.
15135         * modules/README: Likeiwse.
15136         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15137         Reported by Ian Beckwith <ianb@erislabs.net>.
15138
15139 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15140
15141         * users.txt: Update references for gnuit package.
15142
15143 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15144
15145         * m4/getdelim.m4: Fix typo in copyright line.
15146
15147 2009-09-17  Bruno Haible  <bruno@clisp.org>
15148
15149         * lib/atoll.c: Use the standard header with GPL copyright.
15150         * lib/argz.in.h: Likewise.
15151         * lib/glob.c: Likewise.
15152         * lib/glob-libc.h: Likewise.
15153         * lib/random_r.c: Likewise.
15154         * lib/siglist.h: Likewise.
15155         * lib/strsignal.c: Likewise.
15156         Reported by Ian Beckwith <ianb@erislabs.net>.
15157
15158 2009-09-17  Eric Blake  <ebb9@byu.net>
15159
15160         rmdir: ensure correct dependency order
15161         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15162
15163 2009-09-17  Bruno Haible  <bruno@clisp.org>
15164
15165         Disable assertion that fails on NetBSD 5 / i386.
15166         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15167         Reported by Sam Steingold <sds@gnu.org>
15168         and Hasso Tepper <hasso@netbsd.org>.
15169
15170 2009-09-16  Eric Blake  <ebb9@byu.net>
15171
15172         unlinkdir: port to mingw
15173         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15174         on which no one can unlink a directory.
15175
15176         stdlib: sort witness names
15177         * modules/stdlib (Makefile.am): Sort replacements.
15178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15179         * lib/stdlib.in.h: Likewise.
15180
15181         parse-duration-tests: avoid link failure
15182         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15183         LIBINTL.
15184         Reported by Tom G. Christensen.
15185
15186         openat-tests: ensure unlinkat behaves like rmdir
15187         * tests/test-rmdir.c (main): Factor guts...
15188         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15189         * modules/rmdir-tests (Files): Ship new file.
15190         * modules/openat-tests: New test.
15191         * tests/test-unlinkat.c: Likewise.
15192
15193         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15194         * modules/rmdir-errno (Status, Notice): Now obsolete.
15195
15196         rmdir: work around cygwin 1.5.x and mingw bugs
15197         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15198         * lib/rmdir.c (rmdir): Work around it.
15199         * modules/rmdir (Status, Notice): No longer obsolete.
15200         (Files): Add dos.m4.
15201         (Depends-on): Add unistd.
15202         (configure.ac): Set witnesses.
15203         (License): Relax to LGPLv2+.
15204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15205         * modules/unistd (Makefile.am): Substitute witnesses.
15206         * lib/unistd.in.h (rmdir): Declare replacement.
15207         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15208         * modules/rmdir-tests: New tests.
15209         * tests/test-rmdir.c: Likewise.
15210
15211 2009-09-15  Eric Blake  <ebb9@byu.net>
15212
15213         fchdir: improve use of replacement functions
15214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15216         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15217         REPLACE_CLOSEDIR.
15218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15219         * modules/sys_stat (Makefile.am): Substitute correct witness.
15220         * modules/dirent (Makefile.am): Likewise.
15221         * modules/unistd (Makefile.am): Likewise.
15222         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15223         * lib/unistd.in.h (dup): Likewise.
15224         * lib/sys_stat.in.h (fstat): Likewise.
15225
15226         maint: ignore gnulib-tool temp files
15227         * .gitignore: Ignore files created during gnulib-tool --test.
15228
15229 2009-09-13  Jim Meyering  <meyering@redhat.com>
15230
15231         posixtm: don't reject a time that specify "60" as the number of seconds
15232         * lib/posixtm.c (posixtime): The code to reject invalid dates
15233         would also reject a time specified with the .60 suffix.
15234         But POSIX allows that, in order to accommodate leap seconds.
15235         So don't reject it.
15236         (main): Adjust tests accordingly.
15237         * modules/posixtm (Depends-on): Add stpcpy.
15238
15239 2009-09-11  Jim Meyering  <meyering@redhat.com>
15240
15241         announce-gen: include [$release_type] in emitted Subject:
15242         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15243         e.g., [stable] in the emitted Subject: line.
15244
15245 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15246
15247         Remove obsolete macros from several modules.
15248         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15249         obsolete Autoconf macros with their modern counterparts.
15250         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15251         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15253         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15254         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15255         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15257         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15258         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15259         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15260         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15261         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15262         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15263         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15264         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15265         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15266         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15267         * m4/time_r.m4 (gl_TIME_R): Likewise.
15268         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15269         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15270         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15271
15272         Fix copyright header in build-aux scripts.
15273         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15274         recommendation.
15275         * build-aux/ncftpput-ftp: Likewise.
15276         * build-aux/update-copyright: Likewise.
15277
15278 2009-09-09  Eric Blake  <ebb9@byu.net>
15279
15280         test-link: allow Linux choice of errno
15281         * tests/test-link.c (main): Relax test for alternate error.
15282
15283         strndup: fix improper m4 caching
15284         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15285         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15286         (gl_PREREQ_STRNDUP): Delete.
15287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15288         * modules/string (Makefile.am): Substitute it.
15289         * lib/string.in.h (strndup): Modernize prototype.
15290
15291         getcwd: port to mingw
15292         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15293         different from the POSIX assumptions made throughout the getcwd
15294         module; fortunately, the mingw getcwd does not need replacement.
15295         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15296         * modules/getcwd-tests: New test.
15297         * tests/test-getcwd.c: Likewise.
15298
15299         link: fix platform bugs
15300         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15301         * lib/link.c (link): Work around them.  Fix related mingw bug.
15302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15303         * modules/unistd (Makefile.am): Substitute it.
15304         * lib/unistd.in.h (link): Declare replacement.
15305         * doc/posix-functions/link.texi (link): Document this.
15306         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15307
15308         test-link: consolidate into single C program, test more cases
15309         * tests/test-link.sh: Delete.
15310         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15311         at least Cygwin and Solaris.
15312         * modules/link-tests (Files): Remove unused file.
15313         (Depends-on): Add errno, sys_stat.
15314         (Makefile.am): Simplify.
15315
15316 2009-09-08  Bruno Haible  <bruno@clisp.org>
15317
15318         Work around towlower, towupper bug on mingw.
15319         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15320         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15321         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15322         * doc/posix-functions/towupper.texi: Likewise.
15323         Reported by Eric Blake.
15324
15325 2009-09-08  Jim Meyering  <meyering@redhat.com>
15326
15327         build: don't try to run autoheader if we don't use it
15328         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15329         is not used in configure.ac.
15330
15331 2009-09-08  Eric Blake  <ebb9@byu.net>
15332
15333         euidaccess: fix compilation error
15334         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15335
15336         rawmemchr: relax license
15337         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15338         okay.
15339         Reported by Jim Meyering.
15340
15341         mkfifoat: new module
15342         * modules/mkfifoat: New file.
15343         * lib/mkfifoat.c: Likewise.
15344         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15345         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15346         * modules/sys_stat (Makefile.am): Use them.
15347         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15348         * MODULES.html.sh (File system functions): Mention module.
15349         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15350         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15351         * modules/mkfifoat-tests: New test.
15352         * tests/test-mkfifoat.c: Likewise.
15353
15354         strchrnul: relax license
15355         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15356         okay.
15357         Reported by Jim Meyering.
15358
15359 2009-09-08  Eric Blake  <ebb9@byu.net>
15360
15361         fstatat: fix compilation on Solaris
15362         * lib/fstatat.c (includes): Add fcntl.h.
15363         Reported by Pádraig Brady.
15364
15365 2009-09-07  Eric Blake  <ebb9@byu.net>
15366
15367         rename: modernize replacement
15368         * modules/rename (Depends-on): Add stdio.
15369         (configure.ac): Declare witness.
15370         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15371         stdio take care of replacement.
15372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15373         * modules/stdio (Makefile.am): Substitute them.
15374         * lib/stdio.in.h (rename): Declare replacement.
15375         * lib/rename.c (includes): Allow cross-compilation to non-windows
15376         machines.
15377         * doc/posix-functions/rename.texi (rename): Improve
15378         documentation.
15379
15380         stdio: sort witness names
15381         * modules/stdio (Makefile.am): Sort replacements.
15382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15383         * lib/stdio.in.h: Likewise.
15384
15385         getcwd: minor cleanups
15386         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15387         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15388
15389         openat: provide more convenience names
15390         * modules/faccessat (configure.ac): Add C witness.
15391         * lib/unistd.in.h (readlinkat): Fix typo.
15392         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15393         convenience wrappers.
15394         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15395         wrappers in syntax checks.
15396
15397 2009-09-06  Eric Blake  <ebb9@byu.net>
15398
15399         doc: fix comments in recent patches
15400         * lib/faccessat.c: Mention correct function.
15401         * lib/fchmodat.c: Likewise.
15402         * lib/fchownat.c: Likewise.
15403         * lib/symlinkat.c: Likewise.
15404         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15405         constants.
15406
15407         faccessat, symlinkat: continue cleanup of previous patch
15408         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15409         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15410         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15412         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15413         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15414         set.
15415
15416 2009-09-06  Bruno Haible  <bruno@clisp.org>
15417
15418         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15419         (fstatat): Declare if GNULIB_FSTATAT is set.
15420         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15421         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15422         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15423         * modules/fcntl-h (Files): Remove m4/openat.m4.
15424         * modules/sys_stat (Files): Remove m4/openat.m4.
15425         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15426         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15427         * modules/unistd (Files): Remove m4/openat.m4.
15428         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15429         GNULIB_OPENAT.
15430         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15431         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15432         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15433         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15434         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15435         gl_OPENAT_DEFAULTS.
15436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15437         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15438         Don't require gl_OPENAT_DEFAULTS.
15439         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15440         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15441         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15442         (gl_OPENAT_DEFAULTS): Remove macro.
15443
15444 2009-09-06  Bruno Haible  <bruno@clisp.org>
15445
15446         * modules/openat (configure.ac): Remove unneeded witness.
15447
15448 2009-09-06  Bruno Haible  <bruno@clisp.org>
15449
15450         Set errno to ENOSYS when a function is entirely unsupported.
15451         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15452         EOPNOTSUPP.
15453         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15454         * modules/chown (Depends-on): Remove errno.
15455
15456 2009-09-06  Bruno Haible  <bruno@clisp.org>
15457
15458         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15459
15460 2009-09-06  Bruno Haible  <bruno@clisp.org>
15461
15462         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15463
15464 2009-09-06  Ben Pfaff  <blp@gnu.org>
15465             Bruno Haible  <bruno@clisp.org>
15466
15467         Work around a glibc bug in strtok_r.
15468         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15469         Undefine if UNDEFINE_STRTOK_R is set.
15470         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15472         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15473         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15474         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15475         UNDEFINE_STRTOK_R.
15476         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15477
15478 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15479
15480         exclude: minor fix
15481         * lib/exclude.c: Include wctype.h
15482
15483 2009-09-06  Akim Demaille  <demaille@gostai.com>
15484
15485         bootstrap: improve error message
15486         * build-aux/bootstrap (find_tool): Upon failure, report the list
15487         of candidates.
15488         Honor the initial value of the envvar.
15489
15490 2009-09-05  Eric Blake  <ebb9@byu.net>
15491
15492         symlinkat: new module
15493         * modules/symlinkat: New file.
15494         * lib/symlinkat.c: Likewise.
15495         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15497         * modules/unistd (Makefile.am): Use them.
15498         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15499         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15500         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15501         * MODULES.html.sh (File system functions): Mention module.
15502         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15503         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15504         * modules/symlinkat-tests: New test.
15505         * tests/test-symlinkat.c: Likewise.
15506
15507         test-openat-safer: add more checks
15508         * tests/test-openat-safer.c (main): Check more code paths.
15509
15510 2009-09-05  Jim Meyering  <meyering@redhat.com>
15511
15512         syntax-check: detect unnecessary inclusion of openat.h
15513         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15514
15515 2009-09-05  Bruno Haible  <bruno@clisp.org>
15516
15517         Support towlower, towupper.
15518         * doc/posix-functions/towlower.texi: Mention module wctype.
15519         * doc/posix-functions/towupper.texi: Likewise.
15520         * lib/wctype.in.h (towlower, towupper): New functions.
15521         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15522         (ASSERT): New macro.
15523         (e): New variable.
15524         (main): Test also towlower, towupper. Test WEOF argument.
15525         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15526
15527 2009-09-05  Bruno Haible  <bruno@clisp.org>
15528
15529         Fix conversion behaviour when the input is invalid.
15530         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15531         mark occurring in first pass of indirect conversion.
15532         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15533         input.
15534         Found by clang's static analyzer.
15535
15536 2009-09-05  Bruno Haible  <bruno@clisp.org>
15537
15538         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15539         where direct conversion is possible.
15540
15541 2009-09-04  Eric Blake  <ebb9@byu.net>
15542
15543         openat: fail with ENOENT on empty name
15544         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15545         buffer.
15546
15547         link-follow: fix logic bug in prior patch
15548         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15549         reversed sense of yes and no in prior patch.  Avoid confusing
15550         compilation failure with desired semantics.
15551
15552         link-follow: accomodate mingw and cross-compilation
15553         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15554         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15555         cross-compilation results to -1, to make linkat easier to
15556         implement when cross-compiling.  Trivially support mingw.
15557         * modules/link-follow (configure.ac): Call new name.
15558         * NEWS: Mention this.
15559
15560 2009-09-03  Eric Blake  <ebb9@byu.net>
15561
15562         faccessat: compile replacement
15563         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15564         needed.
15565
15566         fts: fix compilation error
15567         * lib/fts.c (includes): Re-add "openat.h", for
15568         openat_needs_fchdir.
15569
15570         faccessat: new module
15571         * modules/faccessat: New file.
15572         * lib/faccessat.c: Likewise.
15573         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15575         * modules/unistd (Makefile.am): Use it.
15576         * lib/unistd.in.h (faccessat): Declare it.
15577         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15578         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15579         * MODULES.html.sh (File system functions): Mention it.
15580         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15581         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15582
15583         euidaccess: prefer POSIX over non-standard implementation
15584         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15585         * lib/euidaccess.c (euidaccess): Use it if available.
15586
15587         openat: make template easier to use
15588         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15589         AT_FUNC_F2 to be undefined.
15590         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15591         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15592         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15593         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15594         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15595         Likewise.
15596         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15597         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15598         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15599         Likewise.
15600
15601         openat: declare in POSIX headers
15602         * NEWS: Mention this.
15603         * modules/openat (configure.ac): Declare witnesses.
15604         (Depends-on): Add fcntl-h, sys_stat, unistd.
15605         (Include): Mention correct headers.
15606         * modules/fcntl-h (Depends-on): Add link-warning.
15607         (Files): Add openat.m4.
15608         (Makefile.am): Substitute witnesses.
15609         * modules/sys_stat (Files, Makefile.am): Likewise.
15610         * modules/unistd (Files, Makefile.am): Likewise.
15611         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15612         (gl_OPENAT_DEFAULTS): New macro.
15613         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15615         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15616         (SYS_STAT_H): Remove unused variable.
15617         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15618         * lib/fcntl--.h (includes): Remove unneeded header.
15619         * lib/openat-safer.c (includes): Likewise.
15620         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15621         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15622         appropriate headers.
15623         (__OPENAT_PREFIX): Delete.
15624         * lib/fcntl.in.h (openat): Provide declaration.
15625         (AT_FDCWD): Fix Solaris bug.
15626         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
15627         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
15628         * lib/fchmodat.c (includes):  Adjust to find declaration.
15629         * lib/fchownat.c (includes): Likewise.
15630         * lib/mkdirat.c (includes): Likewise.
15631         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
15632         still visible.
15633
15634 2009-09-02  Eric Blake  <ebb9@byu.net>
15635
15636         errno: use consistently
15637         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
15638         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
15639         * lib/canonicalize.c (ELOOP): Likewise.
15640         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
15641         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
15642         * lib/lchown.c (EOPNOTSUPP): Likewise.
15643         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
15644         * lib/savewd.c (ESTALE): Likewise.
15645         * lib/settime.c (ENOSYS): Likewise.
15646         * lib/utimens.c (ENOSYS): Likewise.
15647         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
15648         * lib/chdir-safer.c (ELOOP): Likewise.
15649         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
15650         * modules/c-stack (Depends-on): Add errno.
15651         * modules/canonicalize (Depends-on): Likewise.
15652         * modules/chdir-safer (Depends-on): Likewise.
15653         * modules/fdopendir (Depends-on): Likewise.
15654         * modules/inet_ntop (Depends-on): Likewise.
15655         * modules/inet_pton (Depends-on): Likewise.
15656         * modules/lchown (Depends-on): Likewise.
15657         * modules/openat (Depends-on): Likewise.
15658         * modules/savewd (Depends-on): Likewise.
15659         * modules/settime (Depends-on): Likewise.
15660         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
15661
15662         fts: avoid leaking fds
15663         * modules/fts (Depends-on): Add cloexec.
15664         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
15665         flag.
15666
15667         fts: make directory fds more robust
15668         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
15669         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
15670
15671         backupfile, chdir-long, fts, savedir: make safer
15672         * lib/backupfile.c (includes): Use "dirent--.h", since
15673         numbered_backup can write to stderr during readdir.
15674         * lib/savedir.c (includes): Likewise.
15675         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
15676         emulation can write to stderr on failure.
15677         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
15678         * lib/getcwd.c: Document why opendir_safer is unused.
15679         * lib/glob.c: Likewise.
15680         * lib/scandir.c: Likewise.
15681         * lib/openat-proc.c: Likewise, for open_safer.
15682         * modules/backupfile (Depends-on): Add dirent-safer.
15683         * modules/savedir (Depends-on): Likewise.
15684         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
15685         * modules/chdir-long (Depends-on): Add openat-safer.
15686
15687         openat-safer: new module
15688         * modules/openat-safer: New file.
15689         * lib/openat-safer.c: Likewise.
15690         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
15691         * lib/fcntl-safer.h (openat_safer): Declare.
15692         * lib/fcntl--.h (openat): Override.
15693         * MODULES.html.sh (File descriptor based I/O): Mention it.
15694         * lib/openat.h: Add double-inclusion guards.
15695         * lib/openat.c (includes): Only include "fcntl-safer.h", not
15696         "fcntl--.h", so we can implement openat.
15697         * modules/openat-safer-tests: New test.
15698         * tests/test-openat-safer.c: New file.
15699
15700         dirent-safer: new module
15701         * modules/dirent-safer: New file.
15702         * lib/dirent--.h: Likewise.
15703         * lib/dirent-safer.h: Likewise.
15704         * lib/opendir-safer.c: Likewise.
15705         * m4/dirent-safer.m4: Likewise.
15706         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
15707         * modules/dirent-safer-tests: New test.
15708         * tests/test-dirent-safer.c: New file.
15709         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
15710
15711         fdopendir: optimize on mingw
15712         * lib/unistd.in.h (_gl_directory_name): New prototype.
15713         * lib/fchdir.c (_gl_directory_name): Implement it.
15714         (fchdir): Use it to simplify implementation.
15715         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
15716         fchdir, when available, to avoid calling [f]chdir().
15717
15718         fdopendir: split into its own module
15719         * lib/openat.c (fdopendir): Move...
15720         * lib/fdopendir.c: ...into new file.
15721         * modules/fdopendir: New module.
15722         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
15723         * modules/openat (Depends-on): Add fdopendir.
15724         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
15725         fdopendir here.
15726         * modules/savedir (Depends-on): Only need fdopendir, not full
15727         openat.
15728         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
15729         * lib/openat.h (fdopendir): Drop prototype.
15730         * lib/dirent.in.h (fdopendir): Provide prototype.
15731         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
15732         * modules/dirent (Makefile.am): Substitute them.
15733         * MODULES.html.sh (File system functions): Mention it.
15734         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
15735         * modules/fdopendir-tests: New file.
15736         * tests/test-fdopendir.c: Likewise.
15737
15738         fchdir: use more consistent macro convention
15739         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
15740         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
15741         REPLACE_FCHDIR, rather than relying on config.h macros.
15742         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
15743         inside a single make-time REPLACE_FCHDIR block, rather than using
15744         the config.h FCHDIR_REPLACEMENT.
15745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
15746         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
15747         Manage fstat replacement.
15748         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
15749         REPLACE_FCHDIR.
15750         * modules/sys_stat (Files): Add m4/unistd_h.m4.
15751         (Makefile.am): Substitute REPLACE_FCHDIR.
15752         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
15753         FCHDIR_REPLACEMENT.
15754         * lib/dup-safer.c (dup_safer): Likewise.
15755         * lib/dup2.c (rpl_dup2): Likewise.
15756         * lib/dup3.c (rpl_dup3): Likewise.
15757         * lib/open.c (rpl_open): Likewise.
15758
15759         fchdir: simplify error handling, and support dup3
15760         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
15761         stdbool, malloc-posix, realloc-posix.
15762         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
15763         (ensure_dirs_slot): Return false on allocation failure.
15764         (rpl_dup2): Delete.
15765         (_gl_register_dup): New function.
15766         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
15767         (_gl_register_fd): Close fd on allocation failure.
15768         * lib/fcntl.in.h (_gl_register_fd): Update signature.
15769         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
15770         prototype.
15771         (rpl_dup2_fchdir): Delete prototype.
15772         * lib/open.c (open): Update caller.
15773         * lib/dup2.c (dup2): Track fchdir metadata.
15774         * lib/dup3.c (dup3): Likewise.
15775         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
15776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
15777
15778 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15779
15780         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
15781         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
15782         don't pass arguments to AC_OUTPUT.
15783
15784 2009-09-02  Bruno Haible  <bruno@clisp.org>
15785
15786         * modules/mkdtemp (License): Relicense under LGPLv2+.
15787         Reported by Paolo Bonzini.
15788
15789 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15790
15791         Replace uses of obsolete autoconf macros in Jim's modules.
15792         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
15793         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
15794         can evoke a warning from autoconf when run with -Wobsolete
15795         enabled.  They were declared obsolete for good reasons (see
15796         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
15797         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
15798         should not continue using the deprecated macros.
15799         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
15800         obsolete Autoconf macros with modern counterparts.
15801         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15802         * m4/dos.m4 (gl_AC_DOS): Likewise.
15803         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
15804         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15805         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
15806         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
15807         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15808         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
15809         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
15810         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
15811         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
15812         Likewise.
15813         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15814         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15815         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
15816         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
15817         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15818         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15819
15820 2009-09-01  Eric Blake  <ebb9@byu.net>
15821
15822         fchdir: fix off-by-one bug in previous patch
15823         * lib/fchdir.c (rpl_fstat): Use correct bounds.
15824         (_gl_unregister_fd): Delete useless if.
15825
15826 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
15827
15828         maint.mk: sort the list of syntax-check rules
15829         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
15830         easier to get a sense of progress when the rules are run sequentially
15831         and take a long time.
15832
15833 2009-09-01  Simon Josefsson  <simon@josefsson.org>
15834
15835         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
15836         * modules/netinet_in: Likewise.
15837         * modules/sys_file: Likewise.
15838         * modules/sys_ioctl: Likewise.
15839         * modules/sys_select: Likewise.
15840         * modules/sys_socket: Likewise.
15841         * modules/sys_stat: Likewise.
15842         * modules/sys_time: Likewise.
15843         * modules/sys_times: Likewise.
15844         * modules/sys_utsname: Likewise.
15845         * modules/sys_wait: Likewise.
15846
15847 2009-09-01  Jim Meyering  <meyering@redhat.com>
15848
15849         fts: help ensure that return values are not ignored
15850         * lib/fts_.h (__GNUC_PREREQ): Define.
15851         (__attribute_warn_unused_result__): Define.
15852         (fts_children, fts_close, fts_open, fts_read): Declare with
15853         __attribute_warn_unused_result__.
15854
15855         fts: fts_close now fails also when closing a dir file descriptor fails
15856         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
15857         and propagate to caller, along with errno.
15858
15859         announce-gen: correct formatting in --help output
15860         * build-aux/announce-gen (usage): Move the one-line description in
15861         --help output "up", to where it belongs, just after Usage:.
15862
15863 2009-08-31  Eric Blake  <ebb9@byu.net>
15864
15865         fchdir: port to mingw
15866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
15867         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
15868         opened, then use a substitute.
15869         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
15870         replacement.
15871         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
15872         (_gl_register_fd): No need to check stat if open already filters
15873         all directories.
15874         (fchdir): Fix error condition to match POSIX.
15875         * modules/fchdir (Depends-on): Add sys_stat.
15876         * doc/posix-functions/open.texi (open): Document the limitation.
15877         * modules/fchdir-tests: New file.
15878         * tests/test-fchdir.c: Likewise.
15879
15880         canonicalize: allow cross-testing from cygwin to mingw
15881         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
15882         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
15883         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
15884         Likewise.
15885         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
15886         target does not support symlinks.
15887         * tests/test-canonicalize-lgpl.sh: Likewise.
15888
15889         chown: avoid compilation warning on mingw
15890         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
15891         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
15892         mingw.
15893         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15894         * modules/chown (Depends-on): Add errno.
15895
15896 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15897
15898         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
15899         command.
15900
15901 2009-08-31  Jim Meyering  <meyering@redhat.com>
15902
15903         canonicalize: remove useless initialization
15904         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
15905         initialization of local, "end".
15906
15907 2009-08-30  Bruno Haible  <bruno@clisp.org>
15908
15909         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
15910         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
15911         ENOSYS.
15912
15913 2009-08-30  Bruno Haible  <bruno@clisp.org>
15914
15915         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
15916         /usr/xpg4/bin/tr when it exists.
15917         * tests/test-pipe-filter-gi1.sh: Likewise.
15918
15919 2009-08-30  Bruno Haible  <bruno@clisp.org>
15920
15921         Work around deficient /usr/bin/id program on Solaris.
15922         * tests/test-file-has-acl.sh (ID): New variable.
15923         * tests/test-set-mode-acl.sh (ID): Likewise.
15924         * tests/test-copy-acl.sh (ID): Likewise.
15925         * tests/test-copy-file.sh (ID): Likewise.
15926
15927 2009-08-30  Bruno Haible  <bruno@clisp.org>
15928
15929         New module 'xstriconveh'.
15930         * lib/xstriconveh.h: New file.
15931         * lib/xstriconveh.c: New file.
15932         * modules/xstriconveh: New file.
15933
15934 2009-08-30  Bruno Haible  <bruno@clisp.org>
15935
15936         Make it easier to use mem_cd_iconveh.
15937         * lib/striconveh.h (iconveh_t): New type.
15938         (iconveh_open, iconveh_close): New declarations.
15939         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15940         with a single 'const iconveh_t *' argument.
15941         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
15942         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15943         with a single 'const iconveh_t *' argument.
15944         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
15945         * tests/test-striconveh.c (main): Update.
15946         * NEWS: Mention the change.
15947
15948 2009-08-30  Bruno Haible  <bruno@clisp.org>
15949
15950         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
15951         problem.
15952
15953 2009-08-30  Bruno Haible  <bruno@clisp.org>
15954
15955         Work around iconv_open problem on Solaris.
15956         * lib/iconv_open-solaris.gperf: New file.
15957         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
15958         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
15959         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
15960         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
15961         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
15962         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
15963
15964 2009-08-29  Jim Meyering  <meyering@redhat.com>
15965
15966         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
15967         * top/maint.mk (cvs-check): Remove target; it was just an alias
15968         to the better-named vc-diff-check.
15969         (maintainer-distcheck): Remove rule.  It was used only from
15970         the (alpha/beta/major) target, and all of its commands but one
15971         were coreutils-specific.
15972         (vc-dist): Remove rule.
15973         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
15974         Run vc-diff-check, not vc-dist.
15975         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
15976
15977 2009-08-27  Bruno Haible  <bruno@clisp.org>
15978
15979         * tests/test-bitrotate.c (main): Remove test that uses a shift count
15980         of 0.
15981
15982 2009-08-27  Bruno Haible  <bruno@clisp.org>
15983
15984         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
15985         compilers.
15986         * doc/func.texi: Document the SunPRO C bug.
15987
15988 2009-08-27  Bruno Haible  <bruno@clisp.org>
15989
15990         Fix link error on Solaris.
15991         * tests/test-parse-duration.c (xstrdup): Remove function.
15992
15993 2009-08-26  Pádraig Brady  <P@draigbrady.com>
15994
15995         ignore-value: handle pointer types, too
15996         * lib/ignore-value.h (__attribute__): Remove definition.
15997         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
15998         of a more concise and more-often effective "(void) i" statement.
15999         (ignore_ptr): New function to suppress warnings from functions that
16000         return pointers, and to make it explicit that one function doesn't
16001         handle all cases.
16002
16003 2009-08-25  Bruno Haible  <bruno@clisp.org>
16004
16005         dup2: work around a Linux bug.
16006         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16007         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16008         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16009         Reported by Simon Josefsson.
16010
16011 2009-08-25  Jim Meyering  <meyering@redhat.com>
16012
16013         libguestfs uses gnulib
16014         * users.txt: Add libguestfs.
16015
16016 2009-08-24  Eric Blake  <ebb9@byu.net>
16017
16018         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16019         * lib/pipe2.c (includes): Add binary-io.h.
16020         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16021
16022 2009-08-24  Bruno Haible  <bruno@clisp.org>
16023
16024         Tolerate declared but missing accept4 syscall.
16025         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16026         available.
16027         * lib/sys_socket.in.h (accept4): If the function is already present,
16028         override it.
16029         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16030         * modules/accept4 (Makefile.am): Compile accept4.c always.
16031         Reported by Paolo Bonzini and Eric Blake.
16032
16033 2009-08-23  Bruno Haible  <bruno@clisp.org>
16034
16035         New module 'accept4'.
16036         * lib/sys_socket.in.h (accept4): New declaration.
16037         * lib/accept4.c: New file.
16038         * m4/accept4.m4: New file.
16039         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16040         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16041         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16042         HAVE_ACCEPT4.
16043         * modules/accept4: New file.
16044         * doc/glibc-functions/accept4.texi: Mention the new module.
16045
16046 2009-08-24  Jim Meyering  <meyering@redhat.com>
16047
16048         progname: also set global program_invocation_name, when possible
16049         Before this change, a libtool-enabled program that calls glibc's
16050         error function would report the program name as
16051         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16052         * modules/progname (configure.ac): Check for a declaration of
16053         program_invocation_name.
16054         * lib/progname.c:  Include <errno.h>.
16055         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16056         Set program_invocation_name.
16057
16058 2009-08-23  Bruno Haible  <bruno@clisp.org>
16059
16060         * lib/dup3.c: Include <string.h>.
16061
16062 2009-08-23  Bruno Haible  <bruno@clisp.org>
16063
16064         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16065         * lib/pipe2.c (pipe2): Likewise.
16066         Suggested by Eric Blake.
16067
16068 2009-08-23  Bruno Haible  <bruno@clisp.org>
16069
16070         Tolerate declared but missing dup3 syscall.
16071         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16072         * lib/unistd.in.h (dup3): If the function is already present,
16073         override it.
16074         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16075         * modules/dup3 (Makefile.am): Compile dup3.c always.
16076         Reported by Paolo Bonzini.
16077
16078 2009-08-23  Bruno Haible  <bruno@clisp.org>
16079
16080         Tolerate declared but missing pipe2 syscall.
16081         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16082         available.
16083         * lib/unistd.in.h (pipe2): If the function is already present,
16084         override it.
16085         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16086         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16087         Reported by Paolo Bonzini.
16088
16089 2009-08-23  Bruno Haible  <bruno@clisp.org>
16090
16091         * lib/pipe2.c (pipe2): Move #ifs inside function.
16092
16093 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16094
16095         quotearg: document limitations of quote_these_too
16096         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16097         those limitations are created.
16098         * lib/quotearg.h (set_char_quoting): Document that digits and
16099         letters that are special after backslash are not permitted.
16100         (quotearg_char): Cross-reference set_char_quoting documentation.
16101
16102 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16103
16104         quotearg: implement custom_quoting_style
16105         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16106         right_quote fields.
16107         (set_custom_quoting): New public function.
16108         (quotearg_buffer_restyled): Add left_quote and right_quote
16109         arguments, handle them very much like locale quoting, and update
16110         all uses.
16111         (quotearg_n_custom): New public function.
16112         (quotearg_n_custom_mem): New public function.
16113         (quotearg_custom): New public function.
16114         (quotearg_custom_mem): New public function.
16115         * lib/quotearg.h: Prototype and document new public functions.
16116         (enum quoting_style): For escape_quoting_style and
16117         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16118         ignored even though they're otherwise like c_quoting_style.
16119         Add custom_quoting_style member and document with comparison to
16120         clocale_quoting_style.
16121         * tests/test-quotearg.c (custom_quotes): New array.
16122         (custom_results): New array.
16123         (main): Extend to test custom quoting.
16124
16125 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16126
16127         quotearg: fix right quote escaping when it's in quote_these_too
16128         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16129         quote, be sure to prepend only one backslash.
16130         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16131         (main): Test it.
16132
16133 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16134
16135         quotearg-tests: test escaping of embedded locale quotes
16136         * tests/test-quotearg.c (struct result_strings): Add member for
16137         new input.
16138         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16139         (inputs): Add new input.
16140         (results_g): Add expected results.
16141         (flag_results): Likewise.
16142         (locale_results): Likewise.
16143         (compare_strings): Check those.
16144
16145 2009-08-23  Bruno Haible  <bruno@clisp.org>
16146
16147         Tests for module 'dup3'.
16148         * modules/dup3-tests: New file.
16149         * tests/test-dup3.c: New file.
16150
16151         New module 'dup3'.
16152         * lib/unistd.in.h (dup3): New declaration.
16153         * lib/dup3.c: New file.
16154         * m4/dup3.m4: New file.
16155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16156         HAVE_DUP3.
16157         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16158         * modules/dup3: New file.
16159         * doc/glibc-functions/dup3.texi: Mention the new module.
16160
16161 2009-08-23  Bruno Haible  <bruno@clisp.org>
16162
16163         Tweak the dup2 test.
16164         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16165         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16166         the test file is still empty. Fix argument order of lseek.
16167
16168 2009-08-23  Bruno Haible  <bruno@clisp.org>
16169
16170         Avoid test link errors when the modules getopt-gnu, gettext are used.
16171         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16172         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16173
16174 2009-08-23  Bruno Haible  <bruno@clisp.org>
16175
16176         Fix getdtablesize() on mingw.
16177         * lib/getdtablesize.c (getdtablesize): Implement differently.
16178         * lib/unistd.in.h (getdtablesize): Improve comment.
16179
16180 2009-08-23  Bruno Haible  <bruno@clisp.org>
16181
16182         New module 'mkostemp'.
16183         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16184         * lib/stdlib.in.h (mksotemp): New declaration.
16185         * lib/mkostemp.c: New file, from glibc with modifications.
16186         * lib/tempname.h (GT_FILE): Remove outdated comment.
16187         (gen_tempname): Add flags argument.
16188         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16189         (__GT_FILE): Map to 1.
16190         (small_open, large_open): Remove macros.
16191         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16192         * lib/mkstemp.c (mkstemp): Update.
16193         * lib/mkdtemp.c (mkdtemp): Likewise.
16194         * m4/mkostemp.m4: New file.
16195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16196         HAVE_MKOSTEMP.
16197         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16198         HAVE_MKOSTEMP.
16199         * modules/mkostemp: New file, based on modules/mkstemp.
16200         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16201         * NEWS: Mention the change.
16202
16203 2009-08-23  Bruno Haible  <bruno@clisp.org>
16204
16205         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16206         Reported by Eric Blake.
16207
16208 2009-08-23  Bruno Haible  <bruno@clisp.org>
16209
16210         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16211         Reported by Eric Blake.
16212
16213 2009-08-23  Bruno Haible  <bruno@clisp.org>
16214
16215         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16216         * modules/pipe2 (Depends-on): Likewise.
16217
16218 2009-08-23  Eric Blake  <ebb9@byu.net>
16219
16220         fcntl-h: add O_TTY_INIT support
16221         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16222         * tests/test-fcntl-h.c (o): Test it.
16223         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16224
16225         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16226         * modules/fcntl: Move <fcntl.h> header replacement...
16227         * modules/fcntl-h: ...to new name, so as not to collide with
16228         like-named function.
16229         * tests/test-fcntl.c: Rename...
16230         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16231         * modules/fcntl-tests: Rename...
16232         * modules/fcntl-h-tests: ...to this.  Update test file name.
16233         * modules/chdir-long (Depends-on): Update clients.
16234         * modules/chdir-safer (Depends-on): Likewise.
16235         * modules/fcntl-safer (Depends-on): Likewise.
16236         * modules/fts (Depends-on): Likewise.
16237         * modules/mkancesdirs (Depends-on): Likewise.
16238         * modules/mkdir-p (Depends-on): Likewise.
16239         * modules/open (Depends-on): Likewise.
16240         * modules/savewd (Depends-on): Likewise.
16241         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16242         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16243
16244 2009-08-22  Bruno Haible  <bruno@clisp.org>
16245
16246         * modules/binary-io (License): Relicense under LGPL.
16247         * modules/pipe2 (License): Likewise.
16248
16249 2009-08-22  Bruno Haible  <bruno@clisp.org>
16250
16251         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16252         return value.
16253         * lib/pipe-filter-gi.c (filter_init): Likewise.
16254         Reported by Eric Blake.
16255
16256 2009-08-22  Bruno Haible  <bruno@clisp.org>
16257
16258         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16259         * modules/pipe (Depends-on): Add pipe2.
16260
16261 2009-08-22  Bruno Haible  <bruno@clisp.org>
16262
16263         Tests for module 'pipe2'.
16264         * modules/pipe2-tests: New file.
16265         * tests/test-pipe2.c: New file.
16266
16267         New module 'pipe2'.
16268         * lib/unistd.in.h (pipe2): New declaration.
16269         * lib/pipe2.c: New file.
16270         * m4/pipe2.m4: New file.
16271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16272         HAVE_PIPE2.
16273         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16274         * modules/pipe2: New file.
16275         * doc/glibc-functions/pipe2.texi: Mention the new module.
16276
16277 2009-08-22  Bruno Haible  <bruno@clisp.org>
16278
16279         Reference some new glibc functions.
16280         * doc/glibc-functions/accept4.texi: New file.
16281         * doc/glibc-functions/dup3.texi: New file.
16282         * doc/glibc-functions/mkostemp.texi: New file.
16283         * doc/glibc-functions/pipe2.texi: New file.
16284         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16285         (Glibc sys/socket.h): Refer to accept4.
16286         (Glibc unistd.h): Refer to dup3, pipe2.
16287         Reported by Eric Blake.
16288
16289 2009-08-22  Jim Meyering  <meyering@redhat.com>
16290             Bruno Haible  <bruno@clisp.org>
16291
16292         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16293         This makes it so packages using automake-1.11's silent-rules option
16294         can print e.g., a single "GEN    configmake.h" line, rather than
16295         the 30+ statements that perform the job.  If you want to see the
16296         actual commands, you can still run "make V=1".
16297         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16298         so that make output is abbreviated when those variables are defined
16299         appropriately.
16300         * modules/argz: Likewise.
16301         * modules/arpa_inet: Likewise.
16302         * modules/byteswap: Likewise.
16303         * modules/configmake: Likewise.
16304         * modules/dirent: Likewise.
16305         * modules/errno: Likewise.
16306         * modules/fcntl: Likewise.
16307         * modules/float: Likewise.
16308         * modules/fnmatch: Likewise.
16309         * modules/getopt-posix: Likewise.
16310         * modules/glob: Likewise.
16311         * modules/iconv_open: Likewise.
16312         * modules/inttypes: Likewise.
16313         * modules/localcharset: Likewise.
16314         * modules/locale: Likewise.
16315         * modules/math: Likewise.
16316         * modules/netdb: Likewise.
16317         * modules/netinet_in: Likewise.
16318         * modules/poll: Likewise.
16319         * modules/posix_spawnp-tests: Likewise.
16320         * modules/sched: Likewise.
16321         * modules/search: Likewise.
16322         * modules/selinux-h: Likewise.
16323         * modules/signal: Likewise.
16324         * modules/spawn: Likewise.
16325         * modules/stdarg: Likewise.
16326         * modules/stdbool: Likewise.
16327         * modules/stddef: Likewise.
16328         * modules/stdint: Likewise.
16329         * modules/stdio: Likewise.
16330         * modules/stdlib: Likewise.
16331         * modules/string: Likewise.
16332         * modules/strings: Likewise.
16333         * modules/sys_file: Likewise.
16334         * modules/sys_ioctl: Likewise.
16335         * modules/sys_select: Likewise.
16336         * modules/sys_socket: Likewise.
16337         * modules/sys_stat: Likewise.
16338         * modules/sys_time: Likewise.
16339         * modules/sys_times: Likewise.
16340         * modules/sys_utsname: Likewise.
16341         * modules/sys_wait: Likewise.
16342         * modules/sysexits: Likewise.
16343         * modules/time: Likewise.
16344         * modules/unistd: Likewise.
16345         * modules/wchar: Likewise.
16346         * modules/wctype: Likewise.
16347
16348 2009-08-22  Jim Meyering  <meyering@redhat.com>
16349
16350         announce-gen: detect write failure
16351         * build-aux/announce-gen: Add Coda at end.
16352         Remove equivalent-but-more-verbose block at top.
16353
16354 2009-08-19  Akim Demaille  <demaille@gostai.com>
16355
16356         bootstrap: --help to stdout.
16357         * bootstrap (usage): Don't send --help to stderr.
16358         Use a here doc instead of a long string.
16359
16360 2009-08-21  Eric Blake  <ebb9@byu.net>
16361
16362         test-popen-safer: split from test-popen
16363         * tests/test-popen.c (main): Move...
16364         * tests/test-popen.h: ...into new file.
16365         * tests/test-popen-safer2.c: New file.
16366         * modules/popen-tests (Files): Add test-popen.h.
16367         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16368         Suggested by Bruno Haible.
16369
16370         test-fcntl-safer: split from test-open
16371         * tests/test-open.c (main): Move...
16372         * tests/test-open.h: ...into new file.
16373         * tests/test-fcntl-safer.c: New file.
16374         * modules/open-tests (Files): Add test-open.h.
16375         * modules/fcntl-safer-tests: New file.
16376         Suggested by Bruno Haible.
16377
16378         test-fopen-safer: split from test-fopen
16379         * tests/test-fopen.c (main): Move...
16380         * tests/test-fopen.h: ...into new file.
16381         * tests/test-fopen-safer.c: New file.
16382         * modules/fopen-tests (Files): Add test-fopen.h.
16383         * modules/fopen-safer-tests: New file.
16384         Suggested by Bruno Haible.
16385
16386 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16387
16388         popen-safer: test O_CLOEXEC at run-time.
16389         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16390
16391 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16392
16393         fcntl: move more flags to the header
16394         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16395         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16396         * lib/fcntl.in.h: Do both things here.
16397
16398 2009-08-21  Jim Meyering  <meyering@redhat.com>
16399
16400         consistently remove $@-t before redirecting to it
16401         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16402         * modules/alloca-opt: Likewise.
16403         * modules/byteswap: Likewise.
16404         * modules/fnmatch: Likewise.
16405         * modules/getopt-posix: Likewise.
16406         * modules/glob: Likewise.
16407         * modules/poll: Likewise.
16408         * modules/posix_spawnp-tests: Likewise.
16409         * modules/sys_socket: Likewise.
16410         * modules/sysexits: Likewise.
16411
16412 2009-08-21  Eric Blake  <ebb9@byu.net>
16413
16414         popen: simplify access to original popen
16415         * lib/popen.c (rpl_popen): No need to worry about popen being a
16416         macro.
16417         Reported by Bruno Haible.
16418
16419 2009-08-20  Eric Blake  <ebb9@byu.net>
16420
16421         build: avoid some compiler warnings
16422         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16423         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16424         type.
16425         (new_exclude_segment, excluded_file_pattern_p)
16426         (excluded_file_name_p): Reduce scope.
16427         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16428         old-style declaration.
16429
16430 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16431
16432         * tests/test-exclude1.sh: Handle Windows EOL.
16433         * tests/test-exclude2.sh: Likewise.
16434         * tests/test-exclude3.sh: Likewise.
16435         * tests/test-exclude4.sh: Likewise.
16436         * tests/test-exclude5.sh: Likewise.
16437         * tests/test-exclude6.sh: Likewise.
16438         * tests/test-exclude7.sh: Likewise.
16439
16440 2009-08-19  Akim Demaille  <demaille@gostai.com>
16441
16442         bootstrap: find sha1sum when named gsha1sum.
16443         * bootstrap (find_tool): New.
16444         ($SHA1SUM): New.
16445         Use it.
16446
16447 2009-08-20  Jim Meyering  <meyering@redhat.com>
16448
16449         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16450         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16451         expression that converts "." in a file name to "\." in the resulting
16452         regexp.  Start with a dummy statement, so that prior shell variable
16453         definitions are expanded portably.  Reported by Simon Josefsson.
16454
16455 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16456
16457         Fix polling for writeability of a screen buffer.
16458         * lib/poll.c: Distinguish input and screen buffers for the
16459         Win32 implementation.
16460         * lib/select.c: Likewise.
16461
16462 2009-08-19  Eric Blake  <ebb9@byu.net>
16463
16464         popen-safer: prevent popen from clobbering std descriptors
16465         * modules/popen-safer: New file.
16466         * lib/popen-safer.c: Likewise.
16467         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16468         * lib/stdio--.h (popen): Provide override.
16469         * lib/stdio-safer.h (popen_safer): Provide declaration.
16470         * tests/test-popen.c (includes): Partially test this.
16471         * modules/popen-safer-tests: New file, for more tests.
16472         * tests/test-popen-safer.c: Likewise.
16473         * MODULES.html.sh (file stream based Input/Output): Mention it.
16474
16475         tests: test some of the *-safer modules
16476         * modules/fopen-safer (Depends-on): Add fopen.
16477         * modules/fcntl-safer (Depends-on): Add fcntl.
16478         * modules/stdlib-safer (Depends-on): Add stdlib.
16479         (configure.ac): Set indicator.
16480         * modules/unistd-safer (configure.ac): Likewise.
16481         * modules/tmpfile-safer (configure.ac): Likewise.
16482         (Depends-on): Add tmpfile.
16483         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16484         active.
16485         * tests/test-fopen.c (includes): Test safer versions when they are
16486         in use.
16487         * tests/test-open.c (includes): Likewise.
16488
16489         popen: fix cygwin 1.5 bug when stdin closed
16490         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16491         * modules/popen: New file.
16492         * modules/popen-tests: Likewise.
16493         * tests/test-popen.c: Likewise.
16494         * m4/popen.m4: Likewise.
16495         * lib/popen.c: Likewise.
16496         * lib/stdio.in.h (popen): New declaration.
16497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16498         * modules/stdio (Makefile.am): Likewise.
16499         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16500
16501 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16502
16503         maint.mk: give full control over update-copyright exclusions
16504         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16505         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16506         (update-copyright): Don't force inclusion of top-level
16507         ChangeLog.  Don't force exclusion of all COPYING files, but make
16508         them the default exclusion instead.
16509
16510 2009-08-16  Bruno Haible  <bruno@clisp.org>
16511
16512         Fix test failures on Solaris 10.
16513         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16514         tests when Solaris iconv() is used.
16515         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16516         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16517         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16518         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16519         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16520
16521 2009-08-16  Bruno Haible  <bruno@clisp.org>
16522
16523         Fix test failures on Solaris 10.
16524         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16525         'tr' program and pass it as first argument.
16526         * tests/test-pipe-filter-gi1.sh: Likewise.
16527         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16528         program as first argument.
16529         * tests/test-pipe-filter-gi1.c (main): Likewise.
16530
16531 2009-08-16  Eric Blake  <ebb9@byu.net>
16532
16533         fpurge: fix previous commits
16534         * modules/fpurge (Makefile.am): Make replacement conditional,
16535         partially reverting 2007-04-29 change; missed in previous
16536         attempt.
16537         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16538         is missing.
16539
16540 2009-08-16  Bruno Haible  <bruno@clisp.org>
16541
16542         Clarify fpurge's effect on the file position.
16543         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16544         * tests/test-fpurge.c (main): Make a second pass for checking the file
16545         position.
16546
16547 2009-08-16  Bruno Haible  <bruno@clisp.org>
16548
16549         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16550         declaration of fpurge is missing.
16551         * tests/test-fpurge.c (main): Check that the file has not more contents
16552         than expected. Close the file before removing it.
16553
16554 2009-08-15  Eric Blake  <ebb9@byu.net>
16555
16556         fpurge: don't wrap working cygwin implementation
16557         * lib/fpurge.c (fpurge): Fix comment typo.
16558         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16559         1.7 to avoid replacement.
16560         * tests/test-fpurge.c (main): Enhance test.
16561
16562 2009-08-15  Eric Blake  <ebb9@byu.net>
16563         and Jim Meyering  <meyering@redhat.com>
16564
16565         test-update-copyright: skip if perl is insufficient
16566         * tests/test-update-copyright.sh: Failure to run maintainer tool
16567         should not cause testsuite failure on cygwin 1.5.
16568
16569 2009-08-14  Eric Blake  <ebb9@byu.net>
16570
16571         doc: mention more functions added in cygwin 1.7.0
16572         * doc/posix-headers/limits.texi (limits.h): Update for recent
16573         cygwin additions.
16574         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16575         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16576         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16577         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16578         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16579
16580 2009-08-14  Eric Blake  <ebb9@byu.net>
16581
16582         maint.mk: simplify update-copyright rule
16583         * top/maint.mk (update-copyright-local): Delete, and document how
16584         to do it in cfg.mk instead.
16585         (update-copyright-exclude-regexp): Delete, and document how to do
16586         it in .x-update-copyright instead.
16587         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16588         exclude ChangeLog.
16589
16590 2009-08-14  Bruno Haible  <bruno@clisp.org>
16591
16592         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16593
16594 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16595
16596         maint.mk: support update-copyright-env
16597         * top/maint.mk (update-copyright-env): Define place-holder.
16598         (update-copyright): Expand $(update-copyright-env) before
16599         invoking update-copyright.
16600
16601 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16602
16603         update-copyright: implement forced reformatting
16604         * build-aux/update-copyright: Implement and document
16605         UPDATE_COPYRIGHT_FORCE.
16606         * tests/test-update-copyright.sh: Test it.
16607
16608 2009-08-14  Eric Blake  <ebb9@byu.net>
16609         and Bruno Haible  <bruno@clisp.org>
16610
16611         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16612         * tests/test-locale.c: Revert previous patch related to NULL.
16613         * tests/test-stdio.c: Likewise.
16614         * tests/test-stdlib.c: Likewise.
16615         * tests/test-string.c: Likewise.
16616         * tests/test-unistd.c: Likewise.
16617         * modules/time-tests (Depends-on): Add verify.
16618         * modules/wchar-tests (Depends-on): Likewise.
16619         * tests/test-time.c: Test for NULL compliance.
16620         * tests/test-wchar.c: Likewise.
16621         * modules/locale (Depends-on): Add stddef.
16622         * modules/stdio (Depends-on): Likewise.
16623         * modules/stdlib (Depends-on): Likewise.
16624         * modules/string (Depends-on): Likewise.
16625         * modules/time (Depends-on): Likewise.
16626         * modules/unistd (Depends-on): Likewise.
16627         * modules/wchar (Depends-on): Likewise.
16628         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
16629         * lib/stdlib.in.h (includes): Likewise.
16630         * lib/string.in.h (includes): Likewise.
16631         * lib/time.in.h (includes): Likewise.
16632         * lib/unistd.in.h (includes): Likewise.
16633         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
16634         replaced.
16635         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16636         * m4/stddef_h.m4: New file.
16637         * modules/stddef: Likewise.
16638         * lib/stddef.in.h: Likewise.
16639         * modules/stddef-tests: Likewise.
16640         * tests/test-stddef.c: Likewise.
16641         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
16642         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
16643         * doc/posix-headers/locale.texi (locale.h): Likewise.
16644         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
16645         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16646         * doc/posix-headers/string.texi (string.h): Likewise.
16647         * doc/posix-headers/time.texi (time.h): Likewise.
16648         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
16649         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
16650
16651 2009-08-14  Eric Blake  <ebb9@byu.net>
16652
16653         doc: improve git diff of texinfo files
16654         * .gitattributes: Add rule for *.texi files, with hint on how to
16655         use it.
16656         Copied from m4, and based on a report by Bruno Haible.
16657
16658 2009-08-14  Bruno Haible  <bruno@clisp.org>
16659
16660         Disable multithread support by default on Cygwin 1.5.x for real.
16661         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
16662
16663 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16664
16665         update-copyright: much ado about intervals
16666         * build-aux/update-copyright: Implement and document
16667         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
16668         of copyright year intervals.
16669         Also, document UPDATE_COPYRIGHT_YEAR.
16670         * tests/test-update-copyright.sh: Test it.
16671
16672         update-copyright: convert 2-digit to 4-digit years
16673         * build-aux/update-copyright: Implement and document.
16674         * tests/test-update-copyright.sh: Update.
16675
16676 2009-08-14  Jim Meyering  <meyering@redhat.com>
16677
16678         test-exclude: avoid coreutils "make check" failure
16679         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
16680         just as in test-argmatch.c.
16681
16682 2009-08-13  Eric Blake  <ebb9@byu.net>
16683
16684         test-dup2: fix bad assumption
16685         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
16686         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
16687
16688         test-version-etc: fix CRLF portability issue
16689         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
16690         recognize \r.
16691         * tests/test-argp-version-etc-1.sh: Likewise.
16692
16693         getopt: update client modules
16694         * modules/argp (Depends-on): Use getopt-gnu.
16695         * modules/git-merge-changelog (Depends-on): Likewise.
16696         * modules/long-options (Depends-on): Likewise.
16697         * modules/xstrtol (Depends-on): Likewise.
16698
16699 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16700
16701         * tests/test-version-etc.sh: Don't fail on different
16702         project/version.  Don't fail on CRLF differences.  Rewrite to use
16703         multiple -e instead of multiple sed forks, suggested by Eric Blake
16704         <ebb9@byu.net>.
16705         * tests/test-argp-version-etc-1.sh: Likewise.
16706
16707 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16708
16709         * tests/test-version-etc.sh: Don't fail on different
16710         project/version.
16711
16712 2009-08-12  Bruno Haible  <bruno@clisp.org>
16713
16714         Tests for modules 'getopt-posix', 'getopt-gnu'.
16715         * modules/getopt-posix-tests: New file.
16716         * tests/test-getopt.c: New file.
16717         * tests/test-getopt.h: New file.
16718         * tests/test-getopt_long.h: New file.
16719
16720         New modules 'getopt-posix', 'getopt-gnu'.
16721         * modules/getopt-gnu: New file, renamed from modules/getopt.
16722         * modules/getopt-posix: New file.
16723         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
16724         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
16725         (gl_GETOPT): Remove macro.
16726         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
16727         Disable the test against BSD systems that declare optreset. Test
16728         against mingw bug. Test against lack of support of optional arguments
16729         on many platforms.
16730         * doc/glibc-headers/getopt.texi: Update module name and list of
16731         relevant platforms.
16732         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
16733         'getopt-gnu' and more portability problems.
16734         * NEWS: Mention the changes.
16735
16736 2009-08-12  Bruno Haible  <bruno@clisp.org>
16737
16738         Ensure that optarg etc. get declared by <unistd.h>.
16739         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
16740         AC_USE_SYSTEM_EXTENSIONS.
16741         * modules/getopt (Depends-on): Add 'extensions'.
16742
16743 2009-08-12  Bruno Haible  <bruno@clisp.org>
16744
16745         Avoid test link errors.
16746         * modules/pipe-filter-ii-tests (Makefile.am): Define
16747         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
16748         * modules/pipe-filter-gi-tests (Makefile.am): Define
16749         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
16750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16751
16752 2009-08-12  Bruno Haible  <bruno@clisp.org>
16753
16754         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
16755         gl_GETOPT_SUBSTITUTE before.
16756         (gl_GETOPT): Use it.
16757         * m4/argp.m4 (gl_ARGP): Update.
16758         Reported by Sergey Poznyakoff.
16759
16760         * m4/getopt.m4: Reorder macros.
16761         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
16762         (gl_GETOPT_SUBSTITUTE): Remove macro.
16763
16764 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16765
16766         Minor improvement in gitlog-to-changelog
16767
16768         * build-aux/gitlog-to-changelog: New option `--format' makes
16769         output format string configurable.
16770
16771 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16772
16773         Optimize exclude: use hash tables for non-wildcard patterns.
16774
16775         * lib/exclude.c: Include hash.h and mbuiter.h
16776         (struct exclude_pattern, exclude_segment): New data types.
16777         (struct exclude): Rewrite.
16778         (fnmatch_pattern_has_wildcards): New function.
16779         (new_exclude_segment, free_exclude_segment): New functions.
16780         (excluded_file_pattern_p, excluded_file_name_p): New functions.
16781         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
16782         * lib/exclude.h (is_fnmatch_pattern): New prototype.
16783         * modules/exclude: Depend on hash and mbuiter.
16784
16785         * modules/exclude-tests: New file.
16786         * tests/test-exclude.c: New file.
16787         * tests/test-exclude1.sh: New file.
16788         * tests/test-exclude2.sh: New file.
16789         * tests/test-exclude3.sh: New file.
16790         * tests/test-exclude4.sh: New file.
16791         * tests/test-exclude5.sh: New file.
16792         * tests/test-exclude6.sh: New file.
16793         * tests/test-exclude7.sh: New file.
16794
16795 2009-08-12  Bruno Haible  <bruno@clisp.org>
16796
16797         Ensure that getopt() gets declared by <unistd.h>.
16798         * lib/unistd.in.h: Conditionally include getopt.h.
16799         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
16800         Set GNULIB_UNISTD_H_GETOPT.
16801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16802         GNULIB_UNISTD_H_GETOPT.
16803         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
16804
16805 2009-08-12  Bruno Haible  <bruno@clisp.org>
16806
16807         Clarify logic.
16808         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
16809         gl_replace_getopt instead of GETOPT_H.
16810
16811 2009-08-12  Bruno Haible  <bruno@clisp.org>
16812
16813         * m4/getopt.m4: Add comments.
16814
16815 2009-08-12  Bruno Haible  <bruno@clisp.org>
16816
16817         Disable multithread support by default on Cygwin 1.5.x.
16818         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
16819         set gl_use_threads=no if not specified otherwise.
16820
16821 2009-08-11  Bruno Haible  <bruno@clisp.org>
16822
16823         Avoid compilation error on NetBSD 5.0.
16824         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
16825         * tests/test-stdio.c: Likewise.
16826         * tests/test-stdlib.c: Likewise.
16827         * tests/test-string.c: Likewise.
16828         * tests/test-unistd.c: Likewise.
16829         Reported by Greg Troxel <gdt@ir.bbn.com>
16830         at <https://savannah.gnu.org/support/?106973>.
16831
16832 2009-08-11  Bruno Haible  <bruno@clisp.org>
16833
16834         * modules/dup2-tests (Depends-on): Remove close.
16835
16836         Undo 2009-07-19 commit.
16837         * modules/acl-tests (Depends-on): Remove close.
16838         * modules/binary-io-tests (Depends-on): Likewise.
16839         * modules/closein-tests (Depends-on): Likewise.
16840         * modules/flock-tests (Depends-on): Likewise.
16841         * modules/fsync-tests (Depends-on): Likewise.
16842         * modules/lseek-tests (Depends-on): Likewise.
16843         * modules/pipe-tests (Depends-on): Likewise.
16844         * modules/posix_spawn-tests (Depends-on): Likewise.
16845         * modules/posix_spawnp-tests (Depends-on): Likewise.
16846         * modules/stat-time-tests (Depends-on): Likewise.
16847         * modules/yesno-tests (Depends-on): Likewise.
16848
16849 2009-08-10  Bruno Haible  <bruno@clisp.org>
16850
16851         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
16852
16853 2009-08-10  Bruno Haible  <bruno@clisp.org>
16854
16855         Fix a gcc warning.
16856         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
16857
16858 2009-08-10  Bruno Haible  <bruno@clisp.org>
16859
16860         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
16861         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
16862         not only the first time.
16863         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
16864         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
16865         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
16866         is 1, not only the the first time.
16867
16868 2009-08-10  Bruno Haible  <bruno@clisp.org>
16869
16870         Make it possible to use module 'gethostname' without module 'close'.
16871         * lib/unistd.in.h (close): Evoke a link error only if
16872         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16874         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16875         * modules/unistd (Makefile.am): Substitute
16876         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16877         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
16878         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16879         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16880         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16881         * modules/sys_ioctl (Makefile.am): Substitute
16882         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16883         * modules/socket (configure.ac): On native Windows, set
16884         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
16885         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16886         Reported by Sam Steingold <sds@gnu.org>.
16887
16888 2009-08-10  Bruno Haible  <bruno@clisp.org>
16889
16890         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
16891         * modules/ioctl (configure.ac): Likewise.
16892
16893 2009-08-10  Bruno Haible  <bruno@clisp.org>
16894
16895         Avoid collision between gnulib wrapper and libintl wrapper.
16896         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
16897         already defined in intl/printf.c.
16898         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
16899         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
16900
16901 2009-08-09  Bruno Haible  <bruno@clisp.org>
16902
16903         Make <sys/select.h> really self-contained, also on Solaris 10.
16904         * lib/sys_select.in.h: Include <string.h>.
16905         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
16906         Solaris 10 problem.
16907         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
16908         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
16909         Reported by Jim Meyering.
16910
16911 2009-08-09  Bruno Haible  <bruno@clisp.org>
16912
16913         Avoid warnings from 'aclocal' that are due to a use of macro name
16914         AM_XGETTEXT_OPTION that is not defined in automake.
16915         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
16916         automake.
16917         * modules/error (configure.ac): Likewise.
16918         * modules/propername (configure.ac): Likewise.
16919         * modules/vasprintf (configure.ac): Likewise.
16920         * modules/verror (configure.ac): Likewise.
16921         * modules/xprintf (configure.ac): Likewise.
16922         * modules/xvasprintf (configure.ac): Likewise.
16923
16924 2009-08-08  Bruno Haible  <bruno@clisp.org>
16925
16926         Avoid compilation error in C++ mode.
16927         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
16928         Reported by Sam Steingold <sds@gnu.org>.
16929
16930 2009-08-08  Bruno Haible  <bruno@clisp.org>
16931
16932         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
16933         for the various Unix platforms.
16934         * doc/posix-headers/limits.texi: Update platforms list regarding
16935         HOST_NAME_MAX.
16936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16937
16938 2009-08-07  Jim Meyering  <meyering@redhat.com>
16939
16940         selinux-at: fix typo in a comment
16941         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
16942         Spotted by Paolo Bonzini.
16943
16944         selinux-at: remove redundant m4 code, add documentation
16945         * modules/selinux-at (configure.ac): Remove redundant code.
16946         LIB_SELINUX is already set via the dependent module, selinux-h.
16947         (Include): Add quotes around selinux-at.h.
16948         * lib/selinux-at.h: Add documentation.
16949         Reported by Bruno Haible in
16950         http://marc.info/?l=gnulib-bug&m=124958988300749
16951
16952 2009-08-07  Bruno Haible  <bruno@clisp.org>
16953
16954         Avoid link error on MacOS X 10.3 and 10.4.
16955         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
16956         on non-ELF systems.
16957         * lib/argp-pv.c (argp_program_version): Likewise.
16958         Reported by Simon Josefsson.
16959
16960 2009-08-07  Simon Josefsson  <simon@josefsson.org>
16961
16962         * tests/test-version-etc.sh: Use $EXEEXT.
16963
16964 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
16965
16966         update-copyright: update documentation to point to maint.mk
16967         * build-aux/update-copyright: Here.
16968
16969 2009-08-06  Jim Meyering  <meyering@redhat.com>
16970
16971         maint.mk: support update-copyright-local
16972         * top/maint.mk (update-copyright-local): Define place-holder.
16973         (update-copyright): Depend on $(update-copyright-local).
16974
16975 2009-08-06  Jim Meyering  <meyering@redhat.com>
16976
16977         selinux-at: new module
16978         Initially written for coreutils, this module will soon be
16979         used by findutils, too.
16980         * MODULES.html.sh [Misc]: Add selinux-at.
16981         * lib/selinux-at.h: New file, from coreutils.
16982         * lib/selinux-at.c: Likewise.
16983         * modules/selinux-at: Likewise.
16984         (License): Change from LGPL to GPL, since it depends
16985         on the GPL'd openat module.
16986
16987         doc: update README
16988         * README: Remove references to cogito.
16989         Remove cvs-repo-updating instructions from 2007.
16990         Don't imply that CVS is better if you have limited disk space.
16991
16992 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16993
16994         update-copyright: support C-style comments
16995         * build-aux/update-copyright: Implement and document.
16996         * tests/test-update-copyright.sh: Test.
16997
16998 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16999
17000         update-copyright: support omitted "(C)"
17001         * build-aux/update-copyright: Implement and document.  Also,
17002         allow variable whitespace before "(C)".
17003         * tests/test-update-copyright.sh: Test.
17004
17005 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17006
17007         update-copyright: don't trip on non-FSF copyright statements
17008         * build-aux/update-copyright: Fix so that the first correctly
17009         formatted FSF copyright statement is recognized no matter what
17010         appears before it.  Update documentation.
17011         * tests/test-update-copyright.sh: Test that.
17012
17013 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17014
17015         update-copyright: clean up code a little
17016         * build-aux/update-copyright: Append "_re" to the name of any
17017         variable holding a regular expression.
17018         Replace "old" and "new" with "stmt" in variable names.
17019         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17020         handled correctly.
17021         Format code more consistently.
17022
17023 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17024
17025         update-copyright-tests: improve portability
17026         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17027         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17028
17029 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17030
17031         update-copyright: support @copyright{} and &copy;
17032         * build-aux/update-copyright: Implement and document.
17033         * tests/test-update-copyright.sh: Test.
17034
17035 2009-08-04  Jim Meyering  <meyering@redhat.com>
17036
17037         update-copyright-tests: correctly test EOL=\r\n handling
17038         * tests/test-update-copyright.sh: Put \r at the end of some lines
17039         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17040
17041         maint.mk: make update-copyright exclusion list more configurable
17042         * top/maint.mk (update-copyright): Default to excluding COPYING,
17043         but allow an override, in case someone does want to update that file.
17044
17045         maint.mk: don't update copyright date in COPYING
17046         * top/maint.mk (update-copyright): Exclude COPYING.
17047
17048         maint.mk: add a copyright-updating rule
17049         * top/maint.mk (update-copyright): New rule.
17050         Derived from coreutils/Makefile.am.
17051
17052         update-copyright: rename some variables
17053         * build-aux/update-copyright: Rename a few variables for clarity.
17054         Tweak syntax.  List Joel E. Denny as coauthor.
17055
17056 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17057
17058         update-copyright: fix bug for 2-digit last year and add tests
17059         * build-aux/update-copyright: Fix bug.
17060         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17061         specified.
17062         * modules/update-copyright-tests: New
17063         * tests/test-update-copyright.sh: New.
17064
17065 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17066
17067         update-copyright: handle leading tabs in line prefix
17068         * build-aux/update-copyright: Count leading tabs as 8 spaces
17069         when computing margin.  This helps with the formatting of
17070         ChangeLogs, for example.
17071         Fix documentation a little.
17072
17073 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17074
17075         update-copyright: support EOL=\r\n
17076         * build-aux/update-copyright: Implement that.
17077
17078 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17079
17080         update-copyright: automatically format copyright statements
17081         * build-aux/update-copyright: Implement that.
17082         Also, be a little more predictable and safer by always failing
17083         when the full copyright format is not perfectly recognized as an
17084         unbroken whole.  Discussed at
17085         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17086         Rewrite documentation.
17087
17088 2009-08-03  Bruno Haible  <bruno@clisp.org>
17089
17090         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17091
17092 2009-08-02  Bruno Haible  <bruno@clisp.org>
17093
17094         Tests for module 'uname'.
17095         * modules/uname-tests: New file.
17096         * tests/test-uname.c: New file.
17097
17098         New module 'uname'.
17099         * lib/uname.c: New file.
17100         * m4/uname.m4: New file.
17101         * modules/uname: New file.
17102         * doc/posix-functions/uname.texi: Mention the new module.
17103
17104 2009-08-02  Bruno Haible  <bruno@clisp.org>
17105
17106         Tests for module 'sys_utsname'.
17107         * modules/sys_utsname-tests: New file.
17108         * tests/test-sys_utsname.c: New file.
17109
17110         New module 'sys_utsname'.
17111         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17112         * m4/sys_utsname_h.m4: New file.
17113         * modules/sys_utsname: New file.
17114         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17115
17116 2009-08-02  Bruno Haible  <bruno@clisp.org>
17117
17118         Implicitly initialize the sockets library.
17119         * lib/gethostname.c: Include sockets.h.
17120         (rpl_gethostname): Invoke gl_sockets_startup.
17121         * lib/socket.c: Include sockets.h.
17122         (rpl_socket): Invoke gl_sockets_startup.
17123         * modules/gethostname (Depends-on): Add sockets.
17124         * modules/socket (Depends-on): Likewise.
17125         * tests/test-poll.c: Don't include sockets.h.
17126         (main): Don't invoke gl_sockets_startup.
17127         * tests/test-select.c: Don't include sockets.h.
17128         (main): Don't invoke gl_sockets_startup.
17129
17130 2009-08-02  Bruno Haible  <bruno@clisp.org>
17131
17132         Allow multiple calls to gl_sockets_startup.
17133         * lib/sockets.c (initialized_sockets_version): New variable.
17134         (gl_sockets_startup): Do nothing if already called for this or a higher
17135         version.
17136         (gl_sockets_cleanup): Reset initialized_sockets_version.
17137
17138 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17139
17140         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17141         different project/version.
17142
17143 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17144             Bruno Haible  <bruno@clisp.org>
17145
17146         Tests for module 'pipe-filter-gi'.
17147         * modules/pipe-filter-gi-tests: New file.
17148         * tests/test-pipe-filter-gi1.sh: New file.
17149         * tests/test-pipe-filter-gi1.c: New file.
17150         * tests/test-pipe-filter-gi2.sh: New file.
17151         * tests/test-pipe-filter-gi2-main.c: New file.
17152         * tests/test-pipe-filter-gi2-child.c: New file.
17153
17154         New module 'pipe-filter-gi'.
17155         * lib/pipe-filter-gi.c: New file.
17156         * modules/pipe-filter-gi: New file.
17157
17158 2009-08-02  Bruno Haible  <bruno@clisp.org>
17159             Paolo Bonzini  <bonzini@gnu.org>
17160
17161         Tests for module 'pipe-filter-ii'.
17162         * modules/pipe-filter-ii-tests: New file.
17163         * tests/test-pipe-filter-ii1.sh: New file.
17164         * tests/test-pipe-filter-ii1.c: New file.
17165         * tests/test-pipe-filter-ii2.sh: New file.
17166         * tests/test-pipe-filter-ii2-main.c: New file.
17167         * tests/test-pipe-filter-ii2-child.c: New file.
17168
17169         New module 'pipe-filter-ii'.
17170         * lib/pipe-filter.h: New file.
17171         * lib/pipe-filter-ii.c: New file.
17172         * lib/pipe-filter-aux.h: New file.
17173         * modules/pipe-filter-ii: New file.
17174
17175 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17176
17177         * lib/gc-libgcrypt.c: Change copyright to FSF.
17178         * lib/gc-gnulib.c: Likewise.
17179
17180 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17181
17182         * lib/gethostname.c: Include limits.h.
17183
17184 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17185             Bruno Haible  <bruno@clisp.org>
17186
17187         Ensure HOST_NAME_MAX as part of the gethostname module.
17188         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17189         define also HOST_NAME_MAX.
17190         * tests/test-gethostname.c: Include <limits.h>.
17191         (main): Check also HOST_NAME_MAX.
17192         * doc/posix-headers/limits.texi: Document the mingw problem.
17193
17194 2009-08-02  Bruno Haible  <bruno@clisp.org>
17195
17196         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17197         Add comments.
17198
17199 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17200
17201         * lib/gethostname.c: Add Windows wrapper.
17202         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17203         * modules/gethostname: Depend on sys_socket & errno, for also
17204         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17205         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17206
17207 2009-07-31  Jim Meyering  <meyering@redhat.com>
17208
17209         getloadavg: fix symbol name in comment
17210         * lib/getloadavg.c: Correct a typo I introduced when adding
17211         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17212         Matt Kraai spotted the problem.
17213
17214 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17215
17216         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17217         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17218         code also if ! defined N_NAME_POINTER.
17219         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17220         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17221         but the n_name member is a 12-byte array.
17222
17223 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17224
17225         update-copyright: generalize comment handling
17226         * build-aux/update-copyright: Handle copyright statements
17227         within more comment styles.
17228         Document usage.
17229         Report any file with an external copyright holder or parse failure.
17230
17231 2009-07-29  Jim Meyering  <meyering@redhat.com>
17232
17233         mktime: correct setting of REPLACE_MKTIME
17234         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17235
17236         update-copyright: new module
17237         * modules/update-copyright: New file.
17238         * build-aux/update-copyright: New file.
17239         * MODULES.html.sh (maint+release support): Add update-copyright.
17240
17241 2009-07-27  Bruno Haible  <bruno@clisp.org>
17242
17243         Fix compilation error when <ctime> is used and mktime is replaced.
17244         * lib/time.in.h (mktime): New declaration.
17245         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17246         REPLACE_MKTIME instead of defining mktime in config.h.
17247         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17248         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17249         Reported by Ross McFarland <rwmcfa1@neces.com>.
17250
17251 2009-07-27  Bruno Haible  <bruno@clisp.org>
17252
17253         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17254         Reported by Matt Kraai <mkraai@beckman.com>.
17255
17256 2009-07-25  Jim Meyering  <meyering@redhat.com>
17257
17258         maint.mk: avoid warnings about missing files
17259         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17260         diagnostic when .prev-version does not exist.
17261         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17262         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17263         nonexistent cfg.mk.
17264         Suggestions from Simon Josefsson.
17265
17266 2009-07-25  Bruno Haible  <bruno@clisp.org>
17267
17268         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17269         defined as macros. Needed on QNX 6.4.1.
17270         Reported by Matt Kraai <mkraai@beckman.com>.
17271
17272 2009-07-23  Jim Meyering  <meyering@redhat.com>
17273
17274         maint.mk: invoke "make dist" with a working value of XZ_OPT
17275         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17276
17277 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17278
17279         Make fseeko.c compile on QNX.
17280         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17281
17282 2009-07-22  Peter Simons  <simons@cryp.to>
17283
17284         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17285         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17286         * lib/md4.h: Likewise.
17287         * lib/md5.h: Likewise.
17288         * lib/sha1.h: Likewise.
17289         * lib/sha256.h: Likewise.
17290         * lib/sha512.h: Likewise.
17291
17292         tests-sha1: don't assign literal string to 'char *' variable
17293         * tests/test-sha1.c (main): Declare locals with "const" to match
17294         attributes of the right hand side.
17295
17296 2009-07-21  Eric Blake  <ebb9@byu.net>
17297
17298         dup2: fix more mingw problems
17299         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17300         fd to itself.
17301         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17302         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17303         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17304         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17305         care of mingw bugs.
17306
17307 2009-07-21  Jim Meyering  <meyering@redhat.com>
17308
17309         vc-list-files: avoid failure when /bin/sh is dash
17310         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17311         On some Debian based systems, /bin/sh is a symlink to dash, and running
17312         this command would omit the "/" following each 'tests' prefix:
17313           dash -x build-aux/vc-list-files -C . tests
17314         That is because bash and dash work differently:
17315           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17316           bash ok
17317           dash odd
17318
17319 2009-07-21  Eric Blake  <ebb9@byu.net>
17320
17321         dup2-tests: test previous patch
17322         * modules/dup2-tests: New file.
17323         * tests/test-dup2.c: Likewise.
17324         * tests/test-open.c (main): Avoid unspecified behavior.
17325         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17326         test.
17327
17328         dup2: work around mingw and cygwin 1.5 bug
17329         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17331         * modules/unistd (Makefile.am): Substitute it.
17332         * lib/unistd.in.h (dup2): Declare the replacement.
17333         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17334         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17335         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17336         * modules/execute (Depends-on): Add dup2.
17337         * modules/fseterr (Depends-on): Likewise.
17338         * modules/pipe (Depends-on): Likewise.
17339         * modules/posix_spawn-internal (Depends-on): Likewise.
17340
17341 2009-07-21  Bruno Haible  <bruno@clisp.org>
17342
17343         * modules/.gitattributes: New file.
17344
17345 2009-07-20  Bruno Haible  <bruno@clisp.org>
17346
17347         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17348         (main): Use it.
17349
17350 2009-07-20  Eric Blake  <ebb9@byu.net>
17351
17352         test-pipe: make a bit more robust.
17353         * tests/test-pipe.c (myerr): Allow error messages regardless of
17354         what we do to stderr.
17355         (test_pipe): Rearrange to avoid deadlock.
17356         (child_main): Try a larger read, to ensure we avoided deadlock.
17357         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17358         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17359         if misused.
17360
17361 2009-07-19  Jim Meyering  <meyering@redhat.com>
17362
17363         fts: avoid false-positive cycle-detection
17364         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17365         for each new command line argument.
17366
17367 2009-07-19  Bruno Haible  <bruno@clisp.org>
17368
17369         Fix build error on mingw with the modules sys_select and unistd.
17370         * modules/acl-tests (Depends-on): Add close.
17371         * modules/binary-io-tests (Depends-on): Likewise.
17372         * modules/closein-tests (Depends-on): Likewise.
17373         * modules/flock-tests (Depends-on): Likewise.
17374         * modules/fsync-tests (Depends-on): Likewise.
17375         * modules/lseek-tests (Depends-on): Likewise.
17376         * modules/pipe-tests (Depends-on): Likewise.
17377         * modules/posix_spawn-tests (Depends-on): Likewise.
17378         * modules/posix_spawnp-tests (Depends-on): Likewise.
17379         * modules/stat-time-tests (Depends-on): Likewise.
17380         * modules/yesno-tests (Depends-on): Likewise.
17381
17382 2009-07-19  Bruno Haible  <bruno@clisp.org>
17383
17384         Unify conditionals.
17385         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17386         macros, not at the compiler macros.
17387         * lib/pipe.c: Likewise.
17388         * lib/execute.c: Likewise.
17389         * lib/spawni.c: Likewise.
17390
17391 2009-07-19  Bruno Haible  <bruno@clisp.org>
17392
17393         Fix handling of closed stdin/stdout/stderr on mingw.
17394         * lib/w32spawn.h: Include unistd.h.
17395         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17396         file descriptor with O_NOINHERIT flag.
17397         (fd_safer_noinherit): New function, based on fd-safer.c.
17398         (dup_safer_noinherit): New function, based on dup-safer.c.
17399         (undup_safer_noinherit): New function.
17400         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17401         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17402         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17403         instead of fd_safer.
17404         * tests/test-pipe.c: Include <windows.h>.
17405         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17406
17407         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17408         from main.
17409         (test_pipe): Pass an extra argument for disambiguation.
17410         (main): Invoke parent_main or child_main.
17411
17412         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17413         consistently.
17414
17415 2009-07-18  Eric Blake  <ebb9@byu.net>
17416
17417         test-pipe: fix mingw build
17418         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17419
17420 2009-07-18  Bruno Haible  <bruno@clisp.org>
17421
17422         * modules/pipe-tests (Makefile.am): Fix typo.
17423
17424 2009-07-18  Eric Blake  <ebb9@byu.net>
17425
17426         error: fix mingw build
17427         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17428         Reported by Bruno Haible.
17429
17430         error: avoid undefined use of stdout
17431         * lib/error.c (error, error_at_line): Check that fd 1 is open
17432         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17433         is handling faults and the close_stdout module wants to report the
17434         detection of closed stdout as an error.
17435
17436 2009-07-17  Eric Blake  <ebb9@byu.net>
17437
17438         pipe: be robust in face of closed fds
17439         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17440         should cause child to misbehave.
17441         * modules/pipe-tests: New module.
17442         * tests/test-pipe.c: New file.
17443         * tests/test-pipe.sh: New file.
17444         Reported by Akim Demaille.
17445
17446 2009-07-14  Bruno Haible  <bruno@clisp.org>
17447
17448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17449         Reported by anonymous kc.
17450
17451 2009-07-07  Jim Meyering  <meyering@redhat.com>
17452
17453         maint.mk: don't look for translatable strings in *.m4 or *.mk
17454         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17455         when searching for translatable strings.
17456
17457 2009-07-05  Jim Meyering  <meyering@redhat.com>
17458
17459         remove superfluous parentheses in STREQ definition
17460         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17461         * lib/getugroups.c (STREQ): Likewise.
17462         * lib/fnmatch.c (STREQ): Likewise.
17463         Spotted by Bruno Haible.
17464
17465 2009-07-04  Jim Meyering  <meyering@redhat.com>
17466
17467         argv-iter: new module
17468         * MODULES.html.sh: Add argv-iter.
17469         * lib/argv-iter.c, lib/argv-iter.h: New files.
17470         * modules/argv-iter: New file.
17471         * modules/argv-iter-tests: New file.
17472         * tests/test-argv-iter.c: Test it.
17473
17474 2009-07-04  Bruno Haible  <bruno@clisp.org>
17475
17476         Fix assertion.
17477         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17478         contains more exact copies of a given entry than file2, leave the extra
17479         copies unpaired rather than aborting.
17480         Reported by Eric Blake.
17481
17482 2009-07-02  Bruno Haible  <bruno@clisp.org>
17483
17484         Speedup git-merge-changelog for git cherry-pick.
17485         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17486         (entries_mapping_get): New function, extracted from compute_mapping.
17487         (entries_mapping_reverse_get): New function.
17488         (compute_mapping): Add a 'full' argument. Return the result in a
17489         'struct entries_mapping'.
17490         (main): Update. Access the mappings through entries_mapping_get.
17491         Reported by Eric Blake.
17492
17493 2009-07-02  Bruno Haible  <bruno@clisp.org>
17494
17495         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17496         best_i.
17497
17498 2009-07-02  Bruno Haible  <bruno@clisp.org>
17499
17500         Speed up approximate search for matching ChangeLog entries.
17501         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17502         argument. Call fstrcmp_bounded instead of fstrcmp.
17503         (compute_mapping, try_split_merged_entry, main): Update callers.
17504
17505 2009-07-02  Bruno Haible  <bruno@clisp.org>
17506
17507         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17508
17509 2009-06-30  Bruno Haible  <bruno@clisp.org>
17510
17511         Reduce the number of uc_is_cased calls.
17512         * lib/unicase.h (casing_suffix_context_t): Add
17513         'first_char_except_ignorable' field.
17514         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17515         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17516         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17517         Update initializer.
17518         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17519         case-ignorable characters.
17520         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17521         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17522         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17523         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17524         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17525
17526 2009-06-30  Bruno Haible  <bruno@clisp.org>
17527
17528         Tests for module 'unicase/ignorable'.
17529         * modules/unicase/ignorable-tests: New file.
17530         * tests/unicase/test-ignorable.c: New file, generated by
17531         gen-uni-tables.
17532
17533         Tests for module 'unicase/cased'.
17534         * modules/unicase/cased-tests: New file.
17535         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17536         * tests/unicase/test-predicate-part1.h: New file, derived from
17537         tests/unictype/test-predicate-part1.h.
17538         * tests/unicase/test-predicate-part2.h: New file, same as
17539         tests/unictype/test-predicate-part2.h.
17540
17541         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17542         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17543         (output_casing_properties): New function.
17544         (main): Call it.
17545         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17546         * lib/unicase/cased.c: Include unictype/bitmap.h.
17547         (uc_is_cased): Define through a bitmap lookup.
17548         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17549         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17550         (uc_is_case_ignorable): Define through a bitmap lookup.
17551         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17552         lib/unictype/bitmap.h.
17553         (Depends-on): Add inline. Clean up.
17554         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17555         lib/unictype/bitmap.h.
17556         (Depends-on): Add inline. Clean up.
17557         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17558         recognition.
17559         * tests/unicase/test-u16-tolower.c (main): Likewise.
17560         * tests/unicase/test-u32-tolower.c (main): Likewise.
17561
17562 2009-06-30  Bruno Haible  <bruno@clisp.org>
17563
17564         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17565         * lib/unicase/u16-casemap.c: Likewise.
17566         * lib/unicase/u32-casemap.c: Likewise.
17567
17568 2009-06-29  Bruno Haible  <bruno@clisp.org>
17569
17570         Define u32_casefold as a wrapper around u32_ct_casefold.
17571         * lib/unicase/u32-casefold.c: Update.
17572         * modules/unicase/u32-casefold (Depends-on): Add
17573         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17574         unicase/empty-suffix-context. Clean up.
17575
17576         Define u16_casefold as a wrapper around u16_ct_casefold.
17577         * lib/unicase/u16-casefold.c: Update.
17578         * modules/unicase/u16-casefold (Depends-on): Add
17579         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17580         unicase/empty-suffix-context. Clean up.
17581
17582         Define u8_casefold as a wrapper around u8_ct_casefold.
17583         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17584         * lib/unicase/u8-casefold.c: Update.
17585         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17586         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17587
17588         Define u32_totitle as a wrapper around u32_ct_totitle.
17589         * lib/unicase/u32-totitle.c: Update.
17590         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17591         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17592
17593         Define u16_totitle as a wrapper around u16_ct_totitle.
17594         * lib/unicase/u16-totitle.c: Update.
17595         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17596         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17597
17598         Define u8_totitle as a wrapper around u8_ct_totitle.
17599         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17600         functions.
17601         (FUNC): Delegate to U_CT_TOTITLE.
17602         * lib/unicase/u8-totitle.c: Update.
17603         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17604         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17605
17606         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17607         invocation.
17608         * modules/unicase/u32-tolower (Depends-on): Add
17609         unicase/empty-prefix-context, unicase/empty-suffix-context.
17610
17611         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17612         invocation.
17613         * modules/unicase/u16-tolower (Depends-on): Add
17614         unicase/empty-prefix-context, unicase/empty-suffix-context.
17615
17616         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17617         * modules/unicase/u8-tolower (Depends-on): Add
17618         unicase/empty-prefix-context, unicase/empty-suffix-context.
17619
17620         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17621         invocation.
17622         * modules/unicase/u32-toupper (Depends-on): Add
17623         unicase/empty-prefix-context, unicase/empty-suffix-context.
17624
17625         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
17626         invocation.
17627         * modules/unicase/u16-toupper (Depends-on): Add
17628         unicase/empty-prefix-context, unicase/empty-suffix-context.
17629
17630         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
17631         * modules/unicase/u8-toupper (Depends-on): Add
17632         unicase/empty-prefix-context, unicase/empty-suffix-context.
17633
17634         New module 'unicase/u32-ct-casefold'.
17635         * lib/unicase/u32-ct-casefold.c: New file.
17636         * modules/unicase/u32-ct-casefold: New file.
17637
17638         New module 'unicase/u16-ct-casefold'.
17639         * lib/unicase/u16-ct-casefold.c: New file.
17640         * modules/unicase/u16-ct-casefold: New file.
17641
17642         New module 'unicase/u8-ct-casefold'.
17643         * lib/unicase/u8-ct-casefold.c: New file.
17644         * lib/unicase/u-ct-casefold.h: New file, derived from
17645         lib/unicase/u-casefold.h.
17646         * modules/unicase/u8-ct-casefold: New file.
17647
17648         New module 'unicase/u32-ct-totitle'.
17649         * lib/unicase/u32-ct-totitle.c: New file.
17650         * modules/unicase/u32-ct-totitle: New file.
17651
17652         New module 'unicase/u16-ct-totitle'.
17653         * lib/unicase/u16-ct-totitle.c: New file.
17654         * modules/unicase/u16-ct-totitle: New file.
17655
17656         New module 'unicase/u8-ct-totitle'.
17657         * lib/unicase/u8-ct-totitle.c: New file.
17658         * lib/unicase/u-ct-totitle.h: New file, derived from
17659         lib/unicase/u-totitle.h.
17660         * modules/unicase/u8-ct-totitle: New file.
17661
17662         New module 'unicase/u32-ct-tolower'.
17663         * lib/unicase/u32-ct-tolower.c: New file.
17664         * modules/unicase/u32-ct-tolower: New file.
17665
17666         New module 'unicase/u16-ct-tolower'.
17667         * lib/unicase/u16-ct-tolower.c: New file.
17668         * modules/unicase/u16-ct-tolower: New file.
17669
17670         New module 'unicase/u8-ct-tolower'.
17671         * lib/unicase/u8-ct-tolower.c: New file.
17672         * modules/unicase/u8-ct-tolower: New file.
17673
17674         New module 'unicase/u32-ct-toupper'.
17675         * lib/unicase/u32-ct-toupper.c: New file.
17676         * modules/unicase/u32-ct-toupper: New file.
17677
17678         New module 'unicase/u16-ct-toupper'.
17679         * lib/unicase/u16-ct-toupper.c: New file.
17680         * modules/unicase/u16-ct-toupper: New file.
17681
17682         New module 'unicase/u8-ct-toupper'.
17683         * lib/unicase/u8-ct-toupper.c: New file.
17684         * modules/unicase/u8-ct-toupper: New file.
17685
17686         Add context arguments to u*_casemap functions.
17687         * lib/unicase/unicasemap.h: Include unicase.h.
17688         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
17689         suffix_context arguments.
17690         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
17691         functions.
17692         (FUNC): Add prefix_context and suffix_context arguments. Use
17693         uc_is_cased and uc_is_case_ignorable.
17694         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
17695         * lib/unicase/u16-casemap.c: Likewise.
17696         * lib/unicase/u32-casemap.c: Likewise.
17697         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
17698         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17699         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
17700         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17701         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
17702         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17703
17704         New module 'unicase/u32-suffix-context'.
17705         * lib/unicase/u32-suffix-context.c: New file.
17706         * modules/unicase/u32-suffix-context: New file.
17707
17708         New module 'unicase/u16-suffix-context'.
17709         * lib/unicase/u16-suffix-context.c: New file.
17710         * modules/unicase/u16-suffix-context: New file.
17711
17712         New module 'unicase/u8-suffix-context'.
17713         * lib/unicase/u8-suffix-context.c: New file.
17714         * lib/unicase/u-suffix-context.h: New file.
17715         * modules/unicase/u8-suffix-context: New file.
17716
17717         New module 'unicase/empty-suffix-context'.
17718         * lib/unicase/empty-suffix-context.c: New file.
17719         * modules/unicase/empty-suffix-context: New file.
17720
17721         New module 'unicase/u32-prefix-context'.
17722         * lib/unicase/u32-prefix-context.c: New file.
17723         * modules/unicase/u32-prefix-context: New file.
17724
17725         New module 'unicase/u16-prefix-context'.
17726         * lib/unicase/u16-prefix-context.c: New file.
17727         * modules/unicase/u16-prefix-context: New file.
17728
17729         New module 'unicase/u8-prefix-context'.
17730         * lib/unicase/u8-prefix-context.c: New file.
17731         * lib/unicase/u-prefix-context.h: New file.
17732         * lib/unicase/context.h: New file.
17733         * modules/unicase/u8-prefix-context: New file.
17734
17735         New module 'unicase/empty-prefix-context'.
17736         * lib/unicase/empty-prefix-context.c: New file.
17737         * modules/unicase/empty-prefix-context: New file.
17738
17739         New module 'unicase/ignorable'.
17740         * lib/unicase/ignorable.c: New file.
17741         * modules/unicase/ignorable: New file.
17742
17743         New module 'unicase/cased'.
17744         * lib/unicase/caseprop.h: New file.
17745         * lib/unicase/cased.c: New file.
17746         * modules/unicase/cased: New file.
17747
17748         New functions for case mapping of substrings.
17749         * lib/unicase.h (casing_prefix_context_t): New type.
17750         (unicase_empty_prefix_context): New variable.
17751         (u8_casing_prefix_context, u16_casing_prefix_context,
17752         u32_casing_prefix_context, u8_casing_prefixes_context,
17753         u16_casing_prefixes_context, u32_casing_prefixes_context): New
17754         declarations.
17755         (casing_suffix_context_t): New type.
17756         (unicase_empty_suffix_context): New variable.
17757         (u8_casing_suffix_context, u16_casing_suffix_context,
17758         u32_casing_suffix_context, u8_casing_suffixes_context,
17759         u16_casing_suffixes_context, u32_casing_suffixes_context,
17760         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
17761         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
17762         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
17763         declarations.
17764
17765 2009-06-28  Jim Meyering  <meyering@redhat.com>
17766
17767         boostrap: indent only with spaces
17768         * build-aux/bootstrap: Indent only with spaces, never TABs.
17769
17770         bootstrap: split long lines
17771         * build-aux/bootstrap: Keep line length < 80.
17772
17773         bootstrap: sync from coreutils
17774         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
17775         just as autoreconf does.  Verify a list of prerequisite
17776         package-name,version-number pairs if defined in bootstrap.conf.
17777         Refer to README-prereq, if prerequisites are not satisfied.
17778
17779 2009-06-27  Eric Blake  <ebb9@byu.net>
17780
17781         tests: add test for bogus NULL definition
17782         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
17783         * tests/test-stdlib.c: Likewise.
17784         * tests/test-string.c: Likewise.
17785         * tests/test-locale.c: Likewise.
17786         * tests/test-unistd.c: Likewise.
17787         * modules/stdio-tests (Depends-on): Add verify.
17788         * modules/stdlib-tests (Depends-on): Likewise.
17789         * modules/string-tests (Depends-on): Likewise.
17790         * modules/locale-tests (Depends-on): Likewise.
17791         * modules/unistd-tests (Depends-on): Likewise.
17792
17793 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17794
17795         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
17796         self-explaining comment.
17797         * m4/selinux-selinux-h: Update serial.
17798         (gl_LIBSELINUX): New macro, adding a warning for missing development
17799         packages to code extracted from...
17800         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
17801         Add warning for missing development packages here, too.
17802
17803 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
17804
17805         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
17806
17807 2009-06-25  Eric Blake  <ebb9@byu.net>
17808
17809         version-etc: fix regression
17810         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
17811         gcc.
17812         (version_etc): Use it, to catch bugs with trailing NULL.
17813         * lib/version-etc.c (version_etc_arn): Delete unused argument.
17814         (version_etc_va): Fix logic bug.
17815         * modules/version-etc-tests: Add test.
17816         * tests/test-version-etc.c: New file.
17817         * tests/test-version-etc.sh: Likewise.
17818
17819 2009-06-25  Sam Steingold  <sds@gnu.org>
17820
17821         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
17822         mbtowc declaration.
17823
17824 2009-06-25  Eric Blake  <ebb9@byu.net>
17825
17826         fpurge: migrate into <stdio.h>
17827         * lib/fpurge.h: Delete...
17828         * lib/stdio.in.h (fpurge): ...and declare here, instead.
17829         * lib/fpurge.c (fpurge): Change declaring header.
17830         * modules/fpurge (Files): Drop deleted file.
17831         (Depends-on): Add stdio.
17832         (configure.ac): Set witness.
17833         * modules/stdio (Makefile.am): Support fpurge macros.
17834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17835         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
17836         * lib/fflush.c: Update client.
17837         * tests/test-fpurge.c: Likewise.
17838         * NEWS: Mention the change.
17839
17840 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17841
17842         * lib/argp-version-etc.c (program_authors): Add const
17843         qualifier.
17844         * lib/version-etc.c: Fix typos in the comments.
17845         * modules/argp-version-etc: Depends on version-etc.
17846
17847 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17848
17849         argp-version-etc: new module.
17850
17851         * lib/argp-version-etc.c: New file.
17852         * lib/argp-version-etc.h: New file.
17853         * modules/argp-version-etc: New file.
17854         * modules/argp-version-etc-tests: New file.
17855         * tests/test-argp-version-etc.c: New test.
17856         * tests/test-argp-version-etc-1.sh: New test.
17857
17858 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17859
17860         Provide additional interfaces and documentation for version-etc
17861         module.
17862
17863         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
17864         interfaces.
17865         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
17866         prototypes.
17867
17868 2009-06-24  Bruno Haible  <bruno@clisp.org>
17869
17870         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
17871         HAVE_LIB${NAME} macro.
17872         Reported by Sam Steingold <sds@gnu.org>.
17873
17874 2009-06-23  Simon Josefsson  <simon@josefsson.org>
17875
17876         * modules/hash-tests (test_hash_LDADD): Link to libintl when
17877         needed.
17878
17879 2009-06-21  Bruno Haible  <bruno@clisp.org>
17880
17881         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
17882         work.
17883         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
17884         together with LIB${NAME}, LTLIB${NAME}.
17885         Reported by Sam Steingold <sds@gnu.org>.
17886
17887 2009-06-20  Jim Meyering  <meyering@redhat.com>
17888
17889         tests: make sc_require_test_exit_idiom more generic
17890         * top/maint.mk (Exit_witness_file): New overridable variable.
17891         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
17892         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
17893
17894 2009-06-19  Jim Meyering  <meyering@redhat.com>
17895
17896         hash: reverse order of src/dst parameters in an internal interface
17897         * lib/hash.c (transfer_entries): Reverse order of parameters to
17898         put DST before SRC.  Adjust callers.
17899
17900         tests: test-hash: avoid wholesale duplication
17901         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
17902         Instead, use a loop and add a single conditional.
17903
17904         tests: test-hash: allow seed selection via a command line argument
17905         * tests/test-hash.c (get_seed): New function.
17906         (main): Use it.
17907
17908 2009-06-19  Eric Blake  <ebb9@byu.net>
17909
17910         hash: avoid memory leak on allocation failure
17911         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
17912         failure.  Factor repeated algorithm...
17913         (transfer_entries): ...into new helper routine.
17914         (hash_delete): React to hash_rehash return value.
17915
17916         hash: reduce memory pressure in hash_rehash no-op case
17917         * lib/hash.c (next_prime): Avoid overflow.
17918         (hash_initialize): Factor bucket size computation...
17919         (compute_bucket_size): ...into new helper function.
17920         (hash_rehash): Use new function and open coding to reduce memory
17921         pressure, and avoid a memory leak in USE_OBSTACK code.
17922         Reported by Jim Meyering.
17923
17924 2009-06-18  Eric Blake  <ebb9@byu.net>
17925
17926         hash: make rotation more obvious
17927         * modules/hash (Depends-on): Add bitrotate and stdint.
17928         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
17929         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
17930         (SIZE_MAX): Rely on headers for definition.
17931         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
17932         (raw_hasher): Use rotr_sz.
17933         Suggested by Jim Meyering.
17934
17935         hash: fix memory leak in last patch
17936         * lib/hash.c (hash_rehash): Avoid memory leak.
17937
17938         hash: avoid no-op rehashing
17939         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
17940
17941         hash: provide default callback functions
17942         * lib/hash.c (raw_hasher, raw_comparator): New functions.
17943         (hash_initialize): Use them as defaults.
17944         * tests/test-hash.c (main): Test this.
17945
17946         hash: minor optimization
17947         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
17948         when possible.
17949         (hash_initialize): Document this promise.
17950         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
17951         * tests/test-hash.c (hash_compare_strings): Test this.
17952
17953 2009-06-18  Bruno Haible  <bruno@clisp.org>
17954
17955         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
17956         going to be replaced anyway.
17957
17958 2009-06-18  Bruno Haible  <bruno@clisp.org>
17959
17960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
17961         in one place.
17962         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
17963         be replaced anyway.
17964
17965 2009-06-18  Eric Blake  <ebb9@byu.net>
17966
17967         hash: check for resize before insertion
17968         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
17969         threshold before insertion, so that a pathological hash_rehash
17970         that fills every bucket can still trigger another rehash.
17971
17972 2009-06-18  Jim Meyering  <meyering@redhat.com>
17973
17974         hash-tests: add a loop around the small tests
17975         * tests/test-hash.c (main): Repeat small tests with selected
17976         small initial table sizes.
17977
17978 2009-06-17  Eric Blake  <ebb9@byu.net>
17979
17980         hash: minor cleanups
17981         * lib/hash.h (hash_entry): Make opaque, by moving...
17982         * lib/hash.c (hash_entry): ...here.
17983         (hash_insert): Clarify restrictions on what can be inserted.
17984         (hash_get_next): Clarify when it is safe to remove an element
17985         during traversal.
17986         (check_tuning): Skip verification when tuning is known safe.
17987         (hash_initialize): Clarify restrictions on tuning.
17988
17989 2009-06-17  Jim Meyering  <jim@meyering.net>
17990         and Eric Blake  <ebb9@byu.net>
17991
17992         hash-tests: new module
17993         * modules/hash-tests: New file.
17994         * tests/test-hash.c: New file.
17995
17996 2009-06-17  Eric Blake  <ebb9@byu.net>
17997
17998         strstr-simple: document new module
17999         * MODULES.html.sh: Document new module.
18000
18001         strstr, strcasestr: replace on platforms with broken memchr
18002         * modules/strstr: Split into...
18003         * modules/strstr-simple: ...new module that does not care about
18004         performance, but does care about glibc bug.
18005         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18006         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18007         if platform memchr is broken, per Debian bug 521737.
18008         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18009         memchr.
18010         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18011         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18012         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18013         * modules/mountlist (Depends-on): Add strstr-simple.
18014         * modules/gen-uni-tables (Depends-on): Likewise.
18015         * modules/argz (Depends-on): Add strstr.
18016
18017 2009-06-17  Bruno Haible  <bruno@clisp.org>
18018
18019         * modules/posix_spawn-internal (Depends-on): Add errno.
18020
18021 2009-06-17  Bruno Haible  <bruno@clisp.org>
18022
18023         Define missing ESTALE on Interix 3.5.
18024         * lib/errno.in.h (ESTALE): Assign a value if missing.
18025         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18026         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18027         missing.
18028         * doc/posix-headers/errno.texi: Mention the Interix bug.
18029         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18030
18031 2009-06-15  Eric Blake  <ebb9@byu.net>
18032
18033         memchr, memchr2: add valgrind exception
18034         * lib/memchr.valgrind: New file.
18035         * lib/memchr2.valgrind: New file.
18036         * modules/memchr (Files): Distribute valgrind file.
18037         * modules/memchr2 (Files): Likewise.
18038
18039         docs: memchr is no longer obsolete
18040         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18041         * lib/string.in.h (memchr): Simplify logic.
18042
18043 2009-06-14  Jim Meyering  <meyering@redhat.com>
18044
18045         link-follow: fix the "checking..." message to not mention trailing slash
18046         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18047         never considered trailing slashes.
18048
18049 2009-06-14  Bruno Haible  <bruno@clisp.org>
18050
18051         * m4/memchr.m4: Mention also the bug on IA-64.
18052         * doc/posix-functions/memchr.texi: Likewise.
18053
18054 2009-06-12  Eric Blake  <ebb9@byu.net>
18055
18056         memchr: detect broken x86_64 and alpha implementations
18057         * modules/memchr-tests (Depends-on): Move mmap detection...
18058         * modules/memchr (Depends-on): ...here.
18059         (configure.ac): Set indicator.
18060         * lib/string.in.h (memchr): Declare replacement.
18061         * modules/string (Makefile.am): Trigger replacement.
18062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18063         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18064         bugs.
18065         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18066         * modules/getpagesize (License): Relax license.
18067
18068 2009-06-11  Bruno Haible  <bruno@clisp.org>
18069
18070         * lib/idpriv.h: Add more references.
18071
18072 2009-06-08  Bruno Haible  <bruno@clisp.org>
18073
18074         Tests for module 'idpriv-droptemp'.
18075         * modules/idpriv-droptemp-tests: New file.
18076         * tests/test-idpriv-droptemp.sh: New file.
18077         * tests/test-idpriv-droptemp.su.sh: New file.
18078         * tests/test-idpriv-droptemp.c: New file.
18079
18080         New module 'idpriv-droptemp'.
18081         * lib/idpriv-droptemp.c: New file.
18082         * modules/idpriv-droptemp: New file.
18083
18084 2009-06-08  Bruno Haible  <bruno@clisp.org>
18085
18086         Tests for module 'idpriv-drop'.
18087         * modules/idpriv-drop-tests: New file.
18088         * tests/test-idpriv-drop.sh: New file.
18089         * tests/test-idpriv-drop.su.sh: New file.
18090         * tests/test-idpriv-drop.c: New file.
18091
18092         New module 'idpriv-drop'.
18093         * lib/idpriv.h: New file.
18094         * lib-idpriv-drop.c: New file.
18095         * m4/idpriv.m4: New file.
18096         * modules/idpriv-drop: New file.
18097
18098 2009-06-08  Bruno Haible  <bruno@clisp.org>
18099
18100         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18101         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18102         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18103         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18104         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18105         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18106         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18107
18108 2009-06-08  Eric Blake  <ebb9@byu.net>
18109
18110         test-strstr: use memory fence, when possible
18111         * tests/test-strstr.c (main): Use memory fence, in order to be
18112         more likely to trigger Debian bug 521737.
18113         * modules/strstr-tests (Files): Pull in additional files.
18114
18115         memchr: no longer obsolete, for wider field testing
18116         * modules/memchr (Status, Notice): Delete, this module is no
18117         longer obsolete.
18118         * modules/vasnprintf (Depends-on): Add memchr.
18119
18120 2009-06-07  Jim Meyering  <meyering@redhat.com>
18121
18122         hash: declare some functions with the warn_unused_result attribute
18123         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18124
18125 2009-06-07  Bruno Haible  <bruno@clisp.org>
18126
18127         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18128         Reported by Eric Blake.
18129
18130 2009-06-06  Eric Blake  <ebb9@byu.net>
18131
18132         test-alignof: fix typo with long double
18133         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18134         compiler error.
18135
18136 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18137
18138         Escape non-texinfo { and }s.
18139         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18140         markup error.
18141
18142 2009-06-04  Jim Meyering  <meyering@redhat.com>
18143
18144         gitlog-to-changelog: don't infloop on an empty commit log
18145         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18146         Reported by Boris Petersen <transacid@centerim.org>.
18147
18148 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18149
18150         version-etc: extend for packagers
18151         Add three new configure options, intended for packagers:
18152           --with-packager="packager name"
18153           --with-packager-version="packager-specific version"
18154           --with-packager-bug-reports="packager bug reporting"
18155         An example with coreutils:
18156           $ ./configure \
18157             --with-packager=Gentoo \
18158             --with-packager-bug-report=http://bugs.gentoo.org/ \
18159             --with-packager-version="patchset 1.6"
18160           $ ./src/ls --version | head -n2
18161           ls (GNU coreutils) 7.1-dirty
18162           Packaged by Gentoo (patchset 1.6)
18163         Note that the bug reporting info via --help doesn't show up because
18164         coreutils uses its own custom emit_bug_reporting_address() implementation
18165         in src/system.h.  If it didn't, it'd look like:
18166           $ ./src/ls --help | tail -n4
18167           Report bugs to <bug-coreutils@gnu.org>.
18168           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18169           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18170           General help using GNU software: <http://www.gnu.org/gethelp/>.
18171         * lib/version-etc.c: Print new information, if provided.
18172         * m4/version-etc.m4: New file.
18173         * modules/version-etc (Files): Add m4/version-etc.m4.
18174         (configure.ac): Add gl_VERSION_ETC.
18175
18176 2009-05-31  Bruno Haible  <bruno@clisp.org>
18177
18178         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18179         and 'int64_t'.
18180         * modules/alignof-tests (Dependencies): Add stdint.
18181         Reported by Eric Blake.
18182
18183 2009-05-31  Bruno Haible  <bruno@clisp.org>
18184
18185         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18186         restriction due to compiler bugs.
18187         Reported by Eric Blake.
18188
18189 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18190             Bruno Haible  <bruno@clisp.org>
18191
18192         Fix test-alignof failure.
18193         * lib/alignof.h (alignof_slot): New macro.
18194         (alignof_type): New macro, with the same semantics as the previous
18195         'alignof'.
18196         (alignof): Alias to alignof_slot.
18197         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18198         check that the results are usable as constant expressions.
18199
18200 2009-05-31  Bruno Haible  <bruno@clisp.org>
18201
18202         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18203         * tests/test-memchr.c (main): Check that memchr does not read past the
18204         first occurrence of the byte.
18205         * tests/test-strstr.c (main): Update comment.
18206         Suggested by Eric Blake.
18207
18208 2009-05-30  Bruno Haible  <bruno@clisp.org>
18209
18210         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18211         detail how to use dumpbin.
18212         Reported by David Byron <dbyron@dbyron.com>.
18213
18214 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18215
18216         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18217
18218 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18219
18220         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18221
18222 2009-05-28  Bruno Haible  <bruno@clisp.org>
18223
18224         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18225         build-aux/ files.
18226
18227 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18228
18229         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18230
18231 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18232
18233         * gnulib-tool (sed_transform_main_lib_file)
18234         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18235         regexps.
18236
18237 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18238
18239         * tests/test-strstr.c: Add another self-test.
18240         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18241         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18242
18243 2009-05-23  Bruno Haible  <bruno@clisp.org>
18244
18245         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18246         change.
18247
18248 2009-05-21  Bruno Haible  <bruno@clisp.org>
18249
18250         Simplify use of mode_t varargs.
18251         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18252         uses 'mode_t' or 'int'.
18253         * lib/openat.c (openat): Likewise.
18254         * lib/open-safer.c (open_safer): Likewise.
18255         * m4/mode_t.m4: New file.
18256         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18257         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18258         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18259         * modules/open (Files): Add m4/mode_t.m4.
18260         * modules/openat (Files): Likewise.
18261         * modules/fcntl-safer (Files): Likewise.
18262         Suggested by Eric Blake.
18263
18264 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18265
18266         * doc/glibc-functions/fallocate.texi: New file.
18267         * doc/gnulib.texi: Include it.
18268
18269 2009-05-21  Eric Blake  <ebb9@byu.net>
18270             Bruno Haible  <bruno@clisp.org>
18271
18272         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18273         invocations.
18274         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18275
18276 2009-05-21  Eric Blake  <ebb9@byu.net>
18277             Bruno Haible  <bruno@clisp.org>
18278
18279         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18280         include_next. Fix of 2008-11-20 commit.
18281         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18282         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18283         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18284         NEXT_MATH_H.
18285         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18286         instead of NEXT_MATH_H.
18287
18288 2009-05-21  Bruno Haible  <bruno@clisp.org>
18289
18290         Avoid redefinition warnings for SIZE_MAX.
18291         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18292         Reported by Simon Josefsson.
18293
18294 2009-05-21  Bruno Haible  <bruno@clisp.org>
18295
18296         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18297         AC_CACHE_VAL.
18298
18299 2009-05-20  Bruno Haible  <bruno@clisp.org>
18300
18301         Make zeroptr.h work on mingw.
18302         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18303         mprotect.
18304         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18305         * modules/memchr2-tests (configure.ac): Likewise.
18306         * modules/memcmp-tests (configure.ac): Likewise.
18307         * modules/memmem-tests (configure.ac): Likewise.
18308         * modules/memrchr-tests (configure.ac): Likewise.
18309         Reported by Simon Josefsson.
18310
18311 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18312
18313         * tests/test-glob.c: Include string.h for strcmp prototype.
18314
18315 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18316
18317         * modules/getdelim (Depends-on): Add explicit stdint, although it
18318         was implicitly already pulled in via realloc-posix.
18319         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18320
18321 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18322
18323         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18324         G. Christensen" <tgc@jupiterrise.com>.
18325         * m4/sys_socket_h.m4: Check for sa_family_t.
18326         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18327         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18328         * tests/test-sys_socket.c: Check that sa_family_t works.
18329
18330 2009-05-18  Eric Blake  <ebb9@byu.net>
18331
18332         maint.mk: allow gnulib_dir in VPATH build
18333         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18334
18335 2009-05-15  Jim Meyering  <meyering@redhat.com>
18336
18337         maint.mk: Give gnulib_dir a default definition.
18338         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18339         Thus, most packages no longer need to specify this variable in cfg.mk
18340
18341 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18342
18343         rename.m4: fix typos that would make non-mingw cross-configure fail
18344         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18345
18346 2009-05-13  Eric Blake  <ebb9@byu.net>
18347
18348         mmap-anon: avoid out-of-order autoconf expansion
18349         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18350         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18351         * modules/memchr-tests (Depends-on): Add extensions.
18352         * modules/memchr2-tests (Depends-on): Add extensions.
18353         * modules/memcmp-tests (Depends-on): Add extensions.
18354         * modules/memmem-tests (Depends-on): Add extensions.
18355         * modules/memrchr-tests (Depends-on): Add extensions.
18356
18357 2009-05-13  Bruno Haible  <bruno@clisp.org>
18358
18359         Make some tests ISO C 99 compliant.
18360         * tests/zerosize-ptr.h: New file.
18361         * tests/test-memchr.c: Include zerosize-ptr.h.
18362         (main): Use a zero-size object pointer instead of NULL.
18363         * tests/test-memchr2.c: Include zerosize-ptr.h.
18364         (main): Use a zero-size object pointer instead of NULL.
18365         * tests/test-memcmp.c: Include zerosize-ptr.h.
18366         (main): Use a zero-size object pointer instead of NULL.
18367         * tests/test-memmem.c: Include zerosize-ptr.h.
18368         (main): Use a zero-size object pointer instead of NULL.
18369         * tests/test-memrchr.c: Include zerosize-ptr.h.
18370         (main): Use a zero-size object pointer instead of NULL.
18371         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18372         m4/mmap-anon.m4.
18373         (Depends-on): Add getpagesize.
18374         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18375         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18376         m4/mmap-anon.m4.
18377         (Depends-on): Add getpagesize.
18378         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18379         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18380         m4/mmap-anon.m4.
18381         (Depends-on): Add getpagesize.
18382         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18383         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18384         m4/mmap-anon.m4.
18385         (Depends-on): Add getpagesize.
18386         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18387         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18388         m4/mmap-anon.m4.
18389         (Depends-on): Add getpagesize.
18390         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18391
18392 2009-05-12  Bruno Haible  <bruno@clisp.org>
18393
18394         Tests for module 'alignof'.
18395         * modules/alignof-tests: New file.
18396         * tests/test-alignof.c: New file.
18397
18398 2009-05-12  Bruno Haible  <bruno@clisp.org>
18399
18400         Fix alignof macro.
18401         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18402         vendor compilers that are always correct.
18403
18404 2009-05-12  Bruno Haible  <bruno@clisp.org>
18405
18406         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18407         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18408         not whether its fully works.
18409
18410 2009-05-12  Bruno Haible  <bruno@clisp.org>
18411
18412         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18413
18414 2009-05-12  Jim Meyering  <meyering@redhat.com>
18415
18416         * top/maint.mk: Adjust backslash alignment.
18417
18418 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18419
18420         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18421
18422 2009-05-11  Eric Blake  <ebb9@byu.net>
18423
18424         argp: avoid undefined behavior
18425         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18426         macros.
18427
18428 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18429
18430         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18431         user.name to prevent git commit from complaining.
18432
18433 2009-05-10  Bruno Haible  <bruno@clisp.org>
18434
18435         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18436         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18437         it rewrites every file name only once.
18438         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18439
18440 2009-05-08  Bruno Haible  <bruno@clisp.org>
18441
18442         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18443         instead of 'max'.
18444
18445 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18446
18447         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18448         sockaddr_storage test.
18449
18450 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18451
18452         * modules/sys_socket (Makefile.am): Substitute
18453         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18454         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18455         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18456         * tests/test-sys_socket.c: Check sockaddr_storage.
18457
18458 2009-05-08  Bruno Haible  <bruno@clisp.org>
18459
18460         New module 'alignof'.
18461         * lib/alignof.h: New file.
18462         * modules/alignof: New file.
18463
18464 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18465             Bruno Haible  <bruno@clisp.org>
18466
18467         Fix test-file-has-acl on FreeBSD.
18468         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18469         mask is implicitly added.
18470         * tests/test-file-has-acl.c: Include <signal.h>.
18471         (main): Terminate the test after 5 seconds.
18472         * modules/acl-tests (configure.ac): Check for alarm function.
18473
18474 2009-05-04  Bruno Haible  <bruno@clisp.org>
18475
18476         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18477         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18478         * modules/errno (configure.ac): Drop AC_REQUIRE.
18479         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18480         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18481
18482 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18483
18484         * modules/glob-tests: New module.
18485         * tests/test-glob.c: Add.
18486
18487 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18488
18489         * modules/fnmatch-tests: New module.
18490         * tests/test-fnmatch.c: Add.
18491
18492 2009-05-04  Eric Blake  <ebb9@byu.net>
18493
18494         maint: make the new no-submodule-changes rule VPATH-safe
18495         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18496
18497 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18498             Bruno Haible  <bruno@clisp.org>
18499
18500         acl: Fix infinite loop on FreeBSD.
18501         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18502         of return value from acl_get_entry.
18503         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18504         Likewise.
18505
18506 2009-05-03  Bruno Haible  <bruno@clisp.org>
18507
18508         * lib/acl-internal.h (acl_entries): Clarify return value.
18509         * lib/acl_entries.c (acl_entries): Likewise.
18510
18511 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18512
18513         Bug fix in acl module.
18514         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18515
18516 2009-05-03  Bruno Haible  <bruno@clisp.org>
18517
18518         Create gperf-generated file in the source dir, not in the build dir.
18519         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18520         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18521         * modules/unicase/locale-language (unicase/locale-languages.h):
18522         Likewise.
18523         * modules/unicase/special-casing (unicase/special-casing-table.h):
18524         Likewise.
18525         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18526         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18527         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18528         Reported by Ralf Wildenhues.
18529
18530 2009-05-03  Bruno Haible  <bruno@clisp.org>
18531
18532         * modules/fnmatch (Description, configure.ac): Taken from
18533         fnmatch-posix.
18534         * modules/fnmatch-posix: Turn into a symbolic reference to the
18535         'fnmatch' module, and deprecate.
18536         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18537
18538 2009-05-03  Bruno Haible  <bruno@clisp.org>
18539
18540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18541         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18542         Reported by Ralf Wildenhues.
18543
18544 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18545
18546         * m4/fnmatch.m4: Fix fnmatch re-define.
18547
18548 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18549
18550         priv-set: new module and tests; adapt write-any-file
18551         * lib/priv-set.c: New file.
18552         * lib/priv-set.h: New file.
18553         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18554         * lib/write-any-file.c: Simplify by using priv-set module.
18555         * m4/priv-set.m4: New file.
18556         * modules/priv-set: New file.
18557         * modules/unlinkdir: Add dependency on priv-set module.
18558         * modules/write-any-file: Likewise.
18559
18560         Tests for module 'priv-set'.
18561         * modules/priv-set-tests: New file.
18562         * tests/test-priv-set.c: New file.
18563
18564 2009-05-03  Jim Meyering  <meyering@redhat.com>
18565             Bruno Haible  <bruno@clisp.org>
18566
18567         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18568         use the converted UTF-8 variant of the name instead.
18569
18570 2009-05-03  Jim Meyering  <meyering@redhat.com>
18571
18572         tests: tighten some getdate tests
18573         * tests/test-getdate.c (main): Tighten tests: require equality,
18574         not just greater than.  Set TZ envvar to UTC0.
18575
18576 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18577
18578         getdate: correctly interpret "next monday" when run on a Monday
18579         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18580         that e.g., "next tues" (when run on a tuesday) results in a date
18581         that is one week in the future, and not today's date.
18582         I.e., add a week when the wday is the same as the current one.
18583         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18584         and earlier by Martin Bernreuther and Jan Minář.
18585         * tests/test-getdate.c (main): Check that "next DAY" is always in
18586         the future and that "last DAY" is always in the past.
18587
18588 2009-05-02  Jim Meyering  <meyering@redhat.com>
18589
18590         build: ensure that a release build fails when a submodule is unclean
18591         * top/maint.mk (no-submodule-changes): New rule.
18592         (alpha beta major): Depend on it.
18593
18594 2009-05-02  Bruno Haible  <bruno@clisp.org>
18595
18596         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18597         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18598         shell variable gl_fnmatch_required to detect which variant is
18599         requested.
18600         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18601         gl_FUNC_FNMATCH_POSIX.
18602         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18603         exclude fnmatch-posix.
18604
18605 2009-05-02  Bruno Haible  <bruno@clisp.org>
18606
18607         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18608         * modules/mbsrtowcs (License): Change to LGPLv2+.
18609         * modules/strnlen1 (License): Likewise.
18610         Reported by Simon Josefsson.
18611
18612 2009-05-02  Bruno Haible  <bruno@clisp.org>
18613
18614         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18615         "cross".
18616         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18617         gnulib-tool was called with option --source-base=lib.
18618
18619 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18620
18621         Use automake *-local hooks without commands, for extensibility.
18622         * modules/localcharset (Makefile.am): Rename install-exec-local
18623         rule to install-exec-localcharset, and make it a prerequisite of
18624         install-exec-local.  Likewise, rename the uninstall-local rule to
18625         uninstall-localcharset, and make it a prerequisite of the former.
18626
18627 2009-05-01  Bruno Haible  <bruno@clisp.org>
18628
18629         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
18630         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18631         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
18632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
18633         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
18634         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18635         m4/locale-zh.m4, m4/codeset.m4.
18636
18637         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18638         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
18639         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18640         m4/locale-zh.m4.
18641
18642         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
18643         REPLACE_WCRTOMB if mbstate_t must be replaced.
18644         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
18645         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
18646
18647 2009-05-01  Bruno Haible  <bruno@clisp.org>
18648
18649         Avoid compiler warnings when redefining macros defined by <libintl.h>.
18650         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
18651         dngettext, dcngettext, textdomain, bindtextdomain,
18652         bind_textdomain_codeset): Undefine before redefining.
18653
18654 2009-04-30  Bruno Haible  <bruno@clisp.org>
18655
18656         Fix bug introduced on 2009-04-25.
18657         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
18658         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
18659         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
18660         is defined.
18661         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
18662         is defined.
18663         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
18664         is defined.
18665         Reported by Elbert_Pol <elbert.pol@gmail.com>.
18666
18667 2009-04-28  Bruno Haible  <bruno@clisp.org>
18668
18669         Comment tweaks.
18670         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
18671         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
18672         * lib/unicase.h (u*_casexfrm): Likewise.
18673         Reported by Paolo Bonzini.
18674
18675 2009-04-28  Bruno Haible  <bruno@clisp.org>
18676
18677         Fix a compilation error.
18678         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
18679         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
18680         Reported by Jim Meyering.
18681
18682 2009-04-27  Bruno Haible  <bruno@clisp.org>
18683
18684         New module 'libunistring'.
18685         * modules/libunistring: New file.
18686         * m4/libunistring.m4: New file.
18687         * MODULES.html.sh (Unicode string functions): Add it.
18688
18689 2009-04-27  Eric Blake  <ebb9@byu.net>
18690
18691         maint.mk: allow package-specific header to provide <config.h>
18692         * top/maint.mk (sc_require_config_h): New variable.
18693         (sc_require_config_h, sc_require_config_h_first): Use it.
18694
18695 2009-04-27  Simon Josefsson  <simon@josefsson.org>
18696
18697         * top/maint.mk (sc_avoid_if_before_free): Except
18698         useless-if-before-free script.
18699
18700 2009-04-27  Eric Blake  <ebb9@byu.net>
18701
18702         maintainer-makefile: depend on all required helper scripts
18703         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
18704         useless-if-before-free.
18705         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
18706         version, rather than assuming gnulib checkout is available.
18707         Reported by Simen Josefsson.
18708
18709 2009-04-26  Bruno Haible  <bruno@clisp.org>
18710
18711         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
18712         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
18713         "../" or "..".
18714
18715 2009-04-26  Bruno Haible  <bruno@clisp.org>
18716
18717         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
18718         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
18719         AC_LIB_HAVE_LINKFLAGS.
18720
18721 2009-04-26  Bruno Haible  <bruno@clisp.org>
18722
18723         Simplify calling convention of u*_conv_from_encoding.
18724         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
18725         u32_conv_from_encoding): Expect a resultbuf argument and return the
18726         result directly as a pointer.
18727         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
18728         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
18729         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
18730         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
18731         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
18732         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
18733         Update.
18734         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
18735         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
18736         * lib/vasnprintf.c (VASNPRINTF): Update.
18737         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
18738         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
18739         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
18740         * NEWS: Mention the change.
18741
18742 2009-04-26  Bruno Haible  <bruno@clisp.org>
18743
18744         Simplify calling convention of u*_conv_to_encoding.
18745         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
18746         u32_conv_to_encoding): Expect a resultbuf argument and return the
18747         result directly as a pointer.
18748         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18749         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
18750         freeing scaled_offsets if mem_iconveha failed.
18751         * lib/unicase/u-casexfrm.h (FUNC): Update.
18752         * lib/uninorm/u-normxfrm.h (FUNC): Update.
18753         * lib/vasnprintf.c (VASNPRINTF): Update.
18754         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
18755         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
18756         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
18757         * NEWS: Mention the change.
18758
18759 2009-04-26  Bruno Haible  <bruno@clisp.org>
18760
18761         Avoid test failures on AIX and OSF/1.
18762         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
18763         malloc(0).
18764         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18765         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
18766         Likewise.
18767         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
18768         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
18769         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
18770         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
18771         * doc/posix-functions/malloc.texi: Document the portability problem
18772         related to malloc(0).
18773
18774 2009-04-26  Bruno Haible  <bruno@clisp.org>
18775
18776         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
18777         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
18778         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
18779
18780 2009-04-25  Bruno Haible  <bruno@clisp.org>
18781
18782         Avoid link error when creating a namespace clean library.
18783         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
18784         as macro with arguments if already defined as an alias.
18785         * lib/signbitf.c (gl_signbitf): Don't undefine.
18786         * lib/signbitd.c (gl_signbitd): Don't undefine.
18787         * lib/signbitl.c (gl_signbitl): Don't undefine.
18788
18789 2009-04-25  Jim Meyering  <meyering@redhat.com>
18790
18791         vc-list-files: fix another quoting bug
18792         * build-aux/vc-list-files: Avoid sed backslash expansion
18793         of pathological directory names.
18794
18795 2009-04-25  Eric Blake  <ebb9@byu.net>
18796
18797         vc-list-files: fix shell quoting error
18798         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
18799         timestamp.
18800
18801 2009-04-25  Jim Meyering  <meyering@redhat.com>
18802
18803         vc-list-files: restore lost functionality with subdir argument
18804         * build-aux/vc-list-files: When given a non-"." sub-directory
18805         argument, substitute the $dir/ prefix back onto each resulting name.
18806         Otherwise, coreutils' root_tests check would fail.
18807
18808 2009-04-24  Eric Blake  <ebb9@byu.net>
18809
18810         vc-list-files: ignore git symlinks
18811         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
18812         than ls-files, to ignore git symlinks.
18813
18814         maint.mk: import improvements from m4
18815         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
18816         (move_if_change): Delete unused macro.
18817         (news-date-check, vc-diff-check): Support VPATH builds.
18818         (announcement): Likewise.  Split --bootstrap-tools list...
18819         (boostrap-tools): ...into separate list, which can be overridden
18820         in cfg.mk.
18821         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
18822         requiring dependency on useless-if-before-free module.
18823         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
18824         Support VPATH builds.
18825
18826 2009-04-24  Jim Meyering  <meyering@redhat.com>
18827
18828         maint.mk: remove coreutils-specific rules and variables
18829         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
18830         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
18831         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
18832
18833         maint.mk: remove obsolete rule
18834         * top/maint.mk (rel-check): Remove rule.
18835         (WGET, WGETFLAGS): Remove now-unused variables.
18836
18837 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18838
18839         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
18840         consistency.
18841
18842         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
18843         '$(PATH_SEPARATOR)' instead of ':'.
18844
18845 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18846
18847         * lib/getopt1.c (main): Use 'const' for static array.
18848
18849 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18850
18851         * top/maint.mk: Sync with coreutils.
18852         * NEWS: Explain incompatibilities.
18853
18854 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18855             Bruno Haible  <bruno@clisp.org>
18856
18857         Fix cross-compilation results.
18858         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
18859         statement, as third argument of AC_TRY_RUN.
18860         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18861         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18862         Likewise.
18863         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18864         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18865         Likewise.
18866         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18867         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
18868         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
18869
18870 2009-04-20  Bruno Haible  <bruno@clisp.org>
18871
18872         Avoid test failure on mingw.
18873         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
18874
18875 2009-04-20  Bruno Haible  <bruno@clisp.org>
18876
18877         Avoid compilation error on mingw.
18878         * modules/localename-tests (Depends-on): Add locale.
18879
18880 2009-04-19  Bruno Haible  <bruno@clisp.org>
18881
18882         Support for building a shared library on Windows platforms.
18883         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
18884         (main): Test the presence of UNINORM_NFC here.
18885         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
18886         (main): Test the presence of UNINORM_NFD here.
18887         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
18888         (main): Test the presence of UNINORM_NFKC here.
18889         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
18890         (main): Test the presence of UNINORM_NFKD here.
18891
18892 2009-04-19  Bruno Haible  <bruno@clisp.org>
18893
18894         Avoid a compiler warning.
18895         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
18896         Change type of variable 'sequence'.
18897
18898 2009-04-19  Bruno Haible  <bruno@clisp.org>
18899
18900         * modules/configmake (Makefile.am): When the contents of configmake.h
18901         does not change, arrange to preserve its modification time.
18902
18903 2009-04-17  Simon Josefsson  <simon@josefsson.org>
18904
18905         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
18906         gettext domain.
18907
18908 2009-04-16  Jim Meyering  <meyering@redhat.com>
18909
18910         useless-if-before-free: improve conversion code
18911         * build-aux/useless-if-before-free: Adjust code-in-comment to match
18912         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
18913
18914 2009-04-14  Bruno Haible  <bruno@clisp.org>
18915
18916         * modules/fcntl (Depends-on): Add extensions.
18917         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
18918
18919 2009-04-12  Ben Pfaff  <blp@gnu.org>
18920
18921         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
18922         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
18923
18924 2009-03-20  Ben Pfaff  <blp@gnu.org>
18925
18926         Make rename replace existing destinations on Windows.
18927         * m4/rename.m4: Add test for Mingw.
18928         * lib/rename.c: Add rename replacement that uses MoveFileEx with
18929         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
18930         * doc/posix-functions/rename.texi: Document.
18931
18932 2009-04-10  Bruno Haible  <bruno@clisp.org>
18933
18934         New include file "iconveh.h".
18935         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
18936         * lib/striconveh.h: Include it.
18937         (enum iconv_ilseq_handler): Remove definition.
18938         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
18939         striconveh.h.
18940         * lib/striconveha.c: Include striconveh.h.
18941         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
18942         * modules/striconveh (Files): Add lib/iconveh.h.
18943         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
18944         lib/striconveh.h.
18945
18946 2009-04-10  Bruno Haible  <bruno@clisp.org>
18947
18948         * lib/uniconv.h: Update comment.
18949
18950 2009-04-10  Bruno Haible  <bruno@clisp.org>
18951
18952         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
18953         always.
18954         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
18955         * lib/unistr/u16-mbtouc-aux.c: Likewise.
18956         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
18957         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
18958         "unistring-notinline.h", so that the function gets defined always.
18959         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
18960         * lib/unistr/u8-uctomb.c: Likewise.
18961         * lib/unistr/u16-mbtouc.c: Likewise.
18962         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
18963         * lib/unistr/u16-uctomb.c: Likewise.
18964         * lib/unistr/u32-mbtouc.c: Likewise.
18965         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
18966         * lib/unistr/u32-uctomb.c: Likewise.
18967
18968 2009-04-10  Bruno Haible  <bruno@clisp.org>
18969
18970         Mark 'utime' obsolete.
18971         * modules/utime (Status, Notice): New sections.
18972         Suggested by Jim Meyering.
18973
18974         Fix cross-compile guess for utime test.
18975         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
18976         autoconf.
18977         * doc/posix-functions/utime.texi: Give more precisions.
18978         Reported by Jan <ipif@ymail.com>.
18979
18980 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
18981
18982         filevercmp: correct today's change
18983         * lib/filevercmp.c: Also handle coreutils' test inputs.
18984         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
18985
18986         Fix regression in 'filevercmp' module. Thanks Sven Joachim
18987         for reporting it.
18988         * lib/filevercmp.c: Special handle for "", "." and "..".
18989         * tests/test-filevercmp.c: Enlarge the set suite.
18990
18991 2009-04-07  Jim Meyering  <meyering@redhat.com>
18992
18993         useless-if-before-free: show how to remove braced useless free, too
18994         * build-aux/useless-if-before-free: still only in a comment, though.
18995
18996 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
18997
18998         maint.mk: import changes to syntax-check macros from coreutils
18999         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19000         Use them in the relevant macros.
19001
19002 2009-04-06  Bruno Haible  <bruno@clisp.org>
19003
19004         Fix unportable use of bit-fields.
19005         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19006         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19007         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19008
19009 2009-04-06  Bruno Haible  <bruno@clisp.org>
19010
19011         Avoid test failures on AIX and OSF/1.
19012         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19013         that malloc(0) = NULL.
19014         * tests/unicase/test-u8-tolower.c (check): Likewise.
19015         * tests/unicase/test-u8-totitle.c (check): Likewise.
19016         * tests/unicase/test-u8-toupper.c (check): Likewise.
19017         * tests/unicase/test-u16-casefold.c (check): Likewise.
19018         * tests/unicase/test-u16-tolower.c (check): Likewise.
19019         * tests/unicase/test-u16-totitle.c (check): Likewise.
19020         * tests/unicase/test-u16-toupper.c (check): Likewise.
19021         * tests/unicase/test-u32-casefold.c (check): Likewise.
19022         * tests/unicase/test-u32-tolower.c (check): Likewise.
19023         * tests/unicase/test-u32-totitle.c (check): Likewise.
19024         * tests/unicase/test-u32-toupper.c (check): Likewise.
19025         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19026         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19027         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19028         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19029         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19030         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19031         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19032         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19033         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19034         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19035         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19036         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19037
19038 2009-04-05  Bruno Haible  <bruno@clisp.org>
19039
19040         Work around an autoconf limitation.
19041         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19042         comment line if it would be longer than 3 KB.
19043
19044 2009-04-05  Bruno Haible  <bruno@clisp.org>
19045
19046         Avoid test failure with libiconv-1.13.
19047         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19048         of the expected test results.
19049
19050 2009-04-05  Bruno Haible  <bruno@clisp.org>
19051
19052         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19053         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19054         that it should be installed.
19055
19056 2009-04-05  Bruno Haible  <bruno@clisp.org>
19057
19058         * gnulib-tool: New option --copy-file.
19059         (func_usage): Document it.
19060         (func_dest_tmpfilename): Moved out of func_import.
19061         (func_add_file, func_update_file): New functions, extracted from
19062         func_import.
19063         (func_import): Update.
19064
19065 2009-04-05  Karl Berry  <karl@gnu.org>
19066
19067         * README: prominently mention gnulib-tool.
19068         Rearrange sections so getting the code is near the top.
19069
19070 2009-04-05  Bruno Haible  <bruno@clisp.org>
19071
19072         * lib/unicase.h: Mention u*_cmp2.
19073         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19074         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19075         * lib/unicase/ulc-casecmp.c: Likewise.
19076         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19077         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19078         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19079         unistr/u8-cmp.
19080         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19081         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19082         unistr/u16-cmp.
19083         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19084         unistr/u32-cmp.
19085
19086         * lib/uninorm.h: Mention u*_cmp2.
19087         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19088         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19089         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19090         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19091         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19092         unistr/u8-cmp.
19093         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19094         unistr/u16-cmp.
19095         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19096         unistr/u32-cmp.
19097
19098         New module 'unistr/u32-cmp2'.
19099         * lib/unistr/u32-cmp2.c: New file.
19100         * modules/unistr/u32-cmp2: New file.
19101
19102         New module 'unistr/u16-cmp2'.
19103         * lib/unistr/u16-cmp2.c: New file.
19104         * modules/unistr/u16-cmp2: New file.
19105
19106         New module 'unistr/u8-cmp2'.
19107         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19108         * lib/unistr/u8-cmp2.c: New file.
19109         * lib/unistr/u-cmp2.h: New file.
19110         * modules/unistr/u8-cmp2: New file.
19111
19112 2009-04-05  Bruno Haible  <bruno@clisp.org>
19113
19114         * lib/unictype.h (uc_property_is_valid): New macro.
19115         * tests/unictype/test-pr_byname.c (main): Use it.
19116
19117         * lib/unistr.h: Doc fixes.
19118         * lib/uniconv.h: Doc fixes.
19119         * lib/unictype.h: Doc fixes.
19120
19121 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19122
19123         Port coreutils 7.2 to Solaris 8.
19124
19125         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19126         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19127         for Solaris 8.  This is a bit of a hack, as it means it's the
19128         caller's responsibility to add -lnsl if needed, but most likely it
19129         won't be needed since only getaddrinfo uses this and getaddrinfo
19130         isn't needed on Solaris 8.
19131
19132         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19133         problem to Solaris 8 encountered with coreutils 7.2, which
19134         resulted in a message "fnmatch.c:292: warning: passing argument 4
19135         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19136         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19137
19138 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19139
19140         * m4/ld-version-script.m4: Add FIXME comment.
19141
19142 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19143
19144         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19145         SOVERSION variable.
19146
19147 2009-04-02  Bruno Haible  <bruno@clisp.org>
19148
19149         * Makefile (info, html, dvi, pdf): Combine the rules.
19150         Suggested by Jim Meyering.
19151
19152 2009-04-01  Bruno Haible  <bruno@clisp.org>
19153
19154         * Makefile (info, html, dvi, pdf): New targets.
19155         Reported by Reuben Thomas <rrt@sc3d.org>.
19156
19157 2009-04-01  Bruno Haible  <bruno@clisp.org>
19158
19159         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19160         can be put into PATH.
19161         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19162
19163 2009-04-01  Bruno Haible  <bruno@clisp.org>
19164
19165         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19166
19167 2009-04-01  Bruno Haible  <bruno@clisp.org>
19168
19169         Rename module 'visibility'.
19170         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19171         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19172         * doc/gnulib.texi: Update.
19173         * MODULES.html.sh (Misc): Update.
19174         * NEWS: Mention the change.
19175
19176 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19177
19178         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19179         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19180         Eric Blake <ebb9@byu.net> for review.
19181         * MODULES.html.sh: Add lib-msvc-compat.
19182         * doc/gnulib.texi: Link to new section.
19183         * m4/ld-output-def.m4: New file.
19184         * doc/ld-output-def.texi: New file.
19185
19186 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19187
19188         Rename ld-version-script to lib-symbol-versions.  Suggested by
19189         Bruno Haible <bruno@clisp.org>.
19190         * modules/ld-version-script: Renamed to lib-symbol-versions.
19191         * doc/ld-version-script.texi: Fix module name.
19192         * MODULES.html.sh: Add lib-symbol-versions.
19193
19194 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19195
19196         * modules/u64-tests: New file.
19197         * tests/test-u64.c: New file.
19198
19199 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19200
19201         * MODULES.html.sh: Mention u64.
19202         * modules/u64: New module.
19203         * modules/crypto/sha512: Depend on u64 module instead of providing
19204         u64.h.
19205
19206 2009-03-27  Eric Blake  <ebb9@byu.net>
19207
19208         test-strerror: make debugging EAI_SYSTEM easier
19209         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19210         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19211         failure was EAI_SYSTEM.
19212
19213 2009-03-25  Bruno Haible  <bruno@clisp.org>
19214
19215         Fix a problem with --enable-relocatable on Solaris 7.
19216         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19217         since 2008-02-24.
19218
19219 2009-03-25  Eric Blake  <ebb9@byu.net>
19220
19221         test-sockets: avoid gcc warning
19222         * tests/test-sockets.c (main): Silence compiler warning.
19223
19224 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19225
19226         New modules nproc, pthread, contributed by Glen Lenker.
19227
19228         * MODULES.html.sh: Add pthread, nproc.
19229         * lib/nproc.c: New file.
19230         * lib/nproc.h: New file.
19231         * lib/pthread.in.h: New file.
19232         * m4/pthread.m4: New file.
19233         * modules/nproc: New file.
19234         * modules/pthread: New file.
19235
19236 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19237
19238         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19239         New variable.
19240
19241 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19242
19243         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19244         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19245         * tests/test-filevercmp.c: Add tests for backup suffixes.
19246
19247 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19248
19249         * modules/stdlib (Depends-on): Add stdint, needed when defining
19250         struct random_data on, for example, HP-UX 10.20.  Reported by
19251         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19252
19253 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19254
19255         * lib/readline.c (readline): Call fflush on stdout after printing
19256         prompt.
19257
19258 2009-03-20  Bruno Haible  <bruno@clisp.org>
19259
19260         Remove dependency from 'close' module to -lws2_32 on native Windows.
19261         * lib/close-hook.h: New file.
19262         * lib/close-hook.c: New file.
19263         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19264         w32sock.h.
19265         (_gl_close_fd_maybe_socket): Remove function.
19266         (rpl_close): Invoke execute_all_close_hooks instead of
19267         _gl_close_fd_maybe_socket.
19268         * lib/sockets.c: Include close-hook.h, w32sock.h.
19269         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19270         (close_sockets_hook): New variable.
19271         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19272         (gl_sockets_cleanup): Unregister it.
19273         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19274         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19275         * modules/close-hook: New file.
19276         * modules/close (Files): Remove lib/w32sock.h.
19277         (Depends-on): Add close-hook.
19278         (Link): Remove section.
19279         * modules/sockets (Files): Add lib/w32sock.h.
19280         (Depends-on): Add close-hook.
19281         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19282         invocation.
19283         * NEWS: Mention that LIB_CLOSE is gone.
19284
19285 2009-03-23  Eric Blake  <ebb9@byu.net>
19286
19287         signal-tests: test previous patch
19288         * tests/test-signal.c: New file.
19289         * modules/signal-tests: Likewise.
19290
19291         signal.h: always support 'volatile sig_atomic_t'
19292         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19293         (gl_SIGNAL_H_DEFAULTS): Add a default.
19294         * modules/signal (Makefile.am): Substitute if needed.
19295         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19296         users can blindly add volatile.
19297         * doc/posix-headers/signal.texi (signal.h): Document it.
19298         Reported by Matthew Woehlke.
19299
19300 2009-03-23  Jim Meyering  <meyering@redhat.com>
19301
19302         pathmax: PATH_MAX: use pathconf only when available
19303         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19304         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19305         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19306         This avoids a link failure in a PSP cross-compilation environment
19307         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19308
19309         * lib/vasnprintf.c (divide): Fix typo in comment.
19310
19311 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19312
19313         * gnulib-tool (func_filter_filelist): Fix comment.
19314
19315 2009-03-20  Bruno Haible  <bruno@clisp.org>
19316
19317         Make sockets.h self-contained.
19318         * lib/sockets.c: Include sockets.h first.
19319         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19320
19321 2009-03-19  Eric Blake  <ebb9@byu.net>
19322
19323         doc: mention more functions added in cygwin 1.7.0
19324         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19325         addition.
19326         * doc/posix-functions/log2f.texi: Likewise.
19327
19328 2009-03-19  Jim Meyering  <meyering@redhat.com>
19329
19330         fsusage: avoid syntax error due to statement-before-declaration
19331         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19332         after all declarations.  Reported by Matthew Woehlke in
19333         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19334
19335 2009-03-18  Eric Blake  <ebb9@byu.net>
19336
19337         build-aux/compile: sync from automake
19338         * build-aux/compile: New file, from automake.
19339         * config/srclist.txt: Mention build-aux/compile.
19340
19341 2009-03-17  Bruno Haible  <bruno@clisp.org>
19342
19343         * lib/git-merge-changelog.c: Fix typo in comment.
19344         Reported by Reuben Thomas <rrt@sc3d.org>.
19345
19346 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19347
19348         * m4/regex.m4: update and improve help for
19349         --without-included-regex.
19350
19351 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19352
19353         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19354         failure on missing include files.
19355
19356 2009-03-17  Eric Blake  <ebb9@byu.net>
19357
19358         doc: mention more functions added in cygwin 1.7.0
19359         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19360         addition.
19361         * doc/posix-functions/fwscanf.texi: Likewise.
19362         * doc/posix-functions/swprintf.texi: Likewise.
19363         * doc/posix-functions/swscanf.texi: Likewise.
19364         * doc/posix-functions/vfwprintf.texi: Likewise.
19365         * doc/posix-functions/vfwscanf.texi: Likewise.
19366         * doc/posix-functions/vswprintf.texi: Likewise.
19367         * doc/posix-functions/vswscanf.texi: Likewise.
19368         * doc/posix-functions/vwprintf.texi: Likewise.
19369         * doc/posix-functions/vwscanf.texi: Likewise.
19370         * doc/posix-functions/wcscasecmp.texi: Likewise.
19371         * doc/posix-functions/wcsdup.texi: Likewise.
19372         * doc/posix-functions/wcsftime.texi: Likewise.
19373         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19374         * doc/posix-functions/wprintf.texi: Likewise.
19375         * doc/posix-functions/wscanf.texi: Likewise.
19376         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19377
19378 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19379
19380         maint.mk: really add $(AM_MAKEFLAGS)
19381         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19382         was inadvertently omitted in the last commit.
19383         Spotted by Bruno Haible.
19384
19385         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19386         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19387         $(AM_MAKEFLAGS)' rather than plain `make'.
19388
19389         gnulib-tool: execute $MAKE not make
19390         * gnulib-tool: Default $MAKE to 'make'.
19391         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19392         than make.  Initialize $MAKE in the do-autobuild script.
19393
19394         gnulib-tool: use $MAKE not make in generated files
19395         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19396         make, in generated files.  Initialize $MAKE in the do-autobuild
19397         script.
19398
19399         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19400
19401         GNUmakefile: disable parallelism only for multiple, recursive targets
19402         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19403         additions in the Makefile.
19404         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19405         by Automake.
19406         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19407         are listed on the command line and at least one of them is
19408         listed in $(ALL_RECURSIVE_TARGETS).
19409
19410 2009-03-14  Bruno Haible  <bruno@clisp.org>
19411
19412         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19413         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19414         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19415         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19416         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19417         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19418         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19419         unistr/u8-uctomb.
19420         * modules/unistr/u8-strchr (Depends-on): Likewise.
19421         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19422         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19423         unistr/u16-uctomb.
19424         * modules/unistr/u16-strchr (Depends-on): Likewise.
19425         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19426
19427 2009-03-12  Bruno Haible  <bruno@clisp.org>
19428
19429         Work around select() bug on Interix 3.5.
19430         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19431         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19432         * m4/select.m4: New file.
19433         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19434         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19435         * modules/select (Files): Add m4/select.m4.
19436         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19437         * modules/nanosleep (Depends-on): Add select.
19438         * modules/poll (Depends-on): Likewise.
19439         * doc/posix-functions/select.texi: Mention the Interix bug.
19440         Reported by Markus Duft <mduft@gentoo.org>.
19441
19442         * lib/select.c: Renamed from lib/winsock-select.c.
19443         * modules/select (Files): Add lib/select.c, remove
19444         lib/winsock-select.c.
19445         (configure.ac): Update.
19446
19447 2009-03-12  Jim Meyering  <meyering@redhat.com>
19448
19449         avoid gcc warnings about unused macro definitions
19450         * lib/readtokens.c (STREQ): Remove unused definition.
19451         * lib/xmalloc.c (SIZE_MAX): Likewise.
19452         * lib/openat-die.c (N_): Likewise.
19453         * lib/mountlist.c (SIZE_MAX): Remove definition.
19454         Instead, include <stdint.h>.
19455         * lib/readutmp.c: Likewise.
19456         * modules/readutmp (Depends-on): Add stdint.
19457         * modules/mountlist (Depends-on): Add stdint.
19458         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19459
19460 2009-03-10  Bruno Haible  <bruno@clisp.org>
19461
19462         Tests for module 'mbmemcasecoll'.
19463         * modules/mbmemcasecoll-tests: New file.
19464         * tests/test-mbmemcasecoll1.sh: New file.
19465         * tests/test-mbmemcasecoll2.sh: New file.
19466         * tests/test-mbmemcasecoll3.sh: New file.
19467         * tests/test-mbmemcasecoll.c: New file.
19468
19469         New module 'mbmemcasecoll'.
19470         * lib/mbmemcasecoll.h: New file.
19471         * lib/mbmemcasecoll.c: New file.
19472         * modules/mbmemcasecoll: New file.
19473
19474         * tests/test-mbmemcasecmp.h: New file, extracted from
19475         tests/test-mbmemcasecmp.c.
19476         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19477         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19478         (main): Update.
19479         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19480
19481 2009-03-09  Bruno Haible  <bruno@clisp.org>
19482
19483         Tests for module 'mbmemcasecmp'.
19484         * modules/mbmemcasecmp-tests: New file.
19485         * tests/test-mbmemcasecmp1.sh: New file.
19486         * tests/test-mbmemcasecmp2.sh: New file.
19487         * tests/test-mbmemcasecmp3.sh: New file.
19488         * tests/test-mbmemcasecmp.c: New file.
19489
19490         New module 'mbmemcasecmp'.
19491         * lib/mbmemcasecmp.h: New file.
19492         * lib/mbmemcasecmp.c: New file.
19493         * modules/mbmemcasecmp: New file.
19494
19495 2009-03-09  Bruno Haible  <bruno@clisp.org>
19496
19497         Tests for module 'unicase/ulc-casecoll'.
19498         * modules/unicase/ulc-casecoll-tests: New file.
19499         * tests/unicase/test-ulc-casecoll1.sh: New file.
19500         * tests/unicase/test-ulc-casecoll2.sh: New file.
19501         * tests/unicase/test-ulc-casecoll.c: New file.
19502
19503         New module 'unicase/ulc-casecoll'.
19504         * lib/unicase.h (ulc_casecoll): New declaration.
19505         * lib/unicase/ulc-casecoll.c: New file.
19506         * modules/unicase/ulc-casecoll: New file.
19507
19508         New module 'unicase/ulc-casexfrm'.
19509         * lib/unicase.h (ulc_casexfrm): New declaration.
19510         * lib/unicase/ulc-casexfrm.c: New file.
19511         * modules/unicase/ulc-casexfrm: New file.
19512
19513 2009-03-09  Bruno Haible  <bruno@clisp.org>
19514
19515         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19516         invocations.
19517
19518         * m4/mbscasecmp.m4: Remove file.
19519         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19520         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19521
19522         * m4/mbscasestr.m4: Remove file.
19523         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19524         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19525
19526         * m4/mbschr.m4: Remove file.
19527         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19528         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19529
19530         * m4/mbscspn.m4: Remove file.
19531         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19532         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19533
19534         * m4/mbslen.m4: Remove file.
19535         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19536         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19537
19538         * m4/mbsncasecmp.m4: Remove file.
19539         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19540         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19541
19542         * m4/mbsnlen.m4: Remove file.
19543         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19544         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19545
19546         * m4/mbspbrk.m4: Remove file.
19547         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19548         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19549
19550         * m4/mbspcasecmp.m4: Remove file.
19551         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19552         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19553
19554         * m4/mbsrchr.m4: Remove file.
19555         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19556         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19557
19558         * m4/mbssep.m4: Remove file.
19559         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19560         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19561
19562         * m4/mbsspn.m4: Remove file.
19563         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19564         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19565
19566         * m4/mbsstr.m4: Remove file.
19567         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19568         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19569
19570         * m4/mbstok_r.m4: Remove file.
19571         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19572         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19573
19574         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19575
19576         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19577         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19578
19579         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19580
19581 2009-03-08  Bruno Haible  <bruno@clisp.org>
19582
19583         Tests for module 'unicase/ulc-casecmp'.
19584         * modules/unicase/ulc-casecmp-tests: New file.
19585         * tests/unicase/test-ulc-casecmp1.sh: New file.
19586         * tests/unicase/test-ulc-casecmp2.sh: New file.
19587         * tests/unicase/test-ulc-casecmp.c: New file.
19588
19589         New module 'unicase/ulc-casecmp'.
19590         * lib/unicase.h (ulc_casecmp): New declaration.
19591         * lib/unicase/ulc-casecmp.c: New file.
19592         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19593         'const SRC_UNIT *'.
19594         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19595         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19596         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19597         * modules/unicase/ulc-casecmp: New file.
19598
19599         Tests for module 'unicase/u32-is-cased'.
19600         * modules/unicase/u32-is-cased-tests: New file.
19601         * tests/unicase/test-u32-is-cased.c: New file.
19602
19603         Tests for module 'unicase/u16-is-cased'.
19604         * modules/unicase/u16-is-cased-tests: New file.
19605         * tests/unicase/test-u16-is-cased.c: New file.
19606
19607         Tests for module 'unicase/u8-is-cased'.
19608         * modules/unicase/u8-is-cased-tests: New file.
19609         * tests/unicase/test-u8-is-cased.c: New file.
19610         * tests/unicase/test-is-cased.h: New file.
19611
19612         New module 'unicase/u32-is-cased'.
19613         * lib/unicase/u32-is-cased.c: New file.
19614         * modules/unicase/u32-is-cased: New file.
19615
19616         New module 'unicase/u16-is-cased'.
19617         * lib/unicase/u16-is-cased.c: New file.
19618         * modules/unicase/u16-is-cased: New file.
19619
19620         New module 'unicase/u8-is-cased'.
19621         * lib/unicase/u8-is-cased.c: New file.
19622         * lib/unicase/u-is-cased.h: New file.
19623         * modules/unicase/u8-is-cased: New file.
19624
19625         Tests for module 'unicase/u32-is-casefolded'.
19626         * modules/unicase/u32-is-casefolded-tests: New file.
19627         * tests/unicase/test-u32-is-casefolded.c: New file.
19628
19629         Tests for module 'unicase/u16-is-casefolded'.
19630         * modules/unicase/u16-is-casefolded-tests: New file.
19631         * tests/unicase/test-u16-is-casefolded.c: New file.
19632
19633         Tests for module 'unicase/u8-is-casefolded'.
19634         * modules/unicase/u8-is-casefolded-tests: New file.
19635         * tests/unicase/test-u8-is-casefolded.c: New file.
19636         * tests/unicase/test-is-casefolded.h: New file.
19637
19638         New module 'unicase/u32-is-casefolded'.
19639         * lib/unicase/u32-is-casefolded.c: New file.
19640         * modules/unicase/u32-is-casefolded: New file.
19641
19642         New module 'unicase/u16-is-casefolded'.
19643         * lib/unicase/u16-is-casefolded.c: New file.
19644         * modules/unicase/u16-is-casefolded: New file.
19645
19646         New module 'unicase/u8-is-casefolded'.
19647         * lib/unicase/u8-is-casefolded.c: New file.
19648         * modules/unicase/u8-is-casefolded: New file.
19649
19650         Tests for module 'unicase/u32-is-titlecase'.
19651         * modules/unicase/u32-is-titlecase-tests: New file.
19652         * tests/unicase/test-u32-is-titlecase.c: New file.
19653
19654         Tests for module 'unicase/u16-is-titlecase'.
19655         * modules/unicase/u16-is-titlecase-tests: New file.
19656         * tests/unicase/test-u16-is-titlecase.c: New file.
19657
19658         Tests for module 'unicase/u8-is-titlecase'.
19659         * modules/unicase/u8-is-titlecase-tests: New file.
19660         * tests/unicase/test-u8-is-titlecase.c: New file.
19661         * tests/unicase/test-is-titlecase.h: New file.
19662
19663         New module 'unicase/u32-is-titlecase'.
19664         * lib/unicase/u32-is-titlecase.c: New file.
19665         * modules/unicase/u32-is-titlecase: New file.
19666
19667         New module 'unicase/u16-is-titlecase'.
19668         * lib/unicase/u16-is-titlecase.c: New file.
19669         * modules/unicase/u16-is-titlecase: New file.
19670
19671         New module 'unicase/u8-is-titlecase'.
19672         * lib/unicase/u8-is-titlecase.c: New file.
19673         * modules/unicase/u8-is-titlecase: New file.
19674
19675         Tests for module 'unicase/u32-is-lowercase'.
19676         * modules/unicase/u32-is-lowercase-tests: New file.
19677         * tests/unicase/test-u32-is-lowercase.c: New file.
19678
19679         Tests for module 'unicase/u16-is-lowercase'.
19680         * modules/unicase/u16-is-lowercase-tests: New file.
19681         * tests/unicase/test-u16-is-lowercase.c: New file.
19682
19683         Tests for module 'unicase/u8-is-lowercase'.
19684         * modules/unicase/u8-is-lowercase-tests: New file.
19685         * tests/unicase/test-u8-is-lowercase.c: New file.
19686         * tests/unicase/test-is-lowercase.h: New file.
19687
19688         New module 'unicase/u32-is-lowercase'.
19689         * lib/unicase/u32-is-lowercase.c: New file.
19690         * modules/unicase/u32-is-lowercase: New file.
19691
19692         New module 'unicase/u16-is-lowercase'.
19693         * lib/unicase/u16-is-lowercase.c: New file.
19694         * modules/unicase/u16-is-lowercase: New file.
19695
19696         New module 'unicase/u8-is-lowercase'.
19697         * lib/unicase/u8-is-lowercase.c: New file.
19698         * modules/unicase/u8-is-lowercase: New file.
19699
19700         Tests for module 'unicase/u32-is-uppercase'.
19701         * modules/unicase/u32-is-uppercase-tests: New file.
19702         * tests/unicase/test-u32-is-uppercase.c: New file.
19703
19704         Tests for module 'unicase/u16-is-uppercase'.
19705         * modules/unicase/u16-is-uppercase-tests: New file.
19706         * tests/unicase/test-u16-is-uppercase.c: New file.
19707
19708         Tests for module 'unicase/u8-is-uppercase'.
19709         * modules/unicase/u8-is-uppercase-tests: New file.
19710         * tests/unicase/test-u8-is-uppercase.c: New file.
19711         * tests/unicase/test-is-uppercase.h: New file.
19712
19713         New module 'unicase/u32-is-uppercase'.
19714         * lib/unicase/u32-is-uppercase.c: New file.
19715         * modules/unicase/u32-is-uppercase: New file.
19716
19717         New module 'unicase/u16-is-uppercase'.
19718         * lib/unicase/u16-is-uppercase.c: New file.
19719         * modules/unicase/u16-is-uppercase: New file.
19720
19721         New module 'unicase/u8-is-uppercase'.
19722         * lib/unicase/u8-is-uppercase.c: New file.
19723         * modules/unicase/u8-is-uppercase: New file.
19724
19725         New module 'unicase/u32-is-invariant'.
19726         * lib/unicase/u32-is-invariant.c: New file.
19727         * modules/unicase/u32-is-invariant: New file.
19728
19729         New module 'unicase/u16-is-invariant'.
19730         * lib/unicase/u16-is-invariant.c: New file.
19731         * modules/unicase/u16-is-invariant: New file.
19732
19733         New module 'unicase/u8-is-invariant'.
19734         * lib/unicase/u8-is-invariant.c: New file.
19735         * lib/unicase/invariant.h: New file.
19736         * lib/unicase/u-is-invariant.h: New file.
19737         * modules/unicase/u8-is-invariant: New file.
19738
19739         Tests for module 'unicase/u32-casecoll'.
19740         * modules/unicase/u32-casecoll-tests: New file.
19741         * tests/unicase/test-u32-casecoll.c: New file.
19742
19743         Tests for module 'unicase/u16-casecoll'.
19744         * modules/unicase/u16-casecoll-tests: New file.
19745         * tests/unicase/test-u16-casecoll.c: New file.
19746
19747         Tests for module 'unicase/u8-casecoll'.
19748         * modules/unicase/u8-casecoll-tests: New file.
19749         * tests/unicase/test-u8-casecoll.c: New file.
19750
19751         New module 'unicase/u32-casecoll'.
19752         * lib/unicase/u32-casecoll.c: New file.
19753         * modules/unicase/u32-casecoll: New file.
19754
19755         New module 'unicase/u16-casecoll'.
19756         * lib/unicase/u16-casecoll.c: New file.
19757         * modules/unicase/u16-casecoll: New file.
19758
19759         New module 'unicase/u8-casecoll'.
19760         * lib/unicase/u8-casecoll.c: New file.
19761         * lib/unicase/u-casecoll.h: New file.
19762         * modules/unicase/u8-casecoll: New file.
19763
19764         New module 'unicase/u32-casexfrm'.
19765         * lib/unicase/u32-casexfrm.c: New file.
19766         * modules/unicase/u32-casexfrm: New file.
19767
19768         New module 'unicase/u16-casexfrm'.
19769         * lib/unicase/u16-casexfrm.c: New file.
19770         * modules/unicase/u16-casexfrm: New file.
19771
19772         New module 'unicase/u8-casexfrm'.
19773         * lib/unicase/u8-casexfrm.c: New file.
19774         * lib/unicase/u-casexfrm.h: New file.
19775         * modules/unicase/u8-casexfrm: New file.
19776
19777         Tests for module 'unicase/u32-casecmp'.
19778         * modules/unicase/u32-casecmp-tests: New file.
19779         * tests/unicase/test-u32-casecmp.c: New file.
19780
19781         Tests for module 'unicase/u16-casecmp'.
19782         * modules/unicase/u16-casecmp-tests: New file.
19783         * tests/unicase/test-u16-casecmp.c: New file.
19784
19785         Tests for module 'unicase/u8-casecmp'.
19786         * modules/unicase/u8-casecmp-tests: New file.
19787         * tests/unicase/test-u8-casecmp.c: New file.
19788         * tests/unicase/test-casecmp.h: New file.
19789
19790         New module 'unicase/u32-casecmp'.
19791         * lib/unicase/u32-casecmp.c: New file.
19792         * modules/unicase/u32-casecmp: New file.
19793
19794         New module 'unicase/u16-casecmp'.
19795         * lib/unicase/u16-casecmp.c: New file.
19796         * modules/unicase/u16-casecmp: New file.
19797
19798         New module 'unicase/u8-casecmp'.
19799         * lib/unicase/u8-casecmp.c: New file.
19800         * lib/unicase/u-casecmp.h: New file.
19801         * modules/unicase/u8-casecmp: New file.
19802
19803         Tests for module 'unicase/u32-casefold'.
19804         * modules/unicase/u32-casefold-tests: New file.
19805         * tests/unicase/test-u32-casefold.c: New file.
19806
19807         Tests for module 'unicase/u16-casefold'.
19808         * modules/unicase/u16-casefold-tests: New file.
19809         * tests/unicase/test-u16-casefold.c: New file.
19810
19811         Tests for module 'unicase/u8-casefold'.
19812         * modules/unicase/u8-casefold-tests: New file.
19813         * tests/unicase/test-u8-casefold.c: New file.
19814
19815         New module 'unicase/u32-casefold'.
19816         * lib/unicase/u32-casefold.c: New file.
19817         * modules/unicase/u32-casefold: New file.
19818
19819         New module 'unicase/u16-casefold'.
19820         * lib/unicase/u16-casefold.c: New file.
19821         * modules/unicase/u16-casefold: New file.
19822
19823         New module 'unicase/u8-casefold'.
19824         * lib/unicase/u8-casefold.c: New file.
19825         * lib/unicase/u-casefold.h: New file.
19826         * modules/unicase/u8-casefold: New file.
19827
19828         New module 'unicase/tocasefold'.
19829         * lib/unicase/casefold.h: New file.
19830         * lib/unicase/tocasefold.c: New file.
19831         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
19832         * modules/unicase/tocasefold: New file.
19833
19834         Tests for module 'unicase/u32-totitle'.
19835         * modules/unicase/u32-totitle-tests: New file.
19836         * tests/unicase/test-u32-totitle.c: New file.
19837
19838         Tests for module 'unicase/u16-totitle'.
19839         * modules/unicase/u16-totitle-tests: New file.
19840         * tests/unicase/test-u16-totitle.c: New file.
19841
19842         Tests for module 'unicase/u8-totitle'.
19843         * modules/unicase/u8-totitle-tests: New file.
19844         * tests/unicase/test-u8-totitle.c: New file.
19845
19846         New module 'unicase/u32-totitle'.
19847         * lib/unicase/u32-totitle.c: New file.
19848         * modules/unicase/u32-totitle: New file.
19849
19850         New module 'unicase/u16-totitle'.
19851         * lib/unicase/u16-totitle.c: New file.
19852         * modules/unicase/u16-totitle: New file.
19853
19854         New module 'unicase/u8-totitle'.
19855         * lib/unicase/u8-totitle.c: New file.
19856         * lib/unicase/u-totitle.h: New file.
19857         * modules/unicase/u8-totitle: New file.
19858
19859         Tests for module 'unicase/u32-tolower'.
19860         * modules/unicase/u32-tolower-tests: New file.
19861         * tests/unicase/test-u32-tolower.c: New file.
19862
19863         Tests for module 'unicase/u16-tolower'.
19864         * modules/unicase/u16-tolower-tests: New file.
19865         * tests/unicase/test-u16-tolower.c: New file.
19866
19867         Tests for module 'unicase/u8-tolower'.
19868         * modules/unicase/u8-tolower-tests: New file.
19869         * tests/unicase/test-u8-tolower.c: New file.
19870
19871         New module 'unicase/u32-tolower'.
19872         * lib/unicase/u32-tolower.c: New file.
19873         * modules/unicase/u32-tolower: New file.
19874
19875         New module 'unicase/u16-tolower'.
19876         * lib/unicase/u16-tolower.c: New file.
19877         * modules/unicase/u16-tolower: New file.
19878
19879         New module 'unicase/u8-tolower'.
19880         * lib/unicase/u8-tolower.c: New file.
19881         * modules/unicase/u8-tolower: New file.
19882
19883         Tests for module 'unicase/u32-toupper'.
19884         * modules/unicase/u32-toupper-tests: New file.
19885         * tests/unicase/test-u32-toupper.c: New file.
19886
19887         Tests for module 'unicase/u16-toupper'.
19888         * modules/unicase/u16-toupper-tests: New file.
19889         * tests/unicase/test-u16-toupper.c: New file.
19890
19891         Tests for module 'unicase/u8-toupper'.
19892         * modules/unicase/u8-toupper-tests: New file.
19893         * tests/unicase/test-u8-toupper.c: New file.
19894
19895         New module 'unicase/u32-toupper'.
19896         * lib/unicase/u32-toupper.c: New file.
19897         * modules/unicase/u32-toupper: New file.
19898
19899         New module 'unicase/u16-toupper'.
19900         * lib/unicase/u16-toupper.c: New file.
19901         * modules/unicase/u16-toupper: New file.
19902
19903         New module 'unicase/u8-toupper'.
19904         * lib/unicase/u8-toupper.c: New file.
19905         * modules/unicase/u8-toupper: New file.
19906
19907         New module 'unicase/u32-casemap'.
19908         * lib/unicase/u32-casemap.c: New file.
19909         * modules/unicase/u32-casemap: New file.
19910
19911         New module 'unicase/u16-casemap'.
19912         * lib/unicase/u16-casemap.c: New file.
19913         * modules/unicase/u16-casemap: New file.
19914
19915         New module 'unicase/u8-casemap'.
19916         * lib/unicase/unicasemap.h: New file.
19917         * lib/unicase/u8-casemap.c: New file.
19918         * lib/unicase/u-casemap.h: New file.
19919         * modules/unicase/u8-casemap: New file.
19920
19921         New module 'unicase/special-casing'.
19922         * lib/unicase/special-casing.h: New file.
19923         * lib/unicase/special-casing.c: New file.
19924         * lib/unicase/special-casing-table.gperf: New file, generated by
19925         gen-uni-tables.c.
19926         * modules/unicase/special-casing: New file.
19927
19928         Tests for module 'unicase/locale-language'.
19929         * modules/unicase/locale-language-tests: New file.
19930         * tests/unicase/test-locale-language.sh: New file.
19931         * tests/unicase/test-locale-language.c: New file.
19932
19933         New module 'unicase/locale-language'.
19934         * lib/unicase/locale-language.c: New file.
19935         * lib/unicase/locale-languages.gperf: New file.
19936         * modules/unicase/locale-language: New file.
19937
19938         Generate more tables for case conversion and case folding.
19939         * lib/gen-uni-tables.c (SCC_*): New enum items.
19940         (struct special_casing_rule): New type.
19941         (casing_rules, num_casing_rules, allocated_casing_rules): New
19942         variables.
19943         (add_casing_rule, fill_casing_rules): New functions.
19944         (struct casefold_rule): New type.
19945         (casefolding_rules, num_casefolding_rules,
19946         allocated_casefolding_rules): New variables.
19947         (fill_casefolding_rules): New function.
19948         (unicode_casefold): New variable.
19949         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
19950         sort_casing_rules, output_casing_rules): New functions.
19951         (main): Accept to more arguments: SpecialCasing.txt and
19952         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
19953         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
19954         Output mapping for casefolding.
19955
19956         * lib/unicase.h: Include stdbool.h, uninorm.h.
19957         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
19958         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
19959         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
19960         arguments.
19961         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
19962         resultp arguments.
19963         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
19964         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
19965         resultp arguments.
19966         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
19967         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
19968         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
19969         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
19970         declarations.
19971         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
19972
19973 2009-03-08  Bruno Haible  <bruno@clisp.org>
19974
19975         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19976         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
19977         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
19978         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19979
19980 2009-03-07  Bruno Haible  <bruno@clisp.org>
19981
19982         Adjust u*_normcmp, u*_normcoll API.
19983         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19984         u16_normcoll, u32_normcoll): Change failure conventions.
19985         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
19986         errno and return -1.
19987         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19988
19989 2009-03-07  Bruno Haible  <bruno@clisp.org>
19990
19991         Tests for module 'uninorm/u32-normcoll'.
19992         * modules/uninorm/u32-normcoll-tests: New file.
19993         * tests/uninorm/test-u32-normcoll.c: New file.
19994
19995         Tests for module 'uninorm/u16-normcoll'.
19996         * modules/uninorm/u16-normcoll-tests: New file.
19997         * tests/uninorm/test-u16-normcoll.c: New file.
19998
19999         Tests for module 'uninorm/u8-normcoll'.
20000         * modules/uninorm/u8-normcoll-tests: New file.
20001         * tests/uninorm/test-u8-normcoll.c: New file.
20002
20003 2009-03-07  Bruno Haible  <bruno@clisp.org>
20004
20005         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20006         tests/uninorm/test-u32-normcmp.c.
20007         * tests/uninorm/test-u32-normcmp.c: Include it.
20008         (test_nonascii): New function, extracted from main. Add some more
20009         tests.
20010         (main): Invoke test_ascii and test_nonascii.
20011         * modules/uninorm/u32-normcmp-tests (Files): Add
20012         tests/uninorm/test-u32-normcmp.h.
20013         (Depends-on): Remove uninorm/u32-normcmp.
20014
20015         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20016         tests/uninorm/test-u16-normcmp.c.
20017         * tests/uninorm/test-u16-normcmp.c: Include it.
20018         (test_nonascii): New function, extracted from main. Add some more
20019         tests.
20020         (main): Invoke test_ascii and test_nonascii.
20021         * modules/uninorm/u16-normcmp-tests (Files): Add
20022         tests/uninorm/test-u16-normcmp.h.
20023         (Depends-on): Remove uninorm/u16-normcmp.
20024
20025         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20026         tests/uninorm/test-u8-normcmp.c.
20027         * tests/uninorm/test-u8-normcmp.c: Include it.
20028         (test_nonascii): New function, extracted from main. Add some more
20029         tests.
20030         (main): Invoke test_ascii and test_nonascii.
20031         * modules/uninorm/u8-normcmp-tests (Files): Add
20032         tests/uninorm/test-u8-normcmp.h.
20033         (Depends-on): Remove uninorm/u8-normcmp.
20034
20035 2009-03-07  Bruno Haible  <bruno@clisp.org>
20036
20037         New module 'uninorm/u32-normcoll'.
20038         * lib/uninorm/u32-normcoll.c: New file.
20039         * modules/uninorm/u32-normcoll: New file.
20040
20041         New module 'uninorm/u16-normcoll'.
20042         * lib/uninorm/u16-normcoll.c: New file.
20043         * modules/uninorm/u16-normcoll: New file.
20044
20045         New module 'uninorm/u8-normcoll'.
20046         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20047         declarations.
20048         * lib/uninorm/u8-normcoll.c: New file.
20049         * lib/uninorm/u-normcoll.h: New file.
20050         * modules/uninorm/u8-normcoll: New file.
20051
20052         New module 'uninorm/u32-normxfrm'.
20053         * lib/uninorm/u32-normxfrm.c: New file.
20054         * modules/uninorm/u32-normxfrm: New file.
20055
20056         New module 'uninorm/u16-normxfrm'.
20057         * lib/uninorm/u16-normxfrm.c: New file.
20058         * modules/uninorm/u16-normxfrm: New file.
20059
20060         New module 'uninorm/u8-normxfrm'.
20061         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20062         declarations.
20063         * lib/uninorm/u8-normxfrm.c: New file.
20064         * lib/uninorm/u-normxfrm.h: New file.
20065         * modules/uninorm/u8-normxfrm: New file.
20066
20067 2009-03-07  Bruno Haible  <bruno@clisp.org>
20068
20069         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20070         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20071         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20072
20073 2009-03-07  Bruno Haible  <bruno@clisp.org>
20074
20075         New module 'memxfrm'.
20076         * lib/memxfrm.h: New file.
20077         * lib/memxfrm.c: New file.
20078         * modules/memxfrm: New file.
20079
20080 2009-03-07  Bruno Haible  <bruno@clisp.org>
20081
20082         New module 'memcmp2'.
20083         * lib/memcmp2.h: New file.
20084         * lib/memcmp2.c: New file.
20085         * modules/memcmp2: New file.
20086
20087 2009-03-07  Bruno Haible  <bruno@clisp.org>
20088
20089         Tests for module 'uninorm/decomposing-form'.
20090         * modules/uninorm/decomposing-form-tests: New file.
20091         * tests/uninorm/test-decomposing-form.c: New file.
20092
20093         New module 'uninorm/decomposing-form'.
20094         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20095         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20096         Add 'decomposing_variant' field.
20097         * lib/uninorm/decomposing-form.c: New file.
20098         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20099         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20100         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20101         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20102         * modules/uninorm/decomposing-form: New file.
20103         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20104         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20105
20106 2009-03-07  Bruno Haible  <bruno@clisp.org>
20107
20108         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20109         strings.
20110
20111 2009-03-06  Bruno Haible  <bruno@clisp.org>
20112
20113         Tests for module 'uninorm/u32-normcmp'.
20114         * tests/uninorm/test-u32-normcmp.c: New file.
20115         * modules/uninorm/u32-normcmp-tests: New file.
20116
20117         Tests for module 'uninorm/u16-normcmp'.
20118         * tests/uninorm/test-u16-normcmp.c: New file.
20119         * modules/uninorm/u16-normcmp-tests: New file.
20120
20121         Tests for module 'uninorm/u8-normcmp'.
20122         * tests/uninorm/test-u8-normcmp.c: New file.
20123         * modules/uninorm/u8-normcmp-tests: New file.
20124
20125         New module 'uninorm/u32-normcmp'.
20126         * lib/uninorm/u32-normcmp.c: New file.
20127         * modules/uninorm/u32-normcmp: New file.
20128
20129         New module 'uninorm/u16-normcmp'.
20130         * lib/uninorm/u16-normcmp.c: New file.
20131         * modules/uninorm/u16-normcmp: New file.
20132
20133         New module 'uninorm/u8-normcmp'.
20134         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20135         declarations.
20136         * lib/uninorm/u8-normcmp.c: New file.
20137         * lib/uninorm/u-normcmp.h: New file.
20138         * modules/uninorm/u8-normcmp: New file.
20139
20140 2009-03-06  Bruno Haible  <bruno@clisp.org>
20141
20142         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20143         Reported by Eric Blake.
20144
20145 2009-03-06  Eric Blake  <ebb9@byu.net>
20146             Bruno Haible  <bruno@clisp.org>
20147
20148         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20149         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20150         condition.
20151         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20152         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20153         condition.
20154         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20155
20156 2009-03-06  Eric Blake  <ebb9@byu.net>
20157
20158         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20159         to avoid compiler warnings.
20160         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20161
20162 2009-03-05  Bruno Haible  <bruno@clisp.org>
20163
20164         * tests/test-ftell.c (main): Disable test beyond end of file on
20165         FreeMiNT.
20166         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20167
20168 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20169
20170         * lib/filevercmp.c: Move hidden files up in ordering.
20171         * tests/test-filevercmp.c: Add tests for hidden files.
20172
20173 2009-03-04  Bruno Haible  <bruno@clisp.org>
20174
20175         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20176         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20177         AM_CFLAGS.
20178         Reported by Simon Josefsson.
20179
20180 2009-03-03  Bruno Haible  <bruno@clisp.org>
20181
20182         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20183         Reported by Simon Josefsson.
20184
20185         * doc/ld-version-script.texi: Update node reference.
20186
20187 2009-03-03  Bruno Haible  <bruno@clisp.org>
20188
20189         * modules/visibility (License): Change to 'unlimited'.
20190         Suggested by Simon Josefsson.
20191
20192 2009-03-03  Jim Meyering  <meyering@redhat.com>
20193
20194         unlinkdir: cannot_unlink_dir may modify process state
20195         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20196         it's neither thread-safe nor appropriate for use in a library.
20197
20198 2009-03-03  Eric Blake  <ebb9@byu.net>
20199
20200         test-closein: silence test under Darwin
20201         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20202         care if it dies from EPIPE or EBADF.
20203
20204 2009-03-03  Bruno Haible  <bruno@clisp.org>
20205
20206         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20207         earlier.
20208         * doc/visibility.texi: Fix @node and @section.
20209
20210 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20211
20212         * doc/gnulib.texi: Link to sections for ld version script and
20213         visibility.
20214         * doc/visibility.texi: Add @node and @section.
20215         * modules/ld-version-script: New module.
20216         * m4/ld-version-script.m4: New file.
20217         * doc/ld-version-script.texi: New file.
20218
20219 2009-03-02  David Lutterkort  <lutter@redhat.com>
20220
20221         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20223
20224 2009-03-02  Bruno Haible  <bruno@clisp.org>
20225
20226         * doc/visibility.texi: Mention libtool's -export-symbols option.
20227
20228 2009-03-02  Jim Meyering  <meyering@redhat.com>
20229
20230         announce-gen: new option: --no-print-checksums
20231         * build-aux/announce-gen (usage): Describe it.
20232         (print_checksums): Print a newline here, not in the [*] footnote.
20233         (main): Honor it.
20234
20235 2009-03-01  Bruno Haible  <bruno@clisp.org>
20236
20237         Use socklen_t in the native Windows replacements prototypes.
20238         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20239         instead of 'int'.
20240         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20241         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20242         * modules/getsockopt (Depends-on): Add socklen.
20243         * modules/setsockopt (Depends-on): Add socklen.
20244
20245 2009-03-01  Bruno Haible  <bruno@clisp.org>
20246
20247         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20248         least 4.2.
20249
20250 2009-03-01  Eric Blake  <ebb9@byu.net>
20251             Bruno Haible  <bruno@clisp.org>
20252
20253         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20254         error messages.
20255         * lib/wait-process.c (wait_subprocess): Omit error message about
20256         deadly signal sent to the child of termsigp != NULL.
20257
20258 2009-03-01  Eric Blake  <ebb9@byu.net>
20259
20260         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20261
20262 2009-03-01  Bruno Haible  <bruno@clisp.org>
20263
20264         Avoid a gcc warning.
20265         * tests/test-sched.c (b): Make global.
20266         Reported by Eric Blake.
20267
20268 2009-01-19  Martin Lambers  <marlam@marlam.de>
20269
20270         Provide POSIX semantics for socket timeout options on W32.
20271         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20272         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20273         * modules/setsockopt: Depend on sys_time module for struct timeval.
20274         * modules/getsockopt: Depend on sys_time module for struct timeval.
20275
20276 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20277
20278         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20279         __USE_GNU, for consistency with netdb.in.h.
20280         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20281
20282 2009-03-01  Bruno Haible  <bruno@clisp.org>
20283
20284         More support for FreeMiNT.
20285         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20286         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20287
20288 2009-03-01  Bruno Haible  <bruno@clisp.org>
20289
20290         More support for FreeMiNT.
20291         * lib/fpurge.c (fpurge): Correct last commit.
20292         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20293
20294 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20295
20296         Fix unportable awk script in vc-list-files.
20297         * build-aux/vc-list-files: In the replacement awk script, use
20298         substr with a second argument of 1, not zero.
20299         Report by Simon Josefsson.
20300
20301 2009-02-28  Bruno Haible  <bruno@clisp.org>
20302
20303         More support for FreeMiNT.
20304         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20305         to FreeMiNT today.
20306         * lib/fwriting.c (fwriting): Likewise.
20307         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20308
20309 2009-02-28  Bruno Haible  <bruno@clisp.org>
20310
20311         * tests/test-freadseek.c (main): Disable test beyond end of file on
20312         FreeMiNT.
20313         * tests/test-ftello.c (main): Likewise.
20314         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20315
20316 2009-02-28  Bruno Haible  <bruno@clisp.org>
20317
20318         Add tentative support for FreeMiNT.
20319         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20320         * lib/fpurge.c (fpurge): Likewise.
20321         * lib/freadable.c (freadable): Likewise.
20322         * lib/freading.c (freading): Likewise.
20323         * lib/freadptr.c (freadptr): Likewise.
20324         * lib/freadseek.c (freadptrinc): Likewise.
20325         * lib/fseeko.c (rpl_fseeko): Likewise.
20326         * lib/fseterr.c (fseterr): Likewise.
20327         * lib/fwritable.c (fwritable): Likewise.
20328         * lib/fwriting.c (fwriting): Likewise.
20329         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20330         Hourihane.
20331         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20332
20333 2009-02-28  Bruno Haible  <bruno@clisp.org>
20334
20335         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20336         SIGCHLD.
20337         Reported by Jim Meyering.
20338
20339 2009-02-28  Bruno Haible  <bruno@clisp.org>
20340
20341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20342         Mention the results of these tests on various platforms.
20343         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20344         order.
20345         * doc/posix-functions/printf.texi: Likewise.
20346         * doc/posix-functions/snprintf.texi: Likewise.
20347         * doc/posix-functions/sprintf.texi: Likewise.
20348         * doc/posix-functions/vfprintf.texi: Likewise.
20349         * doc/posix-functions/vprintf.texi: Likewise.
20350         * doc/posix-functions/vsnprintf.texi: Likewise.
20351         * doc/posix-functions/vsprintf.texi: Likewise.
20352         * doc/glibc-functions/obstack_printf.texi: Likewise.
20353         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20354
20355 2009-02-28  Bruno Haible  <bruno@clisp.org>
20356
20357         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20358         Reported by Loïc Minier <lool@dooz.org>.
20359
20360 2009-02-27  Bruno Haible  <bruno@clisp.org>
20361
20362         * gnulib-tool (func_import): Make the sed expression used to create the
20363         sed script for updating the .gitignore file POSIX compliant.
20364         Reported by Eric Blake.
20365
20366 2009-02-27  Bruno Haible  <bruno@clisp.org>
20367
20368         * gnulib-tool (sed): Don't alias as "sed --posix".
20369         Reported by Eric Blake.
20370
20371 2009-02-27  Bruno Haible  <bruno@clisp.org>
20372
20373         Avoid test link errors.
20374         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20375         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20376         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20377         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20379
20380 2009-02-27  Bruno Haible  <bruno@clisp.org>
20381
20382         Avoid spurious "(cached)" in configure output.
20383         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20384         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20385         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20386         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20387         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20388         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20389         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20390         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20391         Reported by Eric Blake.
20392
20393 2009-02-27  Eric Blake  <ebb9@byu.net>
20394
20395         printf: fix regression in previous patch
20396         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20397
20398 2009-02-27  Bruno Haible  <bruno@clisp.org>
20399
20400         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20401         value.
20402         * lib/stdint.in.h: Likewise.
20403         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20404
20405 2009-02-27  Eric Blake  <ebb9@byu.net>
20406
20407         doc: mention more functions added in cygwin 1.7.0
20408         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20409         addition.
20410         * doc/posix-functions/open_wmemstream.texi: Likewise.
20411         * doc/posix-functions/wcsnlen.texi: Likewise.
20412         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20413         * doc/posix-functions/wcstod.texi: Likewise.
20414         * doc/posix-functions/wcstof.texi: Likewise.
20415         * doc/posix-functions/wcstoimax.texi: Likewise.
20416         * doc/posix-functions/wcstok.texi: Likewise.
20417         * doc/posix-functions/wcstoumax.texi: Likewise.
20418
20419         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20420         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20421         * doc/posix-functions/fprintf.texi: Update.
20422         * doc/posix-functions/printf.texi: Update.
20423         * doc/posix-functions/snprintf.texi: Update.
20424         * doc/posix-functions/sprintf.texi: Update.
20425         * doc/posix-functions/vfprintf.texi: Update.
20426         * doc/posix-functions/vprintf.texi: Update.
20427         * doc/posix-functions/vsnprintf.texi: Update.
20428         * doc/posix-functions/vsprintf.texi: Update.
20429         * doc/glibc-functions/obstack_printf.texi: Update.
20430         * doc/glibc-functions/obstack_vprintf.texi: Update.
20431
20432 2009-02-26  Eric Blake  <ebb9@byu.net>
20433
20434         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20435         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20436         compilation bug by using runtime conversion.
20437         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20438         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20439         * modules/ceill-tests (Files): Use nan.h.
20440         * modules/floorl-tests (Files): Likewise.
20441         * modules/frexpl-tests (Files): Likewise.
20442         * modules/isnanl-tests (Files): Likewise.
20443         * modules/ldexpl-tests (Files): Likewise.
20444         * modules/roundl-tests (Files): Likewise.
20445         * modules/truncl-tests (Files): Likewise.
20446         * tests/test-ceill.c (main): Use a working NaN.
20447         * tests/test-floorl.c (main): Likewise.
20448         * tests/test-frexpl.c (main): Likewise.
20449         * tests/test-isnan.c (test_long_double): Likewise.
20450         * tests/test-isnanl.h (main): Likewise.
20451         * tests/test-ldexpl.h (main): Likewise.
20452         * tests/test-roundl.h (main): Likewise.
20453         * tests/test-truncl.h (main): Likewise.
20454         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20455
20456 2009-02-26  Eric Blake  <ebb9@byu.net>
20457             Bruno Haible  <bruno@clisp.org>
20458
20459         Work around a *printf bug with %ls on Solaris.
20460         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20461         precision is specified, sprintf stops converting the wide string
20462         argument when the number of bytes that have been produced by this
20463         conversion equals or exceeds the precision.
20464         * doc/posix-functions/fprintf.texi: Update.
20465         * doc/posix-functions/printf.texi: Update.
20466         * doc/posix-functions/snprintf.texi: Update.
20467         * doc/posix-functions/sprintf.texi: Update.
20468         * doc/posix-functions/vfprintf.texi: Update.
20469         * doc/posix-functions/vprintf.texi: Update.
20470         * doc/posix-functions/vsnprintf.texi: Update.
20471         * doc/posix-functions/vsprintf.texi: Update.
20472         * doc/glibc-functions/obstack_printf.texi: Update.
20473         * doc/glibc-functions/obstack_vprintf.texi: Update.
20474
20475 2009-02-26  Eric Blake  <ebb9@byu.net>
20476
20477         stdlib: favor compiler check of random.h
20478         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20479         to avoid an ObjC random.h installed by Swarm.
20480
20481 2009-02-26  Bruno Haible  <bruno@clisp.org>
20482
20483         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20484         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20485         Reported by Gary V. Vaughan <gary@gnu.org>.
20486
20487 2009-02-26  Bruno Haible  <bruno@clisp.org>
20488
20489         Fix *printf behaviour regarding the %ls directive.
20490         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20491         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20492         NEED_PRINTF_DIRECTIVE_LS.
20493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20494         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20495         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20496         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20497         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20498         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20499         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20504         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20505         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20507         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20508         * doc/posix-functions/fprintf.texi: Update.
20509         * doc/posix-functions/printf.texi: Update.
20510         * doc/posix-functions/snprintf.texi: Update.
20511         * doc/posix-functions/sprintf.texi: Update.
20512         * doc/posix-functions/vfprintf.texi: Update.
20513         * doc/posix-functions/vprintf.texi: Update.
20514         * doc/posix-functions/vsnprintf.texi: Update.
20515         * doc/posix-functions/vsprintf.texi: Update.
20516         * doc/glibc-functions/obstack_printf.texi: Update.
20517         * doc/glibc-functions/obstack_vprintf.texi: Update.
20518         Reported by Eric Blake.
20519
20520 2009-02-25  Bruno Haible  <bruno@clisp.org>
20521
20522         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20523         with known value.
20524         Reported by Gary V. Vaughan <gary@gnu.org>.
20525
20526 2009-02-25  Bruno Haible  <bruno@clisp.org>
20527
20528         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20529         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20530         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20531         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20532         Reported by Gary V. Vaughan <gary@gnu.org>.
20533
20534 2009-02-25  Bruno Haible  <bruno@clisp.org>
20535
20536         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20537         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20538         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20539         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20540         Reported by Gary V. Vaughan <gary@gnu.org>.
20541
20542 2009-02-25  Eric Blake  <ebb9@byu.net>
20543
20544         tests: skip fseek/ftell tests if ungetc is broken
20545         * m4/ungetc.m4: New file.
20546         * modules/fseek-tests: Split test, so ungetc dependency is
20547         separate from rest of test.
20548         * modules/fseeko-tests: Likewise.
20549         * modules/ftell-tests: Likewise.
20550         * modules/ftello-tests: Likewise.
20551         * tests/test-fseek.c (main): Isolate ungetc dependency.
20552         * tests/test-fseeko.c (main): Likewise.
20553         * tests/test-ftell.c (main): Likewise.
20554         * tests/test-ftello.c (main): Likewise.
20555         * tests/test-fseek2.sh: New file.
20556         * tests/test-fseeko2.sh: Likewise.
20557         * tests/test-ftell2.sh: Likewise.
20558         * tests/test-ftello2.sh: Likewise.
20559
20560 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20561
20562         test-getaddrinfo: fix usage of skip return code 77
20563         * tests/test-gettaddrinfo.c: Return skip code 77 only
20564         for first occurance of skip (4x77 is not 77)
20565
20566 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20567
20568         strtod: avoid C99 decl-after-statement
20569         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20570
20571 2009-02-24  Eric Blake  <ebb9@byu.net>
20572
20573         strtod: detect HP-UX 11.31 bug
20574         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20575         Reported by Gary V. Vaughan.
20576
20577 2009-02-23  Bruno Haible  <bruno@clisp.org>
20578
20579         Fix invalid read past end of memory block.
20580         * lib/vasnprintf.c (DCHAR_SET): Define.
20581         (local_wcslen): Define only when needed.
20582         (local_strnlen, local_wcsnlen): New functions.
20583         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20584         directives that involve a conversion ourselves.
20585         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20586         wcsnlen, mbrtowc, wcrtomb.
20587         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20588         * tests/test-vasprintf-posix.c (test_function): Likewise.
20589         * tests/test-snprintf-posix.h (test_function): Likewise.
20590         * tests/test-sprintf-posix.h (test_function): Likewise.
20591         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20592
20593 2009-02-22  Bruno Haible  <bruno@clisp.org>
20594
20595         Implement new clarified decomposition of Hangul syllables.
20596         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20597         of type LTV, return only a pairwise decomposition.
20598         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20599         Likewise.
20600         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20601         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20602         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20603
20604 2009-02-22  Bruno Haible  <bruno@clisp.org>
20605
20606         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20607         zero-length results and shrink excess allocated memory.
20608         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20609         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20610         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20611         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20612         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20613         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20614         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20615         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20616         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20617         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20618         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20619         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20620
20621 2009-02-21  Bruno Haible  <bruno@clisp.org>
20622
20623         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20624         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20625         spaces after a period. Put a space between a macro name and its
20626         argument list. Trivial rewordings.
20627         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
20628         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
20629         (main): Return 0 explicitly.
20630
20631 2009-02-21  Bruno Haible  <bruno@clisp.org>
20632
20633         Tests for module 'uninorm/filter'.
20634         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
20635         * modules/uninorm/filter-tests: New file.
20636
20637         New module 'uninorm/filter'.
20638         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
20639         uninorm_filter_flush, uninorm_filter_free): New declarations.
20640         * lib/uninorm/uninorm-filter.c: New file.
20641         * modules/uninorm/filter: New file.
20642
20643 2009-02-21  Bruno Haible  <bruno@clisp.org>
20644
20645         Tests for module 'uninorm/nfkc'.
20646         * tests/uninorm/test-nfkc.c: New file.
20647         * tests/uninorm/test-u8-nfkc.c: New file.
20648         * tests/uninorm/test-u16-nfkc.c: New file.
20649         * tests/uninorm/test-u32-nfkc.c: New file.
20650         * tests/uninorm/test-u32-nfkc-big.sh: New file.
20651         * tests/uninorm/test-u32-nfkc-big.c: New file.
20652         * modules/uninorm/nfkc-tests: New file.
20653
20654         New module 'uninorm/nfkc'.
20655         * lib/uninorm/nfkc.c: New file.
20656         * modules/uninorm/nfkc: New file.
20657
20658         Tests for module 'uninorm/nfkd'.
20659         * tests/uninorm/test-nfkd.c: New file.
20660         * tests/uninorm/test-u8-nfkd.c: New file.
20661         * tests/uninorm/test-u16-nfkd.c: New file.
20662         * tests/uninorm/test-u32-nfkd.c: New file.
20663         * tests/uninorm/test-u32-nfkd-big.sh: New file.
20664         * tests/uninorm/test-u32-nfkd-big.c: New file.
20665         * modules/uninorm/nfkd-tests: New file.
20666
20667         New module 'uninorm/nfkd'.
20668         * lib/uninorm/nfkd.c: New file.
20669         * modules/uninorm/nfkd: New file.
20670
20671         Tests for module 'uninorm/nfc'.
20672         * tests/uninorm/test-nfc.c: New file.
20673         * tests/uninorm/test-u8-nfc.c: New file.
20674         * tests/uninorm/test-u16-nfc.c: New file.
20675         * tests/uninorm/test-u32-nfc.c: New file.
20676         * tests/uninorm/test-u32-nfc-big.sh: New file.
20677         * tests/uninorm/test-u32-nfc-big.c: New file.
20678         * modules/uninorm/nfc-tests: New file.
20679
20680         New module 'uninorm/nfc'.
20681         * lib/uninorm/nfc.c: New file.
20682         * modules/uninorm/nfc: New file.
20683
20684         Tests for module 'uninorm/nfd'.
20685         * tests/uninorm/test-nfd.c: New file.
20686         * tests/uninorm/test-u8-nfd.c: New file.
20687         * tests/uninorm/test-u16-nfd.c: New file.
20688         * tests/uninorm/test-u32-nfd.c: New file.
20689         * tests/uninorm/test-u32-nfd-big.sh: New file.
20690         * tests/uninorm/test-u32-nfd-big.c: New file.
20691         * tests/uninorm/test-u32-normalize-big.h: New file.
20692         * tests/uninorm/test-u32-normalize-big.c: New file.
20693         * tests/uninorm/NormalizationTest.txt: New file, created from
20694         Unicode 5.1.0 NormalizationTest.txt.
20695         * modules/uninorm/nfd-tests: New file.
20696
20697         New module 'uninorm/nfd'.
20698         * lib/uninorm/nfd.c: New file.
20699         * modules/uninorm/nfd: New file.
20700
20701         New module 'uninorm/u32-normalize'.
20702         * lib/uninorm/u32-normalize.c: New file.
20703         * modules/uninorm/u32-normalize: New file.
20704
20705         New module 'uninorm/u16-normalize'.
20706         * lib/uninorm/u16-normalize.c: New file.
20707         * modules/uninorm/u16-normalize: New file.
20708
20709         New module 'uninorm/u8-normalize'.
20710         * lib/uninorm/u8-normalize.c: New file.
20711         * lib/uninorm/normalize-internal.h: New file.
20712         * lib/uninorm/u-normalize-internal.h: New file.
20713         * modules/uninorm/u8-normalize: New file.
20714
20715         New module 'uninorm/decompose-internal'.
20716         * lib/uninorm/decompose-internal.c: New file.
20717         * modules/uninorm/decompose-internal: New file.
20718
20719         Tests for module 'uninorm/composition'.
20720         * tests/uninorm/test-composition.c: New file.
20721         * modules/uninorm/composition-tests: New file.
20722
20723         New module 'uninorm/composition'.
20724         * lib/uninorm/composition.c: New file.
20725         * lib/uninorm/composition-table.gperf: New file, generated by
20726         gen-uni-tables.
20727         * modules/uninorm/composition: New file.
20728
20729         Tests for module 'uninorm/compat-decomposition'.
20730         * tests/uninorm/test-compat-decomposition.c: New file.
20731         * modules/uninorm/compat-decomposition-tests: New file.
20732
20733         New module 'uninorm/compat-decomposition'.
20734         * lib/uninorm/decompose-internal.h: New file.
20735         * lib/uninorm/compat-decomposition.c: New file.
20736         * modules/uninorm/compat-decomposition: New file.
20737
20738         Tests for module 'uninorm/canonical-decomposition'.
20739         * tests/uninorm/test-canonical-decomposition.c: New file.
20740         * modules/uninorm/canonical-decomposition-tests: New file.
20741
20742         New module 'uninorm/canonical-decomposition'.
20743         * lib/uninorm/canonical-decomposition.c: New file.
20744         * modules/uninorm/canonical-decomposition: New file.
20745
20746         Tests for module 'uninorm/decomposition'.
20747         * tests/uninorm/test-decomposition.c: New file.
20748         * modules/uninorm/decomposition-tests: New file.
20749
20750         New module 'uninorm/decomposition'.
20751         * lib/uninorm/decomposition.c: New file.
20752         * modules/uninorm/decomposition: New file.
20753
20754         New module 'uninorm/decomposition-table'.
20755         * lib/uninorm/decomposition-table.h: New file.
20756         * lib/uninorm/decomposition-table.c: New file.
20757         * lib/uninorm/decomposition-table1.h: New file, generated by
20758         gen-uni-tables.
20759         * lib/uninorm/decomposition-table2.h: New file, generated by
20760         gen-uni-tables.
20761         * modules/uninorm/decomposition-table: New file.
20762
20763         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
20764         (UC_DECOMP_*): New enumeration items.
20765         (get_decomposition): New function.
20766         (struct decomp_table): New type.
20767         (output_decomposition, output_decomposition_tables): New functions.
20768         (unicode_composition_exclusions): New variable.
20769         (fill_composition_exclusions, debug_output_composition_tables): New
20770         functions.
20771         (main): Accept one more argument. Invoke fill_composition_exclusions.
20772         Output decomposition and composition tables.
20773
20774         New module 'uninorm/base'.
20775         * lib/uninorm.h: New file.
20776         * lib/unictype.h: Update comment.
20777         * modules/uninorm/base: New file.
20778
20779 2009-02-21  David Lutterkort  <lutter@redhat.com>
20780
20781         Tests for module 'safe-alloc'.
20782         * tests/test-safe-alloc.c: New file.
20783         * modules/safe-alloc-tests: New file.
20784
20785         New module 'safe-alloc'.
20786         * lib/safe-alloc.h: New file.
20787         * lib/safe-alloc.c: New file.
20788         * m4/safe-alloc.m4: New file.
20789         * modules/safe-alloc: New file.
20790         * doc/safe-alloc.texi: New file.
20791         * doc/gnulib.texi: Include it.
20792         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20793         safe-alloc.
20794
20795 2009-02-18  Bruno Haible  <bruno@clisp.org>
20796
20797         Fix link error on non-glibc systems.
20798         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
20799         variable.
20800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20801
20802 2009-02-18  Jim Meyering  <meyering@redhat.com>
20803
20804         fts: avoid used-uninitialized error due to recent change
20805         * lib/fts.c (fts_read): Guard uses of the new member,
20806         parent->fts_n_dirs_remaining, since it's not relevant for
20807         the parent of a directory specified on the command-line.
20808
20809 2009-02-17  James Youngman  <jay@gnu.org>
20810             Bruno Haible  <bruno@clisp.org>
20811
20812         * m4/include_next.m4: Reformulate comment.
20813
20814 2009-02-16  Jim Meyering  <meyering@redhat.com>
20815
20816         fts: add #if guards so that the fts_lgpl module still builds
20817         * lib/fts.c: Guard just-added hash-table-using parts with
20818         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
20819         Reported by Simon Josefsson.
20820
20821 2009-02-15  Bruno Haible  <bruno@clisp.org>
20822
20823         * modules/array-mergesort-tests: New file.
20824         * tests/test-array-mergesort.c: New file.
20825
20826         New module 'array-mergesort'.
20827         * modules/array-mergesort: New file.
20828         * lib/array-mergesort.h: New file.
20829
20830 2009-02-15  Bruno Haible  <bruno@clisp.org>
20831
20832         Fix 2009-02-07 commit.
20833         * lib/gen-uni-tables.c (output_predicate, output_category,
20834         output_combclass, output_bidi_category, output_decimal_digit,
20835         output_digit, output_numeric, output_mirror, output_scripts,
20836         output_ident_category, output_simple_mapping): Fix format directives.
20837         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
20838
20839 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
20840
20841         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
20842         fixes are available from IBM.
20843
20844 2009-02-13  Jim Meyering  <meyering@redhat.com>
20845
20846         fts: arrange not to stat non-directories in more cases
20847         This makes GNU find (when it doesn't need to stat each file)
20848         *much* more efficient at traversing reiserfs file systems.
20849         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
20850         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
20851         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
20852         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
20853         (leaf_optimization_applies): New function.
20854         (LCO_hash, LCO_compare): New helper functions.
20855         (link_count_optimize_ok): New function.
20856         (fts_stat): Initialize new member (if dir).
20857         (fts_read): Decrement parent's fts_n_dirs_remaining count if
20858         we've just stat'ed a directory.  Skip the stat call when possible.
20859         ---
20860         Note this AFS-related exchange:
20861         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
20862         and note find's pioctl call in find/fstype.c.
20863         But that is necessary only if you want to enable the
20864         optimization for AFS, and for now, I don't.
20865
20866         fts: move a function definition "up" (no semantic change)
20867         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
20868         "up" to precede upcoming use of a related function.
20869
20870 2009-02-11  Jim Meyering  <meyering@redhat.com>
20871
20872         fts: correct internal computation of nlinks (optimization-related)
20873         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
20874         whether the current entry is a directory, so don't test it.
20875
20876 2009-02-10  Bruno Haible  <bruno@clisp.org>
20877
20878         Tests for module 'uniwbrk/ulc-wordbreaks'.
20879         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
20880         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
20881         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
20882
20883         Tests for module 'uniwbrk/u32-wordbreaks'.
20884         * modules/uniwbrk/u32-wordbreaks-tests: New file.
20885         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
20886
20887         Tests for module 'uniwbrk/u16-wordbreaks'.
20888         * modules/uniwbrk/u16-wordbreaks-tests: New file.
20889         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
20890
20891         Tests for module 'uniwbrk/u8-wordbreaks'.
20892         * modules/uniwbrk/u8-wordbreaks-tests: New file.
20893         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
20894
20895 2009-02-10  Bruno Haible  <bruno@clisp.org>
20896
20897         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
20898         property.
20899         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
20900         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
20901         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
20902
20903 2009-02-10  Simon Josefsson  <simon@josefsson.org>
20904
20905         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
20906         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
20907
20908 2009-02-10  Bruno Haible  <bruno@clisp.org>
20909
20910         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
20911         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
20912         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
20913         * lib/unilbrk/u8-possible-linebreaks.c: Update.
20914         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
20915         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
20916
20917 2009-02-09  Simon Josefsson  <simon@josefsson.org>
20918
20919         * lib/sockets.h (gl_fd_to_handle): New function.
20920
20921         * tests/test-sockets.c: Call gl_fd_to_handle.
20922
20923 2009-02-09  Bruno Haible  <bruno@clisp.org>
20924
20925         * doc/havelib.texi: Document the conventions on bi-arch systems.
20926
20927 2009-02-08  Bruno Haible  <bruno@clisp.org>
20928
20929         Document the AC_LIB_LINKFLAGS macro.
20930         * doc/havelib.texi: New file, mostly written on 2005-05-24.
20931         * doc/gnulib.texi: Include it.
20932
20933 2009-02-08  Bruno Haible  <bruno@clisp.org>
20934
20935         Fix wrong order of sections, compared to TOC.
20936         * doc/gnulib.texi: Include relocatable-maint.texi after the
20937         "Regular expressions" node, not before.
20938
20939 2009-02-08  Bruno Haible  <bruno@clisp.org>
20940
20941         Tests for module 'unicase/totitle'.
20942         * modules/unicase/totitle-tests: New file.
20943
20944         Tests for module 'unicase/tolower'.
20945         * modules/unicase/tolower-tests: New file.
20946
20947         Tests for module 'unicase/toupper'.
20948         * modules/unicase/toupper-tests: New file.
20949         * tests/unicase/test-mapping-part1.h: New file.
20950         * tests/unicase/test-mapping-part2.h: New file.
20951
20952         New module 'unicase/totitle'.
20953         * modules/unicase/totitle: New file.
20954         * lib/unicase/totitle.c: New file.
20955
20956         New module 'unicase/tolower'.
20957         * modules/unicase/tolower: New file.
20958         * lib/unicase/tolower.c: New file.
20959
20960         New module 'unicase/toupper'.
20961         * modules/unicase/toupper: New file.
20962         * lib/unicase/toupper.c: New file.
20963         * lib/unicase/simple-mapping.h: New file.
20964
20965         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
20966         (mapping_table): New structure.
20967         (output_simple_mapping): New function.
20968         (main): Invoke output_simple_mapping_test and output_simple_mapping.
20969         * modules/gen-uni-tables (Description): Update.
20970         * lib/unicase/toupper.h: New file, automatically generated by
20971         gen-uni-tables.
20972         * lib/unicase/tolower.h: New file, automatically generated by
20973         gen-uni-tables.
20974         * lib/unicase/totitle.h: New file, automatically generated by
20975         gen-uni-tables.
20976         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
20977         gen-uni-tables.
20978         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
20979         gen-uni-tables.
20980         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
20981         gen-uni-tables.
20982
20983         New module 'unicase/base'.
20984         * modules/unicase/base: New file.
20985         * lib/unicase.h: New file.
20986
20987 2009-02-08  Bruno Haible  <bruno@clisp.org>
20988
20989         New module 'uniwbrk/ulc-wordbreaks'.
20990         * modules/uniwbrk/ulc-wordbreaks: New file.
20991         * lib/uniwbrk/ulc-wordbreaks.c: New file.
20992
20993         New module 'uniwbrk/u32-wordbreaks'.
20994         * modules/uniwbrk/u32-wordbreaks: New file.
20995         * lib/uniwbrk/u32-wordbreaks.c: New file.
20996
20997         New module 'uniwbrk/u16-wordbreaks'.
20998         * modules/uniwbrk/u16-wordbreaks: New file.
20999         * lib/uniwbrk/u16-wordbreaks.c: New file.
21000
21001         New module 'uniwbrk/u8-wordbreaks'.
21002         * modules/uniwbrk/u8-wordbreaks: New file.
21003         * lib/uniwbrk/u8-wordbreaks.c: New file.
21004         * lib/uniwbrk/u-wordbreaks.h: New file.
21005
21006         New module 'uniwbrk/table'.
21007         * modules/uniwbrk/table: New file.
21008         * lib/uniwbrk/wbrktable.h: New file.
21009         * lib/uniwbrk/wbrktable.c: New file.
21010
21011         New module 'uniwbrk/wordbreak-property'.
21012         * modules/uniwbrk/wordbreak-property: New file.
21013         * lib/uniwbrk/wordbreak-property.c: New file.
21014
21015         * lib/gen-uni-tables.c (WBP_*): New enum items.
21016         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21017         (unicode_org_wbp): New variable.
21018         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21019         New functions.
21020         (wbp_table): New structure.
21021         (output_wbp, output_wbrk_tables): New functions.
21022         (main): Accept additional argument. Invoke fill_org_wbp,
21023         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21024         output_wbrk_tables.
21025         * modules/gen-uni-tables (Description): Update.
21026         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21027         gen-uni-tables.
21028
21029         New module 'uniwbrk/base'.
21030         * modules/uniwbrk/base: New file.
21031         * lib/uniwbrk.h: New file.
21032
21033 2009-02-08  Bruno Haible  <bruno@clisp.org>
21034
21035         Update to Unicode 5.1.0.
21036         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21037         U+2185..U+2188.
21038         (is_property_default_ignorable_code_point): Don't include characters
21039         of category Cc or Cs and not-a-characters.
21040         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21041         U+0D79, U+109E, U+109F, U+A60C.
21042         * lib/unictype/bidi_of.h: Regenerated.
21043         * lib/unictype/blocks.h: Regenerated.
21044         * lib/unictype/categ_C.h: Regenerated.
21045         * lib/unictype/categ_Cf.h: Regenerated.
21046         * lib/unictype/categ_Cn.h: Regenerated.
21047         * lib/unictype/categ_L.h: Regenerated.
21048         * lib/unictype/categ_Ll.h: Regenerated.
21049         * lib/unictype/categ_Lm.h: Regenerated.
21050         * lib/unictype/categ_Lo.h: Regenerated.
21051         * lib/unictype/categ_Lu.h: Regenerated.
21052         * lib/unictype/categ_M.h: Regenerated.
21053         * lib/unictype/categ_Mc.h: Regenerated.
21054         * lib/unictype/categ_Me.h: Regenerated.
21055         * lib/unictype/categ_Mn.h: Regenerated.
21056         * lib/unictype/categ_N.h: Regenerated.
21057         * lib/unictype/categ_Nd.h: Regenerated.
21058         * lib/unictype/categ_Nl.h: Regenerated.
21059         * lib/unictype/categ_No.h: Regenerated.
21060         * lib/unictype/categ_P.h: Regenerated.
21061         * lib/unictype/categ_Pd.h: Regenerated.
21062         * lib/unictype/categ_Pe.h: Regenerated.
21063         * lib/unictype/categ_Pf.h: Regenerated.
21064         * lib/unictype/categ_Pi.h: Regenerated.
21065         * lib/unictype/categ_Po.h: Regenerated.
21066         * lib/unictype/categ_Ps.h: Regenerated.
21067         * lib/unictype/categ_S.h: Regenerated.
21068         * lib/unictype/categ_Sk.h: Regenerated.
21069         * lib/unictype/categ_Sm.h: Regenerated.
21070         * lib/unictype/categ_So.h: Regenerated.
21071         * lib/unictype/categ_of.h: Regenerated.
21072         * lib/unictype/combining.h: Regenerated.
21073         * lib/unictype/ctype_alnum.h: Regenerated.
21074         * lib/unictype/ctype_alpha.h: Regenerated.
21075         * lib/unictype/ctype_graph.h: Regenerated.
21076         * lib/unictype/ctype_lower.h: Regenerated.
21077         * lib/unictype/ctype_print.h: Regenerated.
21078         * lib/unictype/ctype_punct.h: Regenerated.
21079         * lib/unictype/ctype_upper.h: Regenerated.
21080         * lib/unictype/decdigit.h: Regenerated.
21081         * lib/unictype/digit.h: Regenerated.
21082         * lib/unictype/mirror.h: Regenerated.
21083         * lib/unictype/numeric.h: Regenerated.
21084         * lib/unictype/pr_alphabetic.h: Regenerated.
21085         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21086         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21087         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21088         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21089         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21090         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21091         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21092         * lib/unictype/pr_combining.h: Regenerated.
21093         * lib/unictype/pr_dash.h: Regenerated.
21094         * lib/unictype/pr_decimal_digit.h: Regenerated.
21095         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21096         * lib/unictype/pr_deprecated.h: Regenerated.
21097         * lib/unictype/pr_diacritic.h: Regenerated.
21098         * lib/unictype/pr_extender.h: Regenerated.
21099         * lib/unictype/pr_format_control.h: Regenerated.
21100         * lib/unictype/pr_grapheme_base.h: Regenerated.
21101         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21102         * lib/unictype/pr_grapheme_link.h: Regenerated.
21103         * lib/unictype/pr_id_continue.h: Regenerated.
21104         * lib/unictype/pr_id_start.h: Regenerated.
21105         * lib/unictype/pr_ideographic.h: Regenerated.
21106         * lib/unictype/pr_ignorable_control.h: Regenerated.
21107         * lib/unictype/pr_lowercase.h: Regenerated.
21108         * lib/unictype/pr_math.h: Regenerated.
21109         * lib/unictype/pr_numeric.h: Regenerated.
21110         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21111         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21112         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21113         * lib/unictype/pr_other_id_continue.h: Regenerated.
21114         * lib/unictype/pr_other_lowercase.h: Regenerated.
21115         * lib/unictype/pr_other_math.h: Regenerated.
21116         * lib/unictype/pr_punctuation.h: Regenerated.
21117         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21118         * lib/unictype/pr_soft_dotted.h: Regenerated.
21119         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21120         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21121         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21122         * lib/unictype/pr_uppercase.h: Regenerated.
21123         * lib/unictype/pr_xid_continue.h: Regenerated.
21124         * lib/unictype/pr_xid_start.h: Regenerated.
21125         * lib/unictype/pr_zero_width.h: Regenerated.
21126         * lib/unictype/scripts.h: Regenerated.
21127         * lib/unictype/scripts_byname.gperf: Regenerated.
21128         * lib/unictype/sy_java_ident.h: Regenerated.
21129         * lib/unilbrk/lbrkprop1.h: Regenerated.
21130         * lib/unilbrk/lbrkprop2.h: Regenerated.
21131         * tests/unictype/test-categ_C.c: Regenerated.
21132         * tests/unictype/test-categ_Cf.c: Regenerated.
21133         * tests/unictype/test-categ_Cn.c: Regenerated.
21134         * tests/unictype/test-categ_L.c: Regenerated.
21135         * tests/unictype/test-categ_Ll.c: Regenerated.
21136         * tests/unictype/test-categ_Lm.c: Regenerated.
21137         * tests/unictype/test-categ_Lo.c: Regenerated.
21138         * tests/unictype/test-categ_Lu.c: Regenerated.
21139         * tests/unictype/test-categ_M.c: Regenerated.
21140         * tests/unictype/test-categ_Mc.c: Regenerated.
21141         * tests/unictype/test-categ_Me.c: Regenerated.
21142         * tests/unictype/test-categ_Mn.c: Regenerated.
21143         * tests/unictype/test-categ_N.c: Regenerated.
21144         * tests/unictype/test-categ_Nd.c: Regenerated.
21145         * tests/unictype/test-categ_Nl.c: Regenerated.
21146         * tests/unictype/test-categ_No.c: Regenerated.
21147         * tests/unictype/test-categ_P.c: Regenerated.
21148         * tests/unictype/test-categ_Pd.c: Regenerated.
21149         * tests/unictype/test-categ_Pe.c: Regenerated.
21150         * tests/unictype/test-categ_Pf.c: Regenerated.
21151         * tests/unictype/test-categ_Pi.c: Regenerated.
21152         * tests/unictype/test-categ_Po.c: Regenerated.
21153         * tests/unictype/test-categ_Ps.c: Regenerated.
21154         * tests/unictype/test-categ_S.c: Regenerated.
21155         * tests/unictype/test-categ_Sk.c: Regenerated.
21156         * tests/unictype/test-categ_Sm.c: Regenerated.
21157         * tests/unictype/test-categ_So.c: Regenerated.
21158         * tests/unictype/test-ctype_alnum.c: Regenerated.
21159         * tests/unictype/test-ctype_alpha.c: Regenerated.
21160         * tests/unictype/test-ctype_graph.c: Regenerated.
21161         * tests/unictype/test-ctype_lower.c: Regenerated.
21162         * tests/unictype/test-ctype_print.c: Regenerated.
21163         * tests/unictype/test-ctype_punct.c: Regenerated.
21164         * tests/unictype/test-ctype_upper.c: Regenerated.
21165         * tests/unictype/test-decdigit.h: Regenerated.
21166         * tests/unictype/test-digit.h: Regenerated.
21167         * tests/unictype/test-numeric.h: Regenerated.
21168         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21169         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21170         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21171         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21172         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21173         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21174         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21175         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21176         * tests/unictype/test-pr_combining.c: Regenerated.
21177         * tests/unictype/test-pr_dash.c: Regenerated.
21178         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21179         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21180         * tests/unictype/test-pr_deprecated.c: Regenerated.
21181         * tests/unictype/test-pr_diacritic.c: Regenerated.
21182         * tests/unictype/test-pr_extender.c: Regenerated.
21183         * tests/unictype/test-pr_format_control.c: Regenerated.
21184         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21185         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21186         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21187         * tests/unictype/test-pr_id_continue.c: Regenerated.
21188         * tests/unictype/test-pr_id_start.c: Regenerated.
21189         * tests/unictype/test-pr_ideographic.c: Regenerated.
21190         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21191         * tests/unictype/test-pr_lowercase.c: Regenerated.
21192         * tests/unictype/test-pr_math.c: Regenerated.
21193         * tests/unictype/test-pr_numeric.c: Regenerated.
21194         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21195         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21196         Regenerated.
21197         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21198         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21199         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21200         * tests/unictype/test-pr_other_math.c: Regenerated.
21201         * tests/unictype/test-pr_punctuation.c: Regenerated.
21202         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21203         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21204         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21205         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21206         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21207         * tests/unictype/test-pr_uppercase.c: Regenerated.
21208         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21209         * tests/unictype/test-pr_xid_start.c: Regenerated.
21210         * tests/unictype/test-pr_zero_width.c: Regenerated.
21211
21212         Update to Unicode 5.1.0.
21213         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21214         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21215         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21216         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21217         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21218         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21219         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21220         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21221         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21222         (nonspacing_table_ind): Update.
21223         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21224
21225         Update to Unicode 5.1.0.
21226         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21227         code transform.
21228         * lib/uniname/uniname.c (unicode_character_name,
21229         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21230         * lib/uniname/uninames.h: Regenerated.
21231         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21232
21233 2009-02-07  Bruno Haible  <bruno@clisp.org>
21234
21235         Merge gen-ctype and gen-lbrk into a single program.
21236         * lib/gen-uni-tables.c: New file, incorporating
21237         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21238         Add directory prefixes to the names of the generated files.
21239         * lib/unictype/gen-ctype.c: Remove file.
21240         * lib/unilbrk/gen-lbrk.c: Remove file.
21241         * modules/gen-uni-tables: New file.
21242         * modules/unictype/gen-ctype: Remove file.
21243         * modules/unilbrk/gen-lbrk: Remove file.
21244
21245 2009-02-07  Bruno Haible  <bruno@clisp.org>
21246
21247         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21248
21249         New module 'unistr/u32-strcoll'.
21250         * modules/unistr/u32-strcoll: New file.
21251         * lib/unistr/u32-strcoll.c: New file.
21252
21253         New module 'unistr/u16-strcoll'.
21254         * modules/unistr/u16-strcoll: New file.
21255         * lib/unistr/u16-strcoll.c: New file.
21256
21257         New module 'unistr/u8-strcoll'.
21258         * modules/unistr/u8-strcoll: New file.
21259         * lib/unistr/u8-strcoll.c: New file.
21260         * lib/unistr/u-strcoll.h: New file.
21261
21262 2009-02-07  Bruno Haible  <bruno@clisp.org>
21263
21264         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21265         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21266         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21267         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21268         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21269         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21270
21271 2009-02-07  Bruno Haible  <bruno@clisp.org>
21272
21273         Make 64-bit clean.
21274         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21275         output_combclass, output_bidi_category, output_decimal_digit,
21276         output_digit, output_numeric, output_mirror, output_scripts,
21277         output_ident_category): Use proper width specifier in format strings.
21278
21279 2009-02-07  Bruno Haible  <bruno@clisp.org>
21280
21281         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21282         failure behaviour.
21283
21284 2009-02-07  Jim Meyering  <meyering@redhat.com>
21285
21286         regex: avoid compilation failure with upcoming gcc-4.4
21287         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21288         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21289         "... error: integer overflow in preprocessor expression".
21290
21291 2009-02-05  Ben Pfaff  <blp@gnu.org>
21292
21293         Fix link errors on Windows when close module is used.
21294         * modules/close: Add $(LIB_CLOSE) to Link section.
21295         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21296         $(LIB_CLOSE) on Windows.
21297
21298 2009-02-05  Jim Meyering  <meyering@redhat.com>
21299
21300         still avoid unused-parameter warnings, but do it cleanly
21301         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21302         (get_fs_usage): Cast to void instead.
21303         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21304         (dev_from_mount_options, read_file_system_list): Cast to void.
21305         Prompted by Bruno Haible.
21306
21307 2009-02-04  Jim Meyering  <meyering@redhat.com>
21308
21309         fsusage.c: correct copyright year
21310         * lib/fsusage.c: Reflect year in which the change is pushed into
21311
21312         avoid misc. warnings
21313         * lib/fsusage.c (UNUSED_PARAM): Define.
21314         (get_fs_usage): Mark parameter "disk" as unused.
21315         * lib/getugroups.c (getgrent): Use "void" in prototype.
21316         * lib/mountlist.c: Mark unused parameters.
21317         (read_file_system_list): Declare a local with "const".
21318         * lib/nanosleep.c (getnow): Declare static.
21319         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21320
21321         dirfd: set errno upon failure
21322         * lib/dirfd.c: Include <errno.h>.
21323         Set errno to ENOTSUP when returning -1.
21324         * modules/dirfd (Depends-on): Add errno.
21325         Suggested by John Kodis <kodis@comcast.net>.
21326
21327 2009-02-01  Bruno Haible  <bruno@clisp.org>
21328
21329         Don't assume sizeof (long) >= sizeof (void *).
21330         * lib/memcmp.c: Include stdint.h.
21331         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21332         srcp2 to 'const byte *'.
21333         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21334         types to uintptr_t.
21335         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21336         * modules/memcmp (Depends-on): Add stdint.
21337         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21338
21339 2009-01-30  Eric Blake  <ebb9@byu.net>
21340
21341         fix more require-before-expand issues
21342         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21343         expand, AC_PROG_AWK.
21344         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21345
21346 2009-01-28  Eric Blake  <ebb9@byu.net>
21347
21348         version-etc: use consistent URL formatting
21349         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21350         Improve formatting.  Use fputs for string without %.
21351
21352 2009-01-28  Jim Meyering  <meyering@redhat.com>
21353
21354         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21355         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21356         "underquoted definition of NAME" from autoconf-2.59.
21357
21358 2009-01-28  Bruno Haible  <bruno@clisp.org>
21359
21360         * doc/gnulib.texi: Add "Obsolete modules" to index.
21361
21362 2009-01-28  Jim Meyering  <meyering@redhat.com>
21363
21364         useless-if-before-free: recognize more variants
21365         * build-aux/useless-if-before-free: Also recognize e.g.,
21366         if (NULL != p) free (p);
21367
21368 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21369
21370         test-getaddrinfo: skip (don't fail) this test when there's no network
21371         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21372         on the presumption that it means you lack network access.
21373
21374 2009-01-26  Jim Meyering  <meyering@redhat.com>
21375
21376         fflush: avoid warnings on modern systems
21377         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21378         pos and result, into scopes where they're used.
21379
21380 2009-01-26  Eric Blake  <ebb9@byu.net>
21381
21382         Silence warning reintroduced by recent extensions patch.
21383         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21384         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21385         autoconf.
21386
21387         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21388         * m4/00gnulib.m4: New file.
21389         * gnulib-tool (func_get_filelist): Always use it.
21390         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21391         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21392
21393 2009-01-25  Bruno Haible  <bruno@clisp.org>
21394
21395         Make test-quotearg work on MacOS X and AIX.
21396         * tests/test-quotearg.sh: New file.
21397         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21398         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21399         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21400         include <libintl.h>.
21401         (fake_locale): Remove variable.
21402         (gettext, dgettext, dcgettext): Remove functions.
21403         (main): Instead of setting a fake locale, set a real locale. Call
21404         textdomain and bindtextdomain.
21405         * modules/quotearg-tests (Files): Add the new files.
21406         (Depends-on): Add gettext, setenv, unsetenv.
21407         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21408         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21409         Augment TESTS_ENVIRONMENT.
21410
21411 2009-01-25  Bruno Haible  <bruno@clisp.org>
21412
21413         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21414         fr_FR.ISO8859-1 locale on MacOS X.
21415         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21416         ja_JP.eucJP locale on MacOS X.
21417         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21418         zh_CN.GB18030 locale on MacOS X.
21419
21420 2009-01-25  Bruno Haible  <bruno@clisp.org>
21421
21422         Avoid link errors on MacOS X 10.3.
21423         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21424         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21425
21426 2009-01-25  Bruno Haible  <bruno@clisp.org>
21427
21428         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21429         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21430         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21431         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21432         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21433         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21434         posix_spawnattr_init, posix_spawnattr_setsigmask,
21435         posix_spawnattr_setflags, posix_spawnattr_destroy.
21436
21437         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21438         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21439         * modules/execute (Files): Remove m4/posix_spawn.m4.
21440         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21441         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21442         posix_spawnattr_init, posix_spawnattr_setsigmask,
21443         posix_spawnattr_setflags, posix_spawnattr_destroy.
21444
21445 2009-01-25  Bruno Haible  <bruno@clisp.org>
21446
21447         * lib/glthread/threadlib.c: Include <stdlib.h>.
21448
21449 2009-01-25  Bruno Haible  <bruno@clisp.org>
21450
21451         * lib/glthread/threadlib.c (dummy): New declaration.
21452
21453 2009-01-25  Bruno Haible  <bruno@clisp.org>
21454
21455         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21456         multibyte characters also for the GB18030 encoding. Don't crash when
21457         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21458
21459 2009-01-25  Bruno Haible  <bruno@clisp.org>
21460
21461         Avoid redefining 'struct random_data' on OSF/1 5.1.
21462         * lib/stdlib.in.h: Include <random.h> if it exists.
21463         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21464         HAVE_RANDOM_H. Include <random.h> when testing whether
21465         'struct random_data' exists.
21466         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21467
21468 2009-01-25  Bruno Haible  <bruno@clisp.org>
21469
21470         Don't install charset.alias on MacOS X >= 10.3.
21471         * lib/localcharset.c (DARWIN7): New macro.
21472         (get_charset_aliases): Hardcode the result for Darwin7.
21473         * modules/localcharset (install-exec-local): Don't install
21474         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21475
21476 2009-01-25  Bruno Haible  <bruno@clisp.org>
21477
21478         Don't install charset.alias on mingw and Cygwin.
21479         * modules/localcharset (install-exec-local): Don't install
21480         charset.alias on mingw and Cygwin, if the file does not yet exist.
21481         The result for these platforms is hardcoded in localcharset.c.
21482
21483 2009-01-25  Bruno Haible  <bruno@clisp.org>
21484
21485         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21487         before requiring AC_USE_SYSTEM_EXTENSIONS.
21488
21489 2009-01-25  Jim Meyering  <meyering@redhat.com>
21490
21491         c-strtod: avoid warnings
21492         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21493         "assignment discards qualifiers from pointer target type" warnings.
21494
21495 2009-01-24  Bruno Haible  <bruno@clisp.org>
21496
21497         Add support for non-UTF-8 locales on MacOS X.
21498         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21499         canonical encodings. For Darwin 7 and newer, don't map traditional
21500         encodings to UTF-8.
21501         Reported by Vincent Lefevre <vincent@vinc17.org>
21502         at <http://savannah.gnu.org/bugs/?25235>.
21503
21504 2009-01-24  Bruno Haible  <bruno@clisp.org>
21505
21506         * doc/gnulib.texi (Obsolete modules): New section.
21507         Reported by Mike Frysinger <vapier@gentoo.org>.
21508
21509 2009-01-24  Bruno Haible  <bruno@clisp.org>
21510
21511         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21512         (%.dvi): New rule.
21513
21514 2009-01-24  Bruno Haible  <bruno@clisp.org>
21515
21516         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21517         Reported by Eric Blake.
21518
21519 2009-01-24  Bruno Haible  <bruno@clisp.org>
21520
21521         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21522         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21523         Reported by Gary V. Vaughan <gary@gnu.org>.
21524
21525 2009-01-24  Bruno Haible  <bruno@clisp.org>
21526
21527         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21528
21529 2009-01-23  Bruno Haible  <bruno@clisp.org>
21530
21531         Make c-strtod, c-strtold usable in libraries.
21532         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21533         (C_STRTOD): Call strdup instead of xstrdup.
21534         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21535         * modules/c-strtold (Depends-on): Likewise.
21536         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21537         * NEWS: Mention the change.
21538         Reported by Michael Gold <mgold@ncf.ca>.
21539
21540 2009-01-23  Jim Meyering  <meyering@redhat.com>
21541
21542         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21543         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21544         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21545
21546 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21547
21548         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21549         GNU CoreUtils.
21550         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21551         * modules/version-etc (Description): Update.
21552
21553 2009-01-22  Bruno Haible  <bruno@clisp.org>
21554
21555         Cache the C locale object.
21556         * lib/c-strtod.c (c_locale_cache): New variable.
21557         (c_locale): New function.
21558         (C_STRTOD): Use it, and don't call freelocale.
21559         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21560         Suggested by Paolo Bonzini.
21561
21562 2009-01-21  Bruno Haible  <bruno@clisp.org>
21563
21564         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21565         conditions other than overflow.
21566
21567 2009-01-21  Bruno Haible  <bruno@clisp.org>
21568
21569         * lib/c-strtod.c: Include errno.h.
21570         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21571         value from STRTOD_L and STRTOD.
21572
21573 2009-01-21  Bruno Haible  <bruno@clisp.org>
21574         and Jim Meyering  <meyering@redhat.com>
21575
21576         nanosleep: skip configure test (fail it) for apple universal builds
21577         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21578         universal builds, assume that nanosleep does not work.
21579         * modules/nanosleep (Depends-on): Add multiarch.
21580
21581         mktime: skip configure test (fail it) for apple universal builds
21582         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21583         universal builds, assume that mktime does not work.
21584         * modules/mktime (Depends-on): Add multiarch.
21585
21586 2009-01-21  Eric Blake  <ebb9@byu.net>
21587
21588         multiarch: avoid expand-before-require warning
21589         * modules/multiarch (configure.ac): Require, rather than expand,
21590         gl_MULTIARCH.
21591         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21592         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21593         enforce that all clients require it.  Partial reversion of
21594         2008-12-29 patch.
21595
21596         error: avoid expand-before-require warning
21597         * modules/errno (configure.ac): Require, rather than expand,
21598         gl_HEADER_ERRNO_H.
21599         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21600         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21601         enforce that all clients require it.
21602
21603         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21604         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21605         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21606         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21607
21608 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21609
21610         Revert:
21611         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21612
21613         regex: do not depend on obsolete modules.
21614         * modules/regex: Remove memcmp and memmove.
21615
21616 2009-01-20  Bruno Haible  <bruno@clisp.org>
21617
21618         Make the 'link' module link on Windows NT 4.
21619         * lib/link.c (_WIN32_WINNT): Don't define.
21620         (CreateHardLinkFuncType): New type.
21621         (CreateHardLinkFunc, initialized): New variables.
21622         (initialize): New function.
21623         (link): Invoke CreateHardLink indirectly through the function pointer.
21624
21625 2009-01-20  Bruno Haible  <bruno@clisp.org>
21626
21627         Fix compilation failure on mingw.
21628         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
21629
21630 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
21631
21632         * doc/c-strtod.texi: Mention a couple of restrictions.
21633
21634 2009-01-20  Jim Meyering  <meyering@redhat.com>
21635
21636         gettimeofday: move more declarations out of functions
21637         * lib/gettimeofday.c: Move extern declarations of tzset and
21638         gmtime out of containing functions.  Prompted by Bruno Haible.
21639
21640 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21641
21642         regex: do not depend on obsolete modules.
21643         * modules/regex: Remove memcmp and memmove.
21644
21645 2009-01-19  Bruno Haible  <bruno@clisp.org>
21646
21647         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21648         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
21649         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21650         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
21651         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
21652
21653 2009-01-19  Bruno Haible  <bruno@clisp.org>
21654
21655         * tests/test-link.c: Include <errno.h>.
21656         (main): Exit with code 77 when a hard link cannot be created due to
21657         the file system.
21658         * tests/test-link.sh: Skip test when a hard link cannot be created due
21659         to the file system.
21660         Suggested by Eric Blake.
21661
21662 2009-01-19  Martin Lambers  <marlam@marlam.de>
21663
21664         * modules/link-tests: New file.
21665         * tests/test-link.sh: New file.
21666         * tests/test-link.c: New file.
21667
21668 2009-01-19  Eric Blake  <ebb9@byu.net>
21669
21670         doc: mention another function added in cygwin 1.7.0
21671         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
21672         Another new function in cygwin 1.7.
21673
21674 2009-01-19  Bruno Haible  <bruno@clisp.org>
21675
21676         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21677         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
21678         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
21679         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21680         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21681         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21682         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21683         * m4/md4.m4 (gl_MD4): Likewise.
21684         * m4/md5.m4 (gl_MD5): Likewise.
21685         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
21686         * m4/sha1.m4 (gl_SHA1): Likewise.
21687         * m4/sha256.m4 (gl_SHA256): Likewise.
21688         * m4/sha512.m4 (gl_SHA512): Likewise.
21689
21690 2009-01-19  Bruno Haible  <bruno@clisp.org>
21691
21692         * modules/uniname/uniname-tests (Depends-on): Add progname.
21693         * tests/uniname/test-uninames.c: Include progname.h.
21694         (main): Call set_program_name.
21695
21696         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
21697         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
21698         (main): Call set_program_name.
21699
21700         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
21701         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
21702         (main): Call set_program_name.
21703
21704         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
21705         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
21706         (main): Call set_program_name.
21707
21708         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
21709         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
21710         (main): Call set_program_name.
21711
21712         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
21713         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
21714         (main): Call set_program_name.
21715
21716         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
21717         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
21718         (main): Call set_program_name.
21719
21720         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
21721         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
21722         (main): Call set_program_name.
21723
21724         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
21725         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
21726         (main): Call set_program_name.
21727
21728 2009-01-19  Eric Blake  <ebb9@byu.net>
21729
21730         test-unistd: test previous patch
21731         * tests/test-unistd.c: Test *_FILENO macros.
21732
21733         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
21734         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21735         Guarantee a definition.
21736         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
21737         * modules/unistd-safer (Depends-on): Add dependency on unistd.
21738         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
21739         * lib/dup-safer.c (STDERR_FILENO): Likewise.
21740         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21741         Likewise.
21742         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
21743         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
21744         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21745         Likewise.
21746         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
21747         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
21748         (STDERR_FILENO): Likewise.
21749         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
21750         (STDERR_FILENO): Likewise.
21751         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
21752         (STDERR_FILENO): Likewise.
21753         Reported by Elbert Pol.
21754
21755 2009-01-19  Eric Blake  <ebb9@byu.net>
21756
21757         doc: mention more functions added in cygwin 1.7.0
21758         * doc/posix-functions/abort.texi (abort): Update wording related
21759         to cygwin.
21760         * doc/posix-functions/daylight.texi (daylight): Likewise.
21761         * doc/posix-functions/optarg.texi (optarg): Likewise.
21762         * doc/posix-functions/optarg.texi (opterr): Likewise.
21763         * doc/posix-functions/optarg.texi (optind): Likewise.
21764         * doc/posix-functions/optarg.texi (optopt): Likewise.
21765         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
21766         worked in 1.5.x, and was withdrawn in 1.7.
21767         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
21768         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
21769         cygwin versions.
21770         * doc/posix-functions/perror.texi (perror): Likewise.
21771         * doc/posix-functions/printf.texi (printf): Likewise.
21772         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
21773         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
21774         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21775         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21776         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21777         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
21778         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21779         Likewise.
21780         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21781         Likewise.
21782         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
21783         this function.
21784         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
21785         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
21786         Likewise.
21787         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
21788         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
21789         * doc/posix-functions/confstr.texi (confstr): Likewise.
21790         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
21791         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
21792         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
21793         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
21794         * doc/posix-functions/fputws.texi (fputws): Likewise.
21795         * doc/posix-functions/fwide.texi (fwide): Likewise.
21796         * doc/posix-functions/getwc.texi (getwc): Likewise.
21797         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
21798         * doc/posix-functions/putwc.texi (putwc): Likewise.
21799         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
21800         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
21801         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
21802         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
21803         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
21804         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
21805         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
21806         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
21807         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
21808         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
21809         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
21810
21811 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
21812
21813         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
21814         * lib/ioctl.c: Include <sys/ioctl.h>.
21815
21816 2009-01-19  Simon Josefsson  <simon@josefsson.org>
21817
21818         * modules/getdate-tests (Depends-on): Add progname.
21819         * tests/test-getdate.c: Use progname module, to avoid link errors
21820         on non-glibc systems.
21821
21822 2009-01-18  Simon Josefsson  <simon@josefsson.org>
21823
21824         * modules/filenamecat-tests (Depends-on): Add progname.
21825         * modules/fstrcmp-tests (Depends-on): Likewise.
21826
21827         * tests/test-filenamecat.c: Use progname module, to avoid link
21828         errors on non-glibc systems.
21829         * tests/test-fstrcmp.c: Likewise.
21830
21831 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
21832
21833         gettimeofday: avoid warning: nested extern declaration of 'localtime'
21834         * lib/gettimeofday.c: Move extern declaration out of function.
21835
21836 2009-01-18  Bruno Haible  <bruno@clisp.org>
21837
21838         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
21839         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
21840         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
21841
21842 2009-01-18  Bruno Haible  <bruno@clisp.org>
21843
21844         * lib/strftime.c (MEMPCPY): Remove unused macro.
21845         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
21846
21847 2009-01-18  Martin Lambers  <marlam@marlam.de>
21848
21849         New module 'link'.
21850         * lib/unistd.in.h (link): New declaration.
21851         * lib/link.c: New file.
21852         * m4/link.m4: New file.
21853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
21854         HAVE_LINK.
21855         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
21856         * modules/link: New file.
21857         * doc/posix-functions/link.texi: Mention the new module.
21858
21859 2009-01-18  Bruno Haible  <bruno@clisp.org>
21860
21861         * tests/test-avltree_list.c (main): Call set_program_name.
21862         * tests/test-avltree_oset.c (main): Likewise.
21863         * tests/test-obstack-printf.c: Include progname.h.
21864         (main): Call set_program_name.
21865         * tests/test-quotearg.c: Include progname.h.
21866         (main): Call set_program_name.
21867         * tests/test-xmemdup0.c: Include progname.h.
21868         (main): Call set_program_name.
21869
21870 2009-01-18  Bruno Haible  <bruno@clisp.org>
21871
21872         New module 'alphasort'.
21873         * lib/dirent.in.h (alphasort): New declaration.
21874         * lib/alphasort.c: New file, from glibc with modifications.
21875         * m4/alphasort.m4: New file.
21876         * modules/alphasort: New file.
21877         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
21878         HAVE_ALPHASORT.
21879         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
21880         HAVE_ALPHASORT.
21881         * doc/posix-functions/alphasort.texi: Mention the new module and the
21882         portability problems.
21883
21884 2009-01-18  Bruno Haible  <bruno@clisp.org>
21885
21886         New module 'scandir'.
21887         * lib/dirent.in.h (scandir): New declaration.
21888         * lib/scandir.c: New file, from glibc with modifications.
21889         * m4/scandir.m4: New file.
21890         * modules/scandir: New file.
21891         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
21892         HAVE_SCANDIR.
21893         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
21894         HAVE_SCANDIR.
21895         * doc/posix-functions/scandir.texi: Mention the new module and the
21896         portability problems.
21897
21898 2009-01-17  Bruno Haible  <bruno@clisp.org>
21899
21900         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
21901         Update documentation.
21902         (func_remove_suffix): Escape all dots in the suffix. Update
21903         documentation.
21904         (func_filter_filelist): Update documentation.
21905         Reported by Ralf Wildenhues.
21906
21907 2009-01-17  Bruno Haible  <bruno@clisp.org>
21908
21909         * modules/dprintf-posix-tests: New file.
21910         * tests/test-dprintf-posix.sh: New file.
21911         * tests/test-dprintf-posix.c: New file.
21912
21913         New modules 'dprintf', 'dprintf-posix'.
21914         * lib/stdio.in.h (dprintf): New declaration.
21915         * lib/dprintf.c: New file.
21916         * m4/dprintf.m4: New file.
21917         * m4/dprintf-posix.m4: New file.
21918         * modules/dprintf: New file.
21919         * modules/dprintf-posix: New file.
21920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
21921         HAVE_DPRINTF, REPLACE_DPRINTF.
21922         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
21923         HAVE_DPRINTF, REPLACE_DPRINTF.
21924         * doc/posix-functions/dprintf.texi: Mention the new modules.
21925
21926 2009-01-17  Bruno Haible  <bruno@clisp.org>
21927
21928         * modules/vdprintf-posix-tests: New file.
21929         * tests/test-vdprintf-posix.sh: New file.
21930         * tests/test-vdprintf-posix.c: New file.
21931
21932         New modules 'vdprintf', 'vdprintf-posix'.
21933         * lib/stdio.in.h (vdprintf): New declaration.
21934         * lib/vdprintf.c: New file.
21935         * m4/vdprintf.m4: New file.
21936         * m4/vdprintf-posix.m4: New file.
21937         * modules/vdprintf: New file.
21938         * modules/vdprintf-posix: New file.
21939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
21940         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21941         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
21942         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21943         * doc/posix-functions/vdprintf.texi: Mention the new modules.
21944
21945 2009-01-17  Bruno Haible  <bruno@clisp.org>
21946
21947         Fix replacement of fopen on mingw.
21948         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
21949         mingw.
21950
21951 2009-01-17  Bruno Haible  <bruno@clisp.org>
21952
21953         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
21954         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
21955
21956 2009-01-17  Bruno Haible  <bruno@clisp.org>
21957
21958         Avoid test-fflush2.sh failure on mingw.
21959         * tests/test-fflush2.c: Include binary-io.h.
21960         (main): Put standard input into binary mode.
21961         * modules/fflush-tests (Depends-on): Add binary-io.
21962
21963 2009-01-17  Bruno Haible  <bruno@clisp.org>
21964
21965         * lib/wchar.in.h: In another particular situation, include only the
21966         system's <wchar.h> file.
21967         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
21968         Reported by Albert Chin-A-Young <china@thewrittenword.com>
21969         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
21970
21971 2009-01-17  Bruno Haible  <bruno@clisp.org>
21972
21973         Support for stripping executables in --enable-relocatable.
21974         * build-aux/install-reloc: Expect one more argument, or an environment
21975         variable RELOC_STRIP_PROG. If set, strip the destination program and
21976         its wrapper.
21977         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
21978         RELOC_STRIP_PROG.
21979         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
21980         to set RELOCATABLE_STRIP.
21981         * NEWS: Mention the new Makefile requirement.
21982
21983 2009-01-17  Bruno Haible  <bruno@clisp.org>
21984
21985         * build-aux/install-reloc: Remove debugging information left over by
21986         C compiler on MacOS X.
21987
21988 2009-01-17  Bruno Haible  <bruno@clisp.org>
21989
21990         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
21991         * lib/progreloc.c (find_executable): Fix type of pointer passed to
21992         _NSGetExecutablePath.
21993
21994 2009-01-16  Jim Meyering  <meyering@redhat.com>
21995
21996         strerror: avoid warnings about discarding "const"
21997         * lib/strerror.c (rpl_strerror): Instead of returning a const
21998         string from each and every "case", use a variable, and add a single
21999         cast after the switch.
22000
22001 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22002
22003         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22004
22005 2009-01-16  Bruno Haible  <bruno@clisp.org>
22006
22007         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22008         array initializer syntax that also works in C++ mode.
22009         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22010
22011 2009-01-16  Jim Meyering  <meyering@redhat.com>
22012
22013         poll: suppress a warning
22014         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22015         to ignore "...unsigned expression < 0 is always false" warnings.
22016
22017 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22018
22019         poll: remove declarations of unused variables
22020         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22021         sockbuf and optlen.
22022
22023 2009-01-15  Bruno Haible  <bruno@clisp.org>
22024
22025         Make fflush-after-ungetc POSIX compliant on BSD systems.
22026         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22027         (clear_ungetc_buffer): Implement also for other systems.
22028         (rpl_fflush): On glibc systems, invoke
22029         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22030         clear_ungetc_buffer after fetching the stream's position, not before.
22031
22032 2009-01-15  Bruno Haible  <bruno@clisp.org>
22033
22034         Make fflush-after-ungetc POSIX compliant on glibc systems.
22035         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22036         after ungetc.
22037         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22038         (rpl_fflush): On glibc systems, simply call the system's fflush
22039         function after clearing the ungetc buffer.
22040         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22041         Instead, lseek only to the end of file, then use the system's fseeko
22042         for the rest. On glibc systems, reset the EOF indicator bit.
22043
22044 2009-01-15  Jim Meyering  <meyering@redhat.com>
22045
22046         openmp.m4: revert quote-adding change, for portability to older autoconf
22047         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22048         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22049         Simon Josefsson noticed the problem when using autoconf-2.61.
22050
22051 2009-01-15  Bruno Haible  <bruno@clisp.org>
22052
22053         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22054         * tests/test-fflush2.c (ASSERT): Always fail.
22055         (main): Add two tests for fflush() after ungetc(), taking into account
22056         the Austin Group's clarification.
22057         Suggested by Eric Blake.
22058
22059 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22060
22061         mktime.m4: remove K&R-style function prototypes
22062         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22063         for the Sun C++ compiler.
22064
22065 2009-01-14  Bruno Haible  <bruno@clisp.org>
22066
22067         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22068         while including <wchar.h>.
22069         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22070         the system's <wchar.h> file.
22071         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22072
22073 2009-01-14  Bruno Haible  <bruno@clisp.org>
22074
22075         * m4/csharp.m4: Don't mention gettext on the serial number line.
22076         * m4/csharpexec.m4: Likewise.
22077         * m4/eaccess.m4: Likewise.
22078         * m4/javaexec.m4: Likewise.
22079         * m4/sig_atomic_t.m4: Likewise.
22080         * m4/tmpdir.m4: Likewise.
22081         * m4/intldir.m4: Bump gettext version.
22082         * m4/lib-ld.m4: Likewise.
22083
22084 2009-01-14  Bruno Haible  <bruno@clisp.org>
22085
22086         * lib/progname.c (set_program_name): Add more comments.
22087         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22088
22089 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22090
22091         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22092         were sys/stat.h does not define it.
22093
22094 2009-01-14  Jim Meyering  <meyering@redhat.com>
22095
22096         many *.m4 files: improve m4 quoting
22097         99% of this change was performed by running the following commands:
22098         git ls-files | grep '\.m4$' | xargs perl -pi \
22099           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22100           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22101           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22102           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22103         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22104         The remainder were to add Copyright dates, increment serial numbers,
22105         undo some changes in comments, exclude m4/intl.m4, and add quotes
22106         around the "1" in ",1" where the unusual spacing prohibited the
22107         above regexps from doing the job.  For more details, see
22108         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22109         * m4/acl.m4: Modified.
22110         * m4/afs.m4: Likewise.
22111         * m4/alloca.m4: Likewise.
22112         * m4/argp.m4: Likewise.
22113         * m4/argz.m4: Likewise.
22114         * m4/atexit.m4: Likewise.
22115         * m4/bison-i18n.m4: Likewise.
22116         * m4/bison.m4: Likewise.
22117         * m4/byteswap.m4: Likewise.
22118         * m4/c-stack.m4: Likewise.
22119         * m4/c-strtod.m4: Likewise.
22120         * m4/calloc.m4: Likewise.
22121         * m4/canonicalize-lgpl.m4: Likewise.
22122         * m4/chown.m4: Likewise.
22123         * m4/clock_time.m4: Likewise.
22124         * m4/codeset.m4: Likewise.
22125         * m4/copy-file.m4: Likewise.
22126         * m4/csharp.m4: Likewise.
22127         * m4/csharpcomp.m4: Likewise.
22128         * m4/csharpexec.m4: Likewise.
22129         * m4/d-ino.m4: Likewise.
22130         * m4/d-type.m4: Likewise.
22131         * m4/dirfd.m4: Likewise.
22132         * m4/double-slash-root.m4: Likewise.
22133         * m4/eaccess.m4: Likewise.
22134         * m4/eealloc.m4: Likewise.
22135         * m4/environ.m4: Likewise.
22136         * m4/errno_h.m4: Likewise.
22137         * m4/euidaccess.m4: Likewise.
22138         * m4/execute.m4: Likewise.
22139         * m4/fatal-signal.m4: Likewise.
22140         * m4/fchdir.m4: Likewise.
22141         * m4/fcntl_h.m4: Likewise.
22142         * m4/fileblocks.m4: Likewise.
22143         * m4/filenamecat.m4: Likewise.
22144         * m4/findprog.m4: Likewise.
22145         * m4/flexmember.m4: Likewise.
22146         * m4/fnmatch.m4: Likewise.
22147         * m4/fopen.m4: Likewise.
22148         * m4/fpending.m4: Likewise.
22149         * m4/fprintf-posix.m4: Likewise.
22150         * m4/free.m4: Likewise.
22151         * m4/frexp.m4: Likewise.
22152         * m4/frexpl.m4: Likewise.
22153         * m4/fsusage.m4: Likewise.
22154         * m4/ftruncate.m4: Likewise.
22155         * m4/gc-camellia.m4: Likewise.
22156         * m4/gc-random.m4: Likewise.
22157         * m4/gc.m4: Likewise.
22158         * m4/getaddrinfo.m4: Likewise.
22159         * m4/getcwd-abort-bug.m4: Likewise.
22160         * m4/getcwd-path-max.m4: Likewise.
22161         * m4/getdate.m4: Likewise.
22162         * m4/getdomainname.m4: Likewise.
22163         * m4/getgroups.m4: Likewise.
22164         * m4/gethostname.m4: Likewise.
22165         * m4/gethrxtime.m4: Likewise.
22166         * m4/getline.m4: Likewise.
22167         * m4/getloadavg.m4: Likewise.
22168         * m4/getndelim2.m4: Likewise.
22169         * m4/getpass.m4: Likewise.
22170         * m4/gettext.m4: Likewise.
22171         * m4/gettime.m4: Likewise.
22172         * m4/gettimeofday.m4: Likewise.
22173         * m4/gnulib-common.m4: Likewise.
22174         * m4/group-member.m4: Likewise.
22175         * m4/host-os.m4: Likewise.
22176         * m4/iconv.m4: Likewise.
22177         * m4/iconv_open.m4: Likewise.
22178         * m4/inet_ntop.m4: Likewise.
22179         * m4/inet_pton.m4: Likewise.
22180         * m4/inline.m4: Likewise.
22181         * m4/intldir.m4: Likewise.
22182         * m4/intlmacosx.m4: Likewise.
22183         * m4/intmax.m4: Likewise.
22184         * m4/intmax_t.m4: Likewise.
22185         * m4/inttypes.m4: Likewise.
22186         * m4/inttypes_h.m4: Likewise.
22187         * m4/inttypes-pri.m4: Likewise.
22188         * m4/isapipe.m4: Likewise.
22189         * m4/isnand.m4: Likewise.
22190         * m4/isnanf.m4: Likewise.
22191         * m4/isnanl.m4: Likewise.
22192         * m4/javacomp.m4: Likewise.
22193         * m4/javaexec.m4: Likewise.
22194         * m4/jm-winsz1.m4: Likewise.
22195         * m4/jm-winsz2.m4: Likewise.
22196         * m4/lchown.m4: Likewise.
22197         * m4/lcmessage.m4: Likewise.
22198         * m4/ldexpl.m4: Likewise.
22199         * m4/lib-ld.m4: Likewise.
22200         * m4/lib-link.m4: Likewise.
22201         * m4/libsigsegv.m4: Likewise.
22202         * m4/link-follow.m4: Likewise.
22203         * m4/localcharset.m4: Likewise.
22204         * m4/locale-fr.m4: Likewise.
22205         * m4/locale-ja.m4: Likewise.
22206         * m4/locale-tr.m4: Likewise.
22207         * m4/locale-zh.m4: Likewise.
22208         * m4/lock.m4: Likewise.
22209         * m4/longlong.m4: Likewise.
22210         * m4/ls-mntd-fs.m4: Likewise.
22211         * m4/lstat.m4: Likewise.
22212         * m4/malloc.m4: Likewise.
22213         * m4/mathl.m4: Likewise.
22214         * m4/mbrtowc.m4: Likewise.
22215         * m4/mbstate_t.m4: Likewise.
22216         * m4/mbswidth.m4: Likewise.
22217         * m4/memchr.m4: Likewise.
22218         * m4/memcmp.m4: Likewise.
22219         * m4/memcpy.m4: Likewise.
22220         * m4/memmem.m4: Likewise.
22221         * m4/memmove.m4: Likewise.
22222         * m4/mempcpy.m4: Likewise.
22223         * m4/memrchr.m4: Likewise.
22224         * m4/memset.m4: Likewise.
22225         * m4/minmax.m4: Likewise.
22226         * m4/mkdir-slash.m4: Likewise.
22227         * m4/mkdtemp.m4: Likewise.
22228         * m4/mktime.m4: Likewise.
22229         * m4/mmap-anon.m4: Likewise.
22230         * m4/mountlist.m4: Likewise.
22231         * m4/nanosleep.m4: Likewise.
22232         * m4/nls.m4: Likewise.
22233         * m4/nocrash.m4: Likewise.
22234         * m4/open.m4: Likewise.
22235         * m4/openat.m4: Likewise.
22236         * m4/openmp.m4: Likewise.
22237         * m4/pathmax.m4: Likewise.
22238         * m4/perl.m4: Likewise.
22239         * m4/physmem.m4: Likewise.
22240         * m4/pipe.m4: Likewise.
22241         * m4/po.m4: Likewise.
22242         * m4/poll.m4: Likewise.
22243         * m4/posixtm.m4: Likewise.
22244         * m4/posixver.m4: Likewise.
22245         * m4/printf-frexp.m4: Likewise.
22246         * m4/printf-frexpl.m4: Likewise.
22247         * m4/printf-posix.m4: Likewise.
22248         * m4/printf-posix-rpl.m4: Likewise.
22249         * m4/printf.m4: Likewise.
22250         * m4/progtest.m4: Likewise.
22251         * m4/putenv.m4: Likewise.
22252         * m4/readline.m4: Likewise.
22253         * m4/readlink.m4: Likewise.
22254         * m4/readutmp.m4: Likewise.
22255         * m4/realloc.m4: Likewise.
22256         * m4/regex.m4: Likewise.
22257         * m4/relocatable.m4: Likewise.
22258         * m4/relocatable-lib.m4: Likewise.
22259         * m4/rename-dest-slash.m4: Likewise.
22260         * m4/rename.m4: Likewise.
22261         * m4/rmdir-errno.m4: Likewise.
22262         * m4/rmdir.m4: Likewise.
22263         * m4/roundf.m4: Likewise.
22264         * m4/roundl.m4: Likewise.
22265         * m4/rpmatch.m4: Likewise.
22266         * m4/save-cwd.m4: Likewise.
22267         * m4/selinux-selinux-h.m4: Likewise.
22268         * m4/setenv.m4: Likewise.
22269         * m4/settime.m4: Likewise.
22270         * m4/sig2str.m4: Likewise.
22271         * m4/sig_atomic_t.m4: Likewise.
22272         * m4/signalblocking.m4: Likewise.
22273         * m4/signbit.m4: Likewise.
22274         * m4/sigpipe.m4: Likewise.
22275         * m4/sockets.m4: Likewise.
22276         * m4/sockpfaf.m4: Likewise.
22277         * m4/st_dm_mode.m4: Likewise.
22278         * m4/stat-time.m4: Likewise.
22279         * m4/stdbool.m4: Likewise.
22280         * m4/stdint.m4: Likewise.
22281         * m4/stdint_h.m4: Likewise.
22282         * m4/stpcpy.m4: Likewise.
22283         * m4/stpncpy.m4: Likewise.
22284         * m4/strcase.m4: Likewise.
22285         * m4/strchrnul.m4: Likewise.
22286         * m4/strcspn.m4: Likewise.
22287         * m4/strdup.m4: Likewise.
22288         * m4/strftime.m4: Likewise.
22289         * m4/strndup.m4: Likewise.
22290         * m4/strnlen.m4: Likewise.
22291         * m4/strpbrk.m4: Likewise.
22292         * m4/strptime.m4: Likewise.
22293         * m4/strsep.m4: Likewise.
22294         * m4/strtod.m4: Likewise.
22295         * m4/strtoimax.m4: Likewise.
22296         * m4/strtok_r.m4: Likewise.
22297         * m4/strtol.m4: Likewise.
22298         * m4/strtoll.m4: Likewise.
22299         * m4/strtoul.m4: Likewise.
22300         * m4/strtoull.m4: Likewise.
22301         * m4/strtoumax.m4: Likewise.
22302         * m4/strverscmp.m4: Likewise.
22303         * m4/threadlib.m4: Likewise.
22304         * m4/timegm.m4: Likewise.
22305         * m4/tm_gmtoff.m4: Likewise.
22306         * m4/tmpdir.m4: Likewise.
22307         * m4/tmpfile.m4: Likewise.
22308         * m4/tzset.m4: Likewise.
22309         * m4/uintmax_t.m4: Likewise.
22310         * m4/unlinkdir.m4: Likewise.
22311         * m4/unlocked-io.m4: Likewise.
22312         * m4/uptime.m4: Likewise.
22313         * m4/userspec.m4: Likewise.
22314         * m4/utimbuf.m4: Likewise.
22315         * m4/utime.m4: Likewise.
22316         * m4/utimes-null.m4: Likewise.
22317         * m4/utimes.m4: Likewise.
22318         * m4/vararrays.m4: Likewise.
22319         * m4/vasnprintf.m4: Likewise.
22320         * m4/vfprintf-posix.m4: Likewise.
22321         * m4/vprintf-posix.m4: Likewise.
22322         * m4/wait-process.m4: Likewise.
22323         * m4/wchar_t.m4: Likewise.
22324         * m4/wint_t.m4: Likewise.
22325         * m4/write-any-file.m4: Likewise.
22326         * m4/yield.m4: Likewise.
22327
22328 2009-01-13  Bruno Haible  <bruno@clisp.org>
22329
22330         Avoid test-copy-file.sh failures when ACL support insufficient.
22331         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22332         TESTS_ENVIRONMENT.
22333         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22334         Reported by Jim Meyering.
22335
22336 2009-01-13  Bruno Haible  <bruno@clisp.org>
22337
22338         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22339         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22340         * modules/unistdio/u8-printf-parse (Files): Likewise.
22341         * modules/unistdio/u32-printf-parse (Files): Likewise.
22342         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22343
22344 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22345
22346         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22347         and m4/inttypes_h.m4 too.
22348
22349 2009-01-12  Eric Blake  <ebb9@byu.net>
22350
22351         tests: IRIX 6.2 cc can't compile -0.0 into .data
22352         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22353         rather than at compile-time.
22354         * tests/test-floorl.c (minus_zero): Likewise.
22355         * tests/test-frexpl.c (minus_zero): Likewise.
22356         * tests/test-isnan.c (minus_zerol): Likewise.
22357         * tests/test-isnanl.h (minus_zero): Likewise.
22358         * tests/test-ldexpl.c (minus_zero): Likewise.
22359         * tests/test-roundl.c (minus_zero): Likewise.
22360         * tests/test-signbit.c (minus_zerol): Likewise.
22361         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22362         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22363         * tests/test-truncl.c (minus_zero): Likewise.
22364         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22365         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22366         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22367
22368 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22369
22370         regex: fix glibc bug 9697
22371         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22372         handling.
22373
22374 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22375
22376         regex: fix glibc bug 697
22377         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22378         being NULL also if there are no backreferences.
22379
22380 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22381
22382         regex: merge glibc changes
22383         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22384         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22385         re_string_skip_chars, re_string_reconstruct): Likewise.
22386         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22387
22388 2009-01-07  Jim Meyering  <meyering@redhat.com>
22389
22390         poll: filter through cppi
22391         * lib/poll.c: Indent cpp directives to reflect nesting.
22392
22393 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22394
22395         poll: don't return uninitialized
22396         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22397
22398 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22399
22400         avoid compile failure on AIX 6.1
22401         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22402         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22403
22404 2009-01-04  Jim Meyering  <meyering@redhat.com>
22405
22406         remove duplicate inclusion of <stdio.h>
22407         * tests/test-fprintf-posix.c: Likewise.
22408         * tests/test-printf-posix.c: Likewise.
22409         * tests/test-snprintf-posix.c: Likewise.
22410         * tests/test-sprintf-posix.c: Likewise.
22411         * tests/test-vasprintf-posix.c: Likewise.
22412         * tests/test-vfprintf-posix.c: Likewise.
22413         * tests/test-vprintf-posix.c: Likewise.
22414         * tests/test-vsnprintf-posix.c: Likewise.
22415         * tests/test-vsprintf-posix.c: Likewise.
22416
22417 2009-01-03  Jim Meyering  <meyering@redhat.com>
22418
22419         gnulib-tool: fix sed-based filtering
22420         * gnulib-tool (func_filter_filelist): Remove extra backslash
22421         in sed_fff_filter definition.
22422
22423 2009-01-02  Jim Meyering  <meyering@redhat.com>
22424
22425         strftime: avoid compilation failure on Solaris 2.6
22426         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22427         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22428         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22429         be available.  Reported by Tom G. Christensen.  Details in
22430         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22431
22432 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22433             Bruno Haible  <bruno@clisp.org>
22434
22435         Speed up gnulib-tool by doing more string processing through shell
22436         built-ins.
22437         * gnulib-tool (fast_func_append): New variable.
22438         (func_remove_prefix, func_remove_suffix): New functions.
22439         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22440         (func_filter_filelist): New function.
22441         (func_get_dependencies): Use func_remove_suffix instead of sed.
22442         (func_get_automake_snippet): Use func_filter_filelist instead of a
22443         subshell and sed invocation.
22444
22445 2009-01-01  Bruno Haible  <bruno@clisp.org>
22446
22447         Fix a security bug.
22448         * gnulib-tool (func_import, import, update): Don't allow the characters
22449         '"', '$', '`', '\' in macro arguments that become part of commands that
22450         are evaluated.
22451
22452 2009-01-01  Bruno Haible  <bruno@clisp.org>
22453
22454         * gnulib-tool (func_reset_sigpipe): Add more comments.
22455
22456 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22457
22458         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22459         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22460         already know the answer.
22461
22462 2009-01-01  Jim Meyering  <meyering@redhat.com>
22463
22464         * lib/version-etc.c (version_etc_va): Update copyright year.
22465
22466 2008-12-30  Bruno Haible  <bruno@clisp.org>
22467
22468         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22469         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22470         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22471
22472 2008-12-29  Eric Blake  <ebb9@byu.net>
22473
22474         multiarch: avoid autoconf AC_REQUIRE bug
22475         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22476         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22477         2.63 and older.
22478         Reported by Bruno Haible, and analyzed in
22479         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22480
22481 2008-12-29  Bruno Haible  <bruno@clisp.org>
22482
22483         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22484         files in subdirectories correctly.
22485         Reported by Ralf Wildenhues.
22486
22487 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22488
22489         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22490         rather than 'join FILE -', for Solaris join.
22491
22492 2008-12-29  Bruno Haible  <bruno@clisp.org>
22493
22494         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22495         quoting.
22496         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22497         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22498         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22499         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22500         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22501         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22502         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22503         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22504         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22505         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22506         * m4/nls.m4 (AM_NLS): Likewise.
22507         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22508         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22509         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22510         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22511         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22512         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22513         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22514         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22515         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22516         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22517         * m4/xsize.m4 (gl_XSIZE): Likewise.
22518         Suggested by Jim Meyering.
22519
22520 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22521
22522         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22523         * lib/parse-duration.c: use a switch instead of cascading if's.
22524
22525 2008-12-29  Eric Blake  <ebb9@byu.net>
22526
22527         wchar.h: supply WEOF on Irix 5.3
22528         * lib/wchar.in.h (wint_t): Also supply WEOF.
22529         * lib/wctype.in.h (wint_t): Likewise.
22530         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22531         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22532         Reported by Tom G. Christensen.
22533
22534 2008-12-26  Bruno Haible  <bruno@clisp.org>
22535
22536         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22537         i486, i586, i686.
22538
22539 2008-12-26  Bruno Haible  <bruno@clisp.org>
22540
22541         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22542
22543 2008-12-26  Bruno Haible  <bruno@clisp.org>
22544
22545         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22546         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22547         not __STDC_CONSTANT_MACROS.
22548         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22549
22550 2008-12-25  Bruno Haible  <bruno@clisp.org>
22551
22552         Add support for universal builds to vasnprintf.
22553         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22554         universal builds, guess no.
22555         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22556         * modules/vasprintf-posix (Depends-on): Likewise.
22557         * modules/fprintf-posix (Depends-on): Likewise.
22558         * modules/vfprintf-posix (Depends-on): Likewise.
22559         * modules/snprintf-posix (Depends-on): Likewise.
22560         * modules/vsnprintf-posix (Depends-on): Likewise.
22561         * modules/sprintf-posix (Depends-on): Likewise.
22562         * modules/vsprintf-posix (Depends-on): Likewise.
22563         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22564         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22565         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22566         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22567         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22568         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22569         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22570
22571         Add support for universal builds to <inttypes.h>.
22572         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22573         _SCNu64_PREFIX): In Apple
22574         universal builds, define directly, using _LP64.
22575         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22576         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22577         * modules/inttypes (Depends-on): Add multiarch.
22578         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22579
22580         Add support for universal builds to <stdint.h>.
22581         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22582         universal builds, define directly, using _LP64.
22583         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22584         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22585         and size_t.
22586         * modules/stdint (Depends-on): Add multiarch.
22587         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22588
22589         New module 'multiarch'.
22590         * modules/multiarch: New file.
22591         * m4/multiarch.m4: New file.
22592
22593 2008-12-25  Bruno Haible  <bruno@clisp.org>
22594
22595         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22596
22597 2008-12-25  Bruno Haible  <bruno@clisp.org>
22598
22599         * modules/btowc (License): Relicense under LGPLv2+.
22600         * modules/mbsinit (License): Likewise.
22601         * modules/mbrtowc (License): Likewise.
22602         * modules/wcrtomb (License): Likewise.
22603         * modules/streq (License): Likewise.
22604         Reported by David Lutterkort <lutter@redhat.com>.
22605
22606 2008-12-23  Bruno Haible  <bruno@clisp.org>
22607
22608         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22609
22610 2008-12-23  Bruno Haible  <bruno@clisp.org>
22611
22612         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22613         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22614         GETADDRINFO_LIB, not in LIBS.
22615         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22616         * modules/canon-host (Link): Likewise.
22617         * NEWS: Mention the change.
22618         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22619         GETADDRINFO_LIB.
22620
22621 2008-12-22  Bruno Haible  <bruno@clisp.org>
22622
22623         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22624         * doc/posix-functions/iswalpha_l.texi: Likewise.
22625         * doc/posix-functions/iswblank_l.texi: Likewise.
22626         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22627         * doc/posix-functions/iswctype_l.texi: Likewise.
22628         * doc/posix-functions/iswdigit_l.texi: Likewise.
22629         * doc/posix-functions/iswgraph_l.texi: Likewise.
22630         * doc/posix-functions/iswlower_l.texi: Likewise.
22631         * doc/posix-functions/iswprint_l.texi: Likewise.
22632         * doc/posix-functions/iswpunct_l.texi: Likewise.
22633         * doc/posix-functions/iswspace_l.texi: Likewise.
22634         * doc/posix-functions/iswupper_l.texi: Likewise.
22635         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22636         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
22637         * doc/posix-functions/open_wmemstream.texi: Likewise.
22638         * doc/posix-functions/swscanf.texi: Likewise.
22639         * doc/posix-functions/towctrans_l.texi: Likewise.
22640         * doc/posix-functions/towlower.texi: Likewise.
22641         * doc/posix-functions/towlower_l.texi: Likewise.
22642         * doc/posix-functions/towupper.texi: Likewise.
22643         * doc/posix-functions/towupper_l.texi: Likewise.
22644         * doc/posix-functions/vfwprintf.texi: Likewise.
22645         * doc/posix-functions/vfwscanf.texi: Likewise.
22646         * doc/posix-functions/vswscanf.texi: Likewise.
22647         * doc/posix-functions/vwprintf.texi: Likewise.
22648         * doc/posix-functions/vwscanf.texi: Likewise.
22649         * doc/posix-functions/wcpcpy.texi: Likewise.
22650         * doc/posix-functions/wcpncpy.texi: Likewise.
22651         * doc/posix-functions/wcscasecmp.texi: Likewise.
22652         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
22653         * doc/posix-functions/wcscoll_l.texi: Likewise.
22654         * doc/posix-functions/wcsdup.texi: Likewise.
22655         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22656         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
22657         * doc/posix-functions/wcsnlen.texi: Likewise.
22658         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22659         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22660         * doc/posix-functions/wctrans_l.texi: Likewise.
22661         * doc/posix-functions/wctype_l.texi: Likewise.
22662         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
22663         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
22664         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
22665         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
22666         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
22667         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
22668         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
22669         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
22670         * doc/glibc-functions/wcschrnul.texi: Likewise.
22671         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22672         * doc/glibc-functions/wcstod_l.texi: Likewise.
22673         * doc/glibc-functions/wcstof_l.texi: Likewise.
22674         * doc/glibc-functions/wcstol_l.texi: Likewise.
22675         * doc/glibc-functions/wcstold_l.texi: Likewise.
22676         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22677         * doc/glibc-functions/wcstoq.texi: Likewise.
22678         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22679         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22680         * doc/glibc-functions/wcstouq.texi: Likewise.
22681         * doc/glibc-functions/wmempcpy.texi: Likewise.
22682
22683 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
22684             Eric Blake  <ebb9@byu.net>
22685             Paolo Bonzini  <bonzini@gnu.org>
22686             Bruno Haible  <bruno@clisp.org>
22687
22688         Make c-stack work on Haiku.
22689         * lib/c-stack.c (SA_ONSTACK): Define fallback.
22690         (c_stack_action): Use SA_ONSTACK flag.
22691
22692 2008-12-22  Bruno Haible  <bruno@clisp.org>
22693
22694         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
22695
22696 2008-12-22  Bruno Haible  <bruno@clisp.org>
22697
22698         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
22699         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
22700         being overridden.
22701         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
22702         New macros.
22703         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
22704         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
22705         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
22706         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
22707
22708 2008-12-22  Bruno Haible  <bruno@clisp.org>
22709
22710         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
22711         from test code.
22712
22713 2008-12-22  Eric Blake  <ebb9@byu.net>
22714
22715         Avoid gcc warnings on cygwin.
22716         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
22717         Avoid unused variable.
22718         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
22719         Likewise.
22720
22721 2008-12-22  Bruno Haible  <bruno@clisp.org>
22722
22723         Remove HAVE_MBRTOWC conditionals.
22724         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
22725         (mbscasecmp): Assume mbrtowc function.
22726         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
22727         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
22728         * lib/mbschr.c: Include mbuiter.h unconditionally.
22729         (mbschr): Assume mbrtowc function.
22730         * lib/mbscspn.c: Include mbuiter.h unconditionally.
22731         (mbscspn): Assume mbrtowc function.
22732         * lib/mbslen.c: Include mbuiter.h unconditionally.
22733         (mbslen): Assume mbrtowc function.
22734         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
22735         (mbsncasecmp): Assume mbrtowc function.
22736         * lib/mbsnlen.c: Include mbiter.h unconditionally.
22737         (mbsnlen): Assume mbrtowc function.
22738         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
22739         (mbspbrk): Assume mbrtowc function.
22740         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
22741         (mbspcasecmp): Assume mbrtowc function.
22742         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
22743         (mbsrchr): Assume mbrtowc function.
22744         * lib/mbssep.c: Include mbuiter.h unconditionally.
22745         (mbssep): Assume mbrtowc function.
22746         * lib/mbsspn.c: Include mbuiter.h unconditionally.
22747         (mbsspn): Assume mbrtowc function.
22748         * lib/mbsstr.c: Include mbuiter.h unconditionally.
22749         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
22750         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
22751         (mbstok_r): Assume mbrtowc function.
22752         * lib/propername.c: Include mbuiter.h unconditionally.
22753         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
22754         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
22755         (trim2): Assume mbrtowc function.
22756         * lib/mbswidth.c (mbsinit): Remove fallback definition.
22757         (mbsnwidth): Assume mbrtowc function.
22758         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
22759         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
22760         fallback definitions.
22761         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
22762
22763 2008-12-22  Bruno Haible  <bruno@clisp.org>
22764
22765         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
22766
22767 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
22768
22769         * modules/regex: Request emulations for the mb*/wc* functions we need.
22770         * m4/regex.m4: Don't look for those functions here.
22771         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
22772
22773 2008-12-22  Bruno Haible  <bruno@clisp.org>
22774
22775         * modules/fnmatch (Depends-on): Remove duplicated dependency.
22776
22777 2008-12-21  Bruno Haible  <bruno@clisp.org>
22778
22779         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
22780         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
22781         (Include): Remove conditionalization.
22782         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
22783         (Include): Remove conditionalization.
22784         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
22785         (Include): Remove conditionalization.
22786         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
22787         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22788         * NEWS: Mention the change.
22789         Reported by Alan Hourihane <alanh@fairlite.co.uk>
22790         via Sergey Poznyakoff <gray@gnu.org.ua>.
22791
22792 2008-12-21  Bruno Haible  <bruno@clisp.org>
22793
22794         * MODULES.html.sh (Extended multibyte and wide character utilities
22795         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
22796         wcrtomb, wcsrtombs.
22797         (Support for systems lacking POSIX:2008): Add accept, bind, close,
22798         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
22799         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
22800         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
22801
22802 2008-12-21  Bruno Haible  <bruno@clisp.org>
22803
22804         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
22805
22806 2008-12-21  Bruno Haible  <bruno@clisp.org>
22807
22808         * modules/wcsnrtombs-tests: New file.
22809         * tests/test-wcsnrtombs1.sh: New file.
22810         * tests/test-wcsnrtombs2.sh: New file.
22811         * tests/test-wcsnrtombs3.sh: New file.
22812         * tests/test-wcsnrtombs4.sh: New file.
22813         * tests/test-wcsnrtombs.c: New file.
22814
22815         New module 'wcsnrtombs'.
22816         * lib/wchar.in.h (wcsnrtombs): New declaration.
22817         * lib/wcsnrtombs.c: New file.
22818         * lib/wcsrtombs-state.c: New file.
22819         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
22820         (internal_state): Remove variable.
22821         * m4/wcsnrtombs.m4: New file.
22822         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
22823         compilation units.
22824         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
22825         HAVE_WCSNRTOMBS.
22826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
22827         HAVE_WCSNRTOMBS.
22828         * modules/wcsnrtombs: New file.
22829         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
22830         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
22831
22832 2008-12-21  Bruno Haible  <bruno@clisp.org>
22833
22834         * modules/wcsrtombs-tests: New file.
22835         * tests/test-wcsrtombs1.sh: New file.
22836         * tests/test-wcsrtombs2.sh: New file.
22837         * tests/test-wcsrtombs3.sh: New file.
22838         * tests/test-wcsrtombs4.sh: New file.
22839         * tests/test-wcsrtombs.c: New file.
22840
22841         New module 'wcsrtombs'.
22842         * lib/wchar.in.h (wcsrtombs): New declaration.
22843         * lib/wcsrtombs.c: New file.
22844         * m4/wcsrtombs.m4: New file.
22845         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
22846         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
22847         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
22848         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
22849         * modules/wcsrtombs: New file.
22850         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
22851         bugs.
22852
22853 2008-12-21  Bruno Haible  <bruno@clisp.org>
22854
22855         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
22856         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
22857         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
22858         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
22859         if not correct.
22860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
22861         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
22862         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22863         m4/locale-zh.m4, m4/codeset.m4.
22864         * doc/posix-functions/wcrtomb.texi: Document the bug.
22865
22866 2008-12-21  Bruno Haible  <bruno@clisp.org>
22867
22868         Work around a btowc() bug on IRIX 6.5.
22869         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
22870         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
22871         REPLACE_WTOBC if not.
22872         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
22873         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
22874         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
22875
22876 2008-12-21  Bruno Haible  <bruno@clisp.org>
22877
22878         * modules/wcrtomb-tests: New file.
22879         * tests/test-wcrtomb.sh: New file.
22880         * tests/test-wcrtomb.c: New file.
22881
22882         New module 'wcrtomb'.
22883         * lib/wchar.in.h (wcrtomb): New declaration.
22884         * lib/wcrtomb.c: New file.
22885         * m4/wcrtomb.m4: New file.
22886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
22887         HAVE_WCRTOMB.
22888         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
22889         HAVE_WCRTOMB.
22890         * modules/wcrtomb: New file.
22891         * doc/posix-functions/wcrtomb.texi: Mention the new module.
22892
22893 2008-12-21  Bruno Haible  <bruno@clisp.org>
22894
22895         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
22896         * modules/mbsrtowcs (Files): Likewise.
22897         * modules/wctob (Files): Likewise.
22898         * modules/c-strcase-tests (Files): Likewise.
22899         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22900         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22901         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22902         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22903         * modules/vasnprintf-posix-tests (Files): Likewise.
22904
22905 2008-12-21  William Pursell  <bill.pursell@gmail.com>
22906
22907         gitlog-to-changelog: pass all command-line arguments to git-log
22908         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
22909         it is sometimes convenient to filter the commits in various ways.
22910         gitlog-to-changelog only allows --since to specify a start date,
22911         but git-log itself supports many other filtering mechanisms.
22912         At the moment, I want to filter by branch name.  Rather than
22913         adding a --branch option to gitlog-to-changelog, it seems more
22914         flexible to simply pass all options directly to git-log and let
22915         git do the work.  Notice that this effectively makes --since a
22916         redundant option for gitlog-to-changelog, but removing it would
22917         require current usage to change since calls would then require
22918         an additional '--'.
22919
22920 2008-12-21  Bruno Haible  <bruno@clisp.org>
22921
22922         * modules/mbsnrtowcs-tests: New file.
22923         * tests/test-mbsnrtowcs1.sh: New file.
22924         * tests/test-mbsnrtowcs2.sh: New file.
22925         * tests/test-mbsnrtowcs3.sh: New file.
22926         * tests/test-mbsnrtowcs4.sh: New file.
22927         * tests/test-mbsnrtowcs.c: New file.
22928
22929         New module 'mbsnrtowcs'.
22930         * lib/wchar.in.h (mbsnrtowcs): New declaration.
22931         * lib/mbsnrtowcs.c: New file.
22932         * lib/mbsrtowcs-state.c: New file.
22933         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
22934         (internal_state): Remove variable.
22935         * m4/mbsnrtowcs.m4: New file.
22936         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
22937         compilation units.
22938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
22939         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22940         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
22941         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22942         * modules/mbsnrtowcs: New file.
22943         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
22944         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
22945         portability problem.
22946
22947 2008-12-21  Bruno Haible  <bruno@clisp.org>
22948
22949         Work around mbsrtowcs bug.
22950         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
22951         (gl_FUNC_MBSRTOWCS): Invoke it.
22952         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22953         m4/locale-zh.m4.
22954         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
22955
22956 2008-12-21  Bruno Haible  <bruno@clisp.org>
22957
22958         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
22959
22960 2008-12-21  Bruno Haible  <bruno@clisp.org>
22961
22962         Update doc for AIX.
22963         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
22964         16-bit wchar_t type.
22965         * doc/posix-functions/btowc.texi: Likewise.
22966         * doc/posix-functions/fgetwc.texi: Likewise.
22967         * doc/posix-functions/fgetws.texi: Likewise.
22968         * doc/posix-functions/fputwc.texi: Likewise.
22969         * doc/posix-functions/fputws.texi: Likewise.
22970         * doc/posix-functions/fwide.texi: Likewise.
22971         * doc/posix-functions/fwprintf.texi: Likewise.
22972         * doc/posix-functions/fwscanf.texi: Likewise.
22973         * doc/posix-functions/getwchar.texi: Likewise.
22974         * doc/posix-functions/getwc.texi: Likewise.
22975         * doc/posix-functions/iswalnum.texi: Likewise.
22976         * doc/posix-functions/iswalpha.texi: Likewise.
22977         * doc/posix-functions/iswblank.texi: Likewise.
22978         * doc/posix-functions/iswcntrl.texi: Likewise.
22979         * doc/posix-functions/iswctype.texi: Likewise.
22980         * doc/posix-functions/iswdigit.texi: Likewise.
22981         * doc/posix-functions/iswgraph.texi: Likewise.
22982         * doc/posix-functions/iswlower.texi: Likewise.
22983         * doc/posix-functions/iswprint.texi: Likewise.
22984         * doc/posix-functions/iswpunct.texi: Likewise.
22985         * doc/posix-functions/iswspace.texi: Likewise.
22986         * doc/posix-functions/iswupper.texi: Likewise.
22987         * doc/posix-functions/iswxdigit.texi: Likewise.
22988         * doc/posix-functions/mbrtowc.texi: Likewise.
22989         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22990         * doc/posix-functions/mbstowcs.texi: Likewise.
22991         * doc/posix-functions/mbtowc.texi: Likewise.
22992         * doc/posix-functions/putwchar.texi: Likewise.
22993         * doc/posix-functions/putwc.texi: Likewise.
22994         * doc/posix-functions/swprintf.texi: Likewise.
22995         * doc/posix-functions/tolower.texi: Likewise.
22996         * doc/posix-functions/toupper.texi: Likewise.
22997         * doc/posix-functions/towctrans.texi: Likewise.
22998         * doc/posix-functions/ungetwc.texi: Likewise.
22999         * doc/posix-functions/vswprintf.texi: Likewise.
23000         * doc/posix-functions/wcrtomb.texi: Likewise.
23001         * doc/posix-functions/wcscat.texi: Likewise.
23002         * doc/posix-functions/wcschr.texi: Likewise.
23003         * doc/posix-functions/wcscmp.texi: Likewise.
23004         * doc/posix-functions/wcscoll.texi: Likewise.
23005         * doc/posix-functions/wcscpy.texi: Likewise.
23006         * doc/posix-functions/wcscspn.texi: Likewise.
23007         * doc/posix-functions/wcsftime.texi: Likewise.
23008         * doc/posix-functions/wcslen.texi: Likewise.
23009         * doc/posix-functions/wcsncat.texi: Likewise.
23010         * doc/posix-functions/wcsncmp.texi: Likewise.
23011         * doc/posix-functions/wcsncpy.texi: Likewise.
23012         * doc/posix-functions/wcspbrk.texi: Likewise.
23013         * doc/posix-functions/wcsrchr.texi: Likewise.
23014         * doc/posix-functions/wcsrtombs.texi: Likewise.
23015         * doc/posix-functions/wcsspn.texi: Likewise.
23016         * doc/posix-functions/wcsstr.texi: Likewise.
23017         * doc/posix-functions/wcstod.texi: Likewise.
23018         * doc/posix-functions/wcstof.texi: Likewise.
23019         * doc/posix-functions/wcstoimax.texi: Likewise.
23020         * doc/posix-functions/wcstok.texi: Likewise.
23021         * doc/posix-functions/wcstold.texi: Likewise.
23022         * doc/posix-functions/wcstoll.texi: Likewise.
23023         * doc/posix-functions/wcstol.texi: Likewise.
23024         * doc/posix-functions/wcstombs.texi: Likewise.
23025         * doc/posix-functions/wcstoull.texi: Likewise.
23026         * doc/posix-functions/wcstoul.texi: Likewise.
23027         * doc/posix-functions/wcstoumax.texi: Likewise.
23028         * doc/posix-functions/wcswidth.texi: Likewise.
23029         * doc/posix-functions/wcsxfrm.texi: Likewise.
23030         * doc/posix-functions/wctob.texi: Likewise.
23031         * doc/posix-functions/wctomb.texi: Likewise.
23032         * doc/posix-functions/wctrans.texi: Likewise.
23033         * doc/posix-functions/wctype.texi: Likewise.
23034         * doc/posix-functions/wcwidth.texi: Likewise.
23035         * doc/posix-functions/wmemchr.texi: Likewise.
23036         * doc/posix-functions/wmemcmp.texi: Likewise.
23037         * doc/posix-functions/wmemcpy.texi: Likewise.
23038         * doc/posix-functions/wmemmove.texi: Likewise.
23039         * doc/posix-functions/wmemset.texi: Likewise.
23040         * doc/posix-functions/wprintf.texi: Likewise.
23041         * doc/posix-functions/wscanf.texi: Likewise.
23042
23043 2008-12-21  Bruno Haible  <bruno@clisp.org>
23044
23045         Update doc for HP-UX 11.11.
23046         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23047         in HP-UX version 11.00, not in all versions of HP-UX 11.
23048         * doc/posix-functions/fwide.texi: Likewise.
23049         * doc/posix-functions/fwprintf.texi: Likewise.
23050         * doc/posix-functions/fwscanf.texi: Likewise.
23051         * doc/posix-functions/inet_ntop.texi: Likewise.
23052         * doc/posix-functions/inet_pton.texi: Likewise.
23053         * doc/posix-functions/mbrlen.texi: Likewise.
23054         * doc/posix-functions/mbrtowc.texi: Likewise.
23055         * doc/posix-functions/mbsinit.texi: Likewise.
23056         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23057         * doc/posix-functions/swprintf.texi: Likewise.
23058         * doc/posix-functions/swscanf.texi: Likewise.
23059         * doc/posix-functions/towctrans.texi: Likewise.
23060         * doc/posix-functions/vfwprintf.texi: Likewise.
23061         * doc/posix-functions/vswprintf.texi: Likewise.
23062         * doc/posix-functions/vwprintf.texi: Likewise.
23063         * doc/posix-functions/wcrtomb.texi: Likewise.
23064         * doc/posix-functions/wcsrtombs.texi: Likewise.
23065         * doc/posix-functions/wcsstr.texi: Likewise.
23066         * doc/posix-functions/wctob.texi: Likewise.
23067         * doc/posix-functions/wctrans.texi: Likewise.
23068         * doc/posix-functions/wmemchr.texi: Likewise.
23069         * doc/posix-functions/wmemcmp.texi: Likewise.
23070         * doc/posix-functions/wmemcpy.texi: Likewise.
23071         * doc/posix-functions/wmemmove.texi: Likewise.
23072         * doc/posix-functions/wmemset.texi: Likewise.
23073         * doc/posix-functions/wprintf.texi: Likewise.
23074         * doc/posix-functions/wscanf.texi: Likewise.
23075
23076 2008-12-21  Bruno Haible  <bruno@clisp.org>
23077
23078         Work around a portability problem.
23079         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23080         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23081
23082 2008-12-20  Bruno Haible  <bruno@clisp.org>
23083
23084         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23085         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23086         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23088         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23089
23090         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23091         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23092         set.
23093         (GNULIB_defined_mbstate_t): New macro.
23094         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23095         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23096         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23097         reuses the system's mbrtowc function but works around the bugs.
23098         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23099         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23100         macros.
23101         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23102         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23103         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23104         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23105         REPLACE_MBSINIT if mbsinit needs to be overridden.
23106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23107         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23108         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23109         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23110         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23111         m4/locale-zh.m4.
23112         (Depends): Add mbsinit.
23113         * modules/mbsinit (Depends): Add mbrtowc.
23114         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23115
23116 2008-12-20  Bruno Haible  <bruno@clisp.org>
23117
23118         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23119         so that there are no conversion errors on AIX.
23120         * tests/test-mbsrtowcs.c (main): LIkewise.
23121
23122 2008-12-20  Bruno Haible  <bruno@clisp.org>
23123
23124         Work around wctob bug on Solaris <= 9.
23125         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23126         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23127         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23128         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23129         * modules/wctob (Files): Add m4/locale-fr.m4.
23130         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23131
23132 2008-12-20  Bruno Haible  <bruno@clisp.org>
23133
23134         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23135         /dev/null.
23136         * tests/test-select-in.sh: Likewise.
23137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23138
23139 2008-12-20  Bruno Haible  <bruno@clisp.org>
23140
23141         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23142         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23143         Cygwin 1.5.x.
23144
23145 2008-12-20  Bruno Haible  <bruno@clisp.org>
23146
23147         Ensure mbstate_t is defined on HP-UX 11.11.
23148         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23149         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23150         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23151         AC_USE_SYSTEM_EXTENSIONS.
23152         * modules/fnmatch (Depends-on): Add extensions.
23153         * modules/mbrlen (Depends-on): Likewise.
23154         * modules/mbrtowc (Depends-on): Likewise.
23155         * modules/mbsinit (Depends-on): Likewise.
23156         * modules/mbsrtowcs (Depends-on): Likewise.
23157         * modules/mbswidth (Depends-on): Likewise.
23158         * modules/quotearg (Depends-on): Likewise.
23159         * modules/strftime (Depends-on): Likewise.
23160
23161 2008-12-20  Bruno Haible  <bruno@clisp.org>
23162
23163         Ensure wctob is declared on IRIX 6.5.
23164         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23165         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23166         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23167         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23168         of HAVE_WCTOB.
23169         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23170         HAVE_WCTOB.
23171         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23172
23173 2008-12-19  Bruno Haible  <bruno@clisp.org>
23174
23175         * modules/mbsrtowcs-tests: New file.
23176         * tests/test-mbsrtowcs1.sh: New file.
23177         * tests/test-mbsrtowcs2.sh: New file.
23178         * tests/test-mbsrtowcs3.sh: New file.
23179         * tests/test-mbsrtowcs4.sh: New file.
23180         * tests/test-mbsrtowcs.c: New file.
23181
23182         New module 'mbsrtowcs'.
23183         * lib/wchar.in.h (mbsrtowcs): New declaration.
23184         * lib/mbsrtowcs.c: New file.
23185         * m4/mbsrtowcs.m4: New file.
23186         * modules/mbsrtowcs: New file.
23187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23188         HAVE_MBSRTOWCS.
23189         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23190         HAVE_MBSRTOWCS.
23191         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23192
23193 2008-12-19  Bruno Haible  <bruno@clisp.org>
23194
23195         New module 'mbrlen'.
23196         * lib/wchar.in.h (mbrlen): New declaration.
23197         * lib/mbrlen.c: New file.
23198         * m4/mbrlen.m4: New file.
23199         * modules/mbrlen: New file.
23200         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23201         HAVE_MBRLEN.
23202         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23203         HAVE_MBRLEN.
23204         * doc/posix-functions/mbrlen.texi: Document the new module.
23205
23206 2008-12-19  Bruno Haible  <bruno@clisp.org>
23207
23208         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23209         * modules/mbrtowc (Depends-on): Add verify.
23210         Suggested by Paul Eggert.
23211
23212 2008-12-18  Bruno Haible  <bruno@clisp.org>
23213
23214         * modules/mbsinit-tests: New file.
23215         * tests/test-mbsinit.sh: New file.
23216         * tests/test-mbsinit.c: New file.
23217
23218 2008-12-18  Bruno Haible  <bruno@clisp.org>
23219
23220         * modules/mbrtowc-tests: New file.
23221         * tests/test-mbrtowc1.sh: New file.
23222         * tests/test-mbrtowc2.sh: New file.
23223         * tests/test-mbrtowc3.sh: New file.
23224         * tests/test-mbrtowc4.sh: New file.
23225         * tests/test-mbrtowc.c: New file.
23226
23227         New module 'mbrtowc'.
23228         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23229         mbsinit and mbrtowc.
23230         (mbrtowc): New declaration.
23231         * lib/mbrtowc.c: New file.
23232         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23233         * modules/mbrtowc: New file.
23234         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23235         HAVE_MBRTOWC.
23236         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23237         HAVE_MBRTOWC.
23238         * doc/posix-functions/mbrtowc.texi: Document the new module.
23239
23240 2008-12-18  Bruno Haible  <bruno@clisp.org>
23241
23242         New module 'wctob'.
23243         * lib/wchar.in.h (wctob): New declaration.
23244         * lib/wctob.c: New file.
23245         * m4/wctob.m4: New file.
23246         * modules/wctob: New file.
23247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23248         HAVE_WCTOB.
23249         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23250         * doc/posix-functions/wctob.texi: Document the new module.
23251
23252 2008-12-18  Bruno Haible  <bruno@clisp.org>
23253
23254         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23255         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23256
23257 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23258
23259         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23260         G. Christensen" <tgc@jupiterrise.com>.
23261
23262         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23263         G. Christensen" <tgc@jupiterrise.com>.
23264
23265         * lib/flock.c: Need to include string.h.  Reported by "Tom
23266         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23267         <ebb9@byu.net>.
23268
23269 2008-12-18  Bruno Haible  <bruno@clisp.org>
23270
23271         * m4/locale-ja.m4: New file, from GNU gettext.
23272
23273 2008-12-17  Bruno Haible  <bruno@clisp.org>
23274
23275         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23276         Suggested by Eric Blake.
23277
23278 2008-12-17  Bruno Haible  <bruno@clisp.org>
23279
23280         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23281
23282 2008-12-17  Bruno Haible  <bruno@clisp.org>
23283
23284         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23285         * modules/mbsinit (Depends-on): Add verify.
23286         Suggested by Paul Eggert.
23287
23288 2008-12-17  Bruno Haible  <bruno@clisp.org>
23289
23290         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23291         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23292         gl_FUNC_MBRTOWC.
23293         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23294         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23295         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23296         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23297         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23298         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23299         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23300         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23301         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23302         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23303         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23304         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23305         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23306         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23307         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23308         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23309         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23310         * modules/trim (configure.ac): Likewise.
23311
23312 2008-12-17  Bruno Haible  <bruno@clisp.org>
23313
23314         * modules/btowc-tests: New file.
23315         * tests/test-btowc1.sh: New file.
23316         * tests/test-btowc2.sh: New file.
23317         * tests/test-btowc.c: New file.
23318
23319         New module 'btowc'.
23320         * lib/wchar.in.h (btowc): New declaration.
23321         * lib/btowc.c: New file.
23322         * m4/btowc.m4: New file.
23323         * modules/btowc: New file.
23324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23325         HAVE_BTOWC.
23326         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23327         * doc/posix-functions/btowc.texi: Document the new module.
23328
23329 2008-12-17  Bruno Haible  <bruno@clisp.org>
23330
23331         New module 'mbsinit'.
23332         * lib/wchar.in.h (mbsinit): New declaration.
23333         * lib/mbsinit.c: New file.
23334         * m4/mbsinit.m4: New file.
23335         * modules/mbsinit: New file.
23336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23337         HAVE_MBSINIT.
23338         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23339         HAVE_MBSINIT.
23340         * doc/posix-functions/mbsinit.texi: Document the new module.
23341
23342 2008-12-16  Bruno Haible  <bruno@clisp.org>
23343
23344         * lib/unistd.in.h: Add comment.
23345         * tests/test-environ.c: Don't include <stdlib.h>.
23346
23347 2008-12-16  Bruno Haible  <bruno@clisp.org>
23348
23349         * lib/parse-duration.h (parse_duration): Document return value
23350         convention.
23351         * lib/parse-duration.c: Include specification header first. Add
23352         comments.
23353         (_): Remove macro.
23354         (parse_year_month_day, parse_hour_minute_second): Move side effects
23355         outside of strchr call.
23356         (parse_non_iso8601): Move side effects outside of isspace call.
23357         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23358         call.
23359
23360 2008-12-16  Bruno Haible  <bruno@clisp.org>
23361
23362         * tests/test-parse-duration.sh: Produce no output when the test
23363         succeeds.
23364
23365 2008-12-16  Bruno Haible  <bruno@clisp.org>
23366
23367         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23368         expressions.
23369
23370 2008-12-15  Bruno Haible  <bruno@clisp.org>
23371
23372         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23373         * doc/glibc-functions/flistxattr.texi: Likewise.
23374         * doc/glibc-functions/fopencookie.texi: Likewise.
23375         * doc/glibc-functions/fremovexattr.texi: Likewise.
23376         * doc/glibc-functions/fsetxattr.texi: Likewise.
23377         * doc/glibc-functions/getxattr.texi: Likewise.
23378         * doc/glibc-functions/lgetxattr.texi: Likewise.
23379         * doc/glibc-functions/listxattr.texi: Likewise.
23380         * doc/glibc-functions/llistxattr.texi: Likewise.
23381         * doc/glibc-functions/lremovexattr.texi: Likewise.
23382         * doc/glibc-functions/lsetxattr.texi: Likewise.
23383         * doc/glibc-functions/removexattr.texi: Likewise.
23384         * doc/glibc-functions/setxattr.texi: Likewise.
23385         * doc/posix-functions/open_memstream.texi: Likewise.
23386
23387 2008-12-15  Eric Blake  <ebb9@byu.net>
23388
23389         Update doc for cygwin 1.7.
23390         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23391         functions.
23392         * doc/posix-functions/fchmodat.texi: Likewise.
23393         * doc/posix-functions/fchownat.texi: Likewise.
23394         * doc/posix-functions/fdopendir.texi: Likewise.
23395         * doc/posix-functions/fmemopen.texi: Likewise.
23396         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23397         * doc/posix-functions/fstatat.texi: Likewise.
23398         * doc/posix-functions/futimens.texi: Likewise.
23399         * doc/posix-functions/gai_strerror.texi: Likewise.
23400         * doc/posix-functions/getaddrinfo.texi: Likewise.
23401         * doc/posix-functions/getnameinfo.texi: Likewise.
23402         * doc/posix-functions/if_freenameindex.texi: Likewise.
23403         * doc/posix-functions/if_indextoname.texi: Likewise.
23404         * doc/posix-functions/if_nameindex.texi: Likewise.
23405         * doc/posix-functions/if_nametoindex.texi: Likewise.
23406         * doc/posix-functions/insque.texi: Likewise.
23407         * doc/posix-functions/linkat.texi: Likewise.
23408         * doc/posix-functions/llrint.texi: Likewise.
23409         * doc/posix-functions/llrintf.texi: Likewise.
23410         * doc/posix-functions/llrintl.texi: Likewise.
23411         * doc/posix-functions/lockf.texi: Likewise.
23412         * doc/posix-functions/lrintl.texi: Likewise.
23413         * doc/posix-functions/mkdirat.texi: Likewise.
23414         * doc/posix-functions/mkfifoat.texi: Likewise.
23415         * doc/posix-functions/mknodat.texi: Likewise.
23416         * doc/posix-functions/mq_close.texi: Likewise.
23417         * doc/posix-functions/mq_getattr.texi: Likewise.
23418         * doc/posix-functions/mq_notify.texi: Likewise.
23419         * doc/posix-functions/mq_open.texi: Likewise.
23420         * doc/posix-functions/mq_receive.texi: Likewise.
23421         * doc/posix-functions/mq_send.texi: Likewise.
23422         * doc/posix-functions/mq_setattr.texi: Likewise.
23423         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23424         * doc/posix-functions/mq_timedsend.texi: Likewise.
23425         * doc/posix-functions/mq_unlink.texi: Likewise.
23426         * doc/posix-functions/open_memstream.texi: Likewise.
23427         * doc/posix-functions/openat.texi: Likewise.
23428         * doc/posix-functions/posix_fadvise.texi: Likewise.
23429         * doc/posix-functions/posix_fallocate.texi: Likewise.
23430         * doc/posix-functions/posix_madvise.texi: Likewise.
23431         * doc/posix-functions/posix_memalign.texi: Likewise.
23432         * doc/posix-functions/posix_openpt.texi: Likewise.
23433         * doc/posix-functions/readlinkat.texi: Likewise.
23434         * doc/posix-functions/remque.texi: Likewise.
23435         * doc/posix-functions/renameat.texi: Likewise.
23436         * doc/posix-functions/rintl.texi: Likewise.
23437         * doc/posix-functions/sem_unlink.texi: Likewise.
23438         * doc/posix-functions/shm_open.texi: Likewise.
23439         * doc/posix-functions/shm_unlink.texi: Likewise.
23440         * doc/posix-functions/signgam.texi: Likewise.
23441         * doc/posix-functions/sigset.texi: Likewise.
23442         * doc/posix-functions/stpcpy.texi: Likewise.
23443         * doc/posix-functions/stpncpy.texi: Likewise.
23444         * doc/posix-functions/strerror.texi: Likewise.
23445         * doc/posix-functions/strtod.texi: Likewise.
23446         * doc/posix-functions/symlinkat.texi: Likewise.
23447         * doc/posix-functions/unlinkat.texi: Likewise.
23448         * doc/posix-functions/utimensat.texi: Likewise.
23449         * doc/glibc-functions/bindresvport.texi: Likewise.
23450         * doc/glibc-functions/dn_expand.texi: Likewise.
23451         * doc/glibc-functions/exp10.texi: Likewise.
23452         * doc/glibc-functions/exp10f.texi: Likewise.
23453         * doc/glibc-functions/fgetxattr.texi: Likewise.
23454         * doc/glibc-functions/flistxattr.texi: Likewise.
23455         * doc/glibc-functions/fopencookie.texi: Likewise.
23456         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23457         * doc/glibc-functions/fremovexattr.texi: Likewise.
23458         * doc/glibc-functions/fsetxattr.texi: Likewise.
23459         * doc/glibc-functions/getifaddrs.texi: Likewise.
23460         * doc/glibc-functions/getxattr.texi: Likewise.
23461         * doc/glibc-functions/lgetxattr.texi: Likewise.
23462         * doc/glibc-functions/listxattr.texi: Likewise.
23463         * doc/glibc-functions/llistxattr.texi: Likewise.
23464         * doc/glibc-functions/lremovexattr.texi: Likewise.
23465         * doc/glibc-functions/lsetxattr.texi: Likewise.
23466         * doc/glibc-functions/pow10.texi: Likewise.
23467         * doc/glibc-functions/pow10f.texi: Likewise.
23468         * doc/glibc-functions/rcmd_af.texi: Likewise.
23469         * doc/glibc-functions/removexattr.texi: Likewise.
23470         * doc/glibc-functions/res_init.texi: Likewise.
23471         * doc/glibc-functions/res_mkquery.texi: Likewise.
23472         * doc/glibc-functions/res_query.texi: Likewise.
23473         * doc/glibc-functions/res_querydomain.texi: Likewise.
23474         * doc/glibc-functions/res_send.texi: Likewise.
23475         * doc/glibc-functions/rresvport_af.texi: Likewise.
23476         * doc/glibc-functions/setxattr.texi: Likewise.
23477         * doc/glibc-functions/strcasestr.texi: Likewise.
23478
23479 2008-12-15  Bruno Haible  <bruno@clisp.org>
23480
23481         Fix compilation error on OSF/1 4.0.
23482         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23483         <sys/time.h>, simply delegate to the system header.
23484         Reported by Daniel Richard G. <oss@teragram.com>.
23485
23486 2008-12-15  Bruno Haible  <bruno@clisp.org>
23487
23488         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23489         * doc/posix-functions/fchmodat.texi: Likewise.
23490         * doc/posix-functions/fchownat.texi: Likewise.
23491         * doc/posix-functions/fdopendir.texi: Likewise.
23492         * doc/posix-functions/fstatat.texi: Likewise.
23493         * doc/posix-functions/mkdirat.texi: Likewise.
23494         * doc/posix-functions/unlinkat.texi: Likewise.
23495
23496 2008-12-14  Bruno Haible  <bruno@clisp.org>
23497
23498         Update doc for POSIX:2008.
23499         * doc/posix-functions/faccessat.texi: New file.
23500         * doc/posix-functions/fchmodat.texi: New file.
23501         * doc/posix-functions/fchownat.texi: New file.
23502         * doc/posix-functions/fdopendir.texi: New file.
23503         * doc/posix-functions/fstatat.texi: New file.
23504         * doc/posix-functions/futimens.texi: New file.
23505         * doc/posix-functions/linkat.texi: New file.
23506         * doc/posix-functions/mkdirat.texi: New file.
23507         * doc/posix-functions/mkfifoat.texi: New file.
23508         * doc/posix-functions/mknodat.texi: New file.
23509         * doc/posix-functions/open_wmemstream.texi: New file.
23510         * doc/posix-functions/openat.texi: New file.
23511         * doc/posix-functions/psiginfo.texi: New file.
23512         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23513         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23514         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23515         * doc/posix-functions/readlinkat.texi: New file.
23516         * doc/posix-functions/renameat.texi: New file.
23517         * doc/posix-functions/strerror_l.texi: New file.
23518         * doc/posix-functions/symlinkat.texi: New file.
23519         * doc/posix-functions/unlinkat.texi: New file.
23520         * doc/posix-functions/utimensat.texi: New file.
23521         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23522
23523 2008-12-14  Bruno Haible  <bruno@clisp.org>
23524
23525         Update doc for POSIX:2008.
23526         * doc/posix-functions/alphasort.texi: Renamed from
23527         doc/glibc-functions/alphasort.texi.
23528         * doc/posix-functions/dirfd.texi: Renamed from
23529         doc/glibc-functions/dirfd.texi.
23530         * doc/posix-functions/dprintf.texi: Renamed from
23531         doc/glibc-functions/dprintf.texi.
23532         * doc/posix-functions/duplocale.texi: Renamed from
23533         doc/glibc-functions/duplocale.texi.
23534         * doc/posix-functions/fexecve.texi: Renamed from
23535         doc/glibc-functions/fexecve.texi.
23536         * doc/posix-functions/fmemopen.texi: Renamed from
23537         doc/glibc-functions/fmemopen.texi.
23538         * doc/posix-functions/freelocale.texi: Renamed from
23539         doc/glibc-functions/freelocale.texi.
23540         * doc/posix-functions/getdate_err.texi: Renamed from
23541         doc/glibc-functions/getdate_err.texi.
23542         * doc/posix-functions/isalnum_l.texi: Renamed from
23543         doc/glibc-functions/isalnum_l.texi.
23544         * doc/posix-functions/isalpha_l.texi: Renamed from
23545         doc/glibc-functions/isalpha_l.texi.
23546         * doc/posix-functions/isblank_l.texi: Renamed from
23547         doc/glibc-functions/isblank_l.texi.
23548         * doc/posix-functions/iscntrl_l.texi: Renamed from
23549         doc/glibc-functions/iscntrl_l.texi.
23550         * doc/posix-functions/isdigit_l.texi: Renamed from
23551         doc/glibc-functions/isdigit_l.texi.
23552         * doc/posix-functions/isgraph_l.texi: Renamed from
23553         doc/glibc-functions/isgraph_l.texi.
23554         * doc/posix-functions/islower_l.texi: Renamed from
23555         doc/glibc-functions/islower_l.texi.
23556         * doc/posix-functions/isprint_l.texi: Renamed from
23557         doc/glibc-functions/isprint_l.texi.
23558         * doc/posix-functions/ispunct_l.texi: Renamed from
23559         doc/glibc-functions/ispunct_l.texi.
23560         * doc/posix-functions/isspace_l.texi: Renamed from
23561         doc/glibc-functions/isspace_l.texi.
23562         * doc/posix-functions/isupper_l.texi: Renamed from
23563         doc/glibc-functions/isupper_l.texi.
23564         * doc/posix-functions/iswalnum_l.texi: Renamed from
23565         doc/glibc-functions/iswalnum_l.texi.
23566         * doc/posix-functions/iswalpha_l.texi: Renamed from
23567         doc/glibc-functions/iswalpha_l.texi.
23568         * doc/posix-functions/iswblank_l.texi: Renamed from
23569         doc/glibc-functions/iswblank_l.texi.
23570         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23571         doc/glibc-functions/iswcntrl_l.texi.
23572         * doc/posix-functions/iswctype_l.texi: Renamed from
23573         doc/glibc-functions/iswctype_l.texi.
23574         * doc/posix-functions/iswdigit_l.texi: Renamed from
23575         doc/glibc-functions/iswdigit_l.texi.
23576         * doc/posix-functions/iswgraph_l.texi: Renamed from
23577         doc/glibc-functions/iswgraph_l.texi.
23578         * doc/posix-functions/iswlower_l.texi: Renamed from
23579         doc/glibc-functions/iswlower_l.texi.
23580         * doc/posix-functions/iswprint_l.texi: Renamed from
23581         doc/glibc-functions/iswprint_l.texi.
23582         * doc/posix-functions/iswpunct_l.texi: Renamed from
23583         doc/glibc-functions/iswpunct_l.texi.
23584         * doc/posix-functions/iswspace_l.texi: Renamed from
23585         doc/glibc-functions/iswspace_l.texi.
23586         * doc/posix-functions/iswupper_l.texi: Renamed from
23587         doc/glibc-functions/iswupper_l.texi.
23588         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23589         doc/glibc-functions/iswxdigit_l.texi.
23590         * doc/posix-functions/isxdigit_l.texi: Renamed from
23591         doc/glibc-functions/isxdigit_l.texi.
23592         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23593         doc/glibc-functions/mbsnrtowcs.texi.
23594         * doc/posix-functions/mkdtemp.texi: Renamed from
23595         doc/glibc-functions/mkdtemp.texi.
23596         * doc/posix-functions/newlocale.texi: Renamed from
23597         doc/glibc-functions/newlocale.texi.
23598         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23599         doc/glibc-functions/nl_langinfo_l.texi.
23600         * doc/posix-functions/open_memstream.texi: Renamed from
23601         doc/glibc-functions/open_memstream.texi.
23602         * doc/posix-functions/opterr.texi: Renamed from
23603         doc/glibc-functions/opterr.texi.
23604         * doc/posix-functions/optind.texi: Renamed from
23605         doc/glibc-functions/optind.texi.
23606         * doc/posix-functions/optopt.texi: Renamed from
23607         doc/glibc-functions/optopt.texi.
23608         * doc/posix-functions/psignal.texi: Renamed from
23609         doc/glibc-functions/psignal.texi.
23610         * doc/posix-functions/scandir.texi: Renamed from
23611         doc/glibc-functions/scandir.texi.
23612         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23613         doc/glibc-functions/sched_get_priority_min.texi.
23614         * doc/posix-functions/signgam.texi: Renamed from
23615         doc/glibc-functions/signgam.texi.
23616         * doc/posix-functions/stpcpy.texi: Renamed from
23617         doc/glibc-functions/stpcpy.texi.
23618         * doc/posix-functions/stpncpy.texi: Renamed from
23619         doc/glibc-functions/stpncpy.texi.
23620         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23621         doc/glibc-functions/strcasecmp_l.texi.
23622         * doc/posix-functions/strcoll_l.texi: Renamed from
23623         doc/glibc-functions/strcoll_l.texi.
23624         * doc/posix-functions/strfmon_l.texi: Renamed from
23625         doc/glibc-functions/strfmon_l.texi.
23626         * doc/posix-functions/strftime_l.texi: Renamed from
23627         doc/glibc-functions/strftime_l.texi.
23628         * doc/posix-functions/strncasecmp_l.texi: Renamed from
23629         doc/glibc-functions/strncasecmp_l.texi.
23630         * doc/posix-functions/strndup.texi: Renamed from
23631         doc/glibc-functions/strndup.texi.
23632         * doc/posix-functions/strnlen.texi: Renamed from
23633         doc/glibc-functions/strnlen.texi.
23634         * doc/posix-functions/strsignal.texi: Renamed from
23635         doc/glibc-functions/strsignal.texi.
23636         * doc/posix-functions/strxfrm_l.texi: Renamed from
23637         doc/glibc-functions/strxfrm_l.texi.
23638         * doc/posix-functions/timer_gettime.texi: Renamed from
23639         doc/glibc-functions/timer_gettime.texi.
23640         * doc/posix-functions/tolower_l.texi: Renamed from
23641         doc/glibc-functions/tolower_l.texi.
23642         * doc/posix-functions/toupper_l.texi: Renamed from
23643         doc/glibc-functions/toupper_l.texi.
23644         * doc/posix-functions/towctrans_l.texi: Renamed from
23645         doc/glibc-functions/towctrans_l.texi.
23646         * doc/posix-functions/towlower_l.texi: Renamed from
23647         doc/glibc-functions/towlower_l.texi.
23648         * doc/posix-functions/towupper_l.texi: Renamed from
23649         doc/glibc-functions/towupper_l.texi.
23650         * doc/posix-functions/uselocale.texi: Renamed from
23651         doc/glibc-functions/uselocale.texi.
23652         * doc/posix-functions/vdprintf.texi: Renamed from
23653         doc/glibc-functions/vdprintf.texi.
23654         * doc/posix-functions/wcpcpy.texi:
23655         Renamed from doc/glibc-functions/wcpcpy.texi.
23656         * doc/posix-functions/wcpncpy.texi: Renamed from
23657         doc/glibc-functions/wcpncpy.texi.
23658         * doc/posix-functions/wcscasecmp.texi: Renamed from
23659         doc/glibc-functions/wcscasecmp.texi.
23660         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
23661         doc/glibc-functions/wcscasecmp_l.texi.
23662         * doc/posix-functions/wcscoll_l.texi: Renamed from
23663         doc/glibc-functions/wcscoll_l.texi.
23664         * doc/posix-functions/wcsdup.texi: Renamed from
23665         doc/glibc-functions/wcsdup.texi.
23666         * doc/posix-functions/wcsncasecmp.texi: Renamed from
23667         doc/glibc-functions/wcsncasecmp.texi.
23668         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
23669         doc/glibc-functions/wcsncasecmp_l.texi.
23670         * doc/posix-functions/wcsnlen.texi: Renamed from
23671         doc/glibc-functions/wcsnlen.texi.
23672         * doc/posix-functions/wcsnrtombs.texi: Renamed from
23673         doc/glibc-functions/wcsnrtombs.texi.
23674         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
23675         doc/glibc-functions/wcsxfrm_l.texi.
23676         * doc/posix-functions/wctrans_l.texi: Renamed from
23677         doc/glibc-functions/wctrans_l.texi.
23678         * doc/posix-functions/wctype_l.texi: Renamed from
23679         doc/glibc-functions/wctype_l.texi.
23680         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23681         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
23682         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
23683         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
23684         these subsections.
23685         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
23686         Remove sections.
23687
23688 2008-12-14  Bruno Haible  <bruno@clisp.org>
23689
23690         Update doc for POSIX:2008.
23691         * doc/posix-functions/*.texi: Update URL of POSIX specification.
23692
23693 2008-12-14  Bruno Haible  <bruno@clisp.org>
23694
23695         Update doc for POSIX:2008.
23696         * doc/pastposix-functions/bcmp.texi: Renamed from
23697         doc/posix-functions/bcmp.texi.
23698         * doc/pastposix-functions/bcopy.texi: Renamed from
23699         doc/posix-functions/bcopy.texi.
23700         * doc/pastposix-functions/bsd_signal.texi: Renamed from
23701         doc/posix-functions/bsd_signal.texi.
23702         * doc/pastposix-functions/bzero.texi: Renamed from
23703         doc/posix-functions/bzero.texi.
23704         * doc/pastposix-functions/ecvt.texi: Renamed from
23705         doc/posix-functions/ecvt.texi.
23706         * doc/pastposix-functions/fcvt.texi: Renamed from
23707         doc/posix-functions/fcvt.texi.
23708         * doc/pastposix-functions/ftime.texi: Renamed from
23709         doc/posix-functions/ftime.texi.
23710         * doc/pastposix-functions/gcvt.texi: Renamed from
23711         doc/posix-functions/gcvt.texi.
23712         * doc/pastposix-functions/getcontext.texi: Renamed from
23713         doc/posix-functions/getcontext.texi.
23714         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
23715         doc/posix-functions/gethostbyaddr.texi.
23716         * doc/pastposix-functions/gethostbyname.texi: Renamed from
23717         doc/posix-functions/gethostbyname.texi.
23718         * doc/pastposix-functions/getwd.texi: Renamed from
23719         doc/posix-functions/getwd.texi.
23720         * doc/pastposix-functions/h_errno.texi: Renamed from
23721         doc/posix-functions/h_errno.texi.
23722         * doc/pastposix-functions/index.texi: Renamed from
23723         doc/posix-functions/index.texi.
23724         * doc/pastposix-functions/makecontext.texi: Renamed from
23725         doc/posix-functions/makecontext.texi.
23726         * doc/pastposix-functions/mktemp.texi: Renamed from
23727         doc/posix-functions/mktemp.texi.
23728         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
23729         doc/posix-functions/pthread_attr_getstackaddr.texi.
23730         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
23731         doc/posix-functions/pthread_attr_setstackaddr.texi.
23732         * doc/pastposix-functions/rindex.texi: Renamed from
23733         doc/posix-functions/rindex.texi.
23734         * doc/pastposix-functions/scalb.texi: Renamed from
23735         doc/posix-functions/scalb.texi.
23736         * doc/pastposix-functions/setcontext.texi: Renamed from
23737         doc/posix-functions/setcontext.texi.
23738         * doc/pastposix-functions/swapcontext.texi: Renamed from
23739         doc/posix-functions/swapcontext.texi.
23740         * doc/pastposix-functions/ualarm.texi: Renamed from
23741         doc/posix-functions/ualarm.texi.
23742         * doc/pastposix-functions/usleep.texi: Renamed from
23743         doc/posix-functions/usleep.texi.
23744         * doc/pastposix-functions/vfork.texi: Renamed from
23745         doc/posix-functions/vfork.texi.
23746         * doc/pastposix-functions/wcswcs.texi: Renamed from
23747         doc/posix-functions/wcswcs.texi.
23748         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
23749         (Function Substitutes): Update.
23750
23751 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23752
23753         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
23754         m4/strerror.m4.
23755
23756 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23757             Bruno Haible  <bruno@clisp.org>
23758
23759         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
23760
23761 2008-12-13  Bruno Haible  <bruno@clisp.org>
23762
23763         * modules/strtoull (Depends-on): Remove unistd.
23764
23765 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23766
23767         * modules/strtoull (Depends-on): Add stdlib.
23768
23769 2008-12-11  Simon Josefsson  <simon@josefsson.org>
23770
23771         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
23772
23773 2008-12-10  Jim Meyering  <meyering@redhat.com>
23774
23775         gl_ASSERT: don't say assertions are disabled when they're not
23776         * m4/assert.m4 (gl_ASSERT): Do not make configure report
23777         "checking whether to enable assertions... no", when they are in
23778         fact enabled.  This is solely a bug in the output of configure.
23779         In spite of saying "no", NDEBUG was not defined in that case.
23780         Also, as noted by Eric Blake, leave assertions enabled upon
23781         --enable-assert=INVALID.
23782
23783 2008-12-10  Bruno Haible  <bruno@clisp.org>
23784
23785         Change MODULES.html to refer to POSIX:2008 where possible.
23786         * MODULES.html.sh (POSIX2008_URL): New variable.
23787         (posix_headers): Remove sys/timeb, ucontext.
23788         (posix2001_headers): New variable.
23789         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
23790         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
23791         index, makecontext, mktemp, pthread_attr_getstackaddr,
23792         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
23793         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
23794         (posix2001_functions): New variable.
23795         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
23796         otherwise.
23797
23798 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23799
23800         add missing include to parse-duration.c
23801         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
23802         * modules/parse-duration (Depends-on): Add xalloc.
23803
23804         fix sed script reading maint.mk
23805         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
23806         (syntax-check-rules): Use it.
23807
23808 2008-12-09  Bruno Haible  <bruno@clisp.org>
23809
23810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
23811         MacOS X 10.4/PowerPC.
23812         Reported by Simon Josefsson.
23813
23814 2008-12-08  Jim Meyering  <meyering@redhat.com>
23815
23816         work around mingw's lack of some S_IF definitions
23817         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
23818         Reported by Simon Josefsson.
23819
23820 2008-12-08  Bruno Haible  <bruno@clisp.org>
23821
23822         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
23823         applied to variables. Needed on MacOS X 10.4/PowerPC.
23824         Reported by Simon Josefsson.
23825
23826 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
23827         and Eric Blake  <ebb9@byu.net>
23828
23829         assert: honor --enable-assert
23830         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
23831         order to honor --enable-assert, rather than treating it as a
23832         synonym for --disable-assert.
23833
23834 2008-12-08  Jim Meyering  <meyering@redhat.com>
23835
23836         * lib/posixtm.c: Remove now-useless declaration of mktime.
23837
23838         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
23839
23840 2008-12-07  Bruno Haible  <bruno@clisp.org>
23841
23842         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
23843         test_once): Mark functions as static.
23844         * tests/test-tls.c (test_tls): Likewise.
23845
23846 2008-12-07  Bruno Haible  <bruno@clisp.org>
23847
23848         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
23849         iconv_register_autodetect.
23850
23851 2008-12-07  Jim Meyering  <meyering@redhat.com>
23852
23853         posixtm.c: avoid a warning
23854         * lib/posixtm.c (posixtime): Don't initialize tm0.
23855         It's no longer needed to placate gcc4's -Wuninitialized,
23856         and the attempt to placate would elicit a new warning.
23857
23858         unicodeio.c: mark unused parameters
23859         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
23860         (fallback_failure_callback): Likewise.
23861
23862 2008-12-07  Bruno Haible  <bruno@clisp.org>
23863
23864         * gnulib-tool (func_create_testdir): When building the tests
23865         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
23866         Reported by Simon Josefsson.
23867
23868 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23869
23870         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
23871
23872 2008-12-06  Bruno Haible  <bruno@clisp.org>
23873
23874         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
23875         Suggested by Eric Blake.
23876
23877 2008-12-06  Bruno Haible  <bruno@clisp.org>
23878
23879         Fix a c-stack test failure on MacOS X.
23880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
23881         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
23882         handler for SIGBUS as well.
23883         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
23884         install a signal handler for SIGBUS as well.
23885         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
23886
23887 2008-12-06  Bruno Haible  <bruno@clisp.org>
23888
23889         Advocacy documentation.
23890         * doc/gnulib-intro.texi (Benefits): New section.
23891         * doc/gnulib.texi: Update.
23892
23893 2008-12-06  Bruno Haible  <bruno@clisp.org>
23894
23895         Document the 'manywarnings' module.
23896         * doc/manywarnings.texi: New file.
23897         * doc/gnulib.texi: Include it.
23898
23899 2008-12-05  Eric Blake  <ebb9@byu.net>
23900
23901         tests: silence some gcc warnings
23902         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
23903         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
23904         type mismatches.
23905
23906 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23907             Bruno Haible  <bruno@clisp.org>
23908
23909         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
23910
23911 2008-11-29  Jim Meyering  <meyering@redhat.com>
23912
23913         unicodeio.c: mark unused parameters
23914         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
23915         (fallback_failure_callback): Likewise.
23916
23917         fts: fix a thinko
23918         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
23919         (set_stat_type): Return S_IF*-valued "type" directly.
23920         Prompted by James Youngman's spotting a related bug.
23921         Confirmed by further testing through find.
23922
23923         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
23924         * lib/fts.c (D_TYPE): Define.
23925         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
23926         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
23927         (s_ifmt_shift_bits): New function.
23928         (set_stat_type): New function.
23929         (fts_build): When not calling fts_stat, call set_stat_type
23930         to propagate dirent.d_type info to fts_read caller.
23931         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
23932         fts_statp->st_mode type information may be valid.
23933
23934 2008-11-28  Simon Josefsson  <simon@josefsson.org>
23935
23936         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
23937         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
23938         <sds@gnu.org>.
23939
23940 2008-11-20  Bruno Haible  <bruno@clisp.org>
23941
23942         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
23943         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
23944         INCLUDE_NEXT.
23945         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
23946         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
23947         * modules/math (Makefile.am): Substitute
23948         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
23949         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23950
23951 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
23952             Bruno Haible  <bruno@clisp.org>
23953
23954         * lib/stdint.in.h: Define all type macros so that their expansion is
23955         a single typedef'ed token. Fixes a compilation failure in Boost which
23956         does "using ::int8_t;".
23957
23958 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23959
23960         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
23961         gl_MANYWARN_ALL_GCC.
23962         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
23963         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
23964         * modules/manywarnings: New file.
23965         * MODULES.html.sh: Mention manywarnings module.
23966
23967 2008-11-18  Bruno Haible  <bruno@clisp.org>
23968
23969         * doc/gnulib-tool.texi (Unit tests): New section.
23970
23971 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23972
23973         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
23974         paths like 'lib/po/foo.po'.
23975
23976 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23977
23978         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
23979         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
23980
23981 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23982
23983         * m4/warnings.m4: Use CPPFLAGS to really check whether the
23984         parameter works.
23985
23986 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23987
23988         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
23989
23990 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23991
23992         * modules/parse-duration-tests: New file.
23993         * tests/test-parse-duration.sh: New file.
23994         * tests/test-parse-duration.c: New file.
23995
23996         New module 'parse-duration'.
23997         * lib/parse-duration.h: New file.
23998         * lib/parse-duration.c: New file.
23999         * modules/parse-duration: New file.
24000
24001 2008-11-17  Bruno Haible  <bruno@clisp.org>
24002
24003         * tests/test-select-out.sh: Comment out the first pipe test.
24004         Reported by Simon Josefsson.
24005
24006 2008-11-17  Bruno Haible  <bruno@clisp.org>
24007
24008         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24009         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24010         gl_HOSTENT.
24011
24012 2008-11-17  Bruno Haible  <bruno@clisp.org>
24013
24014         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24015         -lnetwork and -lnet. Needed for Haiku and BeOS.
24016
24017 2008-11-16  Bruno Haible  <bruno@clisp.org>
24018
24019         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24020
24021 2008-11-16  Bruno Haible  <bruno@clisp.org>
24022
24023         Avoid test failure on Haiku.
24024         * tests/test-fsync.c: Include <errno.h>.
24025         (main): Don't require that fsync (0) fails.
24026
24027 2008-11-15  Bruno Haible  <bruno@clisp.org>
24028
24029         New module 'hostent'.
24030         * modules/hostent: New file.
24031         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24032
24033 2008-11-15  Bruno Haible  <bruno@clisp.org>
24034
24035         New module 'servent'.
24036         * modules/servent: New file.
24037         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24038
24039 2008-11-15  Bruno Haible  <bruno@clisp.org>
24040
24041         Avoid generating same test program with two different rules.
24042         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24043         test-frexp to test-frexp-nolibm.
24044         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24045         test-frexpl to test-frexpl-nolibm.
24046
24047 2008-11-15  Bruno Haible  <bruno@clisp.org>
24048
24049         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24050         $(FREXPL_LIBM).
24051
24052 2008-11-15  Bruno Haible  <bruno@clisp.org>
24053
24054         * lib/netdb.in.h: Activate the definitions also when the system's
24055         <netdb.h> has 'struct addrinfo'.
24056         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24057         EAI_OVERFLOW or AI_NUMERICSERV.
24058         * doc/posix-headers/netdb.texi: Document the problem.
24059
24060 2008-11-15  Bruno Haible  <bruno@clisp.org>
24061
24062         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24063
24064         Make the 'sched' module work on platforms where <sched.h> exists but
24065         is incomplete (such as Haiku).
24066         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24067         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24068         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24069         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24070         HAVE_STRUCT_SCHED_PARAM.
24071         * modules/sched (Depends-on): Add include_next.
24072         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24073         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24074         * doc/posix-headers/sched.texi: Document the issue.
24075
24076 2008-11-13  Jim Meyering  <meyering@redhat.com>
24077
24078         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24079         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24080         test would fail due to the difference in the Report bugs to ...
24081         line.  The expected address is empty, "<>", while the actual
24082         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24083
24084 2008-11-12  Bruno Haible  <bruno@clisp.org>
24085
24086         lstat: don't compile lstat.c on systems lacking lstat
24087         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24088         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24089         Reported by Daniel P. Berrange via Jim Meyering.
24090
24091 2008-11-12  Jim Meyering  <meyering@redhat.com>
24092
24093         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24094
24095 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24096
24097         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24098         instead.
24099
24100 2008-11-12  Bruno Haible  <bruno@clisp.org>
24101
24102         * lib/unicodeio.c: Include unistr.h.
24103         (utf8_wctomb): Remove function.
24104         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24105
24106 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24107
24108         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24109         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24110         <bruno@clisp.org>.
24111         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24112
24113 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24114
24115         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24116         * doc/gnulib.texi: Add section for warnings.
24117
24118 2008-11-11  Bruno Haible  <bruno@clisp.org>
24119
24120         * lib/sockets.h: Add a comment.
24121
24122 2008-11-11  Karl Berry  <karl@gnu.org>
24123
24124         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24125
24126 2008-11-11  Eric Blake  <ebb9@byu.net>
24127
24128         fdl.texi: avoid git symlinks
24129         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24130
24131 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24132
24133         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24134
24135 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24136
24137         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24138         (gl_WARN_ADD): Substitute $2 if literal.
24139
24140 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24141
24142         * m4/warning.m4: Remove.
24143
24144 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24145
24146         * m4/warnings.m4: Almost complete rewrite. :-)
24147
24148 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24149
24150         * modules/warnings: New module.
24151         * m4/warnings.m4: New file.
24152         * MODULES.html.sh: Mention warnings module.
24153         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24154         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24155
24156 2008-11-10  Eric Blake  <ebb9@byu.net>
24157
24158         fdl.texi: make a symlink to the latest version
24159         * doc/standards.texi: Revert today's earlier change.
24160         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24161         * doc/fdl.texi: ...and replace this with a symlink to the newer
24162         fdl-1.3.texi.
24163
24164 2008-11-10  Bruno Haible  <bruno@clisp.org>
24165
24166         * tests/test-select-fd.c (main): Accept the result file name as fourth
24167         argument.
24168         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24169         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24170
24171 2008-11-10  Bruno Haible  <bruno@clisp.org>
24172
24173         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24174         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24175         as autoconf-substituted macros.
24176         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24178         gl_NETDB_H_DEFAULTS. Set these variables.
24179         * modules/netdb (Makefile.am): Substitute these variables.
24180
24181 2008-11-10  Eric Blake  <ebb9@byu.net>
24182
24183         standards.texi: include correct file for FDL 1.3
24184         * doc/standards.texi (GNU Free Documentation License): Change
24185         include file to pull in FDL 1.3, not 1.2.
24186
24187         fdl.texi: revert accidental change to license
24188         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24189
24190 2008-11-10  Bruno Haible  <bruno@clisp.org>
24191
24192         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24193         cross-compiling guesses also when the native compile gives no result.
24194
24195 2008-11-10  Bruno Haible  <bruno@clisp.org>
24196
24197         * lib/spawni.c (__spawni): Force variable into the stack.
24198
24199 2008-11-10  Bruno Haible  <bruno@clisp.org>
24200
24201         Add support for Haiku.
24202         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24203         glibc and BeOS, but also on Haiku.
24204         * lib/fpurge.c (fpurge): Likewise.
24205         * lib/freadable.c (freadable): Likewise.
24206         * lib/freadahead.c (freadahead): Likewise.
24207         * lib/freading.c (freading): Likewise.
24208         * lib/freadptr.c (freadptr): Likewise.
24209         * lib/freadseek.c (freadptrinc): Likewise.
24210         * lib/fseeko.c (rpl_fseeko): Likewise.
24211         * lib/fseterr.c (fseterr): Likewise.
24212         * lib/fwritable.c (fwritable): Likewise.
24213         * lib/fwriting.c (fwriting): Likewise.
24214         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24215
24216 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24217
24218         * lib/config.charset: Treat Haiku like BeOS.
24219
24220 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24221
24222         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24223         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24224
24225 2008-11-08  Bruno Haible  <bruno@clisp.org>
24226
24227         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24228         AC_CACHE_CHECK.
24229
24230 2008-11-08  Bruno Haible  <bruno@clisp.org>
24231
24232         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24233
24234 2008-11-08  Bruno Haible  <bruno@clisp.org>
24235
24236         * tests/test-select-fd.c: New file.
24237         * tests/test-select-in.sh: New file.
24238         * tests/test-select-out.sh: New file.
24239         * tests/test-select-stdin.c: New file.
24240         * modules/select-tests (Files): Add the new files.
24241         (Depends-on): Add gettimeofday.
24242         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24243         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24244         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24245
24246 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24247             Bruno Haible  <bruno@clisp.org>
24248
24249         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24250
24251 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24252
24253         * build-aux/pmccabe2html: Added support for C++ source files.
24254
24255 2008-11-05  Ben Pfaff  <blp@gnu.org>
24256
24257         Fix lib/close.c build on Windows.
24258         * modules/close (Files): Add lib/w32sock.h.
24259
24260 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24261
24262         Accept Bison's NEWS format.
24263         * build-aux/announce-gen (print_news_deltas): Tweak
24264         $re_prefix.
24265
24266 2008-11-04  Bruno Haible  <bruno@clisp.org>
24267
24268         * modules/random_r (Maintainer): Add glibc.
24269
24270 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24271
24272         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24273         by karl@freefriends.org (Karl Berry).
24274         * doc/alloca.texi: Likewise.
24275         * doc/c-ctype.texi: Likewise.
24276         * doc/c-strcase.texi: Likewise.
24277         * doc/c-strcaseeq.texi: Likewise.
24278         * doc/c-strcasestr.texi: Likewise.
24279         * doc/c-strstr.texi: Likewise.
24280         * doc/c-strtod.texi: Likewise.
24281         * doc/c-strtold.texi: Likewise.
24282         * doc/ctime.texi: Likewise.
24283         * doc/error.texi: Likewise.
24284         * doc/fdl.texi: Likewise.
24285         * doc/gcd.texi: Likewise.
24286         * doc/getdate.texi: Likewise.
24287         * doc/gnulib-intro.texi: Likewise.
24288         * doc/gnulib-tool.texi: Likewise.
24289         * doc/gnulib.texi: Likewise.
24290         * doc/inet_ntoa.texi: Likewise.
24291         * doc/maintain.texi: Likewise.
24292         * doc/make-stds.texi: Likewise.
24293         * doc/quote.texi: Likewise.
24294         * doc/regexprops-generic.texi: Likewise.
24295         * doc/standards.texi: Likewise.
24296         * doc/verify.texi: Likewise.
24297         * doc/visibility.texi: Likewise.
24298         * doc/gnulib.texi (GNU Free Documentation License): Include
24299         fdl-1.3.texi instead of fdl.texi.
24300
24301 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24302
24303         * doc/fdl-1.3.texi: New file, from
24304         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24305         * modules/fdl-1.3: Add.
24306         * MODULES.html.sh: Add fdl-1.3.
24307
24308 2008-11-03  Bruno Haible  <bruno@clisp.org>
24309
24310         Make determination of absolute name of header file work with AIX xlc.
24311         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24312         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24313         preprocessing.
24314         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24315         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24316
24317 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24318
24319         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24320         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24321         <ludo@gnu.org>.
24322
24323 2008-11-02  Bruno Haible  <bruno@clisp.org>
24324
24325         Mark 'strpbrk' obsolete.
24326         * modules/strpbrk (Status, Notice): New sections.
24327         * modules/strtok_r (Depends-on): Add strpbrk.
24328
24329 2008-11-02  Bruno Haible  <bruno@clisp.org>
24330
24331         Mark 'strdup' obsolete.
24332         * modules/strdup (Status, Notice): New sections.
24333         * modules/findprog (Depends-on): Add strdup.
24334         * modules/getaddrinfo (Depends-on): Likewise.
24335         * modules/localename (Depends-on): Likewise.
24336         * modules/relocatable-lib (Depends-on): Likewise.
24337         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24338         * modules/relocatable-prog (Depends-on): Likewise.
24339         * modules/trim (Depends-on): Likewise.
24340         * modules/unictype/gen-ctype (Depends-on): Likewise.
24341         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24342
24343 2008-11-02  Bruno Haible  <bruno@clisp.org>
24344
24345         Mark 'strcspn' obsolete.
24346         * modules/strcspn (Status, Notice): New sections.
24347
24348 2008-11-02  Bruno Haible  <bruno@clisp.org>
24349
24350         Mark 'rmdir' obsolete.
24351         * modules/rmdir (Status, Notice): New sections.
24352         * modules/clean-temp (Depends-on): Add rmdir.
24353         * modules/openat (Depends-on): Likewise.
24354
24355 2008-11-02  Bruno Haible  <bruno@clisp.org>
24356
24357         Mark 'raise' obsolete.
24358         * modules/raise (Status, Notice): New sections.
24359         (Include): Specify <signal.h>.
24360         * modules/stdio (Depends-on): Add raise.
24361         * modules/write (Depends-on): Likewise.
24362
24363 2008-11-02  Bruno Haible  <bruno@clisp.org>
24364
24365         Mark 'memset' obsolete.
24366         * modules/memset (Status, Notice): New sections.
24367
24368 2008-11-02  Bruno Haible  <bruno@clisp.org>
24369
24370         Mark 'memmove' obsolete.
24371         * modules/memmove (Status, Notice): New sections.
24372         * modules/argp (Depends-on): Add memmove.
24373         * modules/argz (Depends-on): Likewise.
24374         * modules/canonicalize (Depends-on): Likewise.
24375         * modules/canonicalize-lgpl (Depends-on): Likewise.
24376         * modules/fts (Depends-on): Likewise.
24377         * modules/getcwd (Depends-on): Likewise.
24378         * modules/human (Depends-on): Likewise.
24379         * modules/regex (Depends-on): Likewise.
24380         * modules/striconveh (Depends-on): Likewise.
24381         * modules/trim (Depends-on): Likewise.
24382         * modules/unistr/u8-move (Depends-on): Likewise.
24383         * modules/unistr/u16-move (Depends-on): Likewise.
24384         * modules/unistr/u32-move (Depends-on): Likewise.
24385
24386 2008-11-02  Bruno Haible  <bruno@clisp.org>
24387
24388         Mark 'memcpy' obsolete.
24389         * modules/memcpy (Status, Notice): New sections.
24390
24391 2008-11-02  Bruno Haible  <bruno@clisp.org>
24392
24393         Mark 'memcmp' obsolete.
24394         * modules/memcmp (Status, Notice): New sections.
24395         * modules/argmatch (Depends-on): Add memchr.
24396         * modules/backupfile (Depends-on): Likewise.
24397         * modules/c-strcasestr (Depends-on): Likewise.
24398         * modules/crypto/des (Depends-on): Likewise.
24399         * modules/csharpcomp (Depends-on): Likewise.
24400         * modules/fnmatch (Depends-on): Likewise.
24401         * modules/git-merge-changelog (Depends-on): Likewise.
24402         * modules/isnand (Depends-on): Likewise.
24403         * modules/isnand-nolibm (Depends-on): Likewise.
24404         * modules/isnanf (Depends-on): Likewise.
24405         * modules/isnanf-nolibm (Depends-on): Likewise.
24406         * modules/isnanl (Depends-on): Likewise.
24407         * modules/isnanl-nolibm (Depends-on): Likewise.
24408         * modules/mbchar (Depends-on): Likewise.
24409         * modules/memcoll (Depends-on): Likewise.
24410         * modules/quotearg (Depends-on): Likewise.
24411         * modules/regex (Depends-on): Likewise.
24412         * modules/relocatable-prog (Depends-on): Likewise.
24413         * modules/same (Depends-on): Likewise.
24414         * modules/signbit (Depends-on): Likewise.
24415         * modules/strcasestr-simple (Depends-on): Likewise.
24416         * modules/unictype/gen-ctype (Depends-on): Likewise.
24417         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24418         * modules/uniname/uniname (Depends-on): Likewise.
24419         * modules/unistr/u8-cmp (Depends-on): Likewise.
24420
24421 2008-11-02  Bruno Haible  <bruno@clisp.org>
24422
24423         Mark 'memchr' obsolete.
24424         * modules/memchr (Status, Notice): New sections.
24425         * modules/argp (Depends-on): Add memchr.
24426         * modules/base64 (Depends-on): Likewise.
24427         * modules/c-strcasestr (Depends-on): Likewise.
24428         * modules/chdir-long (Depends-on): Likewise.
24429         * modules/fnmatch (Depends-on): Likewise.
24430         * modules/getsubopt (Depends-on): Likewise.
24431         * modules/git-merge-changelog (Depends-on): Likewise.
24432         * modules/glob (Depends-on): Likewise.
24433         * modules/strcasestr-simple (Depends-on): Likewise.
24434         * modules/strnlen (Depends-on): Likewise.
24435
24436 2008-11-02  Bruno Haible  <bruno@clisp.org>
24437
24438         Mark 'atexit' obsolete.
24439         * modules/atexit (Status, Notice): New sections.
24440         * modules/chdir-long (Depends-on): Add atexit.
24441         * modules/wait-process (Depends-on): Likewise.
24442
24443 2008-11-02  Bruno Haible  <bruno@clisp.org>
24444
24445         * gnulib-tool: New option --with-obsolete.
24446         (func_usage): Document it.
24447         (func_modules_transitive_closure): Drop obsolete dependencies if
24448         incobsolete is not true.
24449         (func_import): Read and save the incobsolete variable to the cache.
24450
24451 2008-11-02  Bruno Haible  <bruno@clisp.org>
24452
24453         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24454         * gnulib-tool: New option --extract-status.
24455         (func_usage): Document it.
24456         (sed_extract_prog): Recognize it.
24457         (func_get_status): New function.
24458
24459 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24460
24461         * modules/sockets (License): Change from LGPL to LGPLv2+.
24462
24463 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24464
24465         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24466
24467 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24468
24469         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24470         Mention times and sys_times.
24471         * modules/sys_times, modules/sys_times-tests: New modules.
24472         * modules/times, modules/times-tests: Likewise
24473         * m4/sys_times_h.m4: New file.
24474         * lib/sys_times.in.h: Likewise
24475         * lib/times.c: Likewise.
24476         * tests/test-sys_times.c: Likewise.
24477         * tests/test-times.c: Likewise.
24478         * doc/posix-headers/sys_times.texi: Update.
24479         * doc/posix-functions/times.texi: Update.
24480
24481 2008-10-28  Jim Meyering  <meyering@redhat.com>
24482
24483         * modules/tempname (Depends-on): Add lstat.
24484
24485         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24486
24487 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24488
24489         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24490         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24491         using idiom used elsewhere in gnulib.
24492
24493 2008-10-27  Jim Meyering  <meyering@redhat.com>
24494
24495         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24496
24497 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24498
24499         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24500         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24501         programs.
24502         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24503
24504 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24505
24506         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24507
24508 2008-10-27  Bruno Haible  <bruno@clisp.org>
24509
24510         * tests/test-lstat.c: Include <stdio.h>.
24511
24512 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24513
24514         * modules/lstat-tests: New module.
24515         * tests/test-lstat.c: New file.
24516
24517 2008-10-26  Jim Meyering  <meyering@redhat.com>
24518
24519         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24520
24521 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24522             Bruno Haible  <bruno@clisp.org>
24523
24524         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24525         * modules/configmake (Include): Add a note that the include must come
24526         after all system headers.
24527         * lib/javaversion.c: Include configmake.h after all other includes.
24528
24529 2008-10-26  Bruno Haible  <bruno@clisp.org>
24530
24531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24532         HAVE_STRUCT_RANDOM_DATA to 1.
24533         (gl_STDLIB_H): Simplify.
24534
24535 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24536
24537         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24538         substitute HAVE_STRUCT_RANDOM_DATA.
24539         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24540         random_data.
24541         * modules/stdlib (Makefile.am): Substitute
24542         HAVE_STRUCT_RANDOM_DATA.
24543
24544 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24545
24546         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24547         * doc/gnulib-intro.texi (Copyright): Likewise.
24548
24549 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24550
24551         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24552         findings.
24553
24554 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24555             Bruno Haible  <bruno@clisp.org>
24556
24557         * lib/unistd.in.h: Include <winsock2.h>.
24558         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24559         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24560         Provide dummy declarations.
24561         (gethostname): Override.
24562         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24563         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24564         gl_PREREQ_SYS_H_WINSOCK2.
24565         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24566         * doc/posix-functions/gethostname.texi: More details.
24567
24568 2008-10-25  Bruno Haible  <bruno@clisp.org>
24569
24570         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24571         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24572         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24573
24574         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24575         here ...
24576         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24577         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24578         gl_UNISTD_H_DEFAULTS.
24579
24580 2008-10-25  Eric Blake  <ebb9@byu.net>
24581
24582         signbit: avoid spurious compiler failure
24583         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24584         declarations inside function.
24585
24586 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24587             Bruno Haible  <bruno@clisp.org>
24588
24589         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24590         * modules/random_r (Depends-on): Add stdint.
24591
24592 2008-10-24  Bruno Haible  <bruno@clisp.org>
24593
24594         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24595         Eggert.
24596         * modules/strerror (License): Likewise.
24597
24598 2008-10-24  Jim Meyering  <meyering@redhat.com>
24599
24600         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24601         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24602
24603 2008-10-24  Eric Blake  <ebb9@byu.net>
24604
24605         getgroups: fix compilation when getgroups is available
24606         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24607         but with <config.h> override of getgroups disabled.
24608
24609 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24610
24611         * doc/gnulib.texi (Header files): Add note about C++ problems.
24612         Explained by Bruno Haible <bruno@clisp.org>.
24613
24614 2008-10-23  Bruno Haible  <bruno@clisp.org>
24615
24616         Define a dummy SA_NODEFER macro on Interix.
24617         * lib/signal.in.h (SA_NODEFER): Define fallback.
24618         Reported by Aleksey Cheusov <cheusov@tut.by> via
24619         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24620
24621 2008-10-23  Bruno Haible  <bruno@clisp.org>
24622
24623         * modules/freadahead (License): Change to LGPLv2+.
24624         Suggested by Simon Josefsson.
24625
24626 2008-10-23  Jim Meyering  <meyering@redhat.com>
24627
24628         random_r: new module
24629         * modules/random_r: New file.
24630         * m4/random_r.m4: New file.
24631         * lib/random_r.c: New file, from glibc.
24632         * modules/random_r-tests: New file.
24633         * tests/test-random_r.c: New file.
24634         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
24635          Declare.
24636         (RAND_MAX): Define.
24637         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
24638         * modules/stdlib: Substitute them, too.
24639         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
24640         * doc/glibc-functions/initstate_r.texi: Mention the new module.
24641         * doc/glibc-functions/random_r.texi: Likewise.
24642         * doc/glibc-functions/setstate_r.texi: Likewise.
24643         * doc/glibc-functions/srandom_r.texi: Likewise.
24644         * config/srclist.txt: Mention it.
24645
24646 2008-10-23  David Lutterkort  <lutter@redhat.com>
24647
24648         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
24649         link requirement
24650
24651 2008-10-23  Jim Meyering  <meyering@redhat.com>
24652
24653         selinux-h: mark parameters of stub functions as intentionally unused
24654         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
24655         * lib/se-context.in.h: Likewise.
24656
24657 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24658
24659         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
24660
24661 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24662
24663         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
24664
24665 2008-10-22  Eric Blake  <ebb9@byu.net>
24666
24667         glthread/thread: avoid compiler warning
24668         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
24669         Add unreachable abort to silence compiler.
24670
24671 2008-10-22  Eric Blake  <ebb9@byu.net>
24672
24673         netdb: also supply struct addrinfo for cygwin 1.5.x
24674         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
24675         older cygwin.
24676         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
24677         cygwin.
24678         * doc/posix-headers/netdb.texi (netdb.h): Document this.
24679
24680 2008-10-22  Bruno Haible  <bruno@clisp.org>
24681
24682         * users.txt: Update entry about pspp.
24683
24684 2008-10-21  Bruno Haible  <bruno@clisp.org>
24685
24686         Simplification.
24687         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
24688         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
24689
24690         Simplification.
24691         * lib/ioctl.c (ioctl): Don't undefine.
24692         * lib/socket.c (socket): Don't undefine.
24693
24694         Remove unused module indicator macros.
24695         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
24696         GNULIB_$1 as a C macro.
24697
24698         * doc/posix-functions/close.texi: Undo last change.
24699         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
24700         Windows platforms.
24701
24702 2008-10-21  Bruno Haible  <bruno@clisp.org>
24703
24704         Add gethostname() declaration to <unistd.h>.
24705         * lib/unistd.in.h (gethostname): New declaration.
24706         * lib/gethostname.c: Include <unistd.h>.
24707         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
24708         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
24709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
24710         and HAVE_GETHOSTNAME.
24711         * modules/gethostname (Depends-on): Add unistd.
24712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24713         (Include): Specify <unistd.h>.
24714         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
24715         HAVE_GETHOSTNAME.
24716         * tests/test-gethostname.c: Include <unistd.h> first.
24717
24718 2008-10-21  Bruno Haible  <bruno@clisp.org>
24719
24720         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
24721         * modules/select-tests (Depends-on): Likewise.
24722         Reported by Simon Josefsson.
24723
24724 2008-10-21  Simon Josefsson  <simon@josefsson.org>
24725
24726         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
24727         * lib/accept.c: New file, based on winsock.c.
24728         * lib/bind.c: New file, based on winsock.c.
24729         * lib/connect.c: New file, based on winsock.c.
24730         * lib/getpeername.c: New file, based on winsock.c.
24731         * lib/getsockname.c: New file, based on winsock.c.
24732         * lib/getsockopt.c: New file, based on winsock.c.
24733         * lib/ioctl.c: New file, based on winsock.c.
24734         * lib/listen.c: New file, based on winsock.c.
24735         * lib/recv.c: New file, based on winsock.c.
24736         * lib/recvfrom.c: New file, based on winsock.c.
24737         * lib/send.c: New file, based on winsock.c.
24738         * lib/sendto.c: New file, based on winsock.c.
24739         * lib/setsockopt.c: New file, based on winsock.c.
24740         * lib/shutdown.c: New file, based on winsock.c.
24741         * lib/socket.c: New file, based on winsock.c.
24742         * lib/w32sock.h: New file, based on winsock.c.
24743         * lib/winsock.c: Remove file.
24744         * modules/accept: Likewise.
24745         * modules/bind: Likewise.
24746         * modules/connect: Likewise.
24747         * modules/getpeername: Likewise.
24748         * modules/getsockname: Likewise.
24749         * modules/getsockopt: Likewise.
24750         * modules/ioctl: Likewise.
24751         * modules/listen: Likewise.
24752         * modules/recv: Likewise.
24753         * modules/recvfrom: Likewise.
24754         * modules/send: Likewise.
24755         * modules/sendto: Likewise.
24756         * modules/setsockopt: Likewise.
24757         * modules/shutdown: Likewise.
24758         * modules/socket: Use socket.c instead of winsock.c.
24759         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
24760         * doc/posix-functions/accept.texi: Doc fix.
24761         * doc/posix-functions/bind.texi: Doc fix.
24762         * doc/posix-functions/close.texi: Doc fix.
24763         * doc/posix-functions/connect.texi: Doc fix.
24764         * doc/posix-functions/getpeername.texi: Doc fix.
24765         * doc/posix-functions/getsockname.texi: Doc fix.
24766         * doc/posix-functions/getsockopt.texi: Doc fix.
24767         * doc/posix-functions/ioctl.texi: Doc fix.
24768         * doc/posix-functions/listen.texi: Doc fix.
24769         * doc/posix-functions/recv.texi: Doc fix.
24770         * doc/posix-functions/recvfrom.texi: Doc fix.
24771         * doc/posix-functions/send.texi: Doc fix.
24772         * doc/posix-functions/sendto.texi: Doc fix.
24773         * doc/posix-functions/setsockopt.texi: Doc fix.
24774         * doc/posix-functions/shutdown.texi: Doc fix.
24775         * doc/posix-functions/socket.texi: Doc fix.
24776
24777 2008-10-20  Bruno Haible  <bruno@clisp.org>
24778
24779         Take into account the role of SIGABRT_COMPAT on Windows 2008.
24780         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
24781         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
24782         as an alias for SIGABRT.
24783         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
24784         (sigaction): Map it to SIGABRT.
24785         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
24786
24787 2008-10-20  Bruno Haible  <bruno@clisp.org>
24788
24789         * lib/fts.c: Don't include lstat.h.
24790         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
24791
24792         Move the lstat() declaration to <sys/stat.h>.
24793         * lib/lstat.h: Remove file.
24794         * lib/sys_stat.in.h: Add special invocation convention.
24795         (lstat): New declaration.
24796         * lib/lstat.c (orig_lstat): New function.
24797         (rpl_lstat): Use orig_lstat instead of lstat.
24798         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
24799         AC_C_INLINE. Set REPLACE_LSTAT.
24800         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
24801         and REPLACE_LSTAT.
24802         * modules/lstat (Files): Remove lib/lstat.h.
24803         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24804         (Include): Specify <sys/stat.h> instead of lstat.h.
24805         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
24806         REPLACE_LSTAT.
24807         * NEWS: Mention the change.
24808
24809 2008-10-20  Bruno Haible  <bruno@clisp.org>
24810
24811         * modules/posix_spawn-tests: New file.
24812         * tests/test-posix_spawn3.c: New file.
24813
24814 2008-10-20  Bruno Haible  <bruno@clisp.org>
24815
24816         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
24817         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
24818         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
24819         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
24820         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
24821
24822 2008-10-20  Bruno Haible  <bruno@clisp.org>
24823
24824         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
24825         of posix_spawn on AIX 5.3.
24826
24827 2008-10-20  Bruno Haible  <bruno@clisp.org>
24828
24829         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
24830
24831 2008-10-20  Bruno Haible  <bruno@clisp.org>
24832
24833         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
24834         of AC_LANG_PROGRAM.
24835
24836 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24837
24838         * lib/netdb.in.h: Don't define GNU specific constants until they
24839         are supported or needed.  Reported by Bruno Haible
24840         <bruno@clisp.org>.
24841
24842 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24843
24844         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
24845
24846 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24847
24848         * lib/getaddrinfo.h: Remove file.
24849         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
24850         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
24851         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
24852         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
24853         * modules/netdb: Substitute GNULIB_GETADDRINFO.
24854         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
24855         * tests/test-getaddrinfo.c: Likewise.
24856         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
24857         * NEWS: Mention change.
24858
24859 2008-10-19  Bruno Haible  <bruno@clisp.org>
24860
24861         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
24862
24863 2008-10-19  Bruno Haible  <bruno@clisp.org>
24864
24865         * lib/wait-process.c: Include simply <sys/wait.h>.
24866         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
24867         WIFSTOPPED): Remove fallback definitions.
24868         * modules/wait-process (Depends-on): Add sys_wait.
24869
24870         New module 'sys_wait'.
24871         * modules/sys_wait: New file.
24872         * lib/sys_wait.in.h: New file, partially copied from
24873         lib/wait-process.c.
24874         * m4/sys_wait_h.m4: New file.
24875         * doc/posix-headers/sys_wait.texi: Mention the new module.
24876
24877 2008-10-19  Bruno Haible  <bruno@clisp.org>
24878
24879         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
24880
24881 2008-10-19  Bruno Haible  <bruno@clisp.org>
24882
24883         Assume that waitpid() fills an 'int' status, not a 'union wait'.
24884         * lib/wait-process.c (WAIT_T): Remove type.
24885         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
24886         (wait_subprocess): Update.
24887
24888 2008-10-19  Bruno Haible  <bruno@clisp.org>
24889
24890         New module 'atoll'.
24891         * modules/atoll: New file.
24892         * lib/stdlib.in.h (atoll): New declaration.
24893         * lib/atoll.c: New file, from glibc with modifications.
24894         * m4/atoll.m4: New file.
24895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
24896         HAVE_ATOLL.
24897         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
24898         * doc/posix-functions/atoll.texi: Mention the new module.
24899
24900 2008-10-19  Bruno Haible  <bruno@clisp.org>
24901
24902         Add strtoull() declaration to <stdlib.h>.
24903         * lib/stdlib.in.h (strtoull): New declaration.
24904         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24905         Set HAVE_STRTOULL.
24906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
24907         HAVE_STRTOULL.
24908         * modules/strtoull (Depends-on): Add stdlib.
24909         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24910         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
24911         HAVE_STRTOULL.
24912
24913 2008-10-19  Bruno Haible  <bruno@clisp.org>
24914
24915         Add strtoll() declaration to <stdlib.h>.
24916         * lib/stdlib.in.h (strtoll): New declaration.
24917         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24918         Set HAVE_STRTOLL.
24919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
24920         HAVE_STRTOLL.
24921         * modules/strtoll (Depends-on): Add stdlib.
24922         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24923         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
24924
24925 2008-10-19  Bruno Haible  <bruno@clisp.org>
24926
24927         * modules/bcopy (Depends-on): Add strings.
24928         (Include): Specify <strings.h>.
24929
24930 2008-10-19  Bruno Haible  <bruno@clisp.org>
24931
24932         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
24933
24934 2008-10-19  Bruno Haible  <bruno@clisp.org>
24935
24936         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
24937         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
24938         mingw.
24939
24940 2008-10-19  Bruno Haible  <bruno@clisp.org>
24941
24942         * lib/atanl.c: Don't include isnanl.h.
24943         * lib/cosl.c: Likewise.
24944         * lib/ldexpl.c: Likewise.
24945         * lib/logl.c: Likewise.
24946         * lib/sinl.c: Likewise.
24947         * lib/sqrtl.c: Likewise.
24948         * lib/tanl.c: Likewise.
24949
24950         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
24951         * lib/isnanf.h: Remove file.
24952         * lib/isnand.h: Remove file.
24953         * lib/isnanl.h: Remove file.
24954         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
24955         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
24956         macros.
24957         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
24958         HAVE_ISNANF, don't define it as a C macro.
24959         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
24960         HAVE_ISNAND, don't define it as a C macro.
24961         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
24962         HAVE_ISNANL, don't define it as a C macro.
24963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
24964         HAVE_ISNAN[FDL].
24965         * modules/isnanf (Files): Remove lib/isnanf.h.
24966         (Depends-on): Add math.
24967         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24968         (Include): Specify <math.h> instead of isnanf.h.
24969         * modules/isnand (Files): Remove lib/isnand.h.
24970         (Depends-on): Add math.
24971         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24972         (Include): Specify <math.h> instead of isnand.h.
24973         * modules/isnanl (Files): Remove lib/isnanl.h.
24974         (Depends-on): Add math.
24975         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24976         (Include): Specify <math.h> instead of isnanl.h.
24977         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
24978         HAVE_ISNAN[FDL].
24979         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
24980         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
24981         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
24982         * NEWS: Mention the change.
24983
24984 2008-10-18  Bruno Haible  <bruno@clisp.org>
24985
24986         Add getusershell(), setusershell(), endusershell() declarations to
24987         <unistd.h>.
24988         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
24989         declarations.
24990         * lib/getusershell.c: Include unistd.h.
24991         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
24992         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24993         HAVE_GETUSERSHELL.
24994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
24995         and HAVE_GETUSERSHELL.
24996         * modules/getusershell (Depends-on): Add unistd, extensions.
24997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24998         (Include): Specify <unistd.h>.
24999         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25000         HAVE_GETUSERSHELL.
25001
25002 2008-10-18  Bruno Haible  <bruno@clisp.org>
25003
25004         Add a getloadavg() declaration to <stdlib.h>.
25005         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25006         getloadavg declaration.
25007         (getloadavg): New declaration.
25008         * lib/getloadavg.c: Include <stdlib.h> first.
25009         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25010         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25011         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25013         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25014         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25015         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25016         (Include): Specify <stdlib.h>.
25017         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25018         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25019
25020 2008-10-18  Bruno Haible  <bruno@clisp.org>
25021
25022         * lib/dirchownmod.c: Don't include lchmod.h.
25023
25024         Move the lchmod() declaration to <sys/stat.h>.
25025         * lib/lchmod.h: Remove file.
25026         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25027         (lchmod): New declaration, moved here from lib/lchown.h.
25028         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25029         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25030         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25031         and HAVE_LCHMOD.
25032         * modules/lchmod (Files): Remove lib/lchmod.h.
25033         (Depends-on): Add sys_stat, extensions.
25034         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25035         (Include): Specify <sys/stat.h> instead of lchmod.h.
25036         * modules/sys_stat (Depends-on): Add link-warning.
25037         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25038         definition of GL_LINK_WARNING.
25039         * NEWS: Mention the change.
25040
25041 2008-10-18  Bruno Haible  <bruno@clisp.org>
25042
25043         * lib/fchdir.c: Don't include dirfd.h.
25044         * lib/fts.c: Likewise.
25045         * lib/getcwd.c: Likewise.
25046         * lib/glob.c: Likewise.
25047
25048         Move the dirfd() declaration to <dirent.h>.
25049         * lib/dirfd.h: Remove file.
25050         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25051         (dirfd): New declaration.
25052         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25053         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25054         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25055         HAVE_DECL_DIRFD.
25056         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25057         HAVE_DECL_DIRFD.
25058         * modules/dirfd (Files): Remove lib/dirfd.h.
25059         (Depends-on): Add dirent, extensions.
25060         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25061         (Include): Specify <dirent.h> instead of dirfd.h.
25062         * modules/dirent (Depends-on): Add link-warning.
25063         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25064         definition of GL_LINK_WARNING.
25065         * NEWS: Mention the change.
25066
25067 2008-10-18  Bruno Haible  <bruno@clisp.org>
25068
25069         Move the euidaccess() declaration to <unistd.h>.
25070         * lib/euidaccess.h: Remove file.
25071         * lib/unistd.in.h (euidaccess): New declaration.
25072         * lib/euidaccess.c: Don't include euidaccess.h.
25073         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25074         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25076         and HAVE_EUIDACCESS.
25077         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25078         (Depends-on): Add unistd.
25079         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25080         (Include): Specify <unistd.h> instead of euidaccess.h.
25081         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25082         HAVE_EUIDACCESS.
25083         * NEWS: Mention the change.
25084
25085 2008-10-18  Bruno Haible  <bruno@clisp.org>
25086
25087         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25088
25089         Move the getdomainname() declaration to <unistd.h>.
25090         * lib/getdomainname.h: Remove file.
25091         * lib/unistd.in.h (getdomainname): New declaration.
25092         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25093         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25094         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25095         HAVE_GETDOMAINNAME.
25096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25097         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25098         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25099         (Depends-on): Add unistd, extensions.
25100         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25101         (Includes): Specify <unistd.h> instead of getdomainname.h.
25102         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25103         HAVE_GETDOMAINNAME.
25104         * NEWS: Mention the change.
25105
25106 2008-10-18  Bruno Haible  <bruno@clisp.org>
25107
25108         * modules/dirent: New file.
25109         * m4/dirent_h.m4: New file.
25110         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25111         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25112         * modules/fchdir (Files): Remove lib/dirent.in.h.
25113         (Depends-on): Add dirent.
25114         (Makefile.am): Move rules to modules/dirent.
25115         * doc/posix-headers/dirent.texi: Mention the new module.
25116
25117 2008-10-18  Bruno Haible  <bruno@clisp.org>
25118
25119         Avoid -Wunused-parameter warnings in public gnulib header files.
25120         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25121         macro.
25122         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25123
25124 2008-10-18  Bruno Haible  <bruno@clisp.org>
25125
25126         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25127         * doc/glibc-functions/error.texi: Mention the module 'error'.
25128         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25129         * doc/glibc-functions/getdomainname.texi: Mention the module
25130         'getdomainname'.
25131         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25132         * doc/glibc-functions/getpagesize.texi: Mention the module
25133         'getpagesize'.
25134         * doc/glibc-functions/getusershell.texi: Mention the module
25135         'getusershell'.
25136         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25137         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25138         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25139         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25140         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25141         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25142         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25143         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25144         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25145         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25146         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25147         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25148         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25149         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25150
25151 2008-10-17  Bruno Haible  <bruno@clisp.org>
25152
25153         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25154         HP-UX and IRIX, use -0.0L.
25155         * tests/test-ceill.c (minus_zero): Likewise.
25156         * tests/test-floorl.c (minus_zero): Likewise.
25157         * tests/test-frexpl.c (minus_zero): Likewise.
25158         * tests/test-isnan.c (minus_zerol): Likewise.
25159         * tests/test-isnanl.h (minus_zero): Likewise.
25160         * tests/test-ldexpl.c (minus_zero): Likewise.
25161         * tests/test-roundl.c (minus_zero): Likewise.
25162         * tests/test-signbit.c (minus_zerol): Likewise.
25163         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25164         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25165         * tests/test-truncl.c (minus_zero): Likewise.
25166         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25167         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25168         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25169         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25170
25171 2008-10-17  Bruno Haible  <bruno@clisp.org>
25172
25173         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25174         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25175         that it gets activated only for gcc >= 3.0.
25176         * lib/dirent.in.h: Likewise.
25177         * lib/errno.in.h: Likewise.
25178         * lib/fcntl.in.h: Likewise.
25179         * lib/float.in.h: Likewise.
25180         * lib/iconv.in.h: Likewise.
25181         * lib/inttypes.in.h: Likewise.
25182         * lib/locale.in.h: Likewise.
25183         * lib/math.in.h: Likewise.
25184         * lib/netdb.in.h: Likewise.
25185         * lib/netinet_in.in.h: Likewise.
25186         * lib/search.in.h: Likewise.
25187         * lib/signal.in.h: Likewise.
25188         * lib/spawn.in.h: Likewise.
25189         * lib/stdarg.in.h: Likewise.
25190         * lib/stdint.in.h: Likewise.
25191         * lib/stdio.in.h: Likewise.
25192         * lib/stdlib.in.h: Likewise.
25193         * lib/string.in.h: Likewise.
25194         * lib/strings.in.h: Likewise.
25195         * lib/sys_file.in.h: Likewise.
25196         * lib/sys_ioctl.in.h: Likewise.
25197         * lib/sys_select.in.h: Likewise.
25198         * lib/sys_socket.in.h: Likewise.
25199         * lib/sys_stat.in.h: Likewise.
25200         * lib/sys_time.in.h: Likewise.
25201         * lib/sysexits.in.h: Likewise.
25202         * lib/time.in.h: Likewise.
25203         * lib/unistd.in.h: Likewise.
25204         * lib/wchar.in.h: Likewise.
25205         * lib/wctype.in.h: Likewise.
25206         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25207
25208 2008-10-17  Jim Meyering  <meyering@redhat.com>
25209
25210         ignore-value: don't depend on inline module
25211         * modules/ignore-value (Depends-on): Remove 'inline'.
25212         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25213         Suggestion from Bruno Haible.
25214
25215 2008-10-17  Bruno Haible  <bruno@clisp.org>
25216
25217         New implementation of condition variables for Win32.
25218         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25219         (gl_linked_waitqueue_t): New type.
25220         (gl_cond_t): Use it.
25221         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25222         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25223         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25224         (glthread_cond_init_func, glthread_cond_wait_func,
25225         glthread_cond_timedwait_func, glthread_cond_signal_func,
25226         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25227         Reimplemented on the basis of gl_linked_waitqueue_t.
25228         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25229         gl_waitqueue_t.
25230         (gl_rwlock_t): Update.
25231         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25232
25233 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25234
25235         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25236         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25237
25238 2008-10-17  Jim Meyering  <meyering@redhat.com>
25239
25240         ignore-value: new module
25241         * modules/ignore-value: New file.
25242         * lib/ignore-value.h: New file.
25243         * MODULES.html.sh (Compiler warning management): New section,
25244         just for this module.  More to come.
25245
25246 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25247
25248         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25249         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25250         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25251
25252 2008-10-16  Jim Meyering  <meyering@redhat.com>
25253
25254         openat-die.c: avoid 'no previous prototype' warning
25255         * lib/openat-die.c: Include "openat.h".
25256         Reported by Reuben Thomas <rrt@sc3d.org>.
25257
25258 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25259
25260         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25261         * lib/netdb.in.h: Fix typo.
25262         Reported by Bruno Haible  <bruno@clisp.org>
25263
25264         * lib/netdb.in.h: Include sys/socket.h for platforms without
25265         netdb.h, to get structures like hostent on MinGW.
25266         * modules/netdb (Depends-on): Add sys_socket.
25267
25268 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25269
25270         * modules/netdb, modules/netdb-tests: New file.
25271         * m4/netdb_h.m4: New file.
25272         * lib/netdb.in.h: Add, currently just an empty file pending
25273         definitions.
25274         * tests/test-netdb.c: New file.
25275         * doc/posix-headers/netdb.texi: Mention that we replace it if
25276         needed.
25277         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25278         netdb.
25279
25280 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25281
25282         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25283         with code.
25284
25285 2008-10-13  Bruno Haible  <bruno@clisp.org>
25286
25287         * lib/glthread/cond.c (glthread_cond_wait_func,
25288         glthread_cond_timedwait_func): Add a comment.
25289
25290 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25291
25292         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25293         * tests/test-select.c: Likewise,
25294
25295 2008-10-13  Bruno Haible  <bruno@clisp.org>
25296
25297         * lib/glthread/cond.c (glthread_cond_wait_func,
25298         glthread_cond_timedwait_func): Fix variable name.
25299         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25300
25301 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25302
25303         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25304         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25305         struct sockaddr.sa_len.
25306         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25307
25308 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25309
25310         * build-aux/pmccabe2html: Add css and css_url parameters.
25311
25312 2008-10-12  Bruno Haible  <bruno@clisp.org>
25313
25314         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25315         calling aclx_get.
25316         Reported by Rainer Tammer <tammer@tammer.net>.
25317
25318 2008-10-12  Bruno Haible  <bruno@clisp.org>
25319
25320         Use msvcrt aware primitives for creation/termination of Win32 threads.
25321         * lib/glthread/thread.c: Include <process.h>.
25322         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25323         (wrapper_func): Update signature.
25324         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25325
25326 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25327             Bruno Haible  <bruno@clisp.org>
25328
25329         Provide a Win32 implementation of the 'cond' module.
25330         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25331         * lib/glthread/cond.c (glthread_cond_init_func,
25332         glthread_cond_wait_func, glthread_cond_timedwait_func,
25333         glthread_cond_signal_func, glthread_cond_broadcast_func,
25334         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25335         * modules/cond (Dependencies): Add gettimeofday.
25336
25337 2008-10-11  Bruno Haible  <bruno@clisp.org>
25338
25339         Make sleep work on older versions of mingw.
25340         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25341         only whether it exists.
25342         * doc/posix-functions/sleep.texi: Mention the problem with older
25343         versions of mingw.
25344
25345 2008-10-11  Bruno Haible  <bruno@clisp.org>
25346
25347         New module 'shutdown'.
25348         * modules/shutdown: New file.
25349         * lib/sys_socket.in.h (shutdown): New declaration.
25350         * lib/winsock.c (shutdown): New function.
25351         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25352         GNULIB_SHUTDOWN.
25353         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25354         * doc/posix-functions/shutdown.texi: Document the new module.
25355
25356 2008-10-11  Jim Meyering  <meyering@redhat.com>
25357
25358         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25359
25360 2008-10-11  Bruno Haible  <bruno@clisp.org>
25361
25362         New module 'fclose'.
25363         * modules/fclose: New file.
25364         * lib/stdio.in.h (fclose): New declaration.
25365         * lib/fclose.c: New file.
25366         * m4/fclose.m4: New file.
25367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25368         REPLACE_FCLOSE.
25369         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25370         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25371         REPLACE_FCLOSE.
25372         * modules/close (Depends-on): fclose.
25373         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25374
25375 2008-10-11  Bruno Haible  <bruno@clisp.org>
25376
25377         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25378         set errno and don't call _close.
25379
25380 2008-10-10  Bruno Haible  <bruno@clisp.org>
25381
25382         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25383         ACL, not afterwards. Fixes test failure on Cygwin.
25384
25385 2008-10-09  Ben Pfaff  <blp@gnu.org>
25386
25387         * build-aux/announce-gen: Fix gnulib version related part of usage
25388         message.  Die with a useful error message if no tarballs are
25389         found.
25390
25391 2008-10-10  Jim Meyering  <meyering@redhat.com>
25392
25393         bootstrap: use git's --depth=N option only if it's supported
25394         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25395         recognize the --depth option.  Reported by Pádraig Brady.
25396
25397 2008-10-09  Bruno Haible  <bruno@clisp.org>
25398
25399         New module 'ioctl'.
25400         * modules/ioctl: New file.
25401         * lib/sys_socket.in.h (ioctl): Remove declaration.
25402         * lib/winsock.c: Include <sys/ioctl.h>.
25403         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25404         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25405         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25406         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25407         * doc/posix-functions/ioctl.texi: Mention the new module.
25408
25409 2008-10-09  Bruno Haible  <bruno@clisp.org>
25410
25411         New module 'sys_ioctl'.
25412         * lib/sys_ioctl.in.h: New file.
25413         * m4/sys_ioctl_h.m4: New file.
25414         * modules/sys_ioctl: New file.
25415         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25416
25417 2008-10-09  Bruno Haible  <bruno@clisp.org>
25418
25419         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25420         * lib/winsock.c: Include <stdarg.h>.
25421         (rpl_ioctl): Change to second argument 'int' and then varargs.
25422
25423 2008-10-09  Bruno Haible  <bruno@clisp.org>
25424
25425         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25426         when the sys_socket module is present and the system has <winsock2.h>.
25427
25428 2008-10-09  Bruno Haible  <bruno@clisp.org>
25429
25430         * doc/posix-functions/close.texi: Mention module 'close' instead of
25431         module 'sys_socket'.
25432
25433 2008-10-09  Bruno Haible  <bruno@clisp.org>
25434
25435         * doc/glibc-headers/sys_ioctl.texi: New file.
25436         * doc/gnulib.texi: Include it.
25437
25438 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25439             Bruno Haible  <bruno@clisp.org>
25440
25441         Combine the two replacements of 'close'.
25442         * lib/sys_socket.in.h (close): Define to a reminder to include
25443         <unistd.h>.
25444         (_gl_close_fd_maybe_socket): New declaration.
25445         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25446         * lib/winsock.c (close): Remove undefinition.
25447         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25448         needed for the gnulib module 'close'.
25449         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25450         define to an error symbol or to a warning, if suitable.
25451         * lib/close.c: Include <sys/socket.h>.
25452         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25453         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25454         UNISTD_H_HAVE_WINSOCK2_H.
25455         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25457         UNISTD_H_HAVE_WINSOCK2_H.
25458         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25459         (configure.ac): Set a module indicator.
25460         (Makefile.am): Substitute GNULIB_CLOSE.
25461         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25462         * modules/poll-tests (Depends-on): Add close.
25463         * modules/select-tests (Depends-on): Likewise.
25464
25465 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25466             Bruno Haible  <bruno@clisp.org>
25467
25468         New module 'close'.
25469         * modules/close: New file.
25470         * lib/unistd.in.h (close): Move declaration out of the
25471         FCHDIR_REPLACEMENT scope.
25472         (_gl_unregister_fd): New declaration.
25473         * lib/close.c: New file.
25474         * lib/fchdir.c (rpl_close): Remove function.
25475         * m4/close.m4: New file.
25476         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25477         close.
25478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25479         REPLACE_CLOSE.
25480         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25481         REPLACE_CLOSE.
25482         * modules/fchdir (Depends-on): Add close.
25483
25484 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25485             Bruno Haible  <bruno@clisp.org>
25486
25487         * lib/fcntl.in.h (open): Simplify conditionals.
25488         (_gl_register_fd): New declaration.
25489         * lib/fchdir.c (rpl_open): Remove function.
25490         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25491         also.
25492         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25494         open.
25495
25496 2008-10-09  Jim Meyering  <meyering@redhat.com>
25497
25498         GNUmakefile: use the more name-space-friendly "_version"
25499         * top/GNUmakefile (_dummy): Update.
25500         (_version): Rename from "version".
25501
25502 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25503             Bruno Haible  <bruno@clisp.org>
25504
25505         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25506         rpl_close.
25507         (_gl_register_fd): New function, extracted from rpl_open.
25508         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25509         (rpl_open, rpl_opendir): Use _gl_register_fd.
25510
25511 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25512
25513         Fix organization of 'open' replacement.
25514         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25515         (gl_FUNC_OPEN): Use it.
25516         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25517
25518 2008-10-08  Bruno Haible  <bruno@clisp.org>
25519
25520         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25521
25522 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25523
25524         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25525         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25526         listen).
25527
25528 2008-10-08  Eric Blake  <ebb9@byu.net>
25529
25530         GNUmakefile: add 'make version' target
25531         * top/GNUmakefile (_curr-ver): Split version update rules...
25532         (version): ...into a target.
25533
25534 2008-10-07  Bruno Haible  <bruno@clisp.org>
25535
25536         Use a more portable replacement expression for -0.0L.
25537         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25538         instead of -0.0L. Fix m4 quotation.
25539
25540         * tests/test-signbit.c: Include <float.h>.
25541         (minus_zero): New variable.
25542         (test_signbitl): Use minus_zero instead of -zero.
25543         * modules/signbit-tests (Depends-on): Add float.
25544
25545         * tests/test-ceill.c: Include <float.h>.
25546         (zero): Remove variable.
25547         (minus_zero): New variable.
25548         (main): Use minus_zero instead of -zero.
25549         * modules/ceill-tests (Depends-on): Add float.
25550
25551         * tests/test-floorl.c: Include <float.h>.
25552         (zero): Remove variable.
25553         (minus_zero): New variable.
25554         (main): Use minus_zero instead of -zero.
25555         * modules/floorl-tests (Depends-on): Add float.
25556
25557         * tests/test-roundl.c: Include <float.h>.
25558         (zero): Remove variable.
25559         (minus_zero): New variable.
25560         (main): Use minus_zero instead of -zero.
25561         * modules/roundl-tests (Depends-on): Add float.
25562
25563         * tests/test-truncl.c: Include <float.h>.
25564         (zero): Remove variable.
25565         (minus_zero): New variable.
25566         (main): Use minus_zero instead of -zero.
25567         * modules/truncl-tests (Depends-on): Add float.
25568
25569         * tests/test-frexpl.c (zero): Remove variable.
25570         (minus_zero): New variable.
25571         (main): Use minus_zero instead of -zero.
25572         * modules/frexpl-tests (Depends-on): Add float.
25573
25574         * tests/test-isnan.c (zerol): Remove variable.
25575         (minus_zerol): New variable.
25576         (test_long_double): Use minus_zerol instead of -zerol.
25577         * modules/isnan-tests (Depends-on): Add float.
25578
25579         * tests/test-isnanl.h (zero): Remove variable.
25580         (minus_zero): New variable.
25581         (main): Use minus_zero instead of -zero.
25582         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25583         * modules/isnanl-tests (Depends-on): Add float.
25584
25585         * tests/test-ldexpl.c (zero): Remove variable.
25586         (minus_zero): New variable.
25587         (main): Use minus_zero instead of -zero.
25588         * modules/ldexpl-tests (Depends-on): Add float.
25589
25590         * tests/test-snprintf-posix.h (zerol): Remove variable.
25591         (minus_zerol): New variable.
25592         (test_function): Use minus_zerol instead of -zerol.
25593         * modules/snprintf-posix-tests (Depends-on): Add float.
25594         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25595
25596         * tests/test-sprintf-posix.h (zerol): Remove variable.
25597         (minus_zerol): New variable.
25598         (test_function): Use minus_zerol instead of -zerol.
25599         * modules/sprintf-posix-tests (Depends-on): Add float.
25600         * modules/vsprintf-posix-tests (Depends-on): Add float.
25601
25602         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25603         (minus_zerol): New variable.
25604         (test_function): Use minus_zerol instead of -zerol.
25605         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25606
25607         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25608         (minus_zerol): New variable.
25609         (test_function): Use minus_zerol instead of -zerol.
25610         * modules/vasprintf-posix-tests (Depends-on): Add float.
25611
25612 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25613
25614         * MODULES.html.sh (Support for building documentation): Mention
25615         pmccabe2html.  Sort entries.
25616
25617         Add pmccabe2html module, from gnupdf.
25618         * build-aux/pmccabe.css: New file.
25619         * build-aux/pmccabe2html: New file.
25620         * m4/pmccabe2html.m4: New file.
25621         * modules/pmccabe2html: New file.
25622
25623 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25624
25625         flock: new module
25626         * MODULES.html.sh: Add to list of modules.
25627         * lib/flock.c: flock implementation for Windows and Unix systems
25628         which have fcntl.
25629         * doc/glibc-functions/flock.texi: Update documentation.
25630         * lib/sys_file.in.h: <sys/file.h> header file.
25631         * m4/flock.m4: M4 macros.
25632         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
25633         * modules/flock: flock module.
25634         * modules/flock-tests: flock tests module.
25635         * modules/sys_file: sys/file.h module.
25636         * tests/test-flock.c: test suite for flock.
25637
25638 2008-10-06  Jim Meyering  <meyering@redhat.com>
25639
25640         bootstrap: check for LT_INIT more portably still ;-)
25641         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
25642         Spotted by Bruno Haible.
25643
25644 2008-10-06  Eric Blake  <ebb9@byu.net>
25645
25646         test-signbit: avoid tripping Irix cc bug on -0.0L
25647         * tests/test-signbit.c (minus_zerol): Delete, and replace with
25648         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
25649         entire testsuite consistent and avoids an Irix 6.2 bug.
25650
25651 2008-10-05  Bruno Haible  <bruno@clisp.org>
25652             Jim Meyering  <jim@meyering.net>
25653
25654         Add an option for ignoring EPIPE during close_stdout.
25655         * lib/closeout.h: Include <stdbool.h>.
25656         (close_stdout_set_ignore_EPIPE): New declaration.
25657         * lib/closeout.c: Include <stdbool.h>.
25658         (ignore_EPIPE): New variable.
25659         (close_stdout_set_ignore_EPIPE): New function.
25660         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
25661         * lib/close-stream.c (close_stream): Mention the possible EPIPE
25662         failure.
25663         * modules/closeout (Depends-on): Add stdbool.
25664
25665 2008-10-05  Bruno Haible  <bruno@clisp.org>
25666
25667         * modules/accept: New file.
25668         * modules/bind: New file.
25669         * modules/connect: New file.
25670         * modules/getpeername: New file.
25671         * modules/getsockname: New file.
25672         * modules/getsockopt: New file.
25673         * modules/listen: New file.
25674         * modules/recv: New file.
25675         * modules/recvfrom: New file.
25676         * modules/send: New file.
25677         * modules/sendto: New file.
25678         * modules/setsockopt: New file.
25679         * modules/socket: New file.
25680         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
25681         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25682         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
25683         the particular module is requested. Add a link warning when the
25684         particular module is not requested.
25685         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
25686         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
25687         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
25688         the particular module is requested.
25689         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
25690         gl_SYS_SOCKET_H_DEFAULTS): New macros.
25691         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
25692         * modules/sys_socket (Depends-on): Add link-warning.
25693         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
25694         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
25695         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
25696         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
25697         GL_LINK_WARNING.
25698         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
25699         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
25700         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
25701         * doc/posix-functions/getpeername.texi: Mention the new module
25702         'getpeername'.
25703         * doc/posix-functions/getsockname.texi: Mention the new module
25704         'getsockname'.
25705         * doc/posix-functions/getsockopt.texi: Mention the new module
25706         'getsockopt'.
25707         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
25708         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
25709         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
25710         * doc/posix-functions/send.texi: Mention the new module 'send'.
25711         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
25712         * doc/posix-functions/setsockopt.texi: Mention the new module
25713         'setsockopt'.
25714         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
25715         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
25716         listen, connect, accept.
25717         * modules/select-tests (Depends-on): Likewise.
25718
25719 2008-10-05  Bruno Haible  <bruno@clisp.org>
25720
25721         * lib/winsock.c (strerror): Remove unused #undef.
25722         (rpl_close): Remove unused local variable.
25723
25724         * modules/sys_socket (Depends-on); Add errno.
25725
25726 2008-10-05  Bruno Haible  <bruno@clisp.org>
25727
25728         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
25729         (select): Add a link warning when the 'select' module is not used.
25730         * modules/sys_select (Depends-on): Add link-warning.
25731         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
25732         Suggested by Paolo Bonzini.
25733
25734 2008-10-05  Jim Meyering  <meyering@redhat.com>
25735
25736         bootstrap: check for LT_INIT more portably
25737         * build-aux/bootstrap: Avoid using grep -E, since it's not
25738         portable enough.  Suggestion from Bruno Haible.
25739
25740 2008-10-05  Bruno Haible  <bruno@clisp.org>
25741
25742         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
25743         as being fixed by gnulib.
25744
25745 2008-10-05  Bruno Haible  <bruno@clisp.org>
25746
25747         * modules/select-tests: New file, mostly copied from
25748         modules/sys_select-tests.
25749         * tests/test-select.c: New file, mostly copied from
25750         tests/test-sys_select.c.
25751         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
25752         * modules/sys_select-tests (Depends-on): Remove all dependencies.
25753         (Makefile.am): Remove test_sys_select_LDADD.
25754
25755         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
25756         to an undefined symbol, for an error message.
25757         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
25758         (gl_SYS_SELECT_H_DEFAULTS): New macro.
25759         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
25760         winsock-select.c here.
25761         * modules/sys_select (Files): Remove lib/winsock-select.c.
25762         (Depends-on): Remove alloca.
25763         (Makefile.am): Substitute GNULIB_SELECT.
25764         * modules/select: New file.
25765         * doc/posix-functions/select.texi: Update.
25766
25767 2008-10-05  Bruno Haible  <bruno@clisp.org>
25768
25769         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
25770         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
25771         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
25772         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
25773         getdtablesize.
25774         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
25775         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
25776
25777 2008-10-05  Bruno Haible  <bruno@clisp.org>
25778
25779         * modules/getdtablesize-tests: New file.
25780         * tests/test-getdtablesize.c: New file.
25781
25782         New module 'getdtablesize'.
25783         * lib/unistd.in.h (getdtablesize): New declaration.
25784         * lib/getdtablesize.c: New file.
25785         * m4/getdtablesize.m4: New file.
25786         * modules/getdtablesize: New file.
25787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25788         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
25789         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
25790         HAVE_GETDTABLESIZE.
25791         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
25792
25793 2008-10-05  Bruno Haible  <bruno@clisp.org>
25794
25795         * modules/sched (Makefile.am): Fix typo.
25796         Reported by Simon Josefsson.
25797
25798 2008-10-05  Jim Meyering  <meyering@redhat.com>
25799
25800         bootstrap: check for LT_INIT, too
25801         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
25802         are deprecated.  Suggestion from Ralf Wildenhues.
25803
25804 2008-10-05  Bruno Haible  <bruno@clisp.org>
25805
25806         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
25807         overriding them by ours.
25808         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
25809
25810 2008-10-05  Jim Meyering  <meyering@redhat.com>
25811
25812         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
25813         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
25814         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
25815
25816 2008-10-04  Bruno Haible  <bruno@clisp.org>
25817
25818         * modules/dup2 (License): Change to LGPLv2+.
25819         * modules/sleep (License): Likewise.
25820         * modules/perror (License): Likewise.
25821         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
25822         Blake.
25823         * modules/signal (License): Likewise.
25824         * modules/sigprocmask (License): Likewise.
25825         * modules/raise (License): Change to LGPLv2+, with approval by Jim
25826         Meyering.
25827
25828 2008-10-04  Bruno Haible  <bruno@clisp.org>
25829
25830         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
25831         Reported by Rainer Tammer <tammer@tammer.net>.
25832
25833 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
25834             Bruno Haible  <bruno@clisp.org>
25835
25836         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
25837         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
25838         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
25839
25840 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
25841
25842         filevercmp: new module
25843         * lib/filevercmp.h: New function filevercmp comparing version strings.
25844         * lib/filevercmp.c: Implementation of filevercmp function.
25845         * modules/filevercmp: Module metadata.
25846         * tests/test-filevercmp.c: Unit test for new module.
25847         * modules/filevercmp-tests: Unit test metadata.
25848         * MODULES.html.sh: Add filevercmp module.
25849
25850 2008-10-03  Bruno Haible  <bruno@clisp.org>
25851
25852         * lib/c-ctype.h: Add comment.
25853         Reported by Jim Meyering.
25854
25855 2008-10-02  Bruno Haible  <bruno@clisp.org>
25856
25857         * modules/posix_spawn-internal (Depends-on): Add 'open'.
25858
25859 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25860
25861         * build-aux/bootstrap: Allow renaming bootstrap, and change the
25862         name of bootstrap.conf accordingly.
25863
25864 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25865
25866         * build-aux/bootstrap: Install git-merge-changelog configuration
25867         items into .gitconfig if needed.
25868
25869 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25870
25871         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
25872         git repository, and initialize/update it accordingly.
25873
25874 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
25875
25876         * modules/fsync-tests: New file.
25877         * tests/test-fsync.c: New file.
25878
25879         New module 'fsync'.
25880         * lib/fsync.c: New file.
25881         * m4/fsync.m4: New file.
25882         * modules/fsync: New file.
25883         * lib/unistd.in.h (fsync): New declaration.
25884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
25885         GNULIB_FSYNC and HAVE_FSYNC.
25886         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
25887         * MODULES.html.sh (posix_functions): Add fsync.
25888         * doc/posix-functions/fsync.texi: Mention the new module.
25889
25890 2008-10-02  Jim Meyering  <meyering@redhat.com>
25891
25892         fts.c: sync with similar code from coreutils' remove.c
25893         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
25894         Guard also with "#if defined __linux__", since for now at least,
25895         this code is Linux-kernel-specific.
25896
25897 2008-10-02  Jim Meyering  <meyering@redhat.com>
25898
25899         fts: bug fixes
25900         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
25901         Include <sys/vfs.h>, not <sys/statfs.h>.
25902
25903         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
25904         Include <sys/vfs.h>, not <sys/statfs.h>.
25905
25906 2008-10-01  Bruno Haible  <bruno@clisp.org>
25907
25908         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
25909         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
25910         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
25911         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
25912         * doc/posix-functions/posix_spawnp.texi: Likewise.
25913         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
25914         whether posix_spawn actually works.
25915         * m4/pipe.m4 (gl_PIPE): Likewise.
25916         * modules/execute (Files): Add m4/posix_spawn.m4.
25917         * modules/pipe (Files): Add m4/posix_spawn.m4.
25918         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
25919
25920 2008-10-01  Jim Meyering  <meyering@redhat.com>
25921
25922         remove trailing spaces
25923         * NEWS: Likewise.
25924         * lib/poll.c (poll): Likewise.
25925         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
25926         * lib/winsock.c (rpl_close): Likewise.
25927         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
25928         * modules/yield: Likewise.
25929         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
25930         * tests/test-sys_select.c (connect_to_socket): Likewise.
25931
25932         fts.c: adjust a new interface to be more generally useful
25933         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
25934         (fts_build): Adjust caller.
25935
25936 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25937
25938         * modules/cond-tests: New file.
25939         * tests/test-cond.c: New file.
25940
25941 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25942             Bruno Haible  <bruno@clisp.org>
25943
25944         * modules/cond (Dependencies): Add errno, time.
25945         * lib/glthread/cond.h: Include <time.h>.
25946         (gl_cond_define, gl_cond_define_initialized): Use the same definition
25947         across platforms.
25948
25949 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25950             Bruno Haible  <bruno@clisp.org>
25951
25952         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
25953
25954 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25955             Bruno Haible  <bruno@clisp.org>
25956
25957         * modules/tls-tests (Depends-on): Add thread, yield.
25958         (configure.ac): Remove all checks.
25959         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
25960         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25961         gl_thread_self): Remove definitions. Include glthread/thread.h and
25962         glthread/yield.h instead.
25963         (test_tls): Pass an additional NULL argument to gl_thread_join.
25964
25965 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25966             Bruno Haible  <bruno@clisp.org>
25967
25968         * modules/lock-tests (Depends-on): Add thread, yield.
25969         (configure.ac): Remove all checks.
25970         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
25971         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25972         gl_thread_self): Remove definitions. Include glthread/thread.h and
25973         glthread/yield.h instead.
25974         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
25975         additional NULL argument to gl_thread_join.
25976
25977 2008-09-30  Bruno Haible  <bruno@clisp.org>
25978
25979         Fix the Win32 implementation of the 'thread' module.
25980         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
25981         pointer type.
25982         (gl_thread_self): Invoke gl_thread_self_func.
25983         (gl_thread_self_func): New declaration.
25984         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
25985         (do_init_self_key, init_self_key): New functions.
25986         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
25987         Remove some fields.
25988         (running_threads, running_lock): Remove variables.
25989         (get_current_thread_handle): New function.
25990         (gl_thread_self_func, wrapper_func, glthread_create_func,
25991         glthread_join_func, gl_thread_exit_func): Largely rewritten and
25992         simplified.
25993
25994 2008-09-30  Bruno Haible  <bruno@clisp.org>
25995
25996         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
25997         files.
25998
25999 2008-09-30  Jim Meyering  <meyering@redhat.com>
26000
26001         fts.m4: correct the test for statfs.f_type
26002         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26003         when checking for statfs.f_type.
26004
26005 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26006
26007         tests: avoid some compiler warnings
26008         * tests/test-memchr.c (main): Pass NULL indirectly.
26009         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26010
26011 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26012
26013         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26014         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26015         exactly specified dayshifts.
26016         (dayshift): New rule.
26017         (rel): Add dayshift.
26018         (relative_time_table) [tomorrow, yesterday, today, now]:
26019         Use tDAY_SHIFT in place of tDAY_UNIT.
26020         * tests/test-getdate.c: Add tests for now-disallowed countable
26021         dayshifts, e.g., "4 yesterday ago".
26022
26023 2008-09-29  Bruno Haible  <bruno@clisp.org>
26024
26025         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26026         * tests/test-posix_spawn1.in.sh: Renamed from
26027         tests/test-posix_spawn.in.sh.
26028         * tests/test-posix_spawn2.c: New file.
26029         * tests/test-posix_spawn2.in.sh: New file.
26030         * modules/posix_spawnp-tests (Files): Update.
26031         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26032
26033 2008-09-29  Bruno Haible  <bruno@clisp.org>
26034
26035         Propagate effects of putenv/setenv/unsetenv to child processes.
26036         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26037         * lib/pipe.c (create_pipe): Likewise.
26038
26039 2008-09-29  Bruno Haible  <bruno@clisp.org>
26040
26041         Enable use of shell scripts as executables in mingw.
26042         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26043         run the program as a shell script.
26044         * lib/pipe.c (create_pipe): Likewise.
26045         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26046         resulting array.
26047
26048 2008-09-29  Eric Blake  <ebb9@byu.net>
26049
26050         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26051
26052 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26053
26054         * doc/posix-functions/accept.texi: Update mingw problems.
26055         * doc/posix-functions/bind.texi: Update mingw problems.
26056         * doc/posix-functions/close.texi: Update mingw problems.
26057         * doc/posix-functions/connect.texi: Update mingw problems.
26058         * doc/posix-functions/getpeername.texi: Update mingw problems.
26059         * doc/posix-functions/getsockname.texi: Update mingw problems.
26060         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26061         * doc/posix-functions/ioctl.texi: Update mingw problems.
26062         * doc/posix-functions/listen.texi: Update mingw problems.
26063         * doc/posix-functions/recv.texi: Update mingw problems.
26064         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26065         * doc/posix-functions/select.texi: Update mingw problems.
26066         * doc/posix-functions/send.texi: Update mingw problems.
26067         * doc/posix-functions/sendto.texi: Update mingw problems.
26068         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26069         * doc/posix-functions/socket.texi: Update mingw problems.
26070
26071 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26072             Bruno Haible  <bruno@clisp.org>
26073
26074         * lib/sys_select.in.h: Include sys/time.h.
26075         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26076         * modules/sys_select: Depend on sys_time.
26077         * tests/test-sys_select.c: Test that sys/select.h defines struct
26078         timeval fully.
26079
26080 2008-09-29  Bruno Haible  <bruno@clisp.org>
26081
26082         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26083         * lib/sys_select.in.h: Likewise.
26084
26085 2008-09-29  Bruno Haible  <bruno@clisp.org>
26086
26087         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26088
26089 2008-09-29  Bruno Haible  <bruno@clisp.org>
26090
26091         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26092         Set LIBSOCKET instead of augmenting LIBS.
26093         * modules/sockets (Link): New section.
26094         * modules/sockets-tests (test_sockets_LDADD): New variable.
26095         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26096         * modules/poll-tests (test_poll_LDADD): New variable.
26097         * NEWS: Document the change.
26098
26099 2008-09-29  Bruno Haible  <bruno@clisp.org>
26100
26101         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26102         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26103         ARPA_INET_H directly.
26104         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26105
26106 2008-09-28  Bruno Haible  <bruno@clisp.org>
26107
26108         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26109         from gl_HEADER_SYS_SOCKET.
26110         (gl_HEADER_SYS_SOCKET): Invoke it.
26111         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26112
26113 2008-09-28  Bruno Haible  <bruno@clisp.org>
26114
26115         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26116         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26117         Needed on OSF/1 4.0.
26118
26119 2008-09-28  Bruno Haible  <bruno@clisp.org>
26120
26121         Override open more carefully.
26122         * lib/open.c (orig_open): New function.
26123         (rpl_open): Use orig_open instead of open.
26124         * lib/fcntl.in.h: Add special invocation convention.
26125         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26126         (gl_FUNC_OPEN): Invoke it.
26127
26128         Override freopen more carefully.
26129         * lib/freopen.c (orig_freopen): New function.
26130         (rpl_freopen): Use orig_freopen instead of freopen.
26131         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26132         (gl_FUNC_FREOPEN): Invoke it.
26133
26134         Override fopen more carefully.
26135         * lib/fopen.c (orig_fopen): New function.
26136         (rpl_fopen): Use orig_fopen instead of fopen.
26137         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26138         (gl_FUNC_FOPEN): Invoke it.
26139         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26140
26141 2008-09-28  Bruno Haible  <bruno@clisp.org>
26142
26143         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26144         SIGPIPE.
26145
26146 2008-09-28  Bruno Haible  <bruno@clisp.org>
26147
26148         * tests/test-sigaction.c (handler, main): Disable the check whether
26149         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26150         glibc systems with LinuxThreads.
26151
26152 2008-09-28  Bruno Haible  <bruno@clisp.org>
26153
26154         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26155
26156         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26157         with AIX xlc.
26158         * lib/fcntl.in.h (open): Likewise.
26159         Reported by Rainer Tammer <tammer@tammer.net>.
26160
26161 2008-09-28  Bruno Haible  <bruno@clisp.org>
26162
26163         * modules/posix_spawnp-tests: New file.
26164         * tests/test-posix_spawn.c: New file.
26165         * tests/test-posix_spawn.in.sh: New file.
26166
26167         New module 'posix_spawnp'.
26168         * modules/posix_spawnp: New file.
26169         * lib/spawnp.c: New file, from GNU libc with modifications.
26170         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26171
26172         New module 'posix_spawn'.
26173         * modules/posix_spawn: New file.
26174         * lib/spawn.c: New file, from GNU libc with modifications.
26175         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26176
26177         New module 'posix_spawnattr_destroy'.
26178         * modules/posix_spawnattr_destroy: New file.
26179         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26180         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26181         module.
26182
26183         New module 'posix_spawnattr_setsigmask'.
26184         * modules/posix_spawnattr_setsigmask: New file.
26185         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26186         modifications.
26187         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26188         new module.
26189
26190         New module 'posix_spawnattr_getsigmask'.
26191         * modules/posix_spawnattr_getsigmask: New file.
26192         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26193         modifications.
26194         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26195         new module.
26196
26197         New module 'posix_spawnattr_setsigdefault'.
26198         * modules/posix_spawnattr_setsigdefault: New file.
26199         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26200         modifications.
26201         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26202         new module.
26203
26204         New module 'posix_spawnattr_getsigdefault'.
26205         * modules/posix_spawnattr_getsigdefault: New file.
26206         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26207         modifications.
26208         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26209         new module.
26210
26211         New module 'posix_spawnattr_setschedpolicy'.
26212         * modules/posix_spawnattr_setschedpolicy: New file.
26213         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26214         modifications.
26215         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26216         new module.
26217
26218         New module 'posix_spawnattr_getschedpolicy'.
26219         * modules/posix_spawnattr_getschedpolicy: New file.
26220         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26221         modifications.
26222         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26223         new module.
26224
26225         New module 'posix_spawnattr_setschedparam'.
26226         * modules/posix_spawnattr_setschedparam: New file.
26227         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26228         modifications.
26229         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26230         new module.
26231
26232         New module 'posix_spawnattr_getschedparam'.
26233         * modules/posix_spawnattr_getschedparam: New file.
26234         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26235         modifications.
26236         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26237         new module.
26238
26239         New module 'posix_spawnattr_setpgroup'.
26240         * modules/posix_spawnattr_setpgroup: New file.
26241         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26242         modifications.
26243         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26244         module.
26245
26246         New module 'posix_spawnattr_getpgroup'.
26247         * modules/posix_spawnattr_getpgroup: New file.
26248         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26249         modifications.
26250         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26251         module.
26252
26253         New module 'posix_spawnattr_setflags'.
26254         * modules/posix_spawnattr_setflags: New file.
26255         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26256         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26257         module.
26258
26259         New module 'posix_spawnattr_getflags'.
26260         * modules/posix_spawnattr_getflags: New file.
26261         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26262         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26263         module.
26264
26265         New module 'posix_spawnattr_init'.
26266         * modules/posix_spawnattr_init: New file.
26267         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26268         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26269         module.
26270
26271         New module 'posix_spawn_file_actions_destroy'.
26272         * modules/posix_spawn_file_actions_destroy: New file.
26273         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26274         modifications.
26275         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26276         the new module.
26277
26278         New module 'posix_spawn_file_actions_addopen'.
26279         * modules/posix_spawn_file_actions_addopen: New file.
26280         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26281         modifications.
26282         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26283         the new module.
26284
26285         New module 'posix_spawn_file_actions_adddup2'.
26286         * modules/posix_spawn_file_actions_adddup2: New file.
26287         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26288         modifications.
26289         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26290         the new module.
26291
26292         New module 'posix_spawn_file_actions_addclose'.
26293         * modules/posix_spawn_file_actions_addclose: New file.
26294         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26295         modifications.
26296         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26297         the new module.
26298
26299         New module 'posix_spawn_file_actions_init'.
26300         * modules/posix_spawn_file_actions_init: New file.
26301         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26302         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26303         new module.
26304
26305         New module 'posix_spawn-internal'.
26306         * modules/posix_spawn-internal: New file.
26307         * lib/spawn_int.h: New file, from GNU libc with modifications.
26308         * lib/spawni.c: New file, from GNU libc with modifications.
26309         * m4/posix_spawn.m4: New file.
26310
26311         New module 'spawn'.
26312         * modules/spawn: New file.
26313         * lib/spawn.in.h: New file, from GNU libc with modifications.
26314         * m4/spawn_h.m4: New file.
26315         * doc/posix-headers/spawn.texi: Mention the new module.
26316
26317 2008-09-28  Bruno Haible  <bruno@clisp.org>
26318
26319         * modules/sched-tests: New file.
26320         * tests/test-sched.c: New file.
26321
26322         New module 'sched'.
26323         * modules/sched: New file.
26324         * lib/sched.in.h: New file.
26325         * m4/sched_h.m4: New file.
26326         * doc/posix-headers/sched.texi: Mention the new module.
26327
26328 2008-09-27  Eric Blake  <ebb9@byu.net>
26329
26330         Fix previous patch, and tweak references to $0.
26331         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26332         (func_version, func_gnulib_dir): Don't call this program
26333         gnulib-tool.
26334         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26335         with using $0 in function.
26336         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26337         (func_fatal_error): Reuse the name the user invoked us with.
26338
26339 2008-09-27  Bruno Haible  <bruno@clisp.org>
26340
26341         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26342         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26343         (gl_ICONV_H): Not here.
26344         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26345         instead of assigning ICONV_H directly.
26346
26347         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26349         WCHAR_H directly.
26350
26351 2008-09-27  Bruno Haible  <bruno@clisp.org>
26352
26353         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26354         * modules/arpa_inet (Depends-on): Add link-warning.
26355         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26356         * modules/unistd (Makefile.am): Likewise.
26357
26358 2008-09-26  Bruno Haible  <bruno@clisp.org>
26359
26360         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26361         variables.
26362         (func_version): Essentially copied from gnulib-tool.
26363         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26364         func_readlink): Copied from gnulib-tool.
26365
26366 2008-09-26  Bruno Haible  <bruno@clisp.org>
26367
26368         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26369         invoking git-version-gen.
26370
26371 2008-09-26  Bruno Haible  <bruno@clisp.org>
26372
26373         * posix-modules: Update to directory names changed on 2008-01-19.
26374         Remove commas in output before splitting into words. No more need to
26375         avoid 'ftruncate' since 2007-02-19.
26376
26377 2008-09-26  Bruno Haible  <bruno@clisp.org>
26378
26379         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26380
26381 2008-09-26  Bruno Haible  <bruno@clisp.org>
26382
26383         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26384         * modules/fwriteerror (Depends-on): Add errno.
26385
26386 2008-09-26  Bruno Haible  <bruno@clisp.org>
26387
26388         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26389         * tests/test-vc-list-files-cvs.sh: Likewise.
26390
26391 2008-09-26  Bruno Haible  <bruno@clisp.org>
26392
26393         * doc/posix-headers/sys_resource.texi: Reorder items.
26394
26395 2008-09-26  Jim Meyering  <meyering@redhat.com>
26396
26397         fts: tweak inode comparison function
26398         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26399         inode numbers, as documented.
26400
26401         fts: sort dirent entries on inode number before traversing
26402         This avoids a quadratic, seek-related performance penalty when
26403         operating on a directory containing many entries (measurable at 10k;
26404         3.5 hours at 2 million entries with a cold cache) on certain types
26405         of file systems, including ext3 and ext4, but not tmpfs.
26406         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26407         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26408         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26409         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26410         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26411         (fts_build): Set the stat.st_ino member from D_INO.
26412         If it is likely to be useful, sort dirent entries on inode number.
26413
26414         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26415         and the struct statfs.f_type member.
26416         * modules/fts (Depends-on): Add d-ino.
26417
26418 2008-09-26  Bruno Haible  <bruno@clisp.org>
26419
26420         * modules/sigpipe-die (Depends-on): Add sigpipe.
26421
26422         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26423         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26424         and GNULIB_STDIO_H_SIGPIPE are set.
26425         * lib/stdio-write.c: New file.
26426         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26427         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26428         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26429         REPLACE_STDIO_WRITE_FUNCS.
26430         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26431         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26432         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26433         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26434         * modules/stdio (Files): Add lib/stdio-write.c.
26435         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26436         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26437         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26438         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26439         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26440         REPLACE_FPRINTF_POSIX.
26441         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26442         REPLACE_PRINTF_POSIX.
26443         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26444         REPLACE_VFPRINTF_POSIX.
26445         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26446         REPLACE_VPRINTF_POSIX.
26447         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26448         SIGPIPE issue.
26449         * doc/posix-functions/fputc.texi: Likewise.
26450         * doc/posix-functions/fputs.texi: Likewise.
26451         * doc/posix-functions/fwrite.texi: Likewise.
26452         * doc/posix-functions/printf.texi: Likewise.
26453         * doc/posix-functions/putc.texi: Likewise.
26454         * doc/posix-functions/putchar.texi: Likewise.
26455         * doc/posix-functions/puts.texi: Likewise.
26456         * doc/posix-functions/vfprintf.texi: Likewise.
26457         * doc/posix-functions/vprintf.texi: Likewise.
26458
26459         * modules/safe-write (Depends-on): Add write.
26460
26461         * modules/sigpipe-tests: New file.
26462         * tests/test-sigpipe.c: New file.
26463         * tests/test-sigpipe.sh: New file.
26464
26465         * modules/write: New file.
26466         * lib/unistd.in.h: Include <sys/types.h>.
26467         (write): New declaration.
26468         * lib/write.c: New file.
26469         * m4/write.m4: New file.
26470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26471         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26472         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26473         GNULIB_WRITE, REPLACE_WRITE.
26474         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26475         and the SIGPIPE issue.
26476
26477         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26478         (raise): New declaration.
26479         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26480         (ext_signal): New function.
26481         (rpl_raise): New function.
26482         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26483         GNULIB_SIGNAL_H_SIGPIPE.
26484         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26485         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26486
26487         * modules/sigpipe: New file.
26488         * m4/sigpipe.m4: New file.
26489
26490 2008-09-25  Derek Price  <derek@ximbiot.com>
26491             Bruno Haible  <bruno@clisp.org>
26492
26493         * gnulib-tool (func_import): Report all license incompatibilities, not
26494         just the first one.
26495
26496 2008-09-25  Bruno Haible  <bruno@clisp.org>
26497
26498         * gnulib-tool (func_import): When computing the edits, consider not
26499         only the Makefile.ams that exist but also those that will be generated.
26500
26501 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26502
26503         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26504         fixes gnulib-tool --test warning about duplicate dependency.
26505
26506 2008-09-25  Bruno Haible  <bruno@clisp.org>
26507
26508         * gnulib-tool: Don't ask the user to perform edits in the generated
26509         Makefile.ams.
26510         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26511         apply to the Makefile.am being generated.
26512         (func_emit_tests_Makefile_am): Execute edits that apply to the
26513         Makefile.am being generated.
26514         (func_import): Setup list of Makefile.am edits before emitting the
26515         Makefile.ams, not at the end.
26516         (func_create_testdir): Update.
26517         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26518
26519 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26520
26521         * gnulib-tool (func_import): Store the --tests-base option in the
26522         comment in gnulib-cache.m4.
26523
26524 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26525
26526         * NEWS: Document increased portability that sys_select now provides.
26527
26528         * lib/sys_select.in.h: Install select wrapper.
26529         * lib/sys_socket.in.h: Use more descriptive name when there is no
26530         select wrapper.
26531         * lib/winsock-select.c: New.
26532         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26533         Require gl_HEADER_SYS_SOCKET.
26534         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26535         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26536         * tests/test-sys_select.c: Add functional tests.
26537
26538 2008-09-24  Eric Blake  <ebb9@byu.net>
26539
26540         open, fopen: close fd leak in last patch
26541         * lib/open.c (rpl_open): Close fd before returning error.
26542         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26543         * doc/posix-functions/open.texi (open): Document that Irix also
26544         has the bug.
26545         * doc/posix-functions/fopen.texi (fopen): Likewise.
26546         Reported by Paolo Bonzini.
26547
26548 2008-09-24  Bruno Haible  <bruno@clisp.org>
26549
26550         Ensure that a filename ending in a slash cannot be used to access a
26551         non-directory.
26552         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26553         to check whether it's really a directory.
26554         * lib/fopen.c: Include fcntl.h, unistd.h.
26555         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26556         and fdopen().
26557         * modules/fopen (Depends-on): Add unistd.
26558         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26559         * tests/test-fopen.c (main): Likewise.
26560         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26561         * doc/posix-functions/fopen.texi: Likewise.
26562         Reported by Eric Blake.
26563
26564 2008-09-23  Eric Blake  <ebb9@byu.net>
26565
26566         c-stack: avoid compiler optimizations when provoking overflow
26567         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26568         recursion harder to optimize, to ensure a stack overflow occurs.
26569         * tests/test-c-stack.c (recurse): Likewise.
26570         Borrowed from libsigsegv.
26571
26572         c-stack: work around Irix sigaltstack bug
26573         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26574         whether sigaltstack uses wrong end of stack_t (copied in part from
26575         libsigsegv).
26576         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26577         Irix bug, without requiring an over-allocation.
26578         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26579         bug.
26580
26581         fopen: document mingw bug on directories
26582         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26583         not allowing a stream visiting a directory, even though reading
26584         from such a stream is not portable.
26585
26586 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26587
26588         * lib/poll.c: Rewrite.
26589         * modules/poll: Depend on alloca.
26590
26591 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26592
26593         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26594         instead define prototypes for a full set of wrappers.  Ensure
26595         that Cygwin does not use the compatibility code, which is only
26596         for MinGW.
26597         * lib/winsock.c: New.
26598         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26599         * modules/sys_socket: Add lib/winsock.c.
26600
26601         * modules/poll-tests: Add errno and perror.
26602         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26603
26604 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26605
26606         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26607
26608 2008-09-23  Bruno Haible  <bruno@clisp.org>
26609
26610         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26611         * doc/glibc-functions/*: Likewise.
26612
26613 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26614
26615         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26616         success.
26617
26618 2008-09-22  Eric Blake  <ebb9@byu.net>
26619             Bruno Haible  <bruno@clisp.org>
26620
26621         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26622         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26623         supply %A but mishandle pseudo-NaN.
26624         Reported by Simon Josefsson.
26625
26626 2008-09-21  Bruno Haible  <bruno@clisp.org>
26627
26628         * tests/test-lock.c (main): Tweak skip message.
26629         * tests/test-tls.c (main): Likewise.
26630
26631 2008-09-21  Bruno Haible  <bruno@clisp.org>
26632
26633         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
26634         whether 'struct sigaction' has sa_sigaction here...
26635         (gl_PREREQ_SIG_HANDLER_H): ... not here.
26636         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
26637
26638 2008-09-21  Bruno Haible  <bruno@clisp.org>
26639
26640         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
26641         section.
26642         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
26643         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
26644         the new section.
26645         (Support for obsolete systems lacking POSIX:2001): New section.
26646         (String handling <string.h>): Move strdup to the new section.
26647         Suggested by Simon Josefsson and Paolo Bonzini.
26648
26649 2008-09-21  Bruno Haible  <bruno@clisp.org>
26650
26651         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
26652         exponents in %e and %g results on 'long double'. Needed for mingw's
26653         improved *printf functions.
26654         * tests/test-vasprintf-posix.c (test_function): Likewise.
26655         * tests/test-snprintf-posix.h (test_function): Likewise.
26656         * tests/test-sprintf-posix.h (test_function): Likewise.
26657         Reported by Eric Blake.
26658
26659 2008-09-21  Bruno Haible  <bruno@clisp.org>
26660
26661         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
26662         * tests/test-sprintf-posix.h (test_function): Likewise.
26663
26664 2008-09-21  Bruno Haible  <bruno@clisp.org>
26665
26666         * modules/getpass (Depends-on): Add strdup-posix.
26667
26668         New module 'strdup-posix'.
26669         * modules/strdup-posix: New file.
26670         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
26671         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
26672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26673         REPLACE_STRDUP.
26674         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
26675         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
26676         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26677         strdup-posix.
26678
26679         * modules/strdup (Depends-on): Remove malloc-posix.
26680
26681 2008-09-20  Bruno Haible  <bruno@clisp.org>
26682
26683         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
26684         Wildenhues.
26685
26686 2008-09-20  Bruno Haible  <bruno@clisp.org>
26687
26688         Ensure that wint_t gets defined on IRIX 5.3.
26689         * lib/wchar.in.h (wint_t): Define if not defined by the system.
26690         * lib/wctype.in.h (wint_t): Likewise.
26691         (__wctype_wint_t): Remove type.
26692         (isw*): Use wint_t instead of __wctype_wint_t.
26693         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
26694         * modules/wchar (Files): Add m4/wint_t.m4.
26695         (Makefile.am): Substitute HAVE_WINT_T.
26696         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
26697         * tests/test-wctype.c: Check that wint_t is defined.
26698         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
26699         * doc/posix-headers/wctype.texi: Likewise.
26700         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26701
26702 2008-09-18  Bruno Haible  <bruno@clisp.org>
26703
26704         * gnulib-tool (func_exit): Update comment.
26705
26706 2008-09-18  Simon Josefsson  <simon@josefsson.org>
26707
26708         * modules/getaddrinfo (Depends-on): Remove strdup, this module
26709         assumes strdup exists and does not depend on strdup to return
26710         ENOMEM on out of memory conditions.
26711
26712 2008-09-18  Bruno Haible  <bruno@clisp.org>
26713
26714         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
26715         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
26716         digits for the exponent.
26717
26718 2008-09-18  Jim Meyering  <meyering@redhat.com>
26719             Bruno Haible  <bruno@clisp.org>
26720
26721         * lib/vasnprintf.c (decimal_point_char): Define also if
26722         NEED_PRINTF_INFINITE_LONG_DOUBLE.
26723
26724 2008-09-16  Bruno Haible  <bruno@clisp.org>
26725         and Eric Blake  <ebb9@byu.net>
26726
26727         vasnprintf: support Irix 5.3
26728         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
26729         that mishandle long double infinity.
26730         Reported by Tom G. Christensen.
26731
26732 2008-09-16  Bruno Haible  <bruno@clisp.org>
26733
26734         * doc/glibc-functions/scandir.texi: Mention the function is missing on
26735         Solaris 9.
26736         * doc/glibc-functions/alphasort.texi: Likewise.
26737         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
26738
26739 2008-09-16  Jim Meyering  <meyering@redhat.com>
26740
26741         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
26742         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
26743         a umask modification leak out of a subshell.  Otherwise, the
26744         opensolaris /bin/sh would be accepted and thus cause unwarranted
26745         failures in the coreutils test suite.
26746
26747 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
26748
26749         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
26750         to succeed.
26751
26752 2008-09-16  Jim Meyering  <meyering@redhat.com>
26753
26754         avoid spurious test failure when library is built without ACL support
26755         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
26756         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
26757         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
26758         * tests/test-copy-acl.sh: Likewise.
26759
26760 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26761
26762         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
26763         based on character occurrence counts.
26764
26765 2008-09-15  Eric Blake  <ebb9@byu.net>
26766
26767         tests: avoid some compiler warnings
26768         * tests/test-memchr.c (main): Pass NULL indirectly.
26769         * tests/test-closein.c (main): Avoid unused variable.
26770
26771 2008-09-15  Bruno Haible  <bruno@clisp.org>
26772
26773         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
26774         are missing on OpenBSD 4.0 individually.
26775         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26776
26777 2008-09-15  Bruno Haible  <bruno@clisp.org>
26778
26779         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
26780         * doc/posix-functions/strerror.texi: Mention also Cygwin.
26781         * doc/posix-functions/perror.texi: Likewise.
26782         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
26783         is missing.
26784         Reported by Eric Blake.
26785
26786         * lib/errno.in.h: Use replacement values >= 2000.
26787         Reported by Eric Blake.
26788
26789 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26790
26791         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
26792         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
26793         limit.
26794         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
26795         compareseq was aborted.
26796
26797 2008-09-14  Bruno Haible  <bruno@clisp.org>
26798
26799         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
26800         yvec_edit_count.
26801         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
26802         (fstrcmp_bounded): Simplify result computation accordingly.
26803
26804 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26805
26806         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
26807         (fstrcmp): Define in terms of fstrcmp_bounded.
26808         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
26809         lower_bound argument.
26810         Return quickly if the result is certainly < lower_bound.
26811         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
26812
26813 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26814
26815         * lib/diffseq.h (EARLY_ABORT): New macro.
26816         (compareseq): Change return type to bool. Return true when EARLY_ABORT
26817         evaluates to true.
26818
26819 2008-09-14  Bruno Haible  <bruno@clisp.org>
26820
26821         * modules/perror-tests: New file.
26822         * tests/test-perror.sh: New file.
26823         * tests/test-perror.c: New file.
26824
26825         New module 'perror'.
26826         * lib/stdio.in.h (perror): New declaration.
26827         * lib/perror.c: New file.
26828         * m4/perror.m4: New file.
26829         * modules/perror: New file.
26830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
26831         * doc/posix-functions/perror.texi: Mention the perror module.
26832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
26833         REPLACE_PERROR.
26834         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
26835         REPLACE_PERROR.
26836
26837 2008-09-14  Bruno Haible  <bruno@clisp.org>
26838
26839         * modules/stdio (Makefile.am): Reorder to match the order in
26840         lib/stdio.in.h.
26841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26842
26843 2008-09-13  Bruno Haible  <bruno@clisp.org>
26844
26845         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
26846
26847 2008-09-13  Bruno Haible  <bruno@clisp.org>
26848
26849         Extend strerror to cover the added errno values.
26850         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
26851         (rpl_strerror): Provide error messages for the added errno values and
26852         for the WSA* values.
26853         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
26854         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
26855         strerror.
26856         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
26857         * modules/strerror (Depends-on): Add errno.
26858         * doc/posix-functions/strerror.texi: Document the change.
26859         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
26860         and EOVERFLOW.
26861
26862 2008-09-13  Bruno Haible  <bruno@clisp.org>
26863
26864         * modules/EOVERFLOW: Remove file.
26865         * m4/eoverflow.m4: Remove file.
26866         * modules/EOVERFLOW-tests: Remove file.
26867         * tests/test-EOVERFLOW.c: Remove file.
26868         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
26869         * modules/ftell (Depends-on): Likewise.
26870         * modules/getdelim (Depends-on): Likewise.
26871         * modules/getugroups (Depends-on): Likewise.
26872         * modules/poll (Depends-on): Likewise.
26873         * modules/snprintf (Depends-on): Likewise.
26874         * modules/sprintf-posix (Depends-on): Likewise.
26875         * modules/vasnprintf (Depends-on): Likewise.
26876         * modules/vasprintf (Depends-on): Likewise.
26877         * modules/vfprintf-posix (Depends-on): Likewise.
26878         * modules/vsnprintf (Depends-on): Likewise.
26879         * modules/vsprintf-posix (Depends-on): Likewise.
26880         * modules/xvasprintf (Depends-on): Likewise.
26881         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26882         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
26883         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
26884         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
26885         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26886         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
26887         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
26888         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
26889         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26890         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
26891         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
26892         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
26893         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26894         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
26895         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
26896         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
26897         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26898         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
26899         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
26900         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
26901         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26902         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
26903         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
26904         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
26905         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
26906         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26907         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
26908         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
26909         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
26910         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
26911         * MODULES.html.sh: Remove EOVERFLOW.
26912         * NEWS: Mention the change.
26913
26914 2008-09-13  Bruno Haible  <bruno@clisp.org>
26915
26916         * modules/errno-tests: New file.
26917         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
26918
26919         * lib/errno.in.h: New file.
26920         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
26921         * modules/errno: New file.
26922         * doc/posix-headers/errno.texi: Update documentation.
26923         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
26924
26925 2008-09-13  Bruno Haible  <bruno@clisp.org>
26926
26927         * tests/test-poll.c: Use #if for native Windows, rather than testing
26928         __MSVCRT__.
26929
26930 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26931             Bruno Haible  <bruno@clisp.org>
26932
26933         * lib/glob.c: Don't include <pwd.h> on native Windows.
26934         (WINDOWS32): New macro.
26935         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
26936
26937 2008-09-13  Bruno Haible  <bruno@clisp.org>
26938
26939         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
26940         (ETIMEDOUT): Remove macro.
26941         (glthread_cond_timedwait_multithreaded): New declaration.
26942         (glthread_cond_timedwait): Use it.
26943         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
26944         (glthread_cond_timedwait_multithreaded): New function.
26945
26946 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26947
26948         * modules/poll-tests: Do not check for io.h.
26949         * tests/test-poll.c: Check for __MSVCRT__ instead.
26950
26951 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26952
26953         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
26954         * modules/poll-tests: Add inet_pton, stdbool, sockets.
26955         * tests/test-poll.c: Use them.  Use _pipe on Windows.
26956
26957 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26958
26959         * modules/poll-tests: New.
26960         * tests/test-poll.c: New.
26961
26962 2008-09-12  Eric Blake  <ebb9@byu.net>
26963
26964         frexp: test for NetBSD failure on -0.0
26965         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
26966         not all, bugs from NetBSD 3.0 have been fixed.
26967         * doc/posix-functions/frexp.texi (frexp): Document bug.
26968         Reported by Thomas Klausner.
26969
26970         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
26971         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
26972         literal -0.0.
26973         Reported by Jonathan C. Patschke <jp@centtech.com>.
26974
26975 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26976
26977         * lib/glthread/cond.h: Use dummy implementation also if
26978         USE_WIN32_THREADS.
26979
26980 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26981
26982         * modules/fnmatch-posix (License): Change to LGPLv2+.
26983         * modules/fnmatch-gnu (License): Likewise.
26984
26985 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26986
26987         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
26988
26989 2008-09-11  Jim Meyering  <meyering@redhat.com>
26990
26991         * users.txt: Add gtk-vnc.
26992
26993 2008-09-08  Simon Josefsson  <simon@josefsson.org>
26994
26995         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
26996         rotate amounts.
26997
26998         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
26999         required for 16-bit and 8-bit rotates.
27000         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27001         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27002         UINT8_MAX instead of hard-coded constants.
27003         Suggested by Paul Eggert.
27004
27005 2008-09-07  Bruno Haible  <bruno@clisp.org>
27006
27007         * tests/test-striconveh.c (main): Check behaviour when converting from
27008         UTF-7.
27009
27010         Make striconveh work better with stateful encodings.
27011         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27012         that iconv does not increment the inptr when returning -1/EINVAL.
27013
27014 2008-09-07  Bruno Haible  <bruno@clisp.org>
27015
27016         * build-aux/config.rpath: Update according to libtool-2.2.6.
27017         * build-aux/config.libpath: Likewise.
27018
27019 2008-09-06  Bruno Haible  <bruno@clisp.org>
27020
27021         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27022         * lib/freadptr.c (freadptr): Likewise.
27023         * lib/freadseek.c (freadptrinc): Likewise.
27024         Reported by Simon Josefsson.
27025
27026 2008-09-06  Bruno Haible  <bruno@clisp.org>
27027
27028         * modules/freadptr (License): Change to LGPLv2+.
27029         * modules/freadseek (License): Likewise.
27030         Suggested by Eric Blake.
27031
27032         * modules/memchr2 (License): Change to LGPLv2+.
27033         Approved by Eric Blake.
27034
27035 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27036             Bruno Haible  <bruno@clisp.org>
27037
27038         Make gnulib-tool work with native 'sed' on AIX.
27039         * gnulib-tool (sed_noop): New variable.
27040         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27041         func_add_or_update, func_create_testdir): Use it to initialize sed
27042         script variables.
27043         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27044
27045 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27046             Bruno Haible  <bruno@clisp.org>
27047
27048         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27049         also works after #include directives.
27050
27051 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27052
27053         getdate.y: reject an out-of-range timezone value
27054         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27055         the range [-24...+24].  When specified with only one or two digits,
27056         * tests/test-getdate.c: Tests for the fix.
27057         * doc/getdate.texi: Document this change.
27058
27059 2008-09-03  Bruno Haible  <bruno@clisp.org>
27060
27061         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27062
27063 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27064
27065         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27066         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27067         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27068         Blake <ebb9@byu.net>.
27069
27070         * tests/test-bitrotate.c: Add more test vectors.
27071
27072 2008-09-02  Eric Blake  <ebb9@byu.net>
27073
27074         vasnprintf-posix: handle large precision via %.*d
27075         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27076         when handling it ourselves.
27077         * tests/test-vasnprintf-posix.c (test_function): Add test.
27078         * tests/test-snprintf-posix.h (test_function): Likewise.
27079         * tests/test-sprintf-posix.h (test_function): Likewise.
27080         * tests/test-vasprintf-posix.c (test_function): Likewise.
27081         Reported by Alain Guibert.
27082
27083 2008-09-01  Eric Blake  <ebb9@byu.net>
27084
27085         c-stack: make configure-time check more robust
27086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27087         successful sigaction call.
27088         Reported by Tom G. Christensen.
27089
27090 2008-09-01  Bruno Haible  <bruno@clisp.org>
27091
27092         New module 'findprog-lgpl'.
27093         * modules/findprog-lgpl: New file.
27094         * lib/findprog-lgpl.c: New file.
27095         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27096         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27097         to decide whether to use strdup or xstrdup, concatenated_filename or
27098         xconcatenated_filename.
27099
27100 2008-09-01  Bruno Haible  <bruno@clisp.org>
27101
27102         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27103         'xconcat-filename' (GPL).
27104         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27105         (License): Change to LGPLv2+.
27106         * modules/xconcat-filename: New file.
27107         * lib/concat-filename.h (concatenated_filename): Change specification.
27108         (xconcatenated_filename): New declaration.
27109         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27110         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27111         memory situations.
27112         * lib/xconcat-filename.c: New file.
27113         * NEWS: Mention the change.
27114         * lib/findprog.c: Include concat-filename.h, not filename.h.
27115         (find_in_path): Use xconcatenated_filename instead of
27116         concatenated_filename.
27117         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27118         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27119         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27120         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27121         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27122         instead of concatenated_filename.
27123         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27124         (execute_java_class): Use xconcatenated_filename instead of
27125         concatenated_filename.
27126         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27127         * modules/javacomp (Depends-on): Likewise.
27128         * modules/javaexec (Depends-on): Likewise.
27129
27130 2008-09-01  Bruno Haible  <bruno@clisp.org>
27131
27132         Split module 'filename' into 'filename' and 'concat-filename'.
27133         * modules/filename: Keep only lib/filename.h.
27134         (License): Change to LGPLv2+.
27135         * modules/concat-filename: New file, extracted from modules/filename.
27136         * lib/filename.h (concatenated_filename): Remove declaration.
27137         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27138         * lib/concat-filename.c: Include concat-filename.h.
27139         * NEWS: Mention the change.
27140
27141 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27142
27143         * lib/bitrotate.h (rotl8, rotr8): Add.
27144
27145         * modules/bitrotate (configure.ac): Need
27146         AC_REQUIRE([AC_C_INLINE]).
27147         (Description): Mention stdint.h.  Reported by Bruno Haible
27148         <bruno@clisp.org>.
27149
27150         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27151         Paolo Bonzini <bonzini@gnu.org>.
27152
27153 2008-08-31  Bruno Haible  <bruno@clisp.org>
27154
27155         Assume Solaris specific bi-arch conventions on Solaris systems.
27156         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27157         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27158         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27159         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27160         like acl_libdirstem.
27161         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27162         acl_libdirstem.
27163         * NEWS: Mention the change.
27164         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27165
27166 2008-08-31  Jim Meyering  <meyering@redhat.com>
27167
27168         * lib/strftime.h: Add comments describing the two added arguments.
27169
27170         remove duplicate #include directives
27171         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27172         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27173
27174 2008-08-31  Bruno Haible  <bruno@clisp.org>
27175
27176         New module 'sigpipe-die'.
27177         * modules/sigpipe-die: New file.
27178         * lib/sigpipe-die.h: New file.
27179         * lib/sigpipe-die.c: New file.
27180         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27181
27182 2008-08-31  Bruno Haible  <bruno@clisp.org>
27183
27184         Don't override previously installed signal handlers.
27185         * lib/fatal-signal.c (saved_sigactions): New variable.
27186         (uninstall_handlers): Reset the signal to the saved handler, not
27187         to SIG_DFL (except when ignored).
27188         (install_handlers): Save the previous handlers.
27189
27190 2008-08-30  Bruno Haible  <bruno@clisp.org>
27191
27192         * gnulib-tool (func_reset_sigpipe): New function.
27193         (func_get_automake_snippet, func_modules_transitive_closure,
27194         func_import): Invoke it before a join command that reads from stdin,
27195         to avoid "echo: write error: Broken pipe" error messages on stderr.
27196         Reported by Sam Steingold <sds@gnu.org>.
27197
27198 2008-08-30  Bruno Haible  <bruno@clisp.org>
27199
27200         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27201         Code copied from m4/open.m4.
27202         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27203         access and the filename ends in a slash. Code copied from lib/open.c.
27204         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27205         * tests/test-fopen.c (main): Check against bug with trailing slash.
27206
27207 2008-08-29  Bruno Haible  <bruno@clisp.org>
27208
27209         Avoid some "gcc -pedantic" warnings.
27210         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27211         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27212         * lib/dirent.in.h: Likewise.
27213         * lib/fcntl.in.h: Likewise.
27214         * lib/float.in.h: Likewise.
27215         * lib/iconv.in.h: Likewise.
27216         * lib/inttypes.in.h: Likewise.
27217         * lib/locale.in.h: Likewise.
27218         * lib/math.in.h: Likewise.
27219         * lib/netinet_in.in.h: Likewise.
27220         * lib/search.in.h: Likewise.
27221         * lib/signal.in.h: Likewise.
27222         * lib/stdarg.in.h: Likewise.
27223         * lib/stdint.in.h: Likewise.
27224         * lib/stdio.in.h: Likewise.
27225         * lib/stdlib.in.h: Likewise.
27226         * lib/string.in.h: Likewise.
27227         * lib/strings.in.h: Likewise.
27228         * lib/sys_select.in.h: Likewise.
27229         * lib/sys_socket.in.h: Likewise.
27230         * lib/sys_stat.in.h: Likewise.
27231         * lib/sys_time.in.h: Likewise.
27232         * lib/sysexits.in.h: Likewise.
27233         * lib/time.in.h: Likewise.
27234         * lib/unistd.in.h: Likewise.
27235         * lib/wchar.in.h: Likewise.
27236         * lib/wctype.in.h: Likewise.
27237         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27238         * modules/fchdir (Makefile.am): Likewise.
27239         * modules/fcntl (Makefile.am): Likewise.
27240         * modules/float (Makefile.am): Likewise.
27241         * modules/iconv_open (Makefile.am): Likewise.
27242         * modules/inttypes (Makefile.am): Likewise.
27243         * modules/locale (Makefile.am): Likewise.
27244         * modules/math (Makefile.am): Likewise.
27245         * modules/netinet_in (Makefile.am): Likewise.
27246         * modules/search (Makefile.am): Likewise.
27247         * modules/signal (Makefile.am): Likewise.
27248         * modules/stdarg (Makefile.am): Likewise.
27249         * modules/stdint (Makefile.am): Likewise.
27250         * modules/stdio (Makefile.am): Likewise.
27251         * modules/stdlib (Makefile.am): Likewise.
27252         * modules/string (Makefile.am): Likewise.
27253         * modules/strings (Makefile.am): Likewise.
27254         * modules/sys_select (Makefile.am): Likewise.
27255         * modules/sys_socket (Makefile.am): Likewise.
27256         * modules/sys_stat (Makefile.am): Likewise.
27257         * modules/sys_time (Makefile.am): Likewise.
27258         * modules/sysexits (Makefile.am): Likewise.
27259         * modules/time (Makefile.am): Likewise.
27260         * modules/unistd (Makefile.am): Likewise.
27261         * modules/wchar (Makefile.am): Likewise.
27262         * modules/wctype (Makefile.am): Likewise.
27263         Reported by Reuben Thomas <rrt@sc3d.org>.
27264
27265 2008-08-29  Bruno Haible  <bruno@clisp.org>
27266
27267         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27268         any more.
27269
27270 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27271
27272         * MODULES.html.sh (Misc): Add bitrotate.
27273
27274         * modules/bitrotate: New file.
27275
27276         * lib/bitrotate.h: New file.
27277
27278         * modules/bitrotate-tests: New file.
27279
27280         * tests/test-bitrotate.c: New file.
27281
27282         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27283         on the bitrotate module.
27284
27285         * lib/arctwo.c: Use new bitrotate module.
27286
27287 2008-08-29  Jim Meyering  <meyering@redhat.com>
27288
27289         bootstrap: merge changes from coreutils
27290         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27291         of copied files.  Remove a kludge, now that this is fixed.
27292         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27293         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27294         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27295
27296 2008-08-29  Bruno Haible  <bruno@clisp.org>
27297
27298         * MODULES.html.sh: Remove --cvs-urls option.
27299
27300 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27301
27302         maint.mk: adjust to file name change
27303         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27304
27305 2008-08-28  Jim Meyering  <meyering@redhat.com>
27306
27307         * modules/getndelim2 (License): Relicense to LGPLv2+.
27308         Approved by Richard Stallman for the version of 1995, and by
27309         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27310
27311 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27312
27313         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27314         dummy if one is not available.  Do not touch them if
27315         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27316         (getc_maybe_unlocked): New.
27317         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27318
27319 2008-08-26  Eric Blake  <ebb9@byu.net>
27320
27321         doc/INSTALL: resync from autoconf
27322         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27323         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27324         moving...
27325         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27326         * INSTALL: Regenerate.
27327         * INSTALL.ISO: New file.
27328         * INSTALL.UTF-8: Likewise.
27329
27330 2008-08-26  Jim Meyering  <meyering@redhat.com>
27331
27332         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27333         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27334         these definitions conditional, so that they may be overridden, too.
27335
27336 2008-08-26  Bruno Haible  <bruno@clisp.org>
27337
27338         Generate INSTALL file variants with prettier quotes.
27339         * doc/Makefile (INSTALL_PRELUDE): New macro.
27340         (INSTALL): Use it.
27341         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27342
27343 2008-08-26  Bruno Haible  <bruno@clisp.org>
27344
27345         Run makeinfo in an English locale.
27346         * doc/Makefile (MAKEINFO): New variable.
27347
27348 2008-08-26  Bruno Haible  <bruno@clisp.org>
27349
27350         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27351         Suggested by Eric Blake.
27352
27353 2008-08-25  Bruno Haible  <bruno@clisp.org>
27354
27355         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27356
27357 2008-08-25  Eric Blake  <ebb9@byu.net>
27358
27359         c-stack: test that stack overflow can be caught
27360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27361         that platform allows handling stack overflow; at least OS/2 EMX
27362         has sigaltstack, but crashes before transferring control to
27363         handler on stack overflow.
27364         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27365         check for HAVE_STACK_OVERFLOW_HANDLING.
27366         Reported by Elbert Pol.
27367
27368 2008-08-25  Bruno Haible  <bruno@clisp.org>
27369
27370         * doc/posix-functions/strftime.texi: Fix description of strftime
27371         module.
27372
27373 2008-08-24  Bruno Haible  <bruno@clisp.org>
27374
27375         * tests/uniwidth/test-uc_width2.c: New file.
27376         * tests/uniwidth/test-uc_width2.sh: New file.
27377         * modules/uniwidth/width-tests (Files): Add the new files.
27378         (TESTS): Add uniwidth/test-uc_width2.sh.
27379         (TESTS_ENVIRONMENT): New variable.
27380         (check_PROGRAMS): Add test-uc_width2.
27381         (test_uc_width2_SOURCES): New variable.
27382
27383         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27384         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27385         not 0x00AB.
27386         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27387
27388 2008-08-22  Eric Blake  <ebb9@byu.net>
27389
27390         test-lock, test-tls: mention why a test is skipped
27391         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27392         skipped.
27393         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27394
27395         count-one-bits: relax license
27396         * modules/count-one-bits (License): Relicense to LGPLv2+.
27397         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27398
27399 2008-08-22  Andreas Schwab  <schwab@suse.de>
27400
27401         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27402         Remove spurious space in assignment.
27403
27404 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27405
27406         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27407         Paul Eggert <eggert@CS.UCLA.EDU>.
27408
27409 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27410
27411         * modules/gettext: Add m4/threadlib.m4.
27412
27413 2008-08-19  Eric Blake  <ebb9@byu.net>
27414
27415         test-c-stack: fix compilation failure on FreeBSD 5.0
27416         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27417         headers before <sys/resource.h>.
27418         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27419         the bug.
27420         Reported by Nelson H. F. Beebe.
27421
27422         strverscmp: migrate from "strverscmp.h" to <string.h>
27423         * modules/string (Makefile.am): Add new hooks.
27424         * modules/strverscmp (Files): Remove strverscmp.h.
27425         (Depends-on): Add string.
27426         (configure.ac): Add indicator.
27427         (Include): Mention new header.
27428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27429         defaults.
27430         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27431         results.
27432         * lib/strverscmp.h: Delete.
27433         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27434         * tests/test-strverscmp.c (includes): Adjust client.
27435         * lib/check-version.c (includes): Likewise.
27436         * NEWS: Document the change.
27437
27438         strverscmp: add unit test
27439         * modules/strverscmp-tests: New file.
27440         * tests/test-strverscmp.c: Likewise.
27441
27442 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27443
27444         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27445         regarding Windows crypto stuff, from Mono.
27446
27447 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27448
27449         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27450         if present, for intel RND.  Return error on failures.
27451
27452 2008-08-18  Ben Pfaff  <blp@gnu.org>
27453
27454         gitlog-to-changelog: give better diagnostic for failed pipe-open
27455         * build-aux/gitlog-to-changelog: Improve error message: suggest
27456         that the version of Git may be too old.
27457
27458 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27459
27460         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27461         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27462
27463 2008-08-18  Bruno Haible  <bruno@clisp.org>
27464
27465         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27466         pthread_in_use().
27467
27468 2008-08-18  Bruno Haible  <bruno@clisp.org>
27469
27470         * lib/glthread/threadlib.c: Include <pthread.h>.
27471
27472 2008-08-18  Bruno Haible  <bruno@clisp.org>
27473
27474         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27475         glthread_recursive_lock_* macros.
27476         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27477         Fix syntax error.
27478
27479 2008-08-18  Bruno Haible  <bruno@clisp.org>
27480
27481         * lib/glthread/thread.c: Avoid forcing a context switch right after
27482         thread creation.
27483
27484 2008-08-17  Bruno Haible  <bruno@clisp.org>
27485
27486         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27487         * lib/glthread/thread.h: Provide Win32 specific implementation.
27488         * modules/thread (Files): Add lib/glthread/thread.c.
27489         (Depends-on): Add lock.
27490         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27491
27492 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27493
27494         New module 'yield'.
27495         * modules/yield: New file.
27496         * lib/glthread/yield.h: New file.
27497         * m4/yield.m4: New file.
27498         * MODULES.html.sh (Multithreading): Add yield.
27499
27500 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27501
27502         New module 'thread'.
27503         * modules/thread: New file.
27504         * lib/glthread/thread.h: New file.
27505         * m4/thread.m4: New file.
27506         * MODULES.html.sh (Multithreading): Add thread.
27507
27508 2008-08-17  Bruno Haible  <bruno@clisp.org>
27509
27510         * lib/glthread/lock.h: Include <stdlib.h> always.
27511         * lib/glthread/tls.h: Likewise.
27512         * lib/glthread/cond.h: Likewise.
27513
27514 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27515
27516         New module 'cond'.
27517         * modules/cond: New file.
27518         * lib/glthread/cond.h: New file.
27519         * lib/glthread/cond.c: New file.
27520         * m4/cond.m4: New file.
27521         * MODULES.html.sh (Multithreading): Add cond.
27522
27523 2008-08-16  Eric Blake  <ebb9@byu.net>
27524
27525         c-stack: fix regression on Irix 5.3 from 2008-06-21
27526         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27527         sa_sigaction...
27528         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27529         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27530         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27531         * modules/signal (Makefile.am): Use the value.
27532         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27533         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27534         * doc/posix-headers/signal.texi (signal.h): Document this
27535         portability issue.
27536         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27537         Reported by Tom G. Christensen.
27538
27539 2008-08-17  Bruno Haible  <bruno@clisp.org>
27540
27541         New module 'threadlib'.
27542         * modules/threadlib: New file.
27543         * lib/glthread/threadlib.c: New file, extracted from
27544         lib/glthread/lock.c.
27545         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27546         functions.
27547         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27548         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27549         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27550         macros.
27551         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27552         (gl_DISABLE_THREADS): Remove macro.
27553         * modules/lock (Files): Remove build-aux/config.rpath.
27554         (Depends-on): Remove havelib. Add threadlib.
27555         (configure.ac-early): Remove section.
27556         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27557         * modules/tls (Depends-on): Remove lock. Add threadlib.
27558         (Link): New section, copied from threadlib.
27559         * MODULES.html.sh (Multithreading): Add threadlib.
27560
27561 2008-08-14  Bruno Haible  <bruno@clisp.org>
27562
27563         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27564         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27565         glthread_rwlock_unlock, glthread_rwlock_destroy,
27566         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27567         glthread_recursive_lock_destroy): Define as macros always.
27568         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27569         glthread_lock_lock.
27570         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27571         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27572         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27573         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27574         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27575         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27576         (glthread_recursive_lock_lock_func): Renamed from
27577         glthread_recursive_lock_lock.
27578         (glthread_recursive_lock_unlock_func): Renamed from
27579         glthread_recursive_lock_unlock.
27580         (glthread_recursive_lock_destroy_func): Renamed from
27581         glthread_recursive_lock_destroy.
27582
27583 2008-08-14  Bruno Haible  <bruno@clisp.org>
27584
27585         * lib/glthread/lock.h: Renamed from lib/lock.h.
27586         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27587         * lib/glthread/tls.h: Renamed from lib/tls.h.
27588         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27589         * lib/fstrcmp.c: Update includes.
27590         * lib/strsignal.c: Update includes.
27591         * modules/lock (Files, Makefile.am): Update.
27592         (Include): Change to "glthread/lock.h".
27593         * modules/tls (Files, Makefile.am): Update.
27594         (Include): Change to "glthread/tls.h".
27595         * tests/test-lock.c: Update includes.
27596         * tests/test-tls.c: Update includes.
27597         * NEWS: Mention the renamed header files.
27598
27599 2008-08-11  Jim Meyering  <meyering@redhat.com>
27600
27601         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27602
27603 2008-08-11  Eric Blake  <ebb9@byu.net>
27604
27605         test-c-stack: avoid C99-ism
27606         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27607         before statement.
27608         Reported by Alain Guibert.
27609
27610 2008-08-10  Jim Meyering  <meyering@redhat.com>
27611
27612         ensure that return value of uinttostr et al are not ignored
27613         * lib/inttostr.h (__GNUC_PREREQ): Define.
27614         (__attribute_warn_unused_result__): Define.
27615         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27616
27617 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27618
27619         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27620         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27621
27622 2008-08-07  Jim Meyering  <meyering@redhat.com>
27623
27624         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27625
27626         * modules/mkstemp (License): Relicense under LGPLv2+.
27627         * modules/tempname (License): Likewise.
27628
27629 2008-08-06  Bruno Haible  <bruno@clisp.org>
27630
27631         * lib/poll.c (poll): Further micro-optimization.
27632
27633 2008-08-06  Jim Meyering  <meyering@redhat.com>
27634
27635         inet_pton.c: use locale-independent tolower
27636         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
27637         (inet_pton6): Use c_tolower rather than tolower.
27638         * modules/inet_pton (Depends-on): Add c-ctype.
27639
27640 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
27641
27642         * lib/poll.c (poll): Avoid division when timeout is 0, cache
27643         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
27644
27645 2008-08-06  Jim Meyering  <meyering@redhat.com>
27646
27647         * modules/inet_pton (License): Relicense under LGPLv2+.
27648
27649 2008-08-03  Bruno Haible  <bruno@clisp.org>
27650
27651         Additional non-aborting API for lock and tls.
27652         * lib/lock.h: Include <errno.h>.
27653         (glthread_lock_init): New macro/function.
27654         (gl_lock_init): Define as wrapper around glthread_lock_init.
27655         (glthread_lock_lock): New macro/function.
27656         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
27657         (glthread_lock_unlock): New macro/function.
27658         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
27659         (glthread_lock_destroy): New macro/function.
27660         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
27661         (glthread_rwlock_init): New macro/function.
27662         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
27663         (glthread_rwlock_rdlock): New macro/function.
27664         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
27665         (glthread_rwlock_wrlock): New macro/function.
27666         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
27667         (glthread_rwlock_unlock): New macro/function.
27668         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
27669         (glthread_rwlock_destroy): New macro/function.
27670         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
27671         (glthread_recursive_lock_init): New macro/function.
27672         (gl_recursive_lock_init): Define as wrapper around
27673         glthread_recursive_lock_init.
27674         (glthread_recursive_lock_lock): New macro/function.
27675         (gl_recursive_lock_lock): Define as wrapper around
27676         glthread_recursive_lock_lock.
27677         (glthread_recursive_lock_unlock): New macro/function.
27678         (gl_recursive_lock_unlock): Define as wrapper around
27679         glthread_recursive_lock_unlock.
27680         (glthread_recursive_lock_destroy): New macro/function.
27681         (gl_recursive_lock_destroy): Define as wrapper around
27682         glthread_recursive_lock_destroy.
27683         (glthread_once): New macro/function.
27684         (gl_once): Define as wrapper around glthread_once.
27685         Update function declarations.
27686         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
27687         glthread_rwlock_init. Return error code.
27688         (glthread_rwlock_rdlock_multithreaded): Renamed from
27689         glthread_rwlock_rdlock. Return error code.
27690         (glthread_rwlock_wrlock_multithreaded): Renamed from
27691         glthread_rwlock_wrlock. Return error code.
27692         (glthread_rwlock_unlock_multithreaded): Renamed from
27693         glthread_rwlock_unlock. Return error code.
27694         (glthread_rwlock_destroy_multithreaded): Renamed from
27695         glthread_rwlock_destroy. Return error code.
27696         (glthread_recursive_lock_init_multithreaded): Renamed from
27697         glthread_recursive_lock_init. Return error code.
27698         (glthread_recursive_lock_lock_multithreaded): Renamed from
27699         glthread_recursive_lock_lock. Return error code.
27700         (glthread_recursive_lock_unlock_multithreaded): Renamed from
27701         glthread_recursive_lock_unlock. Return error code.
27702         (glthread_recursive_lock_destroy_multithreaded): Renamed from
27703         glthread_recursive_lock_destroy. Return error code.
27704         (glthread_once_call): Make static.
27705         (glthread_once_multithreaded): Renamed from glthread_once.
27706         * lib/tls.h: Include <errno.h>.
27707         (glthread_tls_key_init): New macro/function.
27708         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
27709         (glthread_tls_set): New macro/function.
27710         (gl_tls_set): Define as wrapper around glthread_tls_set.
27711         (glthread_tls_key_destroy): New macro/function.
27712         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
27713         Update function declarations.
27714         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
27715         glthread_tls_get.
27716         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27717
27718 2008-08-04  Eric Blake  <ebb9@byu.net>
27719
27720         gnumakefile: use space, not TAB, outside of targets
27721         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
27722
27723 2008-08-02  Jim Meyering  <meyering@redhat.com>
27724
27725         getdate.y: avoid locale-dependent date parsing failure
27726         In Turkish locales, getdate would fail to recognize keywords
27727         containing a lowercase "i".  The solution is not to rely on
27728         locale-sensitive case-conversion.
27729         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
27730         (lookup_word): Use c_toupper in place of toupper.
27731         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
27732         Reported by Vefa Bicakci <bicave@superonline.com> in
27733         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
27734         * modules/getdate (Depends-on): Add c-ctype.
27735
27736 2008-08-02  Bruno Haible  <bruno@clisp.org>
27737
27738         * gnulib-tool (func_import): When updating or creating a .gitignore
27739         file, prepend each added line with a slash, and ignore leading slashes
27740         from the existing lines.
27741         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
27742
27743 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27744
27745         Portability fix for GNU make 3.79.1.
27746         * top/GNUmakefile: Avoid 'else COND', which older GNU make
27747         versions do not understand.
27748
27749 2008-08-01  Bruno Haible  <bruno@clisp.org>
27750
27751         Work around bug of HP-UX 10.20 cc with -0.0 literal.
27752         * tests/test-isnanf.h (zero): New variable.
27753         (main): Avoid literal -0.0f.
27754         * tests/test-isnand.h (zero): New variable.
27755         (main): Avoid literal -0.0.
27756         * tests/test-isnanl.h (zero): New variable.
27757         (main): Avoid literal -0.0L.
27758         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
27759         (test_float, test_double, test_long_double): Avoid literals -0.0f,
27760         -0.0, -0.0L.
27761         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
27762         (test_signbitd): Avoid literal -0.0.
27763         (test_signbitl): Avoid literal -0.0L.
27764         * tests/test-ceilf1.c (zero): New variable.
27765         (main): Avoid literal -0.0f.
27766         * tests/test-ceill.c (zero): New variable.
27767         (main): Avoid literal -0.0L.
27768         * tests/test-floorf1.c (zero): New variable.
27769         (main): Avoid literal -0.0f.
27770         * tests/test-floorl.c (zero): New variable.
27771         (main): Avoid literal -0.0L.
27772         * tests/test-roundf1.c (zero): New variable.
27773         (main): Avoid literal -0.0f.
27774         * tests/test-round1.c (zero): New variable.
27775         (main): Avoid literal -0.0.
27776         * tests/test-roundl.c (zero): New variable.
27777         (main): Avoid literal -0.0L.
27778         * tests/test-truncf1.c (zero): New variable.
27779         (main): Avoid literal -0.0f.
27780         * tests/test-trunc1.c (zero): New variable.
27781         (main): Avoid literal -0.0.
27782         * tests/test-truncl.c (zero): New variable.
27783         (main): Avoid literal -0.0L.
27784         * tests/test-frexp.c (zero): New variable.
27785         (main): Avoid literal -0.0.
27786         * tests/test-frexpl.c (zero): New variable.
27787         (main): Avoid literal -0.0L.
27788         * tests/test-ldexpl.c (zero): New variable.
27789         (main): Avoid literal -0.0L.
27790         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
27791         (zerod, zerol): New variables.
27792         (test_function): Avoid literals -0.0, -0.0L.
27793         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
27794         (zerod, zerol): New variables.
27795         (test_function): Avoid literals -0.0, -0.0L.
27796         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
27797         (zerod, zerol): New variables.
27798         (test_function): Avoid literals -0.0, -0.0L.
27799         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
27800         (zerod, zerol): New variables.
27801         (test_function): Avoid literals -0.0, -0.0L.
27802         * tests/test-strtod.c (zero): New variable.
27803         (main): Avoid literal -0.0.
27804         Reported by Jonathan C. Patschke <jp@centtech.com>.
27805
27806 2008-07-31  Jim Meyering  <meyering@redhat.com>
27807
27808         sha256.h: correct definition of SHA224_DIGEST_SIZE
27809         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
27810         Reported by Paulie Pena IV <paulie4@gmail.com>.
27811         Define as 224 / 8, rather than as a literal.
27812         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
27813         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
27814         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
27815
27816 2008-07-31  Bruno Haible  <bruno@clisp.org>
27817
27818         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
27819         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
27820         Reported by Jonathan Patschke <jp@centtech.com>.
27821
27822 2008-07-31  Bruno Haible  <bruno@clisp.org>
27823
27824         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
27825         Reported by Paolo Bonzini <bonzini@gnu.org>.
27826
27827 2008-07-30  Eric Blake  <ebb9@byu.net>
27828
27829         test-strtod: allow compilation without -lm
27830         * tests/test-strtod.c (main): Avoid link dependence on fabs.
27831         Reported by Dennis Clarke <blastwave@gmail.com>.
27832
27833 2008-07-28  Jim Meyering  <meyering@redhat.com>
27834
27835         bootstrap: work also when there are no .po files in po/
27836         * build-aux/bootstrap (update_po_files): Complete the change
27837         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
27838
27839 2008-07-27  Jim Meyering  <meyering@redhat.com>
27840
27841         * users.txt: Add zile.
27842
27843 2008-07-26  Ben Pfaff  <blp@gnu.org>
27844
27845         Add missing dependencies on new m4/exponent[fdl].m4 files.
27846         * modules/isnanf-nolibm: Add m4/exponentf.m4.
27847         * modules/isnand-nolibm: Add m4/exponentd.m4.
27848         * modules/isnanl-nolibm: Add m4/exponentl.m4.
27849         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
27850         m4/isnan[fdl].m4, because the macros actually used moved.
27851         Reported by Jim Meyering.
27852
27853 2008-07-14  Ben Pfaff  <blp@gnu.org>
27854
27855         Add isinf module.
27856         * lib/isinf.c: New file.
27857         * lib/math.in.h: Define isinf macro if we have decided to replace
27858         it.
27859         * m4/isinf.m4: New file.
27860         * m4/math_h.m4: Initialize and substitute variables for isinf
27861         module.
27862         * modules/isinf: New file.
27863         * modules/isinf-tests: New file.
27864         * modules/math: Add substitutions for new module.
27865         * tests/test-isinf.c: New file.
27866         * doc/posix-functions/isinf.texi: Mention new module.
27867         * MODULES.html.sh: Mention new module.
27868
27869 2008-07-14  Ben Pfaff  <blp@gnu.org>
27870
27871         Factor out some macros for use by additional modules.
27872         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
27873         exponentf.m4.
27874         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
27875         exponentd.m4.
27876         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
27877         file exponentl.m4.
27878         * m4/exponentf.m4: New file.
27879         * m4/exponentd.m4: New file.
27880         * m4/exponentl.m4: New file.
27881         * modules/isnanf: Use new file m4/exponentf.m4.
27882         * modules/isnand: Use new file m4/exponentd.m4.
27883         * modules/isnanl: Use new file m4/exponentl.m4.
27884
27885 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
27886
27887         mktime.c: normalize tp->tm_isdst value to -1/0/1.
27888         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
27889         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
27890         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
27891
27892         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
27893         readlink on platforms without PATH_MAX.
27894
27895 2008-07-21  Eric Blake  <ebb9@byu.net>
27896
27897         Warn, not fail, on stale version.
27898         * top/GNUmakefile (_curr-ver): Tone down previous patch.
27899
27900         Don't allow installation with stale devel version number.
27901         * top/GNUmakefile (_is-install-target): New macro.
27902         (_curr-ver): Forbid installation with stale version number.
27903
27904 2008-07-20  Bruno Haible  <bruno@clisp.org>
27905
27906         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
27907         TESTS_ENVIRONMENT.
27908         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
27909
27910 2008-07-20  Bruno Haible  <bruno@clisp.org>
27911
27912         * lib/c-stack.h (c_stack_action): Add documentation.
27913         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
27914
27915 2008-07-20  Bruno Haible  <bruno@clisp.org>
27916
27917         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
27918         * modules/readlink (License): Likewise.
27919
27920 2008-07-17  Eric Blake  <ebb9@byu.net>
27921
27922         * modules/c-stack (Link): Fix typo.
27923
27924         Make c-stack use libsigsegv, when available.
27925         * modules/c-stack (Depends-on): Add libsigsegv.
27926         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
27927         needed.
27928         * lib/c-stack.c (SIGSTKSZ): Define fallback.
27929         (segv_handler, overflow_handler, c_stack_action)
27930         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
27931         implementation when libsigsegv is available, but only when using
27932         the library is necessary.
27933         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
27934         comment, explaining why XSI check fails on Linux.
27935         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
27936         * tests/test-c-stack2.sh: Tweak skip message.
27937         * NEWS: Document new link-time requirements.
27938
27939 2008-07-16  Eric Blake  <ebb9@byu.net>
27940
27941         c-stack: Expose false positives when not using libsigsegv.
27942         * modules/c-stack-tests (Files): Expand test.
27943         * tests/test-c-stack.c (main): Add means to conditionally trigger
27944         non-overflow SIGSEGV.
27945         * tests/test-c-stack2.sh: New file.
27946
27947 2008-07-14  Bruno Haible  <bruno@clisp.org>
27948
27949         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
27950         Reported by Eric Blake.
27951
27952 2008-07-14  Sam Steingold  <sds@gnu.org>
27953             Bruno Haible  <bruno@clisp.org>
27954
27955         New module libsigsegv.
27956         * modules/libsigsegv: New file.
27957         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
27958         modifications.
27959         * MODULES.html.sh (Signal handling): New section.
27960
27961 2008-07-14  Bruno Haible  <bruno@clisp.org>
27962
27963         * modules/unictype/ctype-* (Description): Add the word "function".
27964         Improves the resulting doc in MODULES.html.
27965
27966 2008-07-12  Ben Pfaff  <blp@gnu.org>
27967
27968         Add longlong module.
27969         * modules/longlong: New file.
27970
27971 2008-07-12  Bruno Haible  <bruno@clisp.org>
27972
27973         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
27974         to empty.
27975
27976 2008-07-10  Ben Pfaff  <blp@gnu.org>
27977
27978         Add isnan module.
27979         * doc/posix-functions/isnan.texi: Mention new module.
27980         * lib/math.in.h: Define isnan macro if we have decided to replace
27981         it.
27982         * m4/isnan.m4: New file.
27983         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
27984         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
27985         also.
27986         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
27987         redundancy.
27988         * m4/math_h.m4: Initialize and substitute variables for isnan
27989         module.
27990         * modules/isnan: New file.
27991         * modules/isnan-tests: New file.
27992         * modules/math: Add substitutions for new module.
27993         * tests/test-isnan.c: New file.
27994         * MODULES.html.sh: Mention new module.
27995
27996 2008-07-10  Ben Pfaff  <blp@gnu.org>
27997
27998         Add isnanf module.
27999         * lib/isnanf.m4: New file.
28000         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28001         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28002         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28003         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28004         * modules/isnanf: New file.
28005         * modules/isnanf-tests: New file.
28006         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28007         files.
28008         * tests/test-isnanf-nolibm.c: factored most of its contents into
28009         new file tests/test-isnanf.h.
28010         * tests/test-isnanf.h: New file.
28011         * tests/test-isnanf.c: New file.
28012         * MODULES.html.sh: Mention new module.
28013         * doc/glibc-functions/isnanf.texi: Mention new module.
28014
28015 2008-07-10  Ben Pfaff  <blp@gnu.org>
28016
28017         Add isnand module.
28018         * lib/isnand.h: New file.
28019         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28020         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28021         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28022         functionality also.
28023         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28024         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28025         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28026         * modules/isnand: New file.
28027         * modules/isnand-tests: New file.
28028         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28029         files.
28030         * tests/test-isnand-nolibm.c: factored most of its contents into
28031         new file tests/test-isnand.h.
28032         * tests/test-isnand.h: New file.
28033         * tests/test-isnand.c: New file.
28034         * MODULES.html.sh: Mention new module.
28035
28036 2008-07-10  Ben Pfaff  <blp@gnu.org>
28037
28038         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28039         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28040         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28041         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28042         * modules/isnanf-nolibm: Update references to renamed files.
28043         * modules/isnand-nolibm: Likewise.
28044         * modules/isnanf-nolibm-tests: Likewise.
28045         * modules/isnand-nolibm-tests: Likewise.
28046         * lib/frexp.c: Likewise.
28047         * lib/isfinite.c: Likewise.
28048         * lib/signbitd.c: Likewise.
28049         * lib/signbitf.c: Likewise.
28050         * lib/vasnprintf.c: Likewise.
28051         * tests/test-ceilf1.c: Likewise.
28052         * tests/test-ceilf2.c: Likewise.
28053         * tests/test-floorf1.c: Likewise.
28054         * tests/test-floorf2.c: Likewise.
28055         * tests/test-frexp.c: Likewise.
28056         * tests/test-round1.c: Likewise.
28057         * tests/test-round2.c: Likewise.
28058         * tests/test-roundf1.c: Likewise.
28059         * tests/test-strtod.c: Likewise.
28060         * tests/test-trunc1.c: Likewise.
28061         * tests/test-trunc2.c: Likewise.
28062         * tests/test-truncf1.c: Likewise.
28063         * tests/test-truncf2.c: Likewise.
28064         * NEWS: Mention the renamed header files.
28065
28066 2008-07-11  Jim Meyering  <meyering@redhat.com>
28067
28068         vc-list-files: make the last-resort awk code more portable
28069         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28070         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28071         does not support it.
28072
28073 2008-07-10  Eric Blake  <ebb9@byu.net>
28074
28075         Work with tar's bootstrap.
28076         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28077         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28078         an m4 comment.
28079
28080 2008-07-09  Jim Meyering  <meyering@redhat.com>
28081
28082         posix-shell.m4: fix typo that made this test malfunction
28083         * m4/posix-shell.m4: Remove capitalization in variable name.
28084
28085 2008-07-08  Bruno Haible  <bruno@clisp.org>
28086
28087         * m4/onceonly.m4: Update comments.
28088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28089
28090 2008-07-04  Jim Meyering  <meyering@redhat.com>
28091
28092         * users.txt: Add vc-dwim.
28093         (bison, coreutils): Use the gitweb URL.
28094
28095 2008-07-03  Jim Meyering  <meyering@redhat.com>
28096
28097         * users.txt: Add libffcall.  From Sam Steingold.
28098
28099 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28100
28101         getdate.y: do not ignore TZ with relative day, month or year offset
28102         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28103         relative-date-handling, since otherwise, the latter would clobber the
28104         sole output (an updated Start value) of the tz-handling block.
28105         * tests/test-getdate.c: Tests for the fix
28106
28107 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28108
28109         Recognize 'foo_LIBRARIES += libgnu.a'.
28110         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28111         makefile snippet has already specified an installation location,
28112         also using '+='.
28113
28114 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28115
28116         getdate.y: factor out common actions
28117         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28118         Use them in place of open-coded actions.
28119
28120 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28121
28122         Add self-test for getdate module.
28123         * modules/getdate-tests: New file.
28124         * tests/test-getdate.c: New file.
28125
28126 2008-06-29  Bruno Haible  <bruno@clisp.org>
28127
28128         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28129         .gitignore.
28130         Reported by Sylvain Beucler <beuc@beuc.net>.
28131
28132 2008-06-29  Bruno Haible  <bruno@clisp.org>
28133
28134         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28135         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28136
28137 2008-06-29  Bruno Haible  <bruno@clisp.org>
28138
28139         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28140         EXTRA_DIST.
28141         Reported by Sylvain Beucler <beuc@beuc.net>.
28142
28143 2008-06-26  Jim Meyering  <meyering@redhat.com>
28144
28145         make several modules depend on the "open" module
28146         This provides slightly increased consistency when opening-for-write
28147         the name of a non-directory spelled with a trailing slash.
28148         * modules/chdir-safer: Likewise.
28149         * modules/chown: Likewise.
28150         * modules/clean-temp: Likewise.
28151         * modules/copy-file: Likewise.
28152         * modules/fchdir: Likewise.
28153         * modules/fcntl-safer: Likewise.
28154         * modules/pipe: Likewise.
28155         * modules/utime: Likewise.
28156         Prompted by Eric Blake and Bruno Haible.
28157
28158 2008-06-24  Andreas Schwab  <schwab@suse.de>
28159
28160         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28161         literals can be used as initializers for global variables.
28162
28163 2008-06-23  Eric Blake  <ebb9@byu.net>
28164
28165         Make gnulib-cache.m4 easier to diff.
28166         * gnulib-tool (func_import): Allow newlines when reading cached
28167         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28168
28169 2008-06-23  Bruno Haible  <bruno@clisp.org>
28170
28171         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28172         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28173         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28174         m4/signalblocking.m4.
28175         (gl_PREREQ_SIGACTION): Don't invoke it.
28176         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28177         gl_PREREQ_SIG_HANDLER_H.
28178         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28179         Don't check for sigaction here.
28180
28181 2008-06-23  Bruno Haible  <bruno@clisp.org>
28182
28183         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28184         (install_handlers): Don't set the SA_RESETHAND flag.
28185
28186 2008-06-23  Bruno Haible  <bruno@clisp.org>
28187
28188         * m4/sigaction.m4: Comment fixes.
28189         * lib/signal.in.h: Likewise.
28190
28191 2008-06-23  Eric Blake  <ebb9@byu.net>
28192
28193         Fix typo.
28194         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28195
28196         Avoid SA_ namespace.
28197         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28198         Reported by Ralf Wildenhues.
28199
28200         Avoid test failure due to SA_RESTORER.
28201         * tests/test-sigaction.c (SA_MASK): New macro.
28202         (main): Avoid failing due to extension flags being set.
28203         Reported by Jim Meyering.
28204
28205         Revert use of sig-handler.h in sigprocmask.c.
28206         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28207         it requires the existence of struct sigaction.
28208         * lib/sigprocmask.c (handler_t): Restore typedef.
28209         (rpl_signal, old_handlers): Use local type.
28210
28211 2008-06-22  Bruno Haible  <bruno@clisp.org>
28212
28213         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28214         conditionally.
28215         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28216
28217 2008-06-22  Bruno Haible  <bruno@clisp.org>
28218
28219         * doc/posix-functions/siginterrupt.texi: Move note.
28220
28221         * lib/signal.in.h (SA_RESTART): New macro.
28222         * lib/sigaction.c: Update comment.
28223
28224         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28225
28226         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28227         (gl_PREREQ_SIGPROCMASK): Invoke it.
28228         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28229
28230         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28231
28232         * lib/sigprocmask.c: Update a comment.
28233
28234 2008-06-21  Eric Blake  <ebb9@byu.net>
28235
28236         Use sigaction module rather than signal().
28237         * modules/c-stack (Depends-on): Add sigaction.
28238         * modules/fatal-signal (Depends-on): Likewise.
28239         * modules/nanosleep (Depends-on): Likewise.
28240         * modules/sigprocmask (Files): Add sig-handler.h.
28241         * modules/sigaction (Files): Likewise.
28242         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28243         Eggert.
28244         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28245         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28246         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28247         (init_fatal_signals): Likewise.
28248         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28249         (siginterrupt): Delete fallback.
28250         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28251         instead.
28252         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28253         siginterrupt.
28254
28255         New module sigaction, for mingw.
28256         * modules/sigaction: New module...
28257         * modules/sigaction-tests: ...and its test.
28258         * m4/sigaction.m4: New file.
28259         * lib/sigaction.c: Likewise.
28260         * tests/test-sigaction.c: Likewise.
28261         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28262         * modules/signal (Makefile.am): Likewise.
28263         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28264         needed.
28265         * doc/posix-headers/signal.texi (signal.h): Mention provided
28266         types.
28267         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28268         that sigaction is preferable.
28269         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28270         module.
28271         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28272         sigaction.
28273
28274         Improve robustness of sigprocmask by overriding signal.
28275         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28276         is in use.
28277         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28278         (SIGKILL, SIGSTOP): Provide fallbacks.
28279         (rpl_signal): Implement.
28280         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28281         signal can be called inside handlers.
28282
28283         Fix nanosleep module on mingw.
28284         * modules/nanosleep (Depends-on): Add sys_select.
28285         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28286
28287         Fix licensing of sigprocmask.
28288         * modules/raise (License): Relicense as LGPL.
28289
28290 2008-06-21  Bruno Haible  <bruno@clisp.org>
28291
28292         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28293         result if it contains question marks.
28294         Reported by Michael Geng <linux@michaelgeng.de>.
28295
28296 2008-06-19  Bruno Haible  <bruno@clisp.org>
28297
28298         Fix CVS-ism.
28299         * doc/gnulib.texi: Include updated-stamp.texi.
28300         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28301         (updated-stamp.texi): New rule.
28302         (gnulib.info): Depend on it.
28303         * doc/.gitignore: Add updated-stamp.texi.
28304         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28305
28306 2008-06-19  Bruno Haible  <bruno@clisp.org>
28307
28308         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28309         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28310
28311 2008-06-19  Eric Blake  <ebb9@byu.net>
28312
28313         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28314         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28315         Reported by Stepan Kasal.
28316
28317 2008-06-18  Bruno Haible  <bruno@clisp.org>
28318
28319         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28320         Reported by Eric Blake.
28321
28322 2008-06-18  Eric Blake  <ebb9@byu.net>
28323
28324         Work around cygwin 1.5.25 strsignal bug.
28325         * tests/test-strsignal.c: Allow for const char *.
28326         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28327
28328 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28329
28330         * users.txt: Update URL to article and add author/date
28331         information.
28332
28333 2008-06-17  Bruno Haible  <bruno@clisp.org>
28334
28335         New macro gl_DISABLE_THREADS.
28336         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28337         if the user did not pass --enable-threads or --disable-threads option.
28338         (gl_DISABLE_THREADS): New macro.
28339         Reported by Eric Blake <ebb9@byu.net>.
28340
28341 2008-06-17  Bruno Haible  <bruno@clisp.org>
28342
28343         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28344         when the macro ignores it.
28345         Based on a patch by Eric Blake <ebb9@byu.net>.
28346
28347 2008-06-17  Bruno Haible  <bruno@clisp.org>
28348
28349         * modules/tls (License): Change to LGPLv2+.
28350         Reported by Eric Blake.
28351
28352 2008-06-17  Eric Blake  <ebb9@byu.net>
28353
28354         Simplify c-stack prerequisites.
28355         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28356         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28357         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28358         check.
28359         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28360         <sys/resource.h>.
28361
28362         Move c-stack test into testsuite.
28363         * modules/c-stack-tests: New file.
28364         * lib/c-stack.c [DEBUG]: Move test program...
28365         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28366         fail test if sigaltstack is lacking.
28367         * tests/test-c-stack.sh: New driver file.
28368
28369 2008-06-16  Eric Blake  <ebb9@byu.net>
28370
28371         Use raise module consistently.
28372         * modules/fatal-signal (Depends-on): Add raise.
28373         * modules/sigprocmask (Depends-on): Likewise.
28374         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28375         * lib/sigprocmask.c (sigprocmask): Likewise.
28376         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28377         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28378
28379         Fix compliance bug in sigpending.
28380         * lib/sigprocmask.c (sigpending): Return pending array via
28381         parameter, not return value.
28382
28383 2008-06-14  Eric Blake  <ebb9@byu.net>
28384
28385         Improve obstack-printf test code.
28386         * tests/test-obstack-printf.c (test_function): Fix comment, and
28387         simplify usage of obstack_* in macros.  Add a test for coverage.
28388         Reported by Bruno Haible.
28389
28390 2008-06-14  Bruno Haible  <bruno@clisp.org>
28391
28392         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28393         array size as a constant, not as a const variable.
28394         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28395         AC_USE_SYSTEM_EXTENSIONS.
28396         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28397         Test whether the obstack_printf function actually exists.
28398         * modules/obstack-printf (Depends-on): Add extensions.
28399         (Include): Remove obstack.h.
28400         * modules/obstack-printf-posix (Depends-on): Add extensions.
28401         (Include): Remove obstack.h.
28402
28403 2008-06-13  Eric Blake  <ebb9@byu.net>
28404
28405         Add obstack-printf and obstack-printf-posix modules.
28406         * modules/obstack-printf: New file.
28407         * modules/obstack-printf-posix: Likewise.
28408         * MODULES.html.sh (Misc): Mention them.
28409         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28410         Likewise.
28411         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28412         Likewise.
28413         * modules/stdio (Makefile.am): Accomodate new modules.
28414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28415         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28416         Declare.
28417         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28418         functions.
28419         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28420         (gl_REPLACE_OBSTACK_PRINTF): New macros
28421         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28422         * tests/test-obstack-printf.c: New file.
28423         * modules/obstack-printf-tests: Likewise.
28424         * modules/obstack-printf-posix-tests: Likewise.
28425
28426 2008-06-11  Bruno Haible  <bruno@clisp.org>
28427
28428         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28429         * lib/open.c: Include errno.h.
28430         (open): Fail when attempting to write to a file that has a trailing
28431         slash.
28432         * tests/test-open.c (main): Test against trailing slash bug.
28433         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28434
28435 2008-06-10  Bruno Haible  <bruno@clisp.org>
28436
28437         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28438         for $? to work inside the trap command, with various /bin/sh-s.
28439         * tests/test-vc-list-files-cvs.sh: Likewise.
28440
28441 2008-06-10  Bruno Haible  <bruno@clisp.org>
28442
28443         * lib/acl-internal.h: Don't include gettext.h here.
28444         * lib/set-mode-acl.c: Include gettext.h here.
28445         * lib/copy-acl.c: Likewise.
28446
28447 2008-06-10  Bruno Haible  <bruno@clisp.org>
28448
28449         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28450         * lib/wait-process.c (wait_subprocess): Likewise.
28451         * lib/execute.h (execute): Add termsigp argument.
28452         * lib/execute.c (execute): Likewise.
28453         * lib/csharpcomp.c (compile_csharp_using_pnet,
28454         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28455         * lib/csharpexec.c (execute_csharp_using_pnet,
28456         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28457         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28458         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28459         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28460         is_jikes_present): Update.
28461         * lib/javaexec.c (execute_java_class): Update.
28462         * lib/javaversion.c (execute_and_read_line): Update.
28463         * NEWS: Document the changes.
28464         Reported by Eric Blake.
28465
28466 2008-06-10  Eric Blake  <ebb9@byu.net>
28467
28468         Add missing include.
28469         * tests/test-strstr.c (includes): Add <signal.h>.
28470         * tests/test-strcasestr.c (includes): Likewise.
28471         * tests/test-memmem.c (includes): Likewise.
28472
28473 2008-06-10  Bruno Haible  <bruno@clisp.org>
28474
28475         * lib/wait-process.c (wait_subprocess): Add an assertion.
28476
28477 2008-06-10  Bruno Haible  <bruno@clisp.org>
28478
28479         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28480
28481 2008-06-10  Bruno Haible  <bruno@clisp.org>
28482
28483         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28484         using alarm().
28485         * tests/test-strcasestr.c (main): Likewise.
28486         * tests/test-strstr.c (main): Likewise.
28487
28488 2008-06-09  Bruno Haible  <bruno@clisp.org>
28489
28490         Work around the Solaris 10 ACE ACLs ABI change.
28491         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28492         declare if ACL_NO_TRIVIAL is present.
28493         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28494         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28495         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28496         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28497         define if ACL_NO_TRIVIAL is present.
28498         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28499         and use the current ABI.
28500         (file_has_acl): Use same #if condition as elsewhere.
28501         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28502         in use, and use the current ABI.
28503         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28504         Reported by Jim Meyering.
28505
28506 2008-06-09  Eric Blake  <ebb9@byu.net>
28507
28508         Work around environments that (stupidly) ignore SIGALRM.
28509         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28510         before using alarm().
28511         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28512         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28513         Reported by Ian Beckwith <ianb@erislabs.net>.
28514
28515         Produce autobuild blurb earlier in log.
28516         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28517
28518 2008-06-09  Jim Meyering  <meyering@redhat.com>
28519         and Ondřej Vašík  <ovasik@redhat.com>
28520
28521         utimens.c: correct kernel bug work-around
28522         Ondřej Vašík found that the invalid return value of 280 indicates
28523         failure, not success, and the kernel bug we're trying to work
28524         around affects not just the utimensat call, but also the fallback
28525         futimens call.
28526         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28527         not success.
28528         [HAVE_FUTIMENS]: Use the same work-around, here.
28529
28530 2008-06-09  Jim Meyering  <meyering@redhat.com>
28531
28532         add more guards around definition of ACE_-related code
28533         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28534         ALLOW and ACE_OWNER are also defined.
28535
28536 2008-06-08  Bruno Haible  <bruno@clisp.org>
28537
28538         * lib/acl-internal.h: Add me as co-author.
28539         * lib/file-has-acl.c: Likewise.
28540         * lib/set-mode-acl.c: Likewise.
28541         * lib/copy-acl.c: Likewise.
28542
28543 2008-06-08  Bruno Haible  <bruno@clisp.org>
28544
28545         Add support for AIX ACLs.
28546         * lib/acl-internal.h (acl_nontrivial): New declaration.
28547         * lib/file-has-acl.c (acl_nontrivial): New function.
28548         (file_has_acl): Add implementation using AIX 4 ACL API.
28549         * lib/set-mode-acl.c (qset_acl): Likewise.
28550         * lib/copy-acl.c (qcopy_acl): Likewise.
28551
28552 2008-06-08  Bruno Haible  <bruno@clisp.org>
28553
28554         Add support for HP-UX ACLs.
28555         * lib/acl-internal.h (acl_nontrivial): New declaration.
28556         * lib/file-has-acl.c (acl_nontrivial): New function.
28557         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28558         * lib/set-mode-acl.c (qset_acl): Likewise.
28559         * lib/copy-acl.c (qcopy_acl): Likewise.
28560
28561 2008-06-08  Bruno Haible  <bruno@clisp.org>
28562
28563         Add support for Cygwin ACLs.
28564         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28565         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28566         the chmod_or_fchmod call.
28567         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28568
28569 2008-06-08  Bruno Haible  <bruno@clisp.org>
28570
28571         Fix bug with setuid modes in Solaris 10+ code.
28572         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28573         succeeded, when the mode contains some special bits.
28574
28575 2008-06-08  Bruno Haible  <bruno@clisp.org>
28576
28577         Add support for Solaris 7..10 ACLs.
28578         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28579         declarations.
28580         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28581         functions.
28582         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28583         * lib/set-mode-acl.c (qset_acl): Likewise.
28584         * lib/copy-acl.c (qcopy_acl): Likewise.
28585
28586 2008-06-08  Bruno Haible  <bruno@clisp.org>
28587
28588         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28589         declaration.
28590         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28591         (acl_access_nontrivial): Remove MacOS X case.
28592         (file_has_acl): Use acl_extended_nontrivial.
28593         * lib/copy-acl.c (qcopy_acl): Likewise.
28594
28595 2008-06-08  Bruno Haible  <bruno@clisp.org>
28596
28597         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28598
28599 2008-06-08  Jim Meyering  <meyering@redhat.com>
28600
28601         * modules/acl (Maintainer): Add Bruno Haible.
28602
28603 2008-06-07  Bruno Haible  <bruno@clisp.org>
28604
28605         Improve support for Tru64 ACLs.
28606         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28607         ACL on OSF/1.
28608
28609 2008-06-07  Bruno Haible  <bruno@clisp.org>
28610
28611         Add support for MacOS X ACLs.
28612         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28613         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28614         * lib/set-mode-acl.c (qset_acl): Likewise.
28615         * lib/copy-acl.c (qcopy_acl): Likewise.
28616
28617 2008-06-07  Bruno Haible  <bruno@clisp.org>
28618
28619         Fix memory leak introduced on 2008-05-22.
28620         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28621         use.
28622
28623 2008-06-07  Bruno Haible  <bruno@clisp.org>
28624
28625         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
28626         to construct an empty ACL.
28627
28628 2008-06-07  Bruno Haible  <bruno@clisp.org>
28629
28630         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
28631         precisely.
28632         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
28633
28634 2008-06-07  Bruno Haible  <bruno@clisp.org>
28635
28636         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
28637         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
28638
28639 2008-06-07  Bruno Haible  <bruno@clisp.org>
28640
28641         * doc/posix-functions/_setjmp.texi: Explain the use of this function
28642         regardless of POSIX.
28643         * doc/posix-functions/_longjmp.texi: Likewise.
28644         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
28645         SystemV platform in this case.
28646
28647 2008-06-06  Eric Blake  <ebb9@byu.net>
28648
28649         Document abort() bugs.
28650         * doc/posix-functions/abort.texi (abort): Mention anomalies.
28651
28652         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
28653         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
28654         sigsetjmp.
28655         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
28656         siglongjmp, but only as a macro.
28657         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
28658         is obsolete.
28659         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
28660
28661         Tweak documentation to cover cygwin argz bugs.
28662         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
28663         argz bug fix; no code change needed since no cygwin releases
28664         occurred between the last fix and the bug being tested.
28665         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
28666         module and recently fixed cygwin bugs.
28667         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
28668         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
28669         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
28670         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
28671         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
28672         Likewise.
28673         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
28674         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
28675         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
28676         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
28677         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
28678         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
28679         Likewise.
28680
28681         Avoid gcc warning on cygwin.
28682         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
28683         !ACL_NO_TRIVIAL]: Avoid unused variable.
28684
28685 2008-06-05  Eric Blake  <ebb9@byu.net>
28686
28687         Be tolerant of UNKNOWN version in gnulib-tool test dir.
28688         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
28689         git-version-gen fails to come up with a version.
28690         Reported by Simon Josefsson.
28691
28692 2008-06-05  Jim Meyering  <meyering@redhat.com>
28693             Paul Eggert  <eggert@cs.ucla.edu>
28694
28695         utimens.c: work around a probable Linux kernel bug
28696         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
28697         appears to be a kernel bug that causes utimensat to return 280
28698         instead of 0, indicating success.
28699
28700 2008-06-04  Bruno Haible  <bruno@clisp.org>
28701
28702         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
28703         2008-06-01 commit.
28704
28705 2008-06-04  Bruno Haible  <bruno@clisp.org>
28706
28707         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
28708         * lib/file-has-acl.c (acl_access_nontrivial): New function.
28709         (file_has_acl): Use it. Save errno afterwards.
28710         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
28711
28712 2008-06-03  Bruno Haible  <bruno@clisp.org>
28713
28714         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
28715         draft code. Simplify #ifs.
28716         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
28717         Put Solaris code after POSIX-draft code. Fix comments regarding
28718         Solaris 10, HP-UX. Mention Cygwin.
28719         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
28720
28721 2008-06-03  Eric Blake  <ebb9@byu.net>
28722
28723         Provide fallback for older kernels.
28724         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
28725         Provide runtime fallback if kernel lacks support.
28726         Reported by Mike Frysinger.
28727
28728 2008-06-02  Bruno Haible  <bruno@clisp.org>
28729
28730         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
28731         it exists.
28732
28733 2008-06-02  Bruno Haible  <bruno@clisp.org>
28734
28735         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
28736         * lib/copy-acl.c (qcopy_acl): Update comment.
28737
28738 2008-06-02  Bruno Haible  <bruno@clisp.org>
28739
28740         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
28741         like ACL APIs.
28742
28743 2008-06-02  Bruno Haible  <bruno@clisp.org>
28744
28745         * tests/test-file-has-acl.sh: Use different code for Cygwin.
28746         * tests/test-set-mode-acl.sh: Likewise.
28747         * tests/test-copy-acl.sh: Likewise.
28748         * tests/test-copy-file.sh: Likewise.
28749
28750 2008-06-02  Bruno Haible  <bruno@clisp.org>
28751
28752         * tests/test-file-has-acl.sh: Remove unused code.
28753
28754 2008-06-01  Bruno Haible  <bruno@clisp.org>
28755
28756         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
28757         (copy_acl): Just a wrapper around qcopy_acl that emits the error
28758         messages.
28759         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
28760
28761 2008-06-01  Bruno Haible  <bruno@clisp.org>
28762
28763         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
28764         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
28765         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
28766         APIs.
28767         * modules/acl-tests (configure.ac): Remove tests now contained in
28768         m4/acl.m4.
28769
28770 2008-06-02  Jim Meyering  <meyering@redhat.com>
28771
28772         announce-gen: use a better key-server host name
28773         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
28774         it may be more consistently reliable.  Suggested by Werner Koch
28775         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
28776
28777 2008-06-01  Bruno Haible  <bruno@clisp.org>
28778
28779         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
28780         Reported by Voroskoi Andras <voroskoi@gmail.com>.
28781
28782 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
28783
28784         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
28785
28786 2008-06-01  Bruno Haible  <bruno@clisp.org>
28787
28788         New ACL tests.
28789         * tests/test-file-has-acl.sh: New file.
28790         * tests/test-file-has-acl.c: New file.
28791         * tests/test-set-mode-acl.sh: New file.
28792         * tests/test-set-mode-acl.c: New file.
28793         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
28794         * tests/test-copy-acl.c: New file.
28795         * modules/acl-tests: New file, based on modules/copy-file-tests.
28796         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
28797         (Depends-on): Add acl-tests.
28798         (configure.ac): Remove checks.
28799         (Makefile.am): Don't create test-sameacls program here any more.
28800
28801 2008-06-01  Bruno Haible  <bruno@clisp.org>
28802
28803         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
28804         * tests/test-sameacls.c: Include progname.h.
28805         (main): Invoke set_program_name. Portability fixes for MacOS X,
28806         Solaris, HP-UX.
28807
28808 2008-06-01  Bruno Haible  <bruno@clisp.org>
28809
28810         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
28811         function.
28812         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
28813
28814 2008-06-01  Bruno Haible  <bruno@clisp.org>
28815
28816         * modules/rpmatch (Depends-on): Add strdup.
28817
28818 2008-06-01  Bruno Haible  <bruno@clisp.org>
28819
28820         * lib/pipe.c: Include unistd-safer.h.
28821         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
28822         * modules/pipe (Depends-on): Add unistd-safer.
28823
28824 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28825
28826         * modules/autobuild (configure.ac): Call AB_INIT.
28827
28828 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28829
28830         * tests/test-getaddrinfo.c: Don't print debug messages by default.
28831         Suggested by Bruno Haible <bruno@clisp.org>.
28832
28833 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28834
28835         * tests/test-base64.c: Cast size_t to unsigned long when invoking
28836         printf.  Use %lu instead of %d.  Reported by Bruno Haible
28837         <bruno@clisp.org>.
28838
28839 2008-05-29  Eric Blake  <ebb9@byu.net>
28840
28841         Prefer new POSIX 200x interfaces over futimesat.
28842         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
28843         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
28844         when available.
28845         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
28846
28847 2008-05-28  Bruno Haible  <bruno@clisp.org>
28848
28849         * modules/stpcpy (License): Change to LGPLv2+.
28850         Requested by David Lutterkort <dlutter@redhat.com>.
28851
28852 2008-05-27  Bruno Haible  <bruno@clisp.org>
28853
28854         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
28855         current mingw.
28856         Reported by Jose E. Marchesi <jemarch@gnu.org>.
28857
28858 2008-05-27  Bruno Haible  <bruno@clisp.org>
28859
28860         * modules/iconv_open (Link): New section, from module 'iconv'.
28861         * modules/striconv (Link): Likewise.
28862         * modules/striconveh (Link): Likewise.
28863         * modules/xstriconv (Link): Likewise.
28864         * modules/unicodeio (Link): Likewise.
28865         * modules/propername (Link): Likewise.
28866         Reported by Jim Meyering.
28867
28868 2008-05-26  Jim Meyering  <meyering@redhat.com>
28869
28870         sha256: do not artificially restrict buffer length to be < 2^32
28871         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
28872         uint32_t to size_t.
28873         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
28874         to match.
28875
28876         avoid unaligned access errors, e.g., on sparc
28877         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
28878         direct access through a possibly-unaligned uint64* pointer.
28879         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
28880         direct access through a possibly-unaligned uint32* pointer.
28881         Prompted by this patch from Tom "spot" Callaway:
28882         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
28883
28884         sha512.c: fix typo in comment
28885         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
28886
28887 2008-05-25  Bruno Haible  <bruno@clisp.org>
28888
28889         * lib/set-mode-acl.c: Renamed from lib/acl.c.
28890         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
28891         (Makefile.am): Update lib_SOURCES.
28892
28893 2008-05-25  Bruno Haible  <bruno@clisp.org>
28894
28895         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
28896
28897 2008-05-25  Jim Meyering  <meyering@redhat.com>
28898
28899         useless-if-before-free: freed expr may have white-space differences
28900         * build-aux/useless-if-before-free: Recognize cases in which the
28901         freed expression differs from the tested one in embedded white
28902         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
28903         $1 was used, so we can't make any regexp shy.  Improved tests now
28904         detect this.
28905
28906         useless-if-before-free: accept white space in the expression.
28907         * build-aux/useless-if-before-free: For now, any white space
28908         in the expression must be identical in the free argument.
28909
28910         useless-if-before-free: efficiency tweak
28911         * build-aux/useless-if-before-free: Make the expression-matching
28912         regexp "shy".
28913         Make the *outer* regexp shy, not the expr-matching one.
28914
28915         update code-in-comment to accept cast of free arg
28916         * build-aux/useless-if-before-free: Update regexp.
28917
28918 2008-05-25  Bruno Haible  <bruno@clisp.org>
28919
28920         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
28921         * modules/copy-file-tests (Files, Makefile.am): Update.
28922         * tests/test-copy-file.c (func_test_copy): Update.
28923
28924 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
28925
28926         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
28927
28928 2008-05-23  Bruno Haible  <bruno@clisp.org>
28929
28930         Improve support for ACLs on OSF/1.
28931         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
28932         Remove fallback for unknown flavors of ACLs.
28933
28934 2008-05-22  Bruno Haible  <bruno@clisp.org>
28935
28936         Add support for ACLs on OSF/1.
28937         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
28938         replacements.
28939         (acl_free_text): New macro fallback.
28940         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
28941         acl_free.
28942         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
28943         acl_free_text function. Require AC_C_INLINE.
28944
28945 2008-05-22  Bruno Haible  <bruno@clisp.org>
28946
28947         Make copy_acl work on MacOS X 10.5.
28948         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
28949         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
28950         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
28951         If MODE_INSIDE_ACL, don't assume that every system has the same text
28952         representation for ACLs as FreeBSD.
28953         * lib/copy-acl.c (copy_acl): Add support for platforms with
28954         !MODE_INSIDE_ACL.
28955         * lib/file-has-acl.c (file_has_acl): Likewise.
28956         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
28957         FreeBSD, MacOS X, or IRIX, respectively.
28958
28959 2008-05-22  Bruno Haible  <bruno@clisp.org>
28960
28961         * lib/acl.h: Don't include <sys/acl.h>.
28962         (GETACLCNT): Move fallback to lib/acl-internal.h.
28963         * lib/acl-internal.h: Include <sys/acl.h> here.
28964         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
28965
28966 2008-05-22  Bruno Haible  <bruno@clisp.org>
28967
28968         Split off copy_acl function to separate file.
28969         * lib/copy-acl.c: New file, extracted from lib/acl.c.
28970         * lib/acl.c (copy_acl): Moved function to separate file.
28971         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
28972         * modules/acl (Files): Add lib/copy-acl.c.
28973         (Makefiles.am): Augment lib_SOURCES.
28974
28975 2008-05-22  Bruno Haible  <bruno@clisp.org>
28976
28977         * modules/copy-file-tests: New file.
28978         * tests/test-copy-file.sh: New file.
28979         * tests/test-copy-file.c: New file.
28980         * tests/test-copy-file-sameacls.c: New file.
28981
28982 2008-05-22  Eric Blake  <ebb9@byu.net>
28983
28984         Avoid gcc warning.
28985         * tests/test-memcmp.c (main): Pass NULL indirectly.
28986
28987 2008-05-21  Bruno Haible  <bruno@clisp.org>
28988
28989         Add reference doc about ACLs.
28990         * doc/acl-resources.txt: New file.
28991         * doc/acl-cygwin.txt: New file.
28992
28993 2008-05-21  Bruno Haible  <bruno@clisp.org>
28994
28995         Avoid one more warning from gcc.
28996         * lib/vasnprintf.c (IF_LINT): Update comments.
28997         (VASNPRINTF): Use it also for the 'prefix' array initializer.
28998
28999 2008-05-21  Jim Meyering  <meyering@redhat.com>
29000
29001         avoid a warning from gcc
29002         * lib/vasnprintf.c (IF_LINT): Define.
29003         (scale10_round_decimal_long_double):
29004         Use it to avoid a "may be used uninitialized" warning.
29005         (scale10_round_decimal_double): Likewise.
29006
29007 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29008
29009         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29010         declared.
29011
29012 2008-05-20  Bruno Haible  <bruno@clisp.org>
29013
29014         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29015         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29016
29017 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29018
29019         * modules/memcmp-tests: New file.
29020         * tests/test-memcmp.c: New file.
29021
29022 2008-05-19  Bruno Haible  <bruno@clisp.org>
29023
29024         * modules/propername (Notice, configure.ac): Put quoted "..." into
29025         --keyword option.
29026         * lib/propername.h: Update comments accordingly.
29027         Reported by Eric Blake.
29028
29029 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29030
29031         * modules/getpass-gnu (Depends-on): Add fseeko.
29032
29033 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29034
29035         * modules/base64-tests: New file.
29036
29037 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29038
29039         * lib/base64.c (base64_decode_ctx): If a decode context structure
29040         was passed in use it to ignore newlines.  If a context structure
29041         was _not_ passed in, continue to treat newlines as garbage (this
29042         is the historical behavior).  Formerly base64_decode.
29043         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29044         takes a decode context structure.
29045         * lib/base64.h (base64_decode): Macro for four-argument calls.
29046         (base64_decode_alloc): Likewise.
29047         * lib/base64.c (base64_decode_ctx): If a decode context structure
29048         was passed in use it to ignore newlines.  If a context structure
29049         was _not_ passed in, continue to treat newlines as garbage (this
29050         is the historical behavior).  Formerly base64_decode.
29051         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29052         takes a decode context structure.
29053         * lib/base64.h (base64_decode): Macro for four-argument calls.
29054         (base64_decode_alloc): Likewise.
29055
29056 2008-05-19  Jim Meyering  <meyering@redhat.com>
29057
29058         avoid a warning from gcc
29059         * lib/trim.c (IF_LINT): Define.
29060         (trim2): Use it to avoid a "may be used uninitialized" warning.
29061
29062         Fix doc typo.
29063         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29064
29065 2008-05-19  Bruno Haible  <bruno@clisp.org>
29066
29067         * doc/glibc-functions/getpass.texi: Document limits of other
29068         implementations.
29069
29070 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29071             Bruno Haible <bruno@clisp.org>
29072
29073         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29074
29075 2008-05-18  Bruno Haible  <bruno@clisp.org>
29076
29077         * modules/propername: New file, from GNU gettext.
29078         * lib/propername.h: New file, from GNU gettext.
29079         * lib/propername.c: New file, from GNU gettext.
29080         * MODULES.html.sh (Internationalization functions): Add propername.
29081
29082 2008-05-16  Jim Meyering  <meyering@redhat.com>
29083             Bruno Haible  <bruno@clisp.org>
29084
29085         Avoid some warnings from "gcc -Wshadow".
29086         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29087
29088 2008-05-15  Eric Blake  <ebb9@byu.net>
29089
29090         Extend previous patch to cygwin 1.7.0.
29091         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29092         fast implementation in cygwin >= 1.7.0.
29093         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29094         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29095
29096 2008-05-15  Bruno Haible  <bruno@clisp.org>
29097
29098         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29099         implementation in glibc >= 2.9.
29100         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29102
29103 2008-05-15  Bruno Haible  <bruno@clisp.org>
29104
29105         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29106         (Unicode string functions): Add unilbrk/*.
29107         Reported by Karl Berry.
29108
29109 2008-05-15  Eric Blake  <ebb9@byu.net>
29110
29111         Fix violation of <stdbool.h> replacement in regex.
29112         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29113         * lib/regexec.c (re_search_internal): Likewise.
29114         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29115
29116 2008-05-15  Jim Meyering  <meyering@redhat.com>
29117
29118         avoid distracting test output when git or cvs is not found
29119         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29120         * tests/test-vc-list-files-git.sh: Likewise.
29121
29122 2008-05-15  Eric Blake  <ebb9@byu.net>
29123
29124         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29125         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29126         glibc version.
29127         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29128         * doc/posix-functions/strstr.texi (strstr): Likewise.
29129         * lib/str-two-way.h (MAX): Sychronize with glibc.
29130
29131 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29132
29133         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29134         opr.ctx_type.
29135         (calc_first): Initialize constraint field.
29136         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29137         Fix grammar.
29138         (duplicate_node): Merge constraint field for all node types.
29139         (calc_eclosure_iter): Look at constraint field for all node types.
29140         * lib/regex_internal.c (create_cd_newstate): Don't look at
29141         opr.ctx_type.
29142
29143 2008-05-14  Bruno Haible  <bruno@clisp.org>
29144
29145         Help GCC to do better code generation.
29146         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29147         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29148         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29149         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29150         Declare with attribute 'malloc' if supported.
29151
29152 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29153
29154         use "echo STR|wc -c" rather than unportable "expr length STR"
29155         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29156         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29157
29158 2008-05-14  Jim Meyering  <meyering@redhat.com>
29159
29160         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29161         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29162         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29163         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29164         via Collin Lasse.
29165
29166 2008-05-14  Eric Blake  <ebb9@byu.net>
29167
29168         Avoid quadratic growth in gl_LIBSOURCES.
29169         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29170         Suggested by Bruno Haible.
29171
29172         Test xmemdup0.
29173         * modules/xmemdup0-tests: New file.
29174         * tests/test-xmemdup0.c: Likewise.
29175
29176 2008-05-13  Eric Blake  <ebb9@byu.net>
29177
29178         Split xmemdup0 into its own module.
29179         * modules/xmemdup0: New file.
29180         * lib/xmemdup0.h: Likewise.
29181         * lib/xmemdup0.c: Likewise.
29182         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29183         * lib/xalloc.h (xmemdup0): Remove.
29184         * lib/xmalloc.c (xmemdup0): Likewise.
29185
29186 2008-05-13  Eric Blake  <ebb9@byu.net>
29187             Bruno Haible  <bruno@clisp.org>
29188
29189         Reduce number of forks required during autoconf.
29190         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29191         and gl_LIBSOURCES_DIR.
29192         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29193         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29194         m4_syscmd per file.
29195         <m4_foreach_w>: Move...
29196         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29197
29198 2008-05-13  Eric Blake  <ebb9@byu.net>
29199
29200         * gnulib-tool: Fix various comment typos.
29201
29202 2008-05-12  Bruno Haible  <bruno@clisp.org>
29203
29204         Tailor the linebreaking algorithm.
29205         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29206
29207 2008-05-12  Bruno Haible  <bruno@clisp.org>
29208
29209         Update to Unicode 5.0.0.
29210         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29211         LBP_JV, LBP_JT. Redistribute values.
29212         (unilbrk_table): Change size.
29213         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29214         Unicode TR#14 rev. 22.
29215         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29216         LBP_JV, LBP_JT. Redistribute values.
29217         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29218         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29219         Update.
29220         * lib/unilbrk/lbrkprop1.h: Regenerated.
29221         * lib/unilbrk/lbrkprop2.h: Regenerated.
29222         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29223         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29224         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29225         Likewise.
29226         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29227         Likewise.
29228         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29229         result.
29230         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29231         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29232         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29233         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29234         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29235         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29236
29237 2008-05-11  Bruno Haible  <bruno@clisp.org>
29238
29239         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29240
29241 2008-05-11  Bruno Haible  <bruno@clisp.org>
29242
29243         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29244         * modules/unilbrk/gen-lbrk: New file.
29245
29246 2008-05-11  Bruno Haible  <bruno@clisp.org>
29247
29248         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29249         * m4/sha512.m4 (gl_SHA512): Likewise.
29250
29251 2008-05-11  Jim Meyering  <meyering@redhat.com>
29252
29253         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29254         * modules/crypto/sha256: New file.
29255         * modules/crypto/sha512: Likewise.
29256         * lib/sha256.c: Likewise.
29257         * lib/sha256.h: Likewise.
29258         * lib/sha512.c: Likewise.
29259         * lib/sha512.h: Likewise.
29260         * lib/u64.h: Likewise.
29261         * m4/sha256.m4: Likewise.
29262         * m4/sha512.m4: Likewise.
29263         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29264
29265 2008-05-10  Bruno Haible  <bruno@clisp.org>
29266
29267         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29268         (Input/Output <stdio.h>): Add xprintf.
29269         (Signal handling <signal.h>): Add strsignal.
29270         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29271         (Core language properties): Add func.
29272         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29273         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29274         strings.
29275         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29276         (Input/output): New section.
29277         (File system functions): Add openat-die, stat-macros.
29278         (Networking functions): Add sockets.
29279         (Unicode string functions): Add unictype/*.
29280         (Support for building libraries and executables): Add gperf.
29281         (Support for building documentation): Add agpl-3.0.
29282         (Misc): Add nocrash.
29283
29284 2008-05-10  Bruno Haible  <bruno@clisp.org>
29285
29286         * modules/unictype/gen-ctype: New file.
29287
29288 2008-05-10  Jim Meyering  <meyering@redhat.com>
29289
29290         Make chdir-safer.c more efficient on a system with no symlinks.
29291         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29292         also if ELOOP is zero.  Suggested by Bruno Haible.
29293
29294         Make chdir-safer.c slightly safer.
29295         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29296         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29297
29298         Avoid compile failure on systems without ELOOP (like mingw).
29299         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29300         Reported by Bruno Haible.
29301
29302 2008-05-10  Bruno Haible  <bruno@clisp.org>
29303
29304         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29305         (is_utf8_encoding): Use a case-insensitive comparison.
29306         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29307         streq.
29308
29309 2008-05-10  Bruno Haible  <bruno@clisp.org>
29310
29311         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29312         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29313         * lib/unilbrk/ulc-common.h (iconv_string_length,
29314         iconv_string_keeping_offsets): Remove declarations.
29315         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29316         Don't include <iconv.h>, streq.h, xsize.h.
29317         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29318         conversion.
29319         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29320         <iconv.h>, streq.h, xsize.h.
29321         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29322         conversion.
29323         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29324         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29325         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29326         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29327
29328 2008-05-10  Bruno Haible  <bruno@clisp.org>
29329
29330         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29331         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29332
29333         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29334         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29335
29336         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29337         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29338
29339         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29340         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29341
29342         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29343         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29344
29345         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29346         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29347
29348         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29349         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29350
29351         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29352         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29353
29354 2008-05-10  Bruno Haible  <bruno@clisp.org>
29355
29356         Split up 'linebreak' module.
29357         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29358         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29359         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29360         modifications.
29361         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29362         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29363         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29364         lib/linebreak.c.
29365         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29366         lib/linebreak.c.
29367         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29368         lib/linebreak.c.
29369         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29370         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29371         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29372         lib/linebreak.c.
29373         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29374         lib/linebreak.c.
29375         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29376         lib/linebreak.c.
29377         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29378         lib/linebreak.c.
29379         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29380         lib/linebreak.c.
29381         * modules/unilbrk/base: New file.
29382         * modules/unilbrk/tables: New file.
29383         * modules/unilbrk/u8-possible-linebreaks: New file.
29384         * modules/unilbrk/u16-possible-linebreaks: New file.
29385         * modules/unilbrk/u32-possible-linebreaks: New file.
29386         * modules/unilbrk/ulc-common: New file.
29387         * modules/unilbrk/ulc-possible-linebreaks: New file.
29388         * modules/unilbrk/u8-width-linebreaks: New file.
29389         * modules/unilbrk/u16-width-linebreaks: New file.
29390         * modules/unilbrk/u32-width-linebreaks: New file.
29391         * modules/unilbrk/ulc-width-linebreaks: New file.
29392         * lib/linebreak.h: Remove file.
29393         * lib/linebreak.c: Remove file.
29394         * m4/linebreak.m4: Remove file.
29395         * modules/linebreak: Remove file.
29396         * NEWS: Mention the changes.
29397
29398 2008-05-09  Eric Blake  <ebb9@byu.net>
29399
29400         Add xmemdup0.
29401         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29402         implementation.
29403         * lib/xmalloc.c (xmemdup0): New C implementation.
29404
29405 2008-05-08  Bruno Haible  <bruno@clisp.org>
29406
29407         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29408
29409 2008-05-07  Eric Blake  <ebb9@byu.net>
29410
29411         Support cross-compilation of <wctype.h>.
29412         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29413         AC_CACHE_CHECK.
29414
29415 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29416
29417         * build-aux/vc-list-files: Add support for bzr.
29418
29419 2008-05-03  Jim Meyering  <meyering@redhat.com>
29420
29421         avoid failed assertion with tight malloc
29422         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29423
29424 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29425
29426         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29427         are needed from arpa/inet.h.
29428         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29429         Reported by Bruno Haible.
29430
29431 2008-05-02  Jim Meyering  <meyering@redhat.com>
29432
29433         avoid compilation error on FreeBSD 6
29434         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29435
29436 2008-05-01  Jim Meyering  <meyering@redhat.com>
29437
29438         useless-if-before-free: correct --help's exit status description
29439         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29440         for one or more matches, etc.  Reported by Bruno Haible.
29441
29442         vc-list-files: make the stand-alone gnulib test work
29443         * modules/vc-list-files-tests (configure.ac):
29444         Define and AC_SUBST abs_aux_dir.
29445         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29446         $(abs_top_srcdir) to each script and having each of them
29447         duplicate the work of setting PATH, set PATH here, using
29448         the new variable, abs_aux_dir instead.
29449         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29450         * tests/test-vc-list-files-git.sh: Likewise.
29451         Reported by Bruno Haible.
29452
29453 2008-05-01  Bruno Haible  <bruno@clisp.org>
29454
29455         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29456         reallocation. Rename 'done' to 'found_delimiter'.
29457
29458 2008-05-01  Jim Meyering  <meyering@redhat.com>
29459
29460         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29461         * build-aux/vc-list-files: Use `...`, not $(...).
29462
29463 2008-04-30  Jim Meyering  <meyering@redhat.com>
29464
29465         add tests for vc-list-files
29466         * modules/vc-list-files-tests: New module.
29467         * tests/test-vc-list-files-cvs.sh: New file.
29468         * tests/test-vc-list-files-git.sh: New file.
29469
29470         avoid a warning from gcc
29471         * lib/getndelim2.c (IF_LINT): Define.
29472         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29473
29474         vc-list-files: work properly with build-aux/cvsu, too
29475         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29476         to all cvs-based clauses.
29477
29478         vc-list-files: work properly in the CVS+awk case, too
29479         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29480
29481         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29482         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29483         take more than one file argument, so .  Add quotes, just in case $dir
29484         ever contains a shell meta-character.  Prompted by Soren Hansen in
29485         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29486
29487 2008-04-29  Eric Blake  <ebb9@byu.net>
29488
29489         Optimize getndelim2 to use block operations when possible.
29490         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29491         freadseek, and memchr2.
29492         * lib/getndelim2.c (getndelim2): Use them for block reads.
29493
29494 2008-04-29  Bruno Haible  <bruno@clisp.org>
29495
29496         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29497         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29498         * modules/inet_ntop (Depends-on): Add extensions.
29499         * modules/inet_pton (Depends-on): Likewise.
29500         Reported by Simon Josefsson.
29501
29502 2008-04-29  Jim Meyering  <meyering@redhat.com>
29503
29504         When the is more than one match in a block, match all of them.
29505         * build-aux/useless-if-before-free: Iterate through each block
29506         until there are no more matches.
29507
29508         Fix broken useless-if-before-free script.
29509         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29510         the expression to match cast of argument to free-like function.
29511
29512 2008-04-29  Eric Blake  <ebb9@byu.net>
29513
29514         Use new header.
29515         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29516
29517 2008-04-29  Jim Meyering  <meyering@redhat.com>
29518
29519         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29520         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29521         by gnulib to exist and to declare e.g., inet_ntop.
29522         Don't include "inet_ntop.h", now removed.
29523
29524         * m4/arpa_inet_h.m4: Remove trailing blanks.
29525
29526 2008-04-29  Eric Blake  <ebb9@byu.net>
29527
29528         Silence valgrind on safe reads beyond potential array bounds.
29529         * lib/rawmemchr.valgrind: New file.
29530         * lib/strchrnul.valgrind: Likewise.
29531         * modules/rawmemchr (Files): Distribute new file.
29532         * modules/strchrnul (Files): Likewise.
29533         Suggested by Bruno Haible.
29534
29535 2008-04-29  Bruno Haible  <bruno@clisp.org>
29536
29537         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29538         (inet_ntop, inet_pton): Change portability warning's wording.
29539         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29540         Invoke gl_CHECK_NEXT_HEADERS.
29541         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29542         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29543         set ARPA_INET_H.
29544         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29545         * modules/arpa_inet (Description): No longer only for systems that
29546         lack it.
29547         (Depends-on): Add include_next.
29548         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29549         HAVE_ARPA_INET_H.
29550
29551 2008-04-29  Jim Meyering  <meyering@redhat.com>
29552
29553         * modules/mkdir (License): Re-license as LGPLv2+.
29554
29555 2008-04-29  Bruno Haible  <bruno@clisp.org>
29556
29557         * modules/rawmemchr (Maintainer): Set to Eric.
29558         * modules/strchrnul (Maintainer): Likewise.
29559
29560 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29561
29562         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29563         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29564
29565         * modules/arpa_inet (arpa/inet.h): Use them.
29566
29567 2008-04-28  Eric Blake  <ebb9@byu.net>
29568
29569         Test getndelim2.
29570         * modules/getndelim2-tests: New file.
29571         * tests/test-getndelim2.c: Likewise.
29572         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29573         stream.
29574         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29575
29576         * MODULES.html.sh: Document new module.
29577
29578 2008-04-20  Bruno Haible  <bruno@clisp.org>
29579
29580         * lib/c-stack.c (die): Use raise.
29581         * modules/c-stack (Depends-on): Add raise.
29582
29583 2008-04-28  Bruno Haible  <bruno@clisp.org>
29584
29585         Expect rpmatch to be declared.
29586         * lib/yesno.c (rpmatch): Remove declaration.
29587
29588         Declare rpmatch.
29589         * lib/stdlib.in.h (rpmatch): New declaration.
29590         * lib/rpmatch.c: Include <stdlib.h> first.
29591         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29592         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29594         HAVE_RPMATCH.
29595         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29596         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29597         (Include): Set to <stdlib.h>.
29598         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29599         HAVE_RPMATCH.
29600         * NEWS: Document the change.
29601
29602 2008-04-28  Bruno Haible  <bruno@clisp.org>
29603
29604         Change rpmatch to use nl_langinfo when appropriate.
29605         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29606         (N_): New macro.
29607         (localized_pattern): New function/macro.
29608         (try): Remove match, nomatch arguments. Copy the pattern into safe
29609         memory before caching it.
29610         (rpmatch): Use localized_pattern. Add translator comments.
29611         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29612         Suggested by Eric Blake.
29613         * modules/rpmatch (Depends-on): Add stdbool.
29614
29615 2008-04-28  Eric Blake  <ebb9@byu.net>
29616
29617         Add rawmemchr module, matching glibc.
29618         * modules/string (Makefile.am): New indicator.
29619         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29620         * lib/string.in.h (rawmemchr): Declare when appropriate.
29621         * modules/rawmemchr: New file.
29622         * m4/rawmemchr.m4: Likewise.
29623         * lib/rawmemchr.c: Likewise.
29624         * modules/rawmemchr-tests: Likewise.
29625         * tests/test-rawmemchr.c: Likewise.
29626         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
29627         module.
29628         * modules/strchrnul (Depends-on): Add rawmemchr.
29629         * lib/strchrnul.c (strchrnul): Optimize a corner case.
29630
29631         Whitespace cleanup.
29632         * tests/test-strchrnul.c: Reindent.
29633         * lib/strchrnul.c: Likewise.
29634
29635         Optimize and test strchrnul.
29636         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
29637         * modules/strchrnul-tests: New file.
29638         * tests/test-strchrnul.c: Likewise.
29639
29640         Remove intprops dependency.
29641         * modules/memchr (Depends-on): Remove intprops.
29642         * modules/memrchr (Depends-on): Likewise.
29643         * modules/memchr2 (Depends-on): Likewise.
29644         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
29645         * lib/memrchr.c (__memrchr): Likewise.
29646         * lib/memrchr2.c (memchr2): Likewise.
29647         Reported by Simon Josefsson.
29648
29649 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29650
29651         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
29652         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29653
29654 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29655
29656         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
29657
29658         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
29659
29660         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
29661
29662         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
29663         declarations.
29664         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
29665
29666         * m4/inet_pton.m4: Don't check for header files.
29667
29668         * m4/inet_ntop.m4: Don't check for header files.
29669
29670 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29671
29672         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
29673         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
29674         trigger for cygwin).
29675         Reported by Bruno Haible  <bruno@clisp.org>.
29676
29677 2008-04-28  Bruno Haible  <bruno@clisp.org>
29678
29679         * doc/posix-functions/strdup.texi: Mention mingw problem.
29680
29681 2008-04-27  Bruno Haible  <bruno@clisp.org>
29682
29683         * modules/stat-time-tests (Depends-on): Add sleep.
29684         * tests/test-stat-time.c (force_unlink): New function.
29685         (cleanup): Use it.
29686         (test_mtime): Remove the ctime related tests.
29687         (test_ctime): New function, containing the ctime related tests.
29688         (main): Call test_ctime, except on native Windows platforms.
29689
29690 2008-04-27  Bruno Haible  <bruno@clisp.org>
29691
29692         * lib/rpmatch.c (rpmatch): Add some comments.
29693         Reported by James Youngman <jay@gnu.org>.
29694
29695 2008-04-27  Bruno Haible  <bruno@clisp.org>
29696
29697         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
29698         quiet NaNs.
29699
29700 2008-04-27  Bruno Haible  <bruno@clisp.org>
29701
29702         Make test-yesno.sh work on mingw.
29703         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
29704         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
29705         (main): Set stdin to binary mode.
29706         * modules/yesno-tests (Depends-on): Add binary-io.
29707
29708 2008-04-27  Bruno Haible  <bruno@clisp.org>
29709
29710         Fix 'isfinite' on x86, x86_64, ia64 platforms.
29711         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
29712         argument that lie outside the IEEE 854 domain.
29713         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
29714         (gl_ISFINITE): Use it.
29715         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
29716
29717 2008-04-27  Bruno Haible  <bruno@clisp.org>
29718
29719         Allow local renaming in config.h.
29720         * lib/memrchr.c (memrchr): Don't undefine outside libc.
29721
29722 2008-04-27  Bruno Haible  <bruno@clisp.org>
29723
29724         * lib/memchr.c (__memchr): Change type of 'i'.
29725         * lib/memchr2.c (memchr2): Likewise.
29726
29727 2008-04-26  Eric Blake  <ebb9@byu.net>
29728         and Bruno Haible  <bruno@clisp.org>
29729
29730         Optimize and test memrchr.
29731         * modules/memrchr (Depends-on): Add intprops.
29732         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
29733         * modules/memrchr-tests: New file.
29734         * tests/test-memrchr.c: New file.
29735
29736 2008-04-26  Bruno Haible  <bruno@clisp.org>
29737
29738         Add tentative support for DragonFly BSD.
29739         * lib/stdio-impl.h: Add macros for DragonFly BSD.
29740         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
29741         fp.
29742         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
29743         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
29744         * lib/fpurge.c (fpurge): Likewise.
29745         * lib/freadable.c (freaadable): Likewise.
29746         * lib/freadahead.c (freadahead): Likewise.
29747         * lib/freading.c (freading): Likewise.
29748         * lib/freadptr.c (freadptr): Likewise.
29749         * lib/freadseek.c (freadptrinc): Likewise.
29750         * lib/fseeko.c (fseeko): Likewise.
29751         * lib/fseterr.c (fseterr): Likewise.
29752         * lib/fwritable.c (fwritable): Likewise.
29753         * lib/fwriting.c (fwriting): Likewise.
29754
29755 2008-04-26  Bruno Haible  <bruno@clisp.org>
29756
29757         * lib/stdio-impl.h: New file.
29758         * lib/fbufmode.c: Include stdio-impl.h.
29759         (fbufmode): Use fp_, remove redundant #defines.
29760         * lib/fflush.c: Include stdio-impl.h.
29761         (clear_ungetc_buffer): Remove redundant #defines.
29762         * lib/fpurge.c: Include stdio-impl.h.
29763         (fpurge): Remove redundant #defines.
29764         * lib/freadable.c: Include stdio-impl.h.
29765         (freadable): Remove redundant #defines.
29766         * lib/freadahead.c: Include stdio-impl.h.
29767         (freadahead): Remove redundant #defines.
29768         * lib/freading.c: Include stdio-impl.h.
29769         (freading): Remove redundant #defines.
29770         * lib/freadptr.c: Include stdio-impl.h.
29771         (freadptr): Remove redundant #defines.
29772         * lib/freadseek.c: Include stdio-impl.h.
29773         (freadptrinc): Remove redundant #defines.
29774         * lib/fseeko.c: Include stdio-impl.h.
29775         (rpl_fseeko): Remove redundant #defines.
29776         * lib/fseterr.c: Include stdio-impl.h.
29777         (fseterr): Remove redundant #defines.
29778         * lib/fwritable.c: Include stdio-impl.h.
29779         (fwritable: Remove redundant #defines.
29780         * lib/fwriting.c: Include stdio-impl.h.
29781         (fwriting): Remove redundant #defines.
29782         * modules/fbufmode (Files): Add lib/stdio-impl.h.
29783         * modules/fflush (Files): Likewise.
29784         * modules/fpurge (Files): Likewise.
29785         * modules/freadable (Files): Likewise.
29786         * modules/freadahead (Files): Likewise.
29787         * modules/freading (Files): Likewise.
29788         * modules/freadptr (Files): Likewise.
29789         * modules/freadseek (Files): Likewise.
29790         * modules/fseeko (Files): Likewise.
29791         * modules/fseterr (Files): Likewise.
29792         * modules/fwritable (Files): Likewise.
29793         * modules/fwriting (Files): Likewise.
29794
29795 2008-04-26  Bruno Haible  <bruno@clisp.org>
29796
29797         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
29798         restore_seek_optimization, update_fpos_cache): New functions, extracted
29799         from rpl_fflush.
29800         (rpl_fflush): Use them.
29801         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
29802         (gl_REPLACE_FFLUSH): Use it.
29803
29804 2008-04-26  Bruno Haible  <bruno@clisp.org>
29805
29806         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
29807         on Solaris.
29808         * tests/test-xstrtoimax.sh: Likewise.
29809         * tests/test-xstrtoumax.sh: Likewise.
29810         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29811
29812 2008-04-26  Bruno Haible  <bruno@clisp.org>
29813
29814         * modules/memchr-tests: New file.
29815         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
29816
29817 2008-04-26  Eric Blake  <ebb9@byu.net>
29818             Bruno Haible  <bruno@clisp.org>
29819
29820         * lib/memchr.c: Include intprops.h.
29821         (__memchr): Optimize parallel detection of matching bytes. Rename local
29822         variables. Add explanatory comments.
29823
29824 2008-04-26  Bruno Haible  <bruno@clisp.org>
29825
29826         Fix module 'memchr', broken since 2000-10-28.
29827         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
29828
29829 2008-04-26  Bruno Haible  <bruno@clisp.org>
29830
29831         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
29832         comments.
29833
29834 2008-04-25  Eric Blake  <ebb9@byu.net>
29835
29836         Use native fstatat on cygwin 1.7.0.
29837         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
29838         first.
29839
29840 2008-04-23  Eric Blake  <ebb9@byu.net>
29841
29842         Improve memchr2 performance.
29843         * lib/memchr2.c (memchr2): Further optimize parallel detection of
29844         NUL bytes.
29845         * modules/memchr2 (Depends-on): Use intprops.h.
29846
29847 2008-04-23  Simon Josefsson  <simon@josefsson.org>
29848
29849         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
29850         an inline function instead of a CPP macro.  Patch by Ben Pfaff
29851         <blp@cs.stanford.edu>.
29852
29853 2008-04-23  Simon Josefsson  <simon@josefsson.org>
29854
29855         * lib/arpa_inet.in.h: New file.
29856
29857         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
29858         (Makefile.am): Sed in substitute header file.
29859
29860         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
29861         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
29862
29863         * modules/inet_ntop (configure.ac): Use
29864         gl_ARPA_INET_MODULE_INDICATOR.
29865
29866         * modules/inet_pton (configure.ac): Use
29867         gl_ARPA_INET_MODULE_INDICATOR.
29868
29869 2008-04-22  Jim Meyering  <meyering@redhat.com>
29870
29871         * modules/verify (License): Re-license as LGPLv2+.
29872
29873 2008-04-22  Simon Josefsson  <simon@josefsson.org>
29874
29875         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
29876         parameter to void* as per POSIX standard (MinGW uses char*).
29877
29878 2008-04-21  Bruno Haible  <bruno@clisp.org>
29879
29880         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
29881         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
29882         Define to replacements if REPLACE_ISWCNTRL is 1.
29883         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
29884         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
29885         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
29886         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
29887         what it fixes.
29888         * doc/posix-functions/iswalpha.texi: Likewise.
29889         * doc/posix-functions/iswblank.texi: Likewise.
29890         * doc/posix-functions/iswcntrl.texi: Likewise.
29891         * doc/posix-functions/iswdigit.texi: Likewise.
29892         * doc/posix-functions/iswgraph.texi: Likewise.
29893         * doc/posix-functions/iswlower.texi: Likewise.
29894         * doc/posix-functions/iswprint.texi: Likewise.
29895         * doc/posix-functions/iswpunct.texi: Likewise.
29896         * doc/posix-functions/iswspace.texi: Likewise.
29897         * doc/posix-functions/iswupper.texi: Likewise.
29898         * doc/posix-functions/iswxdigit.texi: Likewise.
29899         Reported by Alain Guibert.
29900
29901 2008-04-21  Bruno Haible  <bruno@clisp.org>
29902
29903         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
29904         Patch by Alain Guibert.
29905
29906 2008-04-21  Bruno Haible  <bruno@clisp.org>
29907
29908         Fix test failures on mingw.
29909         * tests/test-xstrtol.c (print_no_progname): New function.
29910         (main): Install it in error_print_progname hook.
29911         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
29912         * tests/test-xstrtoimax.sh: Likewise.
29913         * tests/test-xstrtoumax.sh: Likewise.
29914
29915 2008-04-21  Bruno Haible  <bruno@clisp.org>
29916
29917         Fix test failure on mingw.
29918         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
29919
29920 2008-04-21  Bruno Haible  <bruno@clisp.org>
29921
29922         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
29923         Actually assign a value.
29924
29925 2008-04-20  Bruno Haible  <bruno@clisp.org>
29926
29927         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
29928         take 2.
29929         * lib/canonicalize.c (canonicalize_file_name): Elide if the
29930         'canonicalize-lgpl' module is also used.
29931         * lib/canonicalize-lgpl.c: Undo last change.
29932         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
29933
29934 2008-04-20  Bruno Haible  <bruno@clisp.org>
29935
29936         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
29937         config.h. Provide _mkdir based fallback for mingw.
29938         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
29939         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
29940         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
29941         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
29942         rather than defining mkdir in config.h.
29943         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
29944         (gl_SYS_STAT_H_DEFAULTS): New macro.
29945         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
29946         HAVE_IO_H any more.
29947         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
29948         HAVE_DECL_MKDIR and HAVE_IO_H.
29949
29950 2008-04-20  Bruno Haible  <bruno@clisp.org>
29951
29952         * lib/isapipe.c: Port to native Windows platforms.
29953
29954 2008-04-20  Bruno Haible  <bruno@clisp.org>
29955
29956         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
29957
29958 2008-04-21  Eric Blake  <ebb9@byu.net>
29959
29960         Work around preprocessors that don't handle UINTMAX_MAX.
29961         * lib/memchr2.c (memchr2): Avoid embedded #if.
29962         Reported by Alain Guibert, fix suggested by Bruno Haible.
29963
29964 2008-04-21  Simon Josefsson  <simon@josefsson.org>
29965
29966         * doc/posix-functions/strftime.texi (strftime): Explain better
29967         Windows incompatibility.  Suggested by Micah Cowan
29968         <micah@cowan.name>.
29969
29970 2008-04-20  Bruno Haible  <bruno@clisp.org>
29971
29972         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
29973         unistr/u8-mblen.
29974
29975 2008-04-20  Bruno Haible  <bruno@clisp.org>
29976
29977         Fix test failure on platforms with non-GNU iconv.
29978         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
29979         (U_TO_U8): Use it, rather than u16_to_u8.
29980         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
29981         units at the end of the input string.
29982         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
29983
29984 2008-04-20  Bruno Haible  <bruno@clisp.org>
29985
29986         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
29987         when the resulting length is 0.
29988         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
29989
29990 2008-04-20  Bruno Haible  <bruno@clisp.org>
29991
29992         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
29993         works.
29994         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
29995
29996 2008-04-20  Bruno Haible  <bruno@clisp.org>
29997
29998         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
29999         * modules/tsearch-tests (configure.ac): Test for initstate function.
30000
30001 2008-04-20  Bruno Haible  <bruno@clisp.org>
30002
30003         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30004         for nlink_t if missing.
30005         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30006
30007 2008-04-19  Bruno Haible  <bruno@clisp.org>
30008
30009         Work around snprintf bug on Linux libc5.
30010         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30011         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30012         gl_SNPRINTF_SIZE1.
30013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30014         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30015         that test failed.
30016         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30017         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30018         * modules/snprintf (Files): Add m4/printf.m4.
30019         * modules/vsnprintf (Files): Likewise.
30020         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30021         * doc/posix-functions/vsnprintf.texi: Likewise.
30022
30023 2008-04-19  Bruno Haible  <bruno@clisp.org>
30024
30025         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30026         from 0.0058 to less than 10^-7.
30027
30028 2008-04-19  Bruno Haible  <bruno@clisp.org>
30029
30030         Fix rounding when a precision is given.
30031         * lib/vasnprintf.c (is_borderline): New function.
30032         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30033         9...9x.
30034         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30035         %e, %g.
30036         * tests/test-vasprintf-posix.c (test_function): Likewise.
30037         * tests/test-snprintf-posix.h (test_function): Likewise.
30038         * tests/test-sprintf-posix.h (test_function): Likewise.
30039         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30040         * tests/test-printf-posix.h (test_function): Likewise.
30041         * tests/test-printf-posix.output: Update.
30042         Reported by John Darrington <john@darrington.wattle.id.au> via
30043         Ben Pfaff <blp@cs.stanford.edu>.
30044
30045 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30046
30047         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30048         Suggested by Bruno Haible <bruno@clisp.org>.
30049
30050 2008-04-17  Bruno Haible  <bruno@clisp.org>
30051
30052         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30053         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30054         implementation.
30055         Patch by Bruce Merry <bmerry@gmail.com>.
30056
30057 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30058
30059         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30060         doesn't work under Windows.
30061
30062 2008-04-16  Bruno Haible  <bruno@clisp.org>
30063
30064         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30065         New macros.
30066         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30067         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30068         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30069         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30070         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30071         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30072         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30073         macros.
30074         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30075         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30076         Northern Sotho, Uighur.
30077
30078 2008-04-16  Bruno Haible  <bruno@clisp.org>
30079
30080         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30081         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30082         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30083         Reported by Daniel Bergström <daniel@octocode.com>.
30084
30085 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30086             Bruno Haible  <bruno@clisp.org>
30087
30088         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30089         function.
30090         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30091         New functions, mostly extracted from gl_locale_name_default.
30092         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30093
30094 2008-04-16  Eric Blake  <ebb9@byu.net>
30095
30096         Adjust strtod detection to catch glibc 2.7 bug.
30097         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30098         Reported by John Gatewood Ham.
30099
30100 2008-04-16  Bruno Haible  <bruno@clisp.org>
30101
30102         Add tentative support for Linux libc5.
30103         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30104         * lib/fpurge.c (fpurge): Likewise.
30105         * lib/freadable.c (freadable): Likewise.
30106         * lib/freadahead.c (freadahead): Likewise.
30107         * lib/freading.c (freading): Likewise.
30108         * lib/freadptr.c (freadptr): Likewise.
30109         * lib/freadseek.c (freadptrinc): Likewise.
30110         * lib/fseeko.c (rpl_fseeko): Likewise.
30111         * lib/fseterr.c (fseterr): Likewise.
30112         * lib/fwritable.c (fwritable): Likewise.
30113         * lib/fwriting.c (fwriting): Likewise.
30114         Reported by Alain Guibert <alguibert+bts@free.fr>.
30115
30116 2008-04-15  Bruno Haible  <bruno@clisp.org>
30117
30118         * modules/mathl (configure.ac): Define module indicator.
30119
30120 2008-04-15  Bruno Haible  <bruno@clisp.org>
30121
30122         * lib/logl.c (logl): Remove unused variables.
30123
30124 2008-04-15  Bruno Haible  <bruno@clisp.org>
30125
30126         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30127         fails.
30128
30129 2008-04-15  Bruno Haible  <bruno@clisp.org>
30130
30131         * lib/trim.c (trim2): Fix argument of isspace() macro.
30132
30133 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30134
30135         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30136         to 0.
30137         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30138
30139 2008-04-14  Bruno Haible  <bruno@clisp.org>
30140
30141         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30142         AC_LANG_PROGRAM argument.
30143         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30144         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30146         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30147         * m4/math_h.m4 (gl_MATH_H): Likewise.
30148         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30149         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30150         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30151         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30152         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30153         * m4/regex.m4 (gl_REGEX): Likewise.
30154         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30155         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30158         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30159         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30160         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30162
30163 2008-04-14  Jim Meyering  <meyering@redhat.com>
30164
30165         test-strtod: fix typos: s/abs/fabs/
30166         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30167
30168 2008-04-13  Bruno Haible  <bruno@clisp.org>
30169
30170         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30171         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30172         module is also used and while not building the reloc-wrapper.
30173
30174 2008-04-13  Bruno Haible  <bruno@clisp.org>
30175
30176         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30177
30178 2008-04-13  Bruno Haible  <bruno@clisp.org>
30179
30180         Fix AIX compilation failure introduced on 2008-04-02.
30181         * tests/test-frexp.c (exp): Undefine before redefining.
30182         * tests/test-frexpl.c (exp): Likewise.
30183
30184 2008-04-13  Bruno Haible  <bruno@clisp.org>
30185
30186         Work around a HP-UX stdio bug.
30187         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30188         * tests/test-ftello.c (main): Likewise.
30189         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30190         * doc/posix-functions/ftello.texi: Likewise.
30191
30192 2008-04-13  Bruno Haible  <bruno@clisp.org>
30193
30194         Make test-signbit pass on HP-UX/hppa.
30195         * tests/test-signbit.c (minus_zerol): New variable.
30196         (test_signbitl): Use it.
30197
30198 2008-04-13  Bruno Haible  <bruno@clisp.org>
30199
30200         Make truncl work on OSF/1 4.0.
30201         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30202         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30203         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30205         HAVE_DECL_TRUNCL.
30206         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30207         HAVE_DECL_TRUNCL.
30208         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30209
30210 2008-04-13  Bruno Haible  <bruno@clisp.org>
30211
30212         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30213
30214 2008-04-13  Bruno Haible  <bruno@clisp.org>
30215
30216         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30217         expression, so as to avoid HP-UX 11 cc compiler bug.
30218
30219 2008-04-13  Bruno Haible  <bruno@clisp.org>
30220
30221         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30222
30223 2008-04-13  Bruno Haible  <bruno@clisp.org>
30224
30225         * lib/git-merge-changelog.c: Remove empty declaration outside of
30226         functions.
30227
30228 2008-04-13  Bruno Haible  <bruno@clisp.org>
30229
30230         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30231
30232 2008-04-13  Bruno Haible  <bruno@clisp.org>
30233
30234         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30235         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30236         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30237         also if it exists but lacks definitions of the SHUT_* macros.
30238         * modules/sys_socket (Description): Update.
30239         Reported by Elbert Pol <e.pol@chello.nl>.
30240
30241 2008-04-13  Bruno Haible  <bruno@clisp.org>
30242
30243         * lib/localcharset.c (OS2): Don't redefine if already defined.
30244         Reported by Elbert Pol <e.pol@chello.nl>.
30245
30246 2008-04-13  Bruno Haible  <bruno@clisp.org>
30247
30248         * lib/binary-io.h [__EMX__]: Include <io.h>.
30249         Reported by Elbert Pol <e.pol@chello.nl>.
30250
30251 2008-04-12  Bruno Haible  <bruno@clisp.org>
30252
30253         * lib/fpucw.h: Enable the definitions also for x86_64.
30254         Needed for NetBSD/x86_64.
30255         Reported by Thomas Klausner <tk@giga.or.at>.
30256
30257 2008-04-12  Bruno Haible  <bruno@clisp.org>
30258
30259         * tests/test-strtod.c: Include isnand.h.
30260         (main): Use isnand instead of isnan.
30261         Reported by Jim Meyering.
30262
30263 2008-04-12  Bruno Haible  <bruno@clisp.org>
30264
30265         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30266         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30267
30268 2008-04-12  Jim Meyering  <meyering@redhat.com>
30269
30270         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30271
30272 2008-04-12  Bruno Haible  <bruno@clisp.org>
30273
30274         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30275         Reported by Elbert Pol <e.pol@chello.nl>.
30276
30277 2008-04-12  Eric Blake  <ebb9@byu.net>
30278
30279         Work around Solaris 10 math.h bug.
30280         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30281         (gl_MATH_H_DEFAULTS): Set up default.
30282         * modules/math (Makefile.am): Replace new indicators.
30283         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30284         * tests/test-math.c (main): Test this.
30285         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30286         * doc/posix-headers/math.texi (math.h): Mention bug.
30287         Reported by Nelson H. F. Beebe and Jim Meyering.
30288
30289 2008-04-11  Bruno Haible  <bruno@clisp.org>
30290
30291         Adapt to future versions of Apple GCC.
30292         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30293         Reported by Peter O'Gorman <peter@pogma.com>.
30294
30295 2008-04-11  Bruno Haible  <bruno@clisp.org>
30296
30297         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30298
30299 2008-04-11  Bruno Haible  <bruno@clisp.org>
30300
30301         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30302
30303         * modules/getaddrinfo-tests (Makefile.am): Define
30304         test_getaddrinfo_LDADD.
30305
30306 2008-04-11  Bruno Haible  <bruno@clisp.org>
30307
30308         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30309         (init): Fix syntax error.
30310         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30311         is declared.
30312
30313 2008-04-11  Bruno Haible  <bruno@clisp.org>
30314
30315         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30316         * modules/glob (Depends-on): Add stdbool.
30317
30318 2008-04-11  Bruno Haible  <bruno@clisp.org>
30319
30320         * lib/trim.c: Include <string.h>.
30321
30322 2008-04-11  Eric Blake  <ebb9@byu.net>
30323
30324         Avoid compile failure on OS/2.
30325         * lib/regex_internal.h (internal_function): Disable optimization
30326         on OS/2 (__EMX__), where it caused compiler error.
30327         Reported by Elbert Pol.
30328
30329 2008-04-11  Bruno Haible  <bruno@clisp.org>
30330
30331         Flush the standard error stream before aborting. Needed on mingw.
30332         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30333         * tests/test-array_list.c (ASSERT): Likewise.
30334         * tests/test-array_oset.c (ASSERT): Likewise.
30335         * tests/test-avltree_list.c (ASSERT): Likewise.
30336         * tests/test-avltree_oset.c (ASSERT): Likewise.
30337         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30338         * tests/test-binary-io.c (ASSERT): Likewise.
30339         * tests/test-byteswap.c (ASSERT): Likewise.
30340         * tests/test-c-ctype.c (ASSERT): Likewise.
30341         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30342         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30343         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30344         * tests/test-c-strstr.c (ASSERT): Likewise.
30345         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30346         * tests/test-canonicalize.c (ASSERT): Likewise.
30347         * tests/test-carray_list.c (ASSERT): Likewise.
30348         * tests/test-ceilf1.c (ASSERT): Likewise.
30349         * tests/test-ceilf2.c (ASSERT): Likewise.
30350         * tests/test-ceill.c (ASSERT): Likewise.
30351         * tests/test-count-one-bits.c (ASSERT): Likewise.
30352         * tests/test-fbufmode.c (ASSERT): Likewise.
30353         * tests/test-fflush2.c (ASSERT): Likewise.
30354         * tests/test-floorf1.c (ASSERT): Likewise.
30355         * tests/test-floorf2.c (ASSERT): Likewise.
30356         * tests/test-floorl.c (ASSERT): Likewise.
30357         * tests/test-fopen.c (ASSERT): Likewise.
30358         * tests/test-fpending.c (ASSERT): Likewise.
30359         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30360         * tests/test-fpurge.c (ASSERT): Likewise.
30361         * tests/test-freadable.c (ASSERT): Likewise.
30362         * tests/test-freadahead.c (ASSERT): Likewise.
30363         * tests/test-freading.c (ASSERT): Likewise.
30364         * tests/test-freadptr.c (ASSERT): Likewise.
30365         * tests/test-freadptr2.c (ASSERT): Likewise.
30366         * tests/test-freadseek.c (ASSERT): Likewise.
30367         * tests/test-freopen.c (ASSERT): Likewise.
30368         * tests/test-frexp.c (ASSERT): Likewise.
30369         * tests/test-frexpl.c (ASSERT): Likewise.
30370         * tests/test-fseek.c (ASSERT): Likewise.
30371         * tests/test-fseeko.c (ASSERT): Likewise.
30372         * tests/test-fstrcmp.c (ASSERT): Likewise.
30373         * tests/test-ftell.c (ASSERT): Likewise.
30374         * tests/test-ftello.c (ASSERT): Likewise.
30375         * tests/test-func.c (ASSERT): Likewise.
30376         * tests/test-fwritable.c (ASSERT): Likewise.
30377         * tests/test-fwriting.c (ASSERT): Likewise.
30378         * tests/test-getdelim.c (ASSERT): Likewise.
30379         * tests/test-getline.c (ASSERT): Likewise.
30380         * tests/test-i-ring.c (ASSERT): Likewise.
30381         * tests/test-iconv-utf.c (ASSERT): Likewise.
30382         * tests/test-iconv.c (ASSERT): Likewise.
30383         * tests/test-isfinite.c (ASSERT): Likewise.
30384         * tests/test-isnand.c (ASSERT): Likewise.
30385         * tests/test-isnanf.c (ASSERT): Likewise.
30386         * tests/test-isnanl.h (ASSERT): Likewise.
30387         * tests/test-ldexpl.c (ASSERT): Likewise.
30388         * tests/test-linked_list.c (ASSERT): Likewise.
30389         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30390         * tests/test-localename.c (ASSERT): Likewise.
30391         * tests/test-lseek.c (ASSERT): Likewise.
30392         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30393         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30394         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30395         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30396         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30397         * tests/test-mbschr.c (ASSERT): Likewise.
30398         * tests/test-mbscspn.c (ASSERT): Likewise.
30399         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30400         * tests/test-mbspbrk.c (ASSERT): Likewise.
30401         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30402         * tests/test-mbsrchr.c (ASSERT): Likewise.
30403         * tests/test-mbsspn.c (ASSERT): Likewise.
30404         * tests/test-mbsstr1.c (ASSERT): Likewise.
30405         * tests/test-mbsstr2.c (ASSERT): Likewise.
30406         * tests/test-mbsstr3.c (ASSERT): Likewise.
30407         * tests/test-memchr2.c (ASSERT): Likewise.
30408         * tests/test-memmem.c (ASSERT): Likewise.
30409         * tests/test-open.c (ASSERT): Likewise.
30410         * tests/test-printf-frexp.c (ASSERT): Likewise.
30411         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30412         * tests/test-printf-posix.c (ASSERT): Likewise.
30413         * tests/test-quotearg.c (ASSERT): Likewise.
30414         * tests/test-rbtree_list.c (ASSERT): Likewise.
30415         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30416         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30417         * tests/test-round1.c (ASSERT): Likewise.
30418         * tests/test-roundf1.c (ASSERT): Likewise.
30419         * tests/test-roundl.c (ASSERT): Likewise.
30420         * tests/test-signbit.c (ASSERT): Likewise.
30421         * tests/test-sleep.c (ASSERT): Likewise.
30422         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30423         * tests/test-snprintf.c (ASSERT): Likewise.
30424         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30425         * tests/test-stat-time.c (ASSERT): Likewise.
30426         * tests/test-strcasestr.c (ASSERT): Likewise.
30427         * tests/test-strerror.c (ASSERT): Likewise.
30428         * tests/test-striconv.c (ASSERT): Likewise.
30429         * tests/test-striconveh.c (ASSERT): Likewise.
30430         * tests/test-striconveha.c (ASSERT): Likewise.
30431         * tests/test-strsignal.c (ASSERT): Likewise.
30432         * tests/test-strstr.c (ASSERT): Likewise.
30433         * tests/test-strtod.c (ASSERT): Likewise.
30434         * tests/test-trunc1.c (ASSERT): Likewise.
30435         * tests/test-trunc2.c (ASSERT): Likewise.
30436         * tests/test-truncf1.c (ASSERT): Likewise.
30437         * tests/test-truncf2.c (ASSERT): Likewise.
30438         * tests/test-truncl.c (ASSERT): Likewise.
30439         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30440         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30441         * tests/test-vasnprintf.c (ASSERT): Likewise.
30442         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30443         * tests/test-vasprintf.c (ASSERT): Likewise.
30444         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30445         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30446         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30447         * tests/test-vsnprintf.c (ASSERT): Likewise.
30448         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30449         * tests/test-wcwidth.c (ASSERT): Likewise.
30450         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30451         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30452         * tests/test-xvasprintf.c (ASSERT): Likewise.
30453         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30454         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30455         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30456         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30457         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30458         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30459         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30460         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30461         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30462         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30463         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30464         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30465         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30466         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30467         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30468         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30469         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30470         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30471         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30472         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30473         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30474         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30475         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30476         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30477         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30478         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30479         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30480         * tests/unictype/test-combining.c (ASSERT): Likewise.
30481         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30482         * tests/unictype/test-digit.c (ASSERT): Likewise.
30483         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30484         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30485         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30486         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30487         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30488         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30489         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30490         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30491         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30492         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30493         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30494         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30495         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30496         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30497         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30498         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30499         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30500         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30501         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30502         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30503         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30504         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30505         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30506         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30507         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30508         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30509         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30510         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30511         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30512         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30513         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30514         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30515         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30516         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30517         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30518         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30519         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30520         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30521         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30522         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30523         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30524         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30525         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30526         Reported by Eric Blake.
30527
30528 2008-04-11  Bruno Haible  <bruno@clisp.org>
30529
30530         * lib/wchar.in.h: Tweak comment.
30531
30532 2008-04-11  Bruno Haible  <bruno@clisp.org>
30533
30534         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30535         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30536         gl_COMMON.
30537         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30538
30539 2008-04-11  Bruno Haible  <bruno@clisp.org>
30540
30541         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30542
30543 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30544
30545         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30546         of attempting to use non-existing /dev/*random.  Based on patch
30547         from Adam Strzelecki <ono@java.pl> in
30548         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30549
30550 2008-04-08  Bruno Haible  <bruno@clisp.org>
30551
30552         Add tentative support for emx+gcc.
30553         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30554         * lib/fpurge.c (fpurge): Likewise.
30555         * lib/freadable.c (freadable): Likewise.
30556         * lib/freadahead.c (freadahead): Likewise.
30557         * lib/freading.c (freading): Likewise.
30558         * lib/freadptr.c (freadptr): Likewise.
30559         * lib/freadseek.c (freadptrinc): Likewise.
30560         * lib/fseeko.c (rpl_fseeko): Likewise.
30561         * lib/fseterr.c (fseterr): Likewise.
30562         * lib/fwritable.c (fwritable): Likewise.
30563         * lib/fwriting.c (fwriting): Likewise.
30564         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30565
30566 2008-04-09  Eric Blake  <ebb9@byu.net>
30567
30568         Avoid some autoconf warnings.
30569         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30570         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30571         * m4/afs.m4 (gl_AFS): Likewise.
30572         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30573         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30574         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30575         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30576         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30577         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30578         (AC_CHECK_DECLS_ONCE): Likewise.
30579         Rename file...
30580         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30581         gnulib-tool requires autoconf 2.59 or better.
30582         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30583
30584 2008-04-08  Eric Blake  <ebb9@byu.net>
30585
30586         Use 'git describe --match' if present (added in git 1.5.5).
30587         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30588         if possible.
30589
30590 2008-04-08  Bruno Haible  <bruno@clisp.org>
30591
30592         Add tentative support for OpenServer.
30593         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30594         _ptr, _cnt.
30595         * lib/fpurge.c (fpurge): Likewise.
30596         * lib/freadable.c (freadable): Likewise.
30597         * lib/freadahead.c (freadahead): Likewise.
30598         * lib/freading.c (freading): Likewise.
30599         * lib/freadptr.c (freadptr): Likewise.
30600         * lib/freadseek.c (freadptrinc): Likewise.
30601         * lib/fseeko.c (rpl_fseeko): Likewise.
30602         * lib/fseterr.c (fseterr): Likewise.
30603         * lib/fwritable.c (fwritable): Likewise.
30604         * lib/fwriting.c (fwriting): Likewise.
30605         Reported by Roger Cornelius <rac@tenzing.org> and
30606         Brian K. White <brian@aljex.com>.
30607
30608 2008-04-06  Jim Meyering  <meyering@redhat.com>
30609
30610         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30611
30612 2008-04-06  Bruno Haible  <bruno@clisp.org>
30613
30614         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30615         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30616         * tests/test-printf-posix.sh: Likewise.
30617         * tests/test-vfprintf-posix.sh: Likewise.
30618         * tests/test-vprintf-posix.sh: Likewise.
30619         * tests/test-xprintf-posix.sh: Likewise.
30620
30621 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30622
30623         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30624         hide error from 'ls', needed on OS/2.
30625         Report by Elbert Pol <elbert.pol@gmail.com>.
30626
30627 2008-04-04  Eric Blake  <ebb9@byu.net>
30628
30629         Make test-fseeko.c failures meaningful.
30630         * tests/test-fseeko.c: Print line number on failure.
30631         * tests/test-fseek.c: Likewise.
30632         Reported by Nelson H. F. Beebe.
30633
30634         Improve strtod bug detection check.
30635         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
30636         required for Solaris 10.
30637         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
30638
30639 2008-04-04  Bruno Haible  <bruno@clisp.org>
30640
30641         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
30642         by m4/setenv.m4.
30643
30644 2008-04-03  Eric Blake  <ebb9@byu.net>
30645
30646         Ensure sane .version contents.
30647         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
30648         version string.
30649         * build-aux/git-version-gen: Improve documentation.
30650
30651         Make GNU make output nicer.
30652         * top/GNUmakefile [!_have-Makefile]: Add dependency on
30653         MAKECMDGOALS to enforce message for all command line targets.  Set
30654         srcdir for use in maint.mk.
30655
30656         Another maintainer tweak.
30657         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
30658         a target that regenerates version.
30659
30660 2008-04-03  Jim Meyering  <meyering@redhat.com>
30661
30662         vc-list-files: don't cause coreutils "make po-check" failure
30663         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
30664
30665 2008-04-03  Eric Blake  <ebb9@byu.net>
30666
30667         Allow VPATH usage of vc-list-files.
30668         * build-aux/vc-list-files (scriptversion): Add timestamp.
30669         (options): Add --help, --version, -C.
30670         (CVS): Support installed cvsu.
30671
30672 2008-04-02  Bruno Haible  <bruno@clisp.org>
30673
30674         Avoid some "statement with no effect" warnings from gcc.
30675         * tests/test-wctype.c (main): Explicitly ignore unused values.
30676         Reported by Jim Meyering.
30677
30678 2008-04-02  Jim Meyering  <meyering@redhat.com>
30679
30680         Avoid some warnings from "gcc -Wshadow".
30681         * tests/test-frexp.c (exp): Define to a different identifier.
30682         * tests/test-frexpl.c (exp): Likewise.
30683
30684 2008-04-03  Jim Meyering  <meyering@redhat.com>
30685
30686         bootstrap: remove dangling *.[ch] symlinks from lib
30687         * build-aux/bootstrap [dangling symlink removal]: Move find's
30688         -depth option to precede all others, to avoid a warning.
30689         Remove *.[ch] files too, and from "$source_base" (usually lib/).
30690
30691 2008-04-02  Bruno Haible  <bruno@clisp.org>
30692
30693         Avoid some warnings from "gcc -Wshadow".
30694         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
30695         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
30696         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
30697         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
30698         Reported by Jim Meyering.
30699
30700 2008-04-01  Bruno Haible  <bruno@clisp.org>
30701
30702         Fix test to work on IRIX 6.5 with cc.
30703         * tests/test-math.c (numeric_equal): New function.
30704         (main): Use it.
30705
30706 2008-04-01  Bruno Haible  <bruno@clisp.org>
30707
30708         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
30709
30710 2008-04-01  Bruno Haible  <bruno@clisp.org>
30711
30712         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
30713         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30714         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
30715         (Depends-on): Remove math.
30716
30717         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
30718         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30719         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
30720         (Depends-on): Remove math.
30721
30722         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
30723         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30724         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
30725         (Depends-on): Remove math.
30726         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
30727         (Depends-on): Remove math.
30728
30729         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
30730         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30731         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
30732         (Depends-on): Remove math.
30733         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
30734         (Depends-on): Remove math.
30735
30736         * tests/test-round1.c: Include nan.h.
30737         (main): Use NaNd instead of NAN.
30738         * modules/round-tests (Files): Add tests/nan.h.
30739
30740         * tests/test-trunc1.c: Include nan.h.
30741         (main): Use NaNd instead of NAN.
30742         * modules/trunc-tests (Files): Add tests/nan.h.
30743
30744         * tests/test-roundf1.c: Include nan.h.
30745         (main): Use NaNf instead of NAN.
30746         * modules/roundf-tests (Files): Add tests/nan.h.
30747
30748         * tests/test-truncf1.c: Include nan.h.
30749         (main): Use NaNf instead of NAN.
30750         * modules/truncf-tests (Files): Add tests/nan.h.
30751
30752         * tests/test-ceilf1.c: Include nan.h.
30753         (main): Use NaNf instead of NAN.
30754         * modules/ceilf-tests (Files): Add tests/nan.h.
30755
30756         * tests/test-floorf1.c: Include nan.h.
30757         (main): Use NaNf instead of NAN.
30758         * modules/floorf-tests (Files): Add tests/nan.h.
30759
30760         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
30761         (main): Use NaNf instead of NAN.
30762         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
30763
30764         * tests/test-isnand.c: Include nan.h instead of <math.h>.
30765         (main): Use NaNd instead of NAN.
30766         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
30767
30768         * tests/test-frexp.c: Include nan.h.
30769         (main): Use NaNd instead of NAN.
30770         * modules/frexp-tests (Files): Add tests/nan.h.
30771
30772         * lib/isnan.c: Don't include <math.h>.
30773         (FUNC): Don't use NAN macro.
30774         * modules/isnand-nolibm (Depends-on): Remove math.
30775         * modules/isnanf-nolibm (Depends-on): Remove math.
30776         * modules/isnanl (Depends-on): Remove math.
30777         * modules/isnanl-nolibm (Depends-on): Remove math.
30778
30779         * tests/nan.h: New file.
30780
30781 2008-04-01  Eric Blake  <ebb9@byu.net>
30782
30783         Fix typos.
30784         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
30785         values to be the right type.
30786
30787         For now, cater to gnulib strtod inaccuracies.
30788         * tests/test-strtod.c (main): Allow 1-ulp error on expected
30789         fractional results.  While not as nice from a QoI perspective, it
30790         is a quicker patch than correctly implementing decimal to binary
30791         rounding.
30792
30793 2008-03-31  Eric Blake  <ebb9@byu.net>
30794
30795         Guarantee a definition of NAN.
30796         * lib/math.in.h (NAN): Define if missing.
30797         * tests/test-math.c (main): Test it.
30798         * doc/posix-headers/math.texi (math.h): Document this.
30799         * lib/isnan.c (rpl_isnand): Use it.
30800         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
30801         * tests/test-floorf1.c (NaN): Likewise.
30802         * tests/test-frexp.c (NaN): Likewise.
30803         * tests/test-isnand.c (NaN): Likewise.
30804         * tests/test-isnanf.c (NaN): Likewise.
30805         * tests/test-round1.c (NaN): Likewise.
30806         * tests/test-roundf1.c (NaN): Likewise.
30807         * tests/test-snprintf-posix.h (NaN): Likewise.
30808         * tests/test-sprintf-posix.h (NaN): Likewise.
30809         * tests/test-trunc1.c (NaN): Likewise.
30810         * tests/test-truncf1.c (NaN): Likewise.
30811         * tests/test-vasnprintf-posix.c (NaN): Likewise.
30812         * tests/test-vasprintf-posix.c (NaN): Likewise.
30813         * modules/isnand-nolibm (Depends-on): Add math.
30814         * modules/isnanf-nolibm (Depends-on): Likewise.
30815         * modules/isnanl (Depends-on): Likewise.
30816         * modules/isnanl-nolibm (Depends-on): Likewise.
30817         * modules/snprintf-posix-tests (Depends-on): Likewise.
30818         * modules/sprintf-posix-tests (Depends-on): Likewise.
30819         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
30820         * modules/vsprintf-posix-tests (Depends-on): Likewise.
30821         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
30822         * modules/vasprintf-posix-tests (Depends-on): Likewise.
30823
30824 2008-03-31  Bruno Haible  <bruno@clisp.org>
30825
30826         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
30827         * doc/posix-functions/strtod.texi: Likewise.
30828
30829 2008-03-31  Bruno Haible  <bruno@clisp.org>
30830
30831         * tests/test-strtod.c (main): Don't use C99 syntax.
30832
30833 2008-03-31  Bruno Haible  <bruno@clisp.org>
30834
30835         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
30836         Reported by Eric Blake.
30837
30838 2008-03-31  Jim Meyering  <meyering@redhat.com>
30839
30840         Don't compare actual signbit return values.
30841         * tests/test-strtod.c (main): Rather, compare only their
30842         zero/non-zero nature.
30843
30844 2008-03-31  Eric Blake  <ebb9@byu.net>
30845
30846         More strtod documentation.
30847         * doc/posix-functions/strtod.texi (strtod): Interpret more test
30848         failures as distinct bugs.
30849
30850 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
30851
30852         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
30853         Problem reported by Erik Benada in
30854         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
30855
30856 2008-03-30  Bruno Haible  <bruno@clisp.org>
30857
30858         * tests/test-strtod.c: Add comments about which assertion fails on which
30859         platform.
30860         * doc/posix-functions/strtod.texi: Add info about many more platforms.
30861
30862 2008-03-30  Eric Blake  <ebb9@byu.net>
30863
30864         Test signbit behavior on zeros.
30865         * tests/test-signbit.c (test_signbitf): Add tests for zero.
30866         (test_signbitd, test_signbitl): Likewise.
30867
30868         More strtod touchups.
30869         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
30870         sign of negative underflow, for now.  Use .5, not .1.
30871         * doc/posix-functions/strtod.texi (strtod): Mention these
30872         limitations.
30873         Reported by Jim Meyering.
30874
30875 2008-03-30  Bruno Haible  <bruno@clisp.org>
30876
30877         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
30878         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
30879
30880 2008-03-30  Bruno Haible  <bruno@clisp.org>
30881
30882         Avoid failure when attempting to return empty iconv results on some
30883         platforms.
30884         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
30885         allocation, don't report ENOMEM when the resulting string is empty.
30886
30887 2008-03-30  Bruno Haible  <bruno@clisp.org>
30888
30889         Fix buffer overrun.
30890         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
30891         Don't consider the width for tmp_length. Check count against tmp_length
30892         before doing the padding. Ensure enough allocation during padding.
30893
30894 2008-03-30  Eric Blake  <ebb9@byu.net>
30895
30896         strtod touchups.
30897         * lib/strtod.c (strtod): Avoid compiler warnings.
30898         Reported by Jim Meyering.
30899
30900 2008-03-30  Bruno Haible  <bruno@clisp.org>
30901
30902         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
30903         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
30904         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
30905         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
30906         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
30907         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
30908         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
30909         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
30910
30911         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
30912         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
30913         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
30914         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
30915         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
30916         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
30917         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
30918         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
30919
30920         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
30921         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
30922         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
30923         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
30924         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
30925         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
30926         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
30927         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
30928
30929         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
30930         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
30931
30932         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
30933         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
30934
30935         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
30936         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
30937
30938         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
30939         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
30940         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
30941
30942         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
30943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
30944         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
30945
30946         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
30947         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
30948         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
30949
30950         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
30951         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
30952         * modules/vasprintf (Depends-on): Add EOVERFLOW.
30953
30954         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
30955         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
30956         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
30957         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
30958         (Depends-on): Add EOVERFLOW.
30959         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
30960         (Depends-on): Add EOVERFLOW.
30961         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30962         (Depends-on): Add EOVERFLOW.
30963         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30964         (Depends-on): Add EOVERFLOW.
30965         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30966         (Depends-on): Add EOVERFLOW.
30967         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30968         (Depends-on): Add EOVERFLOW.
30969         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30970         (Depends-on): Add EOVERFLOW.
30971         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30972         (Depends-on): Add EOVERFLOW.
30973
30974         * lib/sprintf.c (EOVERFLOW): Remove fallback.
30975         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
30976         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
30977
30978         * lib/snprintf.c (EOVERFLOW): Remove fallback.
30979         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
30980         * modules/snprintf (Depends-on): Add EOVERFLOW.
30981
30982         * lib/poll.c (EOVERFLOW): Remove fallback.
30983         * modules/poll (Depends-on): Add EOVERFLOW.
30984
30985         * lib/getugroups.c (EOVERFLOW): Remove fallback.
30986         * modules/getugroups (Depends-on): Add EOVERFLOW.
30987
30988         * lib/getdelim.c (EOVERFLOW): Remove fallback.
30989         * modules/getdelim (Depends-on): Add EOVERFLOW.
30990
30991         * lib/ftell.c (EOVERFLOW): Remove fallback.
30992         * modules/ftell (Depends-on): Add EOVERFLOW.
30993
30994         * lib/fprintf.c (EOVERFLOW): Remove fallback.
30995         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
30996         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
30997
30998         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
30999
31000         * modules/EOVERFLOW-tests: New file.
31001         * tests/test-EOVERFLOW.c: New file.
31002
31003         * modules/EOVERFLOW: New file.
31004         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31005
31006 2008-03-30  Bruno Haible  <bruno@clisp.org>
31007
31008         Fix bug introduced on 2007-06-10.
31009         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31010         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31011
31012 2008-03-30  Bruno Haible  <bruno@clisp.org>
31013
31014         Improve freadseek's efficiency after ungetc.
31015         * lib/freadseek.c: Include freadahead.h.
31016         (freadptrinc): New function, extracted from freadseek.
31017         (freadseek): Use it in a loop. Use freadahead to determine the number
31018         of loop iterations.
31019         * modules/freadseek (Depends-on): Add freadahead.
31020         (configure.ac): Require AC_C_INLINE.
31021
31022 2008-03-30  Bruno Haible  <bruno@clisp.org>
31023
31024         * lib/freadseek.c (freadseek): Don't ignore the return value of
31025         freadptr.
31026
31027 2008-03-29  Eric Blake  <ebb9@byu.net>
31028
31029         Add hex float support.
31030         * modules/strtod (Depends-on): Add c-ctype.
31031         (Link): Mention POW_LIB.
31032         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31033         whitespace between 'e' and exponent.
31034         * tests/test-strtod.c (main): Enable hex float tests.
31035         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31036         now provides.
31037
31038         Document various strtod bugs, with some fixes.
31039         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31040         "-0x", "inf", "nan", and hex constants.
31041         * doc/posix-functions/atof.texi (atof): Likewise.
31042         * modules/stdlib (Makefile.am): Support strtod.
31043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31044         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31045         detect additional strtod bugs.
31046         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31047         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31048         bool where appropriate.  Parse 'inf' and 'nan'.
31049         * tests/test-strtod.c: New file.
31050         * modules/strtod (Depends-on): Add stdbool, stdlib.
31051         (configure.ac): Turn on module indicator.
31052         * modules/strtod-tests: New module.
31053
31054 2008-03-29  Eric Blake  <ebb9@byu.net>
31055
31056         Fix ftell on mingw.
31057         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31058         * modules/ftell-tests (Depends-on): Add binary-io.
31059         * modules/ftello-tests (Depends-on): Likewise.
31060         * tests/test-ftell.c (main): Enhance test to cover behavior after
31061         ungetc.  Enforce binary mode.
31062         * tests/test-ftello.c (main): Likewise.
31063
31064         Pass test-freadseek on cygwin.
31065         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31066         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31067         ungetc buffer.
31068
31069         * tests/test-fflush2.c (main): Fix typo.
31070
31071 2008-03-29  Bruno Haible  <bruno@clisp.org>
31072
31073         * tests/test-fflush2.c (main): Temporarily disable the contents of
31074         this test.
31075         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31076         Reported by Eric Blake.
31077
31078 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31079
31080         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31081         (GC_SHA224_DIGEST_SIZE): Add.
31082
31083         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31084         (gc_hash_digest_length): Likewise.
31085         (gc_hash_buffer): Likewise.
31086
31087 2008-03-25  Bruno Haible  <bruno@clisp.org>
31088
31089         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31090         detail which gettext release to use.
31091         Reported by Simon Josefsson.
31092
31093 2008-03-26  Jim Meyering  <meyering@redhat.com>
31094
31095         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31096         * modules/gnumakefile (clean-GNUmakefile): Also, use
31097         test ... && ... || : syntax rather than if-then ... fi.
31098
31099         gnumakefile: Don't double-quote-expand $(VPATH) value.
31100         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31101
31102 2008-03-24  Eric Blake  <ebb9@byu.net>
31103
31104         Alter GNUmakefile to install into top directory.
31105         * modules/maintainer-makefile: Split, and add dependency...
31106         * modules/gnumakefile: to this new module.
31107         * build-aux/GNUmakefile: Move...
31108         * top/GNUmakefile: ...here.
31109         * build-aux/maint.mk: Move...
31110         * top/maint.mk: ...here.
31111         * MODULES.html.sh (Support for maintaining...): Document new
31112         module.
31113
31114 2008-03-23  Bruno Haible  <bruno@clisp.org>
31115
31116         * gnulib-tool: New options --vc-files, --no-vc-files.
31117         (func_usage): Document them.
31118         (vc_files): New variable.
31119         (func_import): Consider vc_files.
31120         (func_create_testdir): Set vc_files to empty.
31121         Suggested by Jim Meyering and Karl Berry.
31122
31123 2008-03-23  Bruno Haible  <bruno@clisp.org>
31124
31125         Fix regex compilation error on HP-UX 11.
31126         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31127         * modules/regex (Files): Add m4/mbstate_t.m4.
31128         Reported by Ton Voon <ton.voon@altinity.com>.
31129
31130 2008-03-23  Bruno Haible  <bruno@clisp.org>
31131
31132         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31133
31134 2008-03-23  Eric Blake  <ebb9@byu.net>
31135             Bruno Haible  <bruno@clisp.org>
31136
31137         Install files from top/ in the destination directory.
31138         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31139         augmentation also for the files from top/.
31140         (func_import, func_create_testdir): Rewrite file names:
31141         top/filename -> filename.
31142
31143 2008-03-23  Bruno Haible  <bruno@clisp.org>
31144
31145         Tweak "gnulib --version" output.
31146         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31147
31148 2008-03-23  Bruno Haible  <bruno@clisp.org>
31149
31150         Tweak "gnulib --version" output.
31151         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31152         rather than contents of ChangeLog, when possible.
31153
31154 2008-03-21  Eric Blake  <ebb9@byu.net>
31155
31156         More --version tweaks.
31157         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31158         date of last ChangeLog entry.
31159
31160 2008-03-21  Jim Meyering  <meyering@redhat.com>
31161
31162         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31163
31164 2008-03-20  Eric Blake  <ebb9@byu.net>
31165
31166         VPATH fix.
31167         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31168
31169 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31170
31171         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31172         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31173
31174 2008-03-20  Eric Blake  <ebb9@byu.net>
31175
31176         Sync GNUmakefile with coreutils.
31177         * build-aux/GNUmakefile (have-Makefile): Rename...
31178         (_have-Makefile): ...to this, for namespace consideration.
31179         (GNUmakefile.cfg): Include, if present.
31180         (_autoreconf): Define a default.
31181         (_is-dist-target): New rule for rebuilds to pick up intra-release
31182         version.
31183         (maint-cfg.mk): Rename...
31184         (cfg.mk): ...to this.
31185
31186 2008-03-18  Jim Meyering  <meyering@redhat.com>
31187
31188         New script and module: mktempd
31189         * MODULES.html.sh (maint+release support): Add mktempd.
31190         * build-aux/mktempd: New file.
31191         * modules/mktempd: New file.
31192
31193 2008-03-15  Jim Meyering  <meyering@redhat.com>
31194
31195         Undo last change.
31196         * lib/sha1.c, lib/md5.c: 63 != ~63.
31197         Reported by Andreas Schwab.
31198
31199         sha1.c, md5.c: Hoist a redundant expression.
31200         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31201         "ctx->buflen" only once, before calling *_process_block.
31202         * lib/md5.c (md5_process_bytes): Likewise.
31203
31204 2008-03-14  Eric Blake  <ebb9@byu.net>
31205
31206         Bump copyright year in files generated by gnulib-tool.
31207         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31208         gnulib-tool, rather than hard-coding it.
31209
31210         Fix 'gnulib-tool --version' output to work with git.
31211         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31212         (startup): ...here.
31213         (func_version): Use it to invoke git-version-gen, rather than
31214         relying on CVS keyword expansion.  Modernize wording.
31215         (cvsdatestamp, last_checkin_date, version): Kill unused
31216         variables.
31217
31218 2008-03-12  Jim Meyering  <meyering@redhat.com>
31219
31220         Recognize optional cast of the argument to free.
31221         * build-aux/useless-if-before-free: Update regexps.
31222
31223         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31224
31225 2008-03-11  Bruno Haible  <bruno@clisp.org>
31226
31227         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31228         by a single package.
31229         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31230         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31231         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31232         Reported by Sam Steingold <sds@gnu.org>.
31233
31234 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31235
31236         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31237         repositories.
31238
31239 2008-03-11  Bruno Haible  <bruno@clisp.org>
31240
31241         Avoid conflicts between local macro definitions.
31242         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31243         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31244
31245 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31246             Bruno Haible  <bruno@clisp.org>
31247
31248         Make va_copy work with some version of xlc on AIX 5.1.
31249         * lib/stdarg.in.h: New file.
31250         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31251         On AIX, use a <stdarg.h> file substitute.
31252         * modules/stdarg (Files): Add lib/stdarg.in.h.
31253         (Depends-on): Add include_next.
31254         (Makefile.am): Build a stdarg.h substitute if requested.
31255         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31256
31257 2008-03-10  Bruno Haible  <bruno@clisp.org>
31258
31259         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31260         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31261         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31262
31263 2008-03-10  Bruno Haible  <bruno@clisp.org>
31264
31265         * modules/stdlib (Depends-on): Add include_next, remove
31266         absolute-header.
31267
31268 2008-03-09  Bruno Haible  <bruno@clisp.org>
31269
31270         * lib/freadahead.h (freadahead): Document more precisely.
31271         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31272         the sum of both buffer sizes.
31273         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31274         * NEWS: Document the change.
31275
31276 2008-03-09  Bruno Haible  <bruno@clisp.org>
31277
31278         Extend freadptr to return also the buffer size.
31279         * lib/freadptr.h (freadptr): Add sizep argument.
31280         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31281         (freadptr): Add sizep argument. Determine buffer size like freadahead
31282         does.
31283         * tests/test-freadptr.c: Don't include freadahead.h.
31284         (main): Adapt for new calling convention of freadptr.
31285         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31286         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31287         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31288         tests/test-freadptr2.sh.
31289         (Depends): Remove freadahead.
31290         (TESTS): Add test-freadptr2.sh.
31291         (check_PROGRAMS): Add test-freadptr2.
31292
31293 2008-03-09  Bruno Haible  <bruno@clisp.org>
31294
31295         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31296         Report and solution by Simon Josefsson.
31297
31298 2008-03-06  Bruno Haible  <bruno@clisp.org>
31299
31300         Make fflush after ungetc work on BSD platforms.
31301         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31302         * tests/test-fflush2.c: New file.
31303         * tests/test-fflush2.sh: New file.
31304         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31305         tests/test-fflush2.c.
31306         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31307         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31308
31309 2008-03-06  Eric Blake  <ebb9@byu.net>
31310
31311         Likewise for ftello.
31312         * modules/ftello (Dependencies): Add extensions.
31313         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31314
31315 2008-03-06  Bruno Haible  <bruno@clisp.org>
31316
31317         * modules/fseeko (Dependencies): Add extensions.
31318         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31319         Needed on glibc systems.
31320
31321 2008-03-06  Bruno Haible  <bruno@clisp.org>
31322
31323         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31324         email address.
31325         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31326
31327 2008-03-06  Bruno Haible  <bruno@clisp.org>
31328
31329         * users.txt: Add libgnupdf.
31330
31331 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31332
31333         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31334         (Header File Substitutes, Function Substitutes,
31335         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31336         (Build robot for gnulib): Fix typo.
31337
31338 2008-03-06  Bruno Haible  <bruno@clisp.org>
31339
31340         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31341         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31342
31343 2008-03-06  Bruno Haible  <bruno@clisp.org>
31344
31345         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31346         * doc/gnulib.texi: Include it.
31347
31348 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31349
31350         * modules/func (License): Change license to unlimited; there was
31351         no LGPL parts in the module anyway.
31352
31353 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31354
31355         * modules/__func__: Renamed to modules/func.
31356         * modules/__func__-tests: Renamed to modules/func-tests.
31357         * tests/test-__func__.c: Renamed to tests/test-func.c.
31358         * m4/__func__.m4: Renamed to m4/func.m4.
31359         * doc/gnulib.texi (__func__): Section renamed to func.
31360         Suggested by Eric Blake <ebb9@byu.net>.
31361
31362 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31363
31364         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31365         about __func__.  Make example self-contained.  Suggested by Eric
31366         Blake <ebb9@byu.net>.
31367
31368         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31369         Suggested by Eric Blake <ebb9@byu.net>.
31370
31371 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31372
31373         * modules/__func__: New file.
31374         * modules/__func__-tests: New file.
31375         * tests/test-__func__.c: New file.
31376         * m4/__func__.m4: New file.
31377         * doc/gnulib.texi (__func__): Document __func__ module.
31378
31379 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31380
31381         * modules/byteswap (License): Re-license as LGPLv2+.
31382
31383 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31384
31385         * doc/Makefile: Add pdf target.
31386
31387 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31388
31389         * modules/inline (License): Use 'unlimited', since there are only
31390         *.m4 files in this module.
31391
31392 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31393             Bruno Haible  <bruno@clisp.org>
31394
31395         Add support for HP C 7.1 on OpenVMS 8.3.
31396         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31397
31398 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31399
31400         Update VMS specifics.
31401         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31402
31403 2008-03-02  Jim Meyering  <meyering@redhat.com>
31404
31405         Remove the last dependency on the "free" module.
31406         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31407         Reported by Bob Proulx.
31408
31409         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31410
31411         Remove useless "if" tests before free.  Deprecate "free" module.
31412         * doc/posix-functions/free.texi: Mention that this
31413         module is no longer useful.
31414         * modules/free (Notice): Say this module is obsolete.
31415         * modules/readutmp (Depends-on): Remove free.
31416         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31417         * lib/putenv.c (putenv): Likewise.
31418         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31419         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31420         * tests/test-c-strcasestr.c (main): Likewise.
31421         * tests/test-c-strstr.c (main): Likewise.
31422         * tests/test-mbscasestr1.c (main): Likewise.
31423         * tests/test-mbscasestr2.c (main): Likewise.
31424         * tests/test-mbsstr1.c (main): Likewise.
31425         * tests/test-mbsstr2.c (main): Likewise.
31426         * tests/test-memmem.c (main): Likewise.
31427         * tests/test-strcasestr.c (main): Likewise.
31428         * tests/test-striconv.c (main): Likewise.
31429         * tests/test-striconveh.c (main): Likewise.
31430         * tests/test-striconveha.c (main): Likewise.
31431         * tests/test-strstr.c (main): Likewise.
31432
31433         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31434
31435         bootstrap: sync from coreutils again
31436         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31437
31438 2008-03-01  Jim Meyering  <meyering@redhat.com>
31439
31440         bootstrap: sync from coreutils
31441         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31442         also when the target doesn't exist.
31443
31444 2008-03-01  Eric Blake  <ebb9@byu.net>
31445
31446         Fix bugs in last patch.
31447         * lib/memchr2.c (memchr2): Fix typo.
31448         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31449         extension.
31450         Reported by Bruce Korb.
31451
31452         New module 'memchr2'.
31453         * modules/memchr2: New file.
31454         * modules/memchr2-tests: Likewise.
31455         * lib/memchr2.h: Likewise.
31456         * lib/memchr2.c: Likewise, based on memchr.c.
31457         * tests/test-memchr2.c: New test.
31458         * MODULES.html.sh (String handling): Add memchr2.
31459
31460 2008-02-29  Bruno Haible  <bruno@clisp.org>
31461
31462         * modules/freadseek-tests: New file.
31463         * tests/test-freadseek.sh: New file.
31464         * tests/test-freadseek.c: New file.
31465
31466         New module 'freadseek'.
31467         * modules/freadseek: New file.
31468         * lib/freadseek.h: New file.
31469         * lib/freadseek.c: New file.
31470         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31471
31472 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31473
31474         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31475         wydawca.
31476
31477         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31478         program_invocation_name and program_invocation_short_name are
31479         present.
31480
31481 2008-02-28  Bruno Haible  <bruno@clisp.org>
31482
31483         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31484         * tests/test-freadptr.sh: Also test non-seekable stdin.
31485
31486 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31487
31488         * build-aux/bootstrap (source_base, m4_base)
31489         (doc_base, tests_base): New variables.
31490         (gnulib_tool_options): Do not hardcode base directories, use
31491         the above variables instead.
31492
31493 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31494
31495         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31496
31497 2008-02-28  Bruno Haible  <bruno@clisp.org>
31498
31499         * modules/freadptr-tests: New file.
31500         * tests/test-freadptr.sh: New file.
31501         * tests/test-freadptr.c: New file.
31502
31503         New module 'freadptr'.
31504         * modules/freadptr: New file.
31505         * lib/freadptr.h: New file.
31506         * lib/freadptr.c: New file.
31507         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31508
31509 2008-02-26  Karl Berry  <karl@freefriends.org>
31510
31511         Sync from Libtool:
31512         * libltdl/argz.c (argz_add, argz_count): New functions.
31513         * libltdl/argz.in.h: Declare them.
31514         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31515
31516 2008-02-22  Bruno Haible  <bruno@clisp.org>
31517
31518         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31519         is a pointer type.  Needed for HP-UX 10.
31520         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31521         * doc/posix-functions/gmtime_r.texi: Likewise.
31522         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31523
31524 2008-02-24  Bruno Haible  <bruno@clisp.org>
31525
31526         * modules/environ-tests: New file.
31527         * tests/test-environ.c: New file.
31528
31529         New module 'environ'.
31530         * modules/environ: New file.
31531         * lib/unistd.in.h (environ): New declaration.
31532         * m4/environ.m4: New file.
31533         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31534         after use.
31535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31536         HAVE_DECL_ENVIRON.
31537         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31538         HAVE_DECL_ENVIRON.
31539         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31540         wrong claim that 'environ' is missing on some systems.
31541         * modules/execute (Depends-on): Add environ.
31542         * lib/execute.c (environ): Remove fallback declaration.
31543         * modules/pipe (Depends-on): Add environ.
31544         * lib/pipe.c (environ): Remove fallback declaration.
31545         * modules/setenv (Depends-on): Add environ.
31546         * lib/setenv.c (environ): Remove fallback declaration.
31547         * modules/unsetenv (Depends-on): Add environ.
31548         * lib/unsetenv.c (environ): Remove fallback declaration.
31549         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31550         m4/environ.m4.
31551         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31552         (gl_PREREQ_UNSETENV): Likewise.
31553
31554 2008-02-24  Bruno Haible  <bruno@clisp.org>
31555
31556         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31557
31558 2008-02-20  Bob Proulx  <bob@proulx.com>
31559
31560         Enable use of older two part flavor 'git describe'.
31561         * build-aux/git-version-gen: If using the older two part flavor of
31562         git version then recreate the third part now present in the
31563         newer three part flavor of git describe.
31564
31565 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31566
31567         * lib/fts.c (fts_build): Typo correction to comment.
31568
31569 2008-02-17  Bruno Haible  <bruno@clisp.org>
31570
31571         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31572         generating no-op conflicts.
31573
31574 2008-02-17  Bruno Haible  <bruno@clisp.org>
31575
31576         Speed up by 10%.
31577         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31578         result_entries, rather than an index-based loop.
31579
31580 2008-02-17  Bruno Haible  <bruno@clisp.org>
31581
31582         Speed up by 25%.
31583         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31584         'hashcode_cached'.
31585         (entry_create): New function.
31586         (entry_hashcode): Use the cached hashcode if possible.
31587         (read_changelog_file, try_split_merged_entry): Use entry_create.
31588
31589 2008-02-17  Bruno Haible  <bruno@clisp.org>
31590
31591         Speed up from O(n^2) to O(n) for long ChangeLog files.
31592         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31593         (read_changelog_file): Change implementation of entries_reversed list
31594         to rbtreehash.
31595         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31596
31597 2008-02-17  Bruno Haible  <bruno@clisp.org>
31598
31599         New option --split-merged-entry.
31600         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31601         (find_paragraph_end, try_split_merged_entry): New functions.
31602         (long_options): Add option --split-merged-entry.
31603         (usage): Document option --split-merged-entry.
31604         (main): Implement option --split-merged-entry.
31605         Reported by Eric Blake.
31606
31607 2008-02-17  Bruno Haible  <bruno@clisp.org>
31608
31609         * lib/git-merge-changelog.c: Include c-strstr.h.
31610         (main): Support the "git pull --rebase" situation.
31611         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31612         Reported by Eric Blake.
31613
31614 2008-02-16  Eric Blake  <ebb9@byu.net>
31615
31616         Avoid doubling \ in common case of "c-maybe" quoting style.
31617         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31618         eliding outer quotes.
31619         * lib/quotearg.h: Document this.
31620         * tests/test-quotearg.c (result_strings, inputs, results_g)
31621         (flag_results, locale_results): Test it by adding a new string to
31622         each test group.
31623         (compare_strings): Test new string.
31624
31625 2008-02-13  Eric Blake  <ebb9@byu.net>
31626
31627         Avoid trigraph quoting in default output.
31628         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
31629         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
31630         unless explicitly requested.
31631         * tests/test-quotearg.c (flag_results, main): Add additional tests.
31632
31633 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
31634
31635         Don't rely on signed integer overflowing to negative value.
31636         * lib/getugroups.c (getugroups): Include <limits.h>.
31637         Instead, compare against INT_MAX, and increment only if the test passes.
31638
31639 2008-02-13  Jim Meyering  <meyering@redhat.com>
31640         and Eric Blake  <ebb9@byu.net>
31641
31642         Avoid shadowing warning and compile errors on Linux.
31643         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
31644         forwarding macros on Linux.
31645         (dcgettext): Define a stub, for Linux.
31646         (results_g, main): Avoid warnings.
31647
31648 2008-02-12  Eric Blake  <ebb9@byu.net>
31649
31650         Silence warning in last patch.
31651         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
31652
31653         Quotearg part 4: add tests, fix c-maybe colon quoting.
31654         * lib/quotearg.h: Improve documentation.
31655         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
31656         escapes when adding outer quotes.  When quoting trigraphs, use
31657         valid C notation.  When quoting NUL, omit extra characters if next
31658         character is not digit.  Alter prototype.
31659         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
31660         callers.
31661         * modules/quotearg-tests: New module.
31662         * tests/test-quotearg.c: New test.
31663
31664 2008-02-07  Eric Blake  <ebb9@byu.net>
31665
31666         Quotearg part 3: add flag to control outer quote elision.
31667         * lib/quotearg.h (c_maybe_quoting_style): New style.
31668         (enum quoting_flags): Better documentation of flags.
31669         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
31670         c-maybe style.
31671         (quotearg_buffer_restyled): Handle new flag to elide outer
31672         quotes.
31673
31674         Quotearg part 2: add flag that can control NUL elision.
31675         * lib/quotearg.h (set_quoting_flags): New prototype.
31676         * lib/quotearg.c (struct quoting_options): Add flag field.
31677         (set_quoting_flags): New function.
31678         (quotearg_buffer_restyled): Add flags parameter.
31679         (quotearg_alloc_mem): Set the flag if length cannot be returned.
31680         (quotearg_n_options): Set the flag, since length cannot be
31681         returned.
31682         (quoting_options_from_style): Default flags correctly.
31683
31684         Quotearg part 1: more wrappers, restore quotearg_char state.
31685         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
31686         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
31687         (quotearg_colon_mem): New wrappers.
31688         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
31689         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
31690         functions.
31691         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
31692         (quotearg_colon_mem): New functions.
31693
31694 2008-02-11  Bruno Haible  <bruno@clisp.org>
31695
31696         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
31697         library in the current directory: it does not work with parallel make.
31698         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31699
31700 2008-02-11  Bruno Haible  <bruno@clisp.org>
31701
31702         * .gitattributes: New file.
31703
31704 2008-02-11  Jim Meyering  <meyering@redhat.com>
31705
31706         useless-if-before-free: Fix reversed exit values.
31707         * build-aux/useless-if-before-free: Use correct values
31708         for EXIT_MATCH and EXIT_NO_MATCH.
31709
31710         * build-aux/useless-if-before-free: Close stdout carefully.
31711
31712 2008-02-10  Bruno Haible  <bruno@clisp.org>
31713
31714         New module 'git-merge-changelog'.
31715         * modules/git-merge-changelog: New file.
31716         * lib/git-merge-changelog.c: New file.
31717
31718 2008-02-10  Jim Meyering  <meyering@redhat.com>
31719
31720         useless-if-before-free: New option: --list (-l).
31721
31722         useless-if-before-free: Don't exit immediately upon open failure.
31723         * build-aux/useless-if-before-free: Exit 2 for errors.
31724         Upon failure to open a file, don't exit immediately.
31725         Rather, just warn and continue with any remaining files.
31726
31727 2008-02-10  Bruno Haible  <bruno@clisp.org>
31728
31729         New abstract list operation 'node_set_value'.
31730         * lib/gl_list.h (gl_list_node_set_value): New function.
31731         (struct gl_list_implementation): New field node_set_value.
31732         * lib/gl_list.c (gl_list_node_set_value): New function.
31733         * lib/gl_array_list.c (gl_array_node_set_value): New function.
31734         (gl_array_list_implementation): Update.
31735         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
31736         (gl_carray_list_implementation): Update.
31737         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
31738         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31739         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31740         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
31741         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31742         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31743         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31744         Update.
31745         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
31746         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
31747         (gl_sublist_list_implementation): Update.
31748
31749 2008-02-10  Bruno Haible  <bruno@clisp.org>
31750
31751         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
31752         Needed when ELEMENT is #defined to 'some_type *'.
31753
31754 2008-02-10  Jim Meyering  <meyering@redhat.com>
31755
31756         New script and module: useless-if-before-free
31757         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
31758         * build-aux/useless-if-before-free: New file.
31759         * modules/useless-if-before-free: New file.
31760
31761         * build-aux/gitlog-to-changelog: Use committer date, not author date.
31762
31763         xstrtol_error: Fix typo.
31764         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
31765         s/exit_failure/exit_status/.
31766
31767 2008-02-09  Jim Meyering  <meyering@redhat.com>
31768
31769         New script and module: gitlog-to-changelog
31770         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
31771         * modules/gitlog-to-changelog: New file.
31772         * build-aux/gitlog-to-changelog: New file.
31773
31774 2008-02-08  Jim Meyering  <meyering@redhat.com>
31775
31776         Avoid two "parameter unused" warnings.
31777         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
31778         Mark "st" as used.
31779
31780         Use "git COMMAND", not "git-COMMAND".
31781         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
31782         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
31783         * build-aux/git-version-gen: Use "git status", not "git-status".
31784
31785 2008-02-07  Bruno Haible  <bruno@clisp.org>
31786
31787         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
31788         Avoids a crash on Windows Vista.
31789         Reported by Adam Strzelecki <ono@java.pl> via
31790         Simon Josefsson <simon@josefsson.org>.
31791
31792 2008-02-06  Bruno Haible  <bruno@clisp.org>
31793
31794         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
31795         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
31796         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
31797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
31798         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31800         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
31801         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
31802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31809         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
31810         left-adjust flag.
31811         * tests/test-snprintf-posix.h (test_function): Likewise.
31812         * tests/test-sprintf-posix.h (test_function): Likewise.
31813         * tests/test-vasprintf-posix.c (test_function): Likewise.
31814         * doc/posix-functions/fprintf.texi: Update.
31815         * doc/posix-functions/printf.texi: Update.
31816         * doc/posix-functions/snprintf.texi: Update.
31817         * doc/posix-functions/sprintf.texi: Update.
31818         * doc/posix-functions/vfprintf.texi: Update.
31819         * doc/posix-functions/vprintf.texi: Update.
31820         * doc/posix-functions/vsnprintf.texi: Update.
31821         * doc/posix-functions/vsprintf.texi: Update.
31822         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31823
31824 2008-02-06  Bruno Haible  <bruno@clisp.org>
31825
31826         Fix bug introduced on 2008-01-26.
31827         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
31828
31829 2008-02-06  Bruno Haible  <bruno@clisp.org>
31830
31831         Fix bug introduced on 2007-06-10.
31832         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
31833         !NEED_PRINTF_FLAG_ZERO.
31834
31835 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
31836
31837         getloadavg: use libperfstat on AIX5
31838         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
31839
31840 2008-02-03  Bruno Haible  <bruno@clisp.org>
31841
31842         * lib/diffseq.h: Add comments about required #includes.
31843         Reported by Michael Biggs <gnulib@doubleplum.net>.
31844
31845 2008-02-01  Bruno Haible  <bruno@clisp.org>
31846
31847         * users.txt: Add gnuit.
31848
31849 2008-01-31  Bruno Haible  <bruno@clisp.org>
31850
31851         * lib/md4.c (set_uint32): Mark as inline.
31852         * lib/md5.c (set_uint32): Likewise.
31853         * lib/sha1.c (set_uint32): Likewise.
31854         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
31855         * m4/md5.m4 (gl_MD5): Likewise.
31856         * m4/sha1.m4 (gl_SHA1): Likewise.
31857
31858 2008-01-31  Jim Meyering  <meyering@redhat.com>
31859
31860         Use "sizeof VAR", rather than a literal "4".
31861         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
31862         * lib/md4.c (md4_read_ctx): Likewise.
31863         * lib/sha1.c (sha1_read_ctx): Likewise.
31864
31865 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31866
31867         * tests/test-sha1.c: New file, based on test-md5.c.
31868
31869         * modules/crypto/sha1-tests: New file.
31870
31871 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31872
31873         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
31874
31875 2008-01-31  Jim Meyering  <meyering@redhat.com>
31876
31877         Prefer "sizeof v" over the equivalent "4".
31878         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
31879         * lib/md5.c (set_uint32): Likewise.
31880         * lib/sha1.c (set_uint32): Likewise.
31881
31882 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31883
31884         * lib/sha1.c (set_uint32): Mark function as static.
31885
31886 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31887
31888         md2: clarify comments to say that alignment is not required.
31889         * lib/md2.h: Remove warning about alignment in comment.
31890         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
31891         never been required.
31892
31893 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31894
31895         md4: adapt alignment constraint fix from sha1.
31896         * lib/md4.c (set_uint32): New function, from sha1.c
31897         (md4_read_ctx): Use it.
31898         (md4_finish_ctx): Doc fix.
31899         * lib/md4.h: Doc fix.
31900
31901 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31902
31903         md5: adapt alignment constraint fix from sha1.
31904         * lib/md5.c (set_uint32): New function, from sha1.c
31905         (md5_read_ctx): Use it.
31906         (md5_finish_ctx): Doc fix.
31907         * lib/md5.h: Doc fix.
31908
31909 2008-01-30  Peter Palfrader  <weasel@debian.org>
31910
31911         sha1: remove the result buffer alignment constraint
31912         * lib/sha1.c (set_uint32): New function.
31913         (sha1_read_ctx): Rewrite to remove the result buffer alignment
31914         constraint.
31915         (sha1_finish_ctx): Remove comment warning about alignment constraint.
31916         * lib/sha1.h: Likewise.
31917
31918 2008-01-30  Andreas Schwab  <schwab@suse.de>
31919             Bruno Haible  <bruno@clisp.org>
31920
31921         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
31922         correct definition of LDBL_MIN_EXP.
31923
31924 2008-01-30  Karl Berry  <karl@gnu.org>
31925
31926         * config/srclist-update: try to preserve x bit on updates.
31927         * config/srclistvars.sh: update for karl.
31928
31929 2008-01-29  Jim Meyering  <meyering@redhat.com>
31930
31931         vasnprintf.c: Avoid warning about unused label
31932         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
31933         "overflow" label definition and associated code with the
31934         same cpp condition that guards the sole use of that label.
31935
31936 2008-01-26  Bruno Haible  <bruno@clisp.org>
31937
31938         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
31939         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
31940         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
31941         * lib/isnanl-nolibm.h (isnanl): Likewise.
31942         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31943
31944 2008-01-26  Bruno Haible  <bruno@clisp.org>
31945
31946         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
31947         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
31948
31949 2008-01-26  Bruno Haible  <bruno@clisp.org>
31950
31951         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
31952         GCC >= 4.0 built-in.
31953         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
31954
31955 2008-01-26  Bruno Haible  <bruno@clisp.org>
31956
31957         Rename isnan, applicable to 'double' only, to isnand.
31958         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
31959         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
31960         (configure.ac): Update.
31961         (Include): Replace "isnan.h" with "isnand.h".
31962         * m4/isnand.m4: Renamed from m4/isnan.m4.
31963         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
31964         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
31965         instead of isnan.c.
31966         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
31967         instead of HAVE_ISNAN_IN_LIBC.
31968         (isnand): Renamed from isnan.
31969         * lib/isnand.c: New file.
31970         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
31971         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
31972         (Makefile.am): Update.
31973         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
31974         Include isnand.h instead of isnan.h.
31975         (main): Test isnand instead of isnan.
31976         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
31977         isnan-nolibm.
31978         * modules/frexp (Depends-on): Likewise.
31979         * modules/frexp-tests (Depends-on): Likewise.
31980         * modules/frexp-nolibm (Depends-on): Likewise.
31981         * modules/frexp-nolibm-tests (Depends-on): Likewise.
31982         * modules/isfinite (Depends-on): Likewise.
31983         * modules/round-tests (Depends-on): Likewise.
31984         * modules/signbit (Depends-on): Likewise.
31985         * modules/signbit-tests (Depends-on): Likewise.
31986         * modules/snprintf-posix (Depends-on): Likewise.
31987         * modules/sprintf-posix (Depends-on): Likewise.
31988         * modules/trunc-tests (Depends-on): Likewise.
31989         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31990         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31991         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31992         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31993         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31994         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31995         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31996         * modules/vasnprintf-posix (Depends-on): Likewise.
31997         * modules/vasprintf-posix (Depends-on): Likewise.
31998         * modules/vfprintf-posix (Depends-on): Likewise.
31999         * modules/vsnprintf-posix (Depends-on): Likewise.
32000         * modules/vsprintf-posix (Depends-on): Likewise.
32001         * lib/frexp.c: Include isnand.h instead of isnan.h.
32002         (ISNAN): Set to isnand instead of isnan.
32003         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32004         (gl_isfinited): Use isnand instead of isnan.
32005         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32006         (gl_signbitd): Use isnand instead of isnan.
32007         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32008         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32009         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32010         (main): Use isnand instead of isnan.
32011         * tests/test-round1.c: Include isnand.h.
32012         (main): Use isnand instead of isnan.
32013         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32014         (ISNAN): Set to isnand instead of isnan.
32015         * tests/test-trunc1.c: Include isnand.h.
32016         (main): Use isnand instead of isnan.
32017         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32018         (equal): Use isnand instead of isnan.
32019         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32020         isnand-nolibm.
32021         * NEWS: Mention the change.
32022
32023 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32024             Bruno Haible  <bruno@clisp.org>
32025
32026         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32027         the GCC builtins for signbits are present and set
32028         REPLACE_SIGNBIT_USING_GCC if so.
32029         * lib/math.in.h (signbit): Define using GCC builtins if
32030         REPLACE_SIGNBIT_USING_GCC is set.
32031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32032         REPLACE_SIGNBIT_USING_GCC.
32033         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32034
32035 2008-01-25  Jim Meyering  <meyering@redhat.com>
32036
32037         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32038         * lib/poll.c: Include <config.h>, not "config.h".
32039         * tests/test-getaddrinfo.c: Likewise.
32040
32041 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32042
32043         * modules/sockets-tests: New file.
32044
32045 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32046
32047         * modules/sockets: New module, can be used to call WSA_Startup and
32048         WSA_Cleanup when needed.
32049
32050         * lib/sockets.h, lib/sockets.c: New files.
32051
32052         * m4/sockets.m4: New file.
32053
32054         * tests/test-sockets.c: New file.
32055
32056 2008-01-19  Bruno Haible  <bruno@clisp.org>
32057
32058         * doc/posix-headers: Renamed from doc/headers.
32059         * doc/posix-functions: Renamed from doc/functions.
32060         * doc/gnulib.texi: Update.
32061
32062 2008-01-19  Bruno Haible  <bruno@clisp.org>
32063
32064         * doc/glibc-functions/strcasestr.texi: Include contents of
32065         doc/functions/strcasestr.texi, fixing the list of platforms.
32066         * doc/functions/strcasestr.texi: Remove file.
32067
32068 2008-01-19  Bruno Haible  <bruno@clisp.org>
32069
32070         * doc/glibc-functions/memmem.texi: Include contents of
32071         doc/functions/memmem.texi.
32072         * doc/functions/memmem.texi: Remove file.
32073
32074 2008-01-18  Bruno Haible  <bruno@clisp.org>
32075
32076         * doc/glibc-functions/*.texi: New files.
32077         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32078         to use the new files.
32079
32080 2008-01-17  Bruno Haible  <bruno@clisp.org>
32081
32082         * tests/test-gethostname.c (main): Fix printf statement.
32083
32084 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32085
32086         * modules/gethostname-tests: New file.
32087
32088         * tests/test-gethostname.c: New file.
32089
32090 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32091
32092         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32093         used by the UNAME case.  Reported by Bruno Haible
32094         <bruno@clisp.org>.
32095
32096 2008-01-17  Eric Blake  <ebb9@byu.net>
32097
32098         Convert c-strcasestr to be more efficient.
32099         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32100         (Depends-on): Add c-strcase, remove malloca, strnlen.
32101         * tests/test-c-strcasestr.c (main): Enhance test.
32102         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32103
32104 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32105
32106         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32107         Use it in creating po/Makevars.
32108
32109 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32110
32111         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32112         Applications that requires it should initialize libgcrypt
32113         manually.
32114
32115 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32116
32117         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32118
32119 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32120
32121         Fix problem with getdate on mingw32 reported by Simon Josefsson
32122         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32123         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32124         tzname", when deciding whether to declare tzname.
32125         * lib/strftime.c (tzname): Likewise.
32126
32127 2008-01-15  Bruno Haible  <bruno@clisp.org>
32128
32129         Work around a MacOS X 10.5 bug in frexpl().
32130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32131         * doc/functions/frexpl.texi: Document the bug.
32132         Reported by Elias Pipping <pipping@gentoo.org>.
32133
32134 2008-01-14  Eric Blake  <ebb9@byu.net>
32135
32136         Touch up previous patch.
32137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32138         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32139
32140         Convert strcasestr module to use Two-Way algorithm.
32141         * modules/strcasestr-simple: New module, based on the old
32142         strcasestr, but with Two-Way rather than KMP.
32143         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32144         * lib/string.in.h (rpl_strcasestr): Declare.
32145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32146         performance.
32147         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32148         * modules/string (Makefile.am): Support strcasestr.
32149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32150         * modules/strcasestr-tests (Depends-on): Check for alarm.
32151         * tests/test-strcasestr.c: Augment test.
32152         * lib/str-two-way.h: Clean up stray macro.
32153         * NEWS: Document new module.
32154         * MODULES.html.sh (string handling): Likewise.
32155         * doc/functions/strcasestr.texi: New file.
32156         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32157         here, since it is not a POSIX function.
32158
32159 2008-01-14  Colin Watson  <cjwatson@debian.org>
32160             Bruno Haible  <bruno@clisp.org>
32161
32162         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32163         works fine; if not, set REPLACE_STRSIGNAL.
32164         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32166         REPLACE_STRSIGNAL.
32167         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32168         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32169         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32170
32171 2008-01-14  Bruno Haible  <bruno@clisp.org>
32172
32173         * modules/strsignal (Include): Change to <string.h>.
32174
32175 2008-01-14  Colin Watson  <cjwatson@debian.org>
32176
32177         * modules/argp (Notice): Add a notice recommending to change
32178         XGETTEXT_OPTIONS.
32179         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32180
32181 2008-01-13  Colin Watson  <cjwatson@debian.org>
32182
32183         * modules/strsignal-tests: New file.
32184         * tests/test-strsignal.c: New file.
32185
32186         * lib/strsignal.c: New file, from glibc with modifications.
32187         * lib/siglist.h: New file, from glibc with modifications.
32188         * lib/string.in.h (strsignal): New declaration.
32189         * m4/strsignal.m4: New file.
32190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32191         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32192         * modules/strsignal: New file.
32193         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32194         HAVE_DECL_STRSIGNAL.
32195
32196 2008-01-13  Bruno Haible  <bruno@clisp.org>
32197
32198         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32199         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32201         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32202
32203 2008-01-13  Bruno Haible  <bruno@clisp.org>
32204
32205         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32206         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32207         * lib/argp.h (__attribute__): Likewise.
32208         * lib/c-stack.c (__attribute__): Likewise.
32209         * lib/error.h (__attribute__): Likewise.
32210         * lib/fts.c (__attribute__): Likewise.
32211         * lib/openat.h (__attribute__): Likewise.
32212         * lib/stdio.in.h (__attribute__): Likewise.
32213         * lib/string.in.h (__attribute__): Likewise.
32214         * lib/utimens.c (__attribute__): Likewise.
32215         * lib/vasnprintf.h (__attribute__): Likewise.
32216         * lib/xalloc.h (__attribute__): Likewise.
32217         * lib/xprintf.h (__attribute__): Likewise.
32218         * lib/xstrtol.h (__attribute__): Likewise.
32219         * lib/xvasprintf.h (__attribute__): Likewise.
32220
32221 2008-01-12  Bruno Haible  <bruno@clisp.org>
32222
32223         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32224         * doc/glibc-headers/a.out.texi: New file.
32225         * doc/glibc-headers/aliases.texi: New file.
32226         * doc/glibc-headers/alloca.texi: New file.
32227         * doc/glibc-headers/ar.texi: New file.
32228         * doc/glibc-headers/argp.texi: New file.
32229         * doc/glibc-headers/argz.texi: New file.
32230         * doc/glibc-headers/byteswap.texi: New file.
32231         * doc/glibc-headers/crypt.texi: New file.
32232         * doc/glibc-headers/endian.texi: New file.
32233         * doc/glibc-headers/envz.texi: New file.
32234         * doc/glibc-headers/err.texi: New file.
32235         * doc/glibc-headers/error.texi: New file.
32236         * doc/glibc-headers/execinfo.texi: New file.
32237         * doc/glibc-headers/fpu_control.texi: New file.
32238         * doc/glibc-headers/fstab.texi: New file.
32239         * doc/glibc-headers/fts.texi: New file.
32240         * doc/glibc-headers/getopt.texi: New file.
32241         * doc/glibc-headers/ieee754.texi: New file.
32242         * doc/glibc-headers/ifaddrs.texi: New file.
32243         * doc/glibc-headers/libintl.texi: New file.
32244         * doc/glibc-headers/mcheck.texi: New file.
32245         * doc/glibc-headers/mntent.texi: New file.
32246         * doc/glibc-headers/obstack.texi: New file.
32247         * doc/glibc-headers/paths.texi: New file.
32248         * doc/glibc-headers/printf.texi: New file.
32249         * doc/glibc-headers/pty.texi: New file.
32250         * doc/glibc-headers/resolv.texi: New file.
32251         * doc/glibc-headers/shadow.texi: New file.
32252         * doc/glibc-headers/sysexits.texi: New file.
32253         * doc/glibc-headers/ttyent.texi: New file.
32254
32255 2008-01-12  Jim Meyering  <meyering@redhat.com>
32256
32257         announce-gen: emit Gnulib's git-based version string.
32258         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32259         New option --gnulib-version=V, where V is expected to be
32260         the output of running git describe in the gnulib directory.
32261         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32262         not useful, and plan to stop publishing an xdelta file with each
32263         coreutils release.
32264
32265         * build-aux/announce-gen: Also check for lzma-compressed files.
32266
32267 2008-01-11  Bruno Haible  <bruno@clisp.org>
32268
32269         * tests/test-memmem.c (main): Increase maximum allowed time.
32270         * tests/test-strstr.c (main): Likewise.
32271
32272 2008-01-11  Bruno Haible  <bruno@clisp.org>
32273
32274         * doc/functions/memmem.texi: Add more precisions about platforms.
32275         * doc/functions/strstr.texi: Likewise.
32276
32277 2008-01-10  Eric Blake  <ebb9@byu.net>
32278
32279         * m4/strstr.m4: Delete cruft from copy-n-paste.
32280         Reported by Bruno Haible.
32281
32282 2008-01-10  Bruno Haible  <bruno@clisp.org>
32283
32284         Make c-strstr rely on strstr.
32285         * lib/c-strstr.c: Don't include str-kmp.h.
32286         (c_strstr): Define in terms of strstr.
32287         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32288         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32289
32290 2008-01-10  Bruno Haible  <bruno@clisp.org>
32291
32292         * doc/gnulib.texi (String Functions in C Locale): New section.
32293         * doc/c-ctype.texi: New file.
32294         * doc/c-strcase.texi: New file.
32295         * doc/c-strcaseeq.texi: New file.
32296         * doc/c-strcasestr.texi: New file.
32297         * doc/c-strstr.texi: New file.
32298         * doc/c-strtod.texi: New file.
32299         * doc/c-strtold.texi: New file.
32300
32301 2008-01-10  Eric Blake  <ebb9@byu.net>
32302
32303         * lib/relocatable.h: Fix a comment.
32304
32305 2008-01-10  Eric Blake  <ebb9@byu.net>
32306
32307         Share two-way algorithm.
32308         * lib/str-two-way.h: New file, merged from...
32309         * lib/memmem.c: ...here...
32310         * lib/strstr.c: ...and here.
32311         * modules/memmem (Files): Use it.
32312         * modules/strstr (Files): Likewise.
32313
32314         Avoid quadratic strstr implementations.
32315         * lib/strstr.c: New file.
32316         * m4/strstr.m4: Likewise.
32317         * modules/strstr: Likewise.
32318         * modules/strstr-tests: Likewise.
32319         * tests/test-strstr.c: Likewise.
32320         * lib/string.in.h (rpl_strstr): Declare.
32321         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32323         * modules/string (Makefile.am): Likewise.
32324         * MODULES.html.sh (string handling): Mention new module.
32325         * doc/functions/strstr.texi (strstr): Document the bug.
32326
32327 2008-01-10  Bruno Haible  <bruno@clisp.org>
32328
32329         * lib/relocatable.h (relocate): State whether result is freshly
32330         allocated or not.
32331         * lib/relocatable.c (relocate): Return a freshly allocated string
32332         instead of a pointer to a privately held string.
32333         Reported by Sylvain Beucler <beuc@gnu.org>.
32334
32335 2008-01-10  Colin Watson  <cjwatson@debian.org>
32336
32337         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32338         s/S_ISNLK/S_ISLNK/.
32339
32340 2008-01-09  Bruno Haible  <bruno@clisp.org>
32341
32342         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32343         and other files.
32344         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32345         if it's only a guess.
32346         * modules/memmem: Simplify by depending on memmem-simple.
32347
32348 2008-01-09  Bruno Haible  <bruno@clisp.org>
32349
32350         Work around OpenBSD 4.0 tdelete() bug.
32351         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32352         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32353         macros and don't redefine the enum values.
32354         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32355         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32356         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32357
32358 2008-01-09  Bruno Haible  <bruno@clisp.org>
32359
32360         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32361         (main): Don't perform the tests if setlocale did not install a UTF-8
32362         locale. Needed on OpenBSD 4.0.
32363         * modules/wcwidth-tests (Depends-on): Add localcharset.
32364
32365 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32366
32367         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32368         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32369         * NEWS: announce this.
32370         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32371
32372 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32373         and Eric Blake  <ebb9@byu.net>
32374
32375         Add memmem-simple module.
32376         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32377         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32378         * modules/memmem-simple: New file.
32379         * modules/memmem (Description): Tweak.
32380         * MODULES.html.sh (string handling): Mention new module.
32381         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32382         addressed by memmem-simple.
32383         * NEWS: Document the difference.
32384
32385 2008-01-09  Eric Blake  <ebb9@byu.net>
32386
32387         Give gcc some memmem optimization hints.
32388         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32389         (strcasestr): Declare as pure.
32390         * modules/memmem (Maintainer): Claim my implementation.
32391
32392 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32393
32394         Support AIX 6.1 and higher.
32395         * build-aux/config.libpath: Likewise.
32396         * build-aux/config.rpath: Likewise.
32397
32398 2008-01-08  Jim Meyering  <meyering@redhat.com>
32399             Bruno Haible  <bruno@clisp.org>
32400
32401         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32402         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32403         Reported by Peter Fales in
32404         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32405
32406 2008-01-08  Bruno Haible  <bruno@clisp.org>
32407
32408         * modules/unictype/category-of (Depends-on): Add
32409         unictype/category-none.
32410         * modules/unictype/category-and-tests (Depends-on): Add
32411         unictype/category-{L,N,Lu,Nd}.
32412         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32413         * modules/unictype/category-or-tests (Depends-on): Add
32414         unictype/category-{L,N}.
32415         * modules/unictype/category-name-tests (Depends-on): Add
32416         unictype/category-{Z,Nl}.
32417         Reported by Simon Josefsson.
32418
32419 2008-01-08  Bruno Haible  <bruno@clisp.org>
32420
32421         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32422         convention better.
32423         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32424         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32425         Reported by Peter Miller <millerp@canb.auug.org.au>.
32426
32427 2008-01-08  Eric Blake  <ebb9@byu.net>
32428
32429         Rewrite memmem to guarantee linear complexity without malloc.
32430         * lib/memmem.c (memmem): Use Two-Way rather than
32431         Knuth-Morris-Pratt, to allow O(1) space usage.
32432         (critical_factorization, two_way_short_needle)
32433         (two_way_long_needle): New functions.
32434         (knuth_morris_pratt): Delete.
32435         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32436         Add stdint.
32437         * tests/test-memmem.c (main): Add tests for periodic needle and
32438         sublinear performance.
32439         * doc/functions/memmem.texi (memmem): Document other deficiencies
32440         in cygwin and older glibc.
32441
32442 2008-01-08  Bruno Haible  <bruno@clisp.org>
32443
32444         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32445         augmentation.
32446
32447 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32448
32449         Add a configure time option: --disable-acl.
32450         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32451         AC_ARG_ENABLE(acl).
32452
32453 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32454
32455         * tests/test-localename.c: Don't include obsolete "setenv.h".
32456
32457         * modules/localename-tests (Depends-on): Need unsetenv.
32458
32459 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32460
32461         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32462
32463 2008-01-06  Colin Watson  <cjwatson@debian.org>
32464
32465         * users.txt: Add man-db.
32466
32467 2008-01-07  Bruno Haible  <bruno@clisp.org>
32468
32469         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32470         previous section name.
32471
32472 2008-01-07  Bruno Haible  <bruno@clisp.org>
32473
32474         * lib/progname.c (set_program_name): Don't strip off a leading
32475         "lt-" prefix outside a .libs directory.
32476         Suggested by Paul Eggert.
32477
32478 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32479             Bruno Haible  <bruno@clisp.org>
32480
32481         Improve memory cleanup in 'relocatable' module.
32482         * lib/relocatable.h (compute_curr_prefix): Change return type to
32483         'char *'.
32484         * lib/relocatable.c (compute_curr_prefix): Change return type to
32485         'char *'. Free curr_installdir after use.
32486         (relocate): Free curr_prefix_better after use.
32487         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32488
32489 2008-01-01  Bruno Haible  <bruno@clisp.org>
32490
32491         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32492         failure on older glibc systems.
32493         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32494
32495 2008-01-05  Eric Blake  <ebb9@byu.net>
32496
32497         Avoid quadratic system memmem.
32498         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32499         Reported by Ralf Wildenhues.
32500
32501         Fix memmem test for mingw.
32502         * modules/memmem-tests (configure.ac): Check for alarm.
32503         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32504         it.
32505         * doc/functions/memmem.texi: New file.
32506         * doc/gnulib.texi (Function Substitutes): Add memmem.
32507         Reported by Bruno Haible.
32508
32509 2008-01-04  Bruno Haible  <bruno@clisp.org>
32510
32511         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32512         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32513         gl_HEADER_STRING_H_DEFAULTS.
32514
32515 2008-01-04  Eric Blake  <ebb9@byu.net>
32516
32517         Shorten duration of memmem test.
32518         * tests/test-memmem.c (main): Use alarm to declare failure if test
32519         is taking too long.
32520         Reported by Ralf Wildenhues.
32521
32522 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32523
32524         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32525         string, needed by strerror.
32526
32527 2008-01-03  Colin Watson  <cjwatson@debian.org>
32528             Bruno Haible  <bruno@clisp.org>
32529
32530         * doc/gnulib-tool.texi (Localization): New section.
32531
32532 2008-01-02  Bruno Haible  <bruno@clisp.org>
32533
32534         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32535         variables to 'unsigned char *' type.
32536         Reported by Paul Eggert.
32537
32538 2008-01-02  Jim Meyering  <jim@meyering.net>
32539
32540         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32541
32542 2007-12-31  Jim Meyering  <jim@meyering.net>
32543
32544         Avoid use of private FTS type name.
32545         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32546
32547 2007-12-30  Karl Berry  <karl@gnu.org>
32548
32549         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32550         work around defect in Texinfo and/or the standalone Info browser.
32551
32552 2007-12-30  Bruno Haible  <bruno@clisp.org>
32553
32554         Unify 5 copies of the KMP code.
32555         * lib/str-kmp.h: New file.
32556         * lib/c-strcasestr.c: Include str-kmp.h.
32557         (knuth_morris_pratt): Remove function.
32558         (c_strcasestr): Update.
32559         * lib/c-strstr.c: Include str-kmp.h.
32560         (knuth_morris_pratt): Remove function.
32561         (c_strcasestr): Update.
32562         * lib/mbscasestr.c: Include str-kmp.h.
32563         (knuth_morris_pratt_unibyte): Remove function.
32564         * lib/mbsstr.c: Include str-kmp.h.
32565         (knuth_morris_pratt_unibyte): Remove function.
32566         * lib/strcasestr.c: Include str-kmp.h.
32567         (knuth_morris_pratt): Remove function.
32568         (strcasestr): Update.
32569         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32570         * modules/c-strstr (Files): Likewise.
32571         * modules/mbscasestr (Files): Likewise.
32572         * modules/mbsstr (Files): Likewise.
32573         * modules/strcasestr (Files): Likewise.
32574         Suggested by Paul Eggert.
32575
32576 2007-12-30  Bruno Haible  <bruno@clisp.org>
32577
32578         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32579         defined.
32580
32581 2007-12-30  Bruno Haible  <bruno@clisp.org>
32582
32583         * lib/xmalloca.h: Include xalloc.h.
32584         (xnmalloca): New macro.
32585
32586 2007-12-30  Bruno Haible  <bruno@clisp.org>
32587
32588         * lib/malloca.h (nmalloca): New macro.
32589         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32590         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32591         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32592         knuth_morris_pratt_multibyte): Likewise.
32593         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32594         knuth_morris_pratt_multibyte): Likewise.
32595         * lib/memmem.c (knuth_morris_pratt): Likewise.
32596         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32597
32598 2007-12-25  Bruno Haible  <bruno@clisp.org>
32599
32600         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32601         * lib/glob.c: Don't include openat.h.
32602         (link_exists2_p): Add back the code that deals with the
32603         !GLOB_ALTDIRFUNC case.
32604         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32605         let it do the filename concatenation.
32606         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32607         * modules/glob (Depends-on): Remove openat.
32608
32609 2007-12-31  Bruno Haible  <bruno@clisp.org>
32610
32611         * modules/dirfd (License): Change to LGPLv2+.
32612         Approved by Jim Meyering.
32613
32614 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32615
32616         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32617         when multiplying M by sizeof (size_t).
32618
32619 2007-12-10  Martin Lambers  <marlam@marlam.de>
32620
32621         Override getpagesize on mingw.
32622         * lib/getpagesize.c: New file.
32623         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32624         * modules/getpagesize (Files): Add lib/getpagesize.c.
32625         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
32626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32627         REPLACE_GETPAGESIZE.
32628         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
32629
32630 2007-12-25  Bruno Haible  <bruno@clisp.org>
32631
32632         * modules/localcharset (Notice): New field.
32633         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
32634         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
32635
32636 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
32637             Bruno Haible  <bruno@clisp.org>
32638
32639         Avoid using the syntax symbol() in formatted documentation.
32640         * MODULES.html.sh (func_module): When replacing symbol() with a
32641         hyperlink, remove the parentheses. Show an error if some remain.
32642         Recognize and render the '...' syntax.
32643         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
32644         Rework. Add paragraph about GCC's inlining.
32645         * doc/alloca.texi: Likewise.
32646         * doc/error.texi: Remove parentheses from symbol reference.
32647         * doc/gnulib-intro.texi: Likewise.
32648         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
32649         * modules/fnmatch (Description): Reword to say "the ... function".
32650         * modules/full-read (Description): Likewise.
32651         * modules/full-write (Description): Likewise.
32652         * modules/safe-read (Description): Likewise.
32653         * modules/safe-write (Description): Likewise.
32654         * modules/strchrnul (Description): Likewise.
32655         * modules/trim (Description): Likewise.
32656         * modules/error (Description): Remove parentheses from symbol
32657         references.
32658         * modules/verror (Description): Likewise.
32659         Reported by Karl Berry.
32660
32661 2007-12-25  Bruno Haible  <bruno@clisp.org>
32662
32663         Fixup after 2007-10-16 commit.
32664         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
32665
32666 2007-12-24  Bruno Haible  <bruno@clisp.org>
32667
32668         Make --enable-relocatable work with DESTDIR.
32669         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
32670         to compute installdir from destprog.
32671         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
32672         also set the RELOC_DESTDIR variable.
32673         Reported by Левашев Иван <octagram@bluebottle.com>.
32674
32675 2007-12-24  Bruno Haible  <bruno@clisp.org>
32676
32677         Fix link error due to xalloc_die().
32678         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
32679         of xreadlink.
32680         * lib/relocwrapper.c: Update comments.
32681         * build-aux/install-reloc: Remove xreadlink.c from file list.
32682         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
32683         xreadlink.c.
32684         Reported by Левашев Иван <octagram@bluebottle.com>.
32685
32686 2007-12-24  Bruno Haible  <bruno@clisp.org>
32687
32688         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
32689         * lib/setenv.h: Remove file.
32690         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
32691         lib/setenv.h.
32692         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
32693         (Depends-on): Add stdlib.
32694         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
32695         gl_FUNC_UNSETENV.
32696         (Include): Replace setenv.h with <stdlib.h>.
32697         * modules/unsetenv: New file.
32698         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
32699         * lib/unsetenv.c: Include <stdlib.h> first.
32700         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
32701         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
32702         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
32703         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
32704         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
32705         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
32707         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32708         * doc/functions/unsetenv.texi: Update.
32709         * modules/xsetenv (Depends-on): Add unsetenv.
32710         * modules/getdate (Depends-on): Likewise.
32711         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
32712         * lib/xsetenv.c: Don't include setenv.h.
32713         * lib/getdate.y: Likewise.
32714         * lib/relocwrapper.c: Likewise.
32715         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
32716         (Depends-on): Add stdlib.
32717         * NEWS: Mention the changes.
32718         Reported by Левашев Иван <octagram@bluebottle.com>.
32719
32720 2007-12-23  Bruno Haible  <bruno@clisp.org>
32721
32722         * lib/memmem.c (memmem): Use lowercase variable names. Tab
32723         indentation.
32724
32725 2007-12-23  Bruno Haible  <bruno@clisp.org>
32726
32727         * lib/c-strcasestr.c: Add more comments.
32728         * lib/c-strstr.c: Likewise.
32729         * lib/mbscasestr.c: Likewise.
32730         * lib/mbsstr.c: Likewise.
32731         * lib/strcasestr.c: Likewise.
32732         * lib/memmem.c: Likewise.
32733
32734 2007-12-23  Bruno Haible  <bruno@clisp.org>
32735
32736         * tests/test-memmem.c: Include <string.h> first.
32737
32738 2007-12-22  Bruno Haible  <bruno@clisp.org>
32739
32740         * gnulib-tool (func_create_testdir): Change $auxdir while generating
32741         the contents of $testsbase.
32742         Reported by Ralf Wildenhues.
32743
32744 2007-12-22  Bruno Haible  <bruno@clisp.org>
32745
32746         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
32747         two variables local_ldadd_before, local_ldadd_last.
32748
32749 2007-12-20  Eric Blake  <ebb9@byu.net>
32750
32751         Work around circular library issue when cross-compiling.
32752         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
32753         that progname.o does not need to pull in rpl_memcmp.
32754
32755 2007-12-19  Eric Blake  <ebb9@byu.net>
32756
32757         Fix memmem to avoid O(n^2) worst-case complexity.
32758         * lib/memmem.c (knuth_morris_pratt): New function.
32759         (memmem): Use it if first few naive iterations fail.
32760         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
32761         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
32762         * modules/memchr (License): Likewise.
32763         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
32764         malloca.
32765         * tests/test-memmem.c: Rewrite, borrowing ideas from
32766         test-mbsstr1.c; the old version wouldn't even compile!
32767         * modules/memmem-tests: New file.
32768         * lib/string.in.h (rpl_memmem): Add declaration.
32769         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
32770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
32771         REPLACE_MEMMEM.
32772
32773 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32774
32775         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
32776         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
32777         before any system include files, and undef after them all.  This
32778         should fix a problem on VMS reported by John E. Malmberg in
32779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
32780
32781 2007-12-17  Eric Blake  <ebb9@byu.net>
32782
32783         Revert addition of verify, for BSD/OS.
32784         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
32785         can't handle large files, for the sake of obsolete platforms.
32786         * modules/fseeko (Depends-on): Remove verify.
32787         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
32788         * doc/functions/ftello.texi (ftello): Likewise.
32789         * doc/functions/fgetpos.texi (fgetpos): Likewise.
32790         Reported by Larry Jones.
32791
32792 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
32793
32794         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
32795         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
32796
32797 2007-12-17  Jim Meyering  <meyering@redhat.com>
32798
32799         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
32800         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
32801         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
32802         * modules/getcwd (Depends-on): Add openat.
32803         Reported by Petr Salinger.
32804
32805 2007-12-17  Bruno Haible  <bruno@clisp.org>
32806
32807         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
32808         avoid a segmentation fault of the configure test on x86_64 systems.
32809
32810 2007-12-15  Jim Meyering  <meyering@redhat.com>
32811
32812         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
32813
32814 2007-12-13  Eric Blake  <ebb9@byu.net>
32815
32816         Another fseek test.
32817         * tests/test-fseek.c (main): Also test ungetc handling.
32818         * tests/test-fseeko.c (main): Likewise.
32819         * modules/fseeko (Depends-on): Add verify.
32820         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
32821         large.
32822         Reported by Larry Jones.
32823
32824         Fix fseeko on mingw.
32825         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
32826         seek.
32827
32828         Beef up fseek tests.
32829         * tests/test-fseek.c (main): Also test eof handling.
32830         * tests/test-fseeko.c (main): Likewise.
32831         Reported by Larry Jones.
32832
32833 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
32834
32835         Fix fseeko on BSD-based platforms.
32836         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
32837         successful seek.
32838
32839 2007-12-12  Eric Blake  <ebb9@byu.net>
32840
32841         Allow circular dependency of separate libtests.a
32842         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
32843         when use_libtests.
32844
32845 2007-12-11  Eric Blake  <ebb9@byu.net>
32846
32847         Fix bug with -0.0L in previous patch.
32848         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
32849         * tests/test-isnan.c (main): Also test on zeroes.
32850         * tests/test-isnanf.c (main): Likewise.
32851         * tests/test-isnanl.h (main): Likewise.
32852
32853         Detect pseudo-denormals on x86 even when cross-compiling.
32854         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
32855         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
32856         invalid bit patterns that happen to satisfy ==.
32857
32858         Avoid link failures with separate libtests.a.
32859         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
32860         last, to satisfy circular dependencies.
32861
32862 2007-12-11  Eric Blake  <ebb9@byu.net>
32863         and Bruno Haible  <bruno@clisp.org>
32864
32865         Fix OpenBSD 4.0 <float.h> handling of long double.
32866         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
32867         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
32868         * doc/headers/float.texi (float.h): Document OpenBSD bug.
32869
32870 2007-12-11  Jim Meyering  <meyering@redhat.com>
32871
32872         * users.txt: Add libvirt.
32873
32874         Support versions of autoconf prior to 2.59c.
32875         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
32876         if it is not already defined.
32877
32878 2007-12-09  Bruno Haible  <bruno@clisp.org>
32879
32880         Let 'gnulib-tool --import' collect sources needed for the tests in
32881         tests/ rather than in lib/.
32882         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
32883         argument. If true, add rules to generate libtests.a, and put libtests.a
32884         into $(LDADD). Consider source files in subdirectories and set
32885         uses_subdirs.
32886         (func_emit_initmacro_start, func_emit_initmacro_end,
32887         func_emit_initmacro_done): Pass all arguments explicitly.
32888         (func_import): Determine two module lists main_modules,
32889         testsrelated_modules. Determine use_libtests. Determine two variables
32890         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
32891         instead of just sed_transform_lib_file. Determine two variables
32892         main_files and testsrelated_files. Compute 'files' as the union of
32893         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
32894         func_add_or_update. In the generated gnulib-comp.m4, collect the
32895         object files for tests/ in different variables than those for lib/.
32896         Substitute LIBTESTS_LIBDEPS.
32897         (func_create_testdir): Combine the uses_subdirs results from
32898         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
32899
32900 2007-12-09  Bruno Haible  <bruno@clisp.org>
32901
32902         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
32903         the build-aux directory.
32904
32905 2007-12-09  Bruno Haible  <bruno@clisp.org>
32906
32907         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
32908         introduced on 2006-09-09.
32909
32910 2007-12-07  Jim Meyering  <meyering@redhat.com>
32911
32912         Let these macros work also with autoconf-2.59.
32913         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
32914         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
32915         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32916
32917 2007-12-06  Jim Meyering  <meyering@redhat.com>
32918
32919         Avoid a configure-time syntax error in gl_FUNC_ACL.
32920         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
32921         function in each branch, before testing the cache variable.
32922
32923 2007-12-04  Eric Blake  <ebb9@byu.net>
32924
32925         Make scripts executable.
32926         * build-aux/config.guess: Add execute permissions.
32927         * build-aux/config.sub: Likewise.
32928         * build-aux/gendocs.sh: Likewise.
32929
32930         Fix frexp on mingw.
32931         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
32932         cross-compiling.
32933         * doc/functions/frexp.texi (frexp): Document the bug.
32934
32935         Make cygwin fseeko check more reliable.
32936         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
32937         version numbers, rather than unrelated feature check.
32938         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
32939         * doc/functions/ftello.texi (ftello): Likewise.
32940         Reported by Bruno Haible.
32941
32942         * m4/strerror.m4: Bump version number.
32943
32944 2007-12-03  Bruno Haible  <bruno@clisp.org>
32945
32946         * doc/functions/mprotect.texi: Mention the mingw problem.
32947
32948 2007-12-03  Eric Blake  <ebb9@byu.net>
32949
32950         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
32951         REPLACE_STRERROR is initialized before this macro.
32952
32953 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
32954
32955         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
32956         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
32957         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
32958         put -lsec in even for programs other than 'ls'.  This fixes a problem
32959         for gettext reported by Bruno Haible in
32960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
32961         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
32962         Add support for Solaris 10.  This isn't efficient, but should get the
32963         job done for now.
32964
32965 2007-12-03  James Youngman  <jay@gnu.org>
32966
32967         * doc/regexprops-generic.texi: change "an close-group" to "a
32968         close-group" and "illegal" to "not allowed".
32969
32970 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32971
32972         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
32973         pr_byname.h. Needed for the rare case when the maintainer has done
32974         "make maintainer-clean" in the source directory and then attempts a
32975         build outside the source directory.
32976         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
32977         scripts_byname.h.
32978
32979 2007-12-02  Martin Lambers <marlam@marlam.de>
32980             Bruno Haible  <bruno@clisp.org>
32981
32982         * lib/getpagesize.h: Remove file.
32983         * lib/unistd.in.h: Include declaration of getpagesize here.
32984         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
32985         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
32986         HAVE_SYS_PARAM_H.
32987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
32988         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32989         * modules/getpagesize (Files): Remove lib/getpagesize.h.
32990         (Depends-on): Add unistd.
32991         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32992         (Include): Use <unistd.h> instead of getpagesize.h.
32993         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
32994         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32995         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
32996         gl_GETPAGESIZE invocation, already handled by module dependency.
32997         * lib/pagealign_alloc.c: Don't include getpagesize.h.
32998
32999 2007-12-02  Bruno Haible  <bruno@clisp.org>
33000
33001         * modules/strings-tests: New file.
33002         * tests/test-strings.c: New file.
33003
33004         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33005         * lib/strings.in.h: New file.
33006         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33007         * m4/strings_h.m4: New file.
33008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33009         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33010         * modules/strings: New file.
33011         * modules/string (Makefile.am): Update.
33012         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33013         Reported by Karl Berry.
33014
33015 2007-12-01  Eric Blake  <ebb9@byu.net>
33016
33017         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33018         accomodate fix in cygwin 1.5.25.
33019
33020 2007-12-01  Jim Meyering  <meyering@redhat.com>
33021
33022         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33023         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33024         that would inhibit utf8-optimization of a regexp containing line-
33025         or buffer-anchors, e.g., `^', `$'.
33026
33027 2007-11-30  Bruno Haible  <bruno@clisp.org>
33028
33029         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33030         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33031         glthread_recursive_lock_init.
33032         * lib/lock.c (glthread_recursive_lock_init)
33033         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33034         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33035
33036 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33037
33038         New function qset_acl, like set_acl but with syscall semantics.
33039         * lib/acl.h (qset_acl): New decl.
33040         * lib/acl.c (qset_acl): New function.
33041         (set_acl): Use new function.  Use more-consistent diagnostics.
33042
33043 2007-11-28  Jim Meyering  <meyering@redhat.com>
33044
33045         * modules/physmem (License): Change from GPL to LGPLv2+.
33046
33047 2007-11-26  Bruno Haible  <bruno@clisp.org>
33048
33049         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33050         'long double' type has excess precision.
33051         Reported by Jim Meyering in
33052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33053
33054 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33055
33056         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33057         Sync from <http://gnu.org/licenses>.
33058         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33059         with license text from same location.
33060         * doc/maintain.texi, doc/standards.texi:  Sync from
33061         <http://savannah.gnu.org/projects/gnustandards>.
33062
33063 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33064         and Jim Meyering  <meyering@redhat.com>
33065
33066         Adjust getdate' grammar to accept a slightly more regular language.
33067         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33068         Before, the former was rejected.
33069         * lib/getdate.y (digits_to_date_time): New function, factored
33070         out of ...
33071         (number): ...here.  Just call digits_to_date_time.
33072         (hybrid): New non-terminal to handle an <unsigned number,
33073         signed relative offset> sequence consistently.
33074
33075 2007-11-18  Jim Meyering  <meyering@redhat.com>
33076
33077         Pull my changes from coreutils:
33078         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33079         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33080         use of $gnulib_tool_option_extras, so that it's separated from the
33081         preceding argument.
33082
33083         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33084         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33085         parent destination directories before copying a file into place.
33086
33087 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33088
33089         bootstrap: work also with 4-argument variant of AC_INIT
33090         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33091
33092 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33093
33094         Port test-getaddrinfo to Solaris.
33095         Problem reported by Bruno Haible in
33096         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33097         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33098         explanation of setting 'hints'.
33099         Don't reject an implementation merely because it returns EAI_SERVICE.
33100         (EAI_SERVICE): Define to 0 if not defined.
33101
33102 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33103
33104         The license of gnu-make and posix-shell is now "GPLed build tool".
33105         * modules/gnu-make (License): Likewise.
33106         * modules/posix-shell (License): Likewise.
33107
33108         New module posix-shell, for determining a POSIX shell
33109         or perhaps something that is close enough to a POSIX shell.
33110         * m4/posix-shell.m4: New file.
33111         * modules/posix-shell: New file.
33112
33113         * MODULES.html.sh: Mention new module.
33114
33115         New module gnu-make, for determining whether we're using GNU Make.
33116         * m4/gnu-make.m4: New file.
33117         * modules/gnu-make: New file.
33118         * MODULES.html.sh: Mention new module.
33119
33120 2007-11-14  Jim Meyering  <meyering@redhat.com>
33121
33122         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33123         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33124         use this macro to create a function _definition_.
33125         Remove useless "#undef ARGMATCH_DIE".
33126
33127 2007-11-14  Bruno Haible  <bruno@clisp.org>
33128
33129         * lib/config.charset: Update for OpenBSD 4.1.
33130         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33131
33132 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33133
33134         Document 64-bit #if problems in stdint.texi.
33135         * doc/headers/stdint.texi (stdint.h): Mention problems with
33136         64-bit-#if, and how to work around them.
33137
33138         Don't insist on 'long long int' support in the preprocessor.  It
33139         breaks too many things.  For example, PRIdMAX still uses a 'long
33140         long int' format with the latest Sun compiler, even though
33141         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33142         preprocessor problem.  This causes the latest coreutils to dump
33143         core on Solaris 10 sparc with the Sun C compiler.
33144         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33145         the troublesome expressions at configure-time, not at #if-time.
33146         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33147         preprocessor.
33148         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33149         compile-time C checks, done at 'configure'-time.
33150         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33151         * modules/inttypes (Makefile): Substitute the new symbols that
33152         gl_INTTYPES_H now generates.
33153         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33154
33155 2007-11-12  Bruno Haible  <bruno@clisp.org>
33156
33157         Tests for Unicode character classification functions.
33158
33159         * modules/unictype/bidicategory-byname-tests: New file.
33160         * modules/unictype/bidicategory-name-tests: New file.
33161         * modules/unictype/bidicategory-of-tests: New file.
33162         * modules/unictype/bidicategory-test-tests: New file.
33163         * modules/unictype/block-list-tests: New file.
33164         * modules/unictype/block-of-tests: New file.
33165         * modules/unictype/block-test-tests: New file.
33166         * modules/unictype/category-C-tests: New file.
33167         * modules/unictype/category-Cc-tests: New file.
33168         * modules/unictype/category-Cf-tests: New file.
33169         * modules/unictype/category-Cn-tests: New file.
33170         * modules/unictype/category-Co-tests: New file.
33171         * modules/unictype/category-Cs-tests: New file.
33172         * modules/unictype/category-L-tests: New file.
33173         * modules/unictype/category-Ll-tests: New file.
33174         * modules/unictype/category-Lm-tests: New file.
33175         * modules/unictype/category-Lo-tests: New file.
33176         * modules/unictype/category-Lt-tests: New file.
33177         * modules/unictype/category-Lu-tests: New file.
33178         * modules/unictype/category-M-tests: New file.
33179         * modules/unictype/category-Mc-tests: New file.
33180         * modules/unictype/category-Me-tests: New file.
33181         * modules/unictype/category-Mn-tests: New file.
33182         * modules/unictype/category-N-tests: New file.
33183         * modules/unictype/category-Nd-tests: New file.
33184         * modules/unictype/category-Nl-tests: New file.
33185         * modules/unictype/category-No-tests: New file.
33186         * modules/unictype/category-P-tests: New file.
33187         * modules/unictype/category-Pc-tests: New file.
33188         * modules/unictype/category-Pd-tests: New file.
33189         * modules/unictype/category-Pe-tests: New file.
33190         * modules/unictype/category-Pf-tests: New file.
33191         * modules/unictype/category-Pi-tests: New file.
33192         * modules/unictype/category-Po-tests: New file.
33193         * modules/unictype/category-Ps-tests: New file.
33194         * modules/unictype/category-S-tests: New file.
33195         * modules/unictype/category-Sc-tests: New file.
33196         * modules/unictype/category-Sk-tests: New file.
33197         * modules/unictype/category-Sm-tests: New file.
33198         * modules/unictype/category-So-tests: New file.
33199         * modules/unictype/category-Z-tests: New file.
33200         * modules/unictype/category-Zl-tests: New file.
33201         * modules/unictype/category-Zp-tests: New file.
33202         * modules/unictype/category-Zs-tests: New file.
33203         * modules/unictype/category-and-not-tests: New file.
33204         * modules/unictype/category-and-tests: New file.
33205         * modules/unictype/category-byname-tests: New file.
33206         * modules/unictype/category-name-tests: New file.
33207         * modules/unictype/category-none-tests: New file.
33208         * modules/unictype/category-of-tests: New file.
33209         * modules/unictype/category-or-tests: New file.
33210         * modules/unictype/category-test-withtable-tests: New file.
33211         * modules/unictype/combining-class-tests: New file.
33212         * modules/unictype/ctype-alnum-tests: New file.
33213         * modules/unictype/ctype-alpha-tests: New file.
33214         * modules/unictype/ctype-blank-tests: New file.
33215         * modules/unictype/ctype-cntrl-tests: New file.
33216         * modules/unictype/ctype-digit-tests: New file.
33217         * modules/unictype/ctype-graph-tests: New file.
33218         * modules/unictype/ctype-lower-tests: New file.
33219         * modules/unictype/ctype-print-tests: New file.
33220         * modules/unictype/ctype-punct-tests: New file.
33221         * modules/unictype/ctype-space-tests: New file.
33222         * modules/unictype/ctype-upper-tests: New file.
33223         * modules/unictype/ctype-xdigit-tests: New file.
33224         * modules/unictype/decimal-digit-tests: New file.
33225         * modules/unictype/digit-tests: New file.
33226         * modules/unictype/mirror-tests: New file.
33227         * modules/unictype/numeric-tests: New file.
33228         * modules/unictype/property-alphabetic-tests: New file.
33229         * modules/unictype/property-ascii-hex-digit-tests: New file.
33230         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33231         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33232         * modules/unictype/property-bidi-block-separator-tests: New file.
33233         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33234         * modules/unictype/property-bidi-common-separator-tests: New file.
33235         * modules/unictype/property-bidi-control-tests: New file.
33236         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33237         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33238         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33239         * modules/unictype/property-bidi-european-digit-tests: New file.
33240         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33241         * modules/unictype/property-bidi-left-to-right-tests: New file.
33242         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33243         * modules/unictype/property-bidi-other-neutral-tests: New file.
33244         * modules/unictype/property-bidi-pdf-tests: New file.
33245         * modules/unictype/property-bidi-segment-separator-tests: New file.
33246         * modules/unictype/property-bidi-whitespace-tests: New file.
33247         * modules/unictype/property-byname-tests: New file.
33248         * modules/unictype/property-combining-tests: New file.
33249         * modules/unictype/property-composite-tests: New file.
33250         * modules/unictype/property-currency-symbol-tests: New file.
33251         * modules/unictype/property-dash-tests: New file.
33252         * modules/unictype/property-decimal-digit-tests: New file.
33253         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33254         * modules/unictype/property-deprecated-tests: New file.
33255         * modules/unictype/property-diacritic-tests: New file.
33256         * modules/unictype/property-extender-tests: New file.
33257         * modules/unictype/property-format-control-tests: New file.
33258         * modules/unictype/property-grapheme-base-tests: New file.
33259         * modules/unictype/property-grapheme-extend-tests: New file.
33260         * modules/unictype/property-grapheme-link-tests: New file.
33261         * modules/unictype/property-hex-digit-tests: New file.
33262         * modules/unictype/property-hyphen-tests: New file.
33263         * modules/unictype/property-id-continue-tests: New file.
33264         * modules/unictype/property-id-start-tests: New file.
33265         * modules/unictype/property-ideographic-tests: New file.
33266         * modules/unictype/property-ids-binary-operator-tests: New file.
33267         * modules/unictype/property-ids-trinary-operator-tests: New file.
33268         * modules/unictype/property-ignorable-control-tests: New file.
33269         * modules/unictype/property-iso-control-tests: New file.
33270         * modules/unictype/property-join-control-tests: New file.
33271         * modules/unictype/property-left-of-pair-tests: New file.
33272         * modules/unictype/property-line-separator-tests: New file.
33273         * modules/unictype/property-logical-order-exception-tests: New file.
33274         * modules/unictype/property-lowercase-tests: New file.
33275         * modules/unictype/property-math-tests: New file.
33276         * modules/unictype/property-non-break-tests: New file.
33277         * modules/unictype/property-not-a-character-tests: New file.
33278         * modules/unictype/property-numeric-tests: New file.
33279         * modules/unictype/property-other-alphabetic-tests: New file.
33280         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33281         * modules/unictype/property-other-grapheme-extend-tests: New file.
33282         * modules/unictype/property-other-id-continue-tests: New file.
33283         * modules/unictype/property-other-id-start-tests: New file.
33284         * modules/unictype/property-other-lowercase-tests: New file.
33285         * modules/unictype/property-other-math-tests: New file.
33286         * modules/unictype/property-other-uppercase-tests: New file.
33287         * modules/unictype/property-paired-punctuation-tests: New file.
33288         * modules/unictype/property-paragraph-separator-tests: New file.
33289         * modules/unictype/property-pattern-syntax-tests: New file.
33290         * modules/unictype/property-pattern-white-space-tests: New file.
33291         * modules/unictype/property-private-use-tests: New file.
33292         * modules/unictype/property-punctuation-tests: New file.
33293         * modules/unictype/property-quotation-mark-tests: New file.
33294         * modules/unictype/property-radical-tests: New file.
33295         * modules/unictype/property-sentence-terminal-tests: New file.
33296         * modules/unictype/property-soft-dotted-tests: New file.
33297         * modules/unictype/property-space-tests: New file.
33298         * modules/unictype/property-terminal-punctuation-tests: New file.
33299         * modules/unictype/property-test-tests: New file.
33300         * modules/unictype/property-titlecase-tests: New file.
33301         * modules/unictype/property-unassigned-code-value-tests: New file.
33302         * modules/unictype/property-unified-ideograph-tests: New file.
33303         * modules/unictype/property-uppercase-tests: New file.
33304         * modules/unictype/property-variation-selector-tests: New file.
33305         * modules/unictype/property-white-space-tests: New file.
33306         * modules/unictype/property-xid-continue-tests: New file.
33307         * modules/unictype/property-xid-start-tests: New file.
33308         * modules/unictype/property-zero-width-tests: New file.
33309         * modules/unictype/scripts-tests: New file.
33310         * modules/unictype/syntax-c-ident-tests: New file.
33311         * modules/unictype/syntax-c-whitespace-tests: New file.
33312         * modules/unictype/syntax-java-ident-tests: New file.
33313         * modules/unictype/syntax-java-whitespace-tests: New file.
33314         * tests/unictype/test-bidi_byname.c: New file.
33315         * tests/unictype/test-bidi_name.c: New file.
33316         * tests/unictype/test-bidi_of.c: New file.
33317         * tests/unictype/test-bidi_test.c: New file.
33318         * tests/unictype/test-block_list.c: New file.
33319         * tests/unictype/test-block_of.c: New file.
33320         * tests/unictype/test-block_test.c: New file.
33321         * tests/unictype/test-categ_and.c: New file.
33322         * tests/unictype/test-categ_and_not.c: New file.
33323         * tests/unictype/test-categ_byname.c: New file.
33324         * tests/unictype/test-categ_name.c: New file.
33325         * tests/unictype/test-categ_none.c: New file.
33326         * tests/unictype/test-categ_of.c: New file.
33327         * tests/unictype/test-categ_or.c: New file.
33328         * tests/unictype/test-categ_test_withtable.c: New file.
33329         * tests/unictype/test-combining.c: New file.
33330         * tests/unictype/test-decdigit.c: New file.
33331         * tests/unictype/test-digit.c: New file.
33332         * tests/unictype/test-mirror.c: New file.
33333         * tests/unictype/test-numeric.c: New file.
33334         * tests/unictype/test-pr_byname.c: New file.
33335         * tests/unictype/test-pr_test.c: New file.
33336         * tests/unictype/test-predicate-part1.h: New file.
33337         * tests/unictype/test-predicate-part2.h: New file.
33338         * tests/unictype/test-scripts.c: New file.
33339         * tests/unictype/test-sy_c_ident.c: New file.
33340         * tests/unictype/test-sy_java_ident.c: New file.
33341
33342         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33343         for Unicode 5.0.0.
33344         * tests/unictype/test-categ_Cc.c: Likewise.
33345         * tests/unictype/test-categ_Cf.c: Likewise.
33346         * tests/unictype/test-categ_Cn.c: Likewise.
33347         * tests/unictype/test-categ_Co.c: Likewise.
33348         * tests/unictype/test-categ_Cs.c: Likewise.
33349         * tests/unictype/test-categ_L.c: Likewise.
33350         * tests/unictype/test-categ_Ll.c: Likewise.
33351         * tests/unictype/test-categ_Lm.c: Likewise.
33352         * tests/unictype/test-categ_Lo.c: Likewise.
33353         * tests/unictype/test-categ_Lt.c: Likewise.
33354         * tests/unictype/test-categ_Lu.c: Likewise.
33355         * tests/unictype/test-categ_M.c: Likewise.
33356         * tests/unictype/test-categ_Mc.c: Likewise.
33357         * tests/unictype/test-categ_Me.c: Likewise.
33358         * tests/unictype/test-categ_Mn.c: Likewise.
33359         * tests/unictype/test-categ_N.c: Likewise.
33360         * tests/unictype/test-categ_Nd.c: Likewise.
33361         * tests/unictype/test-categ_Nl.c: Likewise.
33362         * tests/unictype/test-categ_No.c: Likewise.
33363         * tests/unictype/test-categ_P.c: Likewise.
33364         * tests/unictype/test-categ_Pc.c: Likewise.
33365         * tests/unictype/test-categ_Pd.c: Likewise.
33366         * tests/unictype/test-categ_Pe.c: Likewise.
33367         * tests/unictype/test-categ_Pf.c: Likewise.
33368         * tests/unictype/test-categ_Pi.c: Likewise.
33369         * tests/unictype/test-categ_Po.c: Likewise.
33370         * tests/unictype/test-categ_Ps.c: Likewise.
33371         * tests/unictype/test-categ_S.c: Likewise.
33372         * tests/unictype/test-categ_Sc.c: Likewise.
33373         * tests/unictype/test-categ_Sk.c: Likewise.
33374         * tests/unictype/test-categ_Sm.c: Likewise.
33375         * tests/unictype/test-categ_So.c: Likewise.
33376         * tests/unictype/test-categ_Z.c: Likewise.
33377         * tests/unictype/test-categ_Zl.c: Likewise.
33378         * tests/unictype/test-categ_Zp.c: Likewise.
33379         * tests/unictype/test-categ_Zs.c: Likewise.
33380         * tests/unictype/test-ctype_alnum.c: Likewise.
33381         * tests/unictype/test-ctype_alpha.c: Likewise.
33382         * tests/unictype/test-ctype_blank.c: Likewise.
33383         * tests/unictype/test-ctype_cntrl.c: Likewise.
33384         * tests/unictype/test-ctype_digit.c: Likewise.
33385         * tests/unictype/test-ctype_graph.c: Likewise.
33386         * tests/unictype/test-ctype_lower.c: Likewise.
33387         * tests/unictype/test-ctype_print.c: Likewise.
33388         * tests/unictype/test-ctype_punct.c: Likewise.
33389         * tests/unictype/test-ctype_space.c: Likewise.
33390         * tests/unictype/test-ctype_upper.c: Likewise.
33391         * tests/unictype/test-ctype_xdigit.c: Likewise.
33392         * tests/unictype/test-decdigit.h: Likewise.
33393         * tests/unictype/test-digit.h: Likewise.
33394         * tests/unictype/test-numeric.h: Likewise.
33395         * tests/unictype/test-pr_alphabetic.c: Likewise.
33396         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33397         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33398         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33399         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33400         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33401         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33402         * tests/unictype/test-pr_bidi_control.c: Likewise.
33403         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33404         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33405         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33406         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33407         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33408         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33409         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33410         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33411         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33412         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33413         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33414         * tests/unictype/test-pr_combining.c: Likewise.
33415         * tests/unictype/test-pr_composite.c: Likewise.
33416         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33417         * tests/unictype/test-pr_dash.c: Likewise.
33418         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33419         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33420         * tests/unictype/test-pr_deprecated.c: Likewise.
33421         * tests/unictype/test-pr_diacritic.c: Likewise.
33422         * tests/unictype/test-pr_extender.c: Likewise.
33423         * tests/unictype/test-pr_format_control.c: Likewise.
33424         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33425         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33426         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33427         * tests/unictype/test-pr_hex_digit.c: Likewise.
33428         * tests/unictype/test-pr_hyphen.c: Likewise.
33429         * tests/unictype/test-pr_id_continue.c: Likewise.
33430         * tests/unictype/test-pr_id_start.c: Likewise.
33431         * tests/unictype/test-pr_ideographic.c: Likewise.
33432         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33433         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33434         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33435         * tests/unictype/test-pr_iso_control.c: Likewise.
33436         * tests/unictype/test-pr_join_control.c: Likewise.
33437         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33438         * tests/unictype/test-pr_line_separator.c: Likewise.
33439         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33440         * tests/unictype/test-pr_lowercase.c: Likewise.
33441         * tests/unictype/test-pr_math.c: Likewise.
33442         * tests/unictype/test-pr_non_break.c: Likewise.
33443         * tests/unictype/test-pr_not_a_character.c: Likewise.
33444         * tests/unictype/test-pr_numeric.c: Likewise.
33445         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33446         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33447         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33448         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33449         * tests/unictype/test-pr_other_id_start.c: Likewise.
33450         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33451         * tests/unictype/test-pr_other_math.c: Likewise.
33452         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33453         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33454         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33455         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33456         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33457         * tests/unictype/test-pr_private_use.c: Likewise.
33458         * tests/unictype/test-pr_punctuation.c: Likewise.
33459         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33460         * tests/unictype/test-pr_radical.c: Likewise.
33461         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33462         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33463         * tests/unictype/test-pr_space.c: Likewise.
33464         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33465         * tests/unictype/test-pr_titlecase.c: Likewise.
33466         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33467         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33468         * tests/unictype/test-pr_uppercase.c: Likewise.
33469         * tests/unictype/test-pr_variation_selector.c: Likewise.
33470         * tests/unictype/test-pr_white_space.c: Likewise.
33471         * tests/unictype/test-pr_xid_continue.c: Likewise.
33472         * tests/unictype/test-pr_xid_start.c: Likewise.
33473         * tests/unictype/test-pr_zero_width.c: Likewise.
33474         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33475         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33476
33477 2007-11-12  Bruno Haible  <bruno@clisp.org>
33478
33479         Unicode character classification functions.
33480         * lib/unictype.h: New file.
33481         * modules/unictype/base: New file.
33482         * modules/unictype/category-L: New file.
33483         * modules/unictype/category-Lu: New file.
33484         * modules/unictype/category-Ll: New file.
33485         * modules/unictype/category-Lt: New file.
33486         * modules/unictype/category-Lm: New file.
33487         * modules/unictype/category-Lo: New file.
33488         * modules/unictype/category-M: New file.
33489         * modules/unictype/category-Mn: New file.
33490         * modules/unictype/category-Mc: New file.
33491         * modules/unictype/category-Me: New file.
33492         * modules/unictype/category-N: New file.
33493         * modules/unictype/category-Nd: New file.
33494         * modules/unictype/category-Nl: New file.
33495         * modules/unictype/category-No: New file.
33496         * modules/unictype/category-P: New file.
33497         * modules/unictype/category-Pc: New file.
33498         * modules/unictype/category-Pd: New file.
33499         * modules/unictype/category-Ps: New file.
33500         * modules/unictype/category-Pe: New file.
33501         * modules/unictype/category-Pi: New file.
33502         * modules/unictype/category-Pf: New file.
33503         * modules/unictype/category-Po: New file.
33504         * modules/unictype/category-S: New file.
33505         * modules/unictype/category-Sm: New file.
33506         * modules/unictype/category-Sc: New file.
33507         * modules/unictype/category-Sk: New file.
33508         * modules/unictype/category-So: New file.
33509         * modules/unictype/category-Z: New file.
33510         * modules/unictype/category-Zs: New file.
33511         * modules/unictype/category-Zl: New file.
33512         * modules/unictype/category-Zp: New file.
33513         * modules/unictype/category-C: New file.
33514         * modules/unictype/category-Cc: New file.
33515         * modules/unictype/category-Cf: New file.
33516         * modules/unictype/category-Cs: New file.
33517         * modules/unictype/category-Co: New file.
33518         * modules/unictype/category-Cn: New file.
33519         * modules/unictype/category-or: New file.
33520         * modules/unictype/category-of: New file.
33521         * modules/unictype/category-test: New file.
33522         * modules/unictype/category-test-withtable: New file.
33523         * modules/unictype/category-byname: New file.
33524         * modules/unictype/category-none: New file.
33525         * modules/unictype/category-and: New file.
33526         * modules/unictype/category-and-not: New file.
33527         * modules/unictype/category-name: New file.
33528         * modules/unictype/combining-class: New file.
33529         * modules/unictype/category-all: New file.
33530         * modules/unictype/bidicategory-all: New file.
33531         * modules/unictype/bidicategory-byname: New file.
33532         * modules/unictype/bidicategory-name: New file.
33533         * modules/unictype/bidicategory-of: New file.
33534         * modules/unictype/bidicategory-test: New file.
33535         * modules/unictype/decimal-digit: New file.
33536         * modules/unictype/digit: New file.
33537         * modules/unictype/numeric: New file.
33538         * modules/unictype/mirror: New file.
33539         * modules/unictype/property-white-space: New file.
33540         * modules/unictype/property-alphabetic: New file.
33541         * modules/unictype/property-other-alphabetic: New file.
33542         * modules/unictype/property-not-a-character: New file.
33543         * modules/unictype/property-default-ignorable-code-point: New file.
33544         * modules/unictype/property-other-default-ignorable-code-point: New
33545         file.
33546         * modules/unictype/property-deprecated: New file.
33547         * modules/unictype/property-logical-order-exception: New file.
33548         * modules/unictype/property-variation-selector: New file.
33549         * modules/unictype/property-private-use: New file.
33550         * modules/unictype/property-unassigned-code-value: New file.
33551         * modules/unictype/property-uppercase: New file.
33552         * modules/unictype/property-other-uppercase: New file.
33553         * modules/unictype/property-lowercase: New file.
33554         * modules/unictype/property-other-lowercase: New file.
33555         * modules/unictype/property-titlecase: New file.
33556         * modules/unictype/property-soft-dotted: New file.
33557         * modules/unictype/property-id-start: New file.
33558         * modules/unictype/property-other-id-start: New file.
33559         * modules/unictype/property-id-continue: New file.
33560         * modules/unictype/property-other-id-continue: New file.
33561         * modules/unictype/property-xid-start: New file.
33562         * modules/unictype/property-xid-continue: New file.
33563         * modules/unictype/property-pattern-white-space: New file.
33564         * modules/unictype/property-pattern-syntax: New file.
33565         * modules/unictype/property-join-control: New file.
33566         * modules/unictype/property-grapheme-base: New file.
33567         * modules/unictype/property-grapheme-extend: New file.
33568         * modules/unictype/property-other-grapheme-extend: New file.
33569         * modules/unictype/property-grapheme-link: New file.
33570         * modules/unictype/property-bidi-control: New file.
33571         * modules/unictype/property-bidi-left-to-right: New file.
33572         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33573         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33574         * modules/unictype/property-bidi-european-digit: New file.
33575         * modules/unictype/property-bidi-eur-num-separator: New file.
33576         * modules/unictype/property-bidi-eur-num-terminator: New file.
33577         * modules/unictype/property-bidi-arabic-digit: New file.
33578         * modules/unictype/property-bidi-common-separator: New file.
33579         * modules/unictype/property-bidi-block-separator: New file.
33580         * modules/unictype/property-bidi-segment-separator: New file.
33581         * modules/unictype/property-bidi-whitespace: New file.
33582         * modules/unictype/property-bidi-non-spacing-mark: New file.
33583         * modules/unictype/property-bidi-boundary-neutral: New file.
33584         * modules/unictype/property-bidi-pdf: New file.
33585         * modules/unictype/property-bidi-embedding-or-override: New file.
33586         * modules/unictype/property-bidi-other-neutral: New file.
33587         * modules/unictype/property-hex-digit: New file.
33588         * modules/unictype/property-ascii-hex-digit: New file.
33589         * modules/unictype/property-ideographic: New file.
33590         * modules/unictype/property-unified-ideograph: New file.
33591         * modules/unictype/property-radical: New file.
33592         * modules/unictype/property-ids-binary-operator: New file.
33593         * modules/unictype/property-ids-trinary-operator: New file.
33594         * modules/unictype/property-zero-width: New file.
33595         * modules/unictype/property-space: New file.
33596         * modules/unictype/property-non-break: New file.
33597         * modules/unictype/property-iso-control: New file.
33598         * modules/unictype/property-format-control: New file.
33599         * modules/unictype/property-dash: New file.
33600         * modules/unictype/property-hyphen: New file.
33601         * modules/unictype/property-punctuation: New file.
33602         * modules/unictype/property-line-separator: New file.
33603         * modules/unictype/property-paragraph-separator: New file.
33604         * modules/unictype/property-quotation-mark: New file.
33605         * modules/unictype/property-sentence-terminal: New file.
33606         * modules/unictype/property-terminal-punctuation: New file.
33607         * modules/unictype/property-currency-symbol: New file.
33608         * modules/unictype/property-math: New file.
33609         * modules/unictype/property-other-math: New file.
33610         * modules/unictype/property-paired-punctuation: New file.
33611         * modules/unictype/property-left-of-pair: New file.
33612         * modules/unictype/property-combining: New file.
33613         * modules/unictype/property-composite: New file.
33614         * modules/unictype/property-decimal-digit: New file.
33615         * modules/unictype/property-numeric: New file.
33616         * modules/unictype/property-diacritic: New file.
33617         * modules/unictype/property-extender: New file.
33618         * modules/unictype/property-ignorable-control: New file.
33619         * modules/unictype/property-test: New file.
33620         * modules/unictype/property-byname: New file.
33621         * modules/unictype/property-all: New file.
33622         * modules/unictype/scripts: New file.
33623         * modules/unictype/scripts-all: New file.
33624         * modules/unictype/block-of: New file.
33625         * modules/unictype/block-test: New file.
33626         * modules/unictype/block-list: New file.
33627         * modules/unictype/block-all: New file.
33628         * modules/unictype/syntax-c-whitespace: New file.
33629         * modules/unictype/syntax-java-whitespace: New file.
33630         * modules/unictype/syntax-c-ident: New file.
33631         * modules/unictype/syntax-java-ident: New file.
33632         * modules/unictype/ctype-alnum: New file.
33633         * modules/unictype/ctype-alpha: New file.
33634         * modules/unictype/ctype-cntrl: New file.
33635         * modules/unictype/ctype-digit: New file.
33636         * modules/unictype/ctype-graph: New file.
33637         * modules/unictype/ctype-lower: New file.
33638         * modules/unictype/ctype-print: New file.
33639         * modules/unictype/ctype-punct: New file.
33640         * modules/unictype/ctype-space: New file.
33641         * modules/unictype/ctype-upper: New file.
33642         * modules/unictype/ctype-xdigit: New file.
33643         * modules/unictype/ctype-blank: New file.
33644         * lib/unictype/bidi_byname.c: New file.
33645         * lib/unictype/bidi_name.c: New file.
33646         * lib/unictype/bidi_of.c: New file.
33647         * lib/unictype/bidi_test.c: New file.
33648         * lib/unictype/bitmap.h: New file.
33649         * lib/unictype/block_test.c: New file.
33650         * lib/unictype/blocks.c: New file.
33651         * lib/unictype/categ_C.c: New file.
33652         * lib/unictype/categ_Cc.c: New file.
33653         * lib/unictype/categ_Cf.c: New file.
33654         * lib/unictype/categ_Cn.c: New file.
33655         * lib/unictype/categ_Co.c: New file.
33656         * lib/unictype/categ_Cs.c: New file.
33657         * lib/unictype/categ_L.c: New file.
33658         * lib/unictype/categ_Ll.c: New file.
33659         * lib/unictype/categ_Lm.c: New file.
33660         * lib/unictype/categ_Lo.c: New file.
33661         * lib/unictype/categ_Lt.c: New file.
33662         * lib/unictype/categ_Lu.c: New file.
33663         * lib/unictype/categ_M.c: New file.
33664         * lib/unictype/categ_Mc.c: New file.
33665         * lib/unictype/categ_Me.c: New file.
33666         * lib/unictype/categ_Mn.c: New file.
33667         * lib/unictype/categ_N.c: New file.
33668         * lib/unictype/categ_Nd.c: New file.
33669         * lib/unictype/categ_Nl.c: New file.
33670         * lib/unictype/categ_No.c: New file.
33671         * lib/unictype/categ_P.c: New file.
33672         * lib/unictype/categ_Pc.c: New file.
33673         * lib/unictype/categ_Pd.c: New file.
33674         * lib/unictype/categ_Pe.c: New file.
33675         * lib/unictype/categ_Pf.c: New file.
33676         * lib/unictype/categ_Pi.c: New file.
33677         * lib/unictype/categ_Po.c: New file.
33678         * lib/unictype/categ_Ps.c: New file.
33679         * lib/unictype/categ_S.c: New file.
33680         * lib/unictype/categ_Sc.c: New file.
33681         * lib/unictype/categ_Sk.c: New file.
33682         * lib/unictype/categ_Sm.c: New file.
33683         * lib/unictype/categ_So.c: New file.
33684         * lib/unictype/categ_Z.c: New file.
33685         * lib/unictype/categ_Zl.c: New file.
33686         * lib/unictype/categ_Zp.c: New file.
33687         * lib/unictype/categ_Zs.c: New file.
33688         * lib/unictype/categ_and.c: New file.
33689         * lib/unictype/categ_and_not.c: New file.
33690         * lib/unictype/categ_byname.c: New file.
33691         * lib/unictype/categ_name.c: New file.
33692         * lib/unictype/categ_none.c: New file.
33693         * lib/unictype/categ_of.c: New file.
33694         * lib/unictype/categ_or.c: New file.
33695         * lib/unictype/categ_test.c: New file.
33696         * lib/unictype/combining.c: New file.
33697         * lib/unictype/ctype_alnum.c: New file.
33698         * lib/unictype/ctype_alpha.c: New file.
33699         * lib/unictype/ctype_blank.c: New file.
33700         * lib/unictype/ctype_cntrl.c: New file.
33701         * lib/unictype/ctype_digit.c: New file.
33702         * lib/unictype/ctype_graph.c: New file.
33703         * lib/unictype/ctype_lower.c: New file.
33704         * lib/unictype/ctype_print.c: New file.
33705         * lib/unictype/ctype_punct.c: New file.
33706         * lib/unictype/ctype_space.c: New file.
33707         * lib/unictype/ctype_upper.c: New file.
33708         * lib/unictype/ctype_xdigit.c: New file.
33709         * lib/unictype/decdigit.c: New file.
33710         * lib/unictype/digit.c: New file.
33711         * lib/unictype/identsyntaxmap.h: New file.
33712         * lib/unictype/mirror.c: New file.
33713         * lib/unictype/numeric.c: New file.
33714         * lib/unictype/pr_alphabetic.c: New file.
33715         * lib/unictype/pr_ascii_hex_digit.c: New file.
33716         * lib/unictype/pr_bidi_arabic_digit.c: New file.
33717         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
33718         * lib/unictype/pr_bidi_block_separator.c: New file.
33719         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
33720         * lib/unictype/pr_bidi_common_separator.c: New file.
33721         * lib/unictype/pr_bidi_control.c: New file.
33722         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
33723         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
33724         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
33725         * lib/unictype/pr_bidi_european_digit.c: New file.
33726         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
33727         * lib/unictype/pr_bidi_left_to_right.c: New file.
33728         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
33729         * lib/unictype/pr_bidi_other_neutral.c: New file.
33730         * lib/unictype/pr_bidi_pdf.c: New file.
33731         * lib/unictype/pr_bidi_segment_separator.c: New file.
33732         * lib/unictype/pr_bidi_whitespace.c: New file.
33733         * lib/unictype/pr_byname.c: New file.
33734         * lib/unictype/pr_byname.gperf: New file.
33735         * lib/unictype/pr_combining.c: New file.
33736         * lib/unictype/pr_composite.c: New file.
33737         * lib/unictype/pr_currency_symbol.c: New file.
33738         * lib/unictype/pr_dash.c: New file.
33739         * lib/unictype/pr_decimal_digit.c: New file.
33740         * lib/unictype/pr_default_ignorable_code_point.c: New file.
33741         * lib/unictype/pr_deprecated.c: New file.
33742         * lib/unictype/pr_diacritic.c: New file.
33743         * lib/unictype/pr_extender.c: New file.
33744         * lib/unictype/pr_format_control.c: New file.
33745         * lib/unictype/pr_grapheme_base.c: New file.
33746         * lib/unictype/pr_grapheme_extend.c: New file.
33747         * lib/unictype/pr_grapheme_link.c: New file.
33748         * lib/unictype/pr_hex_digit.c: New file.
33749         * lib/unictype/pr_hyphen.c: New file.
33750         * lib/unictype/pr_id_continue.c: New file.
33751         * lib/unictype/pr_id_start.c: New file.
33752         * lib/unictype/pr_ideographic.c: New file.
33753         * lib/unictype/pr_ids_binary_operator.c: New file.
33754         * lib/unictype/pr_ids_trinary_operator.c: New file.
33755         * lib/unictype/pr_ignorable_control.c: New file.
33756         * lib/unictype/pr_iso_control.c: New file.
33757         * lib/unictype/pr_join_control.c: New file.
33758         * lib/unictype/pr_left_of_pair.c: New file.
33759         * lib/unictype/pr_line_separator.c: New file.
33760         * lib/unictype/pr_logical_order_exception.c: New file.
33761         * lib/unictype/pr_lowercase.c: New file.
33762         * lib/unictype/pr_math.c: New file.
33763         * lib/unictype/pr_non_break.c: New file.
33764         * lib/unictype/pr_not_a_character.c: New file.
33765         * lib/unictype/pr_numeric.c: New file.
33766         * lib/unictype/pr_other_alphabetic.c: New file.
33767         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
33768         * lib/unictype/pr_other_grapheme_extend.c: New file.
33769         * lib/unictype/pr_other_id_continue.c: New file.
33770         * lib/unictype/pr_other_id_start.c: New file.
33771         * lib/unictype/pr_other_lowercase.c: New file.
33772         * lib/unictype/pr_other_math.c: New file.
33773         * lib/unictype/pr_other_uppercase.c: New file.
33774         * lib/unictype/pr_paired_punctuation.c: New file.
33775         * lib/unictype/pr_paragraph_separator.c: New file.
33776         * lib/unictype/pr_pattern_syntax.c: New file.
33777         * lib/unictype/pr_pattern_white_space.c: New file.
33778         * lib/unictype/pr_private_use.c: New file.
33779         * lib/unictype/pr_punctuation.c: New file.
33780         * lib/unictype/pr_quotation_mark.c: New file.
33781         * lib/unictype/pr_radical.c: New file.
33782         * lib/unictype/pr_sentence_terminal.c: New file.
33783         * lib/unictype/pr_soft_dotted.c: New file.
33784         * lib/unictype/pr_space.c: New file.
33785         * lib/unictype/pr_terminal_punctuation.c: New file.
33786         * lib/unictype/pr_test.c: New file.
33787         * lib/unictype/pr_titlecase.c: New file.
33788         * lib/unictype/pr_unassigned_code_value.c: New file.
33789         * lib/unictype/pr_unified_ideograph.c: New file.
33790         * lib/unictype/pr_uppercase.c: New file.
33791         * lib/unictype/pr_variation_selector.c: New file.
33792         * lib/unictype/pr_white_space.c: New file.
33793         * lib/unictype/pr_xid_continue.c: New file.
33794         * lib/unictype/pr_xid_start.c: New file.
33795         * lib/unictype/pr_zero_width.c: New file.
33796         * lib/unictype/scripts.c: New file.
33797         * lib/unictype/sy_c_ident.c: New file.
33798         * lib/unictype/sy_c_whitespace.c: New file.
33799         * lib/unictype/sy_java_ident.c: New file.
33800         * lib/unictype/sy_java_whitespace.c: New file.
33801
33802         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
33803         Unicode 5.0.0.
33804         * lib/unictype/blocks.h: Likewise.
33805         * lib/unictype/categ_C.h: Likewise.
33806         * lib/unictype/categ_Cc.h: Likewise.
33807         * lib/unictype/categ_Cf.h: Likewise.
33808         * lib/unictype/categ_Cn.h: Likewise.
33809         * lib/unictype/categ_Co.h: Likewise.
33810         * lib/unictype/categ_Cs.h: Likewise.
33811         * lib/unictype/categ_L.h: Likewise.
33812         * lib/unictype/categ_Ll.h: Likewise.
33813         * lib/unictype/categ_Lm.h: Likewise.
33814         * lib/unictype/categ_Lo.h: Likewise.
33815         * lib/unictype/categ_Lt.h: Likewise.
33816         * lib/unictype/categ_Lu.h: Likewise.
33817         * lib/unictype/categ_M.h: Likewise.
33818         * lib/unictype/categ_Mc.h: Likewise.
33819         * lib/unictype/categ_Me.h: Likewise.
33820         * lib/unictype/categ_Mn.h: Likewise.
33821         * lib/unictype/categ_N.h: Likewise.
33822         * lib/unictype/categ_Nd.h: Likewise.
33823         * lib/unictype/categ_Nl.h: Likewise.
33824         * lib/unictype/categ_No.h: Likewise.
33825         * lib/unictype/categ_P.h: Likewise.
33826         * lib/unictype/categ_Pc.h: Likewise.
33827         * lib/unictype/categ_Pd.h: Likewise.
33828         * lib/unictype/categ_Pe.h: Likewise.
33829         * lib/unictype/categ_Pf.h: Likewise.
33830         * lib/unictype/categ_Pi.h: Likewise.
33831         * lib/unictype/categ_Po.h: Likewise.
33832         * lib/unictype/categ_Ps.h: Likewise.
33833         * lib/unictype/categ_S.h: Likewise.
33834         * lib/unictype/categ_Sc.h: Likewise.
33835         * lib/unictype/categ_Sk.h: Likewise.
33836         * lib/unictype/categ_Sm.h: Likewise.
33837         * lib/unictype/categ_So.h: Likewise.
33838         * lib/unictype/categ_Z.h: Likewise.
33839         * lib/unictype/categ_Zl.h: Likewise.
33840         * lib/unictype/categ_Zp.h: Likewise.
33841         * lib/unictype/categ_Zs.h: Likewise.
33842         * lib/unictype/categ_of.h: Likewise.
33843         * lib/unictype/combining.h: Likewise.
33844         * lib/unictype/ctype_alnum.h: Likewise.
33845         * lib/unictype/ctype_alpha.h: Likewise.
33846         * lib/unictype/ctype_blank.h: Likewise.
33847         * lib/unictype/ctype_cntrl.h: Likewise.
33848         * lib/unictype/ctype_digit.h: Likewise.
33849         * lib/unictype/ctype_graph.h: Likewise.
33850         * lib/unictype/ctype_lower.h: Likewise.
33851         * lib/unictype/ctype_print.h: Likewise.
33852         * lib/unictype/ctype_punct.h: Likewise.
33853         * lib/unictype/ctype_space.h: Likewise.
33854         * lib/unictype/ctype_upper.h: Likewise.
33855         * lib/unictype/ctype_xdigit.h: Likewise.
33856         * lib/unictype/decdigit.h: Likewise.
33857         * lib/unictype/digit.h: Likewise.
33858         * lib/unictype/mirror.h: Likewise.
33859         * lib/unictype/numeric.h: Likewise.
33860         * lib/unictype/pr_alphabetic.h: Likewise.
33861         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
33862         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
33863         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
33864         * lib/unictype/pr_bidi_block_separator.h: Likewise.
33865         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
33866         * lib/unictype/pr_bidi_common_separator.h: Likewise.
33867         * lib/unictype/pr_bidi_control.h: Likewise.
33868         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
33869         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
33870         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
33871         * lib/unictype/pr_bidi_european_digit.h: Likewise.
33872         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
33873         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
33874         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
33875         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
33876         * lib/unictype/pr_bidi_pdf.h: Likewise.
33877         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
33878         * lib/unictype/pr_bidi_whitespace.h: Likewise.
33879         * lib/unictype/pr_combining.h: Likewise.
33880         * lib/unictype/pr_composite.h: Likewise.
33881         * lib/unictype/pr_currency_symbol.h: Likewise.
33882         * lib/unictype/pr_dash.h: Likewise.
33883         * lib/unictype/pr_decimal_digit.h: Likewise.
33884         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
33885         * lib/unictype/pr_deprecated.h: Likewise.
33886         * lib/unictype/pr_diacritic.h: Likewise.
33887         * lib/unictype/pr_extender.h: Likewise.
33888         * lib/unictype/pr_format_control.h: Likewise.
33889         * lib/unictype/pr_grapheme_base.h: Likewise.
33890         * lib/unictype/pr_grapheme_extend.h: Likewise.
33891         * lib/unictype/pr_grapheme_link.h: Likewise.
33892         * lib/unictype/pr_hex_digit.h: Likewise.
33893         * lib/unictype/pr_hyphen.h: Likewise.
33894         * lib/unictype/pr_id_continue.h: Likewise.
33895         * lib/unictype/pr_id_start.h: Likewise.
33896         * lib/unictype/pr_ideographic.h: Likewise.
33897         * lib/unictype/pr_ids_binary_operator.h: Likewise.
33898         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
33899         * lib/unictype/pr_ignorable_control.h: Likewise.
33900         * lib/unictype/pr_iso_control.h: Likewise.
33901         * lib/unictype/pr_join_control.h: Likewise.
33902         * lib/unictype/pr_left_of_pair.h: Likewise.
33903         * lib/unictype/pr_line_separator.h: Likewise.
33904         * lib/unictype/pr_logical_order_exception.h: Likewise.
33905         * lib/unictype/pr_lowercase.h: Likewise.
33906         * lib/unictype/pr_math.h: Likewise.
33907         * lib/unictype/pr_non_break.h: Likewise.
33908         * lib/unictype/pr_not_a_character.h: Likewise.
33909         * lib/unictype/pr_numeric.h: Likewise.
33910         * lib/unictype/pr_other_alphabetic.h: Likewise.
33911         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
33912         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
33913         * lib/unictype/pr_other_id_continue.h: Likewise.
33914         * lib/unictype/pr_other_id_start.h: Likewise.
33915         * lib/unictype/pr_other_lowercase.h: Likewise.
33916         * lib/unictype/pr_other_math.h: Likewise.
33917         * lib/unictype/pr_other_uppercase.h: Likewise.
33918         * lib/unictype/pr_paired_punctuation.h: Likewise.
33919         * lib/unictype/pr_paragraph_separator.h: Likewise.
33920         * lib/unictype/pr_pattern_syntax.h: Likewise.
33921         * lib/unictype/pr_pattern_white_space.h: Likewise.
33922         * lib/unictype/pr_private_use.h: Likewise.
33923         * lib/unictype/pr_punctuation.h: Likewise.
33924         * lib/unictype/pr_quotation_mark.h: Likewise.
33925         * lib/unictype/pr_radical.h: Likewise.
33926         * lib/unictype/pr_sentence_terminal.h: Likewise.
33927         * lib/unictype/pr_soft_dotted.h: Likewise.
33928         * lib/unictype/pr_space.h: Likewise.
33929         * lib/unictype/pr_terminal_punctuation.h: Likewise.
33930         * lib/unictype/pr_titlecase.h: Likewise.
33931         * lib/unictype/pr_unassigned_code_value.h: Likewise.
33932         * lib/unictype/pr_unified_ideograph.h: Likewise.
33933         * lib/unictype/pr_uppercase.h: Likewise.
33934         * lib/unictype/pr_variation_selector.h: Likewise.
33935         * lib/unictype/pr_white_space.h: Likewise.
33936         * lib/unictype/pr_xid_continue.h: Likewise.
33937         * lib/unictype/pr_xid_start.h: Likewise.
33938         * lib/unictype/pr_zero_width.h: Likewise.
33939         * lib/unictype/scripts.h: Likewise.
33940         * lib/unictype/scripts_byname.gperf: Likewise.
33941         * lib/unictype/sy_c_ident.h: Likewise.
33942         * lib/unictype/sy_c_whitespace.h: Likewise.
33943         * lib/unictype/sy_java_ident.h: Likewise.
33944         * lib/unictype/sy_java_whitespace.h: Likewise.
33945
33946         * lib/unictype/Makefile: New file.
33947         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
33948         glibc.
33949         * lib/unictype/3level.h: New file, copied from glibc.
33950         * lib/unictype/3levelbit.h: New file.
33951
33952 2007-11-11  Bruno Haible  <bruno@clisp.org>
33953
33954         * modules/gperf: New file.
33955         * modules/iconv_open (Depends-on): Add it.
33956         (Makefile.am): Remove the GPERF definition.
33957
33958 2007-11-11  Bruno Haible  <bruno@clisp.org>
33959
33960         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
33961         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
33962
33963 2007-11-11  Bruno Haible  <bruno@clisp.org>
33964
33965         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
33966         (usage): Remove function.
33967
33968 2007-11-11  Bruno Haible  <bruno@clisp.org>
33969
33970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
33971         gl_FUNC_CEILF_LIBS.
33972         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
33973         gl_FUNC_CEIL_LIBS.
33974         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
33975         gl_FUNC_CEILL_LIBS.
33976         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
33977         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
33978         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
33979
33980 2007-11-11  Bruno Haible  <bruno@clisp.org>
33981
33982         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
33983         roundf were declared but do not exist on functions.
33984         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
33985         roundl were declared but do not exist on functions.
33986         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
33987         HAVE_FLOORL_AND_CEILL, respectively.
33988         Needed for Sun C on Solaris 10.
33989
33990 2007-11-11  Bruno Haible  <bruno@clisp.org>
33991
33992         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
33993         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
33994         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
33995         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
33996         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
33997         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
33998         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
33999         HAVE_DECL_ROUNDF.
34000         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34001         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34003         of HAVE_DECL_ROUND*.
34004         * modules/math (Makefile.am): Update.
34005
34006 2007-11-10  Bruno Haible  <bruno@clisp.org>
34007
34008         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34009         ptrdiff_t as m4/intl.m4.
34010
34011 2007-11-10  Jim Meyering  <meyering@redhat.com>
34012
34013         Avoid link failure for the argmatch test.
34014         * tests/test-argmatch.c (usage): Define function to avoid a link
34015         failure: argmatch_die requires a usage function.
34016
34017 2007-11-09  Bruno Haible  <bruno@clisp.org>
34018
34019         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34020         * doc/functions/vsnprintf.texi: Likewise.
34021         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34022         with a size argument < 2.
34023
34024 2007-11-09  Bruno Haible  <bruno@clisp.org>
34025
34026         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34027         buffer. Fixes an inefficiency introduced on 2007-11-03.
34028
34029 2007-11-09  Bruno Haible  <bruno@clisp.org>
34030
34031         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34032         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34033
34034 2007-11-08  Jim Meyering  <meyering@redhat.com>
34035
34036         Change cache variable name prefix "jm_" to "gl_" everywhere.
34037         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34038         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34039         * m4/uptime.m4: s/gl_/jm_/
34040
34041 2007-11-07  Bruno Haible  <bruno@clisp.org>
34042
34043         Update to GNU gettext 0.17.
34044         * m4/intl.m4: Update to GNU gettext 0.17.
34045         * m4/po.m4: Likewise.
34046         * modules/gettext (Files): Remove m4/ulonglong.m4.
34047         (configure.ac): Require gettext infrastructure from version 0.17.
34048
34049 2007-11-06  Bruno Haible  <bruno@clisp.org>
34050
34051         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34052         symbolic values are not defined in a public header.
34053         * lib/freadable.c (freadable) [QNX]: Likewise.
34054         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34055         * lib/freading.c (freading) [QNX]: Likewise.
34056         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34057         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34058         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34059         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34060         Reported by Alain Magloire.
34061
34062         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34063
34064 2007-11-05  Bruno Haible  <bruno@clisp.org>
34065
34066         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34067         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34068         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34069         Reported by Eric Blake.
34070
34071 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34072             Bruno Haible  <bruno@clisp.org>
34073
34074         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34075         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34076         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34077         (malloc): Undefine also before including <stdlib.h>.
34078         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34079         Needed on OSF/1 4.0.
34080
34081 2007-11-05  Jim Meyering  <meyering@redhat.com>
34082
34083         git-version-gen: sync from coreutils.
34084         * build-aux/git-version-gen: Add comments.
34085         Change the first '-' to '.' in the snapshot version string,
34086         e.g., 6.9-377-08144 -> 6.9.377-08144
34087         Remove first parameter.
34088         Don't declare a version "-dirty" merely because a time
34089         stamp has changed.
34090
34091 2007-11-04  Bruno Haible  <bruno@clisp.org>
34092
34093         * lib/lock.h: Protect all macro definitions containing an 'if'
34094         statement through a "do { ... } while (0)".
34095         * lib/tls.h: Likewise.
34096
34097 2007-11-04  Bruno Haible  <bruno@clisp.org>
34098
34099         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34100
34101 2007-11-04  Bruno Haible  <bruno@clisp.org>
34102
34103         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34104         * modules/fprintf-posix (Depends-on): Add nocrash.
34105         * modules/snprintf-posix (Depends-on): Likewise.
34106         * modules/sprintf-posix (Depends-on): Likewise.
34107         * modules/vasnprintf-posix (Depends-on): Likewise.
34108         * modules/vasprintf-posix (Depends-on): Likewise.
34109         * modules/vfprintf-posix (Depends-on): Likewise.
34110         * modules/vsnprintf-posix (Depends-on): Likewise.
34111         * modules/vsprintf-posix (Depends-on): Likewise.
34112         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34114         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34115         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34116         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34117         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34118         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34119
34120 2007-11-04  Bruno Haible  <bruno@clisp.org>
34121
34122         * modules/nocrash: New file.
34123         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34124         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34125
34126 2007-11-04  Bruno Haible  <bruno@clisp.org>
34127
34128         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34129         precision handling.
34130         * tests/test-vasprintf-posix.c (test_function): Likewise.
34131         * tests/test-snprintf-posix.h (test_function): Likewise.
34132         * tests/test-sprintf-posix.h (test_function): Likewise.
34133
34134         Fix *printf behaviour for large precisions on mingw and BeOS.
34135         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34136         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34138         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34139         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34140         gl_PRINTF_PRECISION and test its result. Invoke
34141         gl_PREREQ_VASNPRINTF_PRECISION.
34142         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34143         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34144         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34145         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34146         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34147         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34148         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34149         * doc/functions/fprintf.texi: Update.
34150         * doc/functions/printf.texi: Update.
34151         * doc/functions/snprintf.texi: Update.
34152         * doc/functions/sprintf.texi: Update.
34153         * doc/functions/vfprintf.texi: Update.
34154         * doc/functions/vprintf.texi: Update.
34155         * doc/functions/vsnprintf.texi: Update.
34156         * doc/functions/vsprintf.texi: Update.
34157
34158 2007-11-04  Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34161
34162 2007-11-04  Bruno Haible  <bruno@clisp.org>
34163
34164         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34165         Reported by Sylvain Beucler <beuc@gnu.org>.
34166
34167 2007-11-03  Bruno Haible  <bruno@clisp.org>
34168
34169         * tests/test-fprintf-posix2.sh: New file.
34170         * tests/test-fprintf-posix2.c: New file.
34171         * modules/fprintf-posix-tests (Files): Add them.
34172         (TESTS): Add test-fprintf-posix2.sh.
34173         (configure.ac): Check for getrlimit and setrlimit.
34174         (check_PROGRAMS): Add test-fprintf-posix2.
34175
34176         * tests/test-printf-posix2.sh: New file.
34177         * tests/test-printf-posix2.c: New file.
34178         * modules/printf-posix-tests (Files): Add them.
34179         (TESTS): Add test-printf-posix2.sh.
34180         (configure.ac): Check for getrlimit and setrlimit.
34181         (check_PROGRAMS): Add test-printf-posix2.
34182
34183         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34184         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34185         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34186         (decode_double): New function, copied from decode_long_double.
34187         (scale10_round_decimal_decoded): New function, extracted from
34188         scale10_round_decimal_long_double.
34189         (scale10_round_decimal_long_double): Use it.
34190         (scale10_round_decimal_double): New function.
34191         (floorlog10): New function.
34192         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34194         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34195         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34196         gl_PRINTF_ENOMEM and test its result. Invoke
34197         gl_PREREQ_VASNPRINTF_ENOMEM.
34198         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34199         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34200         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34201         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34202         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34203         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34204         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34205         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34206         * modules/snprintf-posix (Depends-on): Likewise.
34207         * modules/sprintf-posix (Depends-on): Likewise.
34208         * modules/vasnprintf-posix (Depends-on): Likewise.
34209         * modules/vasprintf-posix (Depends-on): Likewise.
34210         * modules/vfprintf-posix (Depends-on): Likewise.
34211         * modules/vsnprintf-posix (Depends-on): Likewise.
34212         * modules/vsprintf-posix (Depends-on): Likewise.
34213         * doc/functions/fprintf.texi: Update.
34214         * doc/functions/printf.texi: Update.
34215         * doc/functions/snprintf.texi: Update.
34216         * doc/functions/sprintf.texi: Update.
34217         * doc/functions/vfprintf.texi: Update.
34218         * doc/functions/vprintf.texi: Update.
34219         * doc/functions/vsnprintf.texi: Update.
34220         * doc/functions/vsprintf.texi: Update.
34221
34222 2007-11-03  Bruno Haible  <bruno@clisp.org>
34223
34224         * modules/frexp-nolibm-tests: New file.
34225
34226         * modules/frexp-nolibm: New file.
34227         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34228
34229 2007-11-03  Bruno Haible  <bruno@clisp.org>
34230
34231         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34232         value is C99 compliant.
34233         Needed for OSF/1 5.1.
34234
34235 2007-11-03  Bruno Haible  <bruno@clisp.org>
34236
34237         Fix out-of-memory handling of vasnprintf.
34238         * lib/printf-parse.c: Include <errno.h>.
34239         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34240         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34241         is already set.
34242
34243 2007-11-02  Eric Blake  <ebb9@byu.net>
34244
34245         Fix tests on cygwin.
34246         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34247
34248 2007-11-01  Bruno Haible  <bruno@clisp.org>
34249
34250         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34251         warning.
34252         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34253         needed for POSIX compatibility.
34254
34255 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34256
34257         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34258         for compatibility with GNU.
34259
34260 2007-11-01  Bruno Haible  <bruno@clisp.org>
34261
34262         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34263         (putenv): Renamed from rpl_putenv. Change argument type from
34264         'const char *' to 'char *'.
34265         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34266         of defining putenv in config.h, just set REPLACE_PUTENV.
34267         * modules/putenv (Depends-on): Add stdlib.
34268         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34269         (Include): Use <stdlib.h>.
34270         * lib/stdlib.in.h (putenv): New declaration.
34271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34272         REPLACE_PUTENV.
34273         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34274         REPLACE_PUTENV.
34275         Needed for MacOS X 10.5.0.
34276         Reported by Peter O'Gorman <peter@pogma.com>.
34277
34278 2007-11-01  Jim Meyering  <meyering@redhat.com>
34279
34280         Treat an empty date string exactly like "0".
34281         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34282         if the remaining date string (to be parsed) is empty, use "0".
34283         Reported by Mischa Molhoek and discussed in this thread:
34284         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34285
34286 2007-10-31  Bruno Haible  <bruno@clisp.org>
34287
34288         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34289         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34290         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34291         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34292         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34293         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34294
34295 2007-10-31  Bruno Haible  <bruno@clisp.org>
34296
34297         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34298         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34299         (AC_TYPE_LONG_LONG_INT): Use it.
34300         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34301         it as well.
34302         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34303         to m4/longlong.m4.
34304         * modules/stdint (Files): Remove m4/ulonglong.m4.
34305         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34306         m4/ulonglong.m4.
34307         * modules/strtoumax (Files): Likewise.
34308
34309 2007-10-30  Bruno Haible  <bruno@clisp.org>
34310
34311         * modules/xvasprintf-posix: New file.
34312         Suggested by Eric Blake.
34313
34314 2007-10-30  Bruno Haible  <bruno@clisp.org>
34315
34316         * modules/xprintf-posix-tests: New file.
34317         * tests/test-xprintf-posix.sh: New file.
34318         * tests/test-xprintf-posix.c: New file.
34319         * tests/test-xfprintf-posix.c: New file.
34320
34321         * modules/xprintf-posix: New file.
34322
34323 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34324
34325         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34326         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34327         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34328
34329 2007-10-29  Bruno Haible  <bruno@clisp.org>
34330
34331         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34332         contain the special marker '_cv_'.
34333         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34334         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34335         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34336         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34337         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34338         Reported by Ralf Wildenhues.
34339
34340 2007-10-29  Bruno Haible  <bruno@clisp.org>
34341
34342         * gnulib-tool (func_import): When --lgpl is not specified, set
34343         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34344         GPLv3.
34345         Reported by Simon Josefsson.
34346
34347 2007-10-28  Bruno Haible  <bruno@clisp.org>
34348
34349         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34350         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34351         HAVE_DECL_ISFINITE.
34352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34353         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34354         HAVE_DECL_ISFINITE.
34355
34356 2007-10-28  Bruno Haible  <bruno@clisp.org>
34357
34358         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34359         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34360
34361 2007-10-28  Bruno Haible  <bruno@clisp.org>
34362
34363         Fix link errors with Sun C 5.0 on Solaris 10.
34364         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34365         function is declared but not present in the compiler's libm.
34366         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34367         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34368         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34369         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34370         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34371         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34372         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34374         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34375         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34376         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34377         HAVE_DECL_FLOORL.
34378
34379 2007-10-28  Bruno Haible  <bruno@clisp.org>
34380
34381         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34382         gl_FUNC_FLOORL. Cache the result.
34383         (gl_FUNC_FLOORL): Use it.
34384         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34385         gl_FUNC_CEILL. Cache the result.
34386         (gl_FUNC_CEILL): Use it.
34387
34388         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34389         gl_FUNC_FLOOR. Cache the result.
34390         (gl_FUNC_FLOOR): Use it.
34391         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34392         gl_FUNC_CEIL. Cache the result.
34393         (gl_FUNC_CEIL): Use it.
34394
34395         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34396         gl_FUNC_FLOORF. Cache the result.
34397         (gl_FUNC_FLOORF): Use it.
34398         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34399         gl_FUNC_CEILF. Cache the result.
34400         (gl_FUNC_CEILF): Use it.
34401
34402 2007-10-28  Bruno Haible  <bruno@clisp.org>
34403
34404         * gnulib-tool: Allow specifying the LGPL version number through
34405         --lgpl=2 or --lgpl=3.
34406         (func_usage): Document --lgpl with argument.
34407         Handle --lgpl=... arguments.
34408         (func_import): Recognize also gl_LGPL calls with an argument. When
34409         --lgpl=2 is used and the module's license is just LGPL, report an
34410         error. Set sed_transform_lib_file according to the lgpl variable. In
34411         the generated files, use --lgpl or gl_LGPL invocations with argument,
34412         if necessary.
34413         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34414         an LGPv2+ license.
34415         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34416         gl_LGPL macro.
34417
34418 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34419             Bruno Haible  <bruno@clisp.org>
34420
34421         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34422         (u16_uctomb_aux): Likewise.
34423         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34424         !HAVE_INLINE.
34425         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34426
34427 2007-10-28  Bruno Haible  <bruno@clisp.org>
34428
34429         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34430         Invoke AM_GETTEXT_OPTION if it exists.
34431         * modules/vasprintf: Likewise.
34432         * modules/verror: Likewise.
34433         * modules/xprintf: Likewise.
34434         * modules/xvasprintf: Likewise.
34435
34436 2007-10-27  Ben Pfaff  <blp@gnu.org>
34437
34438         * lib/math.in.h: Define isfinite macro and prototypes for
34439         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34440         implementations.
34441         * m4/math_h.m4: New substitutions for isfinite module.
34442         * lib/isfinite.c: New file.
34443         * m4/isfinite.m4: New file.
34444         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34445         * modules/isfinite: New file.
34446         * modules/isfinite-tests: New file.
34447         * tests/tests-isfinite.c: New file.
34448         * doc/functions/isfinite.texi: Mention isfinite module.
34449         * MODULES.html.sh: Mention new module.
34450
34451 2007-10-27  Ben Pfaff  <blp@gnu.org>
34452
34453         Ralf Wildenhues reported that Tru64 4.0D declares the round
34454         functions but does not have definitions.
34455         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34456         cannot be found in any library, set the output variable to
34457         "missing" instead of "".
34458         * m4/round.m4: Also use our substitute if we cannot find round in
34459         any library, even if it is declared.
34460         * m4/roundf.m4: Likewise for roundf.
34461         * m4/roundl.m4: Likewise for roundl.
34462         * lib/math.in.h: Undefine roundf, round, roundl before defining
34463         their replacements, to allow for hypothetical systems where these
34464         may be defined as macros but not available in libraries.
34465
34466 2007-10-27  Bruno Haible  <bruno@clisp.org>
34467
34468         * doc/gnulib.texi: Invoke @firstparagraphindent.
34469         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34470         changes in gnulib.
34471         (Source changes): New section.
34472
34473 2007-10-26  Bruno Haible  <bruno@clisp.org>
34474
34475         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34476         borrowed from autoconf.
34477
34478 2007-10-26  Bruno Haible  <bruno@clisp.org>
34479
34480         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34481         strerror returned the empty string. Needed on HP-UX 11.00.
34482
34483 2007-10-24  Micah Cowan  <micah@cowan.name>
34484
34485         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34486         * build-aux/bootstrap: Remove support for now-unnecessary option,
34487         --cvs-user, and envvars CVS_USER, CVS_RSH.
34488
34489 2007-10-24  Jim Meyering  <meyering@redhat.com>
34490
34491         Avoid diagnostics from sha1sum when there is no cached checksum.
34492         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34493         if the po.s1 file hasn't been created yet.
34494
34495         * build-aux/bootstrap: Sync from coreutils:
34496         2007-10-24  Jim Meyering  <meyering@redhat.com>
34497         Get gnulib from the git repository, not from an obsolete cvs one.
34498         * build-aux/bootstrap: Suggestion from Micah Cowan.
34499         2007-10-04  Jim Meyering  <jim@meyering.net>
34500         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34501         (update_po_files): Work also when there are no .po files in po/.
34502
34503 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34504
34505         * README: Append ".git" to git and cg examples.
34506         Problem reported by Benoit Sigoure.
34507
34508 2007-10-23  Micah Cowan  <micah@cowan.name>
34509
34510         * users.txt: Add wget.
34511
34512 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34513
34514         Fix linking of some unistdio tests on FreeBSD.
34515         * modules/unistdio/u16-vsnprintf-tests
34516         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34517         * modules/unistdio/u16-vsprintf-tests
34518         (test_u16_vsnprintf1_LDADD): Likewise.
34519         * modules/unistdio/u32-vsnprintf-tests
34520         (test_u32_vsnprintf1_LDADD): Likewise.
34521         * modules/unistdio/u32-vsprintf-tests
34522         (test_u32_vsprintf1_LDADD): Likewise.
34523         * modules/unistdio/u8-vsnprintf-tests
34524         (test_u8_vsnprintf1_LDADD): Likewise.
34525         * modules/unistdio/u8-vsprintf-tests
34526         (test_u8_vsprintf1_LDADD): Likewise.
34527         * modules/unistdio/ulc-vsnprintf-tests
34528         (test_ulc_vsnprintf1_LDADD): Likewise.
34529         * modules/unistdio/ulc-vsprintf-tests
34530         (test_ulc_vsprintf1_LDADD): Likewise.
34531
34532         Fix linking of some uniconv tests on FreeBSD.
34533         * modules/uniconv/u16-conv-from-enc-tests
34534         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34535         * modules/uniconv/u16-conv-to-enc-tests
34536         (test_u16_conv_to_enc_LDADD): Likewise.
34537         * modules/uniconv/u16-strconv-from-enc-tests
34538         (test_u16_strconv_from_enc_LDADD): Likewise.
34539         * modules/uniconv/u16-strconv-to-enc-tests
34540         (test_u16_strconv_to_enc_LDADD): Likewise.
34541         * modules/uniconv/u32-conv-from-enc-tests
34542         (test_u32_conv_from_enc_LDADD): Likewise.
34543         * modules/uniconv/u32-conv-to-enc-tests
34544         (test_u32_conv_to_enc_LDADD): Likewise.
34545         * modules/uniconv/u32-strconv-from-enc-tests
34546         (test_u32_strconv_from_enc_LDADD): Likewise.
34547         * modules/uniconv/u32-strconv-to-enc-tests
34548         (test_u32_strconv_to_enc_LDADD): Likewise.
34549         * modules/uniconv/u8-conv-from-enc-tests
34550         (test_u8_conv_from_enc_LDADD): Likewise.
34551         * modules/uniconv/u8-conv-to-enc-tests
34552         (test_u8_conv_to_enc_LDADD): Likewise.
34553         * modules/uniconv/u8-strconv-from-enc-tests
34554         (test_u8_strconv_from_enc_LDADD): Likewise.
34555         * modules/uniconv/u8-strconv-to-enc-tests
34556         (test_u8_strconv_to_enc_LDADD): Likewise.
34557
34558 2007-10-22  Bruno Haible  <bruno@clisp.org>
34559
34560         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34561         size.
34562
34563 2007-10-22  Eric Blake  <ebb9@byu.net>
34564
34565         Tweak x*printf documentation.
34566         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34567         variable name and comments.
34568         Suggested by Bruno Haible.
34569
34570 2007-10-22  Bruno Haible  <bruno@clisp.org>
34571
34572         * lib/acl.c (copy_acl): Fix file name in comment.
34573
34574 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34575
34576         Fix Tru64 problem with stdbool.h.
34577         * lib/stdbool.in.h (false, true):
34578         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34579         Don't declare as an enum in this situation; it runs afoul of Tru64.
34580         Problem reported by Steven M. Schweda in
34581         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34582
34583 2007-10-22  Eric Blake  <ebb9@byu.net>
34584
34585         Also wrap vf?printf.
34586         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34587         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34588         (xvprintf, xvfprintf): New functions.
34589
34590 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34591
34592         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34593         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34594
34595         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34596         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34597
34598 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34599
34600         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34601         by Bruno Haible.
34602
34603 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34604
34605         * lib/getloadavg.c
34606         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34607         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34608
34609         * tests/test-i-ring.c: Work for C89.
34610
34611 2007-10-22  Bruno Haible  <bruno@clisp.org>
34612
34613         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34614         -1u, in preprocessor expression, so that we don't test for the bug
34615         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34616         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34617
34618 2007-10-22  Eric Blake  <ebb9@byu.net>
34619
34620         * tests/test-yesno.sh: Silence stderr during test.
34621
34622 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34623
34624         * modules/crypto/gc-camellia: New file.
34625
34626         * m4/gc-camellia.m4: New file.
34627
34628         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
34629
34630         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
34631
34632 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34633
34634         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
34635         --help to stdout.  Reported by sms@antinode.org (Steven
34636         M. Schweda).
34637
34638 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34639
34640         * users.txt: Fix link to libksba.
34641
34642 2007-10-21  Ben Pfaff  <blp@gnu.org>
34643
34644         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
34645         round.c roundf implementation that depends on floorf and ceilf to
34646         be tested unconditionally.
34647
34648 2007-10-21  Ben Pfaff  <blp@gnu.org>
34649
34650         * m4/check-libm-func.m4: Removed.
34651         * m4/check-math-lib.m4: New file.
34652         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
34653         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
34654         definition and lack of AC_LIBOBJ([roundf]).
34655         * m4/roundl.m4: Ditto, and similarly for roundl.
34656         * modules/round: Reference new m4 file.
34657         * modules/roundf: Ditto.
34658         * modules/roundl: Ditto.
34659         * tests/test-round2.c (main): Use ROUND instead of round.
34660         Bug report from Bruno Haible.
34661
34662 2007-10-21  Bruno Haible  <bruno@clisp.org>
34663
34664         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
34665         context.
34666
34667 2007-10-21  Bruno Haible  <bruno@clisp.org>
34668
34669         * tests/test-wcwidth.c (main): Allow negative result for some control
34670         characters.
34671
34672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
34673         Needed on OSF/1 5.1.
34674
34675 2007-10-21  Bruno Haible  <bruno@clisp.org>
34676
34677         * tests/test-floorf1.c: Include isnanf.h.
34678         (main): Use isnanf() instead of isnan().
34679         * tests/test-ceilf1.c: Include isnanf.h.
34680         (main): Use isnanf() instead of isnan().
34681         * tests/test-truncf1.c: Include isnanf.h.
34682         (main): Use isnanf() instead of isnan().
34683         * tests/test-roundf1.c: Include isnanf.h.
34684         (main): Use isnanf() instead of isnan().
34685
34686 2007-10-21  Eric Blake  <ebb9@byu.net>
34687
34688         * users.txt: Update URL for m4.
34689
34690 2007-10-21  Bruno Haible  <bruno@clisp.org>
34691
34692         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
34693
34694 2007-10-21  Bruno Haible  <bruno@clisp.org>
34695
34696         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
34697         Git's management files if the CVS files are not present.
34698
34699 2007-10-20  Bruno Haible  <bruno@clisp.org>
34700
34701         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
34702         gcc-3.4.x.
34703
34704 2007-10-20  Ben Pfaff  <blp@gnu.org>
34705
34706         * lib/math.in.h: Declare round, roundf, roundl if we are providing
34707         implementations.
34708         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
34709         * lib/round.c: New file.
34710         * lib/roundf.c: New file.
34711         * lib/roundl.c: New file.
34712         * m4/round.m4: New file.
34713         * m4/roundf.m4: New file.
34714         * m4/roundl.m4: New file.
34715         * m4/check-libm-func-m4: New file.
34716         * modules/math: Replace round, roundf, roundl related @VARS@ in
34717         math.in.h.
34718         * modules/round: New file.
34719         * modules/round-tests: New file.
34720         * modules/roundf: New file.
34721         * modules/roundf-tests: New file.
34722         * modules/roundl: New file.
34723         * modules/roundl-tests: New file.
34724         * tests/test-round1.c: New file.
34725         * tests/test-round2.c: New file.
34726         * tests/test-roundf1.c: New file.
34727         * tests/test-roundf2.c: New file.
34728         * tests/test-roundl.c: New file.
34729         * doc/functions/round.texi: Mention round module.
34730         * doc/functions/roundf.texi: Mention roundf module.
34731         * doc/functions/roundl.texi: Mention roundl module.
34732         * MODULES.html.sh: Mention new modules.
34733         Thanks to Bruno Haible for suggestions.
34734
34735 2007-10-20  Jim Meyering  <meyering@redhat.com>
34736
34737         * lib/xprintf.c: Include <config.h> unconditionally.
34738
34739         Change xprintf's license to GPL.
34740         * modules/xprintf (License): s/LGPL/GPL/, since this module
34741         depends on modules (exit and exitfail) which are GPL.
34742         Suggestion from Bruno Haible.
34743
34744         xprintf fixes.
34745         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
34746         Use a clearer diagnostic.
34747         Patch from Bruno Haible.
34748
34749 2007-10-20  Bruno Haible  <bruno@clisp.org>
34750
34751         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
34752         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
34753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34754
34755 2007-10-20  Bruno Haible  <bruno@clisp.org>
34756
34757         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
34758         precision in the comparison result > x - 1 or similar.
34759         * tests/test-ceilf2.c (correct_result_p): Likewise.
34760         * tests/test-truncf2.c (correct_result_p): Likewise.
34761         * tests/test-trunc2.c (correct_result_p): Likewise.
34762         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34763
34764 2007-10-20  Bruno Haible  <bruno@clisp.org>
34765
34766         * modules/ceil: New file.
34767         * m4/ceil.m4: New file.
34768         * doc/functions/ceil.texi: Mention the 'ceil' module.
34769
34770 2007-10-20  Bruno Haible  <bruno@clisp.org>
34771
34772         * modules/floor: New file.
34773         * m4/floor.m4: New file.
34774         * doc/functions/floor.texi: Mention the 'floor' module.
34775
34776 2007-10-20  Bruno Haible  <bruno@clisp.org>
34777
34778         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
34779         of %a.
34780         * modules/floorf-tests (Depends-on): Likewise.
34781         * modules/truncf-tests (Depends-on): Likewise.
34782         * modules/trunc-tests (Depends-on): Likewise.
34783         Reported by Ben Pfaff.
34784
34785 2007-10-19  Jim Meyering  <meyering@redhat.com>
34786
34787         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
34788         Don't bother testing specific errno values.  Just test ferror.
34789
34790         New module: xprintf
34791         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
34792
34793 2007-10-19  Bruno Haible  <bruno@clisp.org>
34794
34795         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
34796         syntax.
34797         * modules/javaexec (Makefile.am): Likewise.
34798         * modules/relocatable-prog (Makefile.am): Likewise.
34799         Suggested by Jim Meyering.
34800
34801 2007-10-18  Bruno Haible  <bruno@clisp.org>
34802
34803         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
34804         Reported by Jim Meyering.
34805
34806 2007-10-18  Eric Blake  <ebb9@byu.net>
34807
34808         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
34809
34810 2007-10-18  Bruno Haible  <bruno@clisp.org>
34811
34812         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
34813         the format string into writable memory. Needed in Fortify conditions.
34814
34815 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
34816             Bruno Haible  <bruno@clisp.org>
34817
34818         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
34819         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
34820         * modules/trim (Depends-on): Add mbchar.
34821         (configure.ac): Add gl_FUNC_MBRTOWC.
34822         (Makefile.am): Augment lib_SOURCES.
34823
34824 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
34825
34826         Modify glob.c to use fstatat and dirfd, to simplify it.
34827         Suggested by Eric Blake.
34828         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
34829         Don't include <stdbool.h>; not used.
34830         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
34831         (link_exists_p): Simplify implementation, since we can now assume
34832         dirfd and fstatat.
34833         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
34834
34835 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34836
34837         * gnulib-tool (func_get_dependencies): Fix sed script to
34838         match only tests.
34839
34840 2007-10-17  Bruno Haible  <bruno@clisp.org>
34841
34842         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
34843         allow locale names without encoding suffix.
34844         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34845         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34846
34847 2007-10-16  Bruno Haible  <bruno@clisp.org>
34848
34849         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
34850         * lib/getgroups.c (getgroups): Likewise.
34851         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
34852
34853 2007-10-16  Bruno Haible  <bruno@clisp.org>
34854
34855         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
34856         * modules/malloc-posix (License): Likewise.
34857         * modules/realloc-posix (License): Likewise.
34858         * modules/calloc-posix (License): Likewise.
34859         * modules/intprops (License): Change from GPL to LGPL, with
34860         Paul Eggert's approval.
34861
34862 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34863
34864         Merge glibc changes into lib/glob.c.
34865
34866         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
34867         2007-10-15 04:59:03 UTC.  Here are the changes:
34868
34869         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
34870
34871         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
34872
34873         * lib/glob.c: Add some branch prediction throughout.
34874
34875         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
34876
34877         [BZ #5103]
34878         * lib/glob.c (glob): Recognize patterns starting \/.
34879
34880         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
34881
34882         [BZ #3996]
34883         * lib/glob.c (attribute_hidden): Define if not defined.
34884         (glob): Unescape dirname, filename or username when needed and not
34885         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
34886         is NULL.  Handle unescaped [ in pattern without closing ].
34887         Don't pass GLOB_CHECK down to recursive glob for directories.
34888         (__glob_pattern_type): New function.
34889         (__glob_pattern_p): Implement using __glob_pattern_type.
34890         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
34891         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
34892         Remove unreachable code.
34893
34894         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
34895
34896         * lib/glob.c (glob_in_dir): Add some comments and asserts to
34897         explain why there are no leaks.
34898
34899         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
34900
34901         [BZ #3253]
34902         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
34903         time, rather allocate increasingly bigger arrays of pointers, if
34904         possible with alloca, if too large with malloc.
34905
34906 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34907
34908         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
34909         Problem reported by H.Merijn Brand in
34910         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
34911         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
34912         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
34913
34914 2007-10-15  Bruno Haible  <bruno@clisp.org>
34915
34916         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
34917         with explicit rpl_ prefix.
34918         * lib/fopen.c (fopen): Likewise.
34919         * lib/freopen.c (freopen): Likewise.
34920         * lib/iconv.c (iconv): Likewise.
34921         * lib/iconv_close.c (iconv_close): Likewise.
34922
34923 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34924
34925         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
34926
34927 2007-10-15  Bruno Haible  <bruno@clisp.org>
34928
34929         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
34930         <stddef.h> instead of <stdlib.h> since we only need NULL.
34931         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34932
34933 2007-10-15  Bruno Haible  <bruno@clisp.org>
34934
34935         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
34936         Replace paragraph talking about LIBOBJS.
34937         Reported by Colin Watson <cjwatson@debian.org>.
34938
34939 2007-10-15  Bruno Haible  <bruno@clisp.org>
34940
34941         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
34942         <stdlib.h> before using NULL.
34943
34944 2007-10-15  Simon Josefsson  <simon@josefsson.org>
34945
34946         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
34947         Reported by Albert Chin <china@thewrittenword.com>.
34948
34949 2007-10-14  Bruno Haible  <bruno@clisp.org>
34950
34951         * modules/iconv_open-utf-tests: New file.
34952         * tests/test-iconv-utf.c: New file.
34953
34954         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
34955         * modules/iconv_open-utf: New file.
34956         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
34957         (iconv, iconv_close): New declarations.
34958         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
34959         be defined.
34960         (iconv_open): Add special handling of conversion between UTF-8 and
34961         UTF-{16,32}{BE,LE}.
34962         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
34963         * lib/iconv_close.c: New file.
34964         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
34965         gl_FUNC_ICONV_OPEN.
34966         (gl_FUNC_ICONV_OPEN): Use it.
34967         (gl_FUNC_ICONV_OPEN_UTF): New macro.
34968         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
34969         and REPLACE_ICONV_UTF.
34970         * modules/iconv_open (Depends-on): Add c-strcase.
34971         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
34972         ICONV_CONST.
34973         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
34974
34975 2007-10-13  Albert Chin  <china@thewrittenword.com>
34976             Bruno Haible  <bruno@clisp.org>
34977
34978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
34979         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
34980
34981 2007-10-13  Bruno Haible  <bruno@clisp.org>
34982
34983         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
34984         defined, use the ISO C99 inline semantics.
34985         * lib/argp.h (ARGP_EI): Likewise.
34986
34987 2007-10-13  Bruno Haible  <bruno@clisp.org>
34988
34989         Handle 'inline' change in gcc 4.3.0.
34990         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
34991         argp_fmtstream_write, argp_fmtstream_set_lmargin,
34992         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
34993         argp_fmtstream_point): Disable 'extern' declaration if the function
34994         definition is going to be provided inline.
34995         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
34996         semantics, not the ISO C99 inline semantics.
34997         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
34998         'extern' declaration if the function definition is going to be provided
34999         inline.
35000         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35001         the GNU C inline semantics, not the ISO C99 inline semantics. With
35002         GCC 4.2, avoid a warning.
35003
35004 2007-10-13  Bruno Haible  <bruno@clisp.org>
35005
35006         * lib/freading.h (freading): Enable the use of __freading for
35007         glibc >= 2.7.
35008         * lib/freading.c (freading): Likewise.
35009
35010 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35011
35012         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35013         "warning: C99 inline functions are not supported; using GNU89".
35014
35015 2007-10-12  Bruno Haible  <bruno@clisp.org>
35016
35017         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35018         of 2.
35019         * tests/test-ceilf2.c: New file.
35020         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35021
35022         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35023         * modules/ceilf-tests: Update.
35024
35025 2007-10-12  Bruno Haible  <bruno@clisp.org>
35026
35027         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35028         of 2.
35029         * tests/test-floorf2.c: New file.
35030         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35031
35032         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35033         * modules/floorf-tests: Update.
35034
35035 2007-10-12  Bruno Haible  <bruno@clisp.org>
35036
35037         * tests/test-trunc2.c: New file.
35038         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35039
35040         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35041         * modules/trunc-tests: Update.
35042
35043 2007-10-12  Bruno Haible  <bruno@clisp.org>
35044
35045         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35046         of 2.
35047         * tests/test-truncf2.c: New file.
35048         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35049
35050         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35051         * modules/truncf-tests: Update.
35052
35053 2007-10-11  Eric Blake  <ebb9@byu.net>
35054
35055         Don't claim strerror is broken on Interix.
35056         * doc/functions/strerror.texi (strerror): Known broken systems are
35057         now Solaris 8, and not Interix.
35058         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35059         Interix on cross-compile.
35060         Reported by Martin Koeppe in
35061         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35062
35063 2007-10-11  Bruno Haible  <bruno@clisp.org>
35064
35065         * modules/i-ring-tests: New file.
35066         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35067         instead of assert.
35068
35069 2007-10-11  Bruno Haible  <bruno@clisp.org>
35070
35071         * modules/filenamecat-tests: New file.
35072         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35073         * lib/filenamecat.c: Remove test code.
35074
35075 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35076
35077         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35078
35079         * lib/strerror.c: Include <string.h> always, to test interface,
35080         and to remove the need for the dummy.
35081         Include intprops.h to compute width instead of doing it ourselves
35082         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35083         (strerror): Define it to return NULL if there's no system strerror.
35084         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35085         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35086         ancient pre-strerror Unix systems well any more.  Saying "unknown
35087         system error" is enough.
35088         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35089         simpler strerror.c implementation.
35090         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35091         Simplify the tests to reflect the simpler strerror implementation.
35092         * modules/strerror (Depends-on): Add intprops.
35093
35094 2007-10-09  Eric Blake  <ebb9@byu.net>
35095
35096         Silence test-fpending.
35097         * modules/fpending-tests (Files): Add wrapper script.
35098         * tests/test-fpending.sh: New file.
35099
35100 2007-10-09  Bruno Haible  <bruno@clisp.org>
35101
35102         * MODULES.html.sh (func_module): Don't create a hyperlink for
35103         function names like 'printf_frexp'.
35104         (Misc): Add crc, memxor.
35105         (Characteristics of floating types): New section.
35106         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35107         isnanf-nolibm, signbit, trunc, truncf, truncl.
35108         (Enhancements for ISO C 99 functions): New subsection Input/output.
35109         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35110         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35111         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35112         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35113         (Enhancements for POSIX:2001 functions): Add chdir-long.
35114         (File system functions): Add areadlink, chdir-safer, read-file.
35115         Remove cycle-check.
35116         (File system as inode set): New section.
35117         (Date and time): Add gethrxtime.
35118         (Multithreading): Add openmp.
35119         (Internationalization functions): Add localename.
35120         (Unicode string functions): Add unistr/u*-mbsnlen.
35121         (Support for maintaining and releasing projects): Add git-version-gen.
35122         (Lone files): Remove directories.
35123
35124 2007-10-08  Ben Pfaff  <blp@gnu.org>
35125
35126         * lib/xmalloca.h: Fix typo in comment.
35127
35128 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35129
35130         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35131         when avoiding problems with integer overflow.  Use a portable test
35132         instead.
35133
35134 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35135
35136         * modules/dummy (License): Change to LGPLv2+.
35137         * modules/float (License): Likewise
35138         * modules/realloc (License): Likewise
35139         * modules/stdlib (License): Likewise
35140
35141 2007-10-07  Bruno Haible  <bruno@clisp.org>
35142
35143         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35144         * floor.c (TWO_MANT_DIG): Likewise.
35145         * ceil.c (TWO_MANT_DIG): Likewise.
35146         Reported by Ben Pfaff.
35147
35148 2007-10-07  Bruno Haible  <bruno@clisp.org>
35149
35150         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35151         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35152         * lib/frexp.c (FUNC): Likewise.
35153         * lib/printf-frexp.h (printf_frexp): Likewise.
35154         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35155         * lib/printf-frexp.c (FUNC): Likewise.
35156         Suggested by Jim Meyering.
35157
35158 2007-10-07  Jim Meyering  <meyering@redhat.com>
35159
35160         Make xnanosleep's integer overflow test more robust.
35161         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35162         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35163
35164 2007-10-07  Bruno Haible  <bruno@clisp.org>
35165
35166         * NEWS: Mention the license change.
35167
35168         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35169         abbreviations in the modules files.
35170
35171         Change copyright notice from GPLv2+ to GPLv3+.
35172         * README: Change copyright notice.
35173         * MODULES.html.sh: Likewise.
35174         * build-aux/bootstrap.conf: Likewise.
35175         * build-aux/config.libpath: Likewise.
35176         * build-aux/csharpcomp.sh.in: Likewise.
35177         * build-aux/csharpexec.sh.in: Likewise.
35178         * build-aux/install-reloc: Likewise.
35179         * build-aux/javacomp.sh.in: Likewise.
35180         * build-aux/javaexec.sh.in: Likewise.
35181         * build-aux/ldd.sh.in: Likewise.
35182         * build-aux/reloc-ldflags: Likewise.
35183         * build-aux/relocatable.sh.in: Likewise.
35184         * build-aux/x-to-1.in: Likewise.
35185         * check-module: Likewise.
35186         * config/srclistvars.sh: Likewise.
35187         * gnulib-tool: Likewise.
35188         * lib/acl-internal.h: Likewise.
35189         * lib/acl.c: Likewise.
35190         * lib/acl.h: Likewise.
35191         * lib/acl_entries.c: Likewise.
35192         * lib/areadlink-with-size.c: Likewise.
35193         * lib/areadlink.c: Likewise.
35194         * lib/areadlink.h: Likewise.
35195         * lib/argmatch.c: Likewise.
35196         * lib/argmatch.h: Likewise.
35197         * lib/argp-ba.c: Likewise.
35198         * lib/argp-eexst.c: Likewise.
35199         * lib/argp-fmtstream.c: Likewise.
35200         * lib/argp-fmtstream.h: Likewise.
35201         * lib/argp-fs-xinl.c: Likewise.
35202         * lib/argp-help.c: Likewise.
35203         * lib/argp-namefrob.h: Likewise.
35204         * lib/argp-parse.c: Likewise.
35205         * lib/argp-pin.c: Likewise.
35206         * lib/argp-pv.c: Likewise.
35207         * lib/argp-pvh.c: Likewise.
35208         * lib/argp-xinl.c: Likewise.
35209         * lib/argp.h: Likewise.
35210         * lib/at-func.c: Likewise.
35211         * lib/atanl.c: Likewise.
35212         * lib/backupfile.c: Likewise.
35213         * lib/backupfile.h: Likewise.
35214         * lib/basename.c: Likewise.
35215         * lib/binary-io.h: Likewise.
35216         * lib/byteswap.in.h: Likewise.
35217         * lib/c-stack.c: Likewise.
35218         * lib/c-stack.h: Likewise.
35219         * lib/c-strcasestr.c: Likewise.
35220         * lib/c-strcasestr.h: Likewise.
35221         * lib/c-strstr.c: Likewise.
35222         * lib/c-strstr.h: Likewise.
35223         * lib/c-strtod.c: Likewise.
35224         * lib/calloc.c: Likewise.
35225         * lib/canon-host.c: Likewise.
35226         * lib/canon-host.h: Likewise.
35227         * lib/canonicalize-lgpl.c: Likewise.
35228         * lib/canonicalize.c: Likewise.
35229         * lib/canonicalize.h: Likewise.
35230         * lib/ceil.c: Likewise.
35231         * lib/ceilf.c: Likewise.
35232         * lib/ceill.c: Likewise.
35233         * lib/chdir-long.c: Likewise.
35234         * lib/chdir-long.h: Likewise.
35235         * lib/chdir-safer.c: Likewise.
35236         * lib/chdir-safer.h: Likewise.
35237         * lib/chown.c: Likewise.
35238         * lib/classpath.c: Likewise.
35239         * lib/classpath.h: Likewise.
35240         * lib/clean-temp.c: Likewise.
35241         * lib/clean-temp.h: Likewise.
35242         * lib/cloexec.c: Likewise.
35243         * lib/close-stream.c: Likewise.
35244         * lib/closein.c: Likewise.
35245         * lib/closein.h: Likewise.
35246         * lib/closeout.c: Likewise.
35247         * lib/closeout.h: Likewise.
35248         * lib/concat-filename.c: Likewise.
35249         * lib/copy-file.c: Likewise.
35250         * lib/copy-file.h: Likewise.
35251         * lib/count-one-bits.h: Likewise.
35252         * lib/crc.c: Likewise.
35253         * lib/crc.h: Likewise.
35254         * lib/creat-safer.c: Likewise.
35255         * lib/csharpcomp.c: Likewise.
35256         * lib/csharpcomp.h: Likewise.
35257         * lib/csharpexec.c: Likewise.
35258         * lib/csharpexec.h: Likewise.
35259         * lib/cycle-check.c: Likewise.
35260         * lib/cycle-check.h: Likewise.
35261         * lib/diacrit.c: Likewise.
35262         * lib/diacrit.h: Likewise.
35263         * lib/diffseq.h: Likewise.
35264         * lib/dirchownmod.c: Likewise.
35265         * lib/dirent.in.h: Likewise.
35266         * lib/dirfd.c: Likewise.
35267         * lib/dirfd.h: Likewise.
35268         * lib/dirname.c: Likewise.
35269         * lib/dirname.h: Likewise.
35270         * lib/dummy.c: Likewise.
35271         * lib/dup-safer.c: Likewise.
35272         * lib/dup2.c: Likewise.
35273         * lib/eealloc.h: Likewise.
35274         * lib/error.c: Likewise.
35275         * lib/error.h: Likewise.
35276         * lib/euidaccess.c: Likewise.
35277         * lib/exclude.c: Likewise.
35278         * lib/exclude.h: Likewise.
35279         * lib/execute.c: Likewise.
35280         * lib/execute.h: Likewise.
35281         * lib/exitfail.c: Likewise.
35282         * lib/exitfail.h: Likewise.
35283         * lib/expl.c: Likewise.
35284         * lib/fatal-signal.c: Likewise.
35285         * lib/fatal-signal.h: Likewise.
35286         * lib/fbufmode.c: Likewise.
35287         * lib/fbufmode.h: Likewise.
35288         * lib/fchdir.c: Likewise.
35289         * lib/fchmodat.c: Likewise.
35290         * lib/fchownat.c: Likewise.
35291         * lib/fcntl--.h: Likewise.
35292         * lib/fcntl-safer.h: Likewise.
35293         * lib/fcntl.in.h: Likewise.
35294         * lib/fd-safer.c: Likewise.
35295         * lib/fflush.c: Likewise.
35296         * lib/file-has-acl.c: Likewise.
35297         * lib/file-set.c: Likewise.
35298         * lib/file-type.c: Likewise.
35299         * lib/file-type.h: Likewise.
35300         * lib/fileblocks.c: Likewise.
35301         * lib/filemode.c: Likewise.
35302         * lib/filemode.h: Likewise.
35303         * lib/filename.h: Likewise.
35304         * lib/filenamecat.c: Likewise.
35305         * lib/filenamecat.h: Likewise.
35306         * lib/findprog.c: Likewise.
35307         * lib/findprog.h: Likewise.
35308         * lib/float.in.h: Likewise.
35309         * lib/floor.c: Likewise.
35310         * lib/floorf.c: Likewise.
35311         * lib/floorl.c: Likewise.
35312         * lib/fopen-safer.c: Likewise.
35313         * lib/fopen.c: Likewise.
35314         * lib/fpending.c: Likewise.
35315         * lib/fpending.h: Likewise.
35316         * lib/fprintf.c: Likewise.
35317         * lib/fprintftime.h: Likewise.
35318         * lib/fpucw.h: Likewise.
35319         * lib/fpurge.c: Likewise.
35320         * lib/fpurge.h: Likewise.
35321         * lib/freadable.c: Likewise.
35322         * lib/freadable.h: Likewise.
35323         * lib/freadahead.c: Likewise.
35324         * lib/freadahead.h: Likewise.
35325         * lib/freading.c: Likewise.
35326         * lib/freading.h: Likewise.
35327         * lib/free.c: Likewise.
35328         * lib/freopen.c: Likewise.
35329         * lib/frexp.c: Likewise.
35330         * lib/frexpl.c: Likewise.
35331         * lib/fseek.c: Likewise.
35332         * lib/fseterr.c: Likewise.
35333         * lib/fseterr.h: Likewise.
35334         * lib/fstatat.c: Likewise.
35335         * lib/fstrcmp.c: Likewise.
35336         * lib/fstrcmp.h: Likewise.
35337         * lib/fsusage.c: Likewise.
35338         * lib/fsusage.h: Likewise.
35339         * lib/ftell.c: Likewise.
35340         * lib/ftello.c: Likewise.
35341         * lib/fts-cycle.c: Likewise.
35342         * lib/fts.c: Likewise.
35343         * lib/fts_.h: Likewise.
35344         * lib/full-read.c: Likewise.
35345         * lib/full-read.h: Likewise.
35346         * lib/full-write.c: Likewise.
35347         * lib/full-write.h: Likewise.
35348         * lib/fwritable.c: Likewise.
35349         * lib/fwritable.h: Likewise.
35350         * lib/fwriteerror.c: Likewise.
35351         * lib/fwriteerror.h: Likewise.
35352         * lib/fwriting.c: Likewise.
35353         * lib/fwriting.h: Likewise.
35354         * lib/gcd.c: Likewise.
35355         * lib/gcd.h: Likewise.
35356         * lib/getcwd.c: Likewise.
35357         * lib/getdate.h: Likewise.
35358         * lib/getdate.y: Likewise.
35359         * lib/getdomainname.c: Likewise.
35360         * lib/getdomainname.h: Likewise.
35361         * lib/getgroups.c: Likewise.
35362         * lib/gethostname.c: Likewise.
35363         * lib/gethrxtime.c: Likewise.
35364         * lib/gethrxtime.h: Likewise.
35365         * lib/getloadavg.c: Likewise.
35366         * lib/getndelim2.c: Likewise.
35367         * lib/getndelim2.h: Likewise.
35368         * lib/getnline.c: Likewise.
35369         * lib/getnline.h: Likewise.
35370         * lib/getopt.c: Likewise.
35371         * lib/getopt.in.h: Likewise.
35372         * lib/getopt1.c: Likewise.
35373         * lib/getopt_int.h: Likewise.
35374         * lib/getpagesize.h: Likewise.
35375         * lib/getsubopt.c: Likewise.
35376         * lib/gettime.c: Likewise.
35377         * lib/getugroups.c: Likewise.
35378         * lib/getugroups.h: Likewise.
35379         * lib/getusershell.c: Likewise.
35380         * lib/gl_anyavltree_list1.h: Likewise.
35381         * lib/gl_anyavltree_list2.h: Likewise.
35382         * lib/gl_anyhash_list1.h: Likewise.
35383         * lib/gl_anyhash_list2.h: Likewise.
35384         * lib/gl_anylinked_list1.h: Likewise.
35385         * lib/gl_anylinked_list2.h: Likewise.
35386         * lib/gl_anyrbtree_list1.h: Likewise.
35387         * lib/gl_anyrbtree_list2.h: Likewise.
35388         * lib/gl_anytree_list1.h: Likewise.
35389         * lib/gl_anytree_list2.h: Likewise.
35390         * lib/gl_anytree_oset.h: Likewise.
35391         * lib/gl_anytreehash_list1.h: Likewise.
35392         * lib/gl_anytreehash_list2.h: Likewise.
35393         * lib/gl_array_list.c: Likewise.
35394         * lib/gl_array_list.h: Likewise.
35395         * lib/gl_array_oset.c: Likewise.
35396         * lib/gl_array_oset.h: Likewise.
35397         * lib/gl_avltree_list.c: Likewise.
35398         * lib/gl_avltree_list.h: Likewise.
35399         * lib/gl_avltree_oset.c: Likewise.
35400         * lib/gl_avltree_oset.h: Likewise.
35401         * lib/gl_avltreehash_list.c: Likewise.
35402         * lib/gl_avltreehash_list.h: Likewise.
35403         * lib/gl_carray_list.c: Likewise.
35404         * lib/gl_carray_list.h: Likewise.
35405         * lib/gl_linked_list.c: Likewise.
35406         * lib/gl_linked_list.h: Likewise.
35407         * lib/gl_linkedhash_list.c: Likewise.
35408         * lib/gl_linkedhash_list.h: Likewise.
35409         * lib/gl_list.c: Likewise.
35410         * lib/gl_list.h: Likewise.
35411         * lib/gl_oset.c: Likewise.
35412         * lib/gl_oset.h: Likewise.
35413         * lib/gl_rbtree_list.c: Likewise.
35414         * lib/gl_rbtree_list.h: Likewise.
35415         * lib/gl_rbtree_oset.c: Likewise.
35416         * lib/gl_rbtree_oset.h: Likewise.
35417         * lib/gl_rbtreehash_list.c: Likewise.
35418         * lib/gl_rbtreehash_list.h: Likewise.
35419         * lib/gl_sublist.c: Likewise.
35420         * lib/gl_sublist.h: Likewise.
35421         * lib/group-member.c: Likewise.
35422         * lib/group-member.h: Likewise.
35423         * lib/hard-locale.c: Likewise.
35424         * lib/hard-locale.h: Likewise.
35425         * lib/hash-pjw.c: Likewise.
35426         * lib/hash-pjw.h: Likewise.
35427         * lib/hash-triple.c: Likewise.
35428         * lib/hash.c: Likewise.
35429         * lib/hash.h: Likewise.
35430         * lib/human.c: Likewise.
35431         * lib/human.h: Likewise.
35432         * lib/i-ring.c: Likewise.
35433         * lib/i-ring.h: Likewise.
35434         * lib/idcache.c: Likewise.
35435         * lib/imaxabs.c: Likewise.
35436         * lib/imaxdiv.c: Likewise.
35437         * lib/inet_pton.c: Likewise.
35438         * lib/inet_pton.h: Likewise.
35439         * lib/intprops.h: Likewise.
35440         * lib/inttostr.c: Likewise.
35441         * lib/inttostr.h: Likewise.
35442         * lib/inttypes.in.h: Likewise.
35443         * lib/isapipe.c: Likewise.
35444         * lib/isdir.c: Likewise.
35445         * lib/isnan.c: Likewise.
35446         * lib/isnan.h: Likewise.
35447         * lib/isnanf.c: Likewise.
35448         * lib/isnanf.h: Likewise.
35449         * lib/isnanl-nolibm.h: Likewise.
35450         * lib/isnanl.c: Likewise.
35451         * lib/isnanl.h: Likewise.
35452         * lib/javacomp.c: Likewise.
35453         * lib/javacomp.h: Likewise.
35454         * lib/javaexec.c: Likewise.
35455         * lib/javaexec.h: Likewise.
35456         * lib/javaversion.c: Likewise.
35457         * lib/javaversion.h: Likewise.
35458         * lib/javaversion.java: Likewise.
35459         * lib/lbrkprop.h: Likewise.
35460         * lib/lchmod.h: Likewise.
35461         * lib/lchown.c: Likewise.
35462         * lib/ldexpl.c: Likewise.
35463         * lib/linebreak.c: Likewise.
35464         * lib/linebreak.h: Likewise.
35465         * lib/linebuffer.c: Likewise.
35466         * lib/linebuffer.h: Likewise.
35467         * lib/locale.in.h: Likewise.
35468         * lib/logl.c: Likewise.
35469         * lib/long-options.c: Likewise.
35470         * lib/long-options.h: Likewise.
35471         * lib/lstat.c: Likewise.
35472         * lib/lstat.h: Likewise.
35473         * lib/math.in.h: Likewise.
35474         * lib/mbchar.c: Likewise.
35475         * lib/mbchar.h: Likewise.
35476         * lib/mbfile.h: Likewise.
35477         * lib/mbiter.h: Likewise.
35478         * lib/mbscasecmp.c: Likewise.
35479         * lib/mbscasestr.c: Likewise.
35480         * lib/mbschr.c: Likewise.
35481         * lib/mbscspn.c: Likewise.
35482         * lib/mbslen.c: Likewise.
35483         * lib/mbsncasecmp.c: Likewise.
35484         * lib/mbsnlen.c: Likewise.
35485         * lib/mbspbrk.c: Likewise.
35486         * lib/mbspcasecmp.c: Likewise.
35487         * lib/mbsrchr.c: Likewise.
35488         * lib/mbssep.c: Likewise.
35489         * lib/mbsspn.c: Likewise.
35490         * lib/mbsstr.c: Likewise.
35491         * lib/mbstok_r.c: Likewise.
35492         * lib/mbswidth.c: Likewise.
35493         * lib/mbswidth.h: Likewise.
35494         * lib/mbuiter.h: Likewise.
35495         * lib/memcasecmp.c: Likewise.
35496         * lib/memcasecmp.h: Likewise.
35497         * lib/memchr.c: Likewise.
35498         * lib/memcmp.c: Likewise.
35499         * lib/memcoll.c: Likewise.
35500         * lib/memcoll.h: Likewise.
35501         * lib/memcpy.c: Likewise.
35502         * lib/memrchr.c: Likewise.
35503         * lib/mkancesdirs.c: Likewise.
35504         * lib/mkdir-p.c: Likewise.
35505         * lib/mkdir-p.h: Likewise.
35506         * lib/mkdir.c: Likewise.
35507         * lib/mkdirat.c: Likewise.
35508         * lib/mkdtemp.c: Likewise.
35509         * lib/mkstemp-safer.c: Likewise.
35510         * lib/mkstemp.c: Likewise.
35511         * lib/modechange.c: Likewise.
35512         * lib/modechange.h: Likewise.
35513         * lib/mountlist.c: Likewise.
35514         * lib/mountlist.h: Likewise.
35515         * lib/mpsort.c: Likewise.
35516         * lib/nanosleep.c: Likewise.
35517         * lib/obstack.c: Likewise.
35518         * lib/obstack.h: Likewise.
35519         * lib/open-safer.c: Likewise.
35520         * lib/open.c: Likewise.
35521         * lib/openat-die.c: Likewise.
35522         * lib/openat-priv.h: Likewise.
35523         * lib/openat-proc.c: Likewise.
35524         * lib/openat.c: Likewise.
35525         * lib/openat.h: Likewise.
35526         * lib/pagealign_alloc.c: Likewise.
35527         * lib/pagealign_alloc.h: Likewise.
35528         * lib/physmem.c: Likewise.
35529         * lib/physmem.h: Likewise.
35530         * lib/pipe-safer.c: Likewise.
35531         * lib/pipe.c: Likewise.
35532         * lib/pipe.h: Likewise.
35533         * lib/posixtm.c: Likewise.
35534         * lib/posixtm.h: Likewise.
35535         * lib/posixver.c: Likewise.
35536         * lib/printf-frexp.c: Likewise.
35537         * lib/printf-frexp.h: Likewise.
35538         * lib/printf-frexpl.c: Likewise.
35539         * lib/printf-frexpl.h: Likewise.
35540         * lib/printf.c: Likewise.
35541         * lib/progname.c: Likewise.
35542         * lib/progname.h: Likewise.
35543         * lib/progreloc.c: Likewise.
35544         * lib/putenv.c: Likewise.
35545         * lib/quote.c: Likewise.
35546         * lib/quote.h: Likewise.
35547         * lib/quotearg.c: Likewise.
35548         * lib/quotearg.h: Likewise.
35549         * lib/raise.c: Likewise.
35550         * lib/readline.c: Likewise.
35551         * lib/readline.h: Likewise.
35552         * lib/readlink.c: Likewise.
35553         * lib/readtokens.c: Likewise.
35554         * lib/readtokens.h: Likewise.
35555         * lib/readtokens0.c: Likewise.
35556         * lib/readtokens0.h: Likewise.
35557         * lib/readutmp.c: Likewise.
35558         * lib/readutmp.h: Likewise.
35559         * lib/realloc.c: Likewise.
35560         * lib/relocwrapper.c: Likewise.
35561         * lib/rename-dest-slash.c: Likewise.
35562         * lib/rename.c: Likewise.
35563         * lib/rmdir.c: Likewise.
35564         * lib/rpmatch.c: Likewise.
35565         * lib/safe-read.c: Likewise.
35566         * lib/safe-read.h: Likewise.
35567         * lib/safe-write.c: Likewise.
35568         * lib/safe-write.h: Likewise.
35569         * lib/same-inode.h: Likewise.
35570         * lib/same.c: Likewise.
35571         * lib/same.h: Likewise.
35572         * lib/save-cwd.c: Likewise.
35573         * lib/save-cwd.h: Likewise.
35574         * lib/savedir.c: Likewise.
35575         * lib/savedir.h: Likewise.
35576         * lib/savewd.c: Likewise.
35577         * lib/savewd.h: Likewise.
35578         * lib/search.in.h: Likewise.
35579         * lib/setenv.c: Likewise.
35580         * lib/setenv.h: Likewise.
35581         * lib/settime.c: Likewise.
35582         * lib/sh-quote.c: Likewise.
35583         * lib/sh-quote.h: Likewise.
35584         * lib/sig2str.c: Likewise.
35585         * lib/sig2str.h: Likewise.
35586         * lib/signal.in.h: Likewise.
35587         * lib/signbitd.c: Likewise.
35588         * lib/signbitf.c: Likewise.
35589         * lib/signbitl.c: Likewise.
35590         * lib/sigprocmask.c: Likewise.
35591         * lib/sincosl.c: Likewise.
35592         * lib/sleep.c: Likewise.
35593         * lib/sprintf.c: Likewise.
35594         * lib/sqrtl.c: Likewise.
35595         * lib/stat-time.h: Likewise.
35596         * lib/stdio--.h: Likewise.
35597         * lib/stdio-safer.h: Likewise.
35598         * lib/stdlib--.h: Likewise.
35599         * lib/stdlib-safer.h: Likewise.
35600         * lib/stdlib.in.h: Likewise.
35601         * lib/stpcpy.c: Likewise.
35602         * lib/stpncpy.c: Likewise.
35603         * lib/strchrnul.c: Likewise.
35604         * lib/strcspn.c: Likewise.
35605         * lib/strerror.c: Likewise.
35606         * lib/strftime.c: Likewise.
35607         * lib/strftime.h: Likewise.
35608         * lib/striconveh.c: Likewise.
35609         * lib/striconveh.h: Likewise.
35610         * lib/striconveha.c: Likewise.
35611         * lib/striconveha.h: Likewise.
35612         * lib/stripslash.c: Likewise.
35613         * lib/strnlen1.c: Likewise.
35614         * lib/strnlen1.h: Likewise.
35615         * lib/strtod.c: Likewise.
35616         * lib/strtoimax.c: Likewise.
35617         * lib/strtok_r.c: Likewise.
35618         * lib/strtol.c: Likewise.
35619         * lib/strtoll.c: Likewise.
35620         * lib/strtoul.c: Likewise.
35621         * lib/strtoull.c: Likewise.
35622         * lib/sysexits.in.h: Likewise.
35623         * lib/tempname.c: Likewise.
35624         * lib/tempname.h: Likewise.
35625         * lib/timespec.h: Likewise.
35626         * lib/tls.c: Likewise.
35627         * lib/tls.h: Likewise.
35628         * lib/tmpdir.c: Likewise.
35629         * lib/tmpdir.h: Likewise.
35630         * lib/tmpfile-safer.c: Likewise.
35631         * lib/tmpfile.c: Likewise.
35632         * lib/trigl.c: Likewise.
35633         * lib/trigl.h: Likewise.
35634         * lib/trim.c: Likewise.
35635         * lib/trim.h: Likewise.
35636         * lib/trunc.c: Likewise.
35637         * lib/truncf.c: Likewise.
35638         * lib/truncl.c: Likewise.
35639         * lib/tsearch.c: Likewise.
35640         * lib/unicodeio.c: Likewise.
35641         * lib/unicodeio.h: Likewise.
35642         * lib/unistd--.h: Likewise.
35643         * lib/unistd-safer.h: Likewise.
35644         * lib/unistdio/ulc-fprintf.c: Likewise.
35645         * lib/unistdio/ulc-vfprintf.c: Likewise.
35646         * lib/unlinkdir.c: Likewise.
35647         * lib/unlinkdir.h: Likewise.
35648         * lib/unlocked-io.h: Likewise.
35649         * lib/unsetenv.c: Likewise.
35650         * lib/userspec.c: Likewise.
35651         * lib/utime.c: Likewise.
35652         * lib/utimecmp.c: Likewise.
35653         * lib/utimecmp.h: Likewise.
35654         * lib/utimens.c: Likewise.
35655         * lib/verify.h: Likewise.
35656         * lib/verror.c: Likewise.
35657         * lib/verror.h: Likewise.
35658         * lib/version-etc-fsf.c: Likewise.
35659         * lib/version-etc.c: Likewise.
35660         * lib/version-etc.h: Likewise.
35661         * lib/vfprintf.c: Likewise.
35662         * lib/vprintf.c: Likewise.
35663         * lib/vsprintf.c: Likewise.
35664         * lib/w32spawn.h: Likewise.
35665         * lib/wait-process.c: Likewise.
35666         * lib/wait-process.h: Likewise.
35667         * lib/wcwidth.c: Likewise.
35668         * lib/write-any-file.c: Likewise.
35669         * lib/xalloc-die.c: Likewise.
35670         * lib/xalloc.h: Likewise.
35671         * lib/xasprintf.c: Likewise.
35672         * lib/xgetcwd.c: Likewise.
35673         * lib/xgetcwd.h: Likewise.
35674         * lib/xgetdomainname.c: Likewise.
35675         * lib/xgetdomainname.h: Likewise.
35676         * lib/xgethostname.c: Likewise.
35677         * lib/xmalloc.c: Likewise.
35678         * lib/xmalloca.c: Likewise.
35679         * lib/xmalloca.h: Likewise.
35680         * lib/xmemcoll.c: Likewise.
35681         * lib/xnanosleep.c: Likewise.
35682         * lib/xreadlink.c: Likewise.
35683         * lib/xreadlink.h: Likewise.
35684         * lib/xsetenv.c: Likewise.
35685         * lib/xsetenv.h: Likewise.
35686         * lib/xstriconv.c: Likewise.
35687         * lib/xstriconv.h: Likewise.
35688         * lib/xstrndup.c: Likewise.
35689         * lib/xstrndup.h: Likewise.
35690         * lib/xstrtod.c: Likewise.
35691         * lib/xstrtod.h: Likewise.
35692         * lib/xstrtol-error.c: Likewise.
35693         * lib/xstrtol.c: Likewise.
35694         * lib/xstrtol.h: Likewise.
35695         * lib/xtime.h: Likewise.
35696         * lib/xvasprintf.c: Likewise.
35697         * lib/xvasprintf.h: Likewise.
35698         * lib/yesno.c: Likewise.
35699         * lib/yesno.h: Likewise.
35700         * posix-modules: Likewise.
35701         * tests/test-alloca-opt.c: Likewise.
35702         * tests/test-arcfour.c: Likewise.
35703         * tests/test-arctwo.c: Likewise.
35704         * tests/test-argmatch.c: Likewise.
35705         * tests/test-argp-2.sh: Likewise.
35706         * tests/test-argp.c: Likewise.
35707         * tests/test-arpa_inet.c: Likewise.
35708         * tests/test-array_list.c: Likewise.
35709         * tests/test-array_oset.c: Likewise.
35710         * tests/test-atexit.c: Likewise.
35711         * tests/test-avltree_list.c: Likewise.
35712         * tests/test-avltree_oset.c: Likewise.
35713         * tests/test-avltreehash_list.c: Likewise.
35714         * tests/test-base64.c: Likewise.
35715         * tests/test-binary-io.c: Likewise.
35716         * tests/test-byteswap.c: Likewise.
35717         * tests/test-c-ctype.c: Likewise.
35718         * tests/test-c-strcasecmp.c: Likewise.
35719         * tests/test-c-strcasestr.c: Likewise.
35720         * tests/test-c-strncasecmp.c: Likewise.
35721         * tests/test-c-strstr.c: Likewise.
35722         * tests/test-canonicalize-lgpl.c: Likewise.
35723         * tests/test-canonicalize.c: Likewise.
35724         * tests/test-carray_list.c: Likewise.
35725         * tests/test-ceilf.c: Likewise.
35726         * tests/test-ceill.c: Likewise.
35727         * tests/test-count-one-bits.c: Likewise.
35728         * tests/test-crc.c: Likewise.
35729         * tests/test-dirname.c: Likewise.
35730         * tests/test-fbufmode.c: Likewise.
35731         * tests/test-fcntl.c: Likewise.
35732         * tests/test-fflush.c: Likewise.
35733         * tests/test-floorf.c: Likewise.
35734         * tests/test-floorl.c: Likewise.
35735         * tests/test-fopen.c: Likewise.
35736         * tests/test-fprintf-posix.c: Likewise.
35737         * tests/test-fprintf-posix.h: Likewise.
35738         * tests/test-fpurge.c: Likewise.
35739         * tests/test-freadable.c: Likewise.
35740         * tests/test-freadahead.c: Likewise.
35741         * tests/test-freading.c: Likewise.
35742         * tests/test-freopen.c: Likewise.
35743         * tests/test-frexp.c: Likewise.
35744         * tests/test-frexpl.c: Likewise.
35745         * tests/test-fseek.c: Likewise.
35746         * tests/test-fseeko.c: Likewise.
35747         * tests/test-fseterr.c: Likewise.
35748         * tests/test-fstrcmp.c: Likewise.
35749         * tests/test-ftell.c: Likewise.
35750         * tests/test-ftello.c: Likewise.
35751         * tests/test-fwritable.c: Likewise.
35752         * tests/test-fwriting.c: Likewise.
35753         * tests/test-getaddrinfo.c: Likewise.
35754         * tests/test-getpass.c: Likewise.
35755         * tests/test-gettimeofday.c: Likewise.
35756         * tests/test-hmac-md5.c: Likewise.
35757         * tests/test-hmac-sha1.c: Likewise.
35758         * tests/test-iconv.c: Likewise.
35759         * tests/test-iconvme.c: Likewise.
35760         * tests/test-inttypes.c: Likewise.
35761         * tests/test-isnan.c: Likewise.
35762         * tests/test-isnanf.c: Likewise.
35763         * tests/test-isnanl-nolibm.c: Likewise.
35764         * tests/test-isnanl.c: Likewise.
35765         * tests/test-isnanl.h: Likewise.
35766         * tests/test-ldexpl.c: Likewise.
35767         * tests/test-linked_list.c: Likewise.
35768         * tests/test-linkedhash_list.c: Likewise.
35769         * tests/test-locale.c: Likewise.
35770         * tests/test-localename.c: Likewise.
35771         * tests/test-lock.c: Likewise.
35772         * tests/test-lseek.c: Likewise.
35773         * tests/test-malloca.c: Likewise.
35774         * tests/test-math.c: Likewise.
35775         * tests/test-mbscasecmp.c: Likewise.
35776         * tests/test-mbscasestr1.c: Likewise.
35777         * tests/test-mbscasestr2.c: Likewise.
35778         * tests/test-mbscasestr3.c: Likewise.
35779         * tests/test-mbscasestr4.c: Likewise.
35780         * tests/test-mbschr.c: Likewise.
35781         * tests/test-mbscspn.c: Likewise.
35782         * tests/test-mbsncasecmp.c: Likewise.
35783         * tests/test-mbspbrk.c: Likewise.
35784         * tests/test-mbspcasecmp.c: Likewise.
35785         * tests/test-mbsrchr.c: Likewise.
35786         * tests/test-mbsspn.c: Likewise.
35787         * tests/test-mbsstr1.c: Likewise.
35788         * tests/test-mbsstr2.c: Likewise.
35789         * tests/test-mbsstr3.c: Likewise.
35790         * tests/test-md5.c: Likewise.
35791         * tests/test-memmem.c: Likewise.
35792         * tests/test-netinet_in.c: Likewise.
35793         * tests/test-open.c: Likewise.
35794         * tests/test-printf-frexp.c: Likewise.
35795         * tests/test-printf-frexpl.c: Likewise.
35796         * tests/test-printf-posix.c: Likewise.
35797         * tests/test-printf-posix.h: Likewise.
35798         * tests/test-rbtree_list.c: Likewise.
35799         * tests/test-rbtree_oset.c: Likewise.
35800         * tests/test-rbtreehash_list.c: Likewise.
35801         * tests/test-read-file.c: Likewise.
35802         * tests/test-rijndael.c: Likewise.
35803         * tests/test-search.c: Likewise.
35804         * tests/test-signbit.c: Likewise.
35805         * tests/test-sleep.c: Likewise.
35806         * tests/test-snprintf-posix.c: Likewise.
35807         * tests/test-snprintf-posix.h: Likewise.
35808         * tests/test-snprintf.c: Likewise.
35809         * tests/test-sprintf-posix.c: Likewise.
35810         * tests/test-sprintf-posix.h: Likewise.
35811         * tests/test-stat-time.c: Likewise.
35812         * tests/test-stdbool.c: Likewise.
35813         * tests/test-stdint.c: Likewise.
35814         * tests/test-stdio.c: Likewise.
35815         * tests/test-stdlib.c: Likewise.
35816         * tests/test-stpncpy.c: Likewise.
35817         * tests/test-strcasestr.c: Likewise.
35818         * tests/test-striconv.c: Likewise.
35819         * tests/test-striconveh.c: Likewise.
35820         * tests/test-striconveha.c: Likewise.
35821         * tests/test-string.c: Likewise.
35822         * tests/test-sys_select.c: Likewise.
35823         * tests/test-sys_socket.c: Likewise.
35824         * tests/test-sys_stat.c: Likewise.
35825         * tests/test-sys_time.c: Likewise.
35826         * tests/test-sysexits.c: Likewise.
35827         * tests/test-time.c: Likewise.
35828         * tests/test-tls.c: Likewise.
35829         * tests/test-trunc.c: Likewise.
35830         * tests/test-truncf.c: Likewise.
35831         * tests/test-truncl.c: Likewise.
35832         * tests/test-unistd.c: Likewise.
35833         * tests/test-vasnprintf-posix.c: Likewise.
35834         * tests/test-vasnprintf-posix2.c: Likewise.
35835         * tests/test-vasnprintf.c: Likewise.
35836         * tests/test-vasprintf-posix.c: Likewise.
35837         * tests/test-vasprintf.c: Likewise.
35838         * tests/test-verify.c: Likewise.
35839         * tests/test-vfprintf-posix.c: Likewise.
35840         * tests/test-vprintf-posix.c: Likewise.
35841         * tests/test-vsnprintf-posix.c: Likewise.
35842         * tests/test-vsnprintf.c: Likewise.
35843         * tests/test-vsprintf-posix.c: Likewise.
35844         * tests/test-wchar.c: Likewise.
35845         * tests/test-wctype.c: Likewise.
35846         * tests/test-wcwidth.c: Likewise.
35847         * tests/test-xstrtol.c: Likewise.
35848         * tests/test-xvasprintf.c: Likewise.
35849         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35850         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35851         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35852         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35853         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35854         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35855         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35856         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35857         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35858         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35859         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35860         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35861         * tests/uniname/test-uninames.c: Likewise.
35862         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35863         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
35864         * tests/unistdio/test-u16-printf1.h: Likewise.
35865         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35866         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35867         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35868         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35869         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35870         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35871         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35872         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
35873         * tests/unistdio/test-u32-printf1.h: Likewise.
35874         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35875         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35876         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35877         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35878         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35879         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35880         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35881         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
35882         * tests/unistdio/test-u8-printf1.h: Likewise.
35883         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35884         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35885         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35886         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35887         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35888         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35889         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35890         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
35891         * tests/unistdio/test-ulc-printf1.h: Likewise.
35892         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35893         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35894         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35895         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35896         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35897         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35898         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35899         * tests/uniwidth/test-u16-width.c: Likewise.
35900         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35901         * tests/uniwidth/test-u32-width.c: Likewise.
35902         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35903         * tests/uniwidth/test-u8-width.c: Likewise.
35904         * tests/uniwidth/test-uc_width.c: Likewise.
35905         * config/srclist-update: Likewise.
35906         (fixlicense): Update to GPLv3+.
35907
35908         Change copyright notice from LGPLv2.1+ to LGPLv3+.
35909         * tests/test-tsearch.c: Change copyright notice.
35910
35911         Change copyright notice from LGPLv2.0+ to LGPLv3+.
35912         * lib/c-strcaseeq.h: Change copyright notice.
35913         * lib/streq.h: Likewise.
35914         * lib/uniconv.h: Likewise.
35915         * lib/uniconv/u-conv-from-enc.h: Likewise.
35916         * lib/uniconv/u-conv-to-enc.h: Likewise.
35917         * lib/uniconv/u-strconv-from-enc.h: Likewise.
35918         * lib/uniconv/u-strconv-to-enc.h: Likewise.
35919         * lib/uniconv/u16-conv-from-enc.c: Likewise.
35920         * lib/uniconv/u16-conv-to-enc.c: Likewise.
35921         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
35922         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
35923         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
35924         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
35925         * lib/uniconv/u32-conv-from-enc.c: Likewise.
35926         * lib/uniconv/u32-conv-to-enc.c: Likewise.
35927         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
35928         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
35929         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
35930         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
35931         * lib/uniconv/u8-conv-from-enc.c: Likewise.
35932         * lib/uniconv/u8-conv-to-enc.c: Likewise.
35933         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
35934         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
35935         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
35936         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
35937         * lib/uniname.h: Likewise.
35938         * lib/uniname/uniname.c: Likewise.
35939         * lib/unistdio.h: Likewise.
35940         * lib/unistdio/u-asnprintf.h: Likewise.
35941         * lib/unistdio/u-asprintf.h: Likewise.
35942         * lib/unistdio/u-printf-args.c: Likewise.
35943         * lib/unistdio/u-printf-args.h: Likewise.
35944         * lib/unistdio/u-printf-parse.h: Likewise.
35945         * lib/unistdio/u-snprintf.h: Likewise.
35946         * lib/unistdio/u-sprintf.h: Likewise.
35947         * lib/unistdio/u-vasprintf.h: Likewise.
35948         * lib/unistdio/u-vsnprintf.h: Likewise.
35949         * lib/unistdio/u-vsprintf.h: Likewise.
35950         * lib/unistdio/u16-asnprintf.c: Likewise.
35951         * lib/unistdio/u16-asprintf.c: Likewise.
35952         * lib/unistdio/u16-printf-parse.c: Likewise.
35953         * lib/unistdio/u16-snprintf.c: Likewise.
35954         * lib/unistdio/u16-sprintf.c: Likewise.
35955         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
35956         * lib/unistdio/u16-u16-asprintf.c: Likewise.
35957         * lib/unistdio/u16-u16-snprintf.c: Likewise.
35958         * lib/unistdio/u16-u16-sprintf.c: Likewise.
35959         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
35960         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
35961         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
35962         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
35963         * lib/unistdio/u16-vasnprintf.c: Likewise.
35964         * lib/unistdio/u16-vasprintf.c: Likewise.
35965         * lib/unistdio/u16-vsnprintf.c: Likewise.
35966         * lib/unistdio/u16-vsprintf.c: Likewise.
35967         * lib/unistdio/u32-asnprintf.c: Likewise.
35968         * lib/unistdio/u32-asprintf.c: Likewise.
35969         * lib/unistdio/u32-printf-parse.c: Likewise.
35970         * lib/unistdio/u32-snprintf.c: Likewise.
35971         * lib/unistdio/u32-sprintf.c: Likewise.
35972         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
35973         * lib/unistdio/u32-u32-asprintf.c: Likewise.
35974         * lib/unistdio/u32-u32-snprintf.c: Likewise.
35975         * lib/unistdio/u32-u32-sprintf.c: Likewise.
35976         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
35977         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
35978         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
35979         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
35980         * lib/unistdio/u32-vasnprintf.c: Likewise.
35981         * lib/unistdio/u32-vasprintf.c: Likewise.
35982         * lib/unistdio/u32-vsnprintf.c: Likewise.
35983         * lib/unistdio/u32-vsprintf.c: Likewise.
35984         * lib/unistdio/u8-asnprintf.c: Likewise.
35985         * lib/unistdio/u8-asprintf.c: Likewise.
35986         * lib/unistdio/u8-printf-parse.c: Likewise.
35987         * lib/unistdio/u8-snprintf.c: Likewise.
35988         * lib/unistdio/u8-sprintf.c: Likewise.
35989         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
35990         * lib/unistdio/u8-u8-asprintf.c: Likewise.
35991         * lib/unistdio/u8-u8-snprintf.c: Likewise.
35992         * lib/unistdio/u8-u8-sprintf.c: Likewise.
35993         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
35994         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
35995         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
35996         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
35997         * lib/unistdio/u8-vasnprintf.c: Likewise.
35998         * lib/unistdio/u8-vasprintf.c: Likewise.
35999         * lib/unistdio/u8-vsnprintf.c: Likewise.
36000         * lib/unistdio/u8-vsprintf.c: Likewise.
36001         * lib/unistdio/ulc-asnprintf.c: Likewise.
36002         * lib/unistdio/ulc-asprintf.c: Likewise.
36003         * lib/unistdio/ulc-printf-parse.c: Likewise.
36004         * lib/unistdio/ulc-snprintf.c: Likewise.
36005         * lib/unistdio/ulc-sprintf.c: Likewise.
36006         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36007         * lib/unistdio/ulc-vasprintf.c: Likewise.
36008         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36009         * lib/unistdio/ulc-vsprintf.c: Likewise.
36010         * lib/unistr.h: Likewise.
36011         * lib/unistr/u-cpy-alloc.h: Likewise.
36012         * lib/unistr/u-cpy.h: Likewise.
36013         * lib/unistr/u-endswith.h: Likewise.
36014         * lib/unistr/u-move.h: Likewise.
36015         * lib/unistr/u-set.h: Likewise.
36016         * lib/unistr/u-startswith.h: Likewise.
36017         * lib/unistr/u-stpcpy.h: Likewise.
36018         * lib/unistr/u-stpncpy.h: Likewise.
36019         * lib/unistr/u-strcat.h: Likewise.
36020         * lib/unistr/u-strcpy.h: Likewise.
36021         * lib/unistr/u-strcspn.h: Likewise.
36022         * lib/unistr/u-strdup.h: Likewise.
36023         * lib/unistr/u-strlen.h: Likewise.
36024         * lib/unistr/u-strncat.h: Likewise.
36025         * lib/unistr/u-strncpy.h: Likewise.
36026         * lib/unistr/u-strnlen.h: Likewise.
36027         * lib/unistr/u-strpbrk.h: Likewise.
36028         * lib/unistr/u-strspn.h: Likewise.
36029         * lib/unistr/u-strstr.h: Likewise.
36030         * lib/unistr/u-strtok.h: Likewise.
36031         * lib/unistr/u16-check.c: Likewise.
36032         * lib/unistr/u16-chr.c: Likewise.
36033         * lib/unistr/u16-cmp.c: Likewise.
36034         * lib/unistr/u16-cpy-alloc.c: Likewise.
36035         * lib/unistr/u16-cpy.c: Likewise.
36036         * lib/unistr/u16-endswith.c: Likewise.
36037         * lib/unistr/u16-mblen.c: Likewise.
36038         * lib/unistr/u16-mbsnlen.c: Likewise.
36039         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36040         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36041         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36042         * lib/unistr/u16-mbtouc.c: Likewise.
36043         * lib/unistr/u16-mbtoucr.c: Likewise.
36044         * lib/unistr/u16-move.c: Likewise.
36045         * lib/unistr/u16-next.c: Likewise.
36046         * lib/unistr/u16-prev.c: Likewise.
36047         * lib/unistr/u16-set.c: Likewise.
36048         * lib/unistr/u16-startswith.c: Likewise.
36049         * lib/unistr/u16-stpcpy.c: Likewise.
36050         * lib/unistr/u16-stpncpy.c: Likewise.
36051         * lib/unistr/u16-strcat.c: Likewise.
36052         * lib/unistr/u16-strchr.c: Likewise.
36053         * lib/unistr/u16-strcmp.c: Likewise.
36054         * lib/unistr/u16-strcpy.c: Likewise.
36055         * lib/unistr/u16-strcspn.c: Likewise.
36056         * lib/unistr/u16-strdup.c: Likewise.
36057         * lib/unistr/u16-strlen.c: Likewise.
36058         * lib/unistr/u16-strmblen.c: Likewise.
36059         * lib/unistr/u16-strmbtouc.c: Likewise.
36060         * lib/unistr/u16-strncat.c: Likewise.
36061         * lib/unistr/u16-strncmp.c: Likewise.
36062         * lib/unistr/u16-strncpy.c: Likewise.
36063         * lib/unistr/u16-strnlen.c: Likewise.
36064         * lib/unistr/u16-strpbrk.c: Likewise.
36065         * lib/unistr/u16-strrchr.c: Likewise.
36066         * lib/unistr/u16-strspn.c: Likewise.
36067         * lib/unistr/u16-strstr.c: Likewise.
36068         * lib/unistr/u16-strtok.c: Likewise.
36069         * lib/unistr/u16-to-u32.c: Likewise.
36070         * lib/unistr/u16-to-u8.c: Likewise.
36071         * lib/unistr/u16-uctomb-aux.c: Likewise.
36072         * lib/unistr/u16-uctomb.c: Likewise.
36073         * lib/unistr/u32-check.c: Likewise.
36074         * lib/unistr/u32-chr.c: Likewise.
36075         * lib/unistr/u32-cmp.c: Likewise.
36076         * lib/unistr/u32-cpy-alloc.c: Likewise.
36077         * lib/unistr/u32-cpy.c: Likewise.
36078         * lib/unistr/u32-endswith.c: Likewise.
36079         * lib/unistr/u32-mblen.c: Likewise.
36080         * lib/unistr/u32-mbsnlen.c: Likewise.
36081         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36082         * lib/unistr/u32-mbtouc.c: Likewise.
36083         * lib/unistr/u32-mbtoucr.c: Likewise.
36084         * lib/unistr/u32-move.c: Likewise.
36085         * lib/unistr/u32-next.c: Likewise.
36086         * lib/unistr/u32-prev.c: Likewise.
36087         * lib/unistr/u32-set.c: Likewise.
36088         * lib/unistr/u32-startswith.c: Likewise.
36089         * lib/unistr/u32-stpcpy.c: Likewise.
36090         * lib/unistr/u32-stpncpy.c: Likewise.
36091         * lib/unistr/u32-strcat.c: Likewise.
36092         * lib/unistr/u32-strchr.c: Likewise.
36093         * lib/unistr/u32-strcmp.c: Likewise.
36094         * lib/unistr/u32-strcpy.c: Likewise.
36095         * lib/unistr/u32-strcspn.c: Likewise.
36096         * lib/unistr/u32-strdup.c: Likewise.
36097         * lib/unistr/u32-strlen.c: Likewise.
36098         * lib/unistr/u32-strmblen.c: Likewise.
36099         * lib/unistr/u32-strmbtouc.c: Likewise.
36100         * lib/unistr/u32-strncat.c: Likewise.
36101         * lib/unistr/u32-strncmp.c: Likewise.
36102         * lib/unistr/u32-strncpy.c: Likewise.
36103         * lib/unistr/u32-strnlen.c: Likewise.
36104         * lib/unistr/u32-strpbrk.c: Likewise.
36105         * lib/unistr/u32-strrchr.c: Likewise.
36106         * lib/unistr/u32-strspn.c: Likewise.
36107         * lib/unistr/u32-strstr.c: Likewise.
36108         * lib/unistr/u32-strtok.c: Likewise.
36109         * lib/unistr/u32-to-u16.c: Likewise.
36110         * lib/unistr/u32-to-u8.c: Likewise.
36111         * lib/unistr/u32-uctomb.c: Likewise.
36112         * lib/unistr/u8-check.c: Likewise.
36113         * lib/unistr/u8-chr.c: Likewise.
36114         * lib/unistr/u8-cmp.c: Likewise.
36115         * lib/unistr/u8-cpy-alloc.c: Likewise.
36116         * lib/unistr/u8-cpy.c: Likewise.
36117         * lib/unistr/u8-endswith.c: Likewise.
36118         * lib/unistr/u8-mblen.c: Likewise.
36119         * lib/unistr/u8-mbsnlen.c: Likewise.
36120         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36121         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36122         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36123         * lib/unistr/u8-mbtouc.c: Likewise.
36124         * lib/unistr/u8-mbtoucr.c: Likewise.
36125         * lib/unistr/u8-move.c: Likewise.
36126         * lib/unistr/u8-next.c: Likewise.
36127         * lib/unistr/u8-prev.c: Likewise.
36128         * lib/unistr/u8-set.c: Likewise.
36129         * lib/unistr/u8-startswith.c: Likewise.
36130         * lib/unistr/u8-stpcpy.c: Likewise.
36131         * lib/unistr/u8-stpncpy.c: Likewise.
36132         * lib/unistr/u8-strcat.c: Likewise.
36133         * lib/unistr/u8-strchr.c: Likewise.
36134         * lib/unistr/u8-strcmp.c: Likewise.
36135         * lib/unistr/u8-strcpy.c: Likewise.
36136         * lib/unistr/u8-strcspn.c: Likewise.
36137         * lib/unistr/u8-strdup.c: Likewise.
36138         * lib/unistr/u8-strlen.c: Likewise.
36139         * lib/unistr/u8-strmblen.c: Likewise.
36140         * lib/unistr/u8-strmbtouc.c: Likewise.
36141         * lib/unistr/u8-strncat.c: Likewise.
36142         * lib/unistr/u8-strncmp.c: Likewise.
36143         * lib/unistr/u8-strncpy.c: Likewise.
36144         * lib/unistr/u8-strnlen.c: Likewise.
36145         * lib/unistr/u8-strpbrk.c: Likewise.
36146         * lib/unistr/u8-strrchr.c: Likewise.
36147         * lib/unistr/u8-strspn.c: Likewise.
36148         * lib/unistr/u8-strstr.c: Likewise.
36149         * lib/unistr/u8-strtok.c: Likewise.
36150         * lib/unistr/u8-to-u16.c: Likewise.
36151         * lib/unistr/u8-to-u32.c: Likewise.
36152         * lib/unistr/u8-uctomb-aux.c: Likewise.
36153         * lib/unistr/u8-uctomb.c: Likewise.
36154         * lib/unitypes.h: Likewise.
36155         * lib/uniwidth.h: Likewise.
36156         * lib/uniwidth/cjk.h: Likewise.
36157         * lib/uniwidth/u16-strwidth.c: Likewise.
36158         * lib/uniwidth/u16-width.c: Likewise.
36159         * lib/uniwidth/u32-strwidth.c: Likewise.
36160         * lib/uniwidth/u32-width.c: Likewise.
36161         * lib/uniwidth/u8-strwidth.c: Likewise.
36162         * lib/uniwidth/u8-width.c: Likewise.
36163         * lib/uniwidth/width.c: Likewise.
36164
36165 2007-10-07  Bruno Haible  <bruno@clisp.org>
36166
36167         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36168         The file is still under LGPL (see modules/inttypes).
36169
36170 2007-10-06  Bruno Haible  <bruno@clisp.org>
36171
36172         * modules/trunc (Dependencies): Add 'extensions'.
36173         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36174         Reported by Ben Pfaff <blp@gnu.org>.
36175
36176 2007-10-06  Bruno Haible  <bruno@clisp.org>
36177
36178         * modules/freopen-tests: New file.
36179         * tests/test-freopen.c: New file.
36180
36181         * modules/fopen-tests: New file.
36182         * tests/test-fopen.c: New file.
36183
36184         * modules/fopen: New file.
36185         * lib/fopen.c: New file.
36186         * m4/fopen.m4: New file.
36187         * modules/freopen: New file.
36188         * lib/freopen.c: New file.
36189         * m4/freopen.m4: New file.
36190         * lib/stdio.in.h (fopen, freopen): New declarations.
36191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36192         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36193         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36194         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36195         * doc/functions/fopen.texi: Mention the 'fopen' module.
36196         * doc/functions/freopen.texi: Mention the 'freopen' module.
36197
36198 2007-10-06  Bruno Haible  <bruno@clisp.org>
36199
36200         * modules/open-tests: New file.
36201         * tests/test-open.c: New file.
36202
36203         * modules/open: New file.
36204         * lib/open.c: New file.
36205         * m4/open.m4: New file.
36206         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36207         lib/open.c does.
36208         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36209         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36210         macros.
36211         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36212         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36213         REPLACE_OPEN.
36214         * doc/functions/open.texi: Mention the 'open' module.
36215
36216 2007-10-04  Bruno Haible  <bruno@clisp.org>
36217
36218         * modules/ceill-tests: New file.
36219         * tests/test-ceill.c: New file.
36220
36221         * modules/ceill: New file.
36222         * lib/ceill.c: Replace entire file.
36223         * m4/ceill.m4: New file.
36224         * lib/math.in.h (ceill): Replace declaration.
36225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36226         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36227         * doc/functions/ceill.texi: Mention the 'ceill' module.
36228         * modules/mathl (Files): Remove lib/ceill.c.
36229         (Depends-on): Add ceill.
36230
36231 2007-10-04  Bruno Haible  <bruno@clisp.org>
36232
36233         * modules/ceilf-tests: New file.
36234         * tests/test-ceilf.c: New file.
36235
36236         * modules/ceilf: New file.
36237         * lib/ceil.c: New file.
36238         * lib/ceilf.c: New file.
36239         * m4/ceilf.m4: New file.
36240         * lib/math.in.h (ceilf): New declaration.
36241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36242         HAVE_DECL_CEILF.
36243         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36244         HAVE_DECL_CEILF.
36245         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36246
36247 2007-10-04  Bruno Haible  <bruno@clisp.org>
36248
36249         * modules/floorl-tests: New file.
36250         * tests/test-floorl.c: New file.
36251
36252         * modules/floorl: New file.
36253         * lib/floorl.c: Replace entire file.
36254         * m4/floorl.m4: New file.
36255         * lib/math.in.h (floorl): Replace declaration.
36256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36257         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36258         * doc/functions/floorl.texi: Mention the 'floorl' module.
36259         * modules/mathl (Files): Remove lib/floorl.c.
36260         (Depends-on): Add floorl.
36261
36262 2007-10-04  Bruno Haible  <bruno@clisp.org>
36263
36264         * modules/floorf-tests: New file.
36265         * tests/test-floorf.c: New file.
36266
36267         * modules/floorf: New file.
36268         * lib/floor.c: New file.
36269         * lib/floorf.c: New file.
36270         * m4/floorf.m4: New file.
36271         * lib/math.in.h (floorf): New declaration.
36272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36273         HAVE_DECL_FLOORF.
36274         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36275         HAVE_DECL_FLOORF.
36276         * doc/functions/floorf.texi: Mention the 'floorf' module.
36277
36278 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36279             Bruno Haible  <bruno@clisp.org>
36280
36281         Advertise for the Git server instead of the CVS server.
36282         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36283         repository instead of the CVS one.
36284         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36285         about all VCS systems generically.
36286         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36287
36288 2007-10-04  Bruno Haible  <bruno@clisp.org>
36289
36290         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36291         means.
36292         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36293
36294 2007-10-04  Bruno Haible  <bruno@clisp.org>
36295
36296         * modules/truncl-tests: New file.
36297         * tests/test-truncl.c: New file.
36298
36299         * modules/truncl: New file.
36300         * lib/truncl.c: New file.
36301         * m4/truncl.m4: New file.
36302         * lib/math.in.h (truncl): New declaration.
36303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36304         HAVE_DECL_TRUNCL.
36305         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36306         HAVE_DECL_TRUNCL.
36307         * doc/functions/truncl.texi: Mention the 'truncl' module.
36308
36309 2007-10-04  Bruno Haible  <bruno@clisp.org>
36310
36311         * modules/truncf-tests: New file.
36312         * tests/test-truncf.c: New file.
36313
36314         * modules/truncf: New file.
36315         * lib/trunc.c: Make paramerizable through USE_* macros.
36316         * lib/truncf.c: New file.
36317         * m4/truncf.m4: New file.
36318         * lib/math.in.h (truncf): New declaration.
36319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36320         HAVE_DECL_TRUNCF.
36321         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36322         HAVE_DECL_TRUNCF.
36323         * doc/functions/truncf.texi: Mention the 'truncf' module.
36324
36325 2007-10-03  Bruno Haible  <bruno@clisp.org>
36326
36327         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36328         augmentation also for tests modules.
36329         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36330         * modules/atexit-tests (Makefile.am): Likewise.
36331         * modules/binary-io-tests (Makefile.am): Likewise.
36332         * modules/c-strcase-tests (Makefile.am): Likewise.
36333         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36334         * modules/canonicalize-tests (Makefile.am): Likewise.
36335         * modules/closein-tests (Makefile.am): Likewise.
36336         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36337         * modules/freadahead-tests (Makefile.am): Likewise.
36338         * modules/fseek-tests (Makefile.am): Likewise.
36339         * modules/fseeko-tests (Makefile.am): Likewise.
36340         * modules/ftell-tests (Makefile.am): Likewise.
36341         * modules/ftello-tests (Makefile.am): Likewise.
36342         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36343         * modules/isnanl-tests (Makefile.am): Likewise.
36344         * modules/lseek-tests (Makefile.am): Likewise.
36345         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36346         * modules/mbscasestr-tests (Makefile.am): Likewise.
36347         * modules/mbschr-tests (Makefile.am): Likewise.
36348         * modules/mbscspn-tests (Makefile.am): Likewise.
36349         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36350         * modules/mbspbrk-tests (Makefile.am): Likewise.
36351         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36352         * modules/mbsrchr-tests (Makefile.am): Likewise.
36353         * modules/mbsspn-tests (Makefile.am): Likewise.
36354         * modules/mbsstr-tests (Makefile.am): Likewise.
36355         * modules/printf-posix-tests (Makefile.am): Likewise.
36356         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36357         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36358         * modules/tsearch-tests (Makefile.am): Likewise.
36359         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36360         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36361         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36362         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36363         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36364         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36365         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36366         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36367         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36368         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36369         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36370         * modules/xstrtol-tests (Makefile.am): Likewise.
36371         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36372         * modules/yesno-tests (Makefile.am): Likewise.
36373
36374 2007-10-03  Bruno Haible  <bruno@clisp.org>
36375
36376         * modules/trunc-tests: New file.
36377         * tests/test-trunc.c: New file.
36378
36379         * modules/trunc: New file.
36380         * lib/trunc.c: New file.
36381         * m4/trunc.m4: New file.
36382         * lib/math.in.h (trunc): New declaration.
36383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36384         HAVE_DECL_TRUNC.
36385         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36386         HAVE_DECL_TRUNC.
36387         * doc/functions/trunc.texi: Mention the 'trunc' module.
36388
36389 2007-10-03  Bruno Haible  <bruno@clisp.org>
36390
36391         * tests/test-fpending.c: New file, mostly copied
36392         from coreutils/lib/t-fpending.c.
36393         * modules/fpending-tests: New file.
36394
36395 2007-10-03  Bruno Haible  <bruno@clisp.org>
36396
36397         Port the stdio extensions to QNX (untested).
36398         * lib/fseterr.c (fseterr): Add support for QNX.
36399         * lib/fbufmode.c (fbufmode): Likewise.
36400         * lib/freadable.c (freadable): Likewise.
36401         * lib/fwritable.c (fwritable): Likewise.
36402         * lib/freading.c (freading): Likewise.
36403         * lib/fwriting.c (fwriting): Likewise.
36404         * lib/freadahead.c (freadahed): Likewise.
36405         * lib/fpurge.c (fpurge): Likewise.
36406         * lib/fseeko.c (rpl_fseeko): Likewise.
36407
36408 2007-10-03  Bruno Haible  <bruno@clisp.org>
36409             Jim Meyering  <jim@meyering.net>
36410             Eric Blake  <ebb9@byu.net>
36411
36412         * doc/relocatable.texi: Use @command instead of @program.
36413
36414 2007-10-02  Jim Meyering  <jim@meyering.net>
36415
36416         Perform one more "_.h" -> ".in.h" substitution.
36417         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36418         instead of unistd_.h here, too.
36419
36420 2007-10-01  Bruno Haible  <bruno@clisp.org>
36421
36422         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36423         Needed for the alloca-opt module.
36424
36425 2007-09-30  Bruno Haible  <bruno@clisp.org>
36426
36427         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36428         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36429         alloca_.h.
36430         * lib/argz.in.h: Renamed from lib/argz_.h.
36431         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36432         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36433         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36434         byteswap_.h.
36435         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36436         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36437         dirent_.h.
36438         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36439         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36440         fcntl_.h.
36441         * lib/float.in.h: Renamed from lib/float_.h.
36442         * modules/float (Files, Makefile.am): Use float.in.h instead of
36443         float_.h.
36444         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36445         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36446         fnmatch_.h.
36447         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36448         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36449         getopt_.h.
36450         * lib/glob.in.h: Renamed from lib/glob_.h.
36451         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36452         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36453         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36454         iconv_.h.
36455         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36456         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36457         inttypes_.h.
36458         * lib/locale.in.h: Renamed from lib/locale_.h.
36459         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36460         locale_.h.
36461         * lib/math.in.h: Renamed from lib/math_.h.
36462         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36463         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36464         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36465         of netinet_in_.h. Add dependency.
36466         * lib/poll.in.h: Renamed from lib/poll_.h.
36467         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36468         * lib/search.in.h: Renamed from lib/search_.h.
36469         * modules/search (Files, Makefile.am): Use search.in.h instead of
36470         search_.h.
36471         * lib/signal.in.h: Renamed from lib/signal_.h.
36472         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36473         _signal.h.
36474         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36475         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36476         stdbool_.h.
36477         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36478         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36479         stdint_.h.
36480         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36481         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36482         stdio_.h.
36483         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36484         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36485         stdlib_.h.
36486         * lib/string.in.h: Renamed from lib/string_.h.
36487         * modules/string (Files, Makefile.am): Use string.in.h instead of
36488         string_.h.
36489         * doc/gnulib-tool.texi (Initial import): Update.
36490         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36491         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36492         of sys_select_.h. Add dependency.
36493         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36494         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36495         of sys_socket_.h.
36496         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36497         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36498         sys_stat_.h.
36499         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36500         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36501         sys_time_.h.
36502         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36503         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36504         sysexits_.h.
36505         * lib/time.in.h: Renamed from lib/time_.h.
36506         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36507         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36508         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36509         unistd_.h.
36510         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36511         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36512         wchar_.h.
36513         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36514         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36515         wctype_.h.
36516         * build-aux/bootstrap (slurp): Update.
36517         * lib/.cppi-disable: Update.
36518
36519 2007-09-30  Bruno Haible  <bruno@clisp.org>
36520
36521         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36522         Needed on BeOS.
36523
36524 2007-09-30  Bruno Haible  <bruno@clisp.org>
36525
36526         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36527
36528 2007-09-29  Bruno Haible  <bruno@clisp.org>
36529
36530         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36531
36532 2007-09-29  Bruno Haible  <bruno@clisp.org>
36533
36534         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36535         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36536         * build-aux/install-reloc: Compile also areadlink.c.
36537         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36538
36539 2007-09-29  Bruno Haible  <bruno@clisp.org>
36540
36541         * gnulib-tool (func_emit_initmacro_done): Indentation.
36542
36543 2007-09-29  Bruno Haible  <bruno@clisp.org>
36544
36545         * README: Add CVS checkout update instructions.
36546         Info from Bob Proulx <bob@proulx.com>.
36547
36548 2007-09-28  Eric Blake  <ebb9@byu.net>
36549
36550         Provide move-if-change.
36551         * build-aux/move-if-change: New file, based on best practice
36552         rather than any canonical upstream location.
36553
36554 2007-09-28  Jim Meyering  <jim@meyering.net>
36555
36556         Fix canonicalize loop-detection corner case.
36557         Do not attempt to stat the symlink values stored via seen_triple.
36558         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36559         on linux-2.6.18, (but not 2.6.22).
36560         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36561         triple_compare.  The former compares dev,ino,filename, while the latter
36562         would actually stat dirname(filename) when dev and ino were equal.
36563         * lib/hash-triple.c: Install <string.h>.
36564         (STREQ): Define.
36565         (triple_compare_ino_str): New function.
36566         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36567
36568 2007-09-28  Eric Blake  <ebb9@byu.net>
36569
36570         Enforce that AC_REPLACE_FUNCS files exist.
36571         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36572         override check for typos.
36573
36574         Fix test-closein on Solaris 10.
36575         * tests/test-closein.c (main): Don't assume stdin can be inherited
36576         closed on all systems.
36577         * tests/test-closein.sh: Likewise.
36578         Reported by Piotr Tarnowski.
36579
36580 2007-09-28  Jim Meyering  <jim@meyering.net>
36581
36582         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36583
36584 2007-09-27  Jim Meyering  <jim@meyering.net>
36585
36586         canonicalize: Avoid a false-positive cycle failure.
36587         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36588         Sort.  Remove cycle-check.
36589         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36590         not cycle-check.h.
36591         (seen_triple): New function.
36592         (canonicalize_filename_mode): Use it instead of cycle-check.
36593         * tests/test-canonicalize.c: Add a test for this bug.
36594         * tests/test-canonicalize.sh: Set up and run the test.
36595
36596         New module, file-set, from coreutils.
36597         * modules/file-set: Define it.
36598         * lib/file-set.c, lib/file-set.h: Implement.
36599
36600         New module, hash-triple, from coreutils.
36601         * modules/hash-triple: Define it.
36602         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36603
36604 2007-09-25  Eric Blake  <ebb9@byu.net>
36605
36606         Fix strerror on Interix.
36607         * lib/string_.h (strerror): Declare replacement.
36608         * doc/functions/strerror.texi (strerror): Document the Interix
36609         shortcoming.
36610         * modules/string (Makefile.am): Support new hooks.
36611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36612         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36613         gl_FUNC_STRERROR_SEPARATE.
36614         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36615         * lib/strerror.c (rpl_strerror): Provide replacement.
36616         * modules/strerror (Depends-on): Add string.
36617         (configure.ac): Detect use of module.
36618         * tests/test-strerror.c: New file.
36619         * modules/strerror-tests: New test module.
36620         * modules/argp (Depends-on): Add strerror.
36621         * modules/error (Depends-on): Likewise.
36622         Reported by Martin Koeppe.
36623
36624 2007-09-24  Bruno Haible  <bruno@clisp.org>
36625
36626         * README: Update git instructions.
36627
36628 2007-09-24  Eric Blake  <ebb9@byu.net>
36629
36630         Revert fpending breakage from 2007-09-08.
36631         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
36632         __fpending.c.
36633
36634 2007-09-24  Jim Meyering  <jim@meyering.net>
36635
36636         filenamecat.c: Add a test.
36637         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
36638         showing how the function works when DIR is the empty string.
36639
36640 2007-09-21  Simon Josefsson  <simon@josefsson.org>
36641
36642         * tests/test-canonicalize.sh: Turn on executable bit.
36643
36644 2007-09-19  Eric Blake  <ebb9@byu.net>
36645
36646         * README: Update CVS instructions.
36647
36648 2007-09-18  Bruno Haible  <bruno@clisp.org>
36649
36650         * modules/areadlink: New file.
36651         * lib/areadlink.h (areadlink): New declaration.
36652         * lib/areadlink.c: New file, based on lib/xreadlink.c.
36653
36654 2007-09-17  Jim Meyering  <jim@meyering.net>
36655
36656         * lib/savewd.c (ESTALE) [!defined]: Define.
36657         Reported to be required on Interix by Martin Koeppe.
36658
36659 2007-09-17  Bruno Haible  <bruno@clisp.org>
36660
36661         * gnulib-tool (func_version): Use $version.
36662
36663 2007-09-16  Bruno Haible  <bruno@clisp.org>
36664
36665         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
36666         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
36667         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
36668         Reported by Greg Schafer <gschafer@zip.com.au>.
36669
36670 2007-09-15  Bruno Haible  <bruno@clisp.org>
36671
36672         * gnulib-tool (sed): Try a little harder to make bash understand the
36673         alias.
36674         Reported by Bruce Korb <bruce.korb@gmail.com>.
36675
36676 2007-09-13  Eric Blake  <ebb9@byu.net>
36677
36678         * ChangeLog: Remove conflict markers.
36679
36680 2007-09-13  Simon Josefsson  <simon@josefsson.org>
36681
36682         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
36683         Reported by Bruno Haible <bruno@clisp.org>.
36684
36685 2007-09-12  Bruno Haible  <bruno@clisp.org>
36686
36687         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
36688         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
36689         is not defined.
36690
36691 2007-09-12  Eric Blake  <ebb9@byu.net>
36692
36693         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
36694         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
36695         Autoconf definition.
36696         * modules/euidaccess (Depends-on): Add extensions, for
36697         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
36698         * modules/fnmatch (Depends-on): Likewise.
36699         * modules/getaddrinfo (Depends-on): Likewise.
36700         * modules/getdelim (Depends-on): Likewise.
36701         * modules/getline (Depends-on): Likewise.
36702         * modules/getsubopt (Depends-on): Likewise.
36703         * modules/gettext (Depends-on): Likewise.
36704         * modules/group-member (Depends-on): Likewise.
36705         * modules/mbchar (Depends-on): Likewise.
36706         * modules/memmem (Depends-on): Likewise.
36707         * modules/mempcpy (Depends-on): Likewise.
36708         * modules/memrchr (Depends-on): Likewise.
36709         * modules/pagealign_alloc (Depends-on): Likewise.
36710         * modules/readutmp (Depends-on): Likewise.
36711         * modules/stpcpy (Depends-on): Likewise.
36712         * modules/stpncpy (Depends-on): Likewise.
36713         * modules/strchrnul (Depends-on): Likewise.
36714         * modules/strndup (Depends-on): Likewise.
36715         * modules/strsep (Depends-on): Likewise.
36716         * modules/strverscmp (Depends-on): Likewise.
36717         * modules/vasprintf (Depends-on): Likewise.
36718         * modules/wcwidth (Depends-on): Likewise.
36719         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
36720         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
36721         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
36722         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
36723         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36724         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36725         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
36726         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36727         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
36728         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36729         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36730         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
36731         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
36732         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
36733         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
36734         * m4/readutmp.m4 (gl_READUTMP): Likewise.
36735         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36736         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
36737         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
36738         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
36739         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36740         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
36741         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
36742         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
36743         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
36744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36745         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
36746         so that lock.m4 can be used in gettext without extensions module.
36747
36748 2007-09-11  Bruno Haible  <bruno@clisp.org>
36749
36750         * m4/isc-posix.m4: Remove file.
36751         Suggested by Eric Blake.
36752
36753 2007-09-11  Eric Blake  <ebb9@byu.net>
36754
36755         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
36756
36757 2007-09-10  Bruno Haible  <bruno@clisp.org>
36758
36759         * posix-modules: Fix typo in error message.
36760         Reported by Matt <mkraai@beckman.com>.
36761
36762 2007-09-09  Bruno Haible  <bruno@clisp.org>
36763
36764         * doc/functions/getdelim.texi: Update list of platforms lacking the
36765         function.
36766         * doc/functions/getline.texi: Likewise.
36767
36768 2007-09-09  Jim Meyering  <jim@meyering.net>
36769
36770         * lib/hash.c (hash_initialize): Detect calloc failure.
36771         Reported by Bruno Haible.
36772
36773 2007-09-09  Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
36776         malloc or realloc fails.
36777
36778 2007-09-09  Bruno Haible  <bruno@clisp.org>
36779
36780         * modules/getcwd (Depends-on): Add malloc-posix.
36781         * modules/glob (Depends-on): Likewise.
36782         * modules/putenv (Depends-on): Likewise.
36783         * modules/strdup (Depends-on): Likewise.
36784         * modules/getdelim (Depends-on): Add realloc-posix.
36785         * modules/read-file (Depends-on): Likewise.
36786
36787 2007-09-09  Bruno Haible  <bruno@clisp.org>
36788
36789         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
36790         (gl_FUNC_MALLOC_POSIX): Require it.
36791         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
36792         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
36793         * modules/realloc (Files): Add m4/malloc.m4.
36794         * modules/calloc (Files): Likewise.
36795
36796 2007-09-09  Bruno Haible  <bruno@clisp.org>
36797
36798         * modules/malloc-posix: New file.
36799         * modules/malloc (Depends-on): Add malloc-posix.
36800         * lib/malloc.c: Include errno.h.
36801         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
36802         and a POSIX-compatible malloc into a single function. Set ENOMEM
36803         when returning NULL.
36804         * m4/malloc.m4: New file.
36805         * doc/functions/malloc.texi: Mention the malloc-posix module.
36806         * lib/stdlib_.h (malloc): New declaration.
36807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36808         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
36809         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
36810         and HAVE_MALLOC_POSIX.
36811
36812 2007-09-09  Bruno Haible  <bruno@clisp.org>
36813
36814         * modules/realloc-posix: New file.
36815         * modules/realloc (Depends-on): Add realloc-posix.
36816         * lib/realloc.c: Include errno.h.
36817         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
36818         and a POSIX-compatible realloc into a single function. Set ENOMEM
36819         when returning NULL.
36820         * m4/realloc.m4: New file.
36821         * doc/functions/realloc.texi: Mention the realloc-posix module.
36822         * lib/stdlib_.h (realloc): New declaration.
36823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36824         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
36825         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
36826         and HAVE_REALLOC_POSIX.
36827
36828 2007-09-09  Bruno Haible  <bruno@clisp.org>
36829
36830         * modules/calloc-posix: New file.
36831         * modules/calloc (Depends-on): Add calloc-posix.
36832         * lib/calloc.c: Include errno.h.
36833         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
36834         and a POSIX-compatible calloc into a single function. Set ENOMEM
36835         when returning NULL.
36836         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
36837         * doc/functions/calloc.texi: Mention the calloc-posix module.
36838         * lib/stdlib_.h (calloc): New declaration.
36839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36840         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
36841         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
36842         and HAVE_CALLOC_POSIX.
36843
36844 2007-09-09  Bruno Haible  <bruno@clisp.org>
36845
36846         Allow for modules to show an arbitrary notice.
36847         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
36848         * gnulib-tool: New option --extract-notice.
36849         (func_usage): Document it.
36850         (sed_extract_prog): Update.
36851         (func_get_notice): New function.
36852         (func_modules_notice): New function.
36853         (func_import, func_create_testdir): Invoke it.
36854         Suggested by Jim Meyering.
36855
36856 2007-09-09  Bruno Haible  <bruno@clisp.org>
36857
36858         * gnulib-tool: New options --verbose, --quiet.
36859         (func_usage): Document them.
36860         (verbose): New variable.
36861         (func_execute_command): New function.
36862         (func_import): Don't show the module list and the file list if
36863         $verbose < 0.
36864         (func_create_testdir): Likewise. Use func_execute_command.
36865         (func_create_megatestdir): Use func_execute_command.
36866
36867 2007-09-08  Bruno Haible  <bruno@clisp.org>
36868
36869         * gnulib-tool (func_import): Prefer rsync over wget when available,
36870         for fetching the PO files.
36871
36872 2007-09-08  Bruno Haible  <bruno@clisp.org>
36873
36874         * posix-modules: New file. Portions copied from gnulib-tool.
36875         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
36876
36877 2007-09-08  Jim Meyering  <jim@meyering.net>
36878
36879         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
36880         * lib/fpending.h: Rename from __fpending.h.
36881         * lib/fpending.c: Rename from __fpending.c.
36882         Include "fpending.h", not "__fpending.h".
36883         * lib/__fpending.h, lib/__fpending.c: Remove files.
36884         * modules/fpending (Files): Reflect new file names.
36885         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
36886
36887 2007-09-08  Bruno Haible  <bruno@clisp.org>
36888
36889         * m4/inttypes-h.m4: Remove stub file.
36890
36891 2007-09-07  Simon Josefsson  <simon@josefsson.org>
36892
36893         * doc/headers/stdint.texi: Discuss #include_next issue.
36894
36895 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36896
36897         * build-aux/bootstrap: Remove obsolete comment about wget --help.
36898
36899 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36900
36901         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
36902         in variable name.
36903
36904 2007-09-03  Jim Meyering  <jim@meyering.net>
36905
36906         New module: git-version-gen.
36907         * modules/git-version-gen: New file.
36908
36909         Import changes from coreutils for bootstrap script.
36910
36911         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
36912
36913         bootstrap: uses rsync to download the .po files
36914         * build-aux/bootstrap (po_download_command_format): New global.
36915         (download_po_files): Use rsync.
36916         (update_po_files): Don't remove .po files after download,
36917         so future rsync runs can take advantage of the copies.
36918
36919         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
36920
36921         Solve the unnecessary-.po-file-regeneration problem once and for all.
36922         * build-aux/bootstrap (download_po_files): New function, renamed from
36923         get_translations.  Now, downloads, but doesn't update LINGUAS.
36924         (update_po_files): New function.
36925
36926         bootstrap: Ignore more.
36927         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
36928         uniwidth to e.g., lib/.gitignore.
36929         (slurp): Handle the sys_stat_.h -> sys mapping, too.
36930
36931         * build-aux/bootstrap: New setting: vc_ignore.
36932         (insert_sorted_if_absent): Create $file if absent.
36933         Adapt to new, possibly empty, list: $vc_ignore.
36934
36935         bootstrap: generate more ignorable names
36936         * build-aux/bootstrap (slurp): When generating ignorable names,
36937         also map .sin to .sed, .gperf to .c, and .y to .c.
36938
36939 2007-09-03  Jim Meyering  <jim@meyering.net>
36940
36941         * build-aux/git-version-gen: New file, from coreutils.  For details, see
36942         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
36943
36944 2007-09-02  Bruno Haible  <bruno@clisp.org>
36945
36946         Fix mis-recognition of 'mcs' on QNX 6.
36947         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
36948         output contains the string "Mono".
36949         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
36950         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
36951
36952 2007-09-01  Bruno Haible  <bruno@clisp.org>
36953
36954         Fix collision between uniwidth/* and linebreak modules.
36955         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
36956         u32_width): Remove declarations.
36957         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
36958         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
36959         streq3, streq2, streq1, streq0): Remove functions.
36960         (STREQ): Remove macro.
36961         (is_cjk_encoding): Remove function.
36962         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
36963         (uc_width, u8_width, u16_width, u32_width): Remove functions.
36964         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
36965         * NEWS: Document the change.
36966
36967 2007-09-01  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/streq.h: Add double-inclusion guard.
36970
36971 2007-09-01  Karl Berry  <karl@gnu.org>
36972
36973         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
36974
36975 2007-08-28  Jim Meyering  <jim@meyering.net>
36976
36977         Rename mreadlink_with_size to areadlink_with_size.
36978         * NEWS: Document the change.
36979         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
36980         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
36981         * lib/mreadlink.h: Rename this to...
36982         * lib/areadlink.h: ...this.
36983         * modules/mreadlink-with-size: Rename this to...
36984         * modules/areadlink-with-size: ...this.
36985         * lib/canonicalize.c: Reflect the renaming.
36986         * modules/canonicalize: Likewise.
36987
36988 2007-08-26  Bruno Haible  <bruno@clisp.org>
36989
36990         * gnulib-tool (func_import): When deciding which files to remove,
36991         consider also dangling symbolic links.
36992         Reported by Eric Blake.
36993
36994 2007-08-26  Bruno Haible  <bruno@clisp.org>
36995
36996         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
36997
36998 2007-08-23  Simon Josefsson  <simon@josefsson.org>
36999
37000         * lib/readline.c: Don't include getline.h, the prototype is now
37001         found in stdio.h.
37002
37003 2007-08-23  Jim Meyering  <jim@meyering.net>
37004
37005         Getdelim touchup.
37006         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37007         around the funlockfile call, since funlockfile never sets errno.
37008         Don't set errno upon failed realloc.
37009
37010 2007-08-22  Eric Blake  <ebb9@byu.net>
37011
37012         Getline touchups.
37013         * lib/getdelim.c (getdelim): Revert regression that required *n to
37014         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37015         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37016         getdelim, rather than whether implementation is missing.
37017         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37018         * lib/stdio_.h (getline): Also declare if replacement is
37019         required.
37020         * doc/functions/getdelim.texi: New file.
37021         * doc/functions/getline.texi: Likewise.
37022         * doc/gnulib.texi (Function Substitutes): Add new files.
37023         Reported by Bruno Haible.
37024
37025 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37026
37027         * users.txt: Add Guile.
37028
37029 2007-08-22  Eric Blake  <ebb9@byu.net>
37030
37031         * tests/test-getdelim.c (main): Use remove, not unlink.
37032         * tests/test-getline.c (main): Likewise.
37033
37034         Move getline and getdelim into stdio.h, per POSIX 200x.
37035         * modules/getline (Files): Remove getline.h.
37036         (Depends-on): Add stdio.
37037         (configure.ac): Add module indicator.
37038         * modules/getdelim (Files): Remove getdelim.h.
37039         (Depends-on): Add stdio.
37040         (configure.ac): Add module indicator.
37041         * modules/stdio (Makefile.am): Work with new indicators.
37042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37043         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37044         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37045         * lib/getdelim.h: Delete.
37046         * lib/getline.h: Delete.
37047         * lib/stdio_.h (getdelim, getline): Declare.
37048         * modules/getdelim-tests: New module.
37049         * modules/getline-tests: Likewise.
37050         * tests/test-getdelim.c: New file.
37051         * tests/test-getline.c: Likewise.
37052         * NEWS: Document the change.
37053         * lib/getline.c: Update choice of header.
37054         * lib/csharpcomp.c: Likewise.
37055         * lib/getpass.c: Likewise.
37056         * lib/javacomp.c: Likewise.
37057         * lib/javaversion.c: Likewise.
37058         * lib/yesno.c: Likewise.
37059         * lib/getdelim.c: Likewise.
37060         (getdelim): Set errno on failure, and avoid memory leak.
37061
37062 2007-08-19  Bruno Haible  <bruno@clisp.org>
37063
37064         * modules/closein (Depends-on): Add freadahead.
37065         * lib/closein.c: Include freadahead.h.
37066         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37067         is zero.
37068
37069 2007-08-19  Bruno Haible  <bruno@clisp.org>
37070
37071         * modules/freadahead-tests: New file.
37072         * tests/test-freadahead.sh: New file.
37073         * tests/test-freadahead.c: New file.
37074
37075         * modules/freadahead: New file.
37076         * lib/freadahead.h: New file.
37077         * lib/freadahead.c: New file.
37078         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37079         fbufmode, fpurge, freadable, fwritable.
37080
37081 2007-08-19  Eric Blake  <ebb9@byu.net>
37082
37083         Test yesno in combination with closein.
37084         * lib/yesno.c (yesno): Document use of stdin.
37085         * modules/yesno-tests (Files): New module.
37086         * tests/test-yesno.c (main): New file.
37087         * tests/test-yesno.sh: Likewise.
37088
37089 2007-08-19  Bruno Haible  <bruno@clisp.org>
37090
37091         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37092         * lib/fseeko.c (rpl_fseeko): Likewise.
37093         * lib/fseterr.c (fseterr): Likewise.
37094
37095 2007-08-19  Bruno Haible  <bruno@clisp.org>
37096
37097         * tests/test-lseek.c (main): Disable a test for BeOS.
37098         * doc/functions/lseek.texi: Document the BeOS bug.
37099
37100 2007-08-19  Bruno Haible  <bruno@clisp.org>
37101             Eric Blake  <ebb9@byu.net>
37102
37103         * lib/lseek.c: Include <sys/stat.h>.
37104         (rpl_lseek): Add workaround code also for Unix platforms.
37105         Needed for BeOS.
37106         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37107         * doc/functions/lseek.texi: Document BeOS definiency.
37108
37109 2007-08-18  Bruno Haible  <bruno@clisp.org>
37110
37111         * modules/fstrcmp-tests: New file.
37112         * tests/test-fstrcmp.c: New file.
37113
37114 2007-08-18  Bruno Haible  <bruno@clisp.org>
37115
37116         * modules/fstrcmp: New file, from GNU gettext with modifications.
37117         * lib/fstrcmp.h: New file, from GNU gettext.
37118         * lib/fstrcmp.c: New file, from GNU gettext.
37119         * MODULES.html.sh (String handling): Add fstrcmp.
37120
37121 2007-08-18  Bruno Haible  <bruno@clisp.org>
37122
37123         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37124         'bool'.
37125         (diag, compareseq): Remove const from the ctxt argument.
37126         (USE_HEURISTIC): Undefine at the end.
37127
37128 2007-08-18  Jim Meyering  <jim@meyering.net>
37129
37130         New file: lib/idcache.h
37131         * NEWS: Mention the addition.
37132         * modules/idcache (Files): Add lib/idcache.h
37133         * lib/idcache.c: Include "idcache.h".
37134         Don't include <sys/types.h>.
37135         Add a FIXME comment.
37136         Move file-scoped "static" declarations to the top.
37137         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37138
37139 2007-08-17  Bruno Haible  <bruno@clisp.org>
37140         and Paul Eggert  <eggert@cs.ucla.edu>
37141
37142         * MODULES.html.sh: Add diffseq.
37143         * modules/diffseq: New file.
37144         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37145         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37146
37147 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37148
37149         Import changes from coreutils for bootstrap script.
37150
37151         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37152
37153         * build-aux/bootstrap (slurp): Work even in environments where
37154         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37155         current code does not slurp files whose names start with ".", and
37156         this looks like it might be a troublesome area.
37157
37158         2007-07-11  Jim Meyering  <jim@meyering.net>
37159
37160         If there's a GPL vN copyright comment, require that N == 3.
37161
37162         2007-07-08  Jim Meyering  <jim@meyering.net>
37163
37164         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37165         * build-aux/bootstrap (mam_template): Move definition out of loop.
37166
37167         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37168
37169         * build-aux/bootstrap (symlink_to_dir): Rename function from
37170         symlink_to_gnulib.  Add a directory parameter.  Update all
37171         callers.
37172         (cp_mark_as_generated): Also check for -- and link to -- files in
37173         gl/.
37174
37175         2007-07-08  Jim Meyering  <jim@meyering.net>
37176
37177         Adapt to deeper hierarchy in gnulib.
37178         * build-aux/bootstrap (symlink_to_dir): If the destination
37179         directory doesn't exist, create it. This is required at least for
37180         "lib/uniwidth/cjk.h".
37181
37182         2007-05-15  Jim Meyering  <jim@meyering.net>
37183
37184         * build-aux/bootstrap: Now that generated Makefile.am files
37185         are no longer under version control, they must be created at
37186         bootstrap time.
37187
37188 2007-08-14  Ben Pfaff  <blp@gnu.org>
37189
37190         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37191
37192 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37193
37194         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37195         given the changes below.
37196         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37197         even on hosts that have padding bits beyond the supported 64.
37198
37199 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37200
37201         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37202         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37203         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37204         depends on it.
37205         (xstrtol_error): Remove.
37206         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37207         but with a different signature.
37208         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37209         * lib/xstrtol-error.c: Include exitfail.h.
37210         (xstrtol_fatal): New function, with a different signature from the
37211         old xstrtol_error, so that the caller need not worry about passing
37212         in an exit status, or about storage management of the option argument.
37213         (xstrtol_error): Now a static function.  Redo signature to
37214         implement xstrtol_fatal.  Output the correct number of hyphens in
37215         front of the option so that the caller need not worry about
37216         storage management.
37217         (N_): New macro.
37218         (_): Remove; not used now.
37219         * modules/xstrtol: Depend on getopt.
37220         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37221         of old STRTOL_FATAL_ERROR macro.
37222         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37223         of test program.
37224         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37225         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37226
37227 2007-08-08  Eric Blake  <ebb9@byu.net>
37228
37229         * lib/xstrtol-error.c: Add missing include.
37230
37231         Move xstrtol messages into gnulib domain, when --pobase is used.
37232         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37233         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37234         * modules/xstrtol (Files): Distribute new file.
37235         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37236         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37237         * tests/test-xstrtol.c: ...into new file.
37238         * tests/test-xstrtoul.c: Also test xstrtoul.
37239         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37240         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37241         * tests/test-xstrtol.sh: Drive the tests.
37242         * tests/test-xstrtoimax.sh: Likewise.
37243         * tests/test-xstrtoumax.sh: Likewise.
37244         * modules/xstrtol-tests: New module.
37245         * modules/xstrtoimax-tests: Likewise.
37246         * modules/xstrtoumax-tests: Likewise.
37247
37248 2007-08-08  Jim Meyering  <jim@meyering.net>
37249
37250         New function: mfile_name_concat.
37251         * lib/filenamecat.c (mfile_name_concat): New function, just like
37252         file_name_concat, but return NULL upon failure rather than exiting
37253         with a diagnostic.
37254         * lib/filenamecat.h: Declare it.
37255
37256 2007-08-07  Bruno Haible  <bruno@clisp.org>
37257
37258         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37259         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37260         warning from gcc.
37261         Reported by Eric Blake.
37262
37263 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37264
37265         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37266         * modules/crypto/arcfour (License): Likewise.
37267         * modules/crypto/des-tests (License): Likewise.
37268         * modules/crypto/gc-arctwo-tests (License): Likewise.
37269         * modules/crypto/gc-des-tests (License): Likewise.
37270         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37271         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37272         * modules/crypto/gc-md2-tests (License): Likewise.
37273         * modules/crypto/gc-md4-tests (License): Likewise.
37274         * modules/crypto/gc-md5-tests (License): Likewise.
37275         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37276         * modules/crypto/gc-rijndael-tests (License): Likewise.
37277         * modules/crypto/gc-sha1-tests (License): Likewise.
37278         * modules/crypto/gc-tests (License): Likewise.
37279         * modules/crypto/hmac-md5 (License): Likewise.
37280         * modules/crypto/hmac-sha1 (License): Likewise.
37281         * modules/crypto/md2-tests (License): Likewise.
37282         * modules/crypto/md4-tests (License): Likewise.
37283         * modules/crypto/md5 (License): Likewise.
37284         * modules/crypto/rijndael (License): Likewise.
37285         * modules/crypto/sha1 (License): Likewise.
37286         * modules/memxor (License): Likewise.
37287
37288 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37289         and Bruno Haible  <bruno@clisp.org>
37290
37291         * NEWS: Describe interface changes to human, xstrtol.
37292         * lib/human.h: Include <xstrtol.h>.
37293         (human_options): Return enum strtol_error, not int.  Remove
37294         bool arg; take int * instead.
37295         * lib/human.c: Don't include "gettext.h".
37296         (_): Remove; no longer used.
37297         Don't include <xstrtol.h>, since human.h does it.
37298         (human_options): Adjust to abovementioned interface changes.
37299         Do not report error to stderr; that's now the caller's
37300         responsibility.
37301         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37302         interface change.
37303         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37304         Str, Argument_type_string.  All uses changed.  Put " argument"
37305         in diagnostics to make them clearer.  Change wording of suffix
37306         message for clarity.
37307         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37308         Argument_type_string.
37309         (STRTOL_FATAL_WARN): Remove; no longer used.
37310         * modules/human (Depends-on): Remove gettext-h.
37311
37312 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37313
37314         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37315
37316 2007-07-31  Bruno Haible  <bruno@clisp.org>
37317
37318         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37319         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37320         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37321
37322 2007-07-31  Bruno Haible  <bruno@clisp.org>
37323
37324         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37325         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37326
37327 2007-07-30  Bruno Haible  <bruno@clisp.org>
37328
37329         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37330         * modules/c-ctype (License): Likewise.
37331         * modules/c-strcase (License): Likewise.
37332         * modules/check-version (License): Likewise.
37333         * modules/iconv (License): Likewise.
37334         * modules/iconv_open (License): Likewise.
37335         * modules/read-file (License): Likewise.
37336         * modules/striconv (License): Likewise.
37337         * modules/strverscmp (License): Likewise.
37338         * modules/vasprintf (License): Likewise.
37339         * modules/crypto/des (License): Likewise.
37340         * modules/crypto/gc (License): Likewise.
37341         * modules/crypto/gc-arcfour (License): Likewise.
37342         * modules/crypto/gc-arctwo (License): Likewise.
37343         * modules/crypto/gc-des (License): Likewise.
37344         * modules/crypto/gc-hmac-md5 (License): Likewise.
37345         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37346         * modules/crypto/gc-md2 (License): Likewise.
37347         * modules/crypto/gc-md4 (License): Likewise.
37348         * modules/crypto/gc-md5 (License): Likewise.
37349         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37350         * modules/crypto/gc-random (License): Likewise.
37351         * modules/crypto/gc-rijndael (License): Likewise.
37352         * modules/crypto/gc-sha1 (License): Likewise.
37353         * modules/crypto/md2 (License): Likewise.
37354         * modules/crypto/md4 (License): Likewise.
37355
37356 2007-07-30  Jim Meyering  <jim@meyering.net>
37357
37358         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37359         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37360         it has valid stat data.  This bug would cause du not to count the
37361         sizes of inaccessible directories.
37362         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37363         in <http://bugzilla.redhat.com/250077>.
37364
37365 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37366             Bruno Haible  <bruno@clisp.org>
37367
37368         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37369         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37370         #include_next, gives a diagnostic about it, but reports no error in
37371         the exit code.
37372         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37373
37374 2007-07-24  Ben Pfaff  <blp@gnu.org>
37375
37376         Improve name: "count-one-bits" is better than "popcount".
37377         * MODULES.html.sh: Update name.
37378         * lib/popcount.h: Renamed lib/count-one-bits.h.
37379         (popcount): Renamed count_one_bits.
37380         (popcountl): Renamed count_one_bits_l.
37381         (popcountll): Renamed count_one_bits_ll.
37382         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37383         * modules/popcount: Renamed module/count-one-bits.
37384         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37385         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37386
37387 2007-07-23  Ben Pfaff  <blp@gnu.org>
37388
37389         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37390         better code generation, and add U to large constants to avoid
37391         warnings, in non-GCC case.
37392         Suggested by Bruno Haible.
37393
37394 2007-07-23  Ben Pfaff  <blp@gnu.org>
37395
37396         * lib/popcount.h: Use verify_true instead of if...abort.
37397         * modules/popcount: Depend on verify module.
37398         Suggested by Jim Meyering.
37399
37400 2007-07-23  Bruno Haible  <bruno@clisp.org>
37401
37402         * gnulib-tool (func_import): Create a .cvsignore file also when the
37403         directory is not yet in CVS but the toplevel directory is. When
37404         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37405         Reported by Karl Berry.
37406
37407 2007-07-22  Ben Pfaff  <blp@gnu.org>
37408
37409         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37410         case.
37411         Suggested by Eric Blake.
37412
37413 2007-07-22  Ben Pfaff  <blp@gnu.org>
37414
37415         New module: popcount.
37416         * MODULES.html.sh: Add popcount.
37417         * modules/popcount: New file.
37418         * modules/popcount-tests: New file.
37419         * tests/test-popcount.c: New file.
37420         * lib/popcount.h: New file.
37421         * m4/popcount.m4: New file.
37422
37423 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37424
37425         * build-aux/announce-gen: Update to GPLv3.
37426
37427         * build-aux/config.guess: Update from config.
37428
37429 2007-07-21  Bruno Haible  <bruno@clisp.org>
37430
37431         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37432         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37433
37434 2007-07-20  Jim Meyering  <jim@meyering.net>
37435
37436         * check-module: Diagnose a self-dependency.
37437
37438 2007-07-19  Bruno Haible  <bruno@clisp.org>
37439
37440         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37441         empty.
37442         Reported by Eric Blake.
37443
37444 2007-07-18  Bruno Haible  <bruno@clisp.org>
37445
37446         * gnulib-tool: New options --po-base, --po-domain.
37447         (func_usage): Document them.
37448         (pobase, po_domain): New variables.
37449         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37450         DEFAULT_TEXT_DOMAIN.
37451         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37452         (func_import): Consider pobase and po_domain. Create a po/ directory.
37453         (func_create_testdir): Set pobase and po_domain to empty.
37454         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37455         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37456
37457 2007-07-18  Bruno Haible  <bruno@clisp.org>
37458
37459         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37460         EXTRA_DIST augmentation for files in build-aux/.
37461
37462 2007-07-16  Bruno Haible  <bruno@clisp.org>
37463
37464         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37465         * modules/getdelim (License): Likewise.
37466
37467 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37468
37469         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37470         * modules/d-type (License): Likewise.
37471         * modules/extensions (License): Likewise.
37472         * modules/fnmatch (License): Likewise.
37473         * modules/fseeko (License): Likewise.
37474         * modules/getaddrinfo (License): Likewise.
37475         * modules/getline (License): Likewise.
37476         * modules/getlogin_r (License): Likewise.
37477         * modules/getpass (License): Likewise.
37478         * modules/gettimeofday (License): Likewise.
37479         * modules/glob (License): Likewise.
37480         * modules/inet_ntop (License): Likewise.
37481         * modules/malloc (License): Likewise.
37482         * modules/malloca (License): Likewise.
37483         * modules/memmem (License): Likewise.
37484         * modules/mempcpy (License): Likewise.
37485         * modules/memset (License): Likewise.
37486         * modules/minmax (License): Likewise.
37487         * modules/mktime (License): Likewise.
37488         * modules/netinet_in (License): Likewise.
37489         * modules/pathmax (License): Likewise.
37490         * modules/poll (License): Likewise.
37491         * modules/regex (License): Likewise.
37492         * modules/snprintf (License): Likewise.
37493         * modules/stdbool (License): Likewise.
37494         * modules/stdint (License): Likewise.
37495         * modules/stdio (License): Likewise.
37496         * modules/strcase (License): Likewise.
37497         * modules/strcasestr (License): Likewise.
37498         * modules/strdup (License): Likewise.
37499         * modules/string (License): Likewise.
37500         * modules/strndup (License): Likewise.
37501         * modules/strnlen (License): Likewise.
37502         * modules/strpbrk (License): Likewise.
37503         * modules/strptime (License): Likewise.
37504         * modules/strsep (License): Likewise.
37505         * modules/sys_select (License): Likewise.
37506         * modules/sys_socket (License): Likewise.
37507         * modules/sys_stat (License): Likewise.
37508         * modules/sys_time (License): Likewise.
37509         * modules/time (License): Likewise.
37510         * modules/time_r (License): Likewise.
37511         * modules/timegm (License): Likewise.
37512         * modules/unistd (License): Likewise.
37513         * modules/vsnprintf (License): Likewise.
37514         * modules/wctype (License): Likewise.
37515
37516 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37517
37518         * modules/argz (License): LGPLv2+.
37519
37520 2007-07-15  Karl Berry  <karl@gnu.org>
37521
37522         * doc/gnulib.texi: revise node structure per new fdl.texi.
37523
37524 2007-07-14  Bruno Haible  <bruno@clisp.org>
37525
37526         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37527         the output file.
37528         * lib/uniname/uninames.h: Regenerated.
37529
37530 2007-07-14  Karl Berry  <karl@gnu.org>
37531
37532         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37533         omitting sectioning and index commands.
37534
37535 2007-07-13  Bruno Haible  <bruno@clisp.org>
37536
37537         New gnulib-tool option --more-symlinks.
37538         * gnulib-tool (func_usage): Document --more-symlinks.
37539         (do_copyrights): New variable.
37540         Recognize option --more-symlinks.
37541         (func_import): Don't add a copyright notice transform to
37542         sed_transform_lib_file if do_copyrights is empty.
37543
37544 2007-07-13  Bruno Haible  <bruno@clisp.org>
37545
37546         * lib/vasnprintf.c (decimal_point_char): Define also if
37547         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37548         && !NEED_PRINTF_DIRECTIVE_A.
37549         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37550         Gary V. Vaughan <gary@gnu.org>.
37551
37552 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37553
37554         * lib/inttypes_.h: Undo previous change, since it was fixed
37555         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37556
37557 2007-07-13  Bruno Haible  <bruno@clisp.org>
37558
37559         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37560         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37561
37562 2007-07-13  Jim Meyering  <jim@meyering.net>
37563
37564         df: Don't fail for Tru64's "file-on-file mount".
37565         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37566         so we fall through and use statfs instead.  Details here:
37567         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37568         Reported by Albert Chin.
37569
37570 2007-07-13  Bruno Haible  <bruno@clisp.org>
37571
37572         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37573         * modules/configmake (License): Likewise.
37574         * modules/gettext (License): Likewise.
37575         * modules/gettext-h (License): Likewise.
37576         * modules/include_next (License): Likewise.
37577         * modules/link-warning (License): Likewise.
37578         * modules/localcharset (License): Likewise.
37579         * modules/localename (License): Likewise.
37580         * modules/lock (License): Likewise.
37581         * modules/relocatable-lib-lgpl (License): Likewise.
37582         * modules/size_max (License): Likewise.
37583         * modules/vasnprintf (License): Likewise.
37584         * modules/wchar (License): Likewise.
37585         * modules/xsize (License): Likewise.
37586
37587 2007-07-13  Bruno Haible  <bruno@clisp.org>
37588
37589         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37590         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37591
37592 2007-07-12  Bruno Haible  <bruno@clisp.org>
37593
37594         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37595         in the modules files.
37596
37597 2007-07-11  Karl Berry  <karl@gnu.org>
37598
37599         * MODULES.html.sh (func_module): use
37600          sed -e '\|^'"${includefile}"'$|d'
37601          instead of /.../d, to avoid errors on $includefile's containing /.
37602
37603 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37604
37605         * gnulib-tool (func_import): Avoid duplication of --avoid
37606         statements
37607         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37608         names to `_' in variable names.
37609
37610 2007-07-10  Eric Blake  <ebb9@byu.net>
37611
37612         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37613         * NEWS: Document this change.
37614
37615 2007-07-08  Bruno Haible  <bruno@clisp.org>
37616
37617         Update to Unicode 5.0.
37618         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37619         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37620         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37621         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37622         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37623         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37624         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37625         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
37626         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
37627         U+10A3F, U+1D242..U+1D244.
37628         (nonspacing_table_ind): Update.
37629         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
37630         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
37631
37632 2007-07-08  Bruno Haible  <bruno@clisp.org>
37633
37634         Update to Unicode 5.0.
37635         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
37636         code transform. Extend the name index field of unicode_name_to_code and
37637         unicode_code_to_name from 16 to 24 bits.
37638         * lib/uniname/uniname.c (unicode_character_name,
37639         unicode_name_character): Add the range 0x12xxx to the code transform.
37640         * lib/uniname/uninames.h: Regenerated.
37641         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
37642
37643 2007-07-07  Bruno Haible  <bruno@clisp.org>
37644
37645         * modules/wcwidth-tests: New file.
37646         * tests/test-wcwidth.c: New file.
37647
37648         Work around MacOS X wcwidth() bug.
37649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
37650         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
37651         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
37652         original wcwidth in non-UTF-8 locales.
37653         * modules/wcwidth (Depends-on): Add localcharset, streq,
37654         uniwidth/width.
37655         * doc/functions/wcwidth.texi: Update.
37656
37657 2007-07-07  Bruno Haible  <bruno@clisp.org>
37658
37659         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
37660         (wcwidth): New declaration.
37661         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
37662         macros.
37663         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
37664         here. Prepare for creating <wchar.h> unconditionally.
37665         * modules/wchar (Depends-on): Add link-warning.
37666         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
37667         REPLACE_WCWIDTH, and GL_LINK_WARNING.
37668         * lib/wcwidth.h: Remove file.
37669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
37670         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
37671         * modules/wcwidth (Files): Remove lib/wcwidth.h.
37672         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
37673         (Include): Replace wcwidth.h with <wchar.h>.
37674         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
37675         * lib/mbchar.h: Don't include wcwidth.h.
37676         * lib/mbswidth.c: Likewise.
37677         * NEWS: Mention the change.
37678
37679 2007-07-07  Bruno Haible  <bruno@clisp.org>
37680
37681         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
37682         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
37683         definition with an external declaration.
37684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
37685         defined as a function. Remove AC_C_INLINE requirement.
37686         * modules/wcwidth (Files): Add lib/wcwidth.c.
37687         (Makefile.am): Remove redundant statement.
37688
37689 2007-07-07  Bruno Haible  <bruno@clisp.org>
37690
37691         * MODULES.html.sh (Unicode string functions): Add the new modules.
37692
37693         * tests/uniwidth/test-u32-strwidth.c: New file.
37694         * modules/uniwidth/u32-strwidth-tests: New file.
37695
37696         * lib/uniwidth/u32-strwidth.c: New file.
37697         * modules/uniwidth/u32-strwidth: New file.
37698
37699         * tests/uniwidth/test-u16-strwidth.c: New file.
37700         * modules/uniwidth/u16-strwidth-tests: New file.
37701
37702         * lib/uniwidth/u16-strwidth.c: New file.
37703         * modules/uniwidth/u16-strwidth: New file.
37704
37705         * tests/uniwidth/test-u8-strwidth.c: New file.
37706         * modules/uniwidth/u8-strwidth-tests: New file.
37707
37708         * lib/uniwidth/u8-strwidth.c: New file.
37709         * modules/uniwidth/u8-strwidth: New file.
37710
37711         * tests/uniwidth/test-u32-width.c: New file.
37712         * modules/uniwidth/u32-width-tests: New file.
37713
37714         * lib/uniwidth/u32-width.c: New file.
37715         * modules/uniwidth/u32-width: New file.
37716
37717         * tests/uniwidth/test-u16-width.c: New file.
37718         * modules/uniwidth/u16-width-tests: New file.
37719
37720         * lib/uniwidth/u16-width.c: New file.
37721         * modules/uniwidth/u16-width: New file.
37722
37723         * tests/uniwidth/test-u8-width.c: New file.
37724         * modules/uniwidth/u8-width-tests: New file.
37725
37726         * lib/uniwidth/u8-width.c: New file.
37727         * modules/uniwidth/u8-width: New file.
37728
37729         * tests/uniwidth/test-uc_width.c: New file.
37730         * modules/uniwidth/width-tests: New file.
37731
37732         * lib/uniwidth/width.c: New file, from GNU libiconv.
37733         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
37734         * modules/uniwidth/width: New file.
37735
37736         * lib/uniwidth.h: New file, from GNU libiconv.
37737         * modules/uniwidth/base: New file.
37738
37739 2007-07-07  Bruno Haible  <bruno@clisp.org>
37740
37741         * lib/uniname.h: New file, from GNU gettext.
37742         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
37743         * lib/uniname/uninames.h: New file, from GNU gettext.
37744         * lib/uniname/uniname.c: New file, from GNU gettext.
37745         * tests/uniname/test-uninames.sh: New file.
37746         * tests/uniname/test-uninames.c: New file, from GNU gettext.
37747         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
37748         * modules/uniname/base: New file.
37749         * modules/uniname/uniname: New file.
37750         * modules/uniname/uniname-tests: New file.
37751         * MODULES.html.sh (Unicode string functions): Add the new modules.
37752
37753 2007-07-06  Bruno Haible  <bruno@clisp.org>
37754
37755         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
37756
37757 2007-07-06  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
37760         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
37761         includes <cygwin/sys_time.h> which includes <sys/select.h> which
37762         include <sys/time.h>.
37763         Reported by Eric Blake.
37764
37765 2007-07-06  Eric Blake  <ebb9@byu.net>
37766
37767         Fix testing canonicalize on cygwin.
37768         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37769         Revert patch from 2007-06-19.
37770         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
37771         canonicalize module is also in use.
37772         * tests/test-canonicalize.c: New file.
37773         * tests/test-canonicalize.sh: Likewise.
37774         * modules/canonicalize-tests: Likewise.
37775
37776 2007-07-06  Jim Meyering  <jim@meyering.net>
37777
37778         * lib/getugroups.c (getugroups): Detect getgrent failure.
37779         Adjust comment to reflect reality: this function may return -1.
37780
37781 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37782
37783         * build-aux/bootstrap (TP_URL,get_translations): Update to use
37784         the new TP address.
37785         (usage): Fix typo
37786         (gnulib_mk): New variable.
37787
37788 2007-07-05  Jim Meyering  <jim@meyering.net>
37789
37790         Don't let endgrent clobber errno, no matter how improbable.
37791         * lib/getugroups.c (getugroups): Save and restore errno around
37792         endgrent call.
37793
37794         Close the group DB even when failing with 2^31 or more members.
37795         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
37796
37797 2007-07-04  Jim Meyering  <jim@meyering.net>
37798
37799         * lib/getugroups.h: New file.
37800         * lib/getugroups.c: Include "getugroups.h".
37801         Remove uses of "register" keyword.
37802         Move local variable, "cp", down into scope where used.
37803         Give "username" parameter the "const" attribute.
37804         * modules/getugroups (Files): Add lib/getugroups.h
37805
37806 2007-07-04  Karl Berry  <karl@gnu.org>
37807
37808         * MODULES.html.sh (func_all_modules): Complete rename of
37809         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
37810
37811 2007-07-02  Bruno Haible  <bruno@clisp.org>
37812
37813         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
37814         mode, when inttypes.h comes from gnulib.
37815         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37816
37817 2007-07-02  Simon Josefsson  <simon@josefsson.org>
37818
37819         * NEWS: Mention lgpl module name change.
37820
37821         * modules/lgpl-2.1: Renamed from lgpl.
37822
37823         * NEWS: Mention gpl module name change.
37824
37825         * modules/gpl-3.0: New file, based on gpl-2.0.
37826
37827         * modules/gpl-2.0: Renamed from gpl.
37828
37829         * modules/gpl: Fix filename, doc/gpl.texi is now found at
37830         doc/gpl-2.0.texi.
37831
37832 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37833
37834         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
37835         #define __STDC_LIMIT_MACROS temporarily while including
37836         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
37837         Problem reported by Joel E. Denny in
37838         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
37839
37840 2007-07-01  Bruno Haible  <bruno@clisp.org>
37841
37842         * lib/unistdio.h: New file.
37843         * lib/unistdio/u-asnprintf.h: New file.
37844         * lib/unistdio/u-asprintf.h: New file.
37845         * lib/unistdio/u-printf-args.c: New file.
37846         * lib/unistdio/u-printf-args.h: New file.
37847         * lib/unistdio/u-printf-parse.h: New file.
37848         * lib/unistdio/u-snprintf.h: New file.
37849         * lib/unistdio/u-sprintf.h: New file.
37850         * lib/unistdio/u-vasprintf.h: New file.
37851         * lib/unistdio/u-vsnprintf.h: New file.
37852         * lib/unistdio/u-vsprintf.h: New file.
37853         * lib/unistdio/ulc-asnprintf.c: New file.
37854         * lib/unistdio/ulc-asprintf.c: New file.
37855         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
37856         * lib/unistdio/ulc-printf-parse.c: New file.
37857         * lib/unistdio/ulc-snprintf.c: New file.
37858         * lib/unistdio/ulc-sprintf.c: New file.
37859         * lib/unistdio/ulc-vasnprintf.c: New file.
37860         * lib/unistdio/ulc-vasprintf.c: New file.
37861         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
37862         * lib/unistdio/ulc-vsnprintf.c: New file.
37863         * lib/unistdio/ulc-vsprintf.c: New file.
37864         * lib/unistdio/u8-asnprintf.c: New file.
37865         * lib/unistdio/u8-asprintf.c: New file.
37866         * lib/unistdio/u8-printf-parse.c: New file.
37867         * lib/unistdio/u8-snprintf.c: New file.
37868         * lib/unistdio/u8-sprintf.c: New file.
37869         * lib/unistdio/u8-vasnprintf.c: New file.
37870         * lib/unistdio/u8-vasprintf.c: New file.
37871         * lib/unistdio/u8-vsnprintf.c: New file.
37872         * lib/unistdio/u8-vsprintf.c: New file.
37873         * lib/unistdio/u8-u8-asnprintf.c: New file.
37874         * lib/unistdio/u8-u8-asprintf.c: New file.
37875         * lib/unistdio/u8-u8-snprintf.c: New file.
37876         * lib/unistdio/u8-u8-sprintf.c: New file.
37877         * lib/unistdio/u8-u8-vasnprintf.c: New file.
37878         * lib/unistdio/u8-u8-vasprintf.c: New file.
37879         * lib/unistdio/u8-u8-vsnprintf.c: New file.
37880         * lib/unistdio/u8-u8-vsprintf.c: New file.
37881         * lib/unistdio/u16-asnprintf.c: New file.
37882         * lib/unistdio/u16-asprintf.c: New file.
37883         * lib/unistdio/u16-printf-parse.c: New file.
37884         * lib/unistdio/u16-snprintf.c: New file.
37885         * lib/unistdio/u16-sprintf.c: New file.
37886         * lib/unistdio/u16-vasnprintf.c: New file.
37887         * lib/unistdio/u16-vasprintf.c: New file.
37888         * lib/unistdio/u16-vsnprintf.c: New file.
37889         * lib/unistdio/u16-vsprintf.c: New file.
37890         * lib/unistdio/u16-u16-asnprintf.c: New file.
37891         * lib/unistdio/u16-u16-asprintf.c: New file.
37892         * lib/unistdio/u16-u16-snprintf.c: New file.
37893         * lib/unistdio/u16-u16-sprintf.c: New file.
37894         * lib/unistdio/u16-u16-vasnprintf.c: New file.
37895         * lib/unistdio/u16-u16-vasprintf.c: New file.
37896         * lib/unistdio/u16-u16-vsnprintf.c: New file.
37897         * lib/unistdio/u16-u16-vsprintf.c: New file.
37898         * lib/unistdio/u32-asnprintf.c: New file.
37899         * lib/unistdio/u32-asprintf.c: New file.
37900         * lib/unistdio/u32-printf-parse.c: New file.
37901         * lib/unistdio/u32-snprintf.c: New file.
37902         * lib/unistdio/u32-sprintf.c: New file.
37903         * lib/unistdio/u32-vasnprintf.c: New file.
37904         * lib/unistdio/u32-vasprintf.c: New file.
37905         * lib/unistdio/u32-vsnprintf.c: New file.
37906         * lib/unistdio/u32-vsprintf.c: New file.
37907         * lib/unistdio/u32-u32-asnprintf.c: New file.
37908         * lib/unistdio/u32-u32-asprintf.c: New file.
37909         * lib/unistdio/u32-u32-snprintf.c: New file.
37910         * lib/unistdio/u32-u32-sprintf.c: New file.
37911         * lib/unistdio/u32-u32-vasnprintf.c: New file.
37912         * lib/unistdio/u32-u32-vasprintf.c: New file.
37913         * lib/unistdio/u32-u32-vsnprintf.c: New file.
37914         * lib/unistdio/u32-u32-vsprintf.c: New file.
37915         * tests/unistdio/test-ulc-asnprintf1.c: New file.
37916         * tests/unistdio/test-ulc-asnprintf1.h: New file.
37917         * tests/unistdio/test-ulc-printf1.h: New file.
37918         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
37919         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
37920         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
37921         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
37922         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
37923         * tests/unistdio/test-ulc-vasprintf1.c: New file.
37924         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
37925         * tests/unistdio/test-ulc-vsprintf1.c: New file.
37926         * tests/unistdio/test-u8-asnprintf1.c: New file.
37927         * tests/unistdio/test-u8-asnprintf1.h: New file.
37928         * tests/unistdio/test-u8-printf1.h: New file.
37929         * tests/unistdio/test-u8-vasnprintf1.c: New file.
37930         * tests/unistdio/test-u8-vasnprintf2.c: New file.
37931         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
37932         * tests/unistdio/test-u8-vasnprintf3.c: New file.
37933         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
37934         * tests/unistdio/test-u8-vasprintf1.c: New file.
37935         * tests/unistdio/test-u8-vsnprintf1.c: New file.
37936         * tests/unistdio/test-u8-vsprintf1.c: New file.
37937         * tests/unistdio/test-u16-asnprintf1.c: New file.
37938         * tests/unistdio/test-u16-asnprintf1.h: New file.
37939         * tests/unistdio/test-u16-printf1.h: New file.
37940         * tests/unistdio/test-u16-vasnprintf1.c: New file.
37941         * tests/unistdio/test-u16-vasnprintf2.c: New file.
37942         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
37943         * tests/unistdio/test-u16-vasnprintf3.c: New file.
37944         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
37945         * tests/unistdio/test-u16-vasprintf1.c: New file.
37946         * tests/unistdio/test-u16-vsnprintf1.c: New file.
37947         * tests/unistdio/test-u16-vsprintf1.c: New file.
37948         * tests/unistdio/test-u32-asnprintf1.c: New file.
37949         * tests/unistdio/test-u32-asnprintf1.h: New file.
37950         * tests/unistdio/test-u32-printf1.h: New file.
37951         * tests/unistdio/test-u32-vasnprintf1.c: New file.
37952         * tests/unistdio/test-u32-vasnprintf2.c: New file.
37953         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
37954         * tests/unistdio/test-u32-vasnprintf3.c: New file.
37955         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
37956         * tests/unistdio/test-u32-vasprintf1.c: New file.
37957         * tests/unistdio/test-u32-vsnprintf1.c: New file.
37958         * tests/unistdio/test-u32-vsprintf1.c: New file.
37959         * modules/unistdio/base: New file.
37960         * modules/unistdio/u-printf-args: New file.
37961         * modules/unistdio/ulc-asnprintf: New file.
37962         * modules/unistdio/ulc-asprintf: New file.
37963         * modules/unistdio/ulc-fprintf: New file.
37964         * modules/unistdio/ulc-printf-parse: New file.
37965         * modules/unistdio/ulc-snprintf: New file.
37966         * modules/unistdio/ulc-sprintf: New file.
37967         * modules/unistdio/ulc-vasnprintf: New file.
37968         * modules/unistdio/ulc-vasprintf: New file.
37969         * modules/unistdio/ulc-vfprintf: New file.
37970         * modules/unistdio/ulc-vsnprintf: New file.
37971         * modules/unistdio/ulc-vsprintf: New file.
37972         * modules/unistdio/u8-asnprintf: New file.
37973         * modules/unistdio/u8-asprintf: New file.
37974         * modules/unistdio/u8-printf-parse: New file.
37975         * modules/unistdio/u8-snprintf: New file.
37976         * modules/unistdio/u8-sprintf: New file.
37977         * modules/unistdio/u8-vasnprintf: New file.
37978         * modules/unistdio/u8-vasprintf: New file.
37979         * modules/unistdio/u8-vsnprintf: New file.
37980         * modules/unistdio/u8-vsprintf: New file.
37981         * modules/unistdio/u8-u8-asnprintf: New file.
37982         * modules/unistdio/u8-u8-asprintf: New file.
37983         * modules/unistdio/u8-u8-snprintf: New file.
37984         * modules/unistdio/u8-u8-sprintf: New file.
37985         * modules/unistdio/u8-u8-vasnprintf: New file.
37986         * modules/unistdio/u8-u8-vasprintf: New file.
37987         * modules/unistdio/u8-u8-vsnprintf: New file.
37988         * modules/unistdio/u8-u8-vsprintf: New file.
37989         * modules/unistdio/u16-asnprintf: New file.
37990         * modules/unistdio/u16-asprintf: New file.
37991         * modules/unistdio/u16-printf-parse: New file.
37992         * modules/unistdio/u16-snprintf: New file.
37993         * modules/unistdio/u16-sprintf: New file.
37994         * modules/unistdio/u16-vasnprintf: New file.
37995         * modules/unistdio/u16-vasprintf: New file.
37996         * modules/unistdio/u16-vsnprintf: New file.
37997         * modules/unistdio/u16-vsprintf: New file.
37998         * modules/unistdio/u16-u16-asnprintf: New file.
37999         * modules/unistdio/u16-u16-asprintf: New file.
38000         * modules/unistdio/u16-u16-snprintf: New file.
38001         * modules/unistdio/u16-u16-sprintf: New file.
38002         * modules/unistdio/u16-u16-vasnprintf: New file.
38003         * modules/unistdio/u16-u16-vasprintf: New file.
38004         * modules/unistdio/u16-u16-vsnprintf: New file.
38005         * modules/unistdio/u16-u16-vsprintf: New file.
38006         * modules/unistdio/u32-asnprintf: New file.
38007         * modules/unistdio/u32-asprintf: New file.
38008         * modules/unistdio/u32-printf-parse: New file.
38009         * modules/unistdio/u32-snprintf: New file.
38010         * modules/unistdio/u32-sprintf: New file.
38011         * modules/unistdio/u32-vasnprintf: New file.
38012         * modules/unistdio/u32-vasprintf: New file.
38013         * modules/unistdio/u32-vsnprintf: New file.
38014         * modules/unistdio/u32-vsprintf: New file.
38015         * modules/unistdio/u32-u32-asnprintf: New file.
38016         * modules/unistdio/u32-u32-asprintf: New file.
38017         * modules/unistdio/u32-u32-snprintf: New file.
38018         * modules/unistdio/u32-u32-sprintf: New file.
38019         * modules/unistdio/u32-u32-vasnprintf: New file.
38020         * modules/unistdio/u32-u32-vasprintf: New file.
38021         * modules/unistdio/u32-u32-vsnprintf: New file.
38022         * modules/unistdio/u32-u32-vsprintf: New file.
38023         * modules/unistdio/ulc-asnprintf-tests: New file.
38024         * modules/unistdio/ulc-vasnprintf-tests: New file.
38025         * modules/unistdio/ulc-vasprintf-tests: New file.
38026         * modules/unistdio/ulc-vsnprintf-tests: New file.
38027         * modules/unistdio/ulc-vsprintf-tests: New file.
38028         * modules/unistdio/u8-asnprintf-tests: New file.
38029         * modules/unistdio/u8-vasnprintf-tests: New file.
38030         * modules/unistdio/u8-vasprintf-tests: New file.
38031         * modules/unistdio/u8-vsnprintf-tests: New file.
38032         * modules/unistdio/u8-vsprintf-tests: New file.
38033         * modules/unistdio/u16-asnprintf-tests: New file.
38034         * modules/unistdio/u16-vasnprintf-tests: New file.
38035         * modules/unistdio/u16-vasprintf-tests: New file.
38036         * modules/unistdio/u16-vsnprintf-tests: New file.
38037         * modules/unistdio/u16-vsprintf-tests: New file.
38038         * modules/unistdio/u32-asnprintf-tests: New file.
38039         * modules/unistdio/u32-vasnprintf-tests: New file.
38040         * modules/unistdio/u32-vasprintf-tests: New file.
38041         * modules/unistdio/u32-vsnprintf-tests: New file.
38042         * modules/unistdio/u32-vsprintf-tests: New file.
38043         * MODULES.html.sh (Unicode string functions): Add the new modules.
38044
38045 2007-07-01  Bruno Haible  <bruno@clisp.org>
38046
38047         * lib/sprintf.c (sprintf): Limit the available length estimation,
38048         to avoid address wraparound.
38049         * lib/vsprintf.c (vsprintf): Likewise.
38050         * modules/sprintf-posix (Dependencies): Add stdint.
38051         * modules/vsprintf-posix (Dependencies): Likewise.
38052
38053 2007-07-01  Bruno Haible  <bruno@clisp.org>
38054
38055         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38056         Windows PATH as well. Conservative double-quoting. Comments.
38057
38058 2007-07-01  Bruno Haible  <bruno@clisp.org>
38059             Eric Blake  <ebb9@byu.net>
38060             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38061
38062         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38063         empty components in $PATH, denoting '.'.
38064
38065 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38066
38067         * gnulib-tool: Fix indentation.
38068         (func_create_megatestdir): Likewise.
38069         Report by Bruno Haible.
38070
38071 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38072
38073         Sync from Automake.
38074         * build-aux/gnupload: Fix shell portability issues with for loops.
38075         Report by Karl Berry.
38076
38077 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38078
38079         * build-aux/maint.mk (POURL): Use translationproject.org.
38080
38081 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38082             Bruno Haible  <bruno@clisp.org>
38083
38084         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38085         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38086         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38087         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38088         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38089
38090 2007-06-27  Bruno Haible  <bruno@clisp.org>
38091
38092         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38093         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38094
38095 2007-06-26  Karl Berry  <karl@gnu.org>
38096
38097         * MODULES.html.sh: remove xreadlink-with-size.
38098
38099 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38100
38101         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38102         method that I hope also handles the double-include problem noted
38103         by Bruno Haible in
38104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38105
38106 2007-06-23  Bruno Haible  <bruno@clisp.org>
38107
38108         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38109         Don't let the 'mostlyclean' target fail if the last subdirectory could
38110         not be removed.
38111         Reported by Karl Berry.
38112
38113 2007-06-23  Bruno Haible  <bruno@clisp.org>
38114
38115         * gnulib-tool (echo): Add a speedier workaround for ksh.
38116         * tests/test-echo.sh: Likewise.
38117
38118 2007-06-23  Bruno Haible  <bruno@clisp.org>
38119
38120         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38121         * tests/test-echo.sh: Likewise.
38122
38123 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38124
38125         * gnulib-tool (IFS): Initialize early, so we don't set it to
38126         empty later.
38127         (self_abspathname): Rewrite algorithm to set it, reindent.
38128         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38129         (func_create_megatestdir): Merge some sed scripts.
38130
38131 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38132
38133         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38134         exposed by Sun Studio 11 cc on Solaris 8.
38135
38136 2007-06-22  Bruno Haible  <bruno@clisp.org>
38137
38138         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38139         backslashes.
38140         * tests/test-echo.sh: New file.
38141
38142 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38143
38144         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38145         simplify `sed_replace_build_aux' scripts, they are portable but
38146         echoing them with `echo' is not.
38147         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38148
38149 2007-06-21  Karl Berry  <karl@gnu.org>
38150
38151         * config/srclist.txt: guess we can't handle the licenses via
38152         srclist at the moment.
38153
38154 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38155
38156         * MODULES.html.sh: Add include_next.
38157         * modules/include_next: New file.
38158
38159 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38160
38161         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38162         INCLUDE_NEXT.
38163         (gl_CHECK_NEXT_HEADERS): New macro.
38164         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38165         the obsolescent gl_ABSOLUTE_HEADER.
38166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38167         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38168         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38169         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38170         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38171         * m4/math_h.m4 (gl_MATH_H): Likewise.
38172         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38173         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38174         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38175         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38176         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38177         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38178         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38179         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38180         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38181         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38182         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38183         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38184         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38185         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38186         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38187         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38188         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38189         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38190         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38191         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38192         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38193         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38194         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38195         * lib/float_.h: Likewise.
38196         * lib/inttypes_.h: Likewise.
38197         * lib/math_.h: Likewise.
38198         * lib/search_.h: Likewise.
38199         * lib/signal_.h: Likewise.
38200         * lib/stdint_.h: Likewise.
38201         * lib/stdio_.h: Likewise.
38202         * lib/stdlib_.h: Likewise.
38203         * lib/string_.h: Likewise.
38204         * lib/sys_stat_.h: Likewise.
38205         * lib/sys_time_.h: Likewise.
38206         * lib/time_.h: Likewise.
38207         * lib/unistd_.h: Likewise.
38208         * lib/wchar_.h: Likewise.
38209         * lib/wctype_.h: Likewise.
38210         * lib/dirent_.h: Likewise.
38211         * lib/iconv_.h: Likewise.
38212         * lib/locale_.h: Likewise.
38213         * lib/netinet_in_.h: Likewise.
38214         * lib/sys_select_.h: Likewise.
38215         * lib/sys_socket_.h: Likewise.
38216         * lib/sysexits_.h: Likewise.
38217         * modules/fcntl (Depends-on): Depend on include_next, not
38218         absolute_header.
38219         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38220         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38221         * modules/fchdir: Likewise.
38222         * modules/float: Likewise.
38223         * modules/iconv_open: Likewise.
38224         * modules/inttypes: Likewise.
38225         * modules/locale: Likewise.
38226         * modules/math: Likewise.
38227         * modules/netinet_in: Likewise.
38228         * modules/search: Likewise.
38229         * modules/signal: Likewise.
38230         * modules/stdint: Likewise.
38231         * modules/stdio: Likewise.
38232         * modules/stdlib: Likewise.
38233         * modules/string: Likewise.
38234         * modules/sys_select: Likewise.
38235         * modules/sys_socket: Likewise.
38236         * modules/sys_stat: Likewise.
38237         * modules/sys_time: Likewise.
38238         * modules/sysexits: Likewise.
38239         * modules/time: Likewise.
38240         * modules/unistd: Likewise.
38241         * modules/wchar: Likewise.
38242         * modules/wctype: Likewise.
38243         * modules/sys_stat: Change maintainer to "all".
38244         * modules/unistd: Likewise.
38245
38246 2007-06-20  Karl Berry  <karl@gnu.org>
38247
38248         * config/srclist.txt: track www changes in license files.
38249
38250 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38251
38252         * build-aux/bootstrap: Remove stray dot.
38253         Make sure build_aux settings are honored when linking
38254         gnulib_extra_files.
38255
38256 2007-06-19  Eric Blake  <ebb9@byu.net>
38257
38258         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38259         Allow compilation on cygwin.
38260
38261 2007-06-19  Jim Meyering  <jim@meyering.net>
38262
38263         xreadlink-with-size: Remove module.  No longer used.
38264         Ex-callers now use xreadlink or mreadlink-with-size.
38265         * modules/xreadlink-with-size: Remove module.
38266         * lib/xreadlink-with-size.c: Remove file.
38267         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38268         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38269         just before the function definition *is* accurate.
38270
38271         Eliminate one way canonicalize_filename_mode could exit.
38272         * lib/canonicalize.c (canonicalize_filename_mode):
38273         Use mreadlink_with_size, not xreadlink_with_size.
38274
38275 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38276
38277         Detect porting problems to FreeBSD/arm, which has time_t wider than
38278         long int.  Original problem reported for GNU diff by Xin Li in
38279         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38280         * modules/getdate (Depends-on): Add intprops, verify.
38281         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38282         is an integer type no wider than long int.
38283
38284 2007-06-18  Jim Meyering  <jim@meyering.net>
38285
38286         New module: mreadlink-with-size.
38287         * MODULES.html.sh: Add mreadlink-with-size.
38288         * modules/mreadlink-with-size: New module
38289         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38290         not xreadlink-with-size.
38291         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38292
38293 2007-06-16  Bruno Haible  <bruno@clisp.org>
38294
38295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38296         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38297         Reported by Gary V. Vaughan <gary@gnu.org>.
38298
38299 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38300
38301         Revamp lchown so that it lives in unistd.h where it belongs.
38302         * lib/lchown.h: Remove.
38303         * lib/dirchownmod.c: Don't include lib/lchown.h.
38304         * lib/fchownat.c: Likewise.
38305         * lib/openat.c: Likewise.
38306         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38307         does not follow symlinks.
38308         (EOPNOTSUPP): Define if not defined.
38309         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38310         is defined to 0.
38311         (lchown): New decl.
38312         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38313         Do not check for lchown decl.
38314         Set REPLACE_LCHOWN.
38315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38316         REPLACE_LCHOWN.
38317         * modules/chown: Make it clear it follows symlinks.
38318         * modules/lchown: Make it clear it doesn't follow symlinks.
38319         (Files): Remove lib/lchown.h
38320         (Depends-on): Add unistd.
38321         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38322         (Include): Include <unistd.h>, not "lchown.h".
38323         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38324         REPLACE_LCHOWN.
38325
38326 2007-06-15  Jim Meyering  <jim@meyering.net>
38327
38328         Change license (GPL to LGPL) of fsusage and dependents.
38329         * modules/fsusage (License): Change to LGPL.
38330         * modules/full-read (License): Likewise.
38331         * modules/full-write (License): Likewise.
38332         * modules/safe-read (License): Likewise.
38333         * modules/safe-write (License): Likewise.
38334
38335 2007-06-14  Ben Pfaff  <blp@gnu.org>
38336
38337         Missing part of allocsa -> malloca transition.
38338         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38339         gl_MALLOCA.
38340
38341 2007-06-12  Bruno Haible  <bruno@clisp.org>
38342
38343         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38344         to ia64, x86_64, i386.
38345         Reported by Eric Blake.
38346
38347 2007-06-12  Bruno Haible  <bruno@clisp.org>
38348
38349         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38350         cross-compiling to x86_64.
38351
38352 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38353
38354         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38355         glitch reported by Ralf Wildenhues in
38356         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38357
38358         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38359         Vin Shelton.
38360
38361 2007-06-11  Bruno Haible  <bruno@clisp.org>
38362
38363         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38364         replacement string.
38365         Reported by Eric Blake.
38366
38367 2007-06-10  Bruno Haible  <bruno@clisp.org>
38368
38369         Prepare vasnprintf code for use with Unicode strings.
38370         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38371         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38372         TYPE_U32_STRING.
38373         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38374         a_u32_string variants.
38375         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38376         * lib/printf-args.c: Don't include config.h and the specification
38377         header if PRINTF_FETCHARGS is already defined.
38378         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38379         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38380         TYPE_U16_STRING, TYPE_U32_STRING.
38381         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38382         u16_directive, u16_directives, u32_directive, u32_directives): New
38383         types.
38384         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38385         New declarations.
38386         * lib/printf-parse.c: Don't include config.h and the specification
38387         header if PRINTF_PARSE is already defined. Eliminate the set of
38388         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38389         them now. Include c-ctype.h.
38390         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38391         directive and CHAR_T_ONLY_ASCII.
38392         * lib/vasnprintf.c: Don't include config.h and the specification header
38393         if VASNPRINTF is already defined.
38394         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38395         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38396         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38397         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38398         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38399         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38400         code accordingly.
38401         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38402         pad_ourselves also in this case, with the 'c' and 's' directives, and
38403         with a different notion of "width".
38404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38405
38406 2007-06-10  Bruno Haible  <bruno@clisp.org>
38407
38408         * modules/unistr/u32-mbsnlen: New file.
38409         * lib/unistr/u32-mbsnlen.c: New file.
38410
38411         * modules/unistr/u16-mbsnlen: New file.
38412         * lib/unistr/u16-mbsnlen.c: New file.
38413
38414         * modules/unistr/u8-mbsnlen: New file.
38415         * lib/unistr/u8-mbsnlen.c: New file.
38416
38417         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38418         declarations.
38419
38420 2007-06-10  Bruno Haible  <bruno@clisp.org>
38421
38422         * lib/string_.h (mbsnlen): New declaration.
38423         * lib/mbsnlen.c: New file.
38424         * m4/mbsnlen.m4: New file.
38425         * modules/mbsnlen: New file.
38426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38427         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38428         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38429
38430 2007-06-10  Bruno Haible  <bruno@clisp.org>
38431
38432         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38433
38434 2007-06-10  Bruno Haible  <bruno@clisp.org>
38435
38436         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38437         * lib/mbuiter.h: Likewise.
38438
38439 2007-06-10  Bruno Haible  <bruno@clisp.org>
38440
38441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38442         declaration.
38443
38444 2007-06-10  Karl Berry  <karl@gnu.org>
38445
38446         * config/srclist.txt: remove gettext entries, Bruno prefers
38447         to update individually.
38448
38449 2007-06-10  Bruno Haible  <bruno@clisp.org>
38450
38451         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38452         'maxlen'. Ensure only length + width bytes are allocated, not
38453         length + 1 + width.
38454
38455 2007-06-09  Bruno Haible  <bruno@clisp.org>
38456
38457         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38458         (CHAR_T): Remove macro.
38459         (VASNPRINTF): Update.
38460
38461 2007-06-09  Bruno Haible  <bruno@clisp.org>
38462
38463         * MODULES.html.sh (Unicode string functions): Add the new modules.
38464
38465         * modules/uniconv/u32-conv-to-enc: New file.
38466         * lib/uniconv/u32-conv-to-enc.c: New file.
38467         * modules/uniconv/u32-conv-to-enc-tests: New file.
38468         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38469
38470         * modules/uniconv/u16-conv-to-enc: New file.
38471         * lib/uniconv/u16-conv-to-enc.c: New file.
38472         * lib/uniconv/u-conv-to-enc.h: New file.
38473         * modules/uniconv/u16-conv-to-enc-tests: New file.
38474         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38475
38476         * modules/uniconv/u8-conv-to-enc: New file.
38477         * lib/uniconv/u8-conv-to-enc.c: New file.
38478         * modules/uniconv/u8-conv-to-enc-tests: New file.
38479         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38480
38481         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38482         u32_conv_to_encoding): New declarations.
38483
38484 2007-06-09  Bruno Haible  <bruno@clisp.org>
38485
38486         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38487
38488 2007-06-09  Bruno Haible  <bruno@clisp.org>
38489
38490         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38491         * modules/malloca: Renamed from modules/allocsa, updated.
38492         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38493         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38494         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38495         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38496         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38497         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38498         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38499         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38500         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38501         * modules/c-strcasestr (Depends-on): Update.
38502         * lib/c-strcasestr.c: Update.
38503         * modules/c-strstr (Depends-on): Update.
38504         * lib/c-strstr.c: Update.
38505         * modules/canonicalize-lgpl (Depends-on): Update.
38506         * lib/canonicalize-lgpl.c: Update.
38507         * modules/clean-temp (Depends-on): Update.
38508         * lib/clean-temp.c: Update.
38509         * modules/csharpcomp (Depends-on): Update.
38510         * lib/csharpcomp.c: Update.
38511         * modules/csharpexec (Depends-on): Update.
38512         * lib/csharpexec.c: Update.
38513         * modules/javacomp (Depends-on): Update.
38514         * lib/javacomp.c: Update.
38515         * modules/javaexec (Depends-on): Update.
38516         * lib/javaexec.c: Update.
38517         * modules/mbscasestr (Depends-on): Update.
38518         * lib/mbscasestr.c: Update.
38519         * modules/mbsstr (Depends-on): Update.
38520         * lib/mbsstr.c: Update.
38521         * modules/setenv (Depends-on): Update.
38522         * lib/setenv.c: Update.
38523         * modules/strcasestr (Depends-on): Update.
38524         * lib/strcasestr.c: Update.
38525         * modules/striconveha (Depends-on): Update.
38526         * lib/striconveha.c: Update.
38527         * modules/relocatable-prog-wrapper (Files): Update.
38528         * lib/relocwrapper.c: Update.
38529         * build-aux/install-reloc: Update.
38530         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38531
38532 2007-06-08  Bruno Haible  <bruno@clisp.org>
38533
38534         Port to uClibc.
38535         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38536         * lib/fpurge.c (fpurge): Likewise.
38537         * lib/freading.c (freading): Likewise.
38538         * lib/fseeko.c (rpl_fseeko): Likewise.
38539         * lib/fseterr.c (fseterr): Likewise.
38540         * lib/fwriting.c (fwriting): Likewise.
38541         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38542
38543 2007-06-08  Bruno Haible  <bruno@clisp.org>
38544
38545         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38546         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38547         * modules/gettext (Files): Add m4/intlmacosx.m4.
38548
38549 2007-06-07  Bruno Haible  <bruno@clisp.org>
38550
38551         * modules/localename-tests: New file.
38552         * tests/test-localename.c: New file.
38553
38554         New module 'localename'.
38555         * lib/localename.h: New file.
38556         * lib/localename.c: New file, from GNU gettext.
38557         * m4/localename.m4: New file.
38558         * modules/localename: New file.
38559
38560 2007-06-07  Bruno Haible  <bruno@clisp.org>
38561
38562         Work around the lack of <wchar.h> on some builds of uClibc.
38563         * doc/headers/wchar.texi: Update.
38564         * lib/wchar_.h: Include <wchar.h> only if it exists.
38565         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38566         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38567         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38568         doesn't exist.
38569         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38570         * modules/mbfile (Depends-on): Add wchar.
38571         * modules/mbiter (Depends-on): Likewise.
38572         * modules/mbuiter (Depends-on): Likewise.
38573         Reported by Simon Josefsson.
38574
38575 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38576
38577         Work around problem reported by Steven M. Schweda in
38578         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38579         Tru64 5.1B with the Compaq compiler environment installed declares
38580         an 'isblank' function but does not define it in the C library.
38581         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38582         * lib/regex_internal.h (isblank): Likewise.
38583         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38584         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38585
38586 2007-06-05  Bruno Haible  <bruno@clisp.org>
38587
38588         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38589         ia64.
38590         * modules/printf-safe: New file.
38591         * modules/fprintf-posix (Depends-on): Add printf-safe.
38592         * modules/printf-posix (Depends-on): Likewise.
38593         * modules/snprintf-posix (Depends-on): Likewise.
38594         * modules/sprintf-posix (Depends-on): Likewise.
38595         * modules/vasnprintf-posix (Depends-on): Likewise.
38596         * modules/vasprintf-posix (Depends-on): Likewise.
38597         * modules/vfprintf-posix (Depends-on): Likewise.
38598         * modules/vprintf-posix (Depends-on): Likewise.
38599         * modules/vsnprintf-posix (Depends-on): Likewise.
38600         * modules/vsprintf-posix (Depends-on): Likewise.
38601         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38602         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38603         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38604         "no" on i386, x86_64, ia64.
38605         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38606         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38607         on i386, x86_64, ia64.
38608         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38609         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38610         on i386, x86_64, ia64.
38611         * tests/test-vasnprintf-posix.c: Include float.h.
38612         (LDBL80_WORDS): New macro.
38613         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38614         on i386, x86_64, ia64.
38615         * tests/test-vasprintf-posix.c: Include float.h.
38616         (LDBL80_WORDS): New macro.
38617         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38618         on i386, x86_64, ia64.
38619         * tests/test-snprintf-posix.c: Include float.h.
38620         * tests/test-sprintf-posix.c: Likewise.
38621         * tests/test-vsnprintf-posix.c: Likewise.
38622         * tests/test-vsprintf-posix.c: Likewise.
38623
38624 2007-06-05  Bruno Haible  <bruno@clisp.org>
38625
38626         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
38627         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
38628         non-IEEE numbers on i386, x86_64, ia64.
38629         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
38630         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
38631         * tests/test-isnanl.h: Include float.h.
38632         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
38633
38634 2007-06-05  Bruno Haible  <bruno@clisp.org>
38635
38636         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
38637         also the %a / %A. Handle the %a / %A code before this extra handling.
38638
38639 2007-06-05  Bruno Haible  <bruno@clisp.org>
38640
38641         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
38642         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
38643
38644 2007-06-05  Bruno Haible  <bruno@clisp.org>
38645
38646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
38647         typo in variable name.
38648
38649 2007-06-05  Eric Blake  <ebb9@byu.net>
38650
38651         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
38652         Reported by Simon Josefsson.
38653
38654 2007-06-04  Bruno Haible  <bruno@clisp.org>
38655
38656         Avoid test failures on some PowerPC platforms.
38657         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
38658         Define differently for PowerPC.
38659         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
38660         Reported by Gary V. Vaughan <gary@gnu.org>.
38661
38662 2007-06-02  Bruno Haible  <bruno@clisp.org>
38663
38664         Fix test-stdint failure on FreeBSD/ia64.
38665         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
38666         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
38667         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
38668         * doc/headers/stdint.texi: Update.
38669
38670 2007-06-01  Bruno Haible  <bruno@clisp.org>
38671
38672         * tests/test-binary-io.c (main): Pass a third argument to open().
38673         Reported by Gary V. Vaughan <gary@gnu.org>.
38674
38675 2007-06-01  Bruno Haible  <bruno@clisp.org>
38676
38677         * doc/functions/frexpl.texi: Update for mingw.
38678
38679 2007-06-01  Bruno Haible  <bruno@clisp.org>
38680
38681         * tests/test-lseek.c (main): Disable test of errno for invalid third
38682         argument.
38683         * doc/functions/lseek.texi: Update.
38684         Reported by Gary V. Vaughan <gary@gnu.org>.
38685
38686 2007-05-28  Bruno Haible  <bruno@clisp.org>
38687
38688         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
38689
38690 2007-05-31  Eric Blake  <ebb9@byu.net>
38691
38692         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
38693         cross compiling.
38694
38695 2007-05-30  Eric Blake  <ebb9@byu.net>
38696         and Bruno Haible  <bruno@clisp.org>
38697
38698         Work around mingw test failures exposed by m4-1.4.9b.
38699         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
38700         * tests/test-unistd.c: Disable uid_t and git_t tests for the
38701         moment.
38702
38703 2007-05-30  Bruno Haible  <bruno@clisp.org>
38704
38705         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
38706         assuming that they are closed. Needed on HP-UX 11.
38707
38708 2007-05-29  Bruno Haible  <bruno@clisp.org>
38709
38710         Fix a problem with #include_next.
38711         * lib/dirent_.h: Split the double-inclusion guard.
38712         * lib/fcntl_.h: Likewise.
38713         * lib/float_.h: Likewise.
38714         * lib/iconv_.h: Likewise.
38715         * lib/inttypes_.h: Likewise.
38716         * lib/locale_.h: Likewise.
38717         * lib/math_.h: Likewise.
38718         * lib/netinet_in_.h: Likewise.
38719         * lib/search_.h: Likewise.
38720         * lib/signal_.h: Likewise.
38721         * lib/stdint_.h: Likewise.
38722         * lib/stdio_.h: Likewise.
38723         * lib/stdlib_.h: Likewise.
38724         * lib/string_.h: Likewise.
38725         * lib/sys_select_.h: Likewise.
38726         * lib/sys_socket_.h: Likewise.
38727         * lib/sys_stat_.h: Likewise.
38728         * lib/sys_time_.h: Likewise.
38729         * lib/sysexits_.h: Likewise.
38730         * lib/time_.h: Likewise.
38731         * lib/unistd_.h: Likewise.
38732         * lib/wchar_.h: Likewise.
38733         * lib/wctype_.h: Likewise.
38734
38735 2007-05-29  Bruno Haible  <bruno@clisp.org>
38736
38737         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
38738         for the moment.
38739
38740 2007-05-29  Bruno Haible  <bruno@clisp.org>
38741
38742         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
38743         invocation.
38744         Reported by Eric Blake.
38745
38746 2007-05-29  Bruno Haible  <bruno@clisp.org>
38747
38748         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
38749         compiling case.
38750
38751 2007-05-29  Eric Blake  <ebb9@byu.net>
38752             Bruno Haible  <bruno@clisp.org>
38753
38754         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
38755         cross compiles.
38756
38757 2007-05-28  Eric Blake  <ebb9@byu.net>
38758
38759         * modules/closein-tests (test_closein_LDADD): Support test on
38760         cygwin with libtool.
38761
38762 2007-05-28  Bruno Haible  <bruno@clisp.org>
38763
38764         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
38765         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38766         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38767         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38768         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38769         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38770         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38771         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38772         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38773
38774 2007-05-28  Eric Blake  <ebb9@byu.net>
38775
38776         Unconditionally include <config.h> in unit tests.
38777         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
38778         * tests/test-allocsa.c, tests/test-arcfour.c,
38779         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
38780         tests/test-array_list.c, tests/test-array_oset.c,
38781         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
38782         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
38783         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
38784         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
38785         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
38786         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
38787         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
38788         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
38789         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
38790         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
38791         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
38792         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
38793         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
38794         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
38795         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
38796         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
38797         test-md5.c, test-memmem.c, test-printf-posix.c,
38798         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
38799         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
38800         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
38801         test-strcasestr.c, test-striconv.c, test-striconveh.c,
38802         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
38803         test-vasnprintf-posix2.c, test-vasnprintf.c,
38804         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
38805         test-vfprintf-posix.c, test-vprintf-posix.c,
38806         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
38807         test-xvasprintf.c: Likewise.
38808
38809 2007-05-28  Bruno Haible  <bruno@clisp.org>
38810
38811         * gnulib-tool (func_import): Remember the --with-tests command-line
38812         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
38813         Reported by Eric Blake.
38814
38815 2007-05-28  Bruno Haible  <bruno@clisp.org>
38816
38817         * modules/ftell-tests: New file.
38818         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
38819         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
38820
38821         * lib/ftell.c: New file.
38822         * modules/ftell: New file.
38823         * m4/ftell.m4: New file.
38824         * doc/functions/ftell.texi: Update.
38825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
38826         REPLACE_FTELL.
38827         * lib/stdio_.h (rpl_ftell): New declaration.
38828         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
38829         REPLACE_FTELL.
38830
38831 2007-05-28  Eric Blake  <ebb9@byu.net>
38832
38833         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
38834
38835 2007-05-28  Bruno Haible  <bruno@clisp.org>
38836
38837         * modules/fseek-tests: New file.
38838         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
38839         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
38840
38841         * lib/fseek.c: New file.
38842         * modules/fseek: New file.
38843         * m4/fseek.m4: New file.
38844         * doc/functions/fseek.texi: Update.
38845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
38846         REPLACE_FSEEK.
38847         * lib/stdio_.h (rpl_fseek): New declaration.
38848         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
38849         REPLACE_FSEEK.
38850
38851 2007-05-28  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/stdio_.h (fflush): More comments.
38854
38855 2007-05-28  Bruno Haible  <bruno@clisp.org>
38856
38857         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
38858         runtime test.
38859
38860 2007-05-28  Eric Blake  <ebb9@byu.net>
38861
38862         Improve lseek module.
38863         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
38864         * lib/unistd_.h (lseek): Scale back link warning message.
38865         * tests/test-lseek.c: Beef up test.
38866         * tests/test-lseek.sh: Exercise more facets of lseek.
38867         Reported by Bruno Haible.
38868
38869 2007-05-28  Bruno Haible  <bruno@clisp.org>
38870
38871         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
38872         to define.
38873
38874 2007-05-27  Bruno Haible  <bruno@clisp.org>
38875
38876         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
38877
38878 2007-05-27  Bruno Haible  <bruno@clisp.org>
38879
38880         * modules/openmp: New file.
38881         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
38882         Noah Misch.
38883
38884 2007-05-26  Bruno Haible  <bruno@clisp.org>
38885
38886         * modules/chdir-long (Depends-on): Add fchdir.
38887         * modules/chdir-safer (Depends-on): Likewise.
38888         * modules/fts (Depends-on): Likewise.
38889         * modules/fts-lgpl (Depends-on): Likewise.
38890         * modules/openat (Depends-on): Likewise.
38891         * modules/savewd (Depends-on): Likewise.
38892
38893 2007-05-24  Eric Blake  <ebb9@byu.net>
38894
38895         Fix lseek on mingw.
38896         * modules/lseek: New module.
38897         * m4/lseek.m4: New file.
38898         * lib/lseek.c: New file.
38899         * modules/lseek-tests: New file.
38900         * tests/test-lseek.c: New file.
38901         * tests/test-lseek.sh: New file.
38902         * MODULES.html.sh: Document lseek module.
38903         * modules/fflush (Depends-on): Add lseek, fseeko.
38904         * modules/fseeko (Depends-on): Likewise.
38905         * modules/ftello (Depends-on): Likewise.
38906         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
38907         broken.
38908         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
38909         broken.
38910         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
38911         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
38912         * lib/ftello.c (rpl_ftello): Likewise.
38913         * tests/test-fseeko.c (main): Test this.
38914         * tests/test-fseeko.sh: Likewise.
38915         * tests/test-ftello.c (main): Likewise.
38916         * tests/test-ftello.sh: Likewise.
38917         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
38918         implies replacing fseek.
38919         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
38920         HAVE_FTELLO.
38921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
38922         * modules/unistd (Makefile.am): Likewise.
38923         * lib/unistd_.h (lseek): Declare a replacement.
38924         * doc/functions/lseek.texi (lseek): Document this fix.
38925         * doc/functions/fseek.texi (fseek): Likewise.
38926         * doc/functions/ftell.texi (ftell): Likewise.
38927
38928 2007-05-24  Bruno Haible  <bruno@clisp.org>
38929
38930         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
38931         in the printed representation of a NaN.
38932         * tests/test-vasprintf-posix.c (test_function): Likewise.
38933         * tests/test-snprintf-posix.h (test_function): Likewise.
38934         * tests/test-sprintf-posix.h (test_function): Likewise.
38935         Reported by Eric Blake.
38936
38937 2007-05-23  Eric Blake  <ebb9@byu.net>
38938
38939         Fix fseeko/ftello on cygwin 1.5.24.
38940         * doc/functions/fseeko.texi (fseeko): Document the fix.
38941         * doc/functions/ftello.texi (ftello): Document the fix.
38942         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
38943         * doc/functions/stdout.text (stdout): New file.
38944         * doc/functions/stderr.text (stderr): New file.
38945         * doc/gnulib.texi (Function Substitutes): Use new files.
38946         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
38947         prior to 1.7.0.
38948         * tests/test-ftello.c (main): Likewise for ftello.
38949         * tests/test-fseeko.sh: New file.
38950         * tests/test-ftello.sh: New file.
38951         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
38952         with seekable stdin.
38953         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
38954         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
38955         (gl_REPLACE_FSEEKO): New macro.
38956         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
38957         * modules/fseeko (Files): Distribute fseeko.c.
38958         * modules/ftello (Files): Distribute ftello.c.
38959         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
38960         mode.
38961         * lib/ftello.c (rpl_ftello): New file.
38962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
38963         fseeko, ftello.
38964         (gl_STDIN_LARGE_OFFSET): New macro.
38965         * modules/stdio (Makefile.am): Perform the replacement.
38966         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
38967
38968 2007-05-23  Bruno Haible  <bruno@clisp.org>
38969
38970         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
38971         GNULIB_POSIXCHECK is defined.
38972
38973 2007-05-21  Bruno Haible  <bruno@clisp.org>
38974
38975         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
38976         Check also the output for NaN arguments. When cross-compiling, guess
38977         no on IRIX.
38978         * lib/vasnprintf.c: Update comments.
38979         * tests/test-vasnprintf-posix.c (strisnan): New function.
38980         (test_function): Use it.
38981         * tests/test-vasprintf-posix.c (strisnan): New function.
38982         (test_function): Use it.
38983         * tests/test-snprintf-posix.h (strisnan): New function.
38984         (test_function): Use it.
38985         * tests/test-sprintf-posix.h (strisnan): New function.
38986         (test_function): Use it.
38987         Reported by Eric Blake.
38988
38989 2007-05-20  Bruno Haible  <bruno@clisp.org>
38990
38991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
38992         numbers that fails on BeOS.
38993         * doc/functions/frexpl.texi: Update.
38994
38995 2007-05-20  Jim Meyering  <jim@meyering.net>
38996
38997         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
38998         forced upon us by glibc-2.6.
38999
39000 2007-05-20  Bruno Haible  <bruno@clisp.org>
39001
39002         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39003         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39004         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39005         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39006         NEED_PRINTF_INFINITE.
39007         (is_infinitel): New function.
39008         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39009         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39010         gl_PREREQ_VASNPRINTF_INFINITE.
39011         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39013         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39014         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39015         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39016         gl_PREREQ_VASNPRINTF_INFINITE.
39017         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39018         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39019         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39020         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39021         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39022         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39023         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39024         * doc/functions/fprintf.texi: Update.
39025         * doc/functions/printf.texi: Update.
39026         * doc/functions/snprintf.texi: Update.
39027         * doc/functions/sprintf.texi: Update.
39028         * doc/functions/vfprintf.texi: Update.
39029         * doc/functions/vprintf.texi: Update.
39030         * doc/functions/vsnprintf.texi: Update.
39031         * doc/functions/vsprintf.texi: Update.
39032
39033 2007-05-20  Bruno Haible  <bruno@clisp.org>
39034
39035         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39036         was not found in libc.
39037         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39038
39039 2007-05-20  Bruno Haible  <bruno@clisp.org>
39040
39041         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39042         printed as "-nan" instead of "nan".
39043         * tests/test-vasprintf-posix.c (test_function): Likewise.
39044         * tests/test-snprintf-posix.h (test_function): Likewise.
39045         * tests/test-sprintf-posix.h (test_function): Likewise.
39046         Needed for HP-UX 11.
39047
39048 2007-05-20  Jim Meyering  <jim@meyering.net>
39049
39050         Fix buggy test for the fchownat-deref bug.
39051         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39052         symlink required for the run-test.  Without it, this test would
39053         always declare that fchownat doesn't work, and client code would
39054         unnecessarily use the replacement function with fixed libc.
39055         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39056         Reported by Greg Schafer.
39057
39058 2007-05-19  Bruno Haible  <bruno@clisp.org>
39059
39060         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39061         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39062         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39063         Needed for IRIX 6.5 and Solaris 2.5.1.
39064
39065 2007-05-19  Bruno Haible  <bruno@clisp.org>
39066
39067         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39068         (test_function): Skip tests involving -0.0 on platforms where
39069         -0.0 = 0.0.
39070         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39071         (test_function): Skip tests involving -0.0 on platforms where
39072         -0.0 = 0.0.
39073         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39074         (test_function): Skip tests involving -0.0 on platforms where
39075         -0.0 = 0.0.
39076         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39077         (test_function): Skip tests involving -0.0 on platforms where
39078         -0.0 = 0.0.
39079         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39080         tests.
39081         * tests/test-printf-posix.h (test_function): Likewise.
39082         * tests/test-printf-posix.output: Remove all -0.0 related results.
39083         Needed for IRIX 6.5.
39084
39085 2007-05-19  Bruno Haible  <bruno@clisp.org>
39086
39087         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39088         printed as "nan0x7fffffff" instead of "nan".
39089         * tests/test-vasprintf-posix.c (test_function): Likewise.
39090         * tests/test-snprintf-posix.h (test_function): Likewise.
39091         * tests/test-sprintf-posix.h (test_function): Likewise.
39092         * tests/test-fprintf-posix.h (NaN): Remove macro.
39093         (test_function): Remove all NaN related tests.
39094         * tests/test-printf-posix.h (NaN): Remove macro.
39095         (test_function): Remove all NaN related tests.
39096         * tests/test-printf-posix.output: Remove all NaN related results.
39097         Needed for IRIX 6.5.
39098
39099 2007-05-19  Bruno Haible  <bruno@clisp.org>
39100
39101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39102         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39103
39104 2007-05-19  Bruno Haible  <bruno@clisp.org>
39105
39106         * lib/float_.h: New file.
39107         * m4/float_h.m4: New file.
39108         * modules/float: New file.
39109         * modules/isnanl (Dependencies): Add float.
39110         * modules/isnanl-nolibm (Dependencies): Likewise.
39111         * modules/mathl (Dependencies): Likewise.
39112         * modules/printf-frexpl (Dependencies): Likewise.
39113         * modules/signbit (Dependencies): Likewise.
39114         * modules/vasnprintf (Dependencies): Likewise.
39115         * doc/headers/float.texi: Update.
39116
39117 2007-05-19  Jim Meyering  <jim@meyering.net>
39118
39119         * lib/utimens.c (gl_futimens): Rename from futimens,
39120         now that glibc-2.6 declares futimens.
39121         * lib/utimens.h: Likewise.
39122
39123 2007-05-19  Bruno Haible  <bruno@clisp.org>
39124
39125         Avoid test failures on mingw.
39126         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39127         * tests/test-printf-posix.sh: Likewise.
39128         * tests/test-vfprintf-posix.sh: Likewise.
39129         * tests/test-vprintf-posix.sh: Likewise.
39130
39131 2007-05-19  Bruno Haible  <bruno@clisp.org>
39132
39133         Fix *printf result for NaN, Inf, -0.0 on mingw.
39134         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39135         * lib/vasnprintf.c: Include math.h and isnan.h.
39136         (is_infinite_or_zero): New function.
39137         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39138         values in the %f, %F, %e, %E, %g, %G directives.
39139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39141         gl_PRINTF_INFINITE and test its result. Invoke
39142         gl_PREREQ_VASNPRINTF_INFINITE.
39143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39147         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39150         * doc/functions/fprintf.texi: Update.
39151         * doc/functions/printf.texi: Update.
39152         * doc/functions/snprintf.texi: Update.
39153         * doc/functions/sprintf.texi: Update.
39154         * doc/functions/vfprintf.texi: Update.
39155         * doc/functions/vprintf.texi: Update.
39156         * doc/functions/vsnprintf.texi: Update.
39157         * doc/functions/vsprintf.texi: Update.
39158
39159 2007-05-19  Bruno Haible  <bruno@clisp.org>
39160
39161         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39162         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39163         Instead of multiplying with 10^k, set extra_zeroes to k.
39164         (scale10_round_long_double): Remove function.
39165
39166 2007-05-18  Bruno Haible  <bruno@clisp.org>
39167
39168         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39169         introduced on 2007-05-06.
39170
39171 2007-05-18  Bruno Haible  <bruno@clisp.org>
39172
39173         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39174         %g directives.
39175         * tests/test-vasprintf-posix.c (test_function): Likewise.
39176         * tests/test-snprintf-posix.h (test_function): Likewise.
39177         * tests/test-sprintf-posix.h (test_function): Likewise.
39178
39179 2007-05-18  Bruno Haible  <bruno@clisp.org>
39180
39181         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39182         (strmatch): New function.
39183         (test_function): Test the %f directive on numbers of various exponents.
39184         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39185         (strmatch): New function.
39186         (test_function): Test the %f directive on numbers of various exponents.
39187         * tests/test-snprintf-posix.h (strmatch): New function.
39188         (test_function): Test the %f directive on numbers of various exponents.
39189         * tests/test-sprintf-posix.h (strmatch): New function.
39190         (test_function): Test the %f directive on numbers of various exponents.
39191         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39192         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39193         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39194         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39195
39196 2007-05-18  Bruno Haible  <bruno@clisp.org>
39197
39198         Add support for 'long double' number output.
39199         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39200         * lib/vasnprintf.c: Include math.h and float+.h.
39201         (mp_limb_t): New type.
39202         (GMP_LIMB_BITS): New macro.
39203         (mp_twolimb_t): New type.
39204         (GMP_TWOLIMB_BITS): New macro.
39205         (mpn_t): New type.
39206         (multiply, divide, convert_to_decimal, decode_long_double,
39207         scale10_round_long_double, scale10_round_decimal_long_double,
39208         floorlog10l): New functions.
39209         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39210         for the %f, %F, %e, %E, %g, %G directives.
39211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39213         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39214         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39222         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39223         * modules/snprintf-posix (Depends-on): Likewise.
39224         * modules/sprintf-posix (Depends-on): Likewise.
39225         * modules/vasnprintf-posix (Depends-on): Likewise.
39226         * modules/vasprintf-posix (Depends-on): Likewise.
39227         * modules/vfprintf-posix (Depends-on): Likewise.
39228         * modules/vsnprintf-posix (Depends-on): Likewise.
39229         * modules/vsprintf-posix (Depends-on): Likewise.
39230         * modules/vasnprintf (Files): Add lib/float+.h.
39231         * doc/functions/fprintf.texi: Update.
39232         * doc/functions/printf.texi: Update.
39233         * doc/functions/snprintf.texi: Update.
39234         * doc/functions/sprintf.texi: Update.
39235         * doc/functions/vfprintf.texi: Update.
39236         * doc/functions/vprintf.texi: Update.
39237         * doc/functions/vsnprintf.texi: Update.
39238         * doc/functions/vsprintf.texi: Update.
39239
39240 2007-05-18  Bruno Haible  <bruno@clisp.org>
39241
39242         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39243
39244 2007-05-18  Bruno Haible  <bruno@clisp.org>
39245
39246         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39247         for printing 64-bit integers. Needed for mingw.
39248
39249 2007-05-18  Bruno Haible  <bruno@clisp.org>
39250
39251         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39252         gl_FUNC_FREXPL_WORKS.
39253         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39254
39255 2007-05-18  Bruno Haible  <bruno@clisp.org>
39256
39257         * modules/frexpl-nolibm-tests: New file.
39258
39259         * modules/frexpl-nolibm: New file.
39260         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39261
39262 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39263
39264         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39265         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39266         GCC 4.2, which otherwise issues a lot of warnings.
39267         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39268         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39269         Likewise.
39270         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39271         * modules/iconv_open (iconv.h): Likewise.
39272         * modules/locale (locale.h): Likewise.
39273         * modules/netinet_in (netinet/in.h): Likewise.
39274         * modules/sys_select (sys_select.h): Likewise.
39275         * modules/sys_socket (sys/socket.h): Likewise.
39276         * modules/sys_stat (sys/stat.h): Likewise.
39277         * modules/sysexits (sysexits.h): Likewise.
39278         * modules/unistd (unistd.h): Likewise.
39279
39280 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39281
39282         * modules/closein-tests (Makefile.am): Distribute
39283         `test-closein.sh'.
39284
39285 2007-05-17  Bruno Haible  <bruno@clisp.org>
39286
39287         * tests/test-printf-posix.output: Renamed from
39288         tests/test-fprintf-posix.out.
39289         * modules/fprintf-posix-tests: Update.
39290         * modules/printf-posix-tests: Update.
39291         * modules/vfprintf-posix-tests: Update.
39292         * modules/vprintf-posix-tests: Update.
39293         * tests/test-fprintf-posix.sh: Update.
39294         * tests/test-printf-posix.sh: Update.
39295         * tests/test-vfprintf-posix.sh: Update.
39296         * tests/test-vprintf-posix.sh: Update.
39297         Reported by Ralf Wildenhues.
39298
39299 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39300
39301         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39302         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39303         GCC 4.2, which otherwise issues a lot of warnings.
39304         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39305         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39306         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39307         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39308         it should no longer be needed.
39309         * lib/string_.h: Likewise.
39310         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39311         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39312         * modules/inttypes (inttypes.h): Likewise.
39313         * modules/math (math.h): Likewise.
39314         * modules/search (search.h): Likewise.
39315         * modules/signal (signal.h): Likewise.
39316         * modules/stdint (stdint.h): Likewise.
39317         * modules/stdio (stdio.h): Likewise.
39318         * modules/stdlib (stdlib.h): Likewise.
39319         * modules/string (string.h): Likewise.
39320         * modules/sys_time (sys/time.h): Likewise.
39321         * modules/time (time.h): Likewise.
39322         * modules/wchar (wchar.h): Likewise.
39323         * modules/wctype (wtype.h): Likewise.
39324
39325 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39326
39327         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39328
39329 2007-05-13  Bruno Haible  <bruno@clisp.org>
39330
39331         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39332         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39333         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39334         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39335         (gl_PREREQ_STRTOK_R): Don't require it here.
39336
39337 2007-05-13  Bruno Haible  <bruno@clisp.org>
39338
39339         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39340         when used in C++ mode.
39341
39342 2007-05-12  Bruno Haible  <bruno@clisp.org>
39343
39344         * lib/linebuffer.h: Tweak doc.
39345         * lib/linebuffer.c: Likewise.
39346
39347 2007-05-12  James Youngman  <jay@gnu.org>
39348
39349         * lib/linebuffer.c (readlinebuffer_delim): New function,
39350         like readlinebuffer, but use a caller-specified delimiter.
39351         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39352         as the delimiter.
39353         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39354
39355 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39356
39357         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39358         * modules/openat (Files): Remove openat-die.c.
39359         (Depends-on): Add openat-die.
39360         * modules/openat-die: New module.
39361
39362 2007-05-06  Bruno Haible  <bruno@clisp.org>
39363
39364         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39365         Update with info about Cygwin.
39366         * doc/functions/fprintf.texi: Update.
39367         * doc/functions/printf.texi: Update.
39368         * doc/functions/snprintf.texi: Update.
39369         * doc/functions/sprintf.texi: Update.
39370         * doc/functions/vfprintf.texi: Update.
39371         * doc/functions/vprintf.texi: Update.
39372         * doc/functions/vsnprintf.texi: Update.
39373         * doc/functions/vsprintf.texi: Update.
39374         Reported by Eric Blake.
39375
39376 2007-05-06  Bruno Haible  <bruno@clisp.org>
39377
39378         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39379         padding ourselves for the floating-point directives.
39380         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39382         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39383         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39384         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39389         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39391         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39392         * tests/test-snprintf-posix.h (test_function): Also check the width
39393         and some flags in the %f directive.
39394         * tests/test-sprintf-posix.h (test_function): Likewise.
39395         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39396         * tests/test-vasprintf-posix.c (test_function): Likewise.
39397         * doc/functions/fprintf.texi: Update.
39398         * doc/functions/printf.texi: Update.
39399         * doc/functions/snprintf.texi: Update.
39400         * doc/functions/sprintf.texi: Update.
39401         * doc/functions/vfprintf.texi: Update.
39402         * doc/functions/vprintf.texi: Update.
39403         * doc/functions/vsnprintf.texi: Update.
39404         * doc/functions/vsprintf.texi: Update.
39405
39406 2007-05-06  Bruno Haible  <bruno@clisp.org>
39407
39408         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39409         pass the ' flag character to sprintf or snprintf.
39410         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39411         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39413         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39414         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39415         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39416         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39417         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39418         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39419         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39422         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39423         flag.
39424         * tests/test-sprintf-posix.h (test_function): Likewise.
39425         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39426         * tests/test-vasprintf-posix.c (test_function): Likewise.
39427         * doc/functions/fprintf.texi: Update.
39428         * doc/functions/printf.texi: Update.
39429         * doc/functions/snprintf.texi: Update.
39430         * doc/functions/sprintf.texi: Update.
39431         * doc/functions/vfprintf.texi: Update.
39432         * doc/functions/vprintf.texi: Update.
39433         * doc/functions/vsnprintf.texi: Update.
39434         * doc/functions/vsprintf.texi: Update.
39435
39436 2007-05-01  Bruno Haible  <bruno@clisp.org>
39437
39438         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39439
39440 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39441
39442         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39443         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39444
39445 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39446
39447         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39448         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39449         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39450
39451 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39452
39453         * lib/argp-help.c (struct hol_entry): New member `ord'.
39454         (HOL_ENTRY_PTRCMP): Use ord for comparison
39455         (hol_sort): Initialize ord.
39456
39457 2007-05-01  Bruno Haible  <bruno@clisp.org>
39458
39459         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39460         Reported by Eric Blake.
39461         * doc/gnulib.texi (Function Substitutes): Update.
39462
39463 2007-05-01  Bruno Haible  <bruno@clisp.org>
39464
39465         * doc/functions.texi: Remove file, now redundant through
39466         doc/functions/*.texi.
39467
39468 2007-05-01  Bruno Haible  <bruno@clisp.org>
39469
39470         * modules/argp (Depends-on): Add sleep.
39471
39472 2007-05-01  Bruno Haible  <bruno@clisp.org>
39473
39474         * modules/sleep-tests: New file.
39475         * tests/test-sleep.c: New file.
39476
39477         * modules/sleep: New file.
39478         * lib/sleep.c: New file.
39479         * m4/sleep.m4: New file.
39480         * lib/unistd_.h (sleep): New declaration.
39481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39482         HAVE_SLEEP.
39483         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39484         * doc/functions/sleep.texi: Document the sleep module.
39485
39486 2007-05-01  Bruno Haible  <bruno@clisp.org>
39487
39488         * lib/sigprocmask.h: Remove file.
39489         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39490         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39491         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39492         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39493         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39494         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39495         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39496         HAVE_SIGSET_T as a shell variable.
39497         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39498         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39499         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39500         (Depends-on): Add signal. Remove verify.
39501         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39502         (Include): Mention <signal.h> instead of sigprocmask.h.
39503         * NEWS: Mention the change.
39504         * lib/fatal-signal.c: Don't include sigprocmask.h.
39505
39506 2007-05-01  Bruno Haible  <bruno@clisp.org>
39507
39508         * modules/signal: New file.
39509         * lib/signal_.h: New file.
39510         * m4/signal_h.m4: New file.
39511
39512 2007-05-01  Bruno Haible  <bruno@clisp.org>
39513
39514         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39515         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39516         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39517         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39518
39519 2007-05-01  Bruno Haible  <bruno@clisp.org>
39520
39521         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39522         configure time.
39523         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39524         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39525         * modules/sys_stat (Makefile.am): Substitute their values into
39526         sys/stat.h.
39527
39528 2007-05-01  Bruno Haible  <bruno@clisp.org>
39529
39530         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39531         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39532         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39533
39534 2007-05-01  Bruno Haible  <bruno@clisp.org>
39535
39536         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39537         'assert' module here.
39538
39539 2007-05-01  Bruno Haible  <bruno@clisp.org>
39540
39541         * doc/functions/*.texi: New files.
39542         * doc/functions/google-ranking.txt: New file.
39543         * doc/gnulib.texi (Function Substitutes): New chapter.
39544         (ctime, inet_ntoa): Remove sections.
39545         * doc/ctime.texi: Remove file.
39546         * doc/inet_ntoa.texi: Remove file.
39547         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39548         dependencies.
39549         (%.info): New rule, specifying a --reference-limit.
39550
39551 2007-05-01  Bruno Haible  <bruno@clisp.org>
39552
39553         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39554
39555 2007-05-01  Bruno Haible  <bruno@clisp.org>
39556
39557         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39558         the portability of 'mkdir' to mingw systems.
39559
39560 2007-05-01  Bruno Haible  <bruno@clisp.org>
39561
39562         * doc/headers/google-ranking.txt: New file.
39563
39564 2007-04-30  Eric Blake  <ebb9@byu.net>
39565
39566         Prefer fseeko to fseek.
39567         * modules/getpass (Depends-on): Add fseeko.
39568         * lib/getpass.c (getpass): Use fseeko, not fseek.
39569
39570 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39571
39572         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39573         assumes the sorting is stable, while most qsort implementations
39574         are not.  Use argument addresses to ensure they never compare as
39575         equal.
39576
39577         * tests/test-argp-2.sh (usage-indent test): Fix output
39578         (func_compare): Restore diff options
39579         * tests/test-argp.c: Restore #include "progname.h"
39580
39581 2007-04-29  Bruno Haible  <bruno@clisp.org>
39582
39583         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39585         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39587         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39588         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39589         (TESTS, check_PROGRAMS): Add test-snprintf.
39590         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39591         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39592         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39593         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39594         assertions that fail on HP-UX, OSF/1, or IRIX.
39595         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39596
39597 2007-04-29  Bruno Haible  <bruno@clisp.org>
39598
39599         * MODULES.html.sh (posix_functions): Remove 'contents'.
39600
39601 2007-04-29  Karl Berry  <karl@gnu.org>
39602
39603         * config/srclist.txt (gendocs_template_min): new entry.
39604
39605 2007-04-29  Bruno Haible  <bruno@clisp.org>
39606
39607         Work around fpurge bug on BSD systems.
39608         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39609         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39610         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39611         fpurge to rpl_fpurge if the system already has this function.
39612         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39613         the case where the system already has this function. Correct invariants
39614         on BSD systems.
39615         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39616         BSD systems.
39617
39618 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39619
39620         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39621         proposed by Sven Verdoolaege.
39622
39623         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39624         options.
39625         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
39626         (usage and help tests): Update
39627
39628 2007-04-29  Bruno Haible  <bruno@clisp.org>
39629
39630         * tests/test-fflush.c (main): Use a file of size 17, not 10.
39631         Print more information in case of failure. Disable a test on BeOS.
39632
39633 2007-04-29  Bruno Haible  <bruno@clisp.org>
39634
39635         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
39636         This helps debugging on systems on which no gdb is available.
39637
39638 2007-04-29  Bruno Haible  <bruno@clisp.org>
39639
39640         * lib/freading.h: Improve comments.
39641         * lib/fwriting.h: Likewise.
39642         * tests/test-freading.c (main): Don't check freading immediately after
39643         repositioning. Needed for glibc.
39644
39645 2007-04-29  Bruno Haible  <bruno@clisp.org>
39646
39647         * lib/freading.c (freading): Trivial simplification.
39648
39649 2007-04-28  Bruno Haible  <bruno@clisp.org>
39650
39651         * tests/test-fwriting.c (main): Also test the interaction between
39652         fflush and fwriting.
39653         * modules/fwriting-tests (Depends-on): Add fflush.
39654
39655         * tests/test-freading.c (main): Also test the interaction between
39656         fflush and freading.
39657         * modules/freading-tests (Depends-on): Add fflush.
39658
39659 2007-04-28  Bruno Haible  <bruno@clisp.org>
39660
39661         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
39662         fseeko and ftello.
39663         Suggested by Eric Blake.
39664
39665 2007-04-28  Jim Meyering  <jim@meyering.net>
39666
39667         Avoid false-negative in gl_STDINT_H's C99 conformance test.
39668         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
39669         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
39670
39671 2007-04-27  Eric Blake  <ebb9@byu.net>
39672
39673         * doc/headers/assert.texi (assert.h): Document assert module use.
39674
39675 2007-04-27  Bruno Haible  <bruno@clisp.org>
39676
39677         * doc/headers/*.texi: New files.
39678         * doc/gnulib.texi (Header File Substitutes): New chapter.
39679         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
39680         dependencies.
39681         (standards.info ,standards.html, standards.dvi): Update dependencies.
39682         (mostlyclean, clean): New targets.
39683
39684 2007-04-27  Bruno Haible  <bruno@clisp.org>
39685
39686         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
39687         * modules/sysexits (Files, Makefile.am): Update.
39688
39689         * lib/sys_socket_.h: Renamed from lib/socket_.h.
39690         * modules/sys_socket (Files, Makefile.am): Update.
39691
39692         * lib/sys_stat_.h: Renamed from lib/stat_.h.
39693         * modules/sys_stat (Files, Makefile.am): Update.
39694
39695 2007-04-27  Eric Blake  <ebb9@byu.net>
39696
39697         * lib/freading.h: Improve comments.
39698         * lib/fwriting.h: Likewise.
39699         * lib/fflush.c: Likewise.
39700
39701         Fix closein for mingw.
39702         * modules/closein-tests: Add tests for closein.
39703         * tests/test-closein.c: New file.
39704         * tests/test-closein.sh: Likewise.
39705         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
39706         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
39707
39708 2007-04-27  Bruno Haible  <bruno@clisp.org>
39709
39710         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
39711         version is < 6.
39712         * lib/math_.h [__DECC]: Likewise.
39713         * lib/stdio_.h [__DECC]: Likewise.
39714         * lib/stdlib_.h [__DECC]: Likewise.
39715         * lib/string_.h [__DECC]: Likewise.
39716         * lib/time_.h [__DECC]: Likewise.
39717         * lib/wchar_.h [__DECC]: Likewise.
39718         * lib/wctype_.h [__DECC]: Likewise.
39719
39720 2007-04-27  Bruno Haible  <bruno@clisp.org>
39721
39722         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
39723
39724 2007-04-27  Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/fflush.c: Add comments.
39727         * modules/fpurge-tests (Depends-on): Add fflush.
39728         * modules/freadable-tests (Depends-on): Likewise.
39729         * modules/fwritable-tests (Depends-on): Likewise.
39730
39731 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
39732
39733         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
39734         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
39735         Report by Bruno Haible <bruno@clisp.org>.
39736
39737 2007-04-26  Eric Blake  <ebb9@byu.net>
39738
39739         Fix fflush on mingw.
39740         * modules/fflush (Depends-on): Add freading.
39741         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
39742         but unread data.
39743
39744 2007-04-26  Eric Blake  <ebb9@byu.net>
39745         and Bruno Haible  <bruno@clisp.org>
39746
39747         Implement freading and fwriting.
39748         * lib/freading.c: New file.
39749         * lib/freading.h: Likewise.
39750         * m4/freading.m4: Likewise.
39751         * modules/freading: Likewise.
39752         * modules/freading-tests: Likewise.
39753         * tests/test-freading.c: Likewise.
39754         * lib/fwriting.c: New file.
39755         * lib/fwriting.h: Likewise.
39756         * m4/fwriting.m4: Likewise.
39757         * modules/fwriting: Likewise.
39758         * modules/fwriting-tests: Likewise.
39759         * tests/test-fwriting.c: Likewise.
39760         * MODULES.html.sh (File stream based Input/Output): Mention them.
39761
39762 2007-04-26  Bruno Haible  <bruno@clisp.org>
39763
39764         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
39765         'long' when we assume it.
39766         Suggested by Eric Blake.
39767
39768 2007-04-26  Bruno Haible  <bruno@clisp.org>
39769
39770         Ensure fseeko, ftello are declared on glibc systems.
39771         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
39772         * modules/fseeko (configure.ac-early): Likewise.
39773         * modules/ftello (configure.ac-early): Likewise.
39774         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
39775         AC_FUNC_FSEEKO for this.
39776         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
39777         (gl_CHECK_FSEEKO): Remove macro.
39778
39779 2007-04-26  Bruno Haible  <bruno@clisp.org>
39780
39781         * tests/test-fflush.c (main): Also check the ftell result after
39782         fflush and fseek/fseeko.
39783         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
39784         file descriptor position cache in the stream.
39785         * lib/fseeko.c (rpl_fseeko): Likewise.
39786
39787 2007-04-26  Bruno Haible  <bruno@clisp.org>
39788
39789         * modules/fflush-tests (Depends-on): Add fseeko.
39790
39791 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
39792             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39793
39794         * lib/argz_.h: ensure error_t definition is obtained in same
39795         mechanism system argz.h would have.
39796         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
39797         argz facilities are known bad.  Err on the side of caution if
39798         cross-compiling.
39799
39800 2007-04-25  Eric Blake  <ebb9@byu.net>
39801
39802         * lib/fpurge.c (includes): Use stdlib.h for free.
39803         * tests/test-fflush.c (main): Also test fflush-fseeko.
39804
39805 2007-04-25  Bruno Haible  <bruno@clisp.org>
39806
39807         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
39808         * lib/fseeko.c: New file.
39809         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
39810         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
39811         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
39812         gl_FUNC_FSEEKO.
39813         (gl_FUNC_FSEEKO): Invoke it.
39814         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
39815         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
39816         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
39817
39818 2007-04-25  Bruno Haible  <bruno@clisp.org>
39819
39820         * modules/fflush (Depends-on): Add ftello.
39821
39822 2007-04-25  Bruno Haible  <bruno@clisp.org>
39823
39824         * modules/ftello-tests: New file.
39825         * tests/test-ftello.c: New file.
39826
39827         * modules/ftello: New file.
39828         * m4/ftello.m4: New file.
39829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
39830         HAVE_FTELLO.
39831         * lib/stdio_.h (ftello): New declaration.
39832         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
39833         HAVE_FTELLO.
39834
39835 2007-04-25  Bruno Haible  <bruno@clisp.org>
39836
39837         * modules/fseeko-tests: New file.
39838         * tests/test-fseeko.c: New file.
39839
39840         * modules/fseeko: New file.
39841         * m4/fseeko.m4: New file.
39842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
39843         HAVE_FSEEKO.
39844         * lib/stdio_.h (fseeko): New declaration.
39845         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
39846         HAVE_FSEEKO.
39847
39848 2007-04-25  Bruno Haible  <bruno@clisp.org>
39849
39850         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
39851
39852 2007-04-25  Bruno Haible  <bruno@clisp.org>
39853
39854         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
39855         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
39856         * tests/test-unistd.c: Likewise.
39857         * tests/test-fcntl.c: Likewise.
39858
39859 2007-04-23  Eric Blake  <ebb9@byu.net>
39860
39861         * lib/fflush.c: Fix missing include.
39862         Reported by Bruno Haible.
39863
39864 2007-04-23  Bruno Haible  <bruno@clisp.org>
39865
39866         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
39867         Reported by Eric Blake.
39868
39869 2007-04-23  Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
39872
39873 2007-04-23  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
39876
39877 2007-04-23  Bruno Haible  <bruno@clisp.org>
39878
39879         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
39880         Needed on HP-UX 11.
39881
39882 2007-04-16  Eric Blake  <ebb9@byu.net>
39883
39884         Make fflush rely on fpurge.
39885         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
39886         open coding all variants.
39887         * modules/fflush (Depends-on): Add fpurge and unistd.
39888         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
39889         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
39890
39891         Fix --with-tests compilation on cygwin.
39892         * modules/argmatch-tests (Makefile.am): List gnulib library first
39893         in LDADD.
39894         * modules/argp-tests (Makefile.am): Likewise.
39895         * modules/array-list-tests (Makefile.am): Likewise.
39896         * modules/array-oset-tests (Makefile.am): Likewise.
39897         * modules/avltree-list-tests (Makefile.am): Likewise.
39898         * modules/avltree-oset-tests (Makefile.am): Likewise.
39899         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39900         * modules/carray-list-tests (Makefile.am): Likewise.
39901         * modules/dirname-tests (Makefile.am): Likewise.
39902         * modules/frexp-tests (Makefile.am): Likewise.
39903         * modules/isnanl-tests (Makefile.am): Likewise.
39904         * modules/linked-list-tests (Makefile.am): Likewise.
39905         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39906         * modules/lock-tests (Makefile.am): Likewise.
39907         * modules/rbtree-list-tests (Makefile.am): Likewise.
39908         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39909         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39910         * modules/tls-tests (Makefile.am): Likewise.
39911         * modules/tsearch-tests (Makefile.am): Likewise.
39912         * modules/xvasprintf-tests (Makefile.am): Likewise.
39913
39914         Fix fpurge for cygwin.
39915         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
39916         value.
39917         * modules/fpurge-tests (Depends-on): Clean up trash.
39918
39919 2007-04-16  Simon Josefsson  <simon@josefsson.org>
39920
39921         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
39922
39923         * m4/autobuild.m4: Re-indent.
39924
39925 2007-04-13  Bruno Haible  <bruno@clisp.org>
39926
39927         * modules/fpurge-tests: New file.
39928         * tests/test-fpurge.c: New file.
39929
39930         * modules/fpurge: New file.
39931         * lib/fpurge.h: New file.
39932         * lib/fpurge.c: New file.
39933         * m4/fpurge.m4: New file.
39934
39935 2007-04-13  Bruno Haible  <bruno@clisp.org>
39936
39937         * modules/fbufmode-tests: New file.
39938         * tests/test-fbufmode.c: New file.
39939
39940         * modules/fbufmode: New file.
39941         * lib/fbufmode.h: New file.
39942         * lib/fbufmode.c: New file.
39943         * m4/fbufmode.m4: New file.
39944
39945 2007-04-13  Bruno Haible  <bruno@clisp.org>
39946
39947         * modules/fwritable-tests: New file.
39948         * tests/test-fwritable.c: New file.
39949
39950         * modules/fwritable: New file.
39951         * lib/fwritable.h: New file.
39952         * lib/fwritable.c: New file.
39953         * m4/fwritable.m4: New file.
39954
39955 2007-04-13  Bruno Haible  <bruno@clisp.org>
39956
39957         * modules/freadable-tests: New file.
39958         * tests/test-freadable.c: New file.
39959
39960         * modules/freadable: New file.
39961         * lib/freadable.h: New file.
39962         * lib/freadable.c: New file.
39963         * m4/freadable.m4: New file.
39964
39965 2007-04-13  Bruno Haible  <bruno@clisp.org>
39966
39967         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
39968         MOSTLYCLEANFILES.
39969
39970 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
39971
39972         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
39973         gzip bootstrap.conf to avoid dragging in i18n machinery.
39974         (gnulib_tool_option): Use it.
39975
39976 2007-04-13  Bruno Haible  <bruno@clisp.org>
39977
39978         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
39979         %F directives.
39980         * tests/test-vasprintf-posix.c (test_function): Likewise.
39981         * tests/test-snprintf-posix.h (test_function): Likewise.
39982         * tests/test-sprintf-posix.h (test_function): Likewise.
39983         * tests/test-fprintf-posix.h (test_function): Likewise.
39984         * tests/test-printf-posix.h (test_function): Likewise.
39985         * tests/test-fprintf-posix.out: Likewise.
39986
39987 2007-04-13  Bruno Haible  <bruno@clisp.org>
39988
39989         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
39990         * modules/tls-tests (configure.ac): Likewise.
39991         Reported by Arto C. Nirkko <anirkko@insel.ch>.
39992
39993 2007-04-13  Bruno Haible  <bruno@clisp.org>
39994
39995         * lib/tls.c (glthread_tls_get): Fix return type.
39996         Patch by Arto C. Nirkko <anirkko@insel.ch>.
39997
39998 2007-04-12  Eric Blake  <ebb9@byu.net>
39999
40000         * modules/gettime (Depends-on): Remove gettime.
40001         Reported by Dmitry V. Levin.
40002
40003 2007-04-12  Bruno Haible  <bruno@clisp.org>
40004
40005         * modules/fflush (Include): Mention <stdio.h>.
40006         * modules/strtoimax (Include): Mention <inttypes.h>.
40007         * modules/strtoumax (Include): Likewise.
40008
40009 2007-04-12  Eric Blake  <ebb9@byu.net>
40010
40011         * .cvsignore: New file.
40012         * .gitignore: Likewise.
40013
40014 2007-04-12  Bruno Haible  <bruno@clisp.org>
40015
40016         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40017         not before, since $(LDADD) often contains libgnu.a.
40018         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40019         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40020         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40021         Needed on Cygwin.
40022
40023 2007-04-12  Eric Blake  <ebb9@byu.net>
40024
40025         Work around glibc's failure to flush stdin on fclose.
40026         * lib/closein.c (close_stdin): Flush stdin before closing.
40027
40028         Work around glibc's failure to reset seekable stdin on exit.
40029         * modules/closein: New module.
40030         * lib/closein.c: New file.
40031         * lib/closein.h: Likewise.
40032         * m4/closein.m4: Likewise.
40033         * MODULES.html.sh (File stream based Input/Output): Document it.
40034
40035 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40036
40037         * gnulib-tool: Rename generated 'autobuild' script to
40038         'do-autobuild' in --create-megatestdir output.
40039
40040         * doc/gnulib.texi (Build robot for gnulib): Fix.
40041
40042 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40043
40044         * modules/sysexits (Depends-on): Add absolute-header.
40045
40046 2007-04-12  Eric Blake  <ebb9@byu.net>
40047
40048         No need to preserve errno on success.
40049         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40050         Reported by Bruno Haible.
40051
40052 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40053
40054         * MODULES.html.sh (Support for maintaining and releasing
40055         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40056
40057 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40058
40059         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40060
40061 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40062
40063         * modules/autobuild: New module.
40064
40065         * m4/autobuild.m4: New file.
40066
40067 2007-04-11  Bruno Haible  <bruno@clisp.org>
40068
40069         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40070         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40071         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40073         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40074         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40075         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40076         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40077         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40078         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40079         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40080         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40081         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40082         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40083         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40084         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40085         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40086         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40087         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40088         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40089         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40090         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40092         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40093         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40095         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40096         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40097         Reported by Eric Blake.
40098
40099 2007-04-11  Bruno Haible  <bruno@clisp.org>
40100
40101         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40102
40103 2007-04-10  Bruno Haible  <bruno@clisp.org>
40104
40105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40106         for NaN and Infinity. Needed on FreeBSD 6.1.
40107         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40108         regarding results for "%010a" of Infinity and NaN.
40109         * tests/test-vasprintf-posix.c (test_function): Likewise.
40110         * tests/test-snprintf-posix.h (test_function): Likewise.
40111         * tests/test-sprintf-posix.h (test_function): Likewise.
40112         * tests/test-fprintf-posix.h (test_function): Likewise.
40113         * tests/test-printf-posix.h (test_function): Likewise.
40114         * tests/test-fprintf-posix.out: Likewise.
40115
40116 2007-04-10  Bruno Haible  <bruno@clisp.org>
40117
40118         * modules/locale-tests: New file.
40119         * tests/test-locale.c: New file.
40120
40121         * modules/locale: New file.
40122         * lib/locale_.h: New file.
40123         * m4/locale_h.m4: New file.
40124
40125 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40126             Bruno Haible  <bruno@clisp.org>
40127
40128         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40129         be determined, test for availability of the copysignf, copysign,
40130         copysignl functions.
40131         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40132         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40133         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40134
40135 2007-04-09  Eric Blake  <ebb9@byu.net>
40136
40137         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40138         * modules/stdio (Makefile.am): Support fflush.
40139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40140         * modules/fflush: New file.
40141         * lib/fflush.c: Likewise.
40142         * m4/fflush.m4: Likewise.
40143         * modules/fflush-tests: New test.
40144         * tests/test-fflush.c: Likewise.
40145         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40146
40147 2007-04-06  Bruno Haible  <bruno@clisp.org>
40148
40149         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40150         (VASNPRINTF): Use signbit for faster determination whether to print a
40151         minus sign.
40152         * modules/vasnprintf (Files): Remove lib/float+.h.
40153         * modules/fprintf-posix (Depends-on): Add signbit.
40154         * modules/snprintf-posix (Depends-on): Likewise.
40155         * modules/sprintf-posix (Depends-on): Likewise.
40156         * modules/vasnprintf-posix (Depends-on): Likewise.
40157         * modules/vasprintf-posix (Depends-on): Likewise.
40158         * modules/vfprintf-posix (Depends-on): Likewise.
40159         * modules/vsnprintf-posix (Depends-on): Likewise.
40160         * modules/vsprintf-posix (Depends-on): Likewise.
40161
40162 2007-04-06  Bruno Haible  <bruno@clisp.org>
40163
40164         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40165         * tests/test-frexpl.c (main): Likewise.
40166         * tests/test-ldexpl.c (main): Likewise.
40167         * modules/frexp-tests (Depends-on): Add signbit.
40168         * modules/frexpl-tests (Depdends-on): Likewise.
40169         * modules/ldexpl-tests (Depdends-on): Likewise.
40170
40171 2007-04-06  Bruno Haible  <bruno@clisp.org>
40172
40173         * modules/signbit-tests: New file.
40174         * tests/test-signbit.c: New file.
40175
40176         * modules/signbit: New file.
40177         * lib/signbitf.c: New file.
40178         * lib/signbitd.c: New file.
40179         * lib/signbitl.c: New file.
40180         * m4/signbit.m4: New file.
40181         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40182         (signbit): New macro.
40183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40184         REPLACE_SIGNBIT.
40185         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40186         REPLACE_FREXPL into math.h.
40187
40188 2007-04-06  Bruno Haible  <bruno@clisp.org>
40189
40190         * modules/isnanf-nolibm-tests: New file.
40191         * tests/test-isnanf.c: New file.
40192
40193         * modules/isnanf-nolibm: New file.
40194         * lib/isnanf.h: New file.
40195         * lib/isnanf.c: New file.
40196         * lib/isnan.c: Consider the USE_FLOAT macro.
40197         * m4/isnanf.m4: New file.
40198
40199 2007-04-06  Bruno Haible  <bruno@clisp.org>
40200
40201         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40202         (Link): New section.
40203
40204         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40205
40206 2007-04-06  Bruno Haible  <bruno@clisp.org>
40207
40208         Assume the 'long double' type.
40209         * m4/longdouble.m4: Remove file.
40210         * config/srclist.txt: Don't mention longdouble.m4.
40211         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40212         * lib/float+.h: Likewise.
40213         * lib/frexp.c: Likewise.
40214         * lib/printf-args.h: Likewise.
40215         * lib/printf-args.c: Likewise.
40216         * lib/printf-frexp.c: Likewise.
40217         * lib/printf-parse.c: Likewise.
40218         * lib/vasnprintf.c: Likewise.
40219         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40220         * m4/intl.m4: Likewise.
40221         * m4/isnanl.m4: Likewise.
40222         * m4/printf.m4: Likewise.
40223         * m4/printf-frexpl.m4: Likewise.
40224         * m4/vasnprintf.m4: Likewise.
40225         * modules/allocsa (Files): Remove m4/longdouble.m4.
40226         * modules/gettext (Files): Likewise.
40227         * modules/relocatable-prog-wrapper (Files): Likewise.
40228         * modules/vasnprintf (Files): Likewise.
40229         * modules/isnanl (Files): Likewise.
40230         (Include): Simplify.
40231         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40232         (Include): Simplify.
40233         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40234         (Include): Simplify.
40235         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40236         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40237         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40238         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40239         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40240         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40241         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40242         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40243         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40244         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40245         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40246         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40247         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40248         * tests/test-isnanl.c: Likewise.
40249         * tests/test-snprintf-posix.h: Likewise.
40250         * tests/test-sprintf-posix.h: Likewise.
40251         * tests/test-vasnprintf-posix.c: Likewise.
40252         * tests/test-vasnprintf-posix2.c: Likewise.
40253         * tests/test-vasprintf-posix.c: Likewise.
40254
40255 2007-04-06  Bruno Haible  <bruno@clisp.org>
40256
40257         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40258         * lib/math_.h [__DECC]: Include the overridden include file through
40259         #include_next, outside the double-inclusion guard.
40260         * lib/stdio_.h [__DECC]: Likewise.
40261         * lib/stdlib_.h [__DECC]: Likewise.
40262         * lib/string_.h [__DECC]: Likewise.
40263         * lib/time_.h [__DECC]: Likewise.
40264         * lib/wchar_.h [__DECC]: Likewise.
40265         * lib/wctype_.h [__DECC]: Likewise.
40266         * lib/inttypes_.h [__DECC]: Likewise.
40267         Reported by Albert Chin <china@thewrittenword.com> in
40268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40269
40270 2007-04-04  Eric Blake  <ebb9@byu.net>
40271
40272         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40273         1.5.x.
40274
40275 2007-04-04  Bruno Haible  <bruno@clisp.org>
40276
40277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40278         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40279
40280 2007-04-04  Bruno Haible  <bruno@clisp.org>
40281
40282         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40283         results for "%010a" of Infinity and NaN.
40284         * tests/test-vasprintf-posix.c (test_function): Likewise.
40285         * tests/test-snprintf-posix.h (test_function): Likewise.
40286         * tests/test-sprintf-posix.h (test_function): Likewise.
40287         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40288         * tests/test-printf-posix.h (test_function): Likewise.
40289         * tests/test-fprintf-posix.out: Update.
40290         Needed for FreeBSD 6.1.
40291
40292 2007-04-04  Bruno Haible  <bruno@clisp.org>
40293
40294         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40295         directly used by the gnulib modules nor by gnulib-tool.
40296
40297 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40298
40299         * DEPENDENCIES: Give overall description of version dependency
40300         desirability.  Use more-typical names for apps.
40301         Add shell, coreutils, diffutils, grep, tar, gzip.
40302
40303 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40304
40305         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40306
40307 2007-04-04  Karl Berry  <karl@gnu.org>
40308
40309         * MODULES.html.sh (func_module): missing '.
40310
40311 2007-04-03  Bruno Haible  <bruno@clisp.org>
40312
40313         * modules/argmatch-tests (Makefile.am): New variable
40314         test_argmatch_LDADD.
40315         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40316         * modules/array-list-tests (Makefile.am): New variable
40317         test_array_list_LDADD.
40318         * modules/array-oset-tests (Makefile.am): New variable
40319         test_array_oset_LDADD.
40320         * modules/avltree-list-tests (Makefile.am): New variable
40321         test_avltree_list_LDADD.
40322         * modules/avltree-oset-tests (Makefile.am): New variable
40323         test_avltree_oset_LDADD.
40324         * modules/avltreehash-list-tests (Makefile.am): New variable
40325         test_avltreehash_list_LDADD.
40326         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40327         test_canonicalize_lgpl_LDADD.
40328         * modules/carray-list-tests (Makefile.am): New variable
40329         test_carray_list_LDADD.
40330         * modules/dirname-tests (Makefile.am): New variable
40331         test_dirname_LDADD.
40332         * modules/linked-list-tests (Makefile.am): New variable
40333         test_linked_list_LDADD.
40334         * modules/linkedhash-list-tests (Makefile.am): New variable
40335         test_linkedhash_list_LDADD.
40336         * modules/rbtree-list-tests (Makefile.am): New variable
40337         test_rbtree_list_LDADD.
40338         * modules/rbtree-oset-tests (Makefile.am): New variable
40339         test_rbtree_oset_LDADD.
40340         * modules/rbtreehash-list-tests (Makefile.am): New variable
40341         test_rbtreehash_list_LDADD.
40342         * modules/xvasprintf-tests (Makefile.am): New variable
40343         test_xvasprintf_LDADD.
40344         Reported by Eric Blake.
40345
40346 2007-04-03  Eric Blake  <ebb9@byu.net>
40347
40348         * DEPENDENCIES: Weaken m4 requirements.
40349
40350 2007-04-03  Bruno Haible  <bruno@clisp.org>
40351
40352         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40353         * modules/isnanl-tests (configure.ac): Likewise.
40354
40355 2007-04-03  Ben Pfaff  <blp@gnu.org>
40356
40357         * modules/iconv_open: Add $(srcdir)/ to source directory
40358         references in Makefile fragments that call gperf, to fix VPATH
40359         builds.
40360
40361 2007-04-03  Bruno Haible  <bruno@clisp.org>
40362
40363         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40364         * lib/ldexpl.c: Undo last change.
40365
40366 2007-04-03  Bruno Haible  <bruno@clisp.org>
40367
40368         * modules/printf-frexpl (Depends-on): Undo last change.
40369         (Files): Add m4/ldexpl.m4.
40370
40371 2007-04-03  Bruno Haible  <bruno@clisp.org>
40372
40373         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40374         * modules/isnanl (Link): New section.
40375
40376         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40377         * modules/frexp (Link): New section.
40378
40379         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40380         * modules/frexpl (Link): New section.
40381
40382         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40383         * modules/ldexpl (Link): New section.
40384
40385 2007-04-03  Bruno Haible  <bruno@clisp.org>
40386
40387         * modules/TEMPLATE-EXTENDED: New file.
40388         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40389
40390 2007-04-03  Bruno Haible  <bruno@clisp.org>
40391
40392         * DEPENDENCIES: New file.
40393         Suggested by Simon Josefsson.
40394
40395 2007-04-03  Bruno Haible  <bruno@clisp.org>
40396
40397         * doc/gnulib.texi: Escape @.
40398
40399 2007-04-03  James Youngman  <jay@gnu.org>
40400         and Paul Eggert  <eggert@cs.ucla.edu>
40401
40402         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40403         birthtime on all systems that have birthtime, not just those which
40404         use st_birthtimensec rather than st_birthtim.  Putting zero in
40405         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40406         that the birth time is not available for files on an NFS mount.
40407
40408 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40409
40410         * modules/memxor: Move back from crypto/, suggested by Bruno.
40411         * modules/crypto/hmac-sha1: Fix memxor dependency.
40412
40413         * modules/crypto/gc: Moved from ../.
40414
40415 2007-04-02  Eric Blake  <ebb9@byu.net>
40416
40417         * lib/ldexpl.c (includes): Avoid libm.
40418
40419         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40420
40421 2007-04-02  Bruno Haible  <bruno@clisp.org>
40422
40423         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40424         on IRIX.
40425
40426 2007-04-02  Bruno Haible  <bruno@clisp.org>
40427
40428         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40429         x86 or x86_64 platforms running MacOS X.
40430         Reported by Ryan Schmidt <@ryandesign.com>.
40431
40432 2007-04-02  Bruno Haible  <bruno@clisp.org>
40433
40434         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40435         i386.
40436
40437 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40438
40439         * modules/crypto/arcfour: Moved from ../.
40440         * modules/crypto/arcfour-tests: Moved from ../.
40441         * modules/crypto/arctwo: Moved from ../.
40442         * modules/crypto/arctwo-tests: Moved from ../.
40443         * modules/crypto/des: Moved from ../.
40444         * modules/crypto/des-tests: Moved from ../.
40445         * modules/crypto/gc-arcfour: Moved from ../.
40446         * modules/crypto/gc-arcfour-tests: Moved from ../.
40447         * modules/crypto/gc-arctwo: Moved from ../.
40448         * modules/crypto/gc-arctwo-tests: Moved from ../.
40449         * modules/crypto/gc-des: Moved from ../.
40450         * modules/crypto/gc-des-tests: Moved from ../.
40451         * modules/crypto/gc-hmac-md5: Moved from ../.
40452         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40453         * modules/crypto/gc-hmac-sha1: Moved from ../.
40454         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40455         * modules/crypto/gc-md2: Moved from ../.
40456         * modules/crypto/gc-md2-tests: Moved from ../.
40457         * modules/crypto/gc-md4: Moved from ../.
40458         * modules/crypto/gc-md4-tests: Moved from ../.
40459         * modules/crypto/gc-md5: Moved from ../.
40460         * modules/crypto/gc-md5-tests: Moved from ../.
40461         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40462         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40463         * modules/crypto/gc-random: Moved from ../.
40464         * modules/crypto/gc-rijndael: Moved from ../.
40465         * modules/crypto/gc-rijndael-tests: Moved from ../.
40466         * modules/crypto/gc-sha1: Moved from ../.
40467         * modules/crypto/gc-sha1-tests: Moved from ../.
40468         * modules/crypto/gc-tests: Moved from ../.
40469         * modules/crypto/hmac-md5: Moved from ../.
40470         * modules/crypto/hmac-md5-tests: Moved from ../.
40471         * modules/crypto/hmac-sha1: Moved from ../.
40472         * modules/crypto/hmac-sha1-tests: Moved from ../.
40473         * modules/crypto/md2: Moved from ../.
40474         * modules/crypto/md2-tests: Moved from ../.
40475         * modules/crypto/md4: Moved from ../.
40476         * modules/crypto/md4-tests: Moved from ../.
40477         * modules/crypto/md5: Moved from ../.
40478         * modules/crypto/md5-tests: Moved from ../.
40479         * modules/crypto/memxor: Moved from ../.
40480         * modules/crypto/rijndael: Moved from ../.
40481         * modules/crypto/rijndael-tests: Moved from ../.
40482         * modules/crypto/sha1: Moved from ../.
40483
40484 2007-03-30  James Youngman  <jay@gnu.org>
40485
40486         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40487         rename() to change the ctime of a file (because ctime is unaffected
40488         by rename on jfs2 on AIX 5.1).
40489         (main): Start by doing cleanup, in case a previous run failed leaving
40490         test files behind.
40491
40492 2007-03-31  Bruno Haible  <bruno@clisp.org>
40493
40494         Support old proprietary implementations of iconv.
40495         * modules/iconv_open: New file.
40496         * lib/iconv_.h: New file.
40497         * m4/iconv_h.m4: New file.
40498         * lib/iconv_open.c: New file.
40499         * lib/iconv_open-aix.gperf: New file.
40500         * lib/iconv_open-hpux.gperf: New file.
40501         * lib/iconv_open-irix.gperf: New file.
40502         * lib/iconv_open-osf.gperf: New file.
40503         * m4/iconv_open.m4: New file.
40504         * modules/linebreak (Depends-on): Add iconv_open.
40505         * modules/striconv (Depends-on): Likewise.
40506         * modules/striconveh (Depends-on): Likewise.
40507         * modules/unicodeio (Depends-on): Likewise.
40508         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40509         (iconv_t)(-1).
40510         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40511         conversion if cd is (iconv_t)(-1).
40512         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40513         is not possible.
40514
40515 2007-03-31  Bruno Haible  <bruno@clisp.org>
40516
40517         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40518         work on Solaris either. Protect also second use of "autodetect_jp".
40519
40520 2007-03-31  Bruno Haible  <bruno@clisp.org>
40521
40522         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40523         the function is not present.
40524
40525 2007-03-31  Bruno Haible  <bruno@clisp.org>
40526
40527         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40528         the function is not present.
40529
40530 2007-03-31  Bruno Haible  <bruno@clisp.org>
40531
40532         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40533         a bug in HP-UX iconv_open().
40534
40535 2007-03-31  Bruno Haible  <bruno@clisp.org>
40536
40537         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40538         (Mathematics <math.h>): New section, add fpieee.
40539         (Input/output <stdio.h>): Add fseterr.
40540         (Mathematics <math.h>): New section, add printf-frexp.
40541         (Container data structures): Add sublist.
40542         (Core language properties): Add fpucw, inline.
40543         (Functions for greatest-width integer types <inttypes.h>): Add
40544         imaxabs, imaxdiv, inttypes.
40545         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40546         isnanl-nolibm, ldexp.
40547         (Mathematics <math.h>): New section, add printf-frexpl.
40548         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40549         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40550         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40551         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40552         (Unicode string functions): Add unistr/u*-mbtoucr.
40553         (Java): Add javacomp-script, javaexec-script.
40554         (C#): Add csharpcomp-script, csharpexec-script.
40555         (Support for building libraries and executables): Add havelib,
40556         relocatable-*.
40557         (Support for maintaining and releasing projects): Renamed from
40558         'Support for maintaining and release projects'. Add announce-gen.
40559
40560 2007-03-31  Bruno Haible  <bruno@clisp.org>
40561
40562         * README: Talk primarily about git.
40563         (git and CVS): Renamed from CVS.
40564         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40565         gnulib is available through git.
40566         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40567
40568 2007-03-30  Bruno Haible  <bruno@clisp.org>
40569
40570         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40571         * lib/poll_.h: Likewise.
40572         * lib/stat_.h: Likewise.
40573         * lib/sys_time_.h: Likewise.
40574         * lib/sysexit_.h: Likewise.
40575         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40576         * lib/stdbool_.h: Likewise.
40577         * lib/byteswap_.h: Add double-inclusion guard.
40578
40579 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40580
40581         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40582
40583 2007-03-30  Karl Berry  <karl@gnu.org>
40584
40585         * config/srclist-update: double space after USA in the license
40586         substitution, since that's how it's usually (?) written.
40587
40588 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40589
40590         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40591         reported by Bruno Haible.
40592
40593 2007-03-29  Bruno Haible  <bruno@clisp.org>
40594
40595         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40596         a bug in AIX iconv().
40597
40598 2007-03-29  Bruno Haible  <bruno@clisp.org>
40599
40600         * modules/ldexpl-tests: New file.
40601         * tests/test-ldexpl.c: New file.
40602
40603 2007-03-29  Bruno Haible  <bruno@clisp.org>
40604
40605         * lib/ldexpl.c: Include fpucw.h.
40606         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40607         multiplication.
40608         * modules/ldexpl (Depends-on): Add fpucw.
40609
40610 2007-03-29  Bruno Haible  <bruno@clisp.org>
40611
40612         * modules/ldexpl: New file.
40613         * m4/ldexpl.m4: New file.
40614         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40615         set.
40616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40617         REPLACE_LDEXPL.
40618         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40619         REPLACE_LDEXPL.
40620         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40621         gl_FUNC_LDEXPL_WORKS.
40622         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40623         * modules/mathl (Files): Remove lib/ldexpl.c.
40624         (Depends-on): Add ldexpl.
40625
40626 2007-03-29  Bruno Haible  <bruno@clisp.org>
40627
40628         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
40629
40630 2007-03-29  Bruno Haible  <bruno@clisp.org>
40631
40632         * tests/test-striconveh.c (main): Don't assume that a direct conversion
40633         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
40634         and possibly also HP-UX.
40635         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40636         work on AIX, IRIX, HP-UX, OSF/1.
40637         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40638         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40639         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40640         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40641         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
40642         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40643
40644 2007-03-29  Bruno Haible  <bruno@clisp.org>
40645
40646         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
40647
40648 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40649
40650         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
40651         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
40652
40653 2007-03-29  Eric Blake  <ebb9@byu.net>
40654
40655         * lib/acl-internal.h: Remove redundant include.
40656         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
40657         Cygwin when a file is locked.
40658
40659 2007-03-29  Bruno Haible  <bruno@clisp.org>
40660
40661         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
40662         file.
40663         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
40664
40665 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40666
40667         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
40668         try to remove a parent directory if the child couldn't be removed
40669         (except for the first rmdir, which could fail because the child
40670         doesn't exist).  Problem reported by Jeff Blaine in
40671         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
40672
40673 2007-03-28  Bruno Haible  <bruno@clisp.org>
40674
40675         * lib/striconveh.c (utf8conv_carefully): New function.
40676         (mem_cd_iconveh_internal): Invoke it.
40677
40678 2007-03-28  Bruno Haible  <bruno@clisp.org>
40679
40680         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
40681         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
40682         input.
40683         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
40684         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
40685         unistr/u8-uctomb.
40686
40687 2007-03-28  Bruno Haible  <bruno@clisp.org>
40688
40689         * modules/unistr/u8-mbtoucr: New file.
40690         * lib/unistr/u8-mbtoucr.c: New file.
40691         * modules/unistr/u16-mbtoucr: New file.
40692         * lib/unistr/u16-mbtoucr.c: New file.
40693         * modules/unistr/u16-mbtoucr: New file.
40694         * lib/unistr/u16-mbtoucr.c: New file.
40695         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
40696
40697 2007-03-27  Simon Josefsson  <simon@josefsson.org>
40698             Bruno Haible  <bruno@clisp.org>
40699
40700         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
40701         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
40702         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
40703
40704         * m4/stdio_h.m4: Add stubs for vasprintf too.
40705
40706         * modules/stdio: Support vasprintf in sed command.
40707
40708         * modules/vasprintf: Depend on stdio for prototypes.  Remove
40709         vasprintf.h.  Add stdio module indicator.
40710
40711         * lib/stdio_.h: Declare asprintf and vasprintf, based on
40712         vasprintf.h.
40713
40714         * lib/vasprintf.h: File removed.
40715
40716         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
40717         * lib/vasprintf.c: Ditto.
40718         * lib/xvasprintf.c: Ditto.
40719         * tests/test-vasprintf-posix.c: Ditto.
40720         * tests/test-vasprintf.c: Ditto.
40721
40722 2007-03-27  Bruno Haible  <bruno@clisp.org>
40723
40724         Make vasnprintf multithread-safe.
40725         * lib/vasnprintf.c (decimal_point_char): New function.
40726         (VASNPRINTF): Use it.
40727         Suggested by Simon Josefsson.
40728
40729 2007-03-27  Eric Blake  <ebb9@byu.net>
40730
40731         Support sub-second birthtime on cygwin.
40732         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
40733         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
40734         (get_stat_birthtime): Also work with st_birthtim.
40735
40736 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
40737
40738         * lib/stat-time.h (USE_BIRTHTIME): Remove.
40739         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
40740         (get_stat_birthtime_ns): Do not try to use "spare" fields.
40741         (get_stat_birthtime_ns): Simplify compile-time tests.
40742         (get_stat_birthtime): Change the API to look like
40743         get_stat_mtime etc., except return a negative tv_nsec on error.
40744         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
40745         Don't check for "spare" fields.
40746         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
40747         or for struct stat.st_birthtime, as these tests aren't used.
40748         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
40749
40750 2007-03-27  Bruno Haible  <bruno@clisp.org>
40751
40752         * lib/stat-time.h: Include <sys/stat.h>.
40753
40754 2007-03-27  James Youngman  <jay@gnu.org>
40755
40756         * lib/stat-time.h (get_stat_birthtime): New function for
40757           retrieving st_birthtime as provided by UFS2 (hence *BSD).
40758         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
40759           and its variants.
40760         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
40761         * modules/stat-time-test: New file.
40762         * tests/test-stat-time.c: New test, devised by Bruno Haible.
40763
40764 2007-03-26  Bruno Haible  <bruno@clisp.org>
40765
40766         Better support of signalling NaNs.
40767         * lib/atanl.c: Include isnanl.h.
40768         (atanl): Perform test for NaN at the beginning of the function and
40769         through a call to isnanl.
40770         * lib/cosl.c: Include isnanl.h.
40771         (cosl): Perform test for NaN at the beginning of the function and
40772         through a call to isnanl.
40773         * lib/ldexpl.c: Include isnanl.h.
40774         (ldexpl): Perform test for NaN through a call to isnanl.
40775         * lib/logl.c: Include isnanl.h.
40776         (logl): Perform test for NaN at the beginning of the function and
40777         through a call to isnanl.
40778         * lib/sinl.c: Include isnanl.h.
40779         (sinl): Perform test for NaN at the beginning of the function and
40780         through a call to isnanl.
40781         * lib/sqrtl.c: Include isnanl.h.
40782         (sqrtl): Perform test for NaN at the beginning of the function and
40783         through a call to isnanl.
40784         * lib/tanl.c: Include isnanl.h.
40785         (tanl): Perform test for NaN at the beginning of the function and
40786         through a call to isnanl.
40787         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
40788         * modules/mathl (Depends-on): Add isnanl.
40789
40790 2007-03-26  Eric Blake  <ebb9@byu.net>
40791
40792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
40793         regression in logic sense of previous patch.
40794
40795 2007-03-26  Bruno Haible  <bruno@clisp.org>
40796
40797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
40798         unportable shell command "if ! ...".
40799         Reported by Ralf Wildenhues.
40800
40801 2007-03-25  Bruno Haible  <bruno@clisp.org>
40802
40803         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
40804         <sysexits.h> file, and only add EX_CONFIG.
40805         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
40806         absolute file name and whether it is sufficient. Substitute also
40807         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
40808         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
40809         ABSOLUTE_SYSEXITS_H into sysexits.h.
40810
40811 2007-03-25  Bruno Haible  <bruno@clisp.org>
40812
40813         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
40814         hints is NULL.
40815
40816 2007-03-25  Bruno Haible  <bruno@clisp.org>
40817
40818         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
40819         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
40820
40821 2007-03-25  Bruno Haible  <bruno@clisp.org>
40822
40823         * lib/vasnprintf.c: Include langinfo.h.
40824         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
40825         multithread-safe.
40826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
40827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
40828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40829         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40830         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40831         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40832         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40833         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
40834         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40835         Reported by Simon Josefsson.
40836
40837 2007-03-25  Bruno Haible  <bruno@clisp.org>
40838
40839         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
40840         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
40841         * modules/vasnprintf (Depends-on): Add stdint.
40842
40843 2007-03-25  Bruno Haible  <bruno@clisp.org>
40844
40845         * modules/fpieee: New file.
40846         * m4/fpieee.m4: New file.
40847         * modules/isnan-nolibm (Depends-on): Add fpieee.
40848         * modules/isnanl-nolibm (Depends-on): Add fpieee.
40849         * modules/isnanl (Depends-on): Add fpieee.
40850
40851 2007-03-25  Bruno Haible  <bruno@clisp.org>
40852
40853         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
40854
40855 2007-03-25  Bruno Haible  <bruno@clisp.org>
40856
40857         Avoid test failures on IRIX 6.5.
40858         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
40859         (main): Use it.
40860         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
40861         macros.
40862         (main): Use them.
40863
40864 2007-03-25  Bruno Haible  <bruno@clisp.org>
40865
40866         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
40867         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
40868         exists but doesn't work.
40869         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
40870         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
40871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
40872         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
40873
40874 2007-03-25  Bruno Haible  <bruno@clisp.org>
40875
40876         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
40877         returns inf. Needed on IRIX 6.5.
40878
40879 2007-03-25  Bruno Haible  <bruno@clisp.org>
40880
40881         * tests/test-frexpl.c: Include isnanl-nolibm.h.
40882         (main): Use isnanl instead of x != x idiom.
40883         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
40884
40885         * tests/test-frexp.c: Include isnan.h.
40886         (main): Use isnan instead of x != x idiom.
40887         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
40888
40889 2007-03-25  Bruno Haible  <bruno@clisp.org>
40890
40891         * tests/test-frexp.c (NaN): New function/macro.
40892         (main): Use it instead of 0.0 / 0.0.
40893         * tests/test-isnan.c (NaN): New function/macro.
40894         (main): Use it instead of 0.0 / 0.0.
40895         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
40896         (test_function): Use it instead of 0.0 / 0.0.
40897         * tests/test-vasprintf-posix.c (NaN): New function/macro.
40898         (test_function): Use it instead of 0.0 / 0.0.
40899         * tests/test-snprintf-posix.h (NaN): New function/macro.
40900         (test_function): Use it instead of 0.0 / 0.0.
40901         * tests/test-sprintf-posix.h (NaN): New function/macro.
40902         (test_function): Use it instead of 0.0 / 0.0.
40903         * tests/test-fprintf-posix.h (NaN): New function/macro.
40904         (test_function): Use it instead of 0.0 / 0.0.
40905         * tests/test-printf-posix.h (NaN): New function/macro.
40906         (test_function): Use it instead of 0.0 / 0.0.
40907
40908         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
40909
40910 2007-03-25  Bruno Haible  <bruno@clisp.org>
40911
40912         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
40913
40914 2007-03-25  Bruno Haible  <bruno@clisp.org>
40915
40916         * lib/regexec.c (merge_state_with_log): Make static.
40917
40918 2007-03-25  Bruno Haible  <bruno@clisp.org>
40919
40920         * lib/trigl.c (kernel_rem_pio2): Make static.
40921
40922 2007-03-25  Bruno Haible  <bruno@clisp.org>
40923
40924         * lib/sincosl.c (sincosl_table): Make static.
40925
40926 2007-03-25  Bruno Haible  <bruno@clisp.org>
40927
40928         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
40929         if the compiler does not support C99.
40930
40931 2007-03-25  Bruno Haible  <bruno@clisp.org>
40932
40933         * modules/time (Makefile.am): Ensure all rule action lines start with a
40934         tab.
40935
40936 2007-03-24  Bruno Haible  <bruno@clisp.org>
40937
40938         * modules/tsearch-tests: New file.
40939         * tests/test-tsearch.sh: New file.
40940         * tests/test-tsearch.c: New file, mostly copied from glibc.
40941
40942         * modules/search-tests: New file.
40943         * tests/test-search.c: New file.
40944
40945         * modules/search: New file.
40946         * lib/search_.h: New file, incorporating lib/tsearch.h.
40947         * m4/search_h.m4: New file.
40948         * lib/tsearch.h: Remove file.
40949         * lib/tsearch.c: Include search.h instead of tsearch.h.
40950         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
40951         HAVE_TSEARCH.
40952         * modules/tsearch (Files): Remove lib/tsearch.h.
40953         (Depends-on): Add search.
40954         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
40955         (Include): Change tsearch.h into search.h.
40956
40957 2007-03-24  Bruno Haible  <bruno@clisp.org>
40958
40959         * modules/fpucw: New file.
40960         * lib/fpucw.h: New file.
40961         * lib/frexp.c: Include fpucw.h.
40962         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40963         (FUNC): Use them.
40964         * lib/printf-frexp.c: Include fpucw.h.
40965         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40966         (FUNC): Use them.
40967         * lib/vasnprintf.c: Include fpucw.h.
40968         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
40969         'long double' calculations.
40970         * tests/test-frexpl.c: Include fpucw.h.
40971         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40972         * tests/test-printf-frexpl.c: Include fpucw.h.
40973         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40974         * modules/frexpl (Depends-on): Add fpucw.
40975         * modules/printf-frexpl (Depends-on): Likewise.
40976         * modules/fprintf-posix (Depends-on): Likewise.
40977         * modules/snprintf-posix (Depends-on): Likewise.
40978         * modules/sprintf-posix (Depends-on): Likewise.
40979         * modules/vasnprintf-posix (Depends-on): Likewise.
40980         * modules/vasprintf-posix (Depends-on): Likewise.
40981         * modules/vfprintf-posix (Depends-on): Likewise.
40982         * modules/vsnprintf-posix (Depends-on): Likewise.
40983         * modules/vsprintf-posix (Depends-on): Likewise.
40984         * modules/frexpl-tests (Depends-on): Likewise.
40985         * modules/printf-frexpl-tests (Depends-on): Likewise.
40986
40987 2007-03-24  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/float+.h: New file.
40990         * lib/isnan.c: Include float+.h.
40991         (SIZE): New macro.
40992         (FUNC): Compare only SIZE bytes of the value.
40993         * lib/vasnprintf.c: Include float+.h.
40994         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
40995         SIZEOF_LDBL or SIZEOF_DBL bytes.
40996         * modules/isnan-nolibm (Files): Add lib/float+.h.
40997         * modules/isnanl-nolibm (Files): Add lib/float+.h.
40998         * modules/isnanl (Files): Add lib/float+.h.
40999         * modules/vasnprintf (Files): Add lib/float+.h.
41000
41001 2007-03-24  Bruno Haible  <bruno@clisp.org>
41002
41003         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41004         include isnanl-nolibm.h.
41005
41006 2007-03-24  Bruno Haible  <bruno@clisp.org>
41007
41008         * tests/test-read-file.c (main): Don't produce spurious output for
41009         expected situations. Make the test fail if it encountered unexpected
41010         results.
41011
41012 2007-03-24  Bruno Haible  <bruno@clisp.org>
41013
41014         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41015         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41016
41017 2007-03-24  Bruno Haible  <bruno@clisp.org>
41018
41019         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41020
41021 2007-03-24  Bruno Haible  <bruno@clisp.org>
41022
41023         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41024         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41025
41026         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41027         * modules/utf8-ucs4: Turn into a symbolic link to module
41028         unistr/u8-mbtouc.
41029
41030         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41031         utf8-ucs4-unsafe.
41032         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41033         unistr/u8-mbtouc-unsafe.
41034
41035         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41036         * modules/utf16-ucs4: Turn into a symbolic link to module
41037         unistr/u16-mbtouc.
41038
41039         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41040         utf16-ucs4-unsafe.
41041         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41042         unistr/u16-mbtouc-unsafe.
41043
41044         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41045         * modules/ucs4-utf8: Turn into a symbolic link to module
41046         unistr/u8-ubtomb.
41047
41048         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41049         * modules/ucs4-utf16: Turn into a symbolic link to module
41050         unistr/u16-ubtomb.
41051
41052 2007-03-24  Bruno Haible  <bruno@clisp.org>
41053
41054         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41055         Enable the function only if HAVE_INLINE.
41056         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41057         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41058         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41059         Enable the function only if HAVE_INLINE.
41060         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41061         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41062         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41063         Enable the function only if HAVE_INLINE.
41064         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41065         Enable the function only if HAVE_INLINE.
41066         * modules/utf8-ucs4: Update.
41067         * modules/utf8-ucs4-unsafe: Update.
41068         * modules/utf16-ucs4: Update.
41069         * modules/utf16-ucs4-unsafe: Update.
41070         * modules/ucs4-utf8: Update.
41071         * modules/ucs4-utf16: Update.
41072
41073 2007-03-24  Bruno Haible  <bruno@clisp.org>
41074
41075         * lib/utf8-ucs4.h: Remove file.
41076         * lib/utf8-ucs4-unsafe.h: Remove file.
41077         * lib/utf16-ucs4.h: Remove file.
41078         * lib/utf16-ucs4-unsafe.h: Remove file.
41079         * lib/ucs4-utf8.h: Remove file.
41080         * lib/ucs4-utf16.h: Remove file.
41081         * lib/unistr.h: Include their previous contents.
41082         * m4/utf-ucs4.m4: Remove file.
41083         * m4/ucs4-utf.m4: Remove file.
41084         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41085         (Depends-on): Add unistr/base.
41086         (configure.ac): Remove gl_UTF_UCS4.
41087         (Makefile.am): Update.
41088         (Include): Change to unistr.h.
41089         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41090         (Depends-on): Add unistr/base.
41091         (configure.ac): Remove gl_UTF_UCS4.
41092         (Makefile.am): Update.
41093         (Include): Change to unistr.h.
41094         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41095         (Depends-on): Add unistr/base.
41096         (configure.ac): Remove gl_UTF_UCS4.
41097         (Makefile.am): Update.
41098         (Include): Change to unistr.h.
41099         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41100         (Depends-on): Add unistr/base.
41101         (configure.ac): Remove gl_UTF_UCS4.
41102         (Makefile.am): Update.
41103         (Include): Change to unistr.h.
41104         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41105         (Depends-on): Add unistr/base.
41106         (configure.ac): Remove gl_UCS4_UTF.
41107         (Makefile.am): Update.
41108         (Include): Change to unistr.h.
41109         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41110         (Depends-on): Add unistr/base.
41111         (configure.ac): Remove gl_UCS4_UTF.
41112         (Makefile.am): Update.
41113         (Include): Change to unistr.h.
41114         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41115         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41116         utf8-ucs4-unsafe.h.
41117         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41118         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41119         utf16-ucs4-unsafe.h.
41120         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41121         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41122         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41123         * lib/unistr/u8-strchr.c: Likewise.
41124         * lib/unistr/u8-strrchr.c: Likewise.
41125         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41126         * lib/unistr/u16-strchr.c: Likewise.
41127         * lib/unistr/u16-strrchr.c: Likewise.
41128         * lib/striconveh.c: Update.
41129         * lib/linebreak.c: Update.
41130
41131 2007-03-24  Bruno Haible  <bruno@clisp.org>
41132
41133         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41134         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41135
41136 2007-03-22  Bruno Haible  <bruno@clisp.org>
41137
41138         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41139
41140 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41141
41142         * MODULES.html.sh (File system functions): New module write-any-file.
41143         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41144         * m4/write-any-file.m4: New files.
41145
41146 2007-03-23  Eric Blake  <ebb9@byu.net>
41147
41148         * gnulib-tool: Rearrange space-tab sequences, since some editors
41149         like to eat them.
41150
41151 2007-03-23  Eric Blake  <ebb9@byu.net>
41152
41153         * lib/version-etc.c (version_etc_va): Update license wording to
41154         be more concise.  Recommended by Richard Stallman.
41155
41156 2007-03-22  Bruno Haible  <bruno@clisp.org>
41157
41158         * lib/poll.c (MSG_PEEK): New fallback definition.
41159
41160 2007-03-22  Bruno Haible  <bruno@clisp.org>
41161
41162         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41163         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41164         (main): Update.
41165         Fixes a compilation error on BeOS.
41166
41167 2007-03-22  Bruno Haible  <bruno@clisp.org>
41168
41169         * modules/frexpl-tests: New file.
41170         * tests/test-frexpl.c: New file.
41171
41172         * modules/frexpl: New file.
41173         * m4/frexpl.m4: New file.
41174         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41175         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41177         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41178         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41179         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41180
41181 2007-03-22  Bruno Haible  <bruno@clisp.org>
41182
41183         * lib/frexpl.c: Share code with lib/frexp.c.
41184         * modules/mathl (Files): Add lib/frexp.c.
41185         (Depends-on): Add isnanl-nolibm.
41186
41187 2007-03-22  Bruno Haible  <bruno@clisp.org>
41188
41189         * modules/printf-frexp (Files): Add m4/frexp.m4.
41190         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41191         only if the found frexp function actually works.
41192
41193 2007-03-22  Bruno Haible  <bruno@clisp.org>
41194
41195         * lib/frexp.c: Remove older implementation that uses divisions.
41196
41197 2007-03-21  Bruno Haible  <bruno@clisp.org>
41198
41199         * modules/frexp-tests: New file.
41200         * tests/test-frexp.c: New file.
41201
41202         * modules/frexp: New file.
41203         * lib/frexp.c: New file.
41204         * m4/frexp.m4: New file.
41205         * lib/math_.h (frexp): New declaration.
41206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41207         REPLACE_FREXP.
41208         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41209
41210 2007-03-21  Bruno Haible  <bruno@clisp.org>
41211
41212         * modules/isnanl-tests: New file.
41213         * tests/test-isnanl.c: New file.
41214
41215         * modules/isnanl: New file.
41216         * lib/isnanl.h: New file.
41217         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41218         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41219         gl_FUNC_ISNANL_WORKS.
41220         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41221         New macros.
41222
41223 2007-03-21  Bruno Haible  <bruno@clisp.org>
41224
41225         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41226         lib/isnanl.h.
41227         (Include): Update.
41228         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41229         * lib/vasnprintf.c: Update.
41230         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41231         tests/test-isnanl.h, remove tests/test-isnanl.c.
41232         (Makefile.am): Update.
41233         * tests/test-isnanl-nolibm.c: New file.
41234         * tests/test-isnanl.h: New file.
41235         * tests/test-isnanl.c: Remove file.
41236
41237 2007-03-21  Jim Meyering  <jim@meyering.net>
41238
41239         When trying to open ".", treat ESTALE like EACCES.
41240         * lib/savewd.c (savewd_save): Resort to forking not just upon
41241         failure with EACCES, but also when errno is ESTALE.
41242
41243 2007-03-20  Bruno Haible  <bruno@clisp.org>
41244
41245         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41246         Needed on AIX 5.1. Reported by Matthew Woehlke.
41247
41248 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41249
41250         Suggestions by Bruno Haible:
41251         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41252         our own.
41253         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41254         * modules/acl (Depends-on): Add gettext.
41255
41256 2007-03-19  Bruno Haible  <bruno@clisp.org>
41257
41258         * modules/iconvme: Remove file.
41259         * lib/iconvme.h: Remove file.
41260         * lib/iconvme.c: Remove file.
41261         * m4/iconvme.m4: Remove file.
41262
41263 2007-03-19  Bruno Haible  <bruno@clisp.org>
41264
41265         * doc/relocatable-maint.texi: Break long shell script line.
41266         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41267
41268 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41269
41270         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41271         handle file_has_acl.
41272         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41273         * lib/acl.c: Move header inclusions and related macro defns into
41274         lib/acl-internal.h.
41275         (S_ISLNK): Remove defn, since that's now done for us.
41276         (file_has_acl): Move to lib/file-has-acl.c.
41277         Call acl_trivial if available.  This is the crucial part of the fix.
41278         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41279         shared within the library.  Rewrite a bit, partly to make it compatible
41280         with the GNU coding style.
41281         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41282         Remove unnecessary double-quotes.
41283         Don't test for acl_to_text; the build will catch that.
41284         Replace acl_entries if it doesn't exist and it is needed.
41285         Check for -lsec and acl_trivial (as used on Solaris 10).
41286         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41287         lib/file-has-acl.c.
41288         (Depends-on): Add sys_stat, for S_ISLNK.
41289
41290 2007-03-19  Ben Pfaff  <blp@gnu.org>
41291
41292         * doc/gnulib.texi: Fix typos.
41293         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41294
41295 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41296
41297         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41298         If size is zero here, buf must be zero.
41299
41300 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41301
41302         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41303         <bruno@clisp.org>.
41304
41305 2007-03-18  Bruno Haible  <bruno@clisp.org>
41306
41307         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41308         Suggested by Eric Blake.
41309
41310 2007-03-18  Ben Pfaff  <blp@gnu.org>
41311
41312         * doc/relocatable.texi: Recommend using as prefix a directory
41313         that does not exist and will never be created.  Based on
41314         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41315         and others.
41316
41317 2007-03-17  Bruno Haible  <bruno@clisp.org>
41318
41319         * lib/fchownat.c: Include lchown.h.
41320
41321 2007-03-17  Bruno Haible  <bruno@clisp.org>
41322
41323         Fix endless loop when the given allocated size was > INT_MAX.
41324         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41325         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41326         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41327         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41328         * lib/sprintf.c (sprintf): Likewise.
41329
41330 2007-03-17  Bruno Haible  <bruno@clisp.org>
41331
41332         * tests/test-argp-2.sh (func_compare): Output a context diff.
41333
41334 2007-03-17  Bruno Haible  <bruno@clisp.org>
41335
41336         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41337         locale's decimal-point character.
41338
41339 2007-03-17  Bruno Haible  <bruno@clisp.org>
41340
41341         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41342         before comparing it. Needed because on some platforms (e.g. x86) a
41343         'long double' occupies less bytes than sizeof (long double).
41344
41345 2007-03-17  Bruno Haible  <bruno@clisp.org>
41346
41347         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41348         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41349         * tests/test-getaddrinfo.c (simple): Likewise.
41350         * tests/test-read-file.c (main): Likewise.
41351
41352 2007-03-17  Bruno Haible  <bruno@clisp.org>
41353
41354         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41355
41356 2007-03-17  Bruno Haible  <bruno@clisp.org>
41357
41358         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41359         unused variable.
41360
41361 2007-03-17  Bruno Haible  <bruno@clisp.org>
41362
41363         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41364         * tests/test-c-strncasecmp.c: Likewise.
41365
41366 2007-03-17  Bruno Haible  <bruno@clisp.org>
41367
41368         * modules/stdlib (Depends-on): Add unistd.
41369         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41370         Needed for MacOS X 10.3.
41371
41372 2007-03-17  Bruno Haible  <bruno@clisp.org>
41373
41374         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41375
41376 2007-03-17  Bruno Haible  <bruno@clisp.org>
41377
41378         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41379
41380 2007-03-17  Bruno Haible  <bruno@clisp.org>
41381
41382         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41383         to reflect files copied from gnulib (with or without modifications).
41384         Suggested by Jim Meyering.
41385
41386 2007-03-17  Eric Blake  <ebb9@byu.net>
41387
41388         * NEWS: Document stdlib change from 2007-02-18.
41389
41390 2007-03-17  Jim Meyering  <jim@meyering.net>
41391
41392         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41393         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41394         someone uses a name containing shell meta-characters.
41395         Reported by Alfred M. Szmidt.
41396
41397         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41398
41399 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41400
41401         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41402         and copy gettext configuration files only if configure.ac contains
41403         a use of AM_GNU_GETTEXT_VERSION.
41404
41405 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41406
41407         * build-aux/bootstrap (gnulib_name): New variable.
41408         (gnulib_tool_options): Use it.
41409
41410 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41411
41412         * tests/test-des.c: Use new namespace.
41413
41414 2007-03-15  Bruno Haible  <bruno@clisp.org>
41415
41416         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41417         Reported by James Youngman <jay@gnu.org>.
41418
41419 2007-03-15  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41422         declared prototype. Needed with cc on OSF/1 5.1.
41423
41424 2007-03-15  Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41427         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41428         (struct gl_list_implementation): Add dispose_fn argument to the
41429         'create_empty', 'create' methods.
41430         (struct gl_list_impl_base): Add field 'dispose_fn'.
41431         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41432         argument.
41433         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41434         dispose_fn argument.
41435         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41436         dispose_fn on the dropped values.
41437         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41438         dispose_fn argument.
41439         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41440         dropped values.
41441         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41442         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41443         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41444         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41445         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41446         argument.
41447         (gl_tree_list_free): Call dispose_fn on the dropped values.
41448         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41449         the dropped values.
41450         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41451         Add dispose_fn argument.
41452         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41453         Call dispose_fn on the dropped values.
41454         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41455         Add dispose_fn argument.
41456         (gl_sublist_create): Initialize the 'dispose_fn' field.
41457         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41458         * tests/test-array_list.c (main): Update.
41459         * tests/test-carray_list.c (main): Update.
41460         * tests/test-avltree_list.c (main): Update.
41461         * tests/test-rbtree_list.c (main): Update.
41462         * tests/test-avltreehash_list.c (main): Update.
41463         * tests/test-rbtreehash_list.c (main): Update.
41464         * tests/test-linked_list.c (main): Update.
41465         * tests/test-linkedhash_list.c (main): Update.
41466         * tests/test-array_oset.c (main): Update.
41467
41468 2007-03-15  Bruno Haible  <bruno@clisp.org>
41469
41470         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41471         (gl_oset_create_empty): Add dispose_fn argument.
41472         (struct gl_oset_implementation): Add dispose_fn argument to
41473         'create_empty' method.
41474         (struct gl_oset_impl_base): Add dispose_fn field.
41475         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41476         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41477         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41478         values.
41479         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41480         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41481         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41482         dropped value.
41483         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41484         dropped value.
41485         * tests/test-array_oset.c (main): Update.
41486         * tests/test-avltree_oset.c (main): Update.
41487         * tests/test-rbtree_oset.c (main): Update.
41488         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41489
41490 2007-03-13  Bruno Haible  <bruno@clisp.org>
41491
41492         * tests/test-stdbool.c (i): Update after last patch.
41493
41494 2007-03-12  Bruno Haible  <bruno@clisp.org>
41495
41496         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41497         the iswprint macro. Needed on Solaris 2.5.1.
41498
41499 2007-03-12  Bruno Haible  <bruno@clisp.org>
41500
41501         * tests/test-printf-frexp.c (main): Declare x as volatile.
41502
41503 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41504
41505         * doc/gnulib.texi (Build robot for gnulib): New section.
41506
41507 2007-03-12  Jim Meyering  <jim@meyering.net>
41508
41509         * build-aux/bootstrap: New file.
41510         * build-aux/bootstrap.conf: New file, from coreutils.
41511
41512 2007-03-11  Bruno Haible  <bruno@clisp.org>
41513
41514         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41515
41516 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41517
41518         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41519         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41520         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41521
41522 2007-03-11  Bruno Haible  <bruno@clisp.org>
41523
41524         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41525         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41526
41527 2007-03-11  Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41530         formula. Needed for SunPRO C 5.0.
41531
41532 2007-03-11  Bruno Haible  <bruno@clisp.org>
41533
41534         * modules/long-options (Depends-on): Add getopt.
41535
41536 2007-03-11  Bruno Haible  <bruno@clisp.org>
41537
41538         * modules/modechange (Depends-on): Add stdbool.
41539
41540 2007-03-11  Bruno Haible  <bruno@clisp.org>
41541
41542         * modules/i-ring (Depends-on): Add stdbool.
41543
41544 2007-03-11  Bruno Haible  <bruno@clisp.org>
41545
41546         * modules/gc-des (Depends-on): Add stdbool.
41547
41548 2007-03-11  Bruno Haible  <bruno@clisp.org>
41549
41550         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41551
41552 2007-03-11  Bruno Haible  <bruno@clisp.org>
41553
41554         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41555
41556 2007-03-11  Bruno Haible  <bruno@clisp.org>
41557
41558         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41559
41560 2007-03-11  Bruno Haible  <bruno@clisp.org>
41561
41562         * lib/vasnprintf.c (sprintf): Undefine.
41563
41564 2007-03-11  Bruno Haible  <bruno@clisp.org>
41565
41566         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41567         initializers in SunPRO C and Compaq C compilers.
41568
41569 2007-03-11  Bruno Haible  <bruno@clisp.org>
41570
41571         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41572         decrementing code ANSI C compliant.
41573
41574 2007-03-11  Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41577         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41578
41579 2007-03-11  Bruno Haible  <bruno@clisp.org>
41580
41581         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41582         <stdbool.h> substitute doesn't pass.
41583
41584 2007-03-11  Bruno Haible  <bruno@clisp.org>
41585
41586         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41587
41588 2007-03-11  Bruno Haible  <bruno@clisp.org>
41589
41590         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41591         script, for submission to autobuild.josefsson.org.
41592
41593 2007-03-10  Bruno Haible  <bruno@clisp.org>
41594
41595         * modules/canonicalize-lgpl-tests: New file.
41596         * tests/test-canonicalize-lgpl.sh: New file.
41597         * tests/test-canonicalize-lgpl.c: New file.
41598
41599         * modules/c-strcase-tests: New file.
41600         * tests/test-c-strcase.sh: New file.
41601         * tests/test-c-strcasecmp.c: New file.
41602         * tests/test-c-strncasecmp.c: New file.
41603
41604         * modules/atexit-tests: New file.
41605         * tests/test-atexit.sh: New file.
41606         * tests/test-atexit.c: New file.
41607
41608 2007-03-10  Bruno Haible  <bruno@clisp.org>
41609
41610         * tests/test-binary-io.sh: Use temporary filenames that are not so
41611         likely to clash with those of other tests (in a parallel make).
41612         * tests/test-binary-io.c: Likewise.
41613
41614 2007-03-10  Bruno Haible  <bruno@clisp.org>
41615
41616         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41617         fallback; use #error instead.
41618         Suggested by Simon Josefsson.
41619
41620 2007-03-10  Bruno Haible  <bruno@clisp.org>
41621
41622         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41623         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41624         first and the last.
41625
41626 2007-03-10  Bruno Haible  <bruno@clisp.org>
41627
41628         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
41629
41630 2007-03-10  Bruno Haible  <bruno@clisp.org>
41631
41632         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
41633         "make distcheck".
41634         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
41635         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
41636         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
41637
41638 2007-03-10  Bruno Haible  <bruno@clisp.org>
41639
41640         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
41641         variable.
41642         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
41643         variable.
41644
41645 2007-03-09  Eric Blake  <ebb9@byu.net>
41646         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
41647
41648         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
41649         types are not being provided by gnulib.
41650         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
41651         types are supported.
41652
41653 2007-03-10  Bruno Haible  <bruno@clisp.org>
41654
41655         * lib/stdio_.h (__attribute__): New macro.
41656         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
41657         vsprintf): Specify __attribute__ __format__ for GCC.
41658         Suggested by Eric Blake.
41659
41660 2007-03-09  Bruno Haible  <bruno@clisp.org>
41661
41662         * modules/printf-posix-tests: New file.
41663         * tests/test-printf-posix.sh: New file.
41664         * tests/test-printf-posix.c: New file.
41665
41666         * modules/printf-posix: New file.
41667         * lib/printf.c: New file.
41668         * m4/printf-posix-rpl.m4: New file.
41669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
41670         REPLACE_PRINTF.
41671         * lib/stdio_.h (printf): New declaration.
41672         (format, __format__, ____printf____, ____scanf____, ____strftime____,
41673         ____strfmon____): New macros.
41674         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
41675         REPLACE_PRINTF.
41676
41677 2007-03-09  Bruno Haible  <bruno@clisp.org>
41678
41679         * tests/test-vasnprintf-posix2.sh: New file.
41680         * tests/test-vasnprintf-posix2.c: New file.
41681         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
41682         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41683         (Makefile.am): Activate test-vasnprintf-posix2.sh.
41684
41685         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
41686         a locale dependent decimal point, rather than always '.'.
41687
41688 2007-03-09  Eric Blake  <ebb9@byu.net>
41689
41690         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
41691         spite of platforms like Tandem/NSK that define it to -1.
41692
41693 2007-03-08  Bruno Haible  <bruno@clisp.org>
41694
41695         * modules/vprintf-posix-tests: New file.
41696         * tests/test-vprintf-posix.sh: New file.
41697         * tests/test-vprintf-posix.c: New file.
41698         * tests/test-printf-posix.h: New file.
41699
41700         * modules/vprintf-posix: New file.
41701         * lib/vprintf.c: New file.
41702         * m4/vprintf-posix.m4: New file.
41703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
41704         REPLACE_VPRINTF.
41705         * lib/stdio_.h (vprintf): New declaration.
41706         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
41707         REPLACE_VPRINTF.
41708
41709 2007-03-08  Bruno Haible  <bruno@clisp.org>
41710
41711         * modules/fprintf-posix-tests: New file.
41712         * tests/test-fprintf-posix.sh: New file.
41713         * tests/test-fprintf-posix.c: New file.
41714
41715         * modules/fprintf-posix: New file.
41716         * lib/fprintf.c: New file.
41717         * m4/fprintf-posix.m4: New file.
41718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
41719         REPLACE_FPRINTF.
41720         * lib/stdio_.h (fprintf): New declaration.
41721         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
41722         REPLACE_FPRINTF.
41723
41724 2007-03-08  Bruno Haible  <bruno@clisp.org>
41725
41726         * modules/vfprintf-posix-tests: New file.
41727         * tests/test-vfprintf-posix.sh: New file.
41728         * tests/test-vfprintf-posix.c: New file.
41729         * tests/test-fprintf-posix.h: New file.
41730         * tests/test-fprintf-posix.out: New file.
41731
41732         * modules/vfprintf-posix: New file.
41733         * lib/vfprintf.c: New file.
41734         * m4/vfprintf-posix.m4: New file.
41735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
41736         REPLACE_VFPRINTF.
41737         * lib/stdio_.h (vfprintf): New declaration.
41738         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
41739         REPLACE_VFPRINTF.
41740
41741 2007-03-08  Bruno Haible  <bruno@clisp.org>
41742
41743         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
41744
41745 2007-03-08  Bruno Haible  <bruno@clisp.org>
41746
41747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
41748         instead of 'expr' invocations.
41749         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41750         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41751         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41754         Suggested by Paul Eggert.
41755
41756 2007-03-08  Bruno Haible  <bruno@clisp.org>
41757
41758         * modules/fseterr-tests: New file.
41759         * tests/test-fseterr.c: New file.
41760
41761         * modules/fseterr: New file.
41762         * lib/fseterr.h: New file.
41763         * lib/fseterr.c: New file.
41764
41765 2007-03-08  Bruno Haible  <bruno@clisp.org>
41766
41767         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
41768         * lib/getopt_.h: Likewise.
41769         * lib/mbswidth.h: Likewise.
41770         * lib/setenv.h: Likewise.
41771         * lib/vasnprintf.h: Likewise.
41772         * lib/vasprintf.h: Likewise.
41773         * lib/verror.h: Likewise.
41774         * lib/xsetenv.h: Likewise.
41775         * lib/xvasprintf.h: Likewise.
41776
41777 2007-03-08  Jim Meyering  <jim@meyering.net>
41778
41779         * users.txt: Add parted.
41780
41781         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
41782
41783 2007-03-07  Bruno Haible  <bruno@clisp.org>
41784
41785         * m4/printf.m4: Make the shell script snippets copy&pastable.
41786
41787 2007-03-02  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/netinet_in_.h: New file.
41790         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
41791         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
41792         * modules/netinet_in (Files): Add lib/netinet_in_.h.
41793         (Depends-on): Add absolute-header.
41794         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
41795         into netinet/in.h.
41796
41797 2007-03-03  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/sys_select_.h: New file.
41800         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
41801         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
41802         * modules/sys_select (Files): Add lib/sys_select_.h.
41803         (Depends-on): Add absolute-header.
41804         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
41805         into sys/select.h.
41806
41807 2007-03-02  Bruno Haible  <bruno@clisp.org>
41808
41809         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
41810         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
41811         values.
41812         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
41813         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
41814         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
41815         * modules/sys_socket (Depends-on): Add absolute-header.
41816         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
41817         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
41818         (Include): Remove requirement of inclusion of <sys/types.h>.
41819
41820 2007-03-02  Bruno Haible  <bruno@clisp.org>
41821
41822         * lib/byteswap_.h (bswap_32): Fix formula.
41823
41824 2007-03-06  Bruno Haible  <bruno@clisp.org>
41825
41826         * modules/sprintf-posix-tests: New file.
41827         * tests/test-sprintf-posix.c: New file.
41828
41829         * modules/sprintf-posix: New file.
41830         * lib/sprintf.c: New file.
41831         * m4/sprintf-posix.m4: New file.
41832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
41833         REPLACE_SPRINTF.
41834         * lib/stdio_.h (sprintf): New declaration.
41835         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
41836         REPLACE_SPRINTF.
41837
41838 2007-03-06  Bruno Haible  <bruno@clisp.org>
41839
41840         * modules/vsprintf-posix-tests: New file.
41841         * tests/test-vsprintf-posix.c: New file.
41842         * tests/test-sprintf-posix.h: New file.
41843
41844         * modules/vsprintf-posix: New file.
41845         * lib/vsprintf.c: New file.
41846         * m4/vsprintf-posix.m4: New file.
41847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
41848         REPLACE_VSPRINTF.
41849         * lib/stdio_.h (vsprintf): New declaration.
41850         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
41851         REPLACE_VSPRINTF.
41852
41853 2007-03-06  Bruno Haible  <bruno@clisp.org>
41854
41855         * modules/vsnprintf (Depend-on): Remove minmax.
41856
41857 2007-03-06  Bruno Haible  <bruno@clisp.org>
41858
41859         * modules/snprintf-posix-tests: New file.
41860         * tests/test-snprintf-posix.c: New file.
41861
41862         * modules/snprintf-posix: New file.
41863         * m4/snprintf-posix.m4: New file.
41864         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
41865         gl_FUNC_SNPRINTF.
41866         (gl_FUNC_SNPRINTF): Invoke it.
41867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
41868         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
41869         is set.
41870         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
41871
41872 2007-03-06  Bruno Haible  <bruno@clisp.org>
41873
41874         * modules/vsnprintf-posix-tests: New file.
41875         * tests/test-vsnprintf-posix.c: New file.
41876         * tests/test-snprintf-posix.h: New file.
41877
41878         * modules/vsnprintf-posix: New file.
41879         * m4/vsnprintf-posix.m4: New file.
41880         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
41881         gl_FUNC_VSNPRINTF.
41882         (gl_FUNC_VSNPRINTF): Invoke it.
41883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
41884         * lib/stdio_.h (vsnprintf): Define as a replacement if
41885         REPLACE_VSNPRINTF is set.
41886         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
41887
41888 2007-03-06  Bruno Haible  <bruno@clisp.org>
41889
41890         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
41891         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
41892
41893 2007-03-06  Bruno Haible  <bruno@clisp.org>
41894
41895         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
41896         (asinl): Declare also if HAVE_DECL_ASINL is set.
41897         (atanl): Declare also if HAVE_DECL_ATANL is set.
41898         (ceill): Declare also if HAVE_DECL_CEILL is set.
41899         (cosl): Declare also if HAVE_DECL_COSL is set.
41900         (expl): Declare also if HAVE_DECL_EXPL is set.
41901         (floorl): Declare also if HAVE_DECL_FLOORL is set.
41902         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
41903         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
41904         (logl): Declare also if HAVE_DECL_LOGL is set.
41905         (sinl): Declare also if HAVE_DECL_SINL is set.
41906         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
41907         (tanl): Declare also if HAVE_DECL_TANL is set.
41908         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
41909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
41910         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
41911         declaration of frexpl, ldexpl.
41912         * modules/printf-frexpl (Depends-on): Add math.
41913         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
41914
41915 2007-03-05  Bruno Haible  <bruno@clisp.org>
41916
41917         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
41918         frexpl and ldexpl are declared.
41919         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
41920
41921 2007-03-05  Bruno Haible  <bruno@clisp.org>
41922
41923         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
41924         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
41925
41926 2007-03-05  Bruno Haible  <bruno@clisp.org>
41927
41928         * lib/stdio_.h: Include <stddef.h>.
41929
41930 2007-03-05  Bruno Haible  <bruno@clisp.org>
41931
41932         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
41933
41934 2007-03-05  Bruno Haible  <bruno@clisp.org>
41935
41936         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
41937         NetBSD 4, from Ralf Wildenhues.
41938
41939 2007-03-04  Bruno Haible  <bruno@clisp.org>
41940
41941         * lib/vasprintf.h: Update #if logic for the case when the functions
41942         exist but are overridden.
41943
41944 2007-03-04  Bruno Haible  <bruno@clisp.org>
41945
41946         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
41947         implementations: glibc-2.4 and MacOS X 10.3.
41948         * tests/test-vasnprintf-posix.c (test_function): Test also the case
41949         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
41950         * tests/test-vasprintf-posix.c (test_function): Likewise.
41951
41952 2007-03-04  Bruno Haible  <bruno@clisp.org>
41953
41954         * modules/vasprintf-posix-tests: New file.
41955         * tests/test-vasprintf-posix.c: New file.
41956
41957         * modules/vasprintf-posix: New file.
41958         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
41959         defined.
41960         * m4/vasprintf-posix.m4: New file.
41961         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
41962         gl_FUNC_VASPRINTF.
41963         (gl_FUNC_VASPRINTF): Invoke it.
41964         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
41965         here.
41966         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
41967
41968 2007-03-04  Bruno Haible  <bruno@clisp.org>
41969
41970         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
41971         REPLACE_GETTIMEOFDAY.
41972         * modules/sys_time (Makefile.am): Likewise.
41973         * m4/sys_time_h.m4: Likewise.
41974         * m4/gettimeofday.m4: Likewise.
41975
41976 2007-03-04  Bruno Haible  <bruno@clisp.org>
41977
41978         * modules/vasnprintf-posix-tests: New file.
41979         * tests/test-vasnprintf-posix.c: New file.
41980
41981         * modules/vasnprintf-posix: New file.
41982         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
41983         printf-frexpl.h.
41984         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
41985         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
41986         REPLACE_VASNPRINTF is defined.
41987         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
41988         gl_FUNC_VASNPRINTF.
41989         (gl_FUNC_VASNPRINTF): Invoke it.
41990         * m4/vasnprintf-posix.m4: New file.
41991         * m4/printf.m4: New file.
41992
41993 2007-03-04  Bruno Haible  <bruno@clisp.org>
41994
41995         Compile progreloc.c only if --enable-relocatable is specified.
41996         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
41997         if --enable-relocatable was specified.
41998         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
41999         lib_SOURCES.
42000
42001 2007-03-04  Jim Meyering  <jim@meyering.net>
42002
42003         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42004         Use it consistently, rather than enumerating errno constants.
42005
42006 2007-03-04  Bruno Haible  <bruno@clisp.org>
42007
42008         * modules/xvasprintf-tests: New file.
42009         * tests/test-xvasprintf.c: New file.
42010
42011         * modules/vasprintf-tests: New file.
42012         * tests/test-vasprintf.c: New file.
42013
42014         * modules/vasnprintf-tests: New file.
42015         * tests/test-vasnprintf.c: New file.
42016
42017         * modules/vsnprintf-tests: New file.
42018         * tests/test-vsnprintf.c: New file.
42019
42020         * modules/snprintf-tests: New file.
42021         * tests/test-snprintf.c: New file.
42022
42023 2007-03-04  Bruno Haible  <bruno@clisp.org>
42024
42025         Compile relocatable.c only if --enable-relocatable is specified.
42026         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42027         gl_RELOCATABLE_LIBRARY.
42028         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42029         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42030         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42031         gl_RELOCATABLE_LIBRARY.
42032         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42033         (Makefile.am): Remove lib_SOURCES.
42034         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42035         gl_RELOCATABLE_LIBRARY.
42036         (Makefile.am): Remove lib_SOURCES.
42037         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42038         always.
42039         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42040         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42041
42042 2007-03-04  Bruno Haible  <bruno@clisp.org>
42043
42044         * modules/argmatch-tests: New file.
42045         * tests/test-argmatch.c: New file.
42046
42047         * tests/test-allocsa.c (main): Halve the number of loop runs.
42048
42049         * modules/alloca-opt-tests: New file.
42050         * tests/test-alloca-opt.c: New file.
42051
42052 2007-03-04  Jim Meyering  <jim@meyering.net>
42053
42054         Work around difference between Linux ACLs and Solaris 10 ZFS.
42055         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42056         for EINVAL.
42057
42058 2007-03-03  Bruno Haible  <bruno@clisp.org>
42059
42060         * modules/relocatable-prog (Depends-on): Add back progreloc's
42061         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42062
42063 2007-03-03  Bruno Haible  <bruno@clisp.org>
42064
42065         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42066         * modules/relocatable-lib: New file.
42067
42068 2007-03-03  Bruno Haible  <bruno@clisp.org>
42069
42070         * modules/relocatable-prog: Renamed from modules/relocatable.
42071         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42072
42073 2007-03-03  Bruno Haible  <bruno@clisp.org>
42074
42075         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42076         m4/relocatable-lib.m4.
42077         (Depends-on): Remove 'relocatable'.
42078         (configure.ac): Add gl_RELOCATABLE_NOP.
42079
42080 2007-03-03  Bruno Haible  <bruno@clisp.org>
42081
42082         * modules/relocatable-prog-wrapper: New file.
42083         * modules/relocatable (Depends-on): Add it. Remove all other
42084         dependencies except progname.
42085         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42086
42087         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42088         (gl_FUNC_STRERROR): Nop.
42089         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42090
42091         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42092         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42093
42094         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42095         (gl_FUNC_READLINK): Update.
42096
42097         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42098
42099 2007-03-03  Bruno Haible  <bruno@clisp.org>
42100
42101         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42102         * modules/xreadlink (Depends-on): Add unistd.
42103         * modules/xreadlink-with-size (Depends-on): Likewise.
42104
42105 2007-03-03  Bruno Haible  <bruno@clisp.org>
42106
42107         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42108         extracted from gt_FUNC_SETENV.
42109         (gt_FUNC_SETENV): Remove macro.
42110         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42111         remove gt_FUNC_SETENV.
42112
42113 2007-03-03  Bruno Haible  <bruno@clisp.org>
42114
42115         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42116         ENABLE_RELOCATABLE here.
42117         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42118
42119 2007-03-03  Bruno Haible  <bruno@clisp.org>
42120
42121         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42122         * tests/test-rbtreehash_list.c: Include progname.h.
42123         (main): Call set_program_name.
42124
42125         * modules/rbtree-oset-tests (Depends-on): Add progname.
42126         * tests/test-rbtree_oset.c: Include progname.h.
42127         (main): Call set_program_name.
42128
42129         * modules/rbtree-list-tests (Depends-on): Add progname.
42130         * tests/test-rbtree_list.c: Include progname.h.
42131         (main): Call set_program_name.
42132
42133         * modules/linked-list-tests (Depends-on): Add progname.
42134         * tests/test-linked_list.c: Include progname.h.
42135         (main): Call set_program_name.
42136
42137 2007-03-03  Bruno Haible  <bruno@clisp.org>
42138
42139         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42140         All uses of __restrict changed to _Restrict_.
42141         * lib/glob_.h (__restrict): Remove macro.
42142
42143 2007-03-02  Bruno Haible  <bruno@clisp.org>
42144
42145         * modules/gettext (configure.ac): Require gettext infrastructure
42146         from version 0.16.1.
42147
42148 2007-03-02  Bruno Haible  <bruno@clisp.org>
42149
42150         * modules/linkedhash-list-tests (Depends-on): Add progname.
42151         * tests/test-linkedhash_list.c: Include progname.h.
42152         (main): Call set_program_name.
42153
42154         * modules/carray-list-tests (Depends-on): Add progname.
42155         * tests/test-carray_list.c: Include progname.h.
42156         (main): Call set_program_name.
42157
42158         * modules/avltreehash-list-tests (Depends-on): Add progname.
42159         * tests/test-avltreehash_list.c: Include progname.h.
42160         (main): Call set_program_name.
42161
42162         * modules/avltree-oset-tests (Depends-on): Add progname.
42163         * tests/test-avltree_oset.c: Include progname.h.
42164         (main): Call set_program_name.
42165
42166         * modules/avltree-list-tests (Depends-on): Add progname.
42167         * tests/test-avltree_list.c: Include progname.h.
42168         (main): Call set_program_name.
42169
42170         * modules/array-oset-tests (Depends-on): Add progname.
42171         * tests/test-array_oset.c: Include progname.h.
42172         (main): Call set_program_name.
42173
42174         * modules/array-list-tests (Depends-on): Add progname.
42175         * tests/test-array_list.c: Include progname.h.
42176         (main): Call set_program_name.
42177
42178         * modules/argp-tests (Depends-on): Add progname.
42179         * tests/test-argp.c: Include argp.h first. Include progname.h.
42180         (main): Call set_program_name.
42181
42182 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42183
42184         * doc/gnulib-tool.texi (Initial import): Reword description of
42185         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42186         limited effect even if defined after the first system include.
42187
42188 2007-03-01  Bruno Haible  <bruno@clisp.org>
42189
42190         * build-aux/config.libpath: Update to libtool-1.5.22.
42191         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42192
42193 2007-03-01  Bruno Haible  <bruno@clisp.org>
42194
42195         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42196         foo_CFLAGS.
42197         Reported by Ralf Wildenhues.
42198
42199 2007-03-01  Bruno Haible  <bruno@clisp.org>
42200
42201         * build-aux/install-reloc: Remove object files left over by some
42202         compilers.
42203         Reported by Ralf Wildenhues.
42204
42205 2007-03-01  Bruno Haible  <bruno@clisp.org>
42206
42207         * build-aux/install-reloc: Break long lines.
42208
42209 2007-03-01  Bruno Haible  <bruno@clisp.org>
42210
42211         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42212         Reported by Ralf Wildenhues.
42213
42214 2007-03-01  Bruno Haible  <bruno@clisp.org>
42215
42216         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42217         include ordering constraints.
42218
42219 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42220
42221         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42222         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42223         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42224         as another example.
42225         * lib/time_.h: Fix misspelling.
42226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42227         Require gl_HEADER_TIME_H_DEFAULTS.
42228         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42229         * m4/time_r.m4 (gl_TIME_R): Likewise.
42230         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42231
42232 2007-03-01  Bruno Haible  <bruno@clisp.org>
42233
42234         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42235         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42236
42237 2007-03-01  Jim Meyering  <jim@meyering.net>
42238
42239         * modules/xreadlink (Maintainer): Add my name.
42240         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42241
42242 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42243             Bruno Haible  <bruno@clisp.org>
42244
42245         * build-aux/install-reloc: Compile also c-ctype.c.
42246         * build-aux/relocatable.sh.in: New file.
42247         * doc/relocatable.texi: New file.
42248         * doc/relocatable-maint.texi: New file.
42249         * doc/gnulib.texi: Include relocatable-maint.texi.
42250         * lib/progreloc.c: Include unistd.h unconditionally.
42251         * lib/relocwrapper.c: Include unistd.h unconditionally.
42252         Include c-ctype.h.
42253         (add_dotbin): Use c_tolower.
42254         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42255         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42256         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42257         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42258         to m4/relocatable-lib.m4.
42259         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42260         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42261         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42262         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42263         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42264         * modules/relocatable: New file.
42265         * modules/relocatable-lib: New file.
42266         * modules/relocatable-script: New file.
42267
42268 2007-02-28  Bruno Haible  <bruno@clisp.org>
42269
42270         Import --enable-relocatable infrastructure.
42271         * build-aux/config.libpath: New file, from GNU gettext.
42272         * build-aux/install-reloc: New file, from GNU gettext.
42273         * build-aux/reloc-ldflags: New file, from GNU gettext.
42274         * lib/relocatable.h: New file, from GNU gettext.
42275         * lib/relocatable.c: New file, from GNU gettext.
42276         * lib/relocwrapper.c: New file, from GNU gettext.
42277         * m4/relocatable.m4: New file, from GNU gettext.
42278
42279 2007-02-28  Bruno Haible  <bruno@clisp.org>
42280
42281         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42282
42283         * modules/xreadlink: New file, from GNU gettext with modifications.
42284         * lib/xreadlink.c: New file, from GNU gettext.
42285         * lib/xreadlink.h: Add comments.
42286         (xreadlink): New declaration.
42287
42288         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42289         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42290         lib/xreadlink-with-size.c.
42291         (configure.ac): Remove gl_XREADLINK invocation.
42292         (Makefile.am): Augment lib_SOURCES.
42293         * m4/xreadlink.m4: Remove file.
42294         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42295         (xreadlink_with_size): Renamed from xreadink.
42296         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42297         * modules/canonicalize (Depends-on): Replace xreadlink with
42298         xreadlink-with-size.
42299         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42300
42301 2007-02-25  Jim Meyering  <jim@meyering.net>
42302
42303         * build-aux/announce-gen: When complaining about excess arguments,
42304         list them.
42305
42306 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42307
42308         * README: Document signed integer overflow situation more
42309         accurately.
42310
42311 2007-02-25  Bruno Haible  <bruno@clisp.org>
42312
42313         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42314         'a' or 'A' conversion.
42315
42316 2007-02-25  Bruno Haible  <bruno@clisp.org>
42317
42318         * modules/filename: Renamed from modules/pathname.
42319         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42320         lib/concatpath.c with lib/concat-filename.c.
42321         (Makefile.am): Update.
42322         (Include): Replace pathname.h with filename.h.
42323         * lib/filename.h: Renamed from lib/pathname.h.
42324         (concatenated_filename): Renamed from concatenated_pathname.
42325         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42326         (concatenated_filename): Renamed from concatenated_pathname.
42327         * lib/findprog.c: Include filename.h instead of pathname.h.
42328         (find_in_path): Update.
42329         * lib/javacomp.c: Include filename.h instead of pathname.h.
42330         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42331         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42332         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42333         is_oldgcj_14_13_usable, is_javac_usable): Update.
42334         * lib/javaexec.c: Include filename.h instead of pathname.h.
42335         (execute_java_class): Update.
42336         * modules/findprog: Update.
42337         * modules/javacomp: Update.
42338         * modules/javaexec: Update.
42339         * MODULES.html.sh (File system functions): Add 'filename', remove
42340         'pathname'.
42341
42342 2007-02-25  Bruno Haible  <bruno@clisp.org>
42343
42344         * modules/printf-frexpl-tests: New file.
42345         * tests/test-printf-frexpl.c: New file.
42346
42347         * modules/printf-frexpl: New file.
42348         * lib/printf-frexpl.h: New file.
42349         * lib/printf-frexpl.c: New file.
42350         * m4/printf-frexpl.m4: New file.
42351
42352 2007-02-25  Bruno Haible  <bruno@clisp.org>
42353
42354         * modules/printf-frexp-tests: New file.
42355         * tests/test-printf-frexp.c: New file.
42356
42357         * modules/printf-frexp: New file.
42358         * lib/printf-frexp.h: New file.
42359         * lib/printf-frexp.c: New file.
42360         * m4/printf-frexp.m4: New file.
42361
42362 2007-02-25  Bruno Haible  <bruno@clisp.org>
42363
42364         Assume automake >= 1.10 for the tests.
42365         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42366         * modules/arctwo-tests: Likewise.
42367         * modules/argp-tests: Likewise.
42368         * modules/avltree-list-tests: Likewise.
42369         * modules/avltree-oset-tests: Likewise.
42370         * modules/avltreehash-list-tests: Likewise.
42371         * modules/carray-list-tests: Likewise.
42372         * modules/crc-tests: Likewise.
42373         * modules/des-tests: Likewise.
42374         * modules/gc-arcfour-tests: Likewise.
42375         * modules/gc-arctwo-tests: Likewise.
42376         * modules/gc-des-tests: Likewise.
42377         * modules/gc-hmac-md5-tests: Likewise.
42378         * modules/gc-hmac-sha1-tests: Likewise.
42379         * modules/gc-md2-tests: Likewise.
42380         * modules/gc-md4-tests: Likewise.
42381         * modules/gc-md5-tests: Likewise.
42382         * modules/gc-pbkdf2-sha1-tests: Likewise.
42383         * modules/gc-rijndael-tests: Likewise.
42384         * modules/gc-sha1-tests: Likewise.
42385         * modules/gc-tests: Likewise.
42386         * modules/getaddrinfo-tests: Likewise.
42387         * modules/hmac-md5-tests: Likewise.
42388         * modules/hmac-sha1-tests: Likewise.
42389         * modules/linked-list-tests: Likewise.
42390         * modules/linkedhash-list-tests: Likewise.
42391         * modules/lock-tests: Likewise.
42392         * modules/md2-tests: Likewise.
42393         * modules/md4-tests: Likewise.
42394         * modules/md5-tests: Likewise.
42395         * modules/rbtree-list-tests: Likewise.
42396         * modules/rbtree-oset-tests: Likewise.
42397         * modules/rbtreehash-list-tests: Likewise.
42398         * modules/read-file-tests: Likewise.
42399         * modules/rijndael-tests: Likewise.
42400         * modules/stdint-tests: Likewise.
42401         * modules/tls-tests: Likewise.
42402
42403 2007-02-24  Bruno Haible  <bruno@clisp.org>
42404
42405         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42406         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42407         function; instead check whether isnan with a double argument links.
42408         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42409         function; instead check whether isnan with a 'long double' argument
42410         links.
42411         Reported by Eric Blake <ebb9@byu.net>.
42412
42413 2007-02-24  Bruno Haible  <bruno@clisp.org>
42414
42415         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42416         defined.
42417         * lib/isnanl.c: Remove all code. Just include isnan.c.
42418         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42419
42420 2007-02-25  Jim Meyering  <jim@meyering.net>
42421
42422         Avoid conflicting types for 'unsetenv' on FreeBSD.
42423         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42424         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42425         in stdlib.h.
42426
42427 2007-02-24  Bruno Haible  <bruno@clisp.org>
42428
42429         * modules/isnanl-nolibm-tests: New file.
42430         * tests/test-isnanl.c: New file.
42431
42432         * modules/isnanl-nolibm: New file.
42433         * lib/isnanl.h: New file.
42434         * lib/isnanl.c: New file.
42435         * m4/isnanl.m4: New file.
42436
42437 2007-02-24  Bruno Haible  <bruno@clisp.org>
42438
42439         * modules/isnan-nolibm-tests: New file.
42440         * tests/test-isnan.c: New file.
42441
42442         * modules/isnan-nolibm: New file.
42443         * lib/isnan.h: New file.
42444         * lib/isnan.c: New file.
42445         * m4/isnan.m4: New file.
42446
42447 2007-02-24  Bruno Haible  <bruno@clisp.org>
42448
42449         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42450         assume that an exponent fits in 20 bits.
42451
42452 2007-02-24  Jim Meyering  <jim@meyering.net>
42453
42454         * m4/regex.m4: Update the description of the configure-time option,
42455         --without-included-regex, to state accurately what the defaults are,
42456         and perhaps to give people an idea why using this option is risky.
42457
42458 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42459
42460         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42461         loops on small arguments.  This attempts to avoid the problem
42462         Bruno Haible reported for AIX 4.3.2 in
42463         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42464
42465 2007-02-23  Bruno Haible  <bruno@clisp.org>
42466
42467         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42468         Needed for help2man.
42469
42470 2007-02-23  Karl Berry  <karl@gnu.org>
42471
42472         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42473         exists, foo.h should be cvs-ignored, not committed.
42474
42475 2007-02-23  Eric Blake  <ebb9@byu.net>
42476
42477         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42478         * lib/stat-time.h (includes): Likewise.
42479         * lib/utimecmp.c (includes): Likewise.
42480         * lib/utimens.h (includes): Likewise.
42481         * lib/getdate.y (includes): Also include "timespec.h" for use
42482         internal to the module.
42483         * modules/utimens (Depends-on): Revert yesterday's patch.
42484         * modules/nanosleep (Depends-on): Add missing dependency.
42485
42486 2007-02-22  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/glob.c: Don't include getlogin_r.h.
42489
42490 2007-02-22  Jim Meyering  <jim@meyering.net>
42491
42492         * modules/utimens (Depends-on): Add timespec, required for
42493         utimens.h's inclusion of timespec.h.
42494
42495 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42496
42497         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42498         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42499         Schwab in
42500         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42501         I'll try to think of a better way to fix the Solaris problem.
42502
42503         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42504         like glibc; on Solaris 10, it fails with errno == EINVAL.
42505         POSIX says the behavior is unspecified if the first argument is NULL,
42506         so play it safe and never pass NULL to the system getcwd.
42507
42508 2007-02-21  Jim Meyering  <jim@meyering.net>
42509
42510         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42511         of gettimeofday.  It would conflict with the one now always
42512         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42513         an IRIX 6.5 build failure.
42514
42515 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42516
42517         Minor fixups to port to Solaris 10 with Sun C 5.8.
42518         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42519         * modules/getcwd (Depends-on): Add dirfd.
42520         * lib/putenv.c (putenv): #undef it.
42521         (rpl_putenv): New decl.
42522         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42523
42524 2007-02-20  Bruno Haible  <bruno@clisp.org>
42525
42526         * modules/stdio-tests: New file.
42527         * tests/test-stdio.c: New file.
42528
42529         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42530         (Depends-on): Add stdio.
42531         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42532         (Include): Use <stdio.h> instead of vsnprintf.h.
42533         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42534         HAVE_DECL_VSNPRINTF.
42535         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42536
42537         * modules/snprintf (Files): Remove lib/snprintf.h.
42538         (Depends-on): Add stdio.
42539         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42540         (Include): Use <stdio.h> instead of snprintf.h.
42541         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42542         HAVE_DECL_SNPRINTF.
42543         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42544         * lib/getaddrinfo.c: Likewise.
42545
42546         * modules/stdio: New file.
42547         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42548         * lib/snprintf.h: Remove file.
42549         * lib/vsnprintf.h: Remove file.
42550         * lib/.cppi-disable: Remove snprintf.h.
42551         * m4/stdio_h.m4: New file.
42552         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42553
42554 2007-02-20  Jim Meyering  <jim@meyering.net>
42555
42556         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42557         used by e.g., mingw.  From Bruno Haible.
42558
42559 2007-02-19  Bruno Haible  <bruno@clisp.org>
42560
42561         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42562         warnings.
42563         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42564
42565 2007-02-19  Bruno Haible  <bruno@clisp.org>
42566
42567         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42568         from mingw users.
42569
42570 2007-02-19  Bruno Haible  <bruno@clisp.org>
42571
42572         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42573         warnings.
42574         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42575
42576 2007-02-19  Jim Meyering  <jim@meyering.net>
42577
42578         Don't use FD after a successful "fdopendir (fd)".
42579         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42580         Reset it by calling dirfd on the just-obtained DIR*.
42581
42582         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42583         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42584
42585 2007-02-18  Bruno Haible  <bruno@clisp.org>
42586
42587         * lib/readlink.c: Include <unistd.h>.
42588         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42589         HAVE_READLINK.
42590         * modules/readlink (Depends-on): Add unistd.
42591         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42592         (Include): Add <unistd.h>.
42593
42594         * lib/getlogin_r.h: Remove file.
42595         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42596         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42597         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42598         HAVE_DECL_GETLOGIN_R.
42599         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42600         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42601         (Include): Use <unistd.h> instead of getlogin_r.h.
42602
42603         * lib/getcwd.h: Remove file.
42604         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42605         * lib/xgetcwd.c: Likewise.
42606         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42607         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42608         * modules/getcwd (Files): Remove lib/getcwd.h.
42609         (Depends-on): Add unistd.
42610         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42611         (Include): Use <unistd.h> instad of getcwd.h.
42612
42613         * lib/ftruncate.c: Include <unistd.h> first.
42614         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42615         Set HAVE_FTRUNCATE.
42616         * modules/ftruncate (Depends-on): Add unistd.
42617         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42618
42619         * lib/fchdir.c: Include <unistd.h> first.
42620         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42621         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42622         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42623         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42624         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42625
42626         * lib/dup2.c: Include <unistd.h> first.
42627         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
42628         HAVE_DUP2.
42629         * modules/dup2 (Depends-on): Add unistd.
42630         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42631
42632         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
42633         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
42634         REPLACE_CHOWN. Don't define chown as a macro here.
42635         * modules/chown (Depends-on): Add unistd.
42636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42637
42638         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
42639         Add definition for GL_LINK_WARNING.
42640         (chown, dup2): New declarations.
42641         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
42642         link warning.
42643         (ftruncate): New declaration.
42644         (getcwd): New declaration, taken from old getcwd.h.
42645         (getlogin_r): New declaration, taken from old getlogin_r.h.
42646         (readlink): New declaration.
42647         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
42648         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
42649         (gl_PREREQ_UNISTD): Remove macro.
42650         (gl_UNISTD_MODULE_INDICATOR): New macro.
42651         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
42652         many new variables. Don't set UNISTD_H.
42653         * modules/unistd (Description): Change.
42654         (Depends-on): Add link-warning.
42655         (configure.ac): Update.
42656         (Makefile.am): Create unistd.h always. Substitute many new variables
42657         into it.
42658
42659 2007-02-18  Bruno Haible  <bruno@clisp.org>
42660
42661         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
42662         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
42663         HAVE_GETSUBOPT.
42664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
42665         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
42666         * lib/getsubopt.h: Remove file.
42667         * modules/getsubopt (Files): Remove lib/getsubopt.h.
42668         (Depends-on): Add stdlib.
42669         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42670         (Includes): Use <stdlib.h> instead of getsubopt.h.
42671         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
42672         Set HAVE_GETSUBOPT.
42673         * lib/getsubopt.c: Don't include getsubopt.h.
42674
42675 2007-02-18  Bruno Haible  <bruno@clisp.org>
42676
42677         * modules/fchdir (Depends-on): Add dup2.
42678
42679 2007-02-18  Bruno Haible  <bruno@clisp.org>
42680
42681         * lib/stdlib_.h: Handle glibc's special invocation convention
42682         specially.
42683
42684 2007-02-18  Bruno Haible  <bruno@clisp.org>
42685
42686         * modules/stdlib-tests: New file.
42687         * tests/test-stdlib.c: New file.
42688
42689         * modules/mkstemp (Files): Remove lib/mkstemp.h.
42690         (Depends-on): Add stdlib.
42691         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42692         (Includes): Use <stdlib.h> instead of mkstemp.h.
42693         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42694         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
42695         * lib/mkstemp.c: Don't include mkstemp.h.
42696         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
42697         * lib/stdlib--.h: Don't include mkstemp.h.
42698
42699         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
42700         (Depends-on): Add stdlib.
42701         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42702         (Includes): Use <stdlib.h> instead of mkdtemp.h.
42703         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42704         HAVE_MKDTEMP.
42705         * lib/mkdtemp.c: Don't include mkdtemp.h.
42706         * lib/clean-temp.c: Don't include mkdtemp.h.
42707
42708         * modules/exit (Files): Remove lib/exit.h.
42709         (Depends-on): Add stdlib.
42710         (Makefile.am): Remove lib_SOURCES.
42711         (Include): Use <stdlib.h> instead of exit.h.
42712         * lib/argmatch.c: Don't include exit.h.
42713         * lib/execute.c: Likewise.
42714         * lib/pagealign_alloc.c: Likewise.
42715         * lib/pipe.c: Likewise.
42716         * lib/wait-process.c: Likewise.
42717         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
42718         * lib/exitfail.c: Likewise.
42719         * lib/savewd.c: Likewise.
42720         * lib/xsetenv.c: Likewise.
42721
42722         * modules/stdlib: New file.
42723         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
42724         and extra comments about mkstemp().
42725         * lib/exit.h: Remove file.
42726         * lib/mkdtemp.h: Remove file.
42727         * lib/mkstemp.h: Remove file.
42728         * m4/stdlib_h.m4: New file.
42729         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
42730
42731 2007-02-18  Bruno Haible  <bruno@clisp.org>
42732
42733         * modules/math-tests: New file.
42734         * tests/test-math.c: New file.
42735
42736         * modules/math: New file.
42737         * modules/mathl (Files): Remove lib/mathl.h.
42738         (Depends-on): Add math.
42739         (Makefile.am): Don't mention mathl.h.
42740         (Include): Use <math.h> instead of mathl.h.
42741         * lib/math_.h: New file.
42742         * lib/mathl.h: Remove file.
42743         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
42744         mathl.h.
42745         * lib/asinl.c: Likewise.
42746         * lib/atanl.c: Likewise.
42747         * lib/ceill.c: Likewise.
42748         * lib/cosl.c: Likewise.
42749         * lib/expl.c: Likewise.
42750         * lib/floorl.c: Likewise.
42751         * lib/frexpl.c: Likewise.
42752         * lib/ldexpl.c: Likewise.
42753         * lib/logl.c: Likewise.
42754         * lib/sincosl.c: Likewise.
42755         * lib/sinl.c: Likewise.
42756         * lib/sqrtl.c: Likewise.
42757         * lib/tanl.c: Likewise.
42758         * lib/trigl.c: Likewise.
42759         * m4/math_h.m4: New file.
42760         * MODULES.html.sh (Mathematics): Add math.
42761
42762 2007-02-17  Bruno Haible  <bruno@clisp.org>
42763
42764         * modules/wctype-tests: New file.
42765         * tests/test-wctype.c: New file.
42766
42767         * modules/wchar-tests: New file.
42768         * tests/test-wchar.c: New file.
42769
42770         * modules/unistd-tests: New file.
42771         * tests/test-unistd.c: New file.
42772
42773         * modules/time-tests: New file.
42774         * tests/test-time.c: New file.
42775
42776         * modules/sysexits-tests: New file.
42777         * tests/test-sysexits.c: New file.
42778
42779         * modules/sys_time-tests: New file.
42780         * tests/test-sys_time.c: New file.
42781
42782         * modules/sys_stat-tests: New file.
42783         * tests/test-sys_stat.c: New file.
42784
42785         * modules/sys_socket-tests: New file.
42786         * tests/test-sys_socket.c: New file.
42787
42788         * modules/sys_select-tests: New file.
42789         * tests/test-sys_select.c: New file.
42790
42791         * modules/string-tests: New file.
42792         * tests/test-string.c: New file.
42793
42794         * modules/stdbool-tests: New file.
42795         * tests/test-stdbool.c: New file.
42796
42797         * modules/netinet_in-tests: New file.
42798         * tests/test-netinet_in.c: New file.
42799
42800         * modules/inttypes-tests: New file.
42801         * tests/test-inttypes.c: New file.
42802
42803         * modules/fcntl-tests: New file.
42804         * tests/test-fcntl.c: New file.
42805
42806         * modules/byteswap-tests: New file.
42807         * tests/test-byteswap.c: New file.
42808
42809         * modules/arpa_inet-tests: New file.
42810         * tests/test-arpa_inet.c: New file.
42811
42812 2007-02-17  Bruno Haible  <bruno@clisp.org>
42813
42814         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
42815         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
42816         if the corresponding module is not enabled. Emit link warnings if
42817         the function is used nevertheless.
42818         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
42819         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
42820         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
42821         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
42822         * modules/inttypes (Depends-on): Add link-warning.
42823         (Makefile.am): Copy the contents of build-aux/link-warning.h into
42824         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
42825         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
42826         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
42827         * modules/imaxdiv (configure.ac): Likewise.
42828         * modules/strtoimax (configure.ac): Likewise.
42829         * modules/strtoumax (configure.ac): Likewise.
42830
42831 2007-02-17  Bruno Haible  <bruno@clisp.org>
42832
42833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
42834         gl_STRING_MODULE_INDICATOR_DEFAULTS.
42835         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
42836         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
42837
42838 2007-02-17  Bruno Haible  <bruno@clisp.org>
42839
42840         * modules/link-warning: New file.
42841         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
42842         * lib/string_.h (GL_LINK_WARNING): Remove definition.
42843         * modules/string (Depends-on): Add link-warning.
42844         (Makefile.am): Copy the contents of build-aux/link-warning.h into
42845         string.h.
42846         * MODULES.html.sh (Support for building libraries and executables): Add
42847         link-warning.
42848
42849 2007-02-17  Bruno Haible  <bruno@clisp.org>
42850
42851         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
42852         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
42853         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
42854         long lines.
42855
42856 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
42857             Bruno Haible  <bruno@clisp.org>
42858
42859         * modules/tmpfile: New file.
42860         * lib/tmpfile.c: New file.
42861         * m4/tmpfile.m4: New file.
42862         * MODULES.html.sh (func_all_modules): New section "Input/output".
42863
42864 2007-02-15  Bruno Haible  <bruno@clisp.org>
42865
42866         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
42867         (supports_delete_on_close): New function.
42868         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
42869
42870 2007-02-14  Bruno Haible  <bruno@clisp.org>
42871
42872         * modules/mbspcasecmp-tests: New file.
42873         * tests/test-mbspcasecmp.sh: New file.
42874         * tests/test-mbspcasecmp.c: New file.
42875
42876         New module mbspcasecmp.
42877         * modules/mbspcasecmp: New file.
42878         * lib/mbspcasecmp.c: New file.
42879         * lib/string_.h (strncasecmp): Change warning message.
42880         (mbspcasecmp): New declaration.
42881         * m4/mbspcasecmp.m4: New file.
42882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42883         GNULIB_MBSPCASECMP.
42884         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
42885         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
42886
42887 2007-02-14  Bruno Haible  <bruno@clisp.org>
42888
42889         * modules/mbsncasecmp-tests: New file.
42890         * tests/test-mbsncasecmp.sh: New file.
42891         * tests/test-mbsncasecmp.c: New file.
42892
42893         New module mbsncasecmp.
42894         * modules/mbsncasecmp: New file.
42895         * lib/mbsncasecmp.c: New file.
42896         * lib/string_.h (mbsncasecmp): New declaration.
42897         * m4/mbsncasecmp.m4: New file.
42898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42899         GNULIB_MBSNCASECMP.
42900         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
42901         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
42902
42903 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
42904
42905         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
42906         Verify that it doesn't overlap with our flags.
42907         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
42908         do not have the desired effect in multibyte locales; instead, use
42909         mbscasecmp.
42910         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
42911         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
42912         we don't require GNU fnmatch ourselves (if our users require it, they
42913         should do so explicitly).
42914
42915         Fix regex code so it doesn't rely on strcasecmp.
42916         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
42917         Otherwise, include gnulib's langinfo.h.
42918         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
42919         undesirable behavior in non-C locales.  Instead, rely on localecharset.
42920         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
42921         * modules/regex (FILES): Remove m4/codeset.m4.
42922         (Depends-on): Add localcharset.  Remove strcase.
42923
42924 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42925
42926         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
42927         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
42928
42929 2007-02-13  Bruno Haible  <bruno@clisp.org>
42930
42931         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
42932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42933
42934 2007-02-12  Bruno Haible  <bruno@clisp.org>
42935
42936         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42937         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
42938         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
42939         time warning rather than a link error.
42940
42941 2007-02-12  Bruno Haible  <bruno@clisp.org>
42942
42943         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
42944         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42945         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42946
42947 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42948
42949         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
42950         args, not 2.
42951
42952 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42953
42954         New module 'time', so that apps can include <time.h> as per
42955         POSIX and GNU instead of separate include files like time_r.h
42956         and timegm.h.  This implementation tries out a simpler approach
42957         for replacing decls in standard include files (as compared to
42958         the string module), somewhat as an experiment.
42959
42960         * config/srclist.txt: Comment out mktime.c for now.
42961         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
42962         since it doesn't apply any more.  Use generic wording instead.
42963         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
42964         'time'.
42965         * lib/time_.h, m4/time_h.m4, modules/time: New files.
42966         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
42967         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
42968         Don't include <sys/types.h>; no longer needed since we assume C89.
42969         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
42970         * lib/strftime.c: Likewise.
42971         * lib/time_r.c: Likewise.
42972         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
42973         * lib/nanosleep.c: Include <time.h> first, to check interface.
42974         * lib/strptime.c: Likewise.
42975         * lib/time_r.c: Likewise.
42976         * lib/timegm.c: Likewise.
42977         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
42978         needed.
42979         * lib/timegm.c: Don't include timegm.h; no longer needed.
42980         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
42981         time.h now handles any problems in that area.
42982         (struct timespec, nanosleep): Remove; time.h now arranges for these.
42983         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
42984         that time.h defines struct timespec.
42985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
42986         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
42987         handles that.
42988         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
42989         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
42990         needed.  Set REPLACE_LOCALTIME.
42991         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
42992         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
42993         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
42994         nanosleep; time_h.m4 now does that.  Don't require
42995         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
42996         module handles this now.
42997         * modules/getdate (Depends-on): Remove timespec.  Add time.
42998         * modules/nanosleep (Depends-on): Likewise.
42999         * modules/stat-time (Depends-on): Likewise.
43000         * modules/nanosleep (Include): Include time.h, not timespec.h.
43001         * modules/strptime (Files): Remove lib/strptime.h.
43002         (Depends-on): Add extensions, time.
43003         (Include): Include time.h, not strptime.h.
43004         * modules/time_r (Files): Remove lib/time_r.h.
43005         (Depends-on): Add time.
43006         (Include): Include time.h, not time_r.h.
43007         * modules/timegm: Likewise.
43008         * modules/timespec (Description): Now does timespec-related decls
43009         of our own, instead of struct timespec itself.
43010         (Depends-on): Add time; remove extensions.
43011         (Maintainer): Add self.
43012         * modules/utimecmp (Depends-on): Add time; remove timespec.
43013         * modules/utimens (Depends-on): Likewise.
43014         * modules/xnanosleep (Depends-on): Likewise.
43015
43016 2007-02-11  Bruno Haible  <bruno@clisp.org>
43017
43018         * lib/c-strstr.c: Include allocsa.h.
43019         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43020         * lib/c-strcasestr.c: Include allocsa.h.
43021         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43022         * lib/strcasestr.c: Include allocsa.h.
43023         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43024         * lib/mbsstr.c: Include allocsa.h.
43025         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43026         allocsa/freesa instead of malloc/free.
43027         * lib/mbscasestr.c: Include allocsa.h.
43028         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43029         allocsa/freesa instead of malloc/free.
43030         * modules/c-strstr (Depends-on): Add allocsa.
43031         * modules/c-strcasestr (Depends-on): Likewise.
43032         * modules/strcasestr (Depends-on): Likewise.
43033         * modules/mbsstr (Depends-on): Likewise.
43034         * modules/mbscasestr (Depends-on): Likewise.
43035
43036 2007-02-11  Bruno Haible  <bruno@clisp.org>
43037
43038         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43039
43040         * modules/mbsspn-tests: New file.
43041         * tests/test-mbsspn.sh: New file.
43042         * tests/test-mbsspn.c: New file.
43043
43044 2007-02-11  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43047
43048         * modules/mbspbrk-tests: New file.
43049         * tests/test-mbspbrk.sh: New file.
43050         * tests/test-mbspbrk.c: New file.
43051
43052 2007-02-11  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43055         unneeded cast.
43056
43057         * modules/mbscspn-tests: New file.
43058         * tests/test-mbscspn.sh: New file.
43059         * tests/test-mbscspn.c: New file.
43060
43061 2007-02-11  Bruno Haible  <bruno@clisp.org>
43062
43063         * modules/mbscasecmp-tests: New file.
43064         * tests/test-mbscasecmp.sh: New file.
43065         * tests/test-mbscasecmp.c: New file.
43066
43067 2007-02-11  Bruno Haible  <bruno@clisp.org>
43068
43069         Ensure O(n) worst-case complexity of mbscasestr.
43070         * lib/mbscasestr.c: Include stdbool.h.
43071         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43072         functions.
43073         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43074         the bookkeeping indicates that it's worth it.
43075         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43076
43077         * modules/mbscasestr-tests: New file.
43078         * tests/test-mbscasestr1.c: New file.
43079         * tests/test-mbscasestr2.sh: New file.
43080         * tests/test-mbscasestr2.c: New file.
43081         * tests/test-mbscasestr3.sh: New file.
43082         * tests/test-mbscasestr3.c: New file.
43083         * tests/test-mbscasestr4.sh: New file.
43084         * tests/test-mbscasestr4.c: New file.
43085         * m4/locale-tr.m4: New file.
43086
43087 2007-02-11  Bruno Haible  <bruno@clisp.org>
43088
43089         Ensure O(n) worst-case complexity of mbsstr.
43090         * lib/mbsstr.c: Include stdbool.h.
43091         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43092         functions.
43093         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43094         bookkeeping indicates that it's worth it.
43095         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43096
43097         * modules/mbsstr-tests: New file.
43098         * tests/test-mbsstr1.c: New file.
43099         * tests/test-mbsstr2.sh: New file.
43100         * tests/test-mbsstr2.c: New file.
43101         * tests/test-mbsstr3.sh: New file.
43102         * tests/test-mbsstr3.c: New file.
43103         * m4/locale-fr.m4: New file.
43104
43105 2007-02-11  Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/mbsrchr.c (mbsrchr): Fix bug.
43108
43109         * modules/mbsrchr-tests: New file.
43110         * tests/test-mbsrchr.sh: New file.
43111         * tests/test-mbsrchr.c: New file.
43112
43113 2007-02-11  Bruno Haible  <bruno@clisp.org>
43114
43115         * lib/mbschr.c (mbschr): Fix bug.
43116
43117         * modules/mbschr-tests: New file.
43118         * tests/test-mbschr.sh: New file.
43119         * tests/test-mbschr.c: New file.
43120         * m4/locale-zh.m4: New file.
43121
43122 2007-02-11  Bruno Haible  <bruno@clisp.org>
43123
43124         Support for copying multibyte string iterators.
43125         * lib/mbiter.h: Include <string.h>.
43126         (mbiter_multi_copy): New function.
43127         (mbi_copy): New macro.
43128         * lib/mbuiter.h: Include <string.h>.
43129         (mbuiter_multi_copy): New function.
43130         (mbui_copy): New macro.
43131
43132 2007-02-11  Bruno Haible  <bruno@clisp.org>
43133
43134         New module mbslen.
43135         * modules/mbslen: New file.
43136         * lib/mbslen.c: New file.
43137         * lib/string_.h (mbslen): New declaration.
43138         * m4/mbslen.m4: New file.
43139         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43140         GNULIB_MBSLEN.
43141         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43142         * MODULES.html.sh (Internationalization functions): Add mbslen.
43143
43144 2007-02-11  Bruno Haible  <bruno@clisp.org>
43145
43146         Ensure O(n) worst-case complexity of strcasestr substitute.
43147         * lib/strcasestr.c: Include stdbool.h.
43148         (knuth_morris_pratt): New function.
43149         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43150         bookkeeping indicates that it's worth it.
43151         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43152
43153         * modules/strcasestr-tests: New file.
43154         * tests/test-strcasestr.c: New file.
43155
43156 2007-02-11  Bruno Haible  <bruno@clisp.org>
43157
43158         Ensure O(n) worst-case complexity of c_strcasestr.
43159         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43160         (knuth_morris_pratt): New function.
43161         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43162         the bookkeeping indicates that it's worth it.
43163         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43164
43165         * modules/c-strcasestr-tests: New file.
43166         * tests/test-c-strcasestr.c: New file.
43167
43168 2007-02-11  Bruno Haible  <bruno@clisp.org>
43169
43170         Ensure O(n) worst-case complexity of c_strstr.
43171         * lib/c-strstr.c: Include stdbool.h, string.h.
43172         (knuth_morris_pratt): New function.
43173         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43174         bookkeeping indicates that it's worth it.
43175         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43176
43177         * lib/c-strstr.c: Complete rewrite for maintainability.
43178
43179         * modules/c-strstr-tests: New file.
43180         * tests/test-c-strstr.c: New file.
43181
43182 2007-02-11  Bruno Haible  <bruno@clisp.org>
43183
43184         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43185         5.2.1 and earlier, whereby \055 was treated just like the range
43186         delimiter '-'.
43187         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43188
43189 2007-02-08  Bruno Haible  <bruno@clisp.org>
43190
43191         * modules/regex (Depends-on): Add stdbool.
43192         Reported by Dalibor Topic <robilad@kaffe.org>.
43193
43194 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43195
43196         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43197         Prefer returning from main to exiting from it.
43198         Remove unnecessary parens after sizeof.
43199
43200 2007-02-05  Bruno Haible  <bruno@clisp.org>
43201
43202         New module mbssep.
43203         * modules/mbssep: New file.
43204         * lib/mbssep.c: New file.
43205         * lib/string_.h (strsep): Add a conditional link warning.
43206         (mbssep): New declaration.
43207         * m4/mbssep.m4: New file.
43208         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43209         GNULIB_MBSSEP.
43210         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43211         * MODULES.html.sh (Internationalization functions): Add mbssep.
43212
43213 2007-02-05  Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43216         Optimize search in case of 1 delimiter.
43217
43218 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43219
43220         * lib/acl.h: Include sys/types.h before sys/acl.h.
43221
43222 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43223
43224         Merge upstream fix for glibc bugzilla #3957:
43225
43226         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43227
43228         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43229         bit for RE_HAT_LISTS_NOT_NEWLINE.
43230         (build_charclass_op): Remove bogus comment.
43231
43232 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43233
43234         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43235
43236 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43237
43238         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43239         * lib/memmem.c [!defined _LIBC]: Include config.h.
43240
43241 2007-02-04  Bruno Haible  <bruno@clisp.org>
43242
43243         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43244         warning message.
43245
43246 2007-02-04  Bruno Haible  <bruno@clisp.org>
43247
43248         New module mbstok_r.
43249         * modules/mbstok_r: New file.
43250         * lib/mbstok_r.c: New file.
43251         * lib/string_.h (strtok_r): Change argument names to match the
43252         comments. Add a conditional link warning.
43253         (mbstok_r): New declaration.
43254         * m4/mbstok_r.m4: New file.
43255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43256         GNULIB_MBSTOK_R.
43257         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43258         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43259
43260 2007-02-04  Bruno Haible  <bruno@clisp.org>
43261
43262         New module mbsspn.
43263         * modules/mbsspn: New file.
43264         * lib/mbsspn.c: New file.
43265         * lib/string_.h (strspn): Add a conditional link warning.
43266         (mbsspn): New declaration.
43267         * m4/mbsspn.m4: New file.
43268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43269         GNULIB_MBSSPN.
43270         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43271         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43272
43273 2007-02-04  Bruno Haible  <bruno@clisp.org>
43274
43275         New module mbspbrk.
43276         * modules/mbspbrk: New file.
43277         * lib/mbspbrk.c: New file.
43278         * lib/string_.h (strpbrk): Add a conditional link warning.
43279         (mbspbrk): New declaration.
43280         * m4/mbspbrk.m4: New file.
43281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43282         GNULIB_MBSPBRK.
43283         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43284         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43285
43286 2007-02-04  Bruno Haible  <bruno@clisp.org>
43287
43288         New module mbscspn.
43289         * modules/mbscspn: New file.
43290         * lib/mbscspn.c: New file.
43291         * lib/string_.h (strcspn): Add a conditional link warning.
43292         (mbscspn): New declaration.
43293         * m4/mbscspn.m4: New file.
43294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43295         GNULIB_MBSCSPN.
43296         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43297         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43298
43299 2007-02-04  Bruno Haible  <bruno@clisp.org>
43300
43301         New module mbscasestr, reduced goal of strcasestr.
43302         * modules/mbscasestr: New file.
43303         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43304         (mbscasestr): Renamed from strcasestr.
43305         * lib/strcasestr.c: Don't include mbuiter.h.
43306         (strcasestr): Remove support for multibyte locales.
43307         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43308         Change the conditional link warning.
43309         (mbscasestr): New declaration.
43310         * m4/mbscasestr.m4: New file.
43311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43312         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43313         REPLACE_STRCASESTR.
43314         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43316         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43317         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43318         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43319         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43320         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43321         (Depends-on): Remove mbuiter.
43322         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43323
43324 2007-02-04  Bruno Haible  <bruno@clisp.org>
43325
43326         Simplify handling of strncasecmp.
43327         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43328         the conditional link warning.
43329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43330         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43331         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43332         * modules/strcase (configure.ac): Don't invoke
43333         gl_STRING_MODULE_INDICATOR.
43334         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43335
43336 2007-02-04  Bruno Haible  <bruno@clisp.org>
43337
43338         New module mbscasecmp, reduced goal of strcasecmp.
43339         * modules/mbscasecmp: New file.
43340         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43341         (mbscasecmp): Renamed from strcasecmp.
43342         * lib/strcasecmp.c: Don't include mbuiter.h.
43343         (strcasecmp): Remove support for multibyte locales.
43344         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43345         Change the conditional link warning.
43346         (mbscasecmp): New declaration.
43347         * m4/mbscasecmp.m4: New file.
43348         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43349         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43350         REPLACE_STRCASECMP.
43351         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43353         GNULIB_MBSCASECMP.
43354         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43355         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43356         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43357         (Depends-on): Remove mbuiter.
43358         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43359
43360 2007-02-04  Bruno Haible  <bruno@clisp.org>
43361
43362         New module mbsstr. Remove module strstr.
43363         * modules/mbsstr: New file.
43364         * modules/strstr: Remove file.
43365         * lib/mbsstr.c: Renamed from lib/strstr.c.
43366         (mbsstr): Renamed from strstr.
43367         * lib/string_.h (strstr): Remove declaration. Change the conditional
43368         link warning.
43369         (mbsstr): New declaration.
43370         * m4/mbsstr.m4: New file.
43371         * m4/strstr.m4: Remove file.
43372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43373         REPLACE_STRSTR.
43374         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43375         Don't initialize GNULIB_STRSTR.
43376         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43377         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43378         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43379         (Support for systems lacking ANSI C 89): Remove strstr.
43380
43381 2007-02-04  Bruno Haible  <bruno@clisp.org>
43382
43383         New module mbsrchr.
43384         * modules/mbsrchr: New file.
43385         * lib/mbsrchr.c: New file.
43386         * lib/string_.h (strrchr): Add a conditional link warning.
43387         (mbsrchr): New declaration.
43388         * m4/mbsrchr.m4: New file.
43389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43390         GNULIB_MBSRCHR.
43391         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43392         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43393
43394 2007-02-04  Bruno Haible  <bruno@clisp.org>
43395
43396         New module mbschr.
43397         * modules/mbschr: New file.
43398         * lib/mbschr.c: New file.
43399         * lib/string_.h (strchr): Add a conditional link warning.
43400         (mbschr): New declaration.
43401         * m4/mbschr.m4: New file.
43402         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43403         GNULIB_MBSCHR.
43404         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43405         * MODULES.html.sh (Internationalization functions): Add mbschr.
43406
43407 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43408
43409         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43410
43411         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43412
43413 2007-02-04  Bruno Haible  <bruno@clisp.org>
43414
43415         New module description section 'configure.ac-early'.
43416         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43417         (func_get_autoconf_early_snippet): New function.
43418         (func_import, func_create_testdir): Use it. Remove special cases for
43419         modules 'extensions' and 'lock'.
43420         * modules/extensions (configure.ac-early): Require
43421         gl_USE_SYSTEM_EXTENSIONS.
43422         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43423
43424 2007-02-04  Bruno Haible  <bruno@clisp.org>
43425
43426         Make use of gcj-4.3's -fsource and -ftarget option.
43427         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43428         and if so try the options -fsource and -ftarget.
43429         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43430         source_version, ftarget_option, target_version arguments.
43431         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43432         (is_envjavac_oldgcj_14_14_usable): Renamed from
43433         is_envjavac_gcj_14_14_usable.
43434         (is_envjavac_oldgcj_14_13_usable): Renamed from
43435         is_envjavac_gcj_14_13_usable.
43436         (is_gcj_present): Update.
43437         (is_gcj_43, is_gcj43_usable): New functions.
43438         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43439         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43440         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43441         try the options -fsource and -ftarget.
43442
43443 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43444
43445         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43446         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43447         larger value.
43448
43449 2007-02-03  Jim Meyering  <jim@meyering.net>
43450
43451         Give tools a better chance to allocate space for very large buffers.
43452         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43453
43454         Make pwd and readlink work also when run with an unreadable parent dir
43455         on systems with openat support.
43456         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43457         provided getcwd function, even when we have openat support.
43458         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43459
43460 2007-02-02  Bruno Haible  <bruno@clisp.org>
43461
43462         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43463         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43464         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43465         portability problems if one of these functions is only used on specific
43466         platforms.
43467         Reported by Paul Eggert.
43468
43469 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43470
43471         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43472         is causing more trouble than it's curing.
43473         * lib/regex_internal.h (__mempcpy): Remove.
43474         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43475         (and make the code a tad smaller to boot).
43476         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43477
43478 2007-02-02  Jim Meyering  <jim@meyering.net>
43479
43480         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43481         section, not in the Makefile.am: one.
43482
43483 2007-02-02  Eric Blake  <ebb9@byu.net>
43484
43485         * lib/strchrnul.c: Always include config.h first.
43486
43487         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43488         gnulib strstr is not necessary here.
43489
43490 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43491
43492         * m4/socklen.m4: Fix typo.
43493
43494 2007-02-02  Eric Blake  <ebb9@byu.net>
43495
43496         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43497         * modules/netinet_in (Makefile.am): Likewise.
43498
43499 2007-02-01  Bruno Haible  <bruno@clisp.org>
43500
43501         * lib/string_.h (GL_LINK_WARNING): New macro.
43502         (strcasecmp, strstr, strcasestr): If provided by the system,
43503         conditionally define as a macro that leads to a warning instead of to
43504         an error.
43505         (strncasecmp): Conditionally define as a macro that leads to a warning.
43506
43507 2007-02-01  Karl Berry  <karl@gnu.org>
43508
43509         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43510
43511 2007-02-01  Bruno Haible  <bruno@clisp.org>
43512
43513         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43514         renamings.
43515
43516 2007-02-01  Eric Blake  <ebb9@byu.net>
43517
43518         * modules/regex (Depends-on): Revert dependence on mempcpy.
43519         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43520         module's definition of mempcpy.
43521         Reported by Paul Eggert.
43522
43523 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43524
43525         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43526         the symbol XYZ before redefining it.  This fixes a problem with
43527         programs that don't use XYZ, when compiled on systems that define
43528         XYZ to something else.
43529
43530 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43531
43532         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43533         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43534         writeable to group or other and (2) is intended to have a special
43535         mode bit that is set or cleared.  In such a case, the directory
43536         should be neither group- nor other-writeable until the special
43537         mode bits are right.
43538
43539 2007-01-31  Eric Blake  <ebb9@byu.net>
43540
43541         * modules/mountlist (Depends-on): Add strstr.
43542
43543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43544         bug.
43545         * modules/string (Makefile.am): Remove redundant replacement.
43546         * modules/regex (Depends-on): Add mempcpy.
43547
43548 2007-01-31  Bruno Haible  <bruno@clisp.org>
43549
43550         New module description field 'Link'.
43551         * gnulib-tool (func_usage): Document --extract-link-directive.
43552         (sed_extract_prog): Recognize 'Link' directive.
43553         (func_get_link_directive): New function.
43554         (func_import): Show summary of link directives.
43555         Handle --extract-link-directive option.
43556         * modules/acl (Link): New section.
43557         * modules/clock-time (Link): New section.
43558         * modules/euidaccess (Link): New section.
43559         * modules/gettext (Link): New section.
43560         * modules/iconv (Link): New section.
43561         * modules/lock (Link): New section.
43562         * modules/nanosleep (Link): New section.
43563         * modules/readline (Link): New section.
43564
43565 2007-01-27  Bruno Haible  <bruno@clisp.org>
43566
43567         Enforce the use of gnulib modules for unportable <string.h> functions.
43568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43569         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43570         (gl_HEADER_STRING_H_BODY): Require it.
43571         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43572         the symbol XYZ to one that gives a link error.
43573         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43574         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43575         * modules/mempcpy (configure.ac): Likewise.
43576         * modules/memrchr (configure.ac): Likewise.
43577         * modules/stpcpy (configure.ac): Likewise.
43578         * modules/stpncpy (configure.ac): Likewise.
43579         * modules/strcase (configure.ac): Likewise.
43580         * modules/strcasestr (configure.ac): Likewise.
43581         * modules/strchrnul (configure.ac): Likewise.
43582         * modules/strdup (configure.ac): Likewise.
43583         * modules/strndup (configure.ac): Likewise.
43584         * modules/strnlen (configure.ac): Likewise.
43585         * modules/strpbrk (configure.ac): Likewise.
43586         * modules/strsep (configure.ac): Likewise.
43587         * modules/strstr (configure.ac): Likewise.
43588         * modules/strtok_r (configure.ac): Likewise.
43589
43590 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43591
43592         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43593
43594 2007-01-30  Jim Meyering  <jim@meyering.net>
43595
43596         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43597
43598 2007-01-29  Bruno Haible  <bruno@clisp.org>
43599
43600         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43601         * lib/execute.c: Likewise.
43602         * lib/pipe.c: Likewise.
43603         * lib/printf-args.h: Likewise.
43604         * lib/printf-args.c: Likewise.
43605         * lib/printf-parse.c: Likewise.
43606         * lib/vasnprintf.c: Likewise.
43607
43608 2007-01-29  Eric Blake  <ebb9@byu.net>
43609
43610         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43611         declaration.
43612
43613 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43614
43615         * lib/strptime.h (strptime): Use 'restrict' for args where
43616         POSIX requires this.
43617         * lib/strptime.c (strptime): Likewise.
43618         Change license notice from LGPL to GPL, since gnulib-tool will
43619         change this as needed.
43620         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43621         defined.
43622         Include "strptime.h" first, to check interface.
43623         Do not #undef _LIBC and _NL_CURRENT.
43624         Do not include <stdlib.h>; no longer needed.
43625         Include "time_r.h" and declare ptime_locale_status
43626         only if _LIBC is not defined.
43627         (__P): Remove unused macro.
43628         (match_string): Bring back glibc version, but use it only if _LIBC
43629         is defined.
43630         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
43631         Remove unnecessary assertion and abort() call.
43632         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
43633         * m4/strptime.m4: Fix serial number comment.
43634         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
43635         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
43636         (Depends-on): Add time_r.
43637
43638 2007-01-29  Bruno Haible  <bruno@clisp.org>
43639
43640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43641         strptime.
43642         * modules/strptime (Depends-on): Add stdbool.
43643         * lib/strptime.h: Include <time.h> always. Add comments.
43644
43645 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43646
43647         * modules/strptime: New file.
43648         * lib/strptime.h: New file.
43649         * lib/strptime.c: New file.
43650         * m4/strptime.m4: New file.
43651
43652 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43653
43654         * MODULES.html.sh: New module mpsort.
43655         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
43656
43657         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
43658         a circularity problem with HP-UX ia64 reported by Bob Proulx in
43659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
43660         All uses changed.
43661         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
43662         All uses changed.
43663         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
43664         to _Restrict_.
43665         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
43666         the parameter matches the prototype.
43667
43668 2007-01-28  Jim Meyering  <jim@meyering.net>
43669
43670         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
43671         sys/time.h here, reverting that part of the previous patch:
43672         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
43673
43674 2007-01-28  Bruno Haible  <bruno@clisp.org>
43675
43676         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
43677         value of $(SYS_TIME_H).
43678         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
43679         remove it conditionally, too. [added by Jim Meyering]
43680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
43681         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43682         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
43683         GETTIMEOFDAY_REPLACEMENT to 1.
43684
43685 2007-01-28  Bruno Haible  <bruno@clisp.org>
43686
43687         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
43688         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
43689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
43690         Set UNISTD_H instead of UNISTD_H2.
43691         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
43692
43693 2007-01-28  Bruno Haible  <bruno@clisp.org>
43694
43695         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
43696         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
43697
43698 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43699
43700         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
43701         (func_create_testdir): Ensure C locale for `grep' and `tr'
43702         character ranges.
43703         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
43704         ACLOCAL_AMFLAGS parsing state machine.
43705
43706 2007-01-27  Bruno Haible  <bruno@clisp.org>
43707
43708         * modules/unistr/base: Update.
43709
43710 2007-01-27  Bruno Haible  <bruno@clisp.org>
43711
43712         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
43713         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
43714         * modules/unistr/u32-mbtouc-unsafe: Renamed from
43715         modules/unistr/u32-mbtouc.
43716         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
43717         * lib/unistr.h: Update.
43718         * lib/linebreak.c: Update.
43719         * modules/unistr/u32-mbtouc: Renamed from
43720         modules/unistr/u32-mbtouc-safe.
43721         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
43722         * lib/unistr.h: Update.
43723         * lib/unistr/u32-to-u8.c: Update.
43724         * lib/unistr/u32-to-u16.c: Update.
43725
43726 2007-01-27  Bruno Haible  <bruno@clisp.org>
43727
43728         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
43729         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
43730         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
43731         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
43732         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
43733         * modules/unistr/u16-mbtouc-unsafe: Renamed from
43734         modules/unistr/u16-mbtouc.
43735         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
43736         * lib/unistr.h: Update.
43737         * lib/linebreak.c: Update.
43738         * modules/linebreak: Update.
43739         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
43740         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
43741         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
43742         * modules/unistr/u16-mbtouc: Renamed from
43743         modules/unistr/u16-mbtouc-safe.
43744         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
43745         * lib/unistr.h: Update.
43746         * lib/unistr/u16-to-u8.c: Update.
43747         * modules/unistr/u16-to-u8: Update.
43748         * lib/unistr/u16-to-u32.c: Update.
43749         * modules/unistr/u16-to-u32: Update.
43750
43751 2007-01-27  Bruno Haible  <bruno@clisp.org>
43752
43753         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
43754         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
43755         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
43756         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
43757         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
43758         * modules/unistr/u8-mbtouc-unsafe: Renamed from
43759         modules/unistr/u8-mbtouc.
43760         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
43761         * lib/unistr.h: Update.
43762         * lib/striconveh.c: Update.
43763         * modules/striconveh: Update.
43764         * lib/linebreak.c: Update.
43765         * modules/linebreak: Update.
43766         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
43767         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
43768         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
43769         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
43770         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
43771         * lib/unistr.h: Update.
43772         * lib/striconveh.c: Update.
43773         * modules/striconveh: Update.
43774         * lib/unistr/u8-to-u16.c: Update.
43775         * modules/unistr/u8-to-u16: Update.
43776         * lib/unistr/u8-to-u32.c: Update.
43777         * modules/unistr/u8-to-u32: Update.
43778
43779 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43780
43781         Sync from Libtool.
43782         * lib/argz.c: Do not include strings.h nor memory.h, include
43783         string.h unconditionally.  Patch by Simon Josefsson.
43784
43785 2007-01-27  Bruno Haible  <bruno@clisp.org>
43786
43787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
43788         from gl_HEADER_STRING_H_BODY.
43789         (gl_HEADER_STRING_H_BODY): Require it.
43790         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
43791         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
43792         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
43793         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
43794         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43795         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
43796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43797         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
43798         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
43799         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43800         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
43801         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
43802         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
43803         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43804         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43805
43806 2007-01-27  Bruno Haible  <bruno@clisp.org>
43807
43808         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
43809         check_PROGRAMS into noinst_PROGRAMS.
43810         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
43811         check_PROGRAMS in this case.
43812         (func_import): Set for_test to false.
43813         (func_create_testdir): Set for_test to true.
43814
43815 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43816             Bruno Haible  <bruno@clisp.org>
43817
43818         * modules/strcasestr (Files): Remove lib/strcasestr.h.
43819         (Depends-on): Add string.
43820         (Includes): Use <string.h> instead of strcasestr.h.
43821         * modules/string (Makefile.am): Also substitute the value of
43822         REPLACE_STRCASESTR.
43823         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
43824         assume strcasestr is declared in <string.h> not <strings.h>. Also
43825         set REPLACE_STRCASESTR.
43826         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
43827         REPLACE_STRCASESTR.
43828         * lib/strcasestr.h: Remove file.
43829         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
43830         * lib/string_.h (strcasestr): New declaration.
43831
43832 2007-01-27  Bruno Haible  <bruno@clisp.org>
43833
43834         * lib/string_.h: Use 'extern'.
43835
43836 2007-01-27  Jim Meyering  <jim@meyering.net>
43837
43838         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
43839         of set-but-not-used local, "q".
43840
43841         * lib/mempcpy.c: Include <config.h> before <string.h>.
43842         This fixes a compilation error on HP-UX, due to the system's
43843         "restrict"-using mempcpy prototype.
43844
43845 2007-01-26  Bruno Haible  <bruno@clisp.org>
43846
43847         Small optimization.
43848         * lib/javacomp.c: Include c-strstr.h.
43849          (is_envjavac_gcj): Use c_strstr instead of strstr.
43850         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
43851
43852 2007-01-26  Bruno Haible  <bruno@clisp.org>
43853
43854         * MODULES.html.sh (Unicode string functions): Add the new modules.
43855
43856         * modules/uniconv/u32-strconv-to-locale: New file.
43857         * lib/uniconv/u32-strconv-to-locale.c: New file.
43858
43859         * modules/uniconv/u16-strconv-to-locale: New file.
43860         * lib/uniconv/u16-strconv-to-locale.c: New file.
43861
43862         * modules/uniconv/u8-strconv-to-locale: New file.
43863         * lib/uniconv/u8-strconv-to-locale.c: New file.
43864
43865         * modules/uniconv/u32-strconv-from-locale: New file.
43866         * lib/uniconv/u32-strconv-from-locale.c: New file.
43867
43868         * modules/uniconv/u16-strconv-from-locale: New file.
43869         * lib/uniconv/u16-strconv-from-locale.c: New file.
43870
43871         * modules/uniconv/u8-strconv-from-locale: New file.
43872         * lib/uniconv/u8-strconv-from-locale.c: New file.
43873
43874         * modules/uniconv/u32-strconv-to-enc: New file.
43875         * lib/uniconv/u32-strconv-to-enc.c: New file.
43876         * modules/uniconv/u32-strconv-to-enc-tests: New file.
43877         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
43878
43879         * modules/uniconv/u16-strconv-to-enc: New file.
43880         * lib/uniconv/u16-strconv-to-enc.c: New file.
43881         * lib/uniconv/u-strconv-to-enc.h: New file.
43882         * modules/uniconv/u16-strconv-to-enc-tests: New file.
43883         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
43884
43885         * modules/uniconv/u8-strconv-to-enc: New file.
43886         * lib/uniconv/u8-strconv-to-enc.c: New file.
43887         * modules/uniconv/u8-strconv-to-enc-tests: New file.
43888         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
43889
43890         * modules/uniconv/u32-strconv-from-enc: New file.
43891         * lib/uniconv/u32-strconv-from-enc.c: New file.
43892         * modules/uniconv/u32-strconv-from-enc-tests: New file.
43893         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
43894
43895         * modules/uniconv/u16-strconv-from-enc: New file.
43896         * lib/uniconv/u16-strconv-from-enc.c: New file.
43897         * modules/uniconv/u16-strconv-from-enc-tests: New file.
43898         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
43899
43900         * modules/uniconv/u8-strconv-from-enc: New file.
43901         * lib/uniconv/u8-strconv-from-enc.c: New file.
43902         * lib/uniconv/u-strconv-from-enc.h: New file.
43903         * modules/uniconv/u8-strconv-from-enc-tests: New file.
43904         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
43905
43906         * modules/uniconv/u32-conv-from-enc: New file.
43907         * lib/uniconv/u32-conv-from-enc.c: New file.
43908         * modules/uniconv/u32-conv-from-enc-tests: New file.
43909         * tests/uniconv/test-u32-conv-from-enc.c: New file.
43910
43911         * modules/uniconv/u16-conv-from-enc: New file.
43912         * lib/uniconv/u16-conv-from-enc.c: New file.
43913         * lib/uniconv/u-conv-from-enc.h: New file.
43914         * modules/uniconv/u16-conv-from-enc-tests: New file.
43915         * tests/uniconv/test-u16-conv-from-enc.c: New file.
43916
43917         * modules/uniconv/u8-conv-from-enc: New file.
43918         * lib/uniconv/u8-conv-from-enc.c: New file.
43919         * modules/uniconv/u8-conv-from-enc-tests: New file.
43920         * tests/uniconv/test-u8-conv-from-enc.c: New file.
43921
43922         * modules/uniconv/base: New file.
43923         * lib/uniconv.h: New file.
43924
43925 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
43926
43927         * doc/gnulib-tool.texi (Initial import): Update to match current
43928         behavior with strdup module.
43929         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
43930         * lib/memmem.h: Remove; all uses removed.  This is now done
43931         by <string.h>.
43932         * lib/mempcpy.h: Likewise.
43933         * lib/memrchr.h: Likewise.
43934         * lib/stpcpy.h: Likewise.
43935         * lib/stpncpy.h: Likewise.
43936         * lib/strcase.h: Likewise.
43937         * lib/strchrnul.h: Likewise.
43938         * lib/strdup.h: Likewise.
43939         * lib/strndup.h: Likewise.
43940         * lib/strnlen.h: Likewise.
43941         * lib/strpbrk.h: Likewise.
43942         * lib/strsep.h: Likewise.
43943         * lib/strstr.h: Likewise.
43944         * lib/strtok_r.h: Likewise.
43945         * lib/string_.h: New file.
43946         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
43947         Rely on <string.h> instead.
43948         * lib/canon-host.c: Likewise.
43949         * lib/chdir-long.c: Likewise.
43950         * lib/concatpath.c: Likewise.
43951         * lib/exclude.c: Likewise.
43952         * lib/fchdir.c: Likewise.
43953         * lib/getaddrinfo.c: Likewise.
43954         * lib/getcwd.c: Likewise.
43955         * lib/getsubopt.c: Likewise.
43956         * lib/glob.c: Likewise.
43957         * lib/hard-locale.c: Likewise.
43958         * lib/iconvme.c: Likewise.
43959         * lib/javacomp.c: Likewise.
43960         * lib/mempcpy.c: Likewise.
43961         * lib/memrchr.c: Likewise.
43962         * lib/regex_internal.h: Likewise.
43963         * lib/stpncpy.c: Likewise.
43964         * lib/strcasecmp.c: Likewise.
43965         * lib/strchrnul.c: Likewise.
43966         * lib/strdup.c: Likewise.
43967         * lib/striconv.c: Likewise.
43968         * lib/striconveh.c: Likewise.
43969         * lib/striconveha.c: Likewise.
43970         * lib/strncasecmp.c: Likewise.
43971         * lib/strndup.c: Likewise.
43972         * lib/strnlen.c: Likewise.
43973         * lib/strsep.c: Likewise.
43974         * lib/strstr.c: Likewise.
43975         * lib/strtok_r.c: Likewise.
43976         * lib/userspec.c: Likewise.
43977         * lib/w32spawn.h: Likewise.
43978         * lib/xstrndup.c: Likewise.
43979         * lib/mountlist.c (strstr): Remove decl.
43980         * m4/string_h.m4: New file.
43981         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
43982         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
43983         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
43984         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
43985         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
43986         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
43987         Set REPLACE_STRCASECMP if necessary.
43988         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
43989         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
43990         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
43991         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
43992         HAVE_DECL_STRDUP if necessary.
43993         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
43994         since gl_FUNC_STRNDUP does that now.
43995         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
43996         Check for decl here...
43997         (gl_PREREQ_STRNLEN): ... not here.
43998         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
43999         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44000         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44001         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44002         necessary.
44003         * modules/string: New file.
44004         * modules/memmem (Files): Remove special-purpose include file.
44005         (Depends-on): Add string.
44006         (Include): Include <string.h>, not the removed file.
44007         * modules/mempcpy: Likewise.
44008         * modules/memrchr: Likewise.
44009         * modules/stpcpy: Likewise.
44010         * modules/stpncpy: Likewise.
44011         * modules/strcase: Likewise.
44012         * modules/strchrnul: Likewise.
44013         * modules/strdup: Likewise.
44014         * modules/strndup: Likewise.
44015         * modules/strnlen: Likewise.
44016         * modules/strpbrk: Likewise.
44017         * modules/strsep: Likewise.
44018         * modules/strstr: Likewise.
44019         * modules/strtok_r: Likewise.
44020         * tests/test-dirname.c: Don't include "strdup.h", since
44021         <string.h> now suffices.
44022         * tests/test-memmem.c: Don't include "memmem.h", since
44023         <string.h> now suffices.
44024
44025 2007-01-25  Bruno Haible  <bruno@clisp.org>
44026
44027         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44028         *resultp is 0.
44029
44030         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44031         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44032         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44033         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44034
44035         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44036         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44037         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44038         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44039         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44040         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44041
44042 2007-01-24  Bruno Haible  <bruno@clisp.org>
44043
44044         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44045         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44046         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44047         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44048         gl_FUNC_FTS_CORE.
44049         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44050         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44051         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44052         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44053         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44054         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44055         gl_FUNC_FCHOWNAT.
44056         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44057         gl_FUNC_STRFTIME.
44058         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44059         Reported by Ralf Wildenhues.
44060
44061 2007-01-24  Bruno Haible  <bruno@clisp.org>
44062
44063         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44064         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44065         gl_GETADDRINFO.
44066         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44067         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44068         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44069
44070 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44071
44072         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44073         Don't use 'exit'; just return from 'main'.
44074         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44075
44076         * lib/fnmatch_.h: Readjust white space and comments to match
44077         glibc, to avoid spurious diffs.
44078
44079 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44080
44081         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44082         2004-12-01 change by Jakub Jelinek, since this code won't compile
44083         if !LIBC.  Problem reported by Bob Proulx.
44084
44085 2007-01-23  Bruno Haible  <bruno@clisp.org>
44086
44087         * lib/striconveh.c: Include c-strcaseeq.h.
44088         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44089         * modules/striconveh (Depends-on): Add c-strcaseeq.
44090
44091 2007-01-23  Bruno Haible  <bruno@clisp.org>
44092
44093         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44094
44095         * modules/c-strcaseeq: New file.
44096         * lib/c-strcaseeq.h: New file.
44097
44098         * modules/streq: New file.
44099         * lib/streq.h: New file.
44100
44101 2007-01-23  Bruno Haible  <bruno@clisp.org>
44102
44103         * modules/striconveha-tests: New file.
44104         * tests/test-striconveha.c: New file.
44105
44106         * lib/striconveha.h: Include <stdbool.h>.
44107         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44108         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44109         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44110         (mem_iconveha): New function.
44111         (str_iconveha_notranslit): Renamed from str_iconveha.
44112         (str_iconveha): New function.
44113         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44114         c-strcase.
44115
44116 2007-01-23  Bruno Haible  <bruno@clisp.org>
44117
44118         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44119         encodings without forgiving before trying any encoding with handler.
44120         (str_iconveha): Try all encodings without forgiving before trying any
44121         encoding with handler.
44122
44123 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44124
44125         Import the following changes from libc.
44126
44127         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44128
44129         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44130
44131         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44132
44133         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44134         normal_bracket label.
44135
44136         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44137
44138         [BZ #361]
44139         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44140         to normal_bracket after fetching the next character.
44141
44142 2007-01-22  Bruno Haible  <bruno@clisp.org>
44143
44144         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44145         argument.
44146         * lib/striconveh.c (iconv_carefully_1): New function.
44147         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44148         argument.
44149         (str_cd_iconveh): Update.
44150         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44151         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44152         * tests/test-striconveh.c (MAGIC): New macro.
44153         (new_offsets): New function.
44154         (main): Test call with and without offsets.
44155
44156 2007-01-22  Bruno Haible  <bruno@clisp.org>
44157
44158         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44159         * modules/sys_select (Makefile.am): Likewise.
44160         * modules/sys_socket (Makefile.am): Likewise.
44161         * modules/sys_time (Makefile.am): Likewise.
44162
44163 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44164
44165         * modules/gettimeofday (License): Change from GPL to LGPL, since
44166         gettimeofday is a library function.
44167
44168 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44169
44170         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44171
44172 2007-01-21  Bruno Haible  <bruno@clisp.org>
44173
44174         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44175
44176 2007-01-21  Bruno Haible  <bruno@clisp.org>
44177
44178         * modules/striconveha: New file.
44179         * lib/striconveha.h: New file.
44180         * lib/striconveha.c: New file.
44181         * MODULES.html.sh (Internationalization functions): Add striconveha.
44182         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44183         string.
44184         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44185
44186 2007-01-21  Bruno Haible  <bruno@clisp.org>
44187
44188         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44189         * lib/striconveh.c (str_iconveh): Likewise.
44190
44191 2007-01-21  Bruno Haible  <bruno@clisp.org>
44192
44193         * lib/striconveh.h (mem_iconveh): New declaration.
44194         * lib/striconveh.c (mem_iconveh): New function.
44195         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44196
44197 2007-01-21  Bruno Haible  <bruno@clisp.org>
44198
44199         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44200
44201         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44202         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44203         original result buffer.
44204         (str_cd_iconveh): Update.
44205         * tests/test-striconveh.c (main): Update.
44206
44207         * lib/striconv.h (mem_cd_iconv): Change specification.
44208         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44209         result buffer.
44210         (str_cd_iconv): Update.
44211         * tests/test-striconv.c (main): Update.
44212
44213 2007-01-21  Bruno Haible  <bruno@clisp.org>
44214
44215         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44216
44217 2007-01-20  Jim Meyering  <jim@meyering.net>
44218
44219         * lib/userspec.c (parse_with_separator): If a user or group string
44220         starts with "+", skip the corresponding name-to-ID look-up, since
44221         such a look-up must fail: user and group names may not include "+".
44222
44223 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44224
44225         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44226         since we now assume the sys_time module.
44227         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44228         check for sys/time.h; no longer needed.
44229         * modules/poll (Depends-on): Depend on sys_time.
44230
44231 2007-01-18  Bruno Haible  <bruno@clisp.org>
44232
44233         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44234         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44235
44236         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44237         gettimeofday.
44238
44239         * tests/test-gettimeofday.c: Include <time.h>.
44240         (dummy): Remove variable.
44241
44242         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44243         gl_HEADER_SYS_TIME_H.
44244         (gl_HEADER_SYS_TIME_H): New macro.
44245
44246         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44247         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44248         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44249         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44250         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44251         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44252         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44253         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44254         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44255         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44256         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44257
44258         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44259         last change; it caused a compilation error when cross-compiling to
44260         Cygwin.
44261
44262 2007-01-18  Jim Meyering  <jim@meyering.net>
44263
44264         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44265         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44266         than the race-prone "test -d sys || mkdir sys".
44267         (configure.ac): Use AC_PROG_MKDIR_P.
44268         * modules/sys_select: Likewise.
44269         * modules/sys_socket: Likewise.
44270         * modules/sys_time: Likewise.
44271
44272 2007-01-18  Eric Blake  <ebb9@byu.net>
44273
44274         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44275         replace gettimeofday.
44276         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44277         name, to avoid infinite recursion.
44278
44279 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44280
44281         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44282         module sys_time.
44283         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44284         assume timespec.h defines struct timeval.
44285         * lib/settime.c: Likewise.
44286         * lib/utimens.c: Likewise.
44287         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44288         since we now assume the gettimeofday module.
44289         * lib/tempname.c (__gen_tempname): Likewise.
44290         * lib/gettimeofday.h: Remove.
44291         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44292         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44293         Include <time.h>, for 'time()'.
44294         (localtime_buffer_addr): Also use this workaround if
44295         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44296         to simplify the uses.  All uses changed.
44297         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44298         that #undef is inside {}, and 'const' follows type name consistently.
44299         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44300         (gettimeofday): Do not use the maximum possible value for
44301         tv->tv_usec, since that might break usages other than ls.c.
44302         Instead, we'll leave ls.c alone.  This undoes today's patch
44303         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44304         we've never observed the problem but might as well keep the
44305         canary.
44306         * lib/nanosleep.c: Include timespec.h first, for interface check.
44307         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44308         now assume the sys_time module.
44309         * lib/tempname.c: Likewise.
44310         * lib/timespec.h: Likewise.
44311         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44312         needed.
44313         * lib/strftime.c: Likewise.
44314         * lib/timespec.h: Likewise.
44315         * lib/posixtm.c: Include posixtm.h first, for interface check.
44316         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44317         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44318         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44319         * lib/sys_time_.h: New file.
44320         * lib/timespec.h (struct timespec): Use long int, not long.
44321         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44322         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44323         Remove obsolescent call to AC_HEADER_TIME.
44324         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44325         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44326         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44327         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44328         Likewise.
44329         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44330         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44331         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44332         into the sys_time module.  Check for gettimeofday just once.
44333         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44334         for gettimeofday signature to just check the signature.  Merely
44335         compile it, since linking doesn't test signature.  Improve test for
44336         whether gettimeofday.o is actually needed.
44337         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44338         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44339         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44340         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44341         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44342         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44343         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44344         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44345         than worrying about sys/time.h.
44346         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44347         Don't bother worrying about TIME_WITH_SYS_TIME.
44348         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44349         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44350         * m4/sys_time_h.m4: New file.
44351         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44352         Don't include sys/time.h.  Return from main rather than exiting.
44353         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44354         all uses changed.
44355         * modules/gethrxtime (Depends-on): Add sys_time.
44356         * modules/gettime (Depends-on): Likewise.
44357         * modules/gettimeofday (Depends-on): Likewise.
44358         * modules/nanosleep (Depends-on): Likewise.
44359         * modules/settime (Depends-on): Likewise.
44360         * modules/tempname (Depends-on): Likewise.
44361         * modules/utimens (Depends-on): Likewise.
44362         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44363         (Include:) Change back to <sys/time.h>.
44364         (Maintainer:) Add self.
44365         * modules/sys_time: New file.
44366         * modules/tempname (Depends-on): Add gettimeofday.
44367         * tests/test-gettimeofday.c: Include <sys/time.h>
44368         rather than gettimeofday.h.
44369
44370 2007-01-17  Bruno Haible  <bruno@clisp.org>
44371
44372         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44373         the license default to GPL.
44374         (func_create_testdir): Don't complain if a module is LGPL and its
44375         tests module depends on GPLed modules.
44376
44377 2007-01-17  Bruno Haible  <bruno@clisp.org>
44378
44379         * lib/gettimeofday.c (gettimeofday): Add code for the case
44380         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44381         maximum possible value for tv->tv_usec, rather than the minimum one.
44382
44383 2005-10-08  Martin Lambers  <marlam@marlam.de>
44384 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44385 2007-01-16  Bruno Haible  <bruno@clisp.org>
44386
44387         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44388         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44389         gl_FUNC_GETTIMEOFDAY.
44390         (Include): Add gettimeofday.h.
44391         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44392         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44393         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44394         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44395         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44396         * lib/gettimeofday.h: New file.
44397         * lib/gettimeofday.c: Include <sys/timeb.h>.
44398         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44399         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44400         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44401         fall back on time().
44402
44403         * tests/test-gettimeofday.c: New file.
44404         * modules/gettimeofday-tests: New file.
44405
44406 2007-01-16  Eric Blake  <ebb9@byu.net>
44407
44408         * modules/fnmatch (Depends-on): Depend on wchar.
44409         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44410         * m4/fnmatch.m4: Likewise.
44411         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44412         * m4/mbchar.m4: Likewise.
44413         * modules/mbswidth (Depends-on): Depend on wchar.
44414         * lib/mbswidth.c: Assume <wchar.h>.
44415         * m4/mbswidth.m4: Likewise.
44416         * modules/quotearg (Depends-on): Depend on wchar.
44417         * lib/quotearg.c: Assume <wchar.h>.
44418         * m4/quotearg.m4: Likewise.
44419         * modules/regex (Depends-on): Depend on wchar.
44420         * lib/regex_internal.h: Assume <wchar.h>.
44421         * m4/regex.m4: Likewise.
44422         * modules/stdint (Depends-on): Depend on wchar.
44423         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44424         * m4/stdint.m4: Likewise.
44425         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44426         * modules/strftime (Depends-on): Depend on wchar.
44427         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44428         * modules/strtol (Depends-on): Depend on wchar.
44429         * lib/strtol.c: Assume <wchar.h>.
44430         * modules/wcwidth (Depends-on): Depend on wchar.
44431         * lib/wcwidth.h: Assume <wchar.h>.
44432         * m4/wcwidth.m4: Likewise.
44433
44434 2007-01-16  Bruno Haible  <bruno@clisp.org>
44435
44436         * modules/csharpexec-script: New, created from...
44437         * modules/csharpexec: ... this.
44438
44439 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44440
44441         * modules/javaexec-script: New, created from...
44442         * modules/javaexec: ... this.
44443
44444 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44445
44446         * modules/poll (Dependencies): Add sys_select.
44447
44448 2007-01-15  Jim Meyering  <jim@meyering.net>
44449
44450         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44451         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44452         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44453         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44454
44455 2007-01-15  Bruno Haible  <bruno@clisp.org>
44456
44457         * modules/striconveh: New file.
44458         * lib/striconveh.h: New file.
44459         * lib/striconveh.c: New file.
44460         * MODULES.html.sh (Internationalization functions): Add striconveh.
44461
44462         * modules/striconveh-tests: New file.
44463         * tests/test-striconveh.c: New file.
44464
44465 2007-01-15  Bruno Haible  <bruno@clisp.org>
44466
44467         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44468         not from GNU libiconv or GNU libc.
44469
44470 2007-01-15  Bruno Haible  <bruno@clisp.org>
44471
44472         * doc/gnulib-intro.texi (Copyright): Explain the different license
44473         terms for module descriptions, autoconf macros, tests, documentation.
44474
44475 2007-01-14  Bruno Haible  <bruno@clisp.org>
44476
44477         * modules/striconv-tests: New file.
44478         * tests/test-striconv.c: New file.
44479
44480 2007-01-14  Bruno Haible  <bruno@clisp.org>
44481
44482         * modules/iconv-tests: New file.
44483         * tests/test-iconv.c: New file.
44484
44485 2007-01-14  Bruno Haible  <bruno@clisp.org>
44486
44487         * gnulib-tool (func_get_license): For test modules, use the license of
44488         the main module.
44489
44490 2007-01-14  Bruno Haible  <bruno@clisp.org>
44491
44492         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44493         if iconv is found to exist.
44494
44495 2007-01-14  Bruno Haible  <bruno@clisp.org>
44496
44497         * modules/c-ctype-tests: New file.
44498         * tests/test-c-ctype.c: New file.
44499
44500 2007-01-14  Bruno Haible  <bruno@clisp.org>
44501
44502         * modules/binary-io-tests: New file.
44503         * tests/test-binary-io.sh: New file.
44504         * tests/test-binary-io.c: New file.
44505
44506 2007-01-14  Bruno Haible  <bruno@clisp.org>
44507
44508         * modules/array-oset-tests: New file.
44509         * tests/test-array_oset.c: New file.
44510
44511 2007-01-14  Bruno Haible  <bruno@clisp.org>
44512
44513         * modules/array-list-tests: New file.
44514         * tests/test-array_list.c: New file.
44515
44516 2007-01-14  Bruno Haible  <bruno@clisp.org>
44517
44518         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44519         and make.
44520         Reported by Simon Josefsson in
44521         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44522
44523 2007-01-14  Bruno Haible  <bruno@clisp.org>
44524
44525         * modules/allocsa-tests: New file.
44526         * tests/test-allocsa.c: New file.
44527
44528 2007-01-14  Bruno Haible  <bruno@clisp.org>
44529
44530         * modules/fchdir (Depends-on): Add absolute-header.
44531         * modules/unistd (Depends-on): Likewise.
44532
44533 2006-12-30  Bruno Haible  <bruno@clisp.org>
44534
44535         * modules/fchdir: New file.
44536         * modules/unistd (Files): Add lib/unistd_.h.
44537         (Makefile.am): Generate unistd.h from unistd_.h.
44538         * lib/fchdir.c: New file.
44539         * lib/dirent_.h: New file.
44540         * lib/unistd_.h: New file.
44541         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44542         * m4/fchdir.m4: New file.
44543         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44544         (gl_HEADER_UNISTD): Invoke it.
44545         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44546         function.
44547         * lib/backupfile.c (opendir, closedir): Undefine.
44548         * lib/chown.c (open, close): Undefine.
44549         * lib/clean-temp.c (open, close): Undefine.
44550         * lib/copy-file.c (open, close): Undefine.
44551         * lib/execute.c (open, close): Undefine.
44552         * lib/fsusage.c (open, close): Undefine.
44553         * lib/gc-gnulib.c (open, close): Undefine.
44554         * lib/getcwd.c (opendir, closedir): Undefine.
44555         * lib/glob.c (opendir, closedir): Undefine.
44556         * lib/javacomp.c (open, close): Undefine.
44557         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44558         * lib/openat-proc.c (open, close): Undefine.
44559         * lib/pagealign_alloc.c (open, close): Undefine.
44560         * lib/pipe.c (open, close): Undefine.
44561         * lib/progreloc.c (open, close): Undefine.
44562         * lib/savedir.c (opendir, closedir): Undefine.
44563         * lib/utime.c (open, close): Undefine.
44564         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44565
44566 2007-01-10  Bruno Haible  <bruno@clisp.org>
44567
44568         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44569
44570 2007-01-12  Eric Blake  <ebb9@byu.net>
44571
44572         Provide a robust <wchar.h>.  Further simplifications are now
44573         possible in other modules, but not included here.
44574         * modules/wchar: New module.
44575         * m4/wchar.m4: New file.
44576         * lib/wchar_.h: Likewise.
44577         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44578         of the new module.
44579         * MODULES.html.sh (Extended multibyte and wide character utilities):
44580         New section.
44581
44582 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44583
44584         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44585         to a reasonable default for memory allocation.
44586         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44587         file system that reports garbage st_size values for symlinks.
44588         Problem reported by Liyang Hu.
44589
44590 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44591
44592         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44593         Emacs .#* auto-save files).
44594
44595 2007-01-11  Bruno Haible  <bruno@clisp.org>
44596
44597         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44598         directory.
44599
44600 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44601
44602         Use @...@ consistently in lib/wctype_.h.
44603         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44604         on it being set to 1 or 0.
44605         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44606         go back to AC_SUBSTing it.
44607         * modules/wctype (Makefile.am): Undo previous change.
44608
44609 2007-01-10  Eric Blake  <ebb9@byu.net>
44610
44611         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44612         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44613         * modules/wctype (Makefile.am): Likewise.
44614         Reported by Chris McGuire.
44615
44616 2007-01-10  Jim Meyering  <jim@meyering.net>
44617
44618         fts.c: a small readability/maintainability improvement
44619         * lib/fts.c (fts_read): Make this code slightly more readable and
44620         maintainable by hoisting the "sp->fts_cur = p" assignments to
44621         immediately follow the statements that set P.  Derived from
44622         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44623
44624 2007-01-10  Eric Blake  <ebb9@byu.net>
44625
44626         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
44627         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
44628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44629         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44630         Reported by Chris McGuire.
44631
44632 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44633
44634         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
44635         in sed script.
44636
44637 2007-01-09  Bruno Haible  <bruno@clisp.org>
44638
44639         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
44640         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
44641         variables.
44642         (func_module): Use them.
44643
44644 2007-01-09  Bruno Haible  <bruno@clisp.org>
44645
44646         * modules/unistr/base: New file.
44647         * lib/unistr.h: New file.
44648
44649         * modules/unistr/u8-to-u16: New file.
44650         * lib/unistr/u8-to-u16.c: New file.
44651
44652         * modules/unistr/u8-to-u32: New file.
44653         * lib/unistr/u8-to-u32.c: New file.
44654
44655         * modules/unistr/u16-to-u8: New file.
44656         * lib/unistr/u16-to-u8.c: New file.
44657
44658         * modules/unistr/u16-to-u32: New file.
44659         * lib/unistr/u16-to-u32.c: New file.
44660
44661         * modules/unistr/u32-to-u8: New file.
44662         * lib/unistr/u32-to-u8.c: New file.
44663
44664         * modules/unistr/u32-to-u16: New file.
44665         * lib/unistr/u32-to-u16.c: New file.
44666
44667         * modules/unistr/u8-check: New file.
44668         * modules/unistr/u16-check: New file.
44669         * modules/unistr/u32-check: New file.
44670         * lib/unistr/u8-check.c: New file.
44671         * lib/unistr/u16-check.c: New file.
44672         * lib/unistr/u32-check.c: New file.
44673
44674         * modules/unistr/u8-chr: New file.
44675         * modules/unistr/u16-chr: New file.
44676         * modules/unistr/u32-chr: New file.
44677         * lib/unistr/u8-chr.c: New file.
44678         * lib/unistr/u16-chr.c: New file.
44679         * lib/unistr/u32-chr.c: New file.
44680
44681         * modules/unistr/u8-cmp: New file.
44682         * modules/unistr/u16-cmp: New file.
44683         * modules/unistr/u32-cmp: New file.
44684         * lib/unistr/u8-cmp.c: New file.
44685         * lib/unistr/u16-cmp.c: New file.
44686         * lib/unistr/u32-cmp.c: New file.
44687
44688         * modules/unistr/u8-cpy: New file.
44689         * modules/unistr/u16-cpy: New file.
44690         * modules/unistr/u32-cpy: New file.
44691         * lib/unistr/u8-cpy.c: New file.
44692         * lib/unistr/u16-cpy.c: New file.
44693         * lib/unistr/u32-cpy.c: New file.
44694         * lib/unistr/u-cpy.h: New file.
44695
44696         * modules/unistr/u8-cpy-alloc: New file.
44697         * modules/unistr/u16-cpy-alloc: New file.
44698         * modules/unistr/u32-cpy-alloc: New file.
44699         * lib/unistr/u8-cpy-alloc.c: New file.
44700         * lib/unistr/u16-cpy-alloc.c: New file.
44701         * lib/unistr/u32-cpy-alloc.c: New file.
44702         * lib/unistr/u-cpy-alloc.h: New file.
44703
44704         * modules/unistr/u8-endswith: New file.
44705         * modules/unistr/u16-endswith: New file.
44706         * modules/unistr/u32-endswith: New file.
44707         * lib/unistr/u8-endswith.c: New file.
44708         * lib/unistr/u16-endswith.c: New file.
44709         * lib/unistr/u32-endswith.c: New file.
44710         * lib/unistr/u-endswith.h: New file.
44711
44712         * modules/unistr/u8-mblen: New file.
44713         * modules/unistr/u16-mblen: New file.
44714         * modules/unistr/u32-mblen: New file.
44715         * lib/unistr/u8-mblen.c: New file.
44716         * lib/unistr/u16-mblen.c: New file.
44717         * lib/unistr/u32-mblen.c: New file.
44718
44719         * modules/unistr/u8-mbtouc: New file.
44720         * modules/unistr/u16-mbtouc: New file.
44721         * modules/unistr/u32-mbtouc: New file.
44722         * lib/unistr/u8-mbtouc.c: New file.
44723         * lib/unistr/u16-mbtouc.c: New file.
44724         * lib/unistr/u32-mbtouc.c: New file.
44725
44726         * modules/unistr/u8-mbtouc-safe: New file.
44727         * modules/unistr/u16-mbtouc-safe: New file.
44728         * modules/unistr/u32-mbtouc-safe: New file.
44729         * lib/unistr/u8-mbtouc-safe.c: New file.
44730         * lib/unistr/u16-mbtouc-safe.c: New file.
44731         * lib/unistr/u32-mbtouc-safe.c: New file.
44732
44733         * modules/unistr/u8-move: New file.
44734         * modules/unistr/u16-move: New file.
44735         * modules/unistr/u32-move: New file.
44736         * lib/unistr/u8-move.c: New file.
44737         * lib/unistr/u16-move.c: New file.
44738         * lib/unistr/u32-move.c: New file.
44739         * lib/unistr/u-move.h: New file.
44740
44741         * modules/unistr/u8-next: New file.
44742         * modules/unistr/u16-next: New file.
44743         * modules/unistr/u32-next: New file.
44744         * lib/unistr/u8-next.c: New file.
44745         * lib/unistr/u16-next.c: New file.
44746         * lib/unistr/u32-next.c: New file.
44747
44748         * modules/unistr/u8-prev: New file.
44749         * modules/unistr/u16-prev: New file.
44750         * modules/unistr/u32-prev: New file.
44751         * lib/unistr/u8-prev.c: New file.
44752         * lib/unistr/u16-prev.c: New file.
44753         * lib/unistr/u32-prev.c: New file.
44754
44755         * modules/unistr/u8-set: New file.
44756         * modules/unistr/u16-set: New file.
44757         * modules/unistr/u32-set: New file.
44758         * lib/unistr/u8-set.c: New file.
44759         * lib/unistr/u16-set.c: New file.
44760         * lib/unistr/u32-set.c: New file.
44761         * lib/unistr/u-set.h: New file.
44762
44763         * modules/unistr/u8-startswith: New file.
44764         * modules/unistr/u16-startswith: New file.
44765         * modules/unistr/u32-startswith: New file.
44766         * lib/unistr/u8-startswith.c: New file.
44767         * lib/unistr/u16-startswith.c: New file.
44768         * lib/unistr/u32-startswith.c: New file.
44769         * lib/unistr/u-startswith.h: New file.
44770
44771         * modules/unistr/u8-stpcpy: New file.
44772         * modules/unistr/u16-stpcpy: New file.
44773         * modules/unistr/u32-stpcpy: New file.
44774         * lib/unistr/u8-stpcpy.c: New file.
44775         * lib/unistr/u16-stpcpy.c: New file.
44776         * lib/unistr/u32-stpcpy.c: New file.
44777         * lib/unistr/u-stpcpy.h: New file.
44778
44779         * modules/unistr/u8-stpncpy: New file.
44780         * modules/unistr/u16-stpncpy: New file.
44781         * modules/unistr/u32-stpncpy: New file.
44782         * lib/unistr/u8-stpncpy.c: New file.
44783         * lib/unistr/u16-stpncpy.c: New file.
44784         * lib/unistr/u32-stpncpy.c: New file.
44785         * lib/unistr/u-stpncpy.h: New file.
44786
44787         * modules/unistr/u8-strcat: New file.
44788         * modules/unistr/u16-strcat: New file.
44789         * modules/unistr/u32-strcat: New file.
44790         * lib/unistr/u8-strcat.c: New file.
44791         * lib/unistr/u16-strcat.c: New file.
44792         * lib/unistr/u32-strcat.c: New file.
44793         * lib/unistr/u-strcat.h: New file.
44794
44795         * modules/unistr/u8-strchr: New file.
44796         * modules/unistr/u16-strchr: New file.
44797         * modules/unistr/u32-strchr: New file.
44798         * lib/unistr/u8-strchr.c: New file.
44799         * lib/unistr/u16-strchr.c: New file.
44800         * lib/unistr/u32-strchr.c: New file.
44801
44802         * modules/unistr/u8-strcmp: New file.
44803         * modules/unistr/u16-strcmp: New file.
44804         * modules/unistr/u32-strcmp: New file.
44805         * lib/unistr/u8-strcmp.c: New file.
44806         * lib/unistr/u16-strcmp.c: New file.
44807         * lib/unistr/u32-strcmp.c: New file.
44808
44809         * modules/unistr/u8-strcpy: New file.
44810         * modules/unistr/u16-strcpy: New file.
44811         * modules/unistr/u32-strcpy: New file.
44812         * lib/unistr/u8-strcpy.c: New file.
44813         * lib/unistr/u16-strcpy.c: New file.
44814         * lib/unistr/u32-strcpy.c: New file.
44815         * lib/unistr/u-strcpy.h: New file.
44816
44817         * modules/unistr/u8-strcspn: New file.
44818         * modules/unistr/u16-strcspn: New file.
44819         * modules/unistr/u32-strcspn: New file.
44820         * lib/unistr/u8-strcspn.c: New file.
44821         * lib/unistr/u16-strcspn.c: New file.
44822         * lib/unistr/u32-strcspn.c: New file.
44823         * lib/unistr/u-strcspn.h: New file.
44824
44825         * modules/unistr/u8-strdup: New file.
44826         * modules/unistr/u16-strdup: New file.
44827         * modules/unistr/u32-strdup: New file.
44828         * lib/unistr/u8-strdup.c: New file.
44829         * lib/unistr/u16-strdup.c: New file.
44830         * lib/unistr/u32-strdup.c: New file.
44831         * lib/unistr/u-strdup.h: New file.
44832
44833         * modules/unistr/u8-strlen: New file.
44834         * modules/unistr/u16-strlen: New file.
44835         * modules/unistr/u32-strlen: New file.
44836         * lib/unistr/u8-strlen.c: New file.
44837         * lib/unistr/u16-strlen.c: New file.
44838         * lib/unistr/u32-strlen.c: New file.
44839         * lib/unistr/u-strlen.h: New file.
44840
44841         * modules/unistr/u8-strmblen: New file.
44842         * modules/unistr/u16-strmblen: New file.
44843         * modules/unistr/u32-strmblen: New file.
44844         * lib/unistr/u8-strmblen.c: New file.
44845         * lib/unistr/u16-strmblen.c: New file.
44846         * lib/unistr/u32-strmblen.c: New file.
44847
44848         * modules/unistr/u8-strmbtouc: New file.
44849         * modules/unistr/u16-strmbtouc: New file.
44850         * modules/unistr/u32-strmbtouc: New file.
44851         * lib/unistr/u8-strmbtouc.c: New file.
44852         * lib/unistr/u16-strmbtouc.c: New file.
44853         * lib/unistr/u32-strmbtouc.c: New file.
44854
44855         * modules/unistr/u8-strncat: New file.
44856         * modules/unistr/u16-strncat: New file.
44857         * modules/unistr/u32-strncat: New file.
44858         * lib/unistr/u8-strncat.c: New file.
44859         * lib/unistr/u16-strncat.c: New file.
44860         * lib/unistr/u32-strncat.c: New file.
44861         * lib/unistr/u-strncat.h: New file.
44862
44863         * modules/unistr/u8-strncmp: New file.
44864         * modules/unistr/u16-strncmp: New file.
44865         * modules/unistr/u32-strncmp: New file.
44866         * lib/unistr/u8-strncmp.c: New file.
44867         * lib/unistr/u16-strncmp.c: New file.
44868         * lib/unistr/u32-strncmp.c: New file.
44869
44870         * modules/unistr/u8-strncpy: New file.
44871         * modules/unistr/u16-strncpy: New file.
44872         * modules/unistr/u32-strncpy: New file.
44873         * lib/unistr/u8-strncpy.c: New file.
44874         * lib/unistr/u16-strncpy.c: New file.
44875         * lib/unistr/u32-strncpy.c: New file.
44876         * lib/unistr/u-strncpy.h: New file.
44877
44878         * modules/unistr/u8-strnlen: New file.
44879         * modules/unistr/u16-strnlen: New file.
44880         * modules/unistr/u32-strnlen: New file.
44881         * lib/unistr/u8-strnlen.c: New file.
44882         * lib/unistr/u16-strnlen.c: New file.
44883         * lib/unistr/u32-strnlen.c: New file.
44884         * lib/unistr/u-strnlen.h: New file.
44885
44886         * modules/unistr/u8-strpbrk: New file.
44887         * modules/unistr/u16-strpbrk: New file.
44888         * modules/unistr/u32-strpbrk: New file.
44889         * lib/unistr/u8-strpbrk.c: New file.
44890         * lib/unistr/u16-strpbrk.c: New file.
44891         * lib/unistr/u32-strpbrk.c: New file.
44892         * lib/unistr/u-strpbrk.h: New file.
44893
44894         * modules/unistr/u8-strrchr: New file.
44895         * modules/unistr/u16-strrchr: New file.
44896         * modules/unistr/u32-strrchr: New file.
44897         * lib/unistr/u8-strrchr.c: New file.
44898         * lib/unistr/u16-strrchr.c: New file.
44899         * lib/unistr/u32-strrchr.c: New file.
44900
44901         * modules/unistr/u8-strspn: New file.
44902         * modules/unistr/u16-strspn: New file.
44903         * modules/unistr/u32-strspn: New file.
44904         * lib/unistr/u8-strspn.c: New file.
44905         * lib/unistr/u16-strspn.c: New file.
44906         * lib/unistr/u32-strspn.c: New file.
44907         * lib/unistr/u-strspn.h: New file.
44908
44909         * modules/unistr/u8-strstr: New file.
44910         * modules/unistr/u16-strstr: New file.
44911         * modules/unistr/u32-strstr: New file.
44912         * lib/unistr/u8-strstr.c: New file.
44913         * lib/unistr/u16-strstr.c: New file.
44914         * lib/unistr/u32-strstr.c: New file.
44915         * lib/unistr/u-strstr.h: New file.
44916
44917         * modules/unistr/u8-strtok: New file.
44918         * modules/unistr/u16-strtok: New file.
44919         * modules/unistr/u32-strtok: New file.
44920         * lib/unistr/u8-strtok.c: New file.
44921         * lib/unistr/u16-strtok.c: New file.
44922         * lib/unistr/u32-strtok.c: New file.
44923         * lib/unistr/u-strtok.h: New file.
44924
44925         * modules/unistr/u8-uctomb: New file.
44926         * modules/unistr/u16-uctomb: New file.
44927         * modules/unistr/u32-uctomb: New file.
44928         * lib/unistr/u8-uctomb.c: New file.
44929         * lib/unistr/u16-uctomb.c: New file.
44930         * lib/unistr/u32-uctomb.c: New file.
44931
44932         * MODULES.html.sh (Unicode string functions): Add the new modules.
44933
44934 2007-01-08  Bruno Haible  <bruno@clisp.org>
44935
44936         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
44937         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
44938         subdirectories.
44939
44940 2007-01-08  Karl Berry  <karl@gnu.org>
44941
44942         * doc/error.texi: mention that main() fns must set program_name
44943         when progname is used.
44944
44945 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
44946
44947         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
44948         WCTYPE_H is empty, for the benefit of builds from non-distclean
44949         directories.  Problem reported by Eric Blake in
44950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
44951
44952 2007-01-08  Bruno Haible  <bruno@clisp.org>
44953
44954         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
44955         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
44956         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
44957         PROVIDE_CANONICALIZE_FILENAME_MODE.
44958         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
44959
44960 2007-01-08  Bruno Haible  <bruno@clisp.org>
44961
44962         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
44963         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
44964         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
44965         * lib/fts.c: Likewise.
44966         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
44967
44968 2006-12-25  Bruno Haible  <bruno@clisp.org>
44969
44970         * modules/utf8-ucs4-safe: New file.
44971         * lib/utf8-ucs4-safe.h: New file.
44972         * lib/unistr/utf8-ucs4-safe.c: New file.
44973
44974         * modules/utf16-ucs4-safe: New file.
44975         * lib/utf16-ucs4-safe.h: New file.
44976         * lib/unistr/utf16-ucs4-safe.c: New file.
44977
44978         * MODULES.html.sh (Unicode string functions): Add the new modules.
44979
44980 2007-01-08  Bruno Haible  <bruno@clisp.org>
44981
44982         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
44983         (Depends-on): Add unitypes.
44984         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44985         (u8_mbtouc_aux): Move out to separate file.
44986         (u8_mbtouc): Use ucs4_t, uint8_t types.
44987         * lib/unistr/utf8-ucs4.c: New file.
44988
44989         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
44990         (Depends-on): Add unitypes.
44991         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44992         (u16_mbtouc_aux): Move out to separate file.
44993         (u16_mbtouc): Use ucs4_t, uint16_t types.
44994         * lib/unistr/utf16-ucs4.c: New file.
44995
44996         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
44997         (Depends-on): Add unitypes.
44998         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
44999         (u8_uctomb_aux): Move out to separate file.
45000         (u8_uctomb): Use ucs4_t, uint8_t types.
45001         * lib/unistr/ucs4-utf8.c: New file.
45002
45003         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45004         (Depends-on): Add unitypes.
45005         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45006         (u16_uctomb_aux): Move out to separate file.
45007         (u16_uctomb): Use ucs4_t, uint16_t types.
45008         * lib/unistr/ucs4-utf16.c: New file.
45009
45010 2006-12-25  Bruno Haible  <bruno@clisp.org>
45011
45012         * modules/unitypes: New file.
45013         * lib/unitypes.h: New file.
45014         * MODULES.html.sh (func_all_modules): New section "Unicode string
45015         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45016         this section. Add unitypes.
45017
45018 2007-01-08  Bruno Haible  <bruno@clisp.org>
45019
45020         Avoid variable names that conflict with those from libtool.
45021         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45022         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45023         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45024         library_names_spec to acl_library_names_spec, hardcode_* to
45025         acl_hardcode_*.
45026         Reported by Ralf Wildenhues.
45027
45028 2007-01-08  Bruno Haible  <bruno@clisp.org>
45029
45030         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45031         definition.
45032         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45033         definition.
45034         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45035         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45036         definition.
45037         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45038         definition.
45039         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45040         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45041         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45042         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45043         definition.
45044         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45045         definition.
45046         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45047         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45048         GC_USE_<algorithm>.
45049         * lib/gc-libgcrypt.c: Likewise.
45050         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45051         * modules/gc-arctwo (configure.ac): Likewise.
45052         * modules/gc-des (configure.ac): Likewise.
45053         * modules/gc-hmac-md5 (configure.ac): Likewise.
45054         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45055         * modules/gc-md2 (configure.ac): Likewise.
45056         * modules/gc-md4 (configure.ac): Likewise.
45057         * modules/gc-md5 (configure.ac): Likewise.
45058         * modules/gc-random (configure.ac): Likewise.
45059         * modules/gc-rijndael (configure.ac): Likewise.
45060         * modules/gc-sha1 (configure.ac): Likewise.
45061
45062 2007-01-08  Bruno Haible  <bruno@clisp.org>
45063
45064         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45065         macro definition.
45066         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45067         definition.
45068         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45069         definition.
45070         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45071         * modules/fcntl-safer (configure.ac): Likewise.
45072         * modules/fopen-safer (configure.ac): Likewise.
45073         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45074         GNULIB_FWRITEERROR macro definition.
45075
45076 2007-01-08  Bruno Haible  <bruno@clisp.org>
45077
45078         * m4/gnulib-common.m4: New file.
45079         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45080         (func_get_filelist): Add m4/gnulib-common.m4.
45081
45082 2007-01-08  Bruno Haible  <bruno@clisp.org>
45083
45084         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45085         command.
45086
45087 2007-01-08  Jim Meyering  <jim@meyering.net>
45088
45089         Use a more robust test for a "can't happen" condition.
45090         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45091         narrowed the st_size value.  Presuming the "can't happen" condition
45092         is true, that narrowing could conceivably convert an invalid st_size
45093         value into a valid one.  Instead, use a change based on Matthew
45094         Woehlke's original patch.
45095
45096         Slight readability improvement: use an assert-like macro
45097         in place of literal "abort ()" uses.
45098         * lib/fts.c (fts_assert): Define.
45099         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45100         Use this macro instead of a bare 'abort'.
45101
45102 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45103
45104         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45105         simply work around them.
45106         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45107         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45108         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45109         declaring.
45110         Don't bother to define as macros, since the standard doesn't require it.
45111         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45112         longer worry about IRIX 5.3.
45113         (HAVE_WCTYPE_CTMP_BUG): Remove.
45114
45115 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45116
45117         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45118         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45119         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45120         Problems reported by Georg Schwarz for IRIX 5.3.
45121
45122         * gnulib-tool (autoconf_minversion): Take the maximum version number
45123         found, not the minimum.  Problem reported by James Youngman.
45124
45125 2007-01-03  Karl Berry  <karl@gnu.org>
45126
45127         * doc/error.texi: new file, explaining interaction with progname.
45128         * doc/gnulib.texi: include it.  Update copyright.
45129
45130 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45131
45132         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45133         AC_CANONICAL_HOST, to improve autobuild outputs.
45134
45135 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45136             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45137
45138         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45139         sockets, server sockets, and other file descriptors.  Count errors
45140         to compute the return value.  Reorder the code a bit to be easier
45141         to follow.  Don't set event bits that were not requested (except
45142         POLLERR and POLLHUP).
45143
45144 2007-01-01  Bruno Haible  <bruno@clisp.org>
45145
45146         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45147
45148 2007-01-03  Jim Meyering  <jim@meyering.net>
45149
45150         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45151
45152 2007-01-02  Bruno Haible  <bruno@clisp.org>
45153
45154         * modules/settime (Include): Require timespec.h.
45155         * modules/nanosleep (Include): Likewise.
45156
45157 2007-01-01  Bruno Haible  <bruno@clisp.org>
45158
45159         * gnulib-tool (func_emit_copyright_notice): Bump year.
45160         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45161
45162 2007-01-01  Bruno Haible  <bruno@clisp.org>
45163
45164         Improve support for OpenBSD.
45165         * build-aux/config.rpath (libname_spec): Export.
45166         (library_names_spec): New variable. Export.
45167         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45168         library_names_spec from the config.rpath output. Locate shared library
45169         through the name pattern in library_names_spec.
45170
45171 2007-01-01  Eric Blake  <ebb9@byu.net>
45172
45173         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45174
45175 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45176
45177         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45178         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45179         assume the C locale, and avoid an "eval" that could cause trouble.
45180         Problem with SORT reported by Bob Proulx.
45181
45182         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45183         Define.  Trivial patch from Henning Nielsen Lund, originally
45184         sent to bug-grep@gnu.org today.
45185
45186 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45187
45188         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45189         struct stat.  Problem reported by Henning Nielsen Lund.
45190         * lib/acl.c: Include acl.h first, to check interface.  Don't
45191         bother to include sys/types.h and sys/stat.h again.
45192
45193 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45194
45195         Import the following change from libc; problem reported by
45196         Sven Verdoolaege.
45197
45198         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45199
45200         [BZ #1373]
45201         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45202
45203 2006-12-28  Jim Meyering  <jim@meyering.net>
45204
45205         * build-aux/announce-gen: Do not assume that the package
45206         builds any of tar.gz, tar.bz2, and .xdelta files.
45207         Suggestion from Simon Josefsson.
45208
45209 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45210
45211         * modules/announce-gen: New file.
45212
45213 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45214
45215         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45216         handles its gotchas now.
45217         * lib/mbswidth.c: Likewise.
45218         * lib/wcwidth.h: Likewise.
45219         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45220         and iswcntrl; the wctype module does this stuff now.
45221         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45223         * modules/mbchar (Depends-on): Add wctype.
45224         * modules/mbswidth (Depends-on): Likewise.
45225         * modules/wcwidth (Depends-on): Likewise.
45226
45227 2006-12-27  Eric Blake  <ebb9@byu.net>
45228
45229         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45230         module uses more than what <wctype.h> is required to provide.
45231
45232 2006-12-26  Eric Blake  <ebb9@byu.net>
45233
45234         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45235
45236 2006-12-26  Eric Blake  <ebb9@byu.net>
45237
45238         * modules/absolute-header: New module.
45239         * modules/fcntl (Depends-on): Depend on it.
45240         * modules/inttypes (Depends-on): Likewise.
45241         * modules/stdint (Depends-on): Likewise.
45242         * modules/sys_stat (Depends-on): Likewise.
45243         * modules/wctype (Depends-on): Likewise.
45244         * MODULES.html.sh (Support for building libraries and
45245         executables): Document it.
45246
45247 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45248
45249         * gnulib-tool (SED): Remove, undoing previous change.
45250         The problem was that it broke coreutils on Solaris, because
45251         "sed --posix" leaked into a makefile.
45252         (sed): New alias, if 'alias' and GNU sed.
45253
45254 2006-12-24  Jim Meyering  <jim@meyering.net>
45255
45256         Work around an fchownat bug in glibc-2.4:
45257         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45258         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45259         in spite of the -P option.
45260         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45261         New macros.
45262         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45263         * modules/openat (Files): Add lib/fchownat.c.
45264         * lib/openat.c (fchownat): Don't define here.  Move to...
45265         * lib/fchownat.c: ...this new file.
45266
45267 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45268
45269         Fix bug reported by Bruno Haible in
45270         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45271         where quotearg.c didn't compile on Mac OS X 10.2 because it
45272         lacks <wchar.h> and wint_t.
45273         * lib/wctype_.h (__wctype_wint_t): New type.
45274         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45275         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45276         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45277         Arg is now of type __wctype_wint_t, not wint_t.
45278         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45279         substitute HAVE_WINT_T.
45280         * modules/wctype (Files): Add m4/wint_t.m4.
45281         (wctype.h): Substitute HAVE_WINT_T.
45282
45283 2006-12-23  Bruno Haible  <bruno@clisp.org>
45284
45285         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45286
45287 2006-12-23  Bruno Haible  <bruno@clisp.org>
45288
45289         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45290         S_ISLNK.
45291         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45292         mingw.
45293
45294 2006-12-22  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/copy-file.c: Include acl.h.
45297         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45298         Close the file descriptors only after being done with copy_acl.
45299         * modules/copy-file (Depends-on): Add acl.
45300
45301 2006-12-22  Bruno Haible  <bruno@clisp.org>
45302
45303         * gnulib-tool (SED): New variable.
45304         Use $SED instead of sed everywhere.
45305
45306 2006-12-22  Bruno Haible  <bruno@clisp.org>
45307
45308         * modules/no-c++: New file.
45309         * m4/no-c++.m4: New file.
45310         * MODULES.html.sh (Support for building libraries and executables):
45311         Add no-c++.
45312
45313 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45314
45315         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45316         Include <limits.h>, and use its INT_MAX to rewrite the
45317         j loop so that it does not overflow 'int'.  Problem reported by
45318         Ralf Wildenhues in
45319         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45320         Play it safe by shifting left by 1 rather than multiplying by 2,
45321         as GCC is less likely to optimize this away when the value
45322         is signed (when it assumes overflow leads to undefined behavior).
45323         Also, don't assume time_t uses two's complement.
45324
45325 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45326
45327         * MODULES.html.sh: New module wctype.
45328         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45329         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45330         <wctype.h>, since the new wctype module should fix this.
45331         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45332         the wctype module should arrange for it.
45333         * lib/regex_internal.h: Likewise.
45334         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45335         since the wctype module should handle this now.
45336         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45337         * modules/fnmatch (Depends-on): Add wctype.
45338         * modules/quotearg (Depends-on): Likewise.
45339         * modules/regex (Depends-on): Likewise.
45340
45341 2006-12-19  Bruno Haible  <bruno@clisp.org>
45342
45343         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45344         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45345
45346 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45347
45348         * modules/savewd (Depends-on): Fix dependency on fcntl.
45349
45350 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45351
45352         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45353         conforms to C99, rather than relying on the user's environment
45354         setting of STDINT_H.
45355
45356 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45357         and Eric Blake  <ebb9@byu.net>
45358
45359         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45360         This is more consistent with the other defines here.
45361         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45362         Port to z/OS.  Problem reported by Paul Gilmartin.
45363         Change local vars to use gl_ prefix rather than ac_.
45364         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45365         with other defines.
45366         * modules/double-slash-root: New module.
45367         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45368         (Depends-on): Add double-slash-root.
45369         * MODULES.html.sh (File system functions): Mention new module.
45370
45371 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45372
45373         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45374         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45375         This is for the benefit of gzip, which doesn't do i18n.
45376
45377 2006-12-12  Jim Meyering  <jim@meyering.net>
45378
45379         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45380         Reported by Andreas Schwab <schwab@suse.de>.
45381
45382 2006-12-12  Bruno Haible  <bruno@clisp.org>
45383
45384         Merge these changes.
45385         2006-09-05  Bruno Haible  <bruno@clisp.org>
45386         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45387         iconv_alloc succeeded.
45388         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45389         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45390         test for " && dest " at the end - dest is always != NULL there. Call
45391         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45392         with 2xNULL arguments, also to flush the state storage. Handle the
45393         IRIX iconv behaviour. Realloc the final result, to throw away unused
45394         memory.
45395
45396 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45397
45398         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45399         and fchmodat unconditionally, since glibc 2.4 has them.
45400         Problem reported by Arkadiusz Miskiewicz.
45401
45402 2006-12-10  Bruno Haible  <bruno@clisp.org>
45403
45404         * gnulib-tool (func_import): Show the include files only for those
45405         modules that are copied and specified.
45406         Reported by Karl Berry.
45407
45408 2006-12-08  Jim Meyering  <jim@meyering.net>
45409
45410         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45411         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45412
45413         * build-aux/announce-gen: Add two new options, both optional:
45414         --bootstrap-tools=TOOL_LIST
45415               a comma-separated list of tools, e.g.,
45416               autoconf,automake,bison,gnulib
45417         --gnulib-snapshot-date=DATE
45418               if gnulib is in the bootstrap tool list,
45419               then report this as the snapshot date.
45420               If not specified, use the current date/time.
45421               If you specify a date here, be sure it's UTC.
45422
45423 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45424
45425         * tests/test-argp-2.sh: Fix test to match actual output.
45426         (func_compare): Fix sed script to be portable.
45427
45428 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45429
45430         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45431         workaround for this case.  It is not autoconfigured now; offhand
45432         it's hard to see how to autoconfigure it.
45433
45434 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45435
45436         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45437         a directory that is about to be chowned.  Such a directory's
45438         initial file permissions should permit the owner only and this
45439         should not be changed until after the chown, since the group and
45440         other bits would be incorrect if they granted permission before
45441         the chown.
45442
45443         Fix porting problem for iswctype reported by Georg Schwarz in:
45444         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45445         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45446         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45447         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45448         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45449
45450 2006-12-03  Jim Meyering  <jim@meyering.net>
45451
45452         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45453         p->fts_statp may not yet be defined.
45454         (fts_read): Instead, set it in the caller, once p->fts_statp is
45455         sure to be defined, and corresponds to a top-level directory.
45456         This bug made du -x fail.  Here's the coreutils test case:
45457         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45458         Reported by Mike Frysinger.
45459
45460 2006-12-01  Jim Meyering  <jim@meyering.net>
45461
45462         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45463         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45464         Reported by Simon Josefsson.
45465
45466 2006-11-30  Jim Meyering  <jim@meyering.net>
45467
45468         * m4/warning.m4: Use the all-permissive copyright notice
45469         recommended by RMS (rather than LGPL).
45470         * m4/vararrays.m4: Likewise.
45471         * m4/flexmember.m4: Likewise.
45472
45473 2006-11-29  Bruno Haible  <bruno@clisp.org>
45474
45475         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45476         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45477         using +=.
45478         Reported by Simon Josefsson <simon@josefsson.org>.
45479
45480 2006-11-28  James Youngman <jay@gnu.org>
45481
45482         * README: Advise users that they might find the bug-gnulib@gnu.org
45483         and autotools-announce@gnu.org mailing lists useful.
45484
45485 2006-11-28  Bruno Haible  <bruno@clisp.org>
45486
45487         * m4/ptrdiff_max.m4: Remove file.
45488
45489 2006-11-21  Bruno Haible  <bruno@clisp.org>
45490
45491         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45492         _AC_COMPUTE_INT.
45493         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45494         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45495         _AC_COMPUTE_INT.
45496         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45497         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45498         _AC_COMPUTE_INT.
45499         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45500
45501 2006-11-28  Jim Meyering  <jim@meyering.net>
45502
45503         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45504         warning from "gcc -Wshadow" about shadowing the builtin.
45505
45506 2006-11-27  Bruno Haible  <bruno@clisp.org>
45507
45508         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45509         _AC_COMPUTE_INT.
45510         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45511
45512 2006-11-27  Bruno Haible  <bruno@clisp.org>
45513             Paul Eggert  <eggert@cs.ucla.edu>
45514
45515         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45516
45517 2006-11-26  Bruno Haible  <bruno@clisp.org>
45518
45519         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45520         noinst_LTLIBRARIES.
45521
45522 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45523             Bruno Haible  <bruno@clisp.org>
45524
45525         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45526         if compiling with "gcc -ansi".
45527
45528 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45529
45530         Fix some incompatibilities with gcc -ansi -pedantic.
45531         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45532         if compiling pedantically with GCC, unless it's C99 or later.
45533         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45534         it mishandles gcc -ansi -pedantic as well.
45535         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45536         if gcc -pedantic.
45537         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45538         initializers for struct if -pedantic, unless it's C99 or later.
45539
45540 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45541
45542         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45543         Don't close an fd more than once. Identical atimes indicate
45544         success, not failure.
45545
45546 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45547
45548         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45549
45550 2006-11-23  Jim Meyering  <jim@meyering.net>
45551
45552         * build-aux/announce-gen: New file.  From coreutils.
45553
45554 2006-11-22  Jim Meyering  <jim@meyering.net>
45555
45556         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45557         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45558         (fts_read): Use a temporary to narrow the overused st_size member
45559         before using it in a switch statement.  Reported by Matthew Woehlke.
45560
45561         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45562         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45563
45564 2006-11-20  Bruno Haible  <bruno@clisp.org>
45565
45566         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45567         changequote instead of pairs of brackets.
45568         Reported by Andreas Schwab <schwab@suse.de>.
45569
45570 2006-11-21  Jim Meyering  <jim@meyering.net>
45571
45572         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45573         so as to remain compatible with older compilers.
45574         Patch from Michael Deutschmann.
45575
45576 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45577
45578         * MODULES.html.sh (File system functions): Add openat.
45579
45580         * lib/openat.h (rpl_fstatat): New macro, if
45581         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45582         (fstatat): Define to rpl_fstatat under the same conditions,
45583         unless COMPILING_FSTATAT.
45584         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45585         seems to have the bug.
45586         * lib/fstatat.c: New file.
45587         * modules/openat (Files): Add it.
45588
45589 2006-11-20  Bruno Haible  <bruno@clisp.org>
45590
45591         * Makefile: New file.
45592
45593 2006-11-20  Jim Meyering  <jim@meyering.net>
45594
45595         The beginnings of syntax-related checks for gnulib.
45596         * lib/Makefile: New file.
45597         * lib/t-idcache: New script.  Ensure that the two halves of
45598         idcache.c stay in sync.
45599
45600         * lib/idcache.c: Adjust comments in user- and group- portions to
45601         be more accurate, and to be consistent with one another.
45602
45603 2006-11-20  Jim Meyering  <jim@meyering.net>
45604
45605         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45606         continue using the flexible array member (thus, this module performs
45607         half as many malloc calls), with the addition that...
45608         (getgroup, getuser): Consistently record a non-match via an empty
45609         "name" string, and map an empty string match to a NULL return value.
45610         * modules/idcache (Depends-on): Re-add flexmember.
45611
45612         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45613         (getuidbyname, getgroup, getgidbyname): Likewise.
45614
45615         Use cleaner syntax: NULL rather than 0.
45616         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45617
45618 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45619
45620         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45621         It mishandled the case where the group was missing.
45622         Problem reported by Greg Schafer.
45623         * modules/idcache: Likewise.
45624
45625 2006-11-18  Jim Meyering  <jim@meyering.net>
45626
45627         * check-module (%exempt_header): Add exception for some
45628         conditionally-included headers.
45629
45630         * modules/i-ring (Depends-on): Add verify.
45631         (License): Change to LGPL.
45632
45633 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45634
45635         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
45636         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
45637         and inttostr.h.  Use snprintf rather than uinttostr, so that
45638         LGPLed code doesn't depend on GPLed.
45639
45640 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45641
45642         * modules/inline (License): Change from GPL to LGPL.
45643
45644 2006-11-17  Jim Meyering  <jim@meyering.net>
45645
45646         * modules/d-type (License): Switch to LGPL.
45647
45648 2006-11-15  Bruno Haible  <bruno@clisp.org>
45649
45650         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
45651
45652 2006-11-15  Eric Blake  <ebb9@byu.net>
45653
45654         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
45655         the module dependency.
45656
45657 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45658             Bruno Haible  <bruno@clisp.org>
45659
45660         * gnulib-tool (func_create_testdir): Add license consistency check.
45661
45662 2006-11-15  Eric Blake  <ebb9@byu.net>
45663
45664         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
45665         random "(cached)" in configure output.
45666
45667 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45668
45669         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
45670         test for conforming inttypes.h is both announced and cached.
45671
45672         * MODULES.html.sh (seen_modules, seen_files): New variables.
45673         (func_module): Rewrite to use a few less gnulib-tool and sed
45674         invocations.  Avoid a couple of quadratic algorithms for ...
45675         (missed_modules, missed_files): ... these, with ...
45676         (func_append, func_tmpdir): ... these new functions, from
45677         gnulib-tool.  Analogously, install traps for cleanup.
45678
45679         * tests/test-gc.c (main): Remove unused variables.
45680         * tests/test-read-file.c: Include stdlib.h, for 'free'.
45681
45682 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
45683
45684         * modules/inttostr (License): Change to LGPL.
45685
45686 2006-11-14  Eric Blake  <ebb9@byu.net>
45687
45688         * modules/tempname (License): Change to LGPL.
45689
45690 2006-11-14  Eric Blake  <ebb9@byu.net>
45691
45692         * doc/functions.texi (Function Portability): *printf functions on
45693         Cygwin now understand all POSIX size specifiers.
45694
45695 2006-11-14  Bruno Haible  <bruno@clisp.org>
45696
45697         * modules/c-ctype (License): Change to LGPL.
45698
45699 2006-11-12  Bruno Haible  <bruno@clisp.org>
45700
45701         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45702         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
45703         for GNOME libraries, for which the include files are installed in
45704         subdirectories of $prefix/include.
45705
45706 2006-11-12  Bruno Haible  <bruno@clisp.org>
45707
45708         * m4/lib-link.m4: Require at least autoconf-2.54.
45709         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
45710         name to underscores for the --with option.
45711
45712 2006-11-13  Bruno Haible  <bruno@clisp.org>
45713
45714         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
45715         the tests directory.
45716         Reported by Ralf Wildenhues.
45717
45718 2006-11-13  Bruno Haible  <bruno@clisp.org>
45719
45720         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
45721         (func_emit_initmacro_end): Undo the override here.
45722         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
45723         Works around the famous automake error in coreutils.
45724
45725 2006-11-13  Eric Blake  <ebb9@byu.net>
45726
45727         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
45728         element, not its node.
45729
45730 2006-11-12  Bruno Haible  <bruno@clisp.org>
45731
45732         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
45733         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
45734
45735 2006-11-12  Bruno Haible  <bruno@clisp.org>
45736
45737         * gnulib-tool: New option --local-symlink.
45738         (func_usage): Document it.
45739         (lsymbolic): New variable.
45740         (func_import, func_create_testdir): If --symlink was not specified,
45741         test whether --local-symlink was specified and the file comes from
45742         the local_gnulib_dir.
45743
45744 2006-11-12  Bruno Haible  <bruno@clisp.org>
45745
45746         * gnulib-tool (func_ln): New function.
45747         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
45748
45749 2006-11-12  Bruno Haible  <bruno@clisp.org>
45750
45751         Finish support for source files in subdirectories.
45752         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
45753         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
45754         AUTOMAKE_OPTIONS.
45755         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
45756
45757 2006-11-12  Bruno Haible  <bruno@clisp.org>
45758
45759         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45760         EXTRA_lib_SOURCES augmentation.
45761         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
45762
45763 2006-11-12  Jim Meyering  <jim@meyering.net>
45764
45765         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
45766         file descriptors.  This also averts a failure on systems with
45767         native openat support when a traversed directory lacks "x" access.
45768         * lib/fts_.h: Include "i-ring.h"
45769         (struct FTS) [fts_fd_ring]: New member.
45770         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
45771         (FCHDIR): Add parentheses.
45772         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
45773         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
45774         When descending, rather than simply closing the previous
45775         fts_cwd_fd value, push that file descriptor onto the ring.
45776         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
45777         (fts_open): Initialize the new fd_ring member.
45778         (fts_close): Clear the ring.
45779         (fts_safe_changedir): When possible, use our new fd_ring to skip
45780         the diropen and fstat and dev/ino comparison that would normally
45781         accompany a virtual `chdir ("..")'.
45782
45783         * modules/fts (Depends-on): Add i-ring.
45784         * modules/i-ring: New module.
45785         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
45786         * m4/i-ring.m4: New file.
45787
45788 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45789
45790         * gnulib-tool (func_create_testdir): Fix replacement of
45791         `build-aux' in configure.ac.  Run autotools in gltests
45792         subdirectory.
45793         (func_create_testdir, func_create_megatestdir, test): There is
45794         no need for '--force' in most autotool invocations in a new
45795         tree.  Actually fail the whole test if any of the tools, or the
45796         configure or make stages fail.
45797
45798         Sync from Automake.
45799         * build-aux/gnupload: Revert last change.  Add pointer to upload
45800         instructions of the GNU Maintenance Instructions.
45801         Suggestion by Karl Berry.
45802
45803 2006-11-10  Jim Meyering  <jim@meyering.net>
45804
45805         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
45806
45807 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45808
45809         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
45810         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
45811         (bind_textdomain_codeset) [! ENABLE_NLS]:
45812         Evaluate all the arguments.  That way, callers get compatible behavior
45813         if the arguments have side effects.  Also, it avoids some GCC
45814         diagnostics in some cases; Joel E. Denny reported problems when Bison
45815         was configured with --enable-gcc-warnigs.
45816
45817 2006-11-10  Jim Meyering  <jim@meyering.net>
45818
45819         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
45820         relevant options in CFLAGS (like -O, -fno-inline) are taken into
45821         account.
45822
45823 2006-11-10  Jim Meyering  <jim@meyering.net>
45824
45825         * modules/inline: New file/module.
45826         * modules/xalloc (Files): Remove m4/inline.m4.
45827         (Depends-on): Add inline, instead.
45828         * modules/oset: Likewise.
45829         * modules/list: Likewise.
45830
45831 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45832
45833         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
45834         Problem reported by Matthew Woehlke.
45835
45836 2006-11-09  Bruno Haible  <bruno@clisp.org>
45837
45838         * lib/tempname.c (gen_tempname): Remove variant that invokes
45839         __gen_tempname.
45840         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
45841         __gen_tempname.
45842
45843 2006-11-08  Bruno Haible  <bruno@clisp.org>
45844
45845         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
45846         to 'yes' instead of 'cross-compiling'.
45847
45848 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
45849
45850         * lib/quotearg.h (quotearg_free): New decl.
45851         * lib/quotearg.c (quotearg_free): New function.
45852         (slot0, nslots, slotvec0, slotvec):
45853         Now file-scope so that quotearg_free can get at them.
45854
45855 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45856
45857         Sync from Automake.
45858         * build-aux/gnupload: Add missing 'gnu' to example URL.
45859         Report by Karl Berry.
45860
45861 2006-11-08  Bruno Haible  <bruno@clisp.org>
45862
45863         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
45864         Suggested by Paul Eggert.
45865
45866 2006-11-08  Jim Meyering  <jim@meyering.net>
45867
45868         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
45869         It's already included if !_LIBC.
45870         (fts_safe_changedir): Add a comment.
45871
45872 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45873
45874         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
45875         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
45876         Matthew Woehlke.
45877
45878         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
45879         definitions up, to avoid colliding with change below.
45880         (static_inline) [HAVE_INLINE]: New macro.
45881         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
45882         Provide extern decls when !HAVE_INLINE.  Do not define unless
45883         static_inline is defined, either by us or by xmalloc.c.  Use
45884         static_inline rather than static inline.
45885         (XCALLOC): Optimize sizeof(T) = 1 case.
45886         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
45887
45888 2006-11-07  Bruno Haible  <bruno@clisp.org>
45889
45890         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
45891         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
45892         AC_C_INLINE.
45893         * modules/xalloc (Files): Add m4/inline.m4.
45894
45895 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45896
45897         * README: Fix typo.
45898         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
45899         (Miscellanous Notes): ...from this.
45900
45901 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45902
45903         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
45904         Mention that offsetof should be used instead of sizeof.
45905         From Bruno Haible.
45906
45907 2006-11-07  Bruno Haible  <bruno@clisp.org>
45908
45909         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
45910
45911 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45912
45913         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45914         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
45915         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45916         (gl_tree_add_before, gl_tree_add_after):
45917         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
45918         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
45919         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
45920         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
45921         (gl_linked_add_after, gl_linked_add_at): Likewise.
45922         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
45923         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45924         (gl_tree_add_before, gl_tree_add_after): Likewise.
45925         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
45926         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
45927         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
45928
45929 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45930
45931         * lib/gl_oset.h: Use C comment style, not C++ comment style.
45932
45933 2006-11-06  Bruno Haible  <bruno@clisp.org>
45934
45935         * m4/inline.m4: New file.
45936         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
45937         * modules/list (Files): Add m4/inline.m4.
45938         * modules/oset (Files): Likewise.
45939
45940 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45941
45942         * lib/idcache.c: Include <stddef.h>, for offsetof.
45943         (struct userid.name): Change from char * to a flexible array member.
45944         All uses changed.
45945         * modules/idcache (Depends-on): Add flexmember.
45946
45947         * MODULES.html.sh (Core language properties): New module flexmember.
45948         * modules/flexmember, m4/flexmember.m4: New files.
45949
45950         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
45951         inline functions that are identical with the old xnmalloc_inline,
45952         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
45953         that we can avoid some unnecessary integer multiplications and
45954         divisions in the common case where the element size is known at
45955         compile time.
45956         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
45957         needed.
45958         (xnboundedmalloc): Remove.
45959         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
45960         arguments, for consistency with rest of this header.
45961         (xcharalloc): Rewrite using XNMALLOC.
45962         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
45963         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
45964         versions have been moved to lib/xalloc.h and renamed to be the
45965         non-*_inline versions.
45966         (xmalloc, xrealloc): Implement without reference to the xnmalloc
45967         and xnrealloc functions, since those functions are now inline and
45968         now call us.
45969         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
45970         renaming described above.
45971         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
45972         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
45973         captures the dependency in AC_C_INLINE.
45974
45975         New module canonicalize-lgpl, proposed by Charles Wilson in
45976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
45977         with a few small changes afterwards.
45978         * MODULES.html.sh (File system functions): New module
45979         canonicalize-lgpl.
45980         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
45981         and canonicalize_file_name.
45982         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
45983         * modules/canonicalize-lgpl: New files.
45984
45985 2006-11-05  Bruno Haible  <bruno@clisp.org>
45986
45987         * gnulib-tool (func_import, func_create_testdir): Create directories
45988         also for files in subdirectories of lib/.
45989
45990 2006-11-05  Bruno Haible  <bruno@clisp.org>
45991
45992         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
45993         ANSI C compliant.
45994
45995 2006-11-03  Bruno Haible  <bruno@clisp.org>
45996
45997         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45998         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
45999         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46000         (xnboundedmalloc): New inline function.
46001         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46002         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46003         xmalloc.
46004         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46005         xmalloc.
46006         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46007         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46008         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46009         xmalloc.
46010         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46011         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46012         xmalloc.
46013         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46014         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46015         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46016         xmalloc.
46017         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46018         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46019         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46020         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46021         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46022         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46023         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46024
46025 2006-11-03  Bruno Haible  <bruno@clisp.org>
46026
46027         * lib/c-ctype.h [C++]: Define functions without name mangling.
46028         * lib/fwriteerror.h [C++]: Likewise.
46029         * lib/gcd.h [C++]: Likewise.
46030         * lib/linebreak.h [C++]: Likewise.
46031
46032 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46033
46034         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46035         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46036         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46037         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46038         Check for functions and headers just once.
46039         Check for declaration of canonicalize_file_name.
46040         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46041
46042 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46043
46044         * gnulib-tool (func_import): Fix typo in actioncmd.
46045
46046 2006-11-02  Bruno Haible  <bruno@clisp.org>
46047
46048         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46049         newline sequence in the Makefile.am snippet as a space, like "make"
46050         does.
46051         Reported by Roger Persson <perrog@gmail.com>.
46052
46053 2006-11-01  Bruno Haible  <bruno@clisp.org>
46054
46055         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46056         already declared in <string.h>.
46057         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46058
46059 2006-11-01  Bruno Haible  <bruno@clisp.org>
46060
46061         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46062         * lib/strcase.h: Include <string.h>.
46063         (strcasecmp): Define to rpl_strcasecmp here.
46064
46065 2006-11-01  Bruno Haible  <bruno@clisp.org>
46066
46067         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46068
46069 2006-11-01  Eric Blake  <ebb9@byu.net>
46070
46071         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46072
46073         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46074
46075 2006-10-29  Bruno Haible  <bruno@clisp.org>
46076
46077         Make it compile in C++ mode.
46078         * lib/full-write.c (full_rw): Add a cast.
46079
46080 2006-11-01  Bruno Haible  <bruno@clisp.org>
46081
46082         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46083         be POSIX compliant.
46084         Reported by Roger Persson <perrog@gmail.com>.
46085
46086 2006-11-01  Eric Blake  <ebb9@byu.net>
46087
46088         * lib/getopt_.h: Fix comments.
46089
46090 2006-10-31  Eric Blake  <ebb9@byu.net>
46091
46092         * modules/tmpdir (Depends-on): Add sys_stat.
46093         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46094         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46095         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46096         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46097         tempname.
46098
46099 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46100
46101         Avoid some C++ diagnostics reported by Bruno Haible.
46102         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46103         xmalloc.
46104         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46105         (struct slotvec): Move to top level.
46106         (quotearg_n_options): Rewrite to avoid xmalloc.
46107         * lib/xalloc.h (xcharalloc): New function.
46108         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46109         [defined __cplusplus]: Add function template that provides result
46110         type propagation.  This part of the change is from Bruno Haible.
46111
46112 2006-10-29  Bruno Haible  <bruno@clisp.org>
46113
46114         Make it compile in C++ mode.
46115         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46116         * lib/strnlen1.c (strnlen1): Cast memchr result.
46117         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46118         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46119         (create_temp_dir): Rename local variable 'template'.
46120         (compile_csharp_using_sscli): Add cast.
46121         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46122         * lib/findprog.c (find_in_path): Likewise.
46123         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46124         * lib/wait-process.c (register_slave_subprocess): Likewise.
46125
46126 2006-10-22  Bruno Haible  <bruno@clisp.org>
46127
46128         * modules/tsearch: New file.
46129         * lib/tsearch.h: New file.
46130         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46131         * m4/tsearch.m4: New file.
46132         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46133
46134 2006-10-29  Eric Blake  <ebb9@byu.net>
46135
46136         * lib/arcfour.c: Assume config.h.
46137         * lib/arctwo.c: Likewise.
46138         * lib/base64.c: Likewise.
46139         * lib/check-version.c: Likewise.
46140         * lib/crc.c: Likewise.
46141         * lib/des.c: Likewise.
46142         * lib/gc-gnulib.c: Likewise.
46143         * lib/gc-libgcrypt.c: Likewise.
46144         * lib/gc-pbkdf2-sha1.c: Likewise.
46145         * lib/getaddrinfo.c: Likewise.
46146         * lib/getdelim.c: Likewise.
46147         * lib/getline.c: Likewise.
46148         * lib/hmac-md5.c: Likewise.
46149         * lib/hmac-sha1.c: Likewise.
46150         * lib/iconvme.c: Likewise.
46151         * lib/md2.c: Likewise.
46152         * lib/md4.c: Likewise.
46153         * lib/memxor.c: Likewise.
46154         * lib/read-file.c: Likewise.
46155         * lib/readline.c: Likewise.
46156         * lib/rijndael-alg-fst.c: Likewise.
46157         * lib/rijndael-api-fst.c: Likewise.
46158         * lib/xgetdomainname.c: Likewise.
46159
46160 2006-10-28  Eric Blake  <ebb9@byu.net>
46161
46162         * lib/xstrndup.c: Assume config.h.
46163
46164 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46165
46166         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46167         stat-macros.h is now for our own macros, whereas stat_h is for
46168         macros in the <sys/stat.h> name space.
46169         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46170         (STAT_MACROS_H): Remove.
46171         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46172         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46173         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46174         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46175         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46176         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46177         Move these macros to ...
46178         * lib/stat_.h: here.  Don't include stat-macros.h.
46179         * lib/canonicalize.c: Don't include stat-macros.h.
46180         * lib/chown.c: Likewise.
46181         * lib/euidaccess.c: Likewise.
46182         * lib/file-type.c: Likewise.
46183         * lib/filemode.c: Likewise.
46184         * lib/glob.c: Likewise.
46185         * lib/isapipe.c: Likewise.
46186         * lib/lchown.c: Likewise.
46187         * lib/lstat.c: Likewise.
46188         * lib/mkdir-p.c: Likewise.
46189         * lib/rmdir.c: Likewise.
46190         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46192         unless mkdir isn't declared, to speed up 'configure'.
46193         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46194         would define all the S_* symbols.
46195         * modules/canonicalize (Depends-on):
46196         Depend on sys_stat, not stat-macros.
46197         * modules/chown: Likewise.
46198         * modules/euidaccess: Likewise.
46199         * modules/filemode: Likewise.
46200         * modules/file-type: Likewise.
46201         * modules/glob: Likewise.
46202         * modules/isapipe: Likewise.
46203         * modules/lchown: Likewise.
46204         * modules/lstat: Likewise.
46205         * modules/mkancesdirs: Likewise.
46206         * modules/rmdir: Likewise.
46207         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46208         * modules/modechange: Likewise.
46209         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46210         (configure.ac): Remove gl_STAT_MACROS.
46211         * modules/sys_stat (Depends-on): Remove stat-macros.
46212
46213 2006-10-27  Bruno Haible  <bruno@clisp.org>
46214
46215         * m4/signed.m4: Remove file.
46216         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46217         invocation.
46218         * modules/vasnprintf (Files): Remove m4/signed.m4.
46219
46220 2006-10-27  Bruno Haible  <bruno@clisp.org>
46221
46222         Update to GNU gettext 0.16.
46223         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46224         m4/inttypes-h.m4, m4/signed.m4.
46225         * m4/gettext.m4: Update to GNU gettext 0.16.
46226         * m4/intl.m4: New file, from GNU gettext.
46227         * m4/intldir.m4: New file, from GNU gettext.
46228         * config/srclist.txt: Update
46229
46230 2006-10-27  Eric Blake  <ebb9@byu.net>
46231
46232         * MODULES.html.sh: Document tempname.
46233         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46234         dependencies.
46235         (Files): Move lib/tempname.c...
46236         * modules/tempname: ...to this new module.
46237         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46238         (gl_PREREQ_TEMPNAME): Move...
46239         * m4/tempname.m4: ...to this new file.
46240         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46241         * modules/sys_stat (Depends-on): Add stat-macros.
46242         * lib/stat_.h (includes): Pick up stat macros.
46243         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46244         if stat macros are broken.
46245         * lib/tempname.c (includes): No need to include "stat-macros.h".
46246         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46247         (direxists, __path_search) [!_LIBC]: Don't compile these in
46248         gnulib; the tmpdir module covers that.
46249         * lib/tempname.h: New file.
46250
46251 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46252
46253         * COPYING: Explain how gnulib-tool converts licence headers.
46254         Almost all wording by Eric Blake.
46255
46256 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46257
46258         * lib/mbchar.h (is_basic_table): Make read-only.
46259         * lib/mbchar.c (is_basic_table): Likewise.
46260         Reported by John Darrington.
46261
46262 2006-10-25  Bruno Haible  <bruno@clisp.org>
46263
46264         * lib/progname.h (set_program_name): Undefine before defining.
46265
46266 2006-10-25  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46269         false for non-gcc C++ compilers.
46270         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46271
46272 2006-10-24  Bruno Haible  <bruno@clisp.org>
46273
46274         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46275         iconv implementations like Irix iconv.
46276
46277 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46278
46279         * modules/vararrays: New file.
46280         * m4/vararrays.m4: New file, taken from diffutils.
46281         * MODULES.html.sh: New module vararrays.
46282
46283 2006-10-24  Karl Berry  <karl@gnu.org>
46284
46285         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46286         Don't call GNU Unix.
46287
46288 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46289
46290         * users.txt: Add Libtool.
46291
46292         Sync from Libtool:
46293
46294         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46295
46296         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46297         to gnulib's policy of including config.h unconditionally.
46298
46299 2006-10-24  Bruno Haible  <bruno@clisp.org>
46300
46301         * modules/wcwidth (Files): Add m4/wint_t.m4.
46302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46303         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46304
46305 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46306
46307         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46308         to pacify GCC with some -W flags enabled.  Problem reported by
46309         Bruno Haible.
46310
46311 2006-10-24  Jim Meyering  <jim@meyering.net>
46312
46313         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46314         Reported by Karl Berry.
46315
46316 2006-10-23  Bruno Haible  <bruno@clisp.org>
46317
46318         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46319
46320 2006-10-24  Bruno Haible  <bruno@clisp.org>
46321
46322         * lib/gl_list.h: Use C comment style, not C++ comment style.
46323
46324 2006-10-23  Eric Blake  <ebb9@byu.net>
46325
46326         * lib/getaddrinfo.c (includes): Add missing include.
46327
46328 2006-10-23  Bruno Haible  <bruno@clisp.org>
46329             Paul Eggert  <eggert@cs.ucla.edu>
46330
46331         Ability to rename obstack_free.
46332         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46333         obstack_free.
46334         (obstack_free): Invoke the __obstack_free macro.
46335         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46336
46337 2006-10-23  Bruno Haible  <bruno@clisp.org>
46338             Paul Eggert  <eggert@cs.ucla.edu>
46339
46340         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46341         __argc, __argv from the declaration. (They are defined as macros on
46342         mingw.)
46343
46344 2006-10-22  Bruno Haible  <bruno@clisp.org>
46345
46346         * doc/gnulib-intro.texi: New file.
46347         * doc/gnulib.texi: Include it.
46348
46349 2006-10-21  Bruno Haible  <bruno@clisp.org>
46350
46351         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46352         "Introduction", "Miscellanous Notes", "Particular Modules".
46353
46354 2006-10-21  Bruno Haible  <bruno@clisp.org>
46355
46356         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46357         Change mostlyclean-local rule to avoid sh syntax error from bash
46358         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46359
46360 2006-10-23  Jim Meyering  <jim@meyering.net>
46361
46362         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46363         in place of snprintf.
46364
46365         * modules/inttostr (Files): Add lib/uinttostr.c.
46366         * lib/uinttostr.c (inttostr): New file/function.
46367         * lib/inttostr.h (uinttostr): Declare.
46368         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46369         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46370         Add uinttostr.
46371         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46372
46373 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46374
46375         * lib/canonicalize.c (ELOOP): Define if not already defined.
46376         Problem reported by Bruno Haible in
46377         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46378
46379 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46380
46381         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46382         Problem reported by Perry Smith and Ville Laurikari.
46383
46384         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46385         uses.
46386
46387 2006-10-19  Bruno Haible  <bruno@clisp.org>
46388
46389         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46390         for mingw.
46391
46392 2006-10-19  Bruno Haible  <bruno@clisp.org>
46393
46394         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46395         Needed for mingw.
46396
46397 2006-10-19  Bruno Haible  <bruno@clisp.org>
46398
46399         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46400
46401 2006-10-19  Bruno Haible  <bruno@clisp.org>
46402
46403         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46404         it.
46405
46406 2006-10-19  Bruno Haible  <bruno@clisp.org>
46407
46408         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46409         invocation.
46410
46411 2006-10-19  Bruno Haible  <bruno@clisp.org>
46412
46413         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46414         mountlist by default.
46415
46416 2006-10-16  Bruno Haible  <bruno@clisp.org>
46417
46418         * lib/c-strstr.c: Include c-strstr.h.
46419
46420 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46421
46422         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46423         in a slash.
46424
46425 2006-10-18  Bruno Haible  <bruno@clisp.org>
46426
46427         * lib/lock.h [C++]: Wrap definitions in extern "C".
46428
46429 2006-10-18  Bruno Haible  <bruno@clisp.org>
46430
46431         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46432         gl_LIBOBJS list.
46433
46434 2006-10-18  Bruno Haible  <bruno@clisp.org>
46435
46436         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46437
46438 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46439
46440         * lib/xstrtol.h: Include gettext.h.
46441         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46442         Problem reported by Eric Blake.
46443         * modules/xstrtol (Depends-on): Add gettext-h.
46444
46445 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46446
46447         * lib/strftime.c (advance): New macro.
46448         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46449         incomplete type, so you can't add 0 to it.  Problem and patch
46450         reported by Eelco Dolstra for dietlibc.
46451
46452 2006-10-18  Jim Meyering  <jim@meyering.net>
46453
46454         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46455         type for a local, and rename it: s/up/user_proc/.
46456
46457 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46458
46459         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46460         READ_UTMP_USER_PROCESS.
46461         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46462
46463 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46464
46465         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46466         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46467
46468 2006-10-17  Eric Blake  <ebb9@byu.net>
46469
46470         * lib/sigprocmask.c (sigprocmask): Fix typo.
46471
46472         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46473
46474         * modules/clean-temp (Makefile.am): Don't add to make output...
46475         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46476         config.h.
46477
46478 2006-10-17  Bruno Haible  <bruno@clisp.org>
46479
46480         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46481         differently if DEFAULT_TEXT_DOMAIN is set.
46482
46483 2006-10-16  Bruno Haible  <bruno@clisp.org>
46484
46485         * lib/clean-temp.c: Include fwriteerror.h.
46486
46487 2006-10-16  Bruno Haible  <bruno@clisp.org>
46488
46489         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46490
46491 2006-10-16  Bruno Haible  <bruno@clisp.org>
46492
46493         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46494         * lib/sigprocmask.h: Include <sys/types.h>.
46495         (sigset_t): Use the system's definition if present.
46496
46497 2006-10-17  Eric Blake  <ebb9@byu.net>
46498
46499         * lib/xvasprintf.c (includes): Assume config.h.
46500         * lib/xasprintf.c (includes): Likewise.
46501
46502 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46503
46504         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46505         at least as wide as intmax_t.
46506
46507 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46508
46509         (Imported from Automake.)
46510         * build-aux/gnupload: Update to version 1.1 of directive file.
46511
46512 2006-10-16  Eric Blake  <ebb9@byu.net>
46513
46514         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46515         match Automake 1.10a.
46516
46517 2006-10-14  Bruno Haible  <bruno@clisp.org>
46518
46519         * modules/sigprocmask: New file.
46520         * lib/sigprocmask.h: New file.
46521         * lib/sigprocmask.c: New file.
46522         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46523         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46524         request sigprocmask.o.
46525         (gl_PREREQ_SIGPROCMASK): New macro.
46526         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46527         (Depends-on): Add sigprocmask.
46528         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46529         gt_SIGNALBLOCKING. Test for 'raise' only once.
46530         * lib/fatal-signal.c: Include sigprocmask.h.
46531         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46532         unblock_fatal_signals): Define always.
46533         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46534         sigprocmask.
46535
46536 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46537
46538         Sync from Automake.
46539         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46540         which incorrectly sets the mode of an existing destination
46541         directory.  In some cases the unpatched install-sh could do the
46542         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46543         system.  We hope this is rare in practice, but it's clearly worth
46544         fixing.  Problem reported by Alex Unleashed in
46545         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46546         Also, don't bother to check for -m bugs unless we're using -m;
46547         suggested by Stepan Kasal.
46548
46549 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46550
46551         Sync from Automake.
46552         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46553         `-c' flag, so they appear at the same position as in %FASTDEP%
46554         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46555         which ignores unknown options only after the first non-option.
46556         Bug report against M4 by Nelson H. F. Beebe.
46557
46558 2006-10-13  Jim Meyering  <jim@meyering.net>
46559
46560         Fix a bug in yesterday's change.
46561         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46562         p->fts_statp->st_dev would be used uninitialized.
46563         Ensures that we always call fts_stat on the very first entry.
46564         Miklos Szeredi reported that find -xdev stopped working.
46565
46566 2006-10-12  Bruno Haible  <bruno@clisp.org>
46567
46568         * gnulib-tool (func_get_automake_snippet): Append an automatically
46569         computed EXTRA_DIST augmentation.
46570         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46571         * modules/alloca-opt (Makefile.am): Likewise.
46572         * modules/allocsa (Makefile.am): Likewise.
46573         * modules/arcfour (Makefile.am): Likewise.
46574         * modules/arctwo (Makefile.am): Likewise.
46575         * modules/argmatch (Makefile.am): Likewise.
46576         * modules/argz (Makefile.am): Likewise.
46577         * modules/atexit (Makefile.am): Likewise.
46578         * modules/backupfile (Makefile.am): Likewise.
46579         * modules/byteswap (Makefile.am): Likewise.
46580         * modules/c-strtod (Makefile.am): Likewise.
46581         * modules/c-strtold (Makefile.am): Likewise.
46582         * modules/calloc (Makefile.am): Likewise.
46583         * modules/canon-host (Makefile.am): Likewise.
46584         * modules/canonicalize (Makefile.am): Likewise.
46585         * modules/chdir-long (Makefile.am): Likewise.
46586         * modules/chdir-safer (Makefile.am): Likewise.
46587         * modules/check-version (Makefile.am): Likewise.
46588         * modules/chown (Makefile.am): Likewise.
46589         * modules/cloexec (Makefile.am): Likewise.
46590         * modules/close-stream (Makefile.am): Likewise.
46591         * modules/closeout (Makefile.am): Likewise.
46592         * modules/crc (Makefile.am): Likewise.
46593         * modules/csharpexec (Makefile.am): Likewise.
46594         * modules/cycle-check (Makefile.am): Likewise.
46595         * modules/des (Makefile.am): Likewise.
46596         * modules/dev-ino (Makefile.am): Likewise.
46597         * modules/dirfd (Makefile.am): Likewise.
46598         * modules/dirname (Makefile.am): Likewise.
46599         * modules/dup2 (Makefile.am): Likewise.
46600         * modules/eealloc (Makefile.am): Likewise.
46601         * modules/error (Makefile.am): Likewise.
46602         * modules/euidaccess (Makefile.am): Likewise.
46603         * modules/exclude (Makefile.am): Likewise.
46604         * modules/exitfail (Makefile.am): Likewise.
46605         * modules/fcntl-safer (Makefile.am): Likewise.
46606         * modules/fcntl (Makefile.am): Likewise.
46607         * modules/file-type (Makefile.am): Likewise.
46608         * modules/fileblocks (Makefile.am): Likewise.
46609         * modules/filemode (Makefile.am): Likewise.
46610         * modules/filenamecat (Makefile.am): Likewise.
46611         * modules/fnmatch (Makefile.am): Likewise.
46612         * modules/fopen-safer (Makefile.am): Likewise.
46613         * modules/fpending (Makefile.am): Likewise.
46614         * modules/fprintftime (Makefile.am): Likewise.
46615         * modules/free (Makefile.am): Likewise.
46616         * modules/fsusage (Makefile.am): Likewise.
46617         * modules/ftruncate (Makefile.am): Likewise.
46618         * modules/fts (Makefile.am): Likewise.
46619         * modules/gc-arcfour (Makefile.am): Likewise.
46620         * modules/gc-des (Makefile.am): Likewise.
46621         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46622         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46623         * modules/gc-md4 (Makefile.am): Likewise.
46624         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46625         * modules/gc-sha1 (Makefile.am): Likewise.
46626         * modules/gc (Makefile.am): Likewise.
46627         * modules/getaddrinfo (Makefile.am): Likewise.
46628         * modules/getcwd (Makefile.am): Likewise.
46629         * modules/getdelim (Makefile.am): Likewise.
46630         * modules/getdomainname (Makefile.am): Likewise.
46631         * modules/getgroups (Makefile.am): Likewise.
46632         * modules/gethostname (Makefile.am): Likewise.
46633         * modules/gethrxtime (Makefile.am): Likewise.
46634         * modules/getline (Makefile.am): Likewise.
46635         * modules/getloadavg (Makefile.am): Likewise.
46636         * modules/getlogin_r (Makefile.am): Likewise.
46637         * modules/getndelim2 (Makefile.am): Likewise.
46638         * modules/getopt (Makefile.am): Likewise.
46639         * modules/getpagesize (Makefile.am): Likewise.
46640         * modules/getpass-gnu (Makefile.am): Likewise.
46641         * modules/getpass (Makefile.am): Likewise.
46642         * modules/getsubopt (Makefile.am): Likewise.
46643         * modules/gettime (Makefile.am): Likewise.
46644         * modules/gettimeofday (Makefile.am): Likewise.
46645         * modules/getugroups (Makefile.am): Likewise.
46646         * modules/getusershell (Makefile.am): Likewise.
46647         * modules/glob (Makefile.am): Likewise.
46648         * modules/group-member (Makefile.am): Likewise.
46649         * modules/hard-locale (Makefile.am): Likewise.
46650         * modules/hash (Makefile.am): Likewise.
46651         * modules/hmac-md5 (Makefile.am): Likewise.
46652         * modules/hmac-sha1 (Makefile.am): Likewise.
46653         * modules/human (Makefile.am): Likewise.
46654         * modules/idcache (Makefile.am): Likewise.
46655         * modules/imaxabs (Makefile.am): Likewise.
46656         * modules/imaxdiv (Makefile.am): Likewise.
46657         * modules/inet_ntop (Makefile.am): Likewise.
46658         * modules/inet_pton (Makefile.am): Likewise.
46659         * modules/intprops (Makefile.am): Likewise.
46660         * modules/inttostr (Makefile.am): Likewise.
46661         * modules/inttypes (Makefile.am): Likewise.
46662         * modules/isapipe (Makefile.am): Likewise.
46663         * modules/javaversion (Makefile.am): Likewise.
46664         * modules/lchmod (Makefile.am): Likewise.
46665         * modules/lchown (Makefile.am): Likewise.
46666         * modules/localcharset (Makefile.am): Likewise.
46667         * modules/long-options (Makefile.am): Likewise.
46668         * modules/lstat (Makefile.am): Likewise.
46669         * modules/malloc (Makefile.am): Likewise.
46670         * modules/mathl (Makefile.am): Likewise.
46671         * modules/mbchar (Makefile.am): Likewise.
46672         * modules/md2 (Makefile.am): Likewise.
46673         * modules/md4 (Makefile.am): Likewise.
46674         * modules/md5 (Makefile.am): Likewise.
46675         * modules/memcasecmp (Makefile.am): Likewise.
46676         * modules/memchr (Makefile.am): Likewise.
46677         * modules/memcmp (Makefile.am): Likewise.
46678         * modules/memcoll (Makefile.am): Likewise.
46679         * modules/memcpy (Makefile.am): Likewise.
46680         * modules/memmem (Makefile.am): Likewise.
46681         * modules/memmove (Makefile.am): Likewise.
46682         * modules/mempcpy (Makefile.am): Likewise.
46683         * modules/memrchr (Makefile.am): Likewise.
46684         * modules/memset (Makefile.am): Likewise.
46685         * modules/memxor (Makefile.am): Likewise.
46686         * modules/mkancesdirs (Makefile.am): Likewise.
46687         * modules/mkdir-p (Makefile.am): Likewise.
46688         * modules/mkdir (Makefile.am): Likewise.
46689         * modules/mkdtemp (Makefile.am): Likewise.
46690         * modules/mkstemp (Makefile.am): Likewise.
46691         * modules/mktime (Makefile.am): Likewise.
46692         * modules/modechange (Makefile.am): Likewise.
46693         * modules/mountlist (Makefile.am): Likewise.
46694         * modules/nanosleep (Makefile.am): Likewise.
46695         * modules/obstack (Makefile.am): Likewise.
46696         * modules/openat (Makefile.am): Likewise.
46697         * modules/pagealign_alloc (Makefile.am): Likewise.
46698         * modules/pathmax (Makefile.am): Likewise.
46699         * modules/physmem (Makefile.am): Likewise.
46700         * modules/poll (Makefile.am): Likewise.
46701         * modules/posixtm (Makefile.am): Likewise.
46702         * modules/posixver (Makefile.am): Likewise.
46703         * modules/putenv (Makefile.am): Likewise.
46704         * modules/quote (Makefile.am): Likewise.
46705         * modules/quotearg (Makefile.am): Likewise.
46706         * modules/raise (Makefile.am): Likewise.
46707         * modules/read-file (Makefile.am): Likewise.
46708         * modules/readline (Makefile.am): Likewise.
46709         * modules/readlink (Makefile.am): Likewise.
46710         * modules/readtokens (Makefile.am): Likewise.
46711         * modules/readutmp (Makefile.am): Likewise.
46712         * modules/realloc (Makefile.am): Likewise.
46713         * modules/regex (Makefile.am): Likewise.
46714         * modules/rename-dest-slash (Makefile.am): Likewise.
46715         * modules/rename (Makefile.am): Likewise.
46716         * modules/rijndael (Makefile.am): Likewise.
46717         * modules/rmdir (Makefile.am): Likewise.
46718         * modules/rpmatch (Makefile.am): Likewise.
46719         * modules/safe-read (Makefile.am): Likewise.
46720         * modules/safe-write (Makefile.am): Likewise.
46721         * modules/same-inode (Makefile.am): Likewise.
46722         * modules/same (Makefile.am): Likewise.
46723         * modules/save-cwd (Makefile.am): Likewise.
46724         * modules/savedir (Makefile.am): Likewise.
46725         * modules/setenv (Makefile.am): Likewise.
46726         * modules/settime (Makefile.am): Likewise.
46727         * modules/sha1 (Makefile.am): Likewise.
46728         * modules/sig2str (Makefile.am): Likewise.
46729         * modules/snprintf (Makefile.am): Likewise.
46730         * modules/stat-macros (Makefile.am): Likewise.
46731         * modules/stat-time (Makefile.am): Likewise.
46732         * modules/stdbool (Makefile.am): Likewise.
46733         * modules/stdint (Makefile.am): Likewise.
46734         * modules/stdlib-safer (Makefile.am): Likewise.
46735         * modules/stpcpy (Makefile.am): Likewise.
46736         * modules/stpncpy (Makefile.am): Likewise.
46737         * modules/strcase (Makefile.am): Likewise.
46738         * modules/strcasestr (Makefile.am): Likewise.
46739         * modules/strchrnul (Makefile.am): Likewise.
46740         * modules/strcspn (Makefile.am): Likewise.
46741         * modules/strdup (Makefile.am): Likewise.
46742         * modules/strerror (Makefile.am): Likewise.
46743         * modules/strftime (Makefile.am): Likewise.
46744         * modules/strndup (Makefile.am): Likewise.
46745         * modules/strnlen (Makefile.am): Likewise.
46746         * modules/strpbrk (Makefile.am): Likewise.
46747         * modules/strsep (Makefile.am): Likewise.
46748         * modules/strstr (Makefile.am): Likewise.
46749         * modules/strtod (Makefile.am): Likewise.
46750         * modules/strtoimax (Makefile.am): Likewise.
46751         * modules/strtok_r (Makefile.am): Likewise.
46752         * modules/strtol (Makefile.am): Likewise.
46753         * modules/strtoll (Makefile.am): Likewise.
46754         * modules/strtoul (Makefile.am): Likewise.
46755         * modules/strtoull (Makefile.am): Likewise.
46756         * modules/strtoumax (Makefile.am): Likewise.
46757         * modules/strverscmp (Makefile.am): Likewise.
46758         * modules/sys_socket (Makefile.am): Likewise.
46759         * modules/sys_stat (Makefile.am): Likewise.
46760         * modules/sysexits (Makefile.am): Likewise.
46761         * modules/time_r (Makefile.am): Likewise.
46762         * modules/timegm (Makefile.am): Likewise.
46763         * modules/timespec (Makefile.am): Likewise.
46764         * modules/tmpfile-safer (Makefile.am): Likewise.
46765         * modules/trim (Makefile.am): Likewise.
46766         * modules/unistd-safer (Makefile.am): Likewise.
46767         * modules/unlinkdir (Makefile.am): Likewise.
46768         * modules/unlocked-io (Makefile.am): Likewise.
46769         * modules/userspec (Makefile.am): Likewise.
46770         * modules/utime (Makefile.am): Likewise.
46771         * modules/utimecmp (Makefile.am): Likewise.
46772         * modules/utimens (Makefile.am): Likewise.
46773         * modules/vasnprintf (Makefile.am): Likewise.
46774         * modules/vasprintf (Makefile.am): Likewise.
46775         * modules/vsnprintf (Makefile.am): Likewise.
46776         * modules/xalloc (Makefile.am): Likewise.
46777         * modules/xgetcwd (Makefile.am): Likewise.
46778         * modules/xnanosleep (Makefile.am): Likewise.
46779         * modules/xreadlink (Makefile.am): Likewise.
46780         * modules/xstrtod (Makefile.am): Likewise.
46781         * modules/xstrtol (Makefile.am): Likewise.
46782         * modules/xstrtold (Makefile.am): Likewise.
46783         * modules/yesno (Makefile.am): Likewise.
46784         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
46785
46786 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46787
46788         * modules/error (Makefile.am): Distribute files through
46789         EXTRA_DIST, not lib_SOURCES.
46790
46791 2006-10-12  Eric Blake  <ebb9@byu.net>
46792
46793         * modules/error (Makefile.am): Distribute files in /lib.
46794         * modules/obstack (Makefile.am): Likewise.
46795
46796 2006-10-12  Bruno Haible  <bruno@clisp.org>
46797
46798         * modules/acl (Makefile.am): Distribute all files in lib/ through
46799         EXTRA_DIST.
46800         * modules/arcfour (Makefile.am): Likewise.
46801         * modules/arctwo (Makefile.am): Likewise.
46802         * modules/argmatch (Makefile.am): Likewise.
46803         * modules/argz (Makefile.am): Likewise.
46804         * modules/atexit (Makefile.am): Likewise.
46805         * modules/backupfile (Makefile.am): Likewise.
46806         * modules/c-strtod (Makefile.am): Likewise.
46807         * modules/c-strtold (Makefile.am): Likewise.
46808         * modules/calloc (Makefile.am): Likewise.
46809         * modules/canon-host (Makefile.am): Likewise.
46810         * modules/canonicalize (Makefile.am): Likewise.
46811         * modules/chdir-long (Makefile.am): Likewise.
46812         * modules/chdir-safer (Makefile.am): Likewise.
46813         * modules/check-version (Makefile.am): Likewise.
46814         * modules/chown (Makefile.am): Likewise.
46815         * modules/cloexec (Makefile.am): Likewise.
46816         * modules/close-stream (Makefile.am): Likewise.
46817         * modules/closeout (Makefile.am): Likewise.
46818         * modules/crc (Makefile.am): Likewise.
46819         * modules/cycle-check (Makefile.am): Likewise.
46820         * modules/des (Makefile.am): Likewise.
46821         * modules/dirfd (Makefile.am): Likewise.
46822         * modules/dirname (Makefile.am): Likewise.
46823         * modules/dup2 (Makefile.am): Likewise.
46824         * modules/euidaccess (Makefile.am): Likewise.
46825         * modules/exclude (Makefile.am): Likewise.
46826         * modules/exitfail (Makefile.am): Likewise.
46827         * modules/fcntl-safer (Makefile.am): Likewise.
46828         * modules/file-type (Makefile.am): Likewise.
46829         * modules/fileblocks (Makefile.am): Likewise.
46830         * modules/filemode (Makefile.am): Likewise.
46831         * modules/filenamecat (Makefile.am): Likewise.
46832         * modules/fnmatch (Makefile.am): Likewise.
46833         * modules/fopen-safer (Makefile.am): Likewise.
46834         * modules/fpending (Makefile.am): Likewise.
46835         * modules/fprintftime (Makefile.am): Likewise.
46836         * modules/free (Makefile.am): Likewise.
46837         * modules/fsusage (Makefile.am): Likewise.
46838         * modules/ftruncate (Makefile.am): Likewise.
46839         * modules/fts (Makefile.am): Likewise.
46840         * modules/gc (Makefile.am): Likewise.
46841         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46842         * modules/getaddrinfo (Makefile.am): Likewise.
46843         * modules/getcwd (Makefile.am): Likewise.
46844         * modules/getdelim (Makefile.am): Likewise.
46845         * modules/getdomainname (Makefile.am): Likewise.
46846         * modules/getgroups (Makefile.am): Likewise.
46847         * modules/gethostname (Makefile.am): Likewise.
46848         * modules/gethrxtime (Makefile.am): Likewise.
46849         * modules/getline (Makefile.am): Likewise.
46850         * modules/getloadavg (Makefile.am): Likewise.
46851         * modules/getlogin_r (Makefile.am): Likewise.
46852         * modules/getopt (Makefile.am): Likewise.
46853         * modules/getpass (Makefile.am): Likewise.
46854         * modules/getpass-gnu (Makefile.am): Likewise.
46855         * modules/getsubopt (Makefile.am): Likewise.
46856         * modules/gettime (Makefile.am): Likewise.
46857         * modules/gettimeofday (Makefile.am): Likewise.
46858         * modules/getugroups (Makefile.am): Likewise.
46859         * modules/getusershell (Makefile.am): Likewise.
46860         * modules/glob (Makefile.am): Likewise.
46861         * modules/group-member (Makefile.am): Likewise.
46862         * modules/hard-locale (Makefile.am): Likewise.
46863         * modules/hash (Makefile.am): Likewise.
46864         * modules/hmac-md5 (Makefile.am): Likewise.
46865         * modules/hmac-sha1 (Makefile.am): Likewise.
46866         * modules/human (Makefile.am): Likewise.
46867         * modules/idcache (Makefile.am): Likewise.
46868         * modules/imaxabs (Makefile.am): Likewise.
46869         * modules/imaxdiv (Makefile.am): Likewise.
46870         * modules/inet_ntop (Makefile.am): Likewise.
46871         * modules/inet_pton (Makefile.am): Likewise.
46872         * modules/inttostr (Makefile.am): Likewise.
46873         * modules/isapipe (Makefile.am): Likewise.
46874         * modules/lchown (Makefile.am): Likewise.
46875         * modules/long-options (Makefile.am): Likewise.
46876         * modules/lstat (Makefile.am): Likewise.
46877         * modules/malloc (Makefile.am): Likewise.
46878         * modules/mathl (Makefile.am): Likewise.
46879         * modules/mbchar (Makefile.am): Likewise.
46880         * modules/md2 (Makefile.am): Likewise.
46881         * modules/md4 (Makefile.am): Likewise.
46882         * modules/md5 (Makefile.am): Likewise.
46883         * modules/memcasecmp (Makefile.am): Likewise.
46884         * modules/memchr (Makefile.am): Likewise.
46885         * modules/memcmp (Makefile.am): Likewise.
46886         * modules/memcoll (Makefile.am): Likewise.
46887         * modules/memcpy (Makefile.am): Likewise.
46888         * modules/memmem (Makefile.am): Likewise.
46889         * modules/memmove (Makefile.am): Likewise.
46890         * modules/mempcpy (Makefile.am): Likewise.
46891         * modules/memrchr (Makefile.am): Likewise.
46892         * modules/memset (Makefile.am): Likewise.
46893         * modules/memxor (Makefile.am): Likewise.
46894         * modules/mkancesdirs (Makefile.am): Likewise.
46895         * modules/mkdir (Makefile.am): Likewise.
46896         * modules/mkdir-p (Makefile.am): Likewise.
46897         * modules/mkdtemp (Makefile.am): Likewise.
46898         * modules/mkstemp (Makefile.am): Likewise.
46899         * modules/mktime (Makefile.am): Likewise.
46900         * modules/modechange (Makefile.am): Likewise.
46901         * modules/mountlist (Makefile.am): Likewise.
46902         * modules/nanosleep (Makefile.am): Likewise.
46903         * modules/openat (Makefile.am): Likewise.
46904         * modules/pagealign_alloc (Makefile.am): Likewise.
46905         * modules/physmem (Makefile.am): Likewise.
46906         * modules/poll (Makefile.am): Likewise.
46907         * modules/posixtm (Makefile.am): Likewise.
46908         * modules/posixver (Makefile.am): Likewise.
46909         * modules/putenv (Makefile.am): Likewise.
46910         * modules/quote (Makefile.am): Likewise.
46911         * modules/quotearg (Makefile.am): Likewise.
46912         * modules/raise (Makefile.am): Likewise.
46913         * modules/read-file (Makefile.am): Likewise.
46914         * modules/readline (Makefile.am): Likewise.
46915         * modules/readlink (Makefile.am): Likewise.
46916         * modules/readtokens (Makefile.am): Likewise.
46917         * modules/readutmp (Makefile.am): Likewise.
46918         * modules/realloc (Makefile.am): Likewise.
46919         * modules/regex (Makefile.am): Likewise.
46920         * modules/rename (Makefile.am): Likewise.
46921         * modules/rename-dest-slash (Makefile.am): Likewise.
46922         * modules/rijndael (Makefile.am): Likewise.
46923         * modules/rmdir (Makefile.am): Likewise.
46924         * modules/rpmatch (Makefile.am): Likewise.
46925         * modules/safe-read (Makefile.am): Likewise.
46926         * modules/safe-write (Makefile.am): Likewise.
46927         * modules/same (Makefile.am): Likewise.
46928         * modules/save-cwd (Makefile.am): Likewise.
46929         * modules/savedir (Makefile.am): Likewise.
46930         * modules/setenv (Makefile.am): Likewise.
46931         * modules/settime (Makefile.am): Likewise.
46932         * modules/sha1 (Makefile.am): Likewise.
46933         * modules/sig2str (Makefile.am): Likewise.
46934         * modules/snprintf (Makefile.am): Likewise.
46935         * modules/stdlib-safer (Makefile.am): Likewise.
46936         * modules/stpcpy (Makefile.am): Likewise.
46937         * modules/stpncpy (Makefile.am): Likewise.
46938         * modules/strcase (Makefile.am): Likewise.
46939         * modules/strcasestr (Makefile.am): Likewise.
46940         * modules/strchrnul (Makefile.am): Likewise.
46941         * modules/strcspn (Makefile.am): Likewise.
46942         * modules/strdup (Makefile.am): Likewise.
46943         * modules/strerror (Makefile.am): Likewise.
46944         * modules/strftime (Makefile.am): Likewise.
46945         * modules/strndup (Makefile.am): Likewise.
46946         * modules/strnlen (Makefile.am): Likewise.
46947         * modules/strpbrk (Makefile.am): Likewise.
46948         * modules/strsep (Makefile.am): Likewise.
46949         * modules/strstr (Makefile.am): Likewise.
46950         * modules/strtod (Makefile.am): Likewise.
46951         * modules/strtoimax (Makefile.am): Likewise.
46952         * modules/strtok_r (Makefile.am): Likewise.
46953         * modules/strtol (Makefile.am): Likewise.
46954         * modules/strtoll (Makefile.am): Likewise.
46955         * modules/strtoul (Makefile.am): Likewise.
46956         * modules/strtoull (Makefile.am): Likewise.
46957         * modules/strtoumax (Makefile.am): Likewise.
46958         * modules/strverscmp (Makefile.am): Likewise.
46959         * modules/time_r (Makefile.am): Likewise.
46960         * modules/timegm (Makefile.am): Likewise.
46961         * modules/tmpfile-safer (Makefile.am): Likewise.
46962         * modules/unistd-safer (Makefile.am): Likewise.
46963         * modules/unlinkdir (Makefile.am): Likewise.
46964         * modules/userspec (Makefile.am): Likewise.
46965         * modules/utime (Makefile.am): Likewise.
46966         * modules/utimecmp (Makefile.am): Likewise.
46967         * modules/utimens (Makefile.am): Likewise.
46968         * modules/vasnprintf (Makefile.am): Likewise.
46969         * modules/vasprintf (Makefile.am): Likewise.
46970         * modules/vsnprintf (Makefile.am): Likewise.
46971         * modules/xalloc (Makefile.am): Likewise.
46972         * modules/xgetcwd (Makefile.am): Likewise.
46973         * modules/xnanosleep (Makefile.am): Likewise.
46974         * modules/xreadlink (Makefile.am): Likewise.
46975         * modules/xstrtod (Makefile.am): Likewise.
46976         * modules/xstrtol (Makefile.am): Likewise.
46977         * modules/xstrtold (Makefile.am): Likewise.
46978         * modules/yesno (Makefile.am): Likewise.
46979
46980 2006-10-12  Jim Meyering  <jim@meyering.net>
46981
46982         * m4/getloadavg.m4: Revert the change below.
46983
46984         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
46985         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
46986         fail with a symlink, which is what coreutils' ./bootstrap now
46987         creates by default.
46988
46989 2006-10-12  Bruno Haible  <bruno@clisp.org>
46990
46991         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
46992         mingw.
46993         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
46994         MSVC and mingw explicitly.
46995
46996 2006-10-11  Simon Josefsson  <jas@extundo.com>
46997             Bruno Haible  <bruno@clisp.org>
46998
46999         Add support for multiple gnulib-tool invocations in the scope of a
47000         single configure.ac file.
47001         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47002         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47003         with the same contents as the _LIBADD variable.
47004         (func_emit_initmacro_start, func_emit_initmacro_end,
47005         func_emit_initmacro_done): New functions.
47006         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47007         gl_LIBOBJS and gl_LTLIBOBJS.
47008
47009 2006-10-11  Bruno Haible  <bruno@clisp.org>
47010
47011         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47012         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47013         autoreconf. Instead, invoke autopoint explicitly but move back the
47014         *.m4 files from gnulib.
47015
47016 2006-10-11  Bruno Haible  <bruno@clisp.org>
47017
47018         * gnulib-tool (func_usage): Make module names after --create-testdir
47019         optional.
47020         (func_create_testdir): If no module was specified, use nearly all
47021         modules.
47022
47023 2006-10-12  Jim Meyering  <jim@meyering.net>
47024
47025         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47026         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47027         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47028         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47029         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47030         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47031         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47032         (fts_set_stat_required): New function.
47033         (fts_open): Defer the calls to fts_stat, if possible or requested.
47034         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47035         into fts_stat itself.
47036         (fts_read): Perform any required (deferred) fts_stat call.
47037         (fts_build): Likewise, for the directory we're about to open and read.
47038         In the readdir loop, carefully decide whether each entry will require
47039         an eventual call to fts_stat, using dirent.d_type info if available.
47040         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47041         a command line argument into this function.  Update all callers.
47042         Map a return value of FTS_DOT to FTS_D for a command line argument.
47043         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47044         Thanks to Miklos Szeredi for his tenacity and for the initial
47045         bug report about "find" failing on a FUSE-based file system.
47046
47047         * lib/fts.c (fts_open): Use consistent indentation.
47048
47049 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47050
47051         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47052         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47053         reported by Jim Meyering.  All uses of cache variables renamed
47054         to match Autoconf's.
47055         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47056         the other one.
47057
47058         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47059         Fix misspelling in diagnostic.
47060
47061 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47062
47063         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47064         defined.  Problem reported by Matthew Woehlke.
47065
47066         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47067         Add support for Tandem NonStop R series.
47068         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47069         Use new macro.
47070
47071         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47072         (has_trailing_slash): Omit size arg; all callers changed.
47073         Omit 'inline', since it doesn't help performance and we'd
47074         need to configure it.
47075         Don't count //, ///, etc. as having a trailing slash.
47076         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47077         (rpl_rename_dest_slash): On failure, use rename's errno rather
47078         than (in some cases) an incorrect or junk errno.
47079         Simplify code by removing need to compute length; this does
47080         cause it to make two passes instead of one over the file name,
47081         but it's worth it.
47082
47083         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47084         change, since Autoconf's version may no longer be appropriate now
47085         that we are using CVS Autoconf's version.  Add support for Tandem.
47086
47087 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47088             Bruno Haible  <bruno@clisp.org>
47089
47090         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47091         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47092         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47093         gl_AC_TYPE_LONG_LONG.
47094
47095         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47096         instead of HAVE_LONG_LONG.
47097         * lib/printf-args.c (printf_fetchargs): Likewise.
47098         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47099         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47100         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47101         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47102         gl_AC_TYPE_LONG_LONG.
47103
47104 2006-10-11  Bruno Haible  <bruno@clisp.org>
47105
47106         * m4/longlong.m4: Add comments.
47107         * m4/ulonglong.m4: Likewise.
47108
47109 2006-10-10  Bruno Haible  <bruno@clisp.org>
47110
47111         Make it possible to #define stpcpy, strdup to aliases.
47112         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47113         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47114
47115 2006-10-10  Bruno Haible  <bruno@clisp.org>
47116
47117         Make it possible to #define gcd to an alias.
47118         * lib/gcd.c: Include config.h.
47119
47120 2006-10-10  Bruno Haible  <bruno@clisp.org>
47121
47122         Make it possible to #define c_isascii to an alias.
47123         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47124         defined. Undefine the macros before defining them, to avoid gcc
47125         warnings.
47126         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47127         define NO_C_CTYPE_MACROS early.
47128
47129 2006-10-10  Bruno Haible  <bruno@clisp.org>
47130
47131         Make it possible to #define set_program_name to an alias.
47132         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47133         ENABLE_RELOCATABLE early.
47134
47135 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47136
47137         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47138         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47139         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47140         More generally, don't assume that 64-bit signed int is available
47141         if unsigned int is, and vice versa.
47142         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47143         unsigned symbols, not on their signed counterparts.
47144         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47145         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47146         (UINT64_C, UINTMAX_C):
47147         Likewise.
47148         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47149         unsigned counterparts.
47150         (Have_long_long, Unsigned): New macros.
47151         (Int): Renamed from INT.
47152         (strtoimax): Use the new macros.
47153         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47154         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47155         * modules/inttypes (inttypes.h): Substitute
47156         HAVE_UNSIGNED_LONG_LONG_INT.
47157         * modules/stdint (stdint.h): Likewise.
47158         (Files): Add m4/ulonglong.m4.
47159
47160 2006-10-10  Bruno Haible  <bruno@clisp.org>
47161
47162         Fix a gcc -Wshadow warning.
47163         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47164         to 'bucket'.
47165         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47166         gl_linked_indexof_from_to): Likewise.
47167         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47168         Likewise.
47169         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47170         Likewise.
47171         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47172         Reported by Eric Blake.
47173
47174 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47175
47176         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47177         for NetBSD.  Problem reported by Bruno Haible.
47178
47179 2006-10-09  Jim Meyering  <jim@meyering.net>
47180
47181         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47182         Patch from Bruno Haible.
47183
47184 2006-10-09  Jim Meyering  <jim@meyering.net>
47185
47186         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47187         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47188         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47189
47190 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47191
47192         Don't include <config.h> twice; this doesn't work in some cases,
47193         e.g., when config.h has "#define intmax_t long long int" and
47194         we include <config.h>, <inttypes.h>, <config.h> in that order.
47195         Problem reported by Matthew Woehlke in:
47196         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47197         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47198         * lib/fts-cycle.c: Don't include config.h.
47199         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47200         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47201         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47202         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47203         inttypes.h.
47204         * lib/xstrtoumax.c: Likewise.
47205         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47206         __strtol and the like, so that this module is more like its siblings.
47207         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47208         Remove; no longer needed now that we assume gnulib inttypes.h.
47209
47210 2006-10-08  Bruno Haible  <bruno@clisp.org>
47211
47212         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47213         option.
47214
47215 2006-10-07  Jim Meyering  <jim@meyering.net>
47216
47217         * modules/inttypes (inttypes.h): Revert what seems to have been
47218         an inadvertent part of today's change: use "|", not "/" in the
47219         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47220
47221 2006-10-07  Bruno Haible  <bruno@clisp.org>
47222
47223         * modules/sublist: New file.
47224
47225 2006-10-07  Bruno Haible  <bruno@clisp.org>
47226
47227         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47228         * modules/argz (argz.h): Likewise.
47229         * modules/arpa_inet (arpa/inet.h): Likewise.
47230         * modules/byteswap (byteswap.h): Likewise.
47231         * modules/configmake (configmake.h): Likewise.
47232         * modules/fcntl (fcntl.h): Likewise.
47233         * modules/fnmatch (fnmatch.h): Likewise.
47234         * modules/getopt (getopt.h): Likewise.
47235         * modules/glob (glob.h): Likewise.
47236         * modules/inttypes (inttypes.h): Likewise.
47237         * modules/netinet_in (netinet/in.h): Likewise.
47238         * modules/poll (poll.h): Likewise.
47239         * modules/stdbool (stdbool.h): Likewise.
47240         * modules/stdint (stdint.h): Likewise.
47241         * modules/sys_select (sys/select.h): Likewise.
47242         * modules/sys_socket (sys/socket.h): Likewise.
47243         * modules/sys_stat (sys/stat.h): Likewise.
47244         * modules/sysexits (sysexits.h): Likewise.
47245         * modules/unistd (unistd.h): Likewise.
47246         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47247         Add a "DO NOT EDIT" comment to the generated file.
47248         (func_import): Likewise for gnulib-comp.m4.
47249
47250 2006-10-07  Bruno Haible  <bruno@clisp.org>
47251
47252         * lib/gl_sublist.h: New file.
47253         * lib/gl_sublist.c: New file.
47254
47255 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47256
47257         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47258         name (relative to the original working directory) and the file
47259         name component (relative to the temporary working directory).  All
47260         callers changed.
47261         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47262         * lib/mkdir-p.c (make_dir_parents): Likewise.
47263         * lib/mkdir-p.h (make_dir_parents): Likewise.
47264
47265 2006-10-06  Eric Blake  <ebb9@byu.net>
47266
47267         Define several macros for use by the clean-temp module.
47268         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47269         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47270         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47271
47272         * lib/clean-temp.h (close_stream_temp): New declaration.
47273         * lib/clean-temp.c (includes): Pull in headers according to what
47274         other modules are in use.
47275         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47276
47277 2006-10-06  Bruno Haible  <bruno@clisp.org>
47278
47279         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47280         instead of fopen, fwriteerror.
47281
47282 2006-10-06  Bruno Haible  <bruno@clisp.org>
47283
47284         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47285         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47286         int.
47287         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47288         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47289         Return an error indicator.
47290         Suggested by Eric Blake.
47291
47292 2006-10-06  Bruno Haible  <bruno@clisp.org>
47293
47294         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47295         Reported by Eric Blake.
47296
47297 2006-10-06  Bruno Haible  <bruno@clisp.org>
47298
47299         * modules/closeout (Description): Mention stderr too.
47300
47301 2006-10-06  Bruno Haible  <bruno@clisp.org>
47302         and Paul Eggert  <eggert@cs.ucla.edu>
47303
47304         * lib/closeout.c (close_stdout): Also close stderr.
47305         * lib/closeout.h: Update comment.
47306
47307 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47308
47309         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47310         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47311         * lib/dirchownmod.c: Include lchown.h.
47312         * lib/lchown.c: Don't include files that lchown.h now includes.
47313         Don't declare chown, since lchown.h now does that.
47314         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47315         (lchown): Define to rpl_chown if lchown is declared but
47316         does not exist.  Declare using a prototype if lchown is not
47317         declared.  Add a copyright notice.
47318         * lib/mkstemp.h: Include <unistd.h>.
47319         * lib/openat.c: Include lchown.h.
47320
47321         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47322         we now test for that separately.
47323         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47324         rather than O_NOFOLLOW, when testing whether it's possible to
47325         avoid a race condition reliably.
47326         * lib/savewd.c (savewd_chdir): Likewise.
47327
47328         Remove macros that are no longer needed now that stdint.h is
47329         reliable.
47330         * lib/fsusage.c (UINTMAX_MAX): Remove.
47331         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47332         * lib/utimecmp.c (SIZE_MAX): Remove.
47333
47334         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47335
47336         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47337         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47338         O_NOATIME works.
47339
47340 2006-10-05  Bruno Haible  <bruno@clisp.org>
47341
47342         * lib/gl_list.h (gl_sortedlist_search_from_to,
47343         gl_sortedlist_indexof_from_to): New declarations.
47344         (gl_list_implementation): New fields sortedlist_search_from_to,
47345         sortedlist_indexof_from_to.
47346         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47347         inline functions.
47348         * lib/gl_list.c (gl_sortedlist_search_from_to,
47349         gl_sortedlist_indexof_from_to): New functions.
47350         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47351         function.
47352         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47353         (gl_array_sortedlist_search_from_to): New function.
47354         (gl_array_list_implementation): Update.
47355         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47356         function.
47357         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47358         (gl_carray_sortedlist_search_from_to): New function.
47359         (gl_carray_list_implementation): Update.
47360         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47361         gl_linked_sortedlist_indexof_from_to): New functions.
47362         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47363         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47364         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47365         gl_tree_sortedlist_indexof_from_to): New functions.
47366         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47367         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47368         Update.
47369         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47370         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47371         Update.
47372
47373 2006-10-05  Bruno Haible  <bruno@clisp.org>
47374
47375         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47376         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47377         (struct gl_list_implementation): Add fields search_from_to,
47378         indexof_from_to. Remove fields search, indexof.
47379         (gl_list_search): Use the search_from_to method.
47380         (gl_list_search_from, gl_list_search_from_to): New functions.
47381         (gl_list_indexof): Use the indexof_from_to method.
47382         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47383         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47384         (gl_list_search_from, gl_list_search_from_to): New functions.
47385         (gl_list_indexof): Use the indexof_from_to method.
47386         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47387         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47388         gl_array_indexof. Add start_index, end_index arguments.
47389         (gl_array_search_from_to): Renamed from gl_array_search. Add
47390         start_index, end_index arguments.
47391         (gl_array_remove, gl_array_list_implementation): Update.
47392         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47393         gl_carray_indexof. Add start_index, end_index arguments.
47394         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47395         start_index, end_index arguments.
47396         (gl_carray_remove, gl_carray_list_implementation): Update.
47397         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47398         gl_linked_search. Add start_index, end_index arguments.
47399         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47400         start_index, end_index arguments.
47401         (gl_linked_remove): Update.
47402         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47403         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47404         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47405         field to 'size_t'.
47406         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47407         gl_tree_search. Add start_index, end_index arguments.
47408         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47409         start_index, end_index arguments.
47410         (gl_tree_remove): Update.
47411         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47412         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47413         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47414         function.
47415         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47416         gl_tree_search. Add start_index, end_index arguments.
47417         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47418         start_index, end_index arguments.
47419         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47420         Update.
47421         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47422
47423 2006-10-05  Bruno Haible  <bruno@clisp.org>
47424
47425         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47426
47427         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47428         fwriteerror_temp): New declarations.
47429         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47430         (descriptors): New variable.
47431         (cleanup): First, close the descriptors.
47432         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47433         fclose_temp, fwriteerror_temp): New functions.
47434
47435 2006-10-04  Jim Meyering  <jim@meyering.net>
47436
47437         * lib/fts.c (fts_open): Tiny comment change.
47438
47439 2006-10-04  Bruno Haible  <bruno@clisp.org>
47440
47441         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47442         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47443         gl_LOCK_BODY.
47444         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47445         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47446         gl_LOCK_EARLY_BODY.
47447         (gl_LOCK): Require gl_LOCK_BODY.
47448
47449 2006-10-04  Bruno Haible  <bruno@clisp.org>
47450
47451         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47452         (gl_oset_search_atleast): New declaration.
47453         (struct gl_oset_implementation): Add field 'search_atleast'.
47454         (gl_oset_search_atleast): New inline function.
47455         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47456         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47457         (gl_array_oset_implementation): Update.
47458         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47459         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47460         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47461
47462 2006-10-04  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47465
47466 2006-10-03  Bruno Haible  <bruno@clisp.org>
47467
47468         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47469         from gl_avltreehash_list_implementation.
47470
47471 2006-10-03  Bruno Haible  <bruno@clisp.org>
47472
47473         * lib/gl_oset.c (gl_oset_add): Fix return type.
47474
47475 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47476
47477         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47478
47479 2006-10-02  Eric Blake  <ebb9@byu.net>
47480
47481         * modules/strnlen (Depends-on): Add extensions.
47482
47483 2006-10-02  Eric Blake  <ebb9@byu.net>
47484
47485         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47486         definition in 2.60+.
47487
47488 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47489
47490         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47491         checks.
47492
47493 2006-10-02  Bruno Haible  <bruno@clisp.org>
47494
47495         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47496         to the AUTOMAKE_OPTIONS.
47497         Reported by Jim Meyering.
47498
47499 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47500
47501         Work around bug in Solaris 10 /proc file system:
47502         /proc/self/fd/NNN/.. isn't the parent directory of
47503         the directory whose file descriptor is NNN.  This needs to
47504         be worked around at run time, not compile time, since a
47505         program might be built on Solaris 8, where things work, and
47506         run on Solaris 10.
47507         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47508         to use the following interface instead:
47509         (OPENAT_BUFFER_SIZE): New macro.
47510         (openat_proc_name): New function.
47511         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47512         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47513         Likewise.
47514         * lib/openat-proc.c: New file.
47515         * modules/openat (Files): Add lib/openat-proc.c.
47516         (Depends-on): Add same-inode, stdbool.
47517         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47518
47519 2006-09-29  Bruno Haible  <bruno@clisp.org>
47520
47521         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47522         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47523         argument. Set stdout_closed before testing for ferror, not after.
47524         (fwriteerror, fwriteerror_no_ebadf): New functions.
47525
47526 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47527
47528         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47529
47530 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47531
47532         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47533         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47534
47535 2006-09-28  Jim Meyering  <jim@meyering.net>
47536
47537         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47538         Include <unistd.h>.
47539
47540 2006-09-28  Bruno Haible  <bruno@clisp.org>
47541
47542         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47543         * modules/linkedhash-list (Depends-on): Likewise.
47544         * modules/rbtreehash-list (Depends-on): Likewise.
47545
47546 2006-09-28  Bruno Haible  <bruno@clisp.org>
47547
47548         * lib/strndup.h: Simplify the redefinition of strndup.
47549         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47550         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47551
47552 2006-09-28  Bruno Haible  <bruno@clisp.org>
47553
47554         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47555         * lib/gl_linkedhash_list.c: Likewise.
47556         * lib/gl_rbtreehash_list.c: Likewise.
47557
47558 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47559
47560         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47561         getaddrinfo.
47562
47563         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47564         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47565         it causes <stdio_ext.h> to cause a compile-time error.
47566         Problem reported by Nelson H. F. Beebe.
47567         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47568         of HAVE_DECL___PENDING.
47569
47570         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47571         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47572         declaration.
47573
47574 2006-09-27  Jim Meyering  <jim@meyering.net>
47575
47576         This file could end up with a definition for a function
47577         named __strndup, rather than rpl_strndup on a system with
47578         incomplete weak_alias support.
47579         * lib/strndup.c (strndup): Rename from __strndup.
47580         Remove #defines that used to map __strndup to strndup.
47581         Don't use K&R prototypes.
47582         Remove LIBC-related code, since this file is not sync'd with glibc.
47583         * lib/strndup.h: Revamp, accordingly.
47584         * m4/strndup.m4: Modernize.
47585
47586 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47587
47588         * modules/savewd (Depends-on): Add 'raise'.
47589         * lib/savewd.c: Include <signal.h>, for 'raise'.
47590
47591 2006-09-26  Jim Meyering  <jim@meyering.net>
47592
47593         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47594         when we detect Darwin 8.7.0's acl_get_file bug.
47595         Rearrange to perform the new (below) run-test while $LIBS
47596         contains any acl-related library.  Set USE_ACL at the end.
47597         (gl_ACL_GET_FILE): New function.
47598
47599 2006-09-26  Eric Blake  <ebb9@byu.net>
47600
47601         * lib/verror.c: Include <config.h> unconditionally.
47602
47603 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47604
47605         * modules/clock-time (Maintainer): Add self.
47606         * modules/getlogin_r (Depends-on): Add extensions.
47607
47608 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47609
47610         * modules/clock-time: New module.
47611         * modules/nanosleep (Depends-on): Add clock-time.
47612         * modules/gethrxtime (Depends-on): Likewise.
47613         * modules/gettime (Depends-on): Likewise.
47614         * modules/settime (Depends-on): Likewise.
47615
47616         * modules/fts-lgpl: Depend on openat.
47617         * modules/mkancesdirs: Depend on savewd.
47618         * modules/mkdir-p: Likewise.
47619
47620 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47621
47622         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47623
47624         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47625         `gl_have_arbitrary_file_name_length_limit' to
47626         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
47627         actually works between configure runs.
47628
47629 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47630             Bruno Haible  <bruno@clisp.org>
47631
47632         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
47633
47634 2006-09-25  Jim Meyering  <jim@meyering.net>
47635
47636         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
47637         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
47638
47639 2006-09-25  Eric Blake  <ebb9@byu.net>
47640
47641         * gnulib-tool (func_import, func_create_testdir): Fix typos in
47642         exec's in 2006-09-18 patch when shuffling fds.
47643
47644 2006-09-25  Bruno Haible  <bruno@clisp.org>
47645
47646         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
47647         Reported by Jim Meyering.
47648
47649 2006-09-24  Jim Meyering  <jim@meyering.net>
47650
47651         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
47652         compare a pointer against a literal "0".  That caused failures with
47653         at least HP-UX's hpcc.
47654
47655 2006-09-22  Simon Josefsson  <jas@extundo.com>
47656
47657         * modules/gc-sha1:
47658         * modules/gc-md4:
47659         * modules/gc-hmac-sha1:
47660         * modules/gc-hmac-md5:
47661         * modules/gc-des:
47662         * modules/gc-arcfour: Distribute more files.
47663
47664 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47665
47666         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
47667         (gl_linked_iterator_from_to): Initialize struct completely.
47668         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
47669         (gl_tree_iterator_from_to): Likewise
47670         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
47671         * lib/gl_array_list.c [lint] (gl_array_iterator)
47672         (gl_array_iterator_from_to): Likewise.
47673         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
47674         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
47675         (gl_carray_iterator_from_to): Likewise.
47676
47677         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
47678         * lib/md4.c (md4_process_block): Remove unused variable.
47679         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
47680         parentheses for clarity.
47681
47682 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47683
47684         * modules/bison-i18n (Depends-on): Add gettext.
47685
47686 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47687
47688         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
47689         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
47690         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
47691         also add missing comma that caused broken test.
47692         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
47693         stdlib.h, for `abort'.
47694         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
47695         variables.
47696         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
47697         include unistd.h if present, for `rmdir'.
47698         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
47699         variables.
47700         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
47701         in the process include standard headers for prototypes.
47702         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
47703         gets declared on GNU/Linux.
47704         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
47705         unistd.h, for `rmdir'.
47706         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
47707
47708         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
47709         always true.
47710         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
47711
47712         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
47713
47714 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47715
47716         * gnulib-tool (func_version): Create output all at once.  This
47717         may help avoid triggering unnecessary SIGPIPEs, and at any
47718         rate it doesn't hurt.
47719
47720 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47721             Bruno Haible  <bruno@clisp.org>
47722
47723         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
47724         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47725         * m4/signed.m4 (bh_C_SIGNED): Likewise.
47726
47727         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
47728         (gl_FUNC_VASPRINTF): Invoke it.
47729
47730 2006-09-22  Bruno Haible  <bruno@clisp.org>
47731
47732         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
47733         getloadavg.c as first argument.
47734
47735 2006-09-22  Bruno Haible  <bruno@clisp.org>
47736
47737         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
47738         at the beginning of the gl_INIT macro.
47739         * modules/getloadavg (configure.ac): Pass $gl_source_base to
47740         gl_GETLOADAVG.
47741
47742 2006-09-22  Bruno Haible  <bruno@clisp.org>
47743
47744         * gnulib-tool (func_create_megatestdir): Don't include the config-h
47745         module.
47746         Suggested by Ralf Wildenhues.
47747
47748 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
47749
47750         Import this patch from libc:
47751
47752         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
47753
47754         * lib/regex_internal.c (re_string_reconstruct): Handle
47755         offset < pstr->valid_raw_len && pstr->offsets_needed case.
47756         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
47757         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
47758         re_string_context_at.
47759
47760         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
47761         now requires it.
47762         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
47763         gl_REGEX now does it for us.
47764         (gl_REGEX): Add test taken from
47765         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
47766
47767         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
47768         Check that large offsets work.  Modernize Autoconf usages.
47769         Prefer "yes" to mean a good thing rather than a bad.
47770         Don't put "#define mkstemp" in config.h, as this might interfere
47771         with standard system headers that "#define mkstemp mkstemp64".
47772
47773         * modules/mkstemp (Depends-on): Add extensions, so that
47774         mkstemp is visible on some platforms.
47775         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
47776         (Include): Change to "mkstemp.h" from <stdlib.h>.
47777         (Files): Add mkstemp.h.
47778
47779         * lib/mkstemp.h: New file, since some standard headers
47780         #define mkstemp.
47781         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
47782         Include "mkstemp.h".
47783         Make the _LIBC code resemble glibc original more,
47784         e.g., use K&R style.
47785         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
47786         (mkstemp): Remove, since mkstemp.h does this for us.
47787         * lib/stdlib--.h: Include mkstemp.h.
47788
47789         Import this patch from libc:
47790
47791         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
47792
47793         * lib/tempname.c (__gen_tempname): Change attempts_min
47794         into a macro.  Use preprocessor to decide how to initialize
47795         attempts [Coverity CID 67].
47796
47797 2006-09-20  Bruno Haible  <bruno@clisp.org>
47798
47799         * lib/mkdtemp.c: Import from libc.
47800         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
47801                 * sysdeps/posix/tempname.c (__gen_tempname): Change
47802                 attempts_min into a macro.  Use preprocessor to decide how to
47803                 initialize attempts [Coverity CID 67].
47804         2001-11-27  Paul Eggert  <eggert@twinsun.com>
47805                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
47806                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
47807
47808 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47809
47810         * gnulib-tool (func_exit): New function, to allow to pass the
47811         exit status portably through the trap.  Use everywhere.
47812         (--help, --version): Signal a write error.
47813         (trap): catch SIGPIPE, for write errors.
47814         Exit at the end of the trap, with the correct exit status.
47815
47816 2006-09-19  Karl Berry  <karl@gnu.org>
47817
47818         * doc/gnulib.texi: note about the license texinfo files.
47819
47820 2006-09-19  Eric Blake  <ebb9@byu.net>
47821
47822         * gnulib-tool: Avoid space-tab.
47823
47824 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47825
47826         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
47827         that prevented coreutils 6.1 from building.  Problem reported
47828         by Petter Reinholdtsen.
47829
47830 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47831
47832         * gnulib-tool (avoidlist): Fix typo that broke options like
47833         --avoid=lock that are used by coreutils bootstrap.
47834
47835 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
47836
47837         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
47838         more systematically.
47839
47840 2006-09-18  Jim Meyering  <jim@meyering.net>
47841
47842         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
47843
47844 2006-09-18  Bruno Haible  <bruno@clisp.org>
47845
47846         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
47847
47848 2006-09-18  Bruno Haible  <bruno@clisp.org>
47849
47850         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
47851         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
47852         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
47853         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
47854         * m4/gettext.m4: Require autoconf >= 2.52.
47855         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
47856         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
47857         of gl_cv_header_inttypes_h.
47858
47859 2006-09-18  Bruno Haible  <bruno@clisp.org>
47860
47861         * lib/javaversion.c: Include configmake.h.
47862
47863 2006-09-18  Bruno Haible  <bruno@clisp.org>
47864
47865         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
47866         avoid that the while loops be executed in a subshell.
47867
47868 2006-09-18  Bruno Haible  <bruno@clisp.org>
47869
47870         * MODULES.html.sh (func_module): Break long lines.
47871         Suggested by Bruce Korb <bkorb@gnu.org>.
47872
47873 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47874
47875         Speed up by a factor of 1.12.
47876         * gnulib-tool (nl): New variable.
47877         (func_import): Rewrite include directive extraction to only read each
47878         directive once.
47879
47880 2006-09-17  Bruno Haible  <bruno@clisp.org>
47881
47882         * modules/javaversion (Makefile.am): Remove DEFS setting.
47883         (Depends-on): Add configmake, for PKGDATADIR definition.
47884
47885 2006-09-17  Bruno Haible  <bruno@clisp.org>
47886
47887         * gnulib-tool (func_create_testdir): Rewrite all files at once.
47888
47889 2006-09-17  Bruno Haible  <bruno@clisp.org>
47890
47891         * gnulib-tool (func_append): New function, stolen from libtool.m4.
47892         (func_modules_transitive_closure, func_modules_add_dummy,
47893         func_modules_to_filelist, func_import, func_create_testdir,
47894         func_create_megatestdir, ...): Use it wherever possible.
47895         Suggested by Ralf Wildenhues.
47896
47897 2006-09-16  Karl Berry  <karl@gnu.org>
47898
47899         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
47900         to avoid sectioning errors.
47901         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
47902         [ifinfo]: blank line after @center-ed titles.
47903         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
47904         Spell FSF address consistently with others.
47905         (These changes approved by rms.)
47906
47907 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47908
47909         Speed up by a factor of 1.61.
47910         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
47911         already checked module names again.
47912
47913 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47914
47915         Speed up by a factor of 1.13.
47916         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
47917         for new_files, and the input to func_add_or_update.
47918
47919 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47920
47921         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
47922         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
47923
47924 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47925
47926         * modules/mkancesdirs (Depends-on): Add fcntl.
47927         * modules/savewd: New file.
47928         * MODULES.html.sh (File system functions): Add savewd.
47929
47930         * modules/configmake (Makefile.am): Add support for the
47931         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
47932
47933 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47934
47935         * m4/savewd.m4: New file.
47936
47937 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47938
47939         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
47940         (dirchownmod): New arg FD.  All callers changed.
47941         Use FD rather than opening the directory ourself, as opening is
47942         now the caller's responsibility.
47943         * lib/dirchownmod.h: Likewise.
47944         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
47945         hosts that require <sys/types.h> before <sys/stat.h>.  Include
47946         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
47947         (test_dir): Remove.
47948         (mkancesdirs): Return length of prefix of FILE that has already
47949         been made, or -2 if there is a child doing the work.  Redo
47950         algorithm so that it is O(N) rather than O(N**2).  Optimize away
47951         ".", and treat ".." specially since it might stray back into
47952         already-created areas.  Use a subprocess if necessary.  New arg
47953         WD; all users changed.  MAKE_DIR function should now return 1
47954         if it creates a directory that is not readable.  Return -2 if
47955         a child process is spun off.
47956         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
47957         Adjust signature to match code.
47958         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
47959         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
47960         all users changed.
47961         * lib/savewd.c, lib/savewd.h: New files.
47962
47963 2006-09-15  Jim Meyering  <jim@meyering.net>
47964
47965         * modules/rename-dest-slash: New module.
47966         * MODULES.html.sh (posix_compat): Add it here.
47967
47968         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
47969
47970 2006-09-15  Jim Meyering  <jim@meyering.net>
47971
47972         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
47973         file.
47974
47975         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
47976
47977 2006-09-15  Jim Meyering  <jim@meyering.net>
47978
47979         * lib/rename-dest-slash.c (has_trailing_slash): Use
47980         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
47981         (rpl_rename_dest_slash): Perform the cheaper trailing slash
47982         test before testing whether SRC is a directory.
47983         Suggestions from Bruno Haible.
47984
47985         Avoid a warning about an unused variable.
47986         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
47987         into the #ifdef block where it's used.
47988
47989         * lib/rename-dest-slash.c: New file.
47990
47991 2006-09-14  Bruno Haible  <bruno@clisp.org>
47992
47993         * lib/allocsa.c: Include <config.h> unconditionally.
47994         * lib/asnprintf.c: Likewise.
47995         * lib/asprintf.c: Likewise.
47996         * lib/c-strcasecmp.c: Likewise.
47997         * lib/c-strcasestr.c: Likewise.
47998         * lib/c-strncasecmp.c: Likewise.
47999         * lib/c-strstr.c: Likewise.
48000         * lib/classpath.c: Likewise.
48001         * lib/clean-temp.c: Likewise.
48002         * lib/concatpath.c: Likewise.
48003         * lib/copy-file.c: Likewise.
48004         * lib/csharpcomp.c: Likewise.
48005         * lib/csharpexec.c: Likewise.
48006         * lib/execute.c: Likewise.
48007         * lib/fatal-signal.c: Likewise.
48008         * lib/findprog.c: Likewise.
48009         * lib/fwriteerror.c: Likewise.
48010         * lib/gl_array_list.c: Likewise.
48011         * lib/gl_array_oset.c: Likewise.
48012         * lib/gl_avltree_list.c: Likewise.
48013         * lib/gl_avltree_oset.c: Likewise.
48014         * lib/gl_avltreehash_list.c: Likewise.
48015         * lib/gl_carray_list.c: Likewise.
48016         * lib/gl_linked_list.c: Likewise.
48017         * lib/gl_linkedhash_list.c: Likewise.
48018         * lib/gl_list.c: Likewise.
48019         * lib/gl_oset.c: Likewise.
48020         * lib/gl_rbtree_list.c: Likewise.
48021         * lib/gl_rbtree_oset.c: Likewise.
48022         * lib/gl_rbtreehash_list.c: Likewise.
48023         * lib/imaxabs.c: Likewise.
48024         * lib/imaxdiv.c: Likewise.
48025         * lib/javacomp.c: Likewise.
48026         * lib/javaexec.c: Likewise.
48027         * lib/javaversion.c: Likewise.
48028         * lib/linebreak.c: Likewise.
48029         * lib/localcharset.c: Likewise.
48030         * lib/lock.c: Likewise.
48031         * lib/mbchar.c: Likewise.
48032         * lib/mbswidth.c: Likewise.
48033         * lib/mkdtemp.c: Likewise.
48034         * lib/pipe.c: Likewise.
48035         * lib/printf-args.c: Likewise.
48036         * lib/printf-parse.c: Likewise.
48037         * lib/progname.c: Likewise.
48038         * lib/progreloc.c: Likewise.
48039         * lib/readlink.c: Likewise.
48040         * lib/sh-quote.c: Likewise.
48041         * lib/stpcpy.c: Likewise.
48042         * lib/stpncpy.c: Likewise.
48043         * lib/strcasecmp.c: Likewise.
48044         * lib/strcasestr.c: Likewise.
48045         * lib/strcspn.c: Likewise.
48046         * lib/striconv.c: Likewise.
48047         * lib/strncasecmp.c: Likewise.
48048         * lib/strnlen1.c: Likewise.
48049         * lib/strstr.c: Likewise.
48050         * lib/strtok_r.c: Likewise.
48051         * lib/tls.c: Likewise.
48052         * lib/tmpdir.c: Likewise.
48053         * lib/unicodeio.c: Likewise.
48054         * lib/unsetenv.c: Likewise.
48055         * lib/vasnprintf.c: Likewise.
48056         * lib/vasprintf.c: Likewise.
48057         * lib/wait-process.c: Likewise.
48058         * lib/xallocsa.c: Likewise.
48059         * lib/xsetenv.c: Likewise.
48060         * lib/xstriconv.c: Likewise.
48061
48062 2006-09-13  Simon Josefsson  <jas@extundo.com>
48063
48064         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48065         that internally, suggested by Ralf Wildenhues
48066         <Ralf.Wildenhues@gmx.de>.
48067
48068 2006-09-13  Simon Josefsson  <jas@extundo.com>
48069
48070         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48071         @LIBOBJS@.
48072         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48073
48074 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48075
48076         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48077         longer worry about uses that don't define HAVE_CONFIG_H.
48078         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48079         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48080         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48081         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48082         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48083         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48084         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48085         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48086         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48087         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48088         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48089         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48090         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48091         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48092         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48093         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48094         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48095         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48096         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48097         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48098         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48099         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48100         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48101         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48102         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48103         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48104         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48105         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48106         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48107         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48108         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48109         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48110         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48111         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48112         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48113         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48114         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48115         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48116         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48117         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48118         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48119         Likewise.
48120
48121 2006-09-13  Eric Blake  <ebb9@byu.net>
48122
48123         * lib/getopt.c: Fix typo in last commit.
48124
48125 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48126
48127         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48128         dgettext.
48129
48130 2006-09-12  Jim Meyering  <jim@meyering.net>
48131
48132         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48133         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48134         Reported by Nelson H. F. Beebe.
48135
48136 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48137
48138         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48139         program_invocation_name and program_invocation_short_name are
48140         initialized.
48141         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48142         and program_invocation_short_name to argp.h, so they are visible
48143         to user programs.
48144         * lib/argp.h: Likewise
48145
48146 2006-09-10  Bruno Haible  <bruno@clisp.org>
48147
48148         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48149         m4/inttypes_h.m4, m4/uintmax_t.m4.
48150
48151 2006-09-10  Bruno Haible  <bruno@clisp.org>
48152
48153         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48154         gl_AC_TYPE_UINTMAX_T.
48155
48156 2006-09-10  Bruno Haible  <bruno@clisp.org>
48157
48158         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48159
48160 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48161
48162         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48163         convention.  Text proposed by Bruno Haible.
48164         (struct argp_option): Document the use of N_() wrappers.
48165
48166         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48167         '\v', and translate the two parts separately, instead of feeding
48168         the whole string to gettext.  This allows to exclude
48169         '\v' from the strings visible to the translator by writing doc
48170         strings as N_("..") "\v" N_("..").
48171
48172 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48173
48174         * config/srclist.txt: Undo latest change; the bug was fixed.
48175
48176 2006-09-09  Bruno Haible  <bruno@clisp.org>
48177
48178         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48179         assignments if building a library without libtool.
48180         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48181         in func_emit_lib_Makefile_am.
48182         (func_import): When building a static library libfoo.a, arrange to
48183         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48184         (func_create_testdir): Likewise.
48185         * modules/gc (configure.ac, Makefile.am): If building statically,
48186         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48187         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48188         * modules/striconv (configure.ac, Makefile.am): Likewise.
48189         Based on a suggestion by Ralf Wildenhues.
48190
48191 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48192
48193         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48194         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48195         Also:
48196
48197         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48198         Add year_2050_test to catch glibc bug 2821
48199         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48200
48201         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48202         Prefer #ifdef to #if.
48203
48204         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48205         Return from 'main' instead of calling 'exit'.
48206
48207 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48208
48209         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48210         returned the maximum time_t value rather than (time_t) -1.
48211         Problem originally reported by William Bardwell
48212         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48213
48214         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48215         Moved to here ...
48216         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48217         ... from here.
48218
48219 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48220
48221         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48222         2821 is fixed.
48223
48224 2006-09-08  Jim Meyering  <jim@meyering.net>
48225
48226         Don't make generated files read-only.  That would bother too many
48227         people.  However, do retain the ability to work when targets are
48228         read-only: remove the destination and temporary files before writing
48229         them (when generated via sed or echo), or by using the -f option for
48230         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48231         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48232         * modules/byteswap, modules/configmake, modules/fcntl:
48233         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48234         * modules/localcharset, modules/netinet_in, modules/poll:
48235         * modules/stdbool, modules/stdint, modules/sys_select:
48236         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48237
48238 2006-09-08  Jim Meyering  <jim@meyering.net>
48239
48240         Avoid new build failure on FreeBSD 6.0.
48241         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48242         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48243         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48244
48245 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48246
48247         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48248
48249 2006-09-07  Jim Meyering  <jim@meyering.net>
48250
48251         Fix global typo in last change: use chmod u-w, not chmod u-x.
48252         Spotted by Paul Eggert and Bruce Korb.
48253         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48254         * modules/byteswap, modules/configmake, modules/fcntl:
48255         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48256         * modules/localcharset, modules/netinet_in, modules/poll:
48257         * modules/stdbool, modules/stdint, modules/sys_select:
48258         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48259
48260 2006-09-06  Jim Meyering  <jim@meyering.net>
48261
48262         Make generated files be read-only.
48263         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48264         Ensure that each generated file is now read-only.
48265         * modules/argz: Likewise.
48266         * modules/arpa_inet: Likewise.
48267         * modules/byteswap: Likewise.
48268         * modules/configmake: Likewise.
48269         * modules/fcntl: Likewise.
48270         * modules/fnmatch: Likewise.
48271         * modules/getopt: Likewise.
48272         * modules/glob: Likewise.
48273         * modules/inttypes: Likewise.
48274         * modules/netinet_in: Likewise.
48275         * modules/poll: Likewise.
48276         * modules/stdbool: Likewise.
48277         * modules/stdint: Likewise.
48278         * modules/sys_select: Likewise.
48279         * modules/sys_socket: Likewise.
48280         * modules/sys_stat: Likewise.
48281         * modules/sysexits: Likewise.
48282         * modules/localcharset: Same as above, but continue using temporary
48283         file named "t-$@" (why different?) rather than the "$@-t" used
48284         everywhere else.
48285
48286         * modules/sysexits (Makefile.am): Replace literal occurrences
48287         of "sysexit.h" more readable, and more consistent, "$@".
48288
48289 2006-09-06  Bruno Haible  <bruno@clisp.org>
48290
48291         * modules/striconv: New file.
48292         * modules/xstriconv: New file.
48293         * MODULES.html.sh (Internationalization functions): Add striconv,
48294         xstriconv.
48295
48296 2006-09-06  Bruno Haible  <bruno@clisp.org>
48297
48298         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48299         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48300         not using libtool correctly.
48301
48302 2006-09-06  Bruno Haible  <bruno@clisp.org>
48303
48304         * lib/striconv.h: New file.
48305         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48306         iconvstring.c.
48307         * lib/xstriconv.h: New file.
48308         * lib/xstriconv.c: New file.
48309
48310 2006-09-06  Bruno Haible  <bruno@clisp.org>
48311
48312         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48313         lib_..._LDFLAGS.
48314
48315 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48316
48317         * lib/argz_.h: Sync from Libtool.
48318
48319         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48320                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48321
48322         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48323
48324 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48325
48326         * modules/trim: New file.
48327
48328 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48329
48330         * lib/trim.h: New file.
48331         * lib/trim.c: New file.
48332
48333 2006-09-05  Bruno Haible  <bruno@clisp.org>
48334
48335         * MODULES.html.sh (String handling): Add trim.
48336
48337 2006-09-04  Karl Berry  <karl@gnu.org>
48338
48339         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48340         until next release.
48341
48342 2006-09-03  Bruno Haible  <bruno@clisp.org>
48343
48344         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48345         correctly.
48346
48347 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48350         not gl_GETLOADAVG.  Omit unneeded semicolons.
48351         Problems reported by Ralf Wildenhues in
48352         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48353         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48354         at the end, which is the usual gnulib style.
48355
48356         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48357         of doing all the work ourselves.
48358         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48359         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48360
48361 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48362
48363         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48364         Problem reported by Ralf Wildenhues in
48365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48366
48367         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48368         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48369
48370 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48371
48372         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48373         yesterday's patch by changing test -n to test -z.
48374
48375 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48376
48377         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48378         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48379         the former is now obsolescent.
48380
48381         * modules/chdir-long (Depends-on): Add fcntl.
48382
48383 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48384
48385         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48386         obsolescent, and programs should use gnulib instead.
48387         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48388         but with prefixes changed.
48389
48390 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48391
48392         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48393         or stdbool.h, because they might not exist while configuring.
48394
48395         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48396         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48397         does that for us.
48398         (O_DIRECTORY): Remove.
48399
48400 2006-08-31  Eric Blake  <ebb9@byu.net>
48401
48402         * gnulib-tool: Don't let emacs change spaces to TAB.
48403
48404 2006-08-31  Bruno Haible  <bruno@clisp.org>
48405
48406         * gnulib-tool: When calling func_import more than once, do it in a
48407         subshell.
48408         Reported by Eric Blake <ebb9@byu.net>.
48409
48410 2006-08-31  Bruno Haible  <bruno@clisp.org>
48411
48412         * gnulib-tool (nl): Remove variable.
48413         (sed_transform_lib_file): Use more robust test for config-h module.
48414         (func_import): Fix typo in 2006-08-25 patch.
48415
48416 2006-08-31  Bruno Haible  <bruno@clisp.org>
48417
48418         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48419         specified, augment Makefile.am variables instead of assigning them.
48420
48421 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48422
48423         Work around a bug in both the Linux and SunOS 64-bit kernels:
48424         nanosleep mishandles sleeps for longer than 2**31 seconds.
48425         Problem reported by Frank v Waveren in
48426         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48428         Check for nanosleep bug.
48429         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48430
48431 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48432
48433         Work around a bug in both the Linux and SunOS 64-bit kernels:
48434         nanosleep mishandles sleeps for longer than 2**31 seconds.
48435         Problem reported by Frank v Waveren in
48436         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48437         * lib/nanosleep.c (BILLION): New constant.
48438         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48439         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48440         implementation.
48441
48442 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48443
48444         * modules/nanosleep (Depends-on): Add gettime.
48445
48446 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48447         and Simon Josefsson  <jas@extundo.com>
48448         and Oskar Liljeblad  <oskar@osk.mine.nu>
48449
48450         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48451         * gnulib-tool (func_import): New license type 'unmodifiable license
48452         text'.
48453         * modules/fdl: Use it.  Longer description.
48454         * module/gpl, module/lgpl: New files.
48455
48456 2006-08-30  Jim Meyering  <jim@meyering.net>
48457
48458         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48459         shadowing the parameter.
48460
48461 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48462
48463         Sync from Libtool:
48464
48465         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48466
48467         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48468         sharing with gnulib.  Report by Eric Blake.
48469
48470 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48471
48472         * modules/isapipe: New file.
48473         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48474
48475 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48476
48477         * modules/configmake (Makefile.am): Add a comment, and omit
48478         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48479         by Bruno Haible.
48480
48481 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48482
48483         * m4/isapipe.m4: New file.
48484
48485 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48486
48487         * lib/isapipe.c, lib/isapipe.h: New files.
48488
48489 2006-08-29  Jim Meyering  <jim@meyering.net>
48490
48491         * modules/configmake (Makefile.am): Make configmake.h depend on
48492         Makefile.  Otherwise, a stale configmake.h could hang around.
48493
48494 2006-08-29  Eric Blake  <ebb9@byu.net>
48495
48496         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48497         resolution of upstream bug 3044.
48498
48499 2006-08-29  Bruno Haible  <bruno@clisp.org>
48500
48501         * modules/localcharset (Depends-on): Add configmake.
48502         (Makefile.am): Remove setting of LIBDIR through DEFS.
48503
48504 2006-08-29  Bruno Haible  <bruno@clisp.org>
48505
48506         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48507         defined.
48508
48509 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48510
48511         * modules/fcntl: New file.
48512         * modules/chdir-safer (Depends-on): Add fcntl.
48513         * modules/fts: Likewise.
48514         * modules/mkdir-p: Likewise.
48515
48516         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48517         This undoes the most recent change, since we're now addressing the
48518         problem in a different way.
48519
48520         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48521         into output, since the output might be called Makefile.am even
48522         if $makefile_name is something different.
48523         (func_import): Use $makefile_am rather than
48524         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48525         empty.
48526
48527         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48528
48529 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48530
48531         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48532         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48533         recent change to stdint.m4, since we're now addressing the problem in a
48534         different way.
48535
48536 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48537
48538         * m4/fcntl_h.m4: New file.
48539
48540 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48541
48542         * lib/fcntl_.h: New file.
48543         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48544         the fcntl module.
48545         * lib/dirchownmod.c: Likewise.
48546         * lib/fts.c: Likewise.
48547
48548         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48549         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48550         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48551         just before including <inttypes.h>, to avoid circular inclusion.
48552
48553 2006-08-28  Jim Meyering  <jim@meyering.net>
48554
48555         * doc/visibility.texi: Actually read and correct the grammar of the
48556         sentence affected by yesterday's change.
48557
48558 2006-08-28  Eric Blake  <ebb9@byu.net>
48559
48560         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48561         needs wrapper.
48562
48563 2006-08-28  Eric Blake  <ebb9@byu.net>
48564
48565         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48566
48567 2006-08-28  Eric Blake  <ebb9@byu.net>
48568
48569         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48570
48571 2006-08-28  Bruno Haible  <bruno@clisp.org>
48572
48573         * modules/c-strstr: New file, from GNU gettext.
48574         * MODULES.html.sh (String handling): Add c-strstr.
48575
48576 2006-08-28  Bruno Haible  <bruno@clisp.org>
48577
48578         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48579         macros.
48580         Reported by Eric Blake.
48581
48582 2006-08-28  Bruno Haible  <bruno@clisp.org>
48583
48584         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48585         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48586         * lib/vasprintf.c: Include errno.h, limits.h.
48587         (EOVERFLOW): New fallback definition.
48588         (vasprintf): Test here whether the string length is > INT_MAX.
48589         * lib/vsnprintf.c: Include errno.h, limits.h.
48590         (EOVERFLOW): New fallback definition.
48591         (vsnprintf): Fix bug when generated string was too long for the buffer.
48592         Test here whether the string length is > INT_MAX.
48593
48594 2006-08-28  Bruno Haible  <bruno@clisp.org>
48595
48596         * lib/inttypes_.h (SCNX*): Remove definitions.
48597         Reported by Eric Blake.
48598
48599 2006-08-28  Bruno Haible  <bruno@clisp.org>
48600
48601         * lib/c-strstr.h: New file, from GNU gettext.
48602         * lib/c-strstr.c: New file, from GNU gettext.
48603
48604 2006-08-28  Bruno Haible  <bruno@clisp.org>
48605
48606         * gnulib-tool: Reorder some statements.
48607
48608 2006-08-28  Bruno Haible  <bruno@clisp.org>
48609
48610         * gnulib-tool: New option --makefile-name.
48611         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48612         $makefile_name.
48613         (func_import): Write $makefile_name to the cache file, and read it from
48614         there unless explicitly specified. Use $makefile_name as file name
48615         instead of Makefile.am. Adjust the recommendations accordingly.
48616
48617 2006-08-28  Bruno Haible  <bruno@clisp.org>
48618
48619         * gnulib-tool (func_verify_module): Check against misapplying patch.
48620
48621 2006-08-28  Bruno Haible  <bruno@clisp.org>
48622
48623         * gnulib-tool (func_relativize, func_relconcat): New functions.
48624         Give an error if --local-dir is given with --update.
48625         Remove trailing slashes from $local_gnulib_dir.
48626         (func_import): Store the relativized $local_gnulib_dir in
48627         gnulib-cache.m4, and read it from there if not specified explicitly.
48628
48629 2006-08-28  Bruno Haible  <bruno@clisp.org>
48630
48631         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
48632         is the current directory. Respect also $local_gnulib_dir.
48633
48634 2006-08-28  Bruno Haible  <bruno@clisp.org>
48635             Simon Josefsson  <jas@extundo.com>
48636
48637         BeOS portability.
48638         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
48639
48640 2006-08-27  Jim Meyering  <jim@meyering.net>
48641
48642         * doc/visibility.texi: Remove duplicate word: "pointer".
48643
48644 2006-08-26  Bruno Haible  <bruno@clisp.org>
48645
48646         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
48647         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
48648         (Makefile.am): Create inttypes.h from inttypes_.h.
48649         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
48650
48651         * modules/imaxabs: New file.
48652
48653         * modules/imaxdiv: New file.
48654
48655 2006-08-26  Bruno Haible  <bruno@clisp.org>
48656
48657         * m4/inttypes.m4: New file.
48658         * m4/_inttypes_h.m4: Remove file.
48659         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
48660         PRI_MACROS_BROKEN.
48661         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
48662
48663         * m4/imaxabs.m4: New file.
48664
48665         * m4/imaxdiv.m4: New file.
48666
48667 2006-08-26  Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/inttypes_.h: New file.
48670         * lib/inttypes.h: Remove file.
48671         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
48672
48673         * lib/imaxabs.c: New file.
48674
48675         * lib/imaxdiv.c: New file.
48676
48677 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48678
48679         New config-h module, so that "make" output needn't be cluttered
48680         by -DHAVE_CONFIG_H.
48681         * MODULES.html.sh (Support for building libraries and executables):
48682         Add config-h.
48683         * modules/config-h: New file.
48684         * gnulib-tool (nl, sed_transform_lib_file): New vars.
48685         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
48686         the config-h module is used.
48687
48688         New configmake module, so that "make" output needn't be cluttered
48689         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
48690         * MODULES.html.sh (Support for building libraries and executables):
48691         Add configmake.
48692         * modules/configmake: New file.
48693
48694 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48695
48696         * m4/config-h.m4: New file.
48697
48698 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48699
48700         * config/srclist.txt: Add elisp-comp.
48701
48702 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48703
48704         * MODULES.html.sh (Support for building libraries and executables):
48705         Add elisp-comp.
48706         * build-aux/elisp-comp: New file.
48707         * modules/elisp-comp: New file.
48708
48709 2006-08-24  Bruno Haible  <bruno@clisp.org>
48710
48711         * gnulib-tool (func_create_testdir): Use non-default values of
48712         sourcebase and m4base.
48713
48714 2006-08-24  Bruno Haible  <bruno@clisp.org>
48715
48716         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
48717         HTML structure.
48718
48719 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48720
48721         * modules/openat (Depends-on): Add lchown.
48722
48723 2006-08-23  Bruno Haible  <bruno@clisp.org>
48724
48725         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
48726         of gl_LOCK_EARLY instead of gl_LOCK.
48727
48728 2006-08-23  Bruno Haible  <bruno@clisp.org>
48729
48730         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
48731         on OSF/1 to no.
48732         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
48733
48734 2006-08-23  Bruno Haible  <bruno@clisp.org>
48735
48736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
48737         as unusable.
48738
48739         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
48740         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
48741         (gl_LOCK): New macro.
48742
48743 2006-08-22  Simon Josefsson  <jas@extundo.com>
48744
48745         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
48746         to md5 module.
48747
48748 2006-08-22  Simon Josefsson  <jas@extundo.com>
48749
48750         * MODULES.html.sh: Add "Support for maintaining and release
48751         projects".
48752
48753         * build-aux/gnupload: New file, from coreutils.
48754
48755 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48756
48757         Avoid the need for AC_LIBSOURCES in m4 macros.
48758         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
48759         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
48760         * modules/check-version (EXTRA_DIST): Add check-version.h.
48761         * modules/crc (EXTRA_DIST): Add crc.h.
48762         * modules/des (EXTRA_DIST): Add des.h.
48763         * modules/gc (EXTRA_DIST): Add gc.h.
48764         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
48765         * modules/getline (EXTRA_DIST): Add getline.h.
48766         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
48767         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
48768         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
48769         * modules/md2 (EXTRA_DIST): Add md2.h.
48770         * modules/md4 (EXTRA_DIST): Add md4.h.
48771         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
48772         * modules/read-file (EXTRA_DIST): Add read-file.h.
48773         * modules/readline (EXTRA_DIST): Add readline.h.
48774         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
48775         rijndael-api-fst.h.
48776
48777 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48778
48779         * m4/rijndael.m4 (gl_ARCFOUR):
48780         * m4/arctwo.m4 (gl_ARCTWO):
48781         * m4/check-version.m4 (gl_CHECK_VERSION):
48782         * m4/crc.m4 (gl_CRC):
48783         * m4/des.m4 (gl_DES):
48784         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
48785         * m4/gc.m4 (gl_GC):
48786         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
48787         * m4/getline.m4 (gl_FUNC_GETLINE):
48788         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
48789         * m4/hmac-md5.m4 (gl_HMAC_MD5):
48790         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
48791         * m4/md2.m4 (gl_MD2):
48792         * m4/md4.m4 (gl_MD4):
48793         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
48794         * m4/read-file.m4 (gl_FUNC_READ_FILE):
48795         * m4/readline.m4 (gl_FUNC_READLINE):
48796         * m4/rijndael.m4 (gl_RIJNDAEL):
48797         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48798         to get the necessary .h files and whatnot.
48799
48800 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48801
48802         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
48803         gnulib rather than the other way around.
48804         * config/srclistvars.sh (COREUTILS): Remove.
48805
48806 2006-08-22  Jim Meyering  <jim@meyering.net>
48807
48808         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
48809
48810         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
48811
48812 2006-08-22  Eric Blake  <ebb9@byu.net>
48813
48814         * modules/regexprops-generic: New file.
48815         * MODULES.html.sh (Support for building documentation): List it.
48816
48817 2006-08-22  Eric Blake  <ebb9@byu.net>
48818
48819         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
48820         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48821         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
48822         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
48823
48824 2006-08-22  Bruno Haible  <bruno@clisp.org>
48825
48826         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
48827         and lib_LTLIBRARIES like the other lib_* variables.
48828
48829 2006-08-22  Bruno Haible  <bruno@clisp.org>
48830
48831         * build-aux/x-to-1.in: New file, from GNU gettext.
48832
48833 2006-08-22  Bruno Haible  <bruno@clisp.org>
48834
48835         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
48836         <utmpx.h> exists.
48837
48838 2006-08-22  Bruno Haible  <bruno@clisp.org>
48839
48840         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
48841         <utmpx.h> exists.
48842
48843 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48844
48845         BeOS portability.
48846         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
48847         exist.
48848         Problem reported by Bruno Haible.
48849
48850 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48851
48852         Avoid the need for AC_LIBSOURCES in m4 macros.
48853         * modules/acl (EXTRA_DIST): Add acl.h.
48854         * modules/argmatch (Files): Add m4/argmatch.m4.
48855         (configure.ac): Add gl_ARGMATCH.
48856         (EXTRA_DIST): Renamed from lib_SOURCES, for
48857         consistency with the other modules.  Remove argmatch.c.
48858         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
48859         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
48860         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
48861         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
48862         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
48863         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
48864         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
48865         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
48866         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
48867         * modules/closeout (EXTRA_DIST): Add closeout.h.
48868         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
48869         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
48870         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
48871         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
48872         dirname.h; remove basename.c and stripslash.c.
48873         * modules/exclude (EXTRA_DIST): Add exclude.h.
48874         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
48875         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
48876         * modules/file-type (EXTRA_DIST): Add file-type.h.
48877         * modules/filemode (EXTRA_DIST): Add filemode.h.
48878         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
48879         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48880         * modules/fpending (EXTRA_DIST): Add __fpending.h.
48881         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
48882         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
48883         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
48884         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
48885         * modules/getdate (EXTRA_DIST): Add getdate.c.
48886         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
48887         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
48888         * modules/getpass (EXTRA_DIST): Add getpass.h.
48889         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
48890         * modules/group-member (EXTRA_DIST): Add group-member.h.
48891         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
48892         * modules/hash (EXTRA_DIST): Add hash.h.
48893         * modules/human (EXTRA_DIST): Add human.h.
48894         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
48895         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
48896         * modules/lchown (EXTRA_DIST): Add lchown.h.
48897         * modules/long-options (EXTRA_DIST): Add long-options.h.
48898         * modules/lstat (EXTRA_DIST): Add lstat.h.
48899         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
48900         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
48901         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
48902         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
48903         * modules/memxor (EXTRA_DIST): Add memxor.h.
48904         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
48905         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
48906         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
48907         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
48908         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
48909         * modules/physmem (EXTRA_DIST): Add physmem.h.
48910         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
48911         * modules/posixver (EXTRA_DIST): Add posixver.h.
48912         * modules/quote (EXTRA_DIST): Add quote.h.
48913         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
48914         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
48915         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
48916         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
48917         regex_internal.h regexec.c.
48918         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
48919         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
48920         * modules/same (EXTRA_DIST): Add same.h.
48921         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
48922         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
48923         * modules/savedir (EXTRA_DIST): Add savedir.h.
48924         * modules/sha1 (EXTRA_DIST): Add sha1.h.
48925         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
48926         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
48927         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
48928         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
48929         * modules/strdup (EXTRA_DIST): Add strdup.h.
48930         * modules/strftime (EXTRA_DIST): Add strftime.h.
48931         * modules/strndup (EXTRA_DIST): Add strndup.h.
48932         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
48933         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
48934         * modules/time_r (EXTRA_DIST): Add time_r.h.
48935         * modules/timespec (EXTRA_DIST): Add timespec.h.
48936         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48937         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
48938         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
48939         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
48940         * modules/userspec (EXTRA_DIST): Add userspec.h.
48941         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
48942         * modules/utimens (EXTRA_DIST): Add utimens.h.
48943         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
48944         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
48945         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
48946         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
48947         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
48948         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
48949         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
48950         * modules/yesno (EXTRA_DIST): Add yesno.h.
48951
48952 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48953
48954         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
48955
48956         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
48957         * m4/dev-ino.m4, same-inode.m4: Remove.
48958
48959         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
48960         * m4/acl.m4 (AC_FUNC_ACL):
48961         * m4/backupfile.m4 (gl_BACKUPFILE):
48962         * m4/c-strtod.m4 (gl_C99_STRTOLD):
48963         * m4/canon-host.m4 (gl_CANON_HOST):
48964         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48965         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
48966         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
48967         * m4/cloexec.m4 (gl_CLOEXEC):
48968         * m4/close-stream.m4 (gl_CLOSE_STREAM):
48969         * m4/closeout.m4 (gl_CLOSEOUT):
48970         * m4/dirfd.m4 (gl_FUNC_DIRFD):
48971         * m4/dirname.m4 (gl_DIRNAME):
48972         * m4/exclude.m4 (gl_EXCLUDE):
48973         * m4/exitfail.m4 (gl_EXITFAIL):
48974         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
48975         * m4/file-type.m4 (gl_FILE_TYPE):
48976         * m4/filemode.m4 (gl_FILEMODE):
48977         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
48978         * m4/fpending.m4 (gl_FUNC_FPENDING):
48979         * m4/fprintftime.m4 (gl_FPRINTFTIME):
48980         * m4/fts.m4 (gl_FUNC_FTS):
48981         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
48982         * m4/getdate.m4 (gl_GETDATE):
48983         * m4/gethrxtime.m4 (gl_GETHRXTIME):
48984         * m4/getpagesize.m4 (gl_GETPAGESIZE):
48985         * m4/getpass.m4 (gl_FUNC_GETPASS):
48986         * m4/gettime.m4 (gl_GETTIME):
48987         * m4/getugroups.m4 (gl_GETUGROUPS):
48988         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
48989         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
48990         * m4/hard-locale.m4 (gl_HARD_LOCALE):
48991         * m4/hash.m4 (gl_HASH):
48992         * m4/idcache.m4 (gl_IDCACHE):
48993         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
48994         * m4/lchown.m4 (gl_FUNC_LCHOWN):
48995         * m4/long-options.m4 (gl_LONG_OPTIONS):
48996         * m4/lstat.m4 (gl_FUNC_LSTAT):
48997         * m4/md5.m4 (gl_MD5):
48998         * m4/memcasecmp.m4 (gl_MEMCASECMP):
48999         * m4/memcoll.m4 (gl_MEMCOLL):
49000         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49001         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49002         * m4/memxor.m4 (gl_MEMXOR):
49003         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49004         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49005         * m4/modechange.m4 (gl_MODECHANGE):
49006         * m4/mountlist.m4 (gl_MOUNTLIST):
49007         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49008         * m4/openat.m4 (gl_FUNC_OPENAT):
49009         * m4/pathmax.m4 (gl_PATHMAX):
49010         * m4/physmem.m4 (gl_PHYSMEM):
49011         * m4/posixtm.m4 (gl_POSIXTM):
49012         * m4/posixver.m4 (gl_POSIXVER):
49013         * m4/quote.m4 (gl_QUOTE):
49014         * m4/quotearg.m4 (gl_QUOTEARG):
49015         * m4/readtokens.m4 (gl_READTOKENS):
49016         * m4/readutmp.m4 (gl_READUTMP):
49017         * m4/regex.m4 (gl_REGEX):
49018         * m4/safe-read.m4 (gl_SAFE_READ):
49019         * m4/safe-write.m4 (gl_SAFE_WRITE):
49020         * m4/same.m4 (gl_SAME):
49021         * m4/save-cwd.m4 (gl_SAVE_CWD):
49022         * m4/savedir.m4 (gl_SAVEDIR):
49023         * m4/settime.m4 (gl_SETTIME):
49024         * m4/sha1.m4 (gl_SHA1):
49025         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49026         * m4/stat-macros.m4 (gl_STAT_MACROS):
49027         * m4/stat-time.m4 (gl_STAT_TIME):
49028         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49029         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49030         * m4/strdup.m4 (gl_FUNC_STRDUP):
49031         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49032         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49033         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49034         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49035         * m4/time_r.m4 (gl_TIME_R):
49036         * m4/timespec.m4 (gl_TIMESPEC):
49037         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49038         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49039         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49040         * m4/userspec.m4 (gl_USERSPEC):
49041         * m4/utimecmp.m4 (gl_UTIMECMP):
49042         * m4/utimens.m4 (gl_UTIMENS):
49043         * m4/xalloc.m4 (gl_XALLOC):
49044         * m4/xgetcwd.m4 (gl_XGETCWD):
49045         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49046         * m4/xreadlink.m4 (gl_XREADLINK):
49047         * m4/xstrtod.m4 (gl_XSTRTOD):
49048         * m4/yesno.m4 (gl_YESNO):
49049         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49050         to get the necessary .h files and whatnot.
49051
49052 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49053             Bruno Haible  <bruno@clisp.org>
49054
49055         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49056         /bin/sh understanding of '!' conditional negation.
49057
49058 2006-08-21  Jim Meyering  <jim@meyering.net>
49059
49060         * modules/openat (Depends-on): Really alphabetize.
49061
49062         * modules/acl (Depends-on): Add error and quote.
49063
49064         * check-module (find_included_lib_files): Add at-func.c to the
49065         ok-to-include-more-than-once white list.
49066
49067         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49068
49069 2006-08-21  Bruno Haible  <bruno@clisp.org>
49070
49071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49072         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49073         Reported by Martin Lambers <marlam@marlam.de>.
49074
49075 2006-08-21  Bruno Haible  <bruno@clisp.org>
49076
49077         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49078         specify an installation location, don't emit a noinst_LIBRARIES or
49079         noinst_LTLIBRARIES assignment.
49080
49081 2006-08-21  Bruno Haible  <bruno@clisp.org>
49082
49083         BeOS portability.
49084         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49085         BeOS has mbrtowc() but no <wctype.h>.
49086
49087 2006-08-21  Bruno Haible  <bruno@clisp.org>
49088
49089         BeOS portability.
49090         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49091         exist.
49092
49093 2006-08-21  Bruno Haible  <bruno@clisp.org>
49094
49095         BeOS portability.
49096         * lib/mbchar.h: Include <wctype.h> only if it exists.
49097
49098 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49099
49100         Remove files that are no longer needed by their respective modules.
49101         * m4/obstack.m4: Remove.
49102         * m4/strerror_r.m4: Remove.
49103         * m4/uint32_t.m4: Remove.
49104         * m4/uintptr_t.m4: Remove.
49105         * m4/ullong_max.m4: Remove.
49106         * m4/xstrtoimax.m4: Remove.
49107         * m4/xstrtoumax.m4: Remove.
49108
49109         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49110         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49111         dependencies now capture this.
49112
49113         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49114         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49115         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49116         * m4/human.m4 (gl_HUMAN): Likewise.
49117         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49118         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49119
49120         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49121
49122         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49123         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49124         stdint.
49125         * m4/human.m4 (gl_HUMAN): Likewise.
49126         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49127         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49128         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49129         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49130         * m4/xstrtol (gl_XSTRTOL): Likewise.
49131
49132         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49133         AC_TYPE_LONG_LONG_INT.
49134         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49135         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49136         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49137         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49138
49139         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49140         on stdbool.
49141
49142         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49143         (gl_PREREQ_XSTRTOUL): Remove.
49144
49145         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49146
49147         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49148         mode.
49149
49150 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49151
49152         Add and change modules to make it easier for coreutils to use
49153         gnulib-tool.
49154         * modules/backupfile (Files): Remove m4/d-ino.m4.
49155         (Depends-on): Add d-ino.
49156         * modules/cycle-check (Depends-on): Add stdint.
49157         (lib_SOURCES): Add cycle-check.h.
49158         * modules/d-ino: New module.
49159         * modules/d-type: New module.
49160         * modules/error (Files): Remove m4/strerror_r.m4.
49161         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49162         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49163         m4/inttypes_h.m4, m4/uintmax_t.m4.
49164         (Depends-on): Add stdint.
49165         (lib_SOURCES): Add fsusage.h.
49166         * modules/getcwd (Files): Remove d-ino.m4.
49167         (Depends-on): Add d-ino.
49168         * modules/getndelim2 (Depends-on): Add stdint.
49169         * modules/glob (Files): Remove m4/d-type.m4.
49170         (Depends-on): Add d-type.
49171         * modules/host-os: New module.
49172         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49173         m4/inttypes_h.m4, m4/uintmax_t.m4.
49174         * Depends-on: Add stdint.
49175         (lib_SOURCES): Add human.h.
49176         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49177         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49178         m4/uintmax_t.m4, m4/ulonglong.m4.
49179         (Depends-on): Add stdint.
49180         (EXTRA_DIST): Add inttostr.h.
49181         * modules/lchmod: New module.
49182         * modules/link-follow: New module.
49183         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49184         (Depends-on): Add lchmod.
49185         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49186         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49187         (Depends-on): Add stdint.
49188         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49189         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49190         (Depends-on): Add stdint.
49191         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49192         * modules/perl: New module.
49193         * modules/regex (Depends-on): Add stdint.
49194         * modules/rmdir-errno: New module.
49195         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49196         m4/intmax_t.m4.
49197         (Depends-on): Add stdint.
49198         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49199         m4/uintmax_t.m4.
49200         (Depends-on): Add stdint.
49201         * modules/unlink-busy: New module.
49202         * modules/utimecmp (Depends-on): Add stdint.
49203         * modules/uptime: New module.
49204         * modules/winsz-ioctl: New module.
49205         * modules/winsz-termios: New module.
49206         * modules/xnanosleep (Depends-on): Add nanosleep.
49207         * modules/ullong_max: Remove.
49208         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49209         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49210         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49211         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49212         (Depends-on): Add inttypes.
49213         (lib_SOURCES): Add xstrtol.h.
49214         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49215         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49216         * MODULES.html.sh: Move 'assert' into the assert section.
49217         Move 'dummy' into the linking section.
49218         Remove ullong_max.
49219         Add section for compatibility checks for POSIX:2001 functions,
49220         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49221         winsz-ioctl, and winsz-termios into it.
49222         Add lchmod.
49223         Add top-level Misc section and put host-os, perl, and uptime
49224         into it.
49225
49226 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49227
49228         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49229         now assume the stdint module.  Do not include inttypes.h.
49230         * lib/fsusage.h: Likewise.
49231         * lib/getndelim2.c: Likewise.
49232         * lib/human.h: Likewise.
49233         * lib/inttostr.h: Likewise.
49234         * lib/obstack.c: Likewise.
49235         * lib/regex_internal.h: Likewise.
49236         * lib/tempname.c: Likewise.
49237         * lib/utimecmp.c: Likewise.
49238         * lib/xstrtol.h: Likewise.
49239
49240         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49241
49242         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49243         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49244         * lib/xtime.h: Likewise.
49245
49246 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49247
49248         * modules/openat (Files): Add lib/fchmodat.c.
49249         Fixes problem reported by Jay Youngman.
49250
49251 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49252
49253         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49254         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49255
49256 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49257             Bruno Haible  <bruno@clisp.org>
49258
49259         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49260         and is a script that invokes bison. Tighten the code. Add comments.
49261
49262 2006-08-18  Jim Meyering  <jim@meyering.net>
49263
49264         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49265         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49266         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49267         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49268
49269 2006-08-18  Bruno Haible  <bruno@clisp.org>
49270
49271         * modules/bison-i18n: New file.
49272         * MODULES.html.sh (Internationalization functions): Add it.
49273
49274 2006-08-18  Bruno Haible  <bruno@clisp.org>
49275
49276         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49277         sys/statvfs.h. When getmntinfo was found, check its declaration and
49278         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49279
49280 2006-08-18  Bruno Haible  <bruno@clisp.org>
49281
49282         * m4/bison-i18n.m4: New file, from bison.
49283
49284 2006-08-18  Bruno Haible  <bruno@clisp.org>
49285
49286         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49287         (ME_DUMMY): Treat "kernfs" as a dummy.
49288         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49289
49290 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49291
49292         Update from coreutils.
49293
49294         2006-08-15  Jim Meyering  <jim@meyering.net>
49295
49296         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49297
49298         2006-01-17  Jim Meyering  <jim@meyering.net>
49299
49300         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49301
49302         2006-01-11  Jim Meyering  <jim@meyering.net>
49303
49304         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49305         Check for the lchmod function.
49306
49307 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49308
49309         Update from coreutils.
49310
49311         * lib/__fpending.h: Add copyright notice.
49312         * lib/fprintftime.h: Likewise.
49313         * lib/savedir.c: Use (C) in copyright notice.
49314         * lib/savedir.h: Likewise.
49315
49316         2006-08-15  Jim Meyering  <jim@meyering.net>
49317
49318         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49319         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49320         in support of the EXPECTED_ERRNO macro.
49321         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49322         definitions.  Instead, define the appropriate symbols and include
49323         "at-func.c".
49324         * lib/mkdirat.c (mkdirat): Likewise.
49325         * lib/fchmodat.c (fchmodat): Likewise.
49326         (ENOSYS): Remove definition.
49327         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49328         it.  Don't include "unistd--.h" -- it wasn't ever used.
49329
49330         2006-01-17  Jim Meyering  <jim@meyering.net>
49331
49332         Rewrite fts.c not to change the current working directory,
49333         by using openat, fstatat, fdopendir, etc..
49334
49335         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49336         (HAVE_OPENAT_SUPPORT): Define.
49337         [_LIBC] (fchdir): Don't undef or define; no longer used.
49338         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49339         Now, this `function' always succeeds, and consumes its file descriptor
49340         parameter -- so callers must not close such FDs.  Update callers.
49341         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49342         (diropen): Add parameter, SP.  Adjust all callers.
49343         Implement using diropen_fd, rather than open.
49344         (fts_open): Initialize new member, fts_cwd_fd.
49345         Remove fts_rft-setting code.
49346         (fts_close): Close fts_cwd_fd, if necessary.
49347         (__opendir2): Define in terms of opendir or opendirat,
49348         depending on whether the FST_NOCHDIR flag is set.
49349         (fts_build): Since fts_safe_changedir consumes its FD, and since
49350         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49351         and close the dup'd file descriptor upon failure.
49352         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49353         (fts_safe_changedir): Tweak semantics to reflect that this function
49354         now calls cwd_advance_fd and hence consumes its FD argument.
49355         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49356         [struct FTS] (fts_rft): Remove now-unused member.
49357         [struct FTS] (fts_cycle.state): Improve comment.
49358
49359         * lib/openat.c (openat_needs_fchdir): New function.
49360         * lib/openat.h (openat_needs_fchdir): Declare it.
49361
49362 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49363
49364         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49365         Problem and fix reported by Pádraig Brady in
49366         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49367
49368 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49369
49370         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49371
49372 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49373
49374         * lib/memcoll.c (memcoll): Optimize for the common case where the
49375         arguments are bytewise equal.
49376
49377 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49378
49379         * doc/regexprops-generic.texi: Add a copyright notice.
49380
49381 2006-08-15  Bruno Haible  <bruno@clisp.org>
49382
49383         * modules/tmpdir (License): Change to LGPL.
49384
49385 2006-08-15  Bruno Haible  <bruno@clisp.org>
49386
49387         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49388         module.
49389
49390 2006-08-14  Simon Josefsson  <jas@extundo.com>
49391
49392         * config/srclist.txt: Add gnupload.
49393
49394 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49395
49396         Change copyright notice from LGPL 2 to GPL 2, since that's the
49397         standard form used in the gnulib repository.
49398         * tests/test-lock.c: Likewise.
49399         * tests/test-stdint.c: Likewise.
49400         * tests/test-tls.c: Likewise.
49401
49402         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49403         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49404         Add copyright notice.
49405
49406         * check-module: Add copyright notice.  Output a copyright
49407         notice if "--version" is specified.
49408         * modules/COPYING: New file.
49409         * tests/test-getaddrinfo.c: Add copyright notice.
49410         * tests/test-verify.c: Likewise.
49411
49412 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49413
49414         Change copyright notice from LGPL 2 to GPL 2, since that's the
49415         standard form used in the gnulib repository.
49416         * lib/lock.c: LGPL -> GPL.
49417         * lib/lock.h: Likewise.
49418         * lib/strnlen1.c: Likewise.
49419         * lib/strnlen1.h: Likewise.
49420         * lib/tls.c: Likewise.
49421         * lib/tls.h: Likewise.
49422         * lib/tmpdir.c: Likewise.
49423
49424         * lib/TODO: Remove; this belongs only in coreutils.
49425
49426 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49427
49428         Add copyright notices to long-enough files that lack them, since
49429         otherwise the files aren't clearly free.  Use the same notice that
49430         getdate.texi already uses.
49431         * doc/alloca-opt.texi: Add copyright notice.
49432         * doc/alloca.texi: Likewise.
49433         * doc/ctime.texi: Likewise.
49434         * doc/functions.texi: Likewise.
49435         * doc/gcd.texi: Likewise.
49436         * doc/gnulib-tool.texi: Likewise.
49437         * doc/inet_ntoa.texi: Likewise.
49438         * doc/visibility.texi: Likewise.
49439
49440         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49441         * doc/quote.texi: Add copyright notice.
49442
49443         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49444         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49445         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49446         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49447         is now obsolete, and give a pointer to the Sun list.
49448         Add copyright notice.
49449
49450 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49451
49452         * config/srclistvars.sh: Add copyright notice.
49453
49454 2006-08-14  Eric Blake  <ebb9@byu.net>
49455
49456         Import the following change from libc:
49457
49458         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49459
49460         Upstream bug 2997.
49461         * lib/misc/error.c: Add space between program name and message if file
49462         name is missing.
49463
49464 2006-08-12  Karl Berry  <karl@gnu.org>
49465
49466         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49467         remove, these originate in gnulib now.
49468
49469 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49470
49471         * doc/Makefile (standards.info standards.html standards.dvi):
49472         Also depend on make-stds.texi.
49473
49474 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49475
49476         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49477         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49478
49479         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49480         in wchar_t.  Problem reported by Eric Blake.
49481
49482         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49483         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49484         Also, help the compiler to keep LEN in a register.
49485
49486 2006-08-11  Eric Blake  <ebb9@byu.net>
49487
49488         * users.txt: Sort.  Add tar.
49489
49490 2006-08-11  Bruno Haible  <bruno@clisp.org>
49491
49492         * users.txt: New file.
49493
49494 2006-08-11  Bruno Haible  <bruno@clisp.org>
49495
49496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49497         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49498
49499 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49500
49501         * modules/snprintf (Depends-on): Remove minmax.
49502         (Maintainer): Add self and Bruno.
49503
49504 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49505
49506         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49507         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49508         (EOVERFLOW): Define if the system does not.
49509         Do not include "minmax.h"; it wasn't used.
49510         (snprintf): Don't assume size_t promotes to an unsigned type.
49511         Fix bug when generated string was too long for the buffer: the
49512         buffer's contents are supposed to be the initial prefix of the
49513         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49514         exceeds INT_MAX; do the check ourselves.
49515
49516         Import the following changes from libc:
49517
49518         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49519
49520         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49521         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49522         set wc to the byte which couldn't be converted.
49523         (re_string_reconstruct): Don't clear valid_raw_len before calling
49524         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49525         tip_context using re_string_context_at.
49526
49527         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49528
49529         * lib/posix/regex.h: g++ still cannot handled [restrict].
49530
49531         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49532
49533         * lib/posix/regex.h: Remove special handling for VMS.
49534
49535 2006-08-10  Jim Meyering  <jim@meyering.net>
49536
49537         * modules/same-inode: New module.
49538         * modules/dev-ino: New module.
49539         * modules/cycle-check: Depend on these modules, rather than simply
49540         including their .h files.
49541         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49542         required via m4/cycle-check.m4.
49543         * modules/same: Depend on new same-inode module, rather than
49544         including same-inode.h.
49545         * modules/chdir-safer: New file.
49546
49547         * modules/chown (Depends-on): Add stat-macros.
49548
49549 2006-08-10  Jim Meyering  <jim@meyering.net>
49550
49551         * m4/cycle-check.m4: New file.
49552         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49553         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49554
49555 2006-08-10  Eric Blake  <ebb9@byu.net>
49556
49557         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49558         in from original proposal.
49559
49560 2006-08-10  Eric Blake  <ebb9@byu.net>
49561         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49562
49563         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49564         namespace.
49565
49566 2006-08-10  Bruno Haible  <bruno@clisp.org>
49567
49568         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49569         as well.
49570
49571 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49572
49573         Sync from coreutils.
49574
49575         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49576
49577         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49578         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49579
49580 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49581
49582         * modules/restrict: Remove; no longer needed now that we assume
49583         Autoconf 2.59 or later.
49584         * MODULES.html.sh: Remove 'restrict'.
49585         * modules/argp (Depends-on): Remove 'restrict'.
49586         * modules/base64 (Depends-on): Likewise.
49587         * modules/gc (Depends-on): Likewise.
49588         * modules/getaddrinfo (Depends-on): Likewise.
49589         * modules/glob (Depends-on): Likewise.
49590         * modules/inet_ntop (Depends-on): Likewise.
49591         * modules/inet_pton (Depends-on): Likewise.
49592         * modules/memxor (Depends-on): Likewise.
49593         * modules/regex (Depends-on): Likewise.
49594         * modules/strtok_r (Depends-on): Likewise.
49595         * modules/time_r (Depends-on): Likewise.
49596
49597 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49598
49599         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49600         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49601         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49602         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49603         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49604         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49605         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49606         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49607
49608         Merge from coreutils.
49609         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49610         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49611         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49612         * m4/time_r.m4 (gl_TIME_R): Likewise.
49613
49614 2006-08-09  Karl Berry  <karl@gnu.org>
49615
49616         * config/srclist.txt: no more gettext-tools, per Bruno.
49617
49618 2006-08-08  Eric Blake  <ebb9@byu.net>
49619
49620         * modules/verror: New module.
49621         * MODULES.html.sh: Document it.
49622
49623 2006-08-08  Eric Blake  <ebb9@byu.net>
49624
49625         * lib/verror.h, lib/verror.c: New files.
49626
49627 2006-08-08  Eric Blake  <ebb9@byu.net>
49628
49629         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
49630         verror_at_line output complies with GNU Coding Standards even when
49631         file is NULL.
49632
49633 2006-08-07  Bruno Haible  <bruno@clisp.org>
49634
49635         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
49636         versions of AIX.
49637         Reported by Ralf Wildenhues.
49638
49639 2006-08-07  Bruno Haible  <bruno@clisp.org>
49640
49641         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
49642         in an AC_DEFUN. Needed so that the autoconf snippets can use
49643         AC_REQUIRE.
49644
49645 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49646
49647         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49648         Initialize pkgdata_DATA.
49649         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
49650         overriding it.
49651
49652 2006-08-06  Eric Blake  <ebb9@byu.net>
49653
49654         * lib/error.h: Fold in some upstream changes from glibc.
49655         * lib/error.c: Likewise.
49656
49657 2006-08-04  Bruno Haible  <bruno@clisp.org>
49658
49659         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49660         Make the mostlyclean-local rule depend on mostlyclean-generic.
49661         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
49662
49663 2006-07-31  Bruno Haible  <bruno@clisp.org>
49664
49665         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
49666         <stdlib.h>, <string.h>.
49667
49668 2006-07-30  Bruno Haible  <bruno@clisp.org>
49669
49670         * modules/readlink (License): Change to LGPL.
49671
49672 2006-07-30  Bruno Haible  <bruno@clisp.org>
49673
49674         * modules/javaversion (Makefile.am): Distribute javaversion.java and
49675         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
49676         set PKGDATADIR to point to it.
49677
49678 2006-07-30  Bruno Haible  <bruno@clisp.org>
49679
49680         * modules/csharpexec (configure.ac): Comment out macro invocation.
49681         * modules/javaexec (configure.ac): Likewise.
49682         * modules/javacomp-script (configure.ac): Likewise.
49683
49684         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
49685
49686 2006-07-30  Bruno Haible  <bruno@clisp.org>
49687
49688         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
49689         linked-list.
49690
49691 2006-07-30  Bruno Haible  <bruno@clisp.org>
49692
49693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
49694
49695 2006-07-30  Bruno Haible  <bruno@clisp.org>
49696
49697         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49698         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
49699         get removed.
49700
49701 2006-07-29  Bruno Haible  <bruno@clisp.org>
49702
49703         Make it possible for gnulib-tool to work with locally modified or
49704         augmented gnulib repositories.
49705         * gnulib-tool (func_usage): Document --local-dir option.
49706         (local_gnulib_dir): New variable.
49707         Handle --local-dir option.
49708         (func_lookup_file): New function.
49709         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
49710         (func_get_description, func_get_filelist, func_get_description,
49711         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
49712         func_get_automake_snippet, func_get_include_directive,
49713         func_get_license, func_get_maintainer): Use func_lookup_file.
49714         (func_import, func_create_testdir): Use func_lookup_file.
49715
49716 2006-07-29  Bruno Haible  <bruno@clisp.org>
49717
49718         * modules/setenv (Depends-on): Add unistd.
49719
49720 2006-07-29  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
49723
49724 2006-07-29  Bruno Haible  <bruno@clisp.org>
49725
49726         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
49727
49728 2006-07-29  Bruno Haible  <bruno@clisp.org>
49729
49730         * gnulib-tool (import, update): If there is no Makefile.am, look at
49731         aclocal.m4, instead of bailing out.
49732
49733 2006-07-29  Bruno Haible  <bruno@clisp.org>
49734
49735         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
49736         Categorize the options by when they are useful.
49737
49738 2006-07-29  Bruno Haible  <bruno@clisp.org>
49739
49740         * gnulib-tool (func_usage): Document option --no-libtool.
49741         Handle option --no-libtool.
49742         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
49743         for changed semantics of $libtool variable.
49744         (func_import): Likewise. If libtool is not used, show this through
49745         an option --no-libtool.
49746         (func_create_testdir): Update.
49747
49748 2006-07-29  Bruno Haible  <bruno@clisp.org>
49749
49750         * gnulib-tool (func_import): Extend error message about missing
49751         --doc-base.
49752
49753 2006-07-29  Bruno Haible  <bruno@clisp.org>
49754
49755         * gnulib-tool (func_import): Don't create the $docbase directory if
49756         there is no file to store there.
49757
49758 2006-07-29  Bruno Haible  <bruno@clisp.org>
49759
49760         * gnulib-tool (autoconf_minversion): If a --dir option is given and
49761         relevant, look for configure.ac there, not in the current directory.
49762         Also use a simple search for AC_PREREQ, not "autoconf --trace".
49763
49764 2006-07-29  Bruno Haible  <bruno@clisp.org>
49765
49766         * gnulib-tool (SORT): New variable.
49767         (func_usage): Undocument --assume-autoconf option.
49768         Remove --assume-autoconf option handling.
49769         (autoconf_minversion): Determine from the contents of configure.ac.
49770         (func_import): Remove autoconf_minversion handling.
49771         Suggested by Eric Blake.
49772
49773 2006-07-29  Bruno Haible  <bruno@clisp.org>
49774
49775         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
49776
49777 2006-07-29  Bruno Haible  <bruno@clisp.org>
49778
49779         * config/srclist.txt (*setenv.[ch]): Remove rules.
49780
49781 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49782
49783         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
49784
49785 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49786
49787         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
49788         arpa/inet.h.
49789
49790 2006-07-28  Simon Josefsson  <jas@extundo.com>
49791
49792         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
49793         * modules/inet_pton (Depends-on): Likewise.
49794
49795 2006-07-28  Simon Josefsson  <jas@extundo.com>
49796
49797         * m4/netinet_in_h.m4: New file.
49798
49799 2006-07-28  Simon Josefsson  <jas@extundo.com>
49800
49801         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
49802         #include's.
49803
49804 2006-07-28  Simon Josefsson  <jas@extundo.com>
49805
49806         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
49807         #include's.
49808
49809 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
49810
49811         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
49812         setgid on directories only if they set these bits.
49813         * lib/modechange.h: Remove obsolete comment about masks.
49814
49815 2006-07-28  Eric Blake  <ebb9@byu.net>
49816
49817         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
49818         macro expansion.
49819
49820 2006-07-28  Bruno Haible  <bruno@clisp.org>
49821
49822         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
49823
49824 2006-07-28  Bruno Haible  <bruno@clisp.org>
49825
49826         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
49827
49828 2006-07-28  Bruno Haible  <bruno@clisp.org>
49829
49830         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49831         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49832         Define fallbacks.
49833         Avoids link error on FreeBSD 4.x.
49834         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49835
49836         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
49837         encoding.
49838         * lib/mbswidth.c (iswcntrl): Likewise.
49839
49840 2006-07-27  Bruno Haible  <bruno@clisp.org>
49841
49842         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
49843         test.
49844
49845 2006-07-27  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
49848         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
49849         defined.
49850
49851 2006-07-26  Eric Blake  <ebb9@byu.net>
49852
49853         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
49854
49855 2006-07-26  Eric Blake  <ebb9@byu.net>
49856
49857         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
49858         like mingw that lack mkstemp.
49859         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
49860         avoid compilation warning on mingw.
49861
49862 2006-07-26  Bruno Haible  <bruno@clisp.org>
49863
49864         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
49865         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
49866         INT_FAST*_MIN, INTPTR_MIN.
49867
49868 2006-07-25  Bruno Haible  <bruno@clisp.org>
49869
49870         * modules/version-etc (Depends-on): Add stdarg.
49871
49872 2006-07-25  Bruno Haible  <bruno@clisp.org>
49873
49874         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
49875         complex commands.
49876
49877 2006-07-25  Bruno Haible  <bruno@clisp.org>
49878
49879         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
49880         defined in <stdarg.h> or config.h.
49881
49882 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49883
49884         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
49885         (gl_STDIO_SAFER): Remove.
49886
49887 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49888
49889         * MODULES.html.sh (File stream based Input/Output):
49890         Add fopen-safer, tmpfile-safer; remove stdio-safer.
49891         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
49892         * modules/fopen-safer, modules/tmpfile-safer: New files.
49893         * modules/stdio-safer: Remove.
49894
49895 2006-07-24  Bruno Haible  <bruno@clisp.org>
49896
49897         * modules/tmpdir: New file.
49898         * MODULES.html.sh (File system functions): Add it.
49899
49900 2006-07-24  Bruno Haible  <bruno@clisp.org>
49901
49902         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
49903         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
49904
49905 2006-07-24  Bruno Haible  <bruno@clisp.org>
49906
49907         * modules/clean-temp: New file.
49908
49909 2006-07-24  Bruno Haible  <bruno@clisp.org>
49910
49911         * m4/tmpdir.m4: New file, from GNU gettext.
49912
49913 2006-07-24  Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/tmpdir.h: New file, from GNU gettext.
49916         * lib/tmpdir.c: New file, from GNU gettext.
49917
49918 2006-07-24  Bruno Haible  <bruno@clisp.org>
49919
49920         * lib/clean-temp.h: New file, from GNU gettext.
49921         * lib/clean-temp.c: New file, from GNU gettext.
49922
49923 2006-07-23  Eric Blake  <ebb9@byu.net>
49924
49925         * modules/stdio-safer (Files): Add tmpfile-safer.c.
49926         (Depends-on): Add binary-io.
49927
49928 2006-07-23  Eric Blake  <ebb9@byu.net>
49929
49930         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
49931
49932 2006-07-23  Eric Blake  <ebb9@byu.net>
49933
49934         * lib/tmpfile-safer.c: New file.
49935         * lib/stdio-safer.h (fopen_safer): Add prototype.
49936         * lib/stdio--.h (tmpfile): Make safer.
49937
49938 2006-07-23  Bruno Haible  <bruno@clisp.org>
49939
49940         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
49941         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
49942         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
49943         gl_linked_remove_at): Use it.
49944
49945 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49946         and Simon Josefsson <jas@extundo.com>
49947
49948         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
49949
49950         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
49951
49952 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49953
49954         * modules/close-stream: New file.
49955         * modules/closeout (Description): Make it clear that it exits
49956         with a diagnostic on error.
49957         (Depends-on): Add close-stream.  Remove fpending, stdbool.
49958         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
49959
49960 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49961
49962         * m4/close-stream.m4: New file.
49963
49964 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49965
49966         * lib/close-stream.c, lib/close-stream.h: New files.
49967
49968 2006-07-22  Bruno Haible  <bruno@clisp.org>
49969
49970         Merge from GNU gettext 0.15.
49971
49972         2006-05-01  Bruno Haible  <bruno@clisp.org>
49973
49974                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
49975
49976         2006-07-22  Bruno Haible  <bruno@clisp.org>
49977
49978                 * modules/javaversion: New file.
49979                 * MODULES.html.sh (Java): Add javaversion.
49980
49981         2006-03-12  Bruno Haible  <bruno@clisp.org>
49982
49983                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
49984
49985         2005-12-04  Bruno Haible  <bruno@clisp.org>
49986
49987                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
49988                 (untested).
49989
49990         2006-06-21  Bruno Haible  <bruno@clisp.org>
49991
49992                 Avoid warnings from recent versions of mcs.
49993                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
49994                 -o, -L, -r any more. Use options documented since mcs-1.0
49995                 instead. Similarly for -g.
49996
49997         2005-12-04  Bruno Haible  <bruno@clisp.org>
49998
49999                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50000                 .resources, not .resource.
50001
50002         2005-07-09  Bruno Haible  <bruno@clisp.org>
50003
50004                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50005                 add a .dll suffix.
50006                 Reported by Mark Junker <mjscod@gmx.de>.
50007
50008         2006-07-22  Bruno Haible  <bruno@clisp.org>
50009
50010                 * modules/gettext: Upgrade to gettext-0.15.
50011                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50012                 m4/visibility.m4.
50013                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50014
50015 2006-07-22  Bruno Haible  <bruno@clisp.org>
50016
50017         Merge from GNU gettext 0.15.
50018
50019         2006-03-25  Bruno Haible  <bruno@clisp.org>
50020
50021                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50022
50023         2006-07-21  Bruno Haible  <bruno@clisp.org>
50024
50025                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50026                 "1.1".
50027
50028         2006-05-09  Bruno Haible  <bruno@clisp.org>
50029
50030                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50031                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50032                 for the conftestver execution.
50033
50034         2006-05-01  Bruno Haible  <bruno@clisp.org>
50035
50036                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50037                 optional target-version argument. Verify that the compiler
50038                 groks source of the specified source-version, or add -source
50039                 option as necessary. Verify that the compiler produces
50040                 bytecode in the specified target-version, or add -target and
50041                 -source options as necessary. Make the result of the test
50042                 available as variable CONF_JAVAC. Also log error output in
50043                 config.log.
50044
50045         2006-03-11  Bruno Haible  <bruno@clisp.org>
50046
50047                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50048
50049         2006-05-09  Bruno Haible  <bruno@clisp.org>
50050
50051                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50052                 CLASSPATH_SEPARATOR to a semicolon.
50053
50054         2006-03-12  Bruno Haible  <bruno@clisp.org>
50055
50056                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50057                 available as variable CONF_JAVA, for subsequent autoconf
50058                 tests. Also log error output in config.log.
50059
50060         2006-07-19  Bruno Haible  <bruno@clisp.org>
50061
50062                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50063                 that getline works on glibc2 systems. Needed to avoid trouble
50064                 in relocatable.c.
50065                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50066
50067         2005-12-04  Bruno Haible  <bruno@clisp.org>
50068
50069                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50070                 launcher (untested).
50071
50072         2005-12-04  Bruno Haible  <bruno@clisp.org>
50073
50074                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50075
50076         2006-07-22  Bruno Haible  <bruno@clisp.org>
50077
50078                 * gettext.m4: Update from GNU gettext-0.15.
50079                 * nls.m4: Likewise.
50080                 * po.m4: Likewise.
50081                 * inttypes-pri.m4: Likewise.
50082                 * inttypes-h.m4: Renamed from inttypes.m4.
50083                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50084
50085 2006-07-22  Bruno Haible  <bruno@clisp.org>
50086
50087         Merge from GNU gettext 0.15.
50088
50089         2005-07-05  Bruno Haible  <bruno@clisp.org>
50090
50091                 * printf-args.c (printf_fetchargs): Work around broken
50092                 definition of wint_t on mingw.
50093
50094         2005-02-12  Bruno Haible  <bruno@clisp.org>
50095
50096                 * xallocsa.h: Add extern "C" for C++.
50097
50098         2006-05-17  Bruno Haible  <bruno@clisp.org>
50099
50100                 Cygwin portability.
50101                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50102
50103         2006-04-30  Bruno Haible  <bruno@clisp.org>
50104
50105                 * progreloc.c: Include <mach-o/dyld.h> if available.
50106                 (find_executable): Use _NSGetExecutablePath when possible.
50107
50108         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50109
50110                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50111                 function.
50112
50113         2005-12-29  Bruno Haible  <bruno@clisp.org>
50114
50115                 * progreloc.c (set_program_name_and_installdir): Fix
50116                 compilation error.
50117
50118         2005-12-04  Bruno Haible  <bruno@clisp.org>
50119
50120                 Cygwin portability.
50121                 * progreloc.c: Include <windows.h> also on Cygwin.
50122                 (find_executable): Add support for Cygwin.
50123                 (set_program_name_and_installdir): Handle also platforms with
50124                 nonempty EXEEXT.
50125
50126         2006-07-11  Bruno Haible  <bruno@clisp.org>
50127
50128                 * javacomp.c: Fix a comment.
50129                 Reported by Jim Meyering.
50130
50131         2006-04-30  Bruno Haible  <bruno@clisp.org>
50132
50133                 * javacomp.h (compile_java_class): Add source_version,
50134                 target_version arguments.
50135                 * javacomp.c: Rewritten to choose only a compiler that
50136                 respects the specified source_version and target_version.
50137
50138         2006-06-27  Bruno Haible  <bruno@clisp.org>
50139
50140                 Assume correct S_ISDIR macro.
50141                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50142
50143         2006-07-22  Bruno Haible  <bruno@clisp.org>
50144
50145                 * javaversion.h: New file, from GNU gettext.
50146                 * javaversion.c: New file, from GNU gettext.
50147                 * javaversion.java: New file, from GNU gettext.
50148                 * javaversion.class: New file, from GNU gettext.
50149
50150         2006-05-17  Bruno Haible  <bruno@clisp.org>
50151
50152                 Cygwin portability.
50153                 * javaexec.c (execute_java_class): Test for jview program
50154                 also on Cygwin.
50155
50156         2006-04-09  Bruno Haible  <bruno@clisp.org>
50157
50158                 * fatal-signal.c: Don't include string.h.
50159                 (at_fatal_signal): Use a copying loop instead of memcpy.
50160
50161         2005-12-04  Bruno Haible  <bruno@clisp.org>
50162
50163                 * csharpexec.c: Add support for 'clix' launcher (untested).
50164                 (execute_csharp_using_sscli): New function.
50165                 (execute_csharp_program): Call it.
50166
50167         2006-06-21  Bruno Haible  <bruno@clisp.org>
50168
50169                 Avoid warnings from recent versions of mcs.
50170                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50171                 -o, -L, -r any more. Use options documented since mcs-1.0
50172                 instead. Similarly for -g.
50173
50174         2005-07-09  Bruno Haible  <bruno@clisp.org>
50175
50176                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50177                 add a .dll suffix.
50178                 Reported by Mark Junker <mjscod@gmx.de>.
50179
50180         2006-06-17  Bruno Haible  <bruno@clisp.org>
50181
50182                 * config.charset: Update for NetBSD 3.0.
50183
50184         2006-05-17  Bruno Haible  <bruno@clisp.org>
50185
50186                 Cygwin portability.
50187                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50188
50189         2006-05-16  Bruno Haible  <bruno@clisp.org>
50190
50191                 * localcharset.c [CYGWIN]: Include <windows.h>.
50192                 (get_charset_aliases): For Cygwin, return the same CPxxx
50193                 aliases list as under WIN32.
50194                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50195                 the environment variables. Fall back to GetACP().
50196
50197         2006-04-05  Bruno Haible  <bruno@clisp.org>
50198
50199                 * config.charset: Update Juan Manuel Guerrero's address.
50200
50201         2005-02-12  Bruno Haible  <bruno@clisp.org>
50202
50203                 * allocsa.h: Add extern "C" for C++.
50204
50205         2005-02-10  Bruno Haible  <bruno@clisp.org>
50206
50207                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50208                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50209
50210         2006-07-22  Bruno Haible  <bruno@clisp.org>
50211
50212                 * gettext.h: Update to GNU gettext-0.15.
50213
50214 2006-07-22  Bruno Haible  <bruno@clisp.org>
50215
50216         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50217         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50218         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50219
50220 2006-07-21  Eric Blake  <ebb9@byu.net>
50221
50222         * modules/stdlib-safer: New file.
50223         * MODULES.html.sh (File stream based Input/Output): Add
50224         stdlib-safer.
50225
50226 2006-07-21  Eric Blake  <ebb9@byu.net>
50227
50228         * lib/stdlib-safer.h: New file from coreutils, required by
50229         stdlib--.h.
50230
50231 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50232
50233         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50234
50235 2006-07-20  Bruno Haible  <bruno@clisp.org>
50236
50237         * gnulib-tool: Recognize new option --assume-autoconf.
50238         (autoconf_minversion): New variable.
50239         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50240
50241 2006-07-20  Bruno Haible  <bruno@clisp.org>
50242
50243         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50244
50245 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50246
50247         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50248         Reindent and repaginate.
50249
50250 2006-07-19  Derek Price  <derek@ximbiot.com>
50251
50252         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50253         Correct grammar.
50254
50255 2006-07-17  Bruno Haible  <bruno@clisp.org>
50256
50257         * modules/list: New file.
50258         * modules/array-list: New file.
50259         * modules/carray-list, modules/carray-list-tests: New files.
50260         * modules/linked-list, modules/linked-list-tests: New files.
50261         * modules/avltree-list, modules/avltree-list-tests: New files.
50262         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50263         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50264         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50265         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50266         * modules/oset: New file.
50267         * modules/array-oset: New file.
50268         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50269         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50270         * tests/test-carray_list.c: New file.
50271         * tests/test-linked_list.c: New file.
50272         * tests/test-avltree_list.c: New file.
50273         * tests/test-rbtree_list.c: New file.
50274         * tests/test-linkedhash_list.c: New file.
50275         * tests/test-avltreehash_list.c: New file.
50276         * tests/test-rbtreehash_list.c: New file.
50277         * tests/test-avltree_oset.c: New file.
50278         * tests/test-rbtree_oset.c: New file.
50279         * MODULES.html.sh (Container data structures): New section.
50280
50281 2006-07-17  Bruno Haible  <bruno@clisp.org>
50282
50283         * m4/gl_list.m4: New file.
50284
50285 2006-07-17  Bruno Haible  <bruno@clisp.org>
50286
50287         * lib/gl_list.h: New file.
50288         * lib/gl_list.c: New file.
50289         * lib/gl_array_list.h: New file.
50290         * lib/gl_array_list.c: New file.
50291         * lib/gl_carray_list.h: New file.
50292         * lib/gl_carray_list.c: New file.
50293         * lib/gl_linked_list.h: New file.
50294         * lib/gl_linked_list.c: New file.
50295         * lib/gl_anylinked_list1.h: New file.
50296         * lib/gl_anylinked_list2.h: New file.
50297         * lib/gl_avltree_list.h: New file.
50298         * lib/gl_avltree_list.c: New file.
50299         * lib/gl_anyavltree_list1.h: New file.
50300         * lib/gl_anyavltree_list2.h: New file.
50301         * lib/gl_rbtree_list.h: New file.
50302         * lib/gl_rbtree_list.c: New file.
50303         * lib/gl_anyrbtree_list1.h: New file.
50304         * lib/gl_anyrbtree_list2.h: New file.
50305         * lib/gl_anytree_list1.h: New file.
50306         * lib/gl_anytree_list2.h: New file.
50307         * lib/gl_linkedhash_list.h: New file.
50308         * lib/gl_linkedhash_list.c: New file.
50309         * lib/gl_anyhash_list1.h: New file.
50310         * lib/gl_anyhash_list2.h: New file.
50311         * lib/gl_avltreehash_list.h: New file.
50312         * lib/gl_avltreehash_list.c: New file.
50313         * lib/gl_rbtreehash_list.h: New file.
50314         * lib/gl_rbtreehash_list.c: New file.
50315         * lib/gl_anytreehash_list1.h: New file.
50316         * lib/gl_anytreehash_list2.h: New file.
50317
50318         * lib/gl_oset.h: New file.
50319         * lib/gl_oset.c: New file.
50320         * lib/gl_array_oset.h: New file.
50321         * lib/gl_array_oset.c: New file.
50322         * lib/gl_avltree_oset.h: New file.
50323         * lib/gl_avltree_oset.c: New file.
50324         * lib/gl_rbtree_oset.h: New file.
50325         * lib/gl_rbtree_oset.c: New file.
50326         * lib/gl_anytree_oset.h: New file.
50327
50328 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50329
50330         * m4/mkancesdirs.m4: New file.
50331         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50332         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50333         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50334         it.
50335
50336 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50337
50338         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50339         * lib/mkancesdirs.h: New files.
50340         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50341         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50342         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50343         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50344         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50345         callers changed.  Revamp internals significantly, by not
50346         attempting to create directories that are temporarily more
50347         permissive than the final results.  Do not attempt to use
50348         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50349         This removes some race conditions, fixes some bugs, and simplifies
50350         things.  Use new dirchownmod function to do owner and mode changes.
50351         * lib/mkdir-p.h: Likewise.
50352         * lib/modechange.c (octal_to_mode): New function.
50353         (struct mode_change): New member mentioned.
50354         (make_node_op_equals): New arg mentioned.  All callers changed.
50355         (mode_compile): Keep track of which mode bits the user has explicitly
50356         mentioned.
50357         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50358         New arg PMODE_BITS, to keep track of which mode bits the user
50359         mentioned; it treats S_ISUID and S_ISGID speciall.
50360         All callers changed.
50361         * lib/modechange.h: Likewise.
50362
50363 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50364
50365         * MODULES.html.sh: Add mkancestors.
50366         * modules/mkancesdirs: New module.
50367         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50368         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50369         The chdir-safer and afs files are now orphans; I'll remove them
50370         unless someone speaks up.
50371         Add lib/dirchownmod.c, lib/dirchownmod.h.
50372         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50373         Add lchown, mkancesdirs.
50374         (Maintainer): Add self.
50375
50376 2006-07-15  Karl Berry  <karl@gnu.org>
50377
50378         * gnulib-tool: help message wording/arrangement.
50379
50380 2006-07-14  Simon Josefsson  <jas@extundo.com>
50381
50382         * doc/gnulib.texi (Libtool and Windows): New section.
50383
50384 2006-07-12  Simon Josefsson  <jas@extundo.com>
50385
50386         * modules/gendocs (License): Fix license, approved by Karl.
50387
50388 2006-07-12  Eric Blake  <ebb9@byu.net>
50389
50390         * MODULES.html.sh: Add gendocs.
50391
50392 2006-07-11  Eric Blake  <ebb9@byu.net>
50393
50394         * modules/fdl: New module, to install doc/fdl.texi.
50395         * MODULES.html.sh: Add new section for documentation modules.
50396         * gnulib-tool: Avoid space-tab.
50397         (--doc-base): New option, to manage files from doc.
50398
50399 2006-07-11  Eric Blake  <ebb9@byu.net>
50400
50401         * m4/absolute-header.m4: Fix comments to match recent change.
50402
50403 2006-07-11  Eric Blake  <ebb9@byu.net>
50404
50405         * gnulib-tool: List --doc-base before --tests-base.
50406
50407 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50408
50409         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50410
50411 2006-07-11  Bruno Haible  <bruno@clisp.org>
50412
50413         * README: Mention where to put documentation.
50414
50415 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50416
50417         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50418
50419 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50420
50421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50422         to stdint.m4.
50423
50424 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50425
50426         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50427         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50428         "no/such/file/stdint.h" when there is no such file, so that
50429         the resulting C code can be parsed by dodgy compilers.
50430         Problems reported by Bob Proulx.
50431
50432 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50433
50434         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50435         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50436         macros into the GNU _D_EXACT_NAMLEN.
50437         * lib/savedir.c:  Likewise.
50438         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50439
50440 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50441         and Paul Eggert  <eggert@cs.ucla.edu>
50442
50443         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50444         * m4/savedir.m4:
50445         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50446         macros into the GNU _D_EXACT_NAMLEN.
50447
50448 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50449
50450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50451         around the absolute name, to work around a problem with the HP-UX
50452         11.23 native C compiler, reported by Bob Proulx.
50453
50454 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50455
50456         * doc/maintain.texi, make-stds.texi: Sync from
50457         <http://savannah.gnu.org/projects/gnustandards>.
50458
50459 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50460
50461         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50462
50463 2006-07-09  Jim Meyering  <jim@meyering.net>
50464
50465         * m4/glob.m4: Remove a doubled word in a comment.
50466
50467 2006-07-09  Jim Meyering  <jim@meyering.net>
50468
50469         * lib/argp-pv.c: Remove a doubled word in a comment.
50470         * lib/check-version.c (check_version): Likewise.
50471         * lib/javacomp.c (compile_java_class): Likewise.
50472
50473 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50474
50475         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50476         for the benefit of people using Autoconf 2.60.  If you want to
50477         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50478         (or m4/onceonly.m4, if pre-2.57) manually.
50479
50480 2006-07-08  Jim Meyering  <jim@meyering.net>
50481
50482         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50483         comment.
50484         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50485         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50486         comment.
50487
50488 2006-07-08  Jim Meyering  <jim@meyering.net>
50489
50490         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50491
50492 2006-07-07  Simon Josefsson  <jas@extundo.com>
50493
50494         * tests/test-crc.c: Change expected crc value, the test vector
50495         were probably computed using the old broken crc.c?
50496
50497 2006-07-06  Simon Josefsson  <jas@extundo.com>
50498
50499         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50500         now the canonical place for the M4 file).
50501
50502         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50503         from the sys_socket dependency now.
50504
50505         * modules/inet_pton (Files): Ditto.
50506
50507         * modules/inet_ntop (Files): Ditto.
50508
50509 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50510
50511         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50512         not gl_PREREQ_GETUSERSHELL.
50513
50514 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50515
50516         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50517         with only one argument, for Autoconf 2.60.
50518         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50519         expand to nothing, so add a shell command to avoid syntax error.
50520         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50521
50522 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50523
50524         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50525
50526 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50527
50528         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50529         no longer needed.  Check for isblank decl.
50530         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50531         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50532         of existence.
50533
50534 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50535
50536         * lib/getloadavg.c: Use __VMS, not VMS.
50537         * lib/getopt.c: Likewise.
50538         * lib/getpagesize.h: Likewise.
50539         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50540         and probably does not work.
50541
50542 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50543
50544         * lib/.cppi-disable: Add wcwidth.
50545         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50546         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50547         (ISGRAPH): Remove.  All uses changed to isgraph.
50548         (FOLD) [!defined _LIBC]: Remove special case.
50549         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50550         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50551         HAVE_ISBLANK.
50552         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50553         case.
50554
50555 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50556
50557         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50558         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50559         brackets.  Other minor changes to suppress some compiler
50560         warnings.
50561
50562 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50563         and Paul Eggert  <eggert@cs.ucla.edu>
50564
50565         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50566         of invoking obsolescent AC_HEADER_DIRENT macro.
50567         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50568         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50569         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50570         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50571         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50572         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50573         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50574         * m4/readdir.m4: Remove; no longer needed.
50575
50576 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50577         and Paul Eggert  <eggert@cs.ucla.edu>
50578
50579         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50580         Don't worry about this obsolete case any more.
50581         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50582         directories.
50583         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50584         worry about this obsolete case any more.
50585         * lib/fts.c: Likewise.
50586         * lib/getcwd.c: Likewise.
50587         * lib/glob.h: Likewise.
50588         * lib/savedir.c: Likewise.
50589
50590 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50591
50592         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50593         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50594         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50595         needed.
50596         All uses removed.
50597         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50598         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50599         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50600         needed.
50601         * m4/getdate.m4 (gl_GETDATE): Likewise.
50602         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50603         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50604         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50605         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50606         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50607         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50608         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50609         needed.
50610
50611 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50612
50613         * lib/memcasecmp.c: Include <limits.h>.
50614         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50615         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50616         Don't assume isdigit succeeds only on '0' through '9'.
50617
50618 2006-07-05  Eric Blake  <ebb9@byu.net>
50619
50620         * modules/getaddrinfo (Depends-on): Add snprintf.
50621
50622 2006-07-05  Eric Blake  <ebb9@byu.net>
50623
50624         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50625         to avoid 'header present but could not be compiled' on cygwin.
50626
50627 2006-07-05  Eric Blake  <ebb9@byu.net>
50628
50629         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
50630         missing from netdb.h.
50631         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
50632
50633 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50634
50635         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
50636         no longer needed.
50637         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
50638         * m4/getdate.m4 (gl_GETDATE): Likewise.
50639         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50640         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50641         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50642         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50643         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50644
50645 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50646
50647         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
50648         All uses of is_space replaced by isspace.
50649         * lib/exit.h: Don't talk about STDC_HEADERS.
50650         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
50651         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
50652         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
50653         replaced by isprint etc.
50654         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
50655         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50656         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
50657         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
50658         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
50659         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50660
50661 2006-07-05  Bruno Haible  <bruno@clisp.org>
50662
50663         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
50664         the function exists, before testing against AIX.
50665         Reported by Martin Lambers <marlam@marlam.de>.
50666
50667 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50668
50669         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
50670         From Mark D. Baushke.
50671
50672 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50673
50674         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
50675         to the absolute name, not just one, to bypass Sun C 5.8's
50676         "warning: #include of /usr/include/... may be non-portable".
50677
50678 2006-07-04  Eric Blake  <ebb9@byu.net>
50679
50680         * modules/dirname-tests: New test module.
50681         * tests/test-dirname.c: New file, replacing dirname.c
50682         TEST_DIRNAME section that was recently deleted.
50683
50684 2006-07-04  Bruno Haible  <bruno@clisp.org>
50685
50686         Assume ANSI C header files and <ctype.h> functions.
50687         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
50688         (mbsnwidth): Use isprint, iscntrl instead.
50689
50690 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50691
50692         Merge from coreutils.
50693         * MODULES.html.sh: Add xstrtold.
50694         * modules/xstrtold: New file.
50695         * modules/cycle-check (Files): Add lib/same-inode.h.
50696         * modules/dirname (Files): Add m4/double-slash-root.m4.
50697         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
50698         * modules/mkdir-p (Files): Add lib/same-inode.h.
50699         * modules/same (Files): Add lib/same-inode.h.
50700
50701 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50702
50703         * m4/absolute-header.m4: Renamed from full-header-path.m4.
50704         This is to keep the terminology clean; POSIX talks about
50705         "absolute pathnames", not "full pathnames", but the GNU
50706         Coding Standards say to use "path" for something else;
50707         so use "absolute" to keep both sides happy.
50708         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
50709         Set gl_absolute_header, not gl_full_header_path.
50710         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
50711         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
50712         All uses changed.
50713
50714         Merge from coreutils.
50715
50716         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50717
50718         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
50719         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
50720         want to require the building of c-strtod.o.
50721         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
50722         needs -lm directly.
50723         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
50724
50725         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50726
50727         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
50728         --as-needed option if available.  Problem reported by Albert Chin in
50729         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
50730         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
50731         cc merely issues a bunch of annoying warnings for --as-needed
50732         (this problem was reported by Bob Proulx).  Also, try linking with
50733         -lm to detect a bug in binutils 2.16 (this problem was reported
50734         by Ralf Wildenhues).
50735
50736         2006-06-18  Jim Meyering  <jim@meyering.net>
50737
50738         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
50739         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
50740         macro.
50741         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
50742         also check for glibc-2.4's abort-inducing bug.
50743
50744         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
50745         Low-probability clean-up should be to use rmdir to get rid of
50746         the just-created directory, not unlink.
50747
50748         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
50749         configure fail, and request a bug report to inform us about it.
50750         Add a comment that, barring reports to the contrary, in 2007 we'll
50751         assume ftruncate is universally available.
50752
50753         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
50754
50755         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
50756
50757         2006-03-12  Jim Meyering  <jim@meyering.net>
50758
50759         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
50760         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
50761         * m4/same.m4 (gl_SAME): Likewise.
50762         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
50763
50764         2006-03-11  Eric Blake  <ebb9@byu.net>
50765
50766         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
50767         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
50768         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
50769         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
50770
50771 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50772
50773         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
50774         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
50775         reported by Mark D. Baushke, one in
50776         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
50777
50778         Merge from coreutils.
50779
50780         * lib/.cppi-disable: Add stdint_.h.
50781         * lib/.cvsignore: Add stdint.h.
50782
50783         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50784
50785         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
50786         both double and long double versions.
50787         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
50788         * lib/xstrtold.c: New file.
50789         * lib/xstrtod.h (xstrtold): New decl.
50790
50791         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50792
50793         * lib/filemode.c (setst): Remove.
50794         (strmode): Rewrite to avoid setst.  This makes the code shorter,
50795         (arguably) clearer, and the generated code is a bit smaller on my
50796         Debian GNU/Linux stable x86 host.
50797
50798         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         * lib/filemode.c: Include "filemode.h" first, to test the interface.
50801         Assume that filemode.h includes sys/types.h and sys/stat.h.
50802         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
50803         (ftypelet): Reorder to put common cases first, for efficiency.
50804         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
50805         to do 'M'.
50806         (strmode): Renamed from mode_string, and now stores 12 bytes instead
50807         of 10, for compatibility with FreeBSD.  All callers changed.
50808         (filemodestring): Now stores 12 bytes instead of 10, and sets file
50809         types that can't be deduced solely from st_mode.  First arg is now a
50810         const pointer.
50811         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
50812         (strmode): Renamed from mode_string.
50813         (filemodestring): New decl.
50814         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
50815         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
50816         needed.
50817         (S_ISPORT, S_ISWHT): New macros, if not already defined.
50818
50819         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50820
50821         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
50822         fsusage.h now does that.  Include fsusage.h first, to test interface.
50823         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
50824         at most one method (the old code could have generated decls that
50825         didn't conform to C89, not that this was ever exercised).
50826         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
50827
50828         2006-03-19  Jim Meyering  <jim@meyering.net>
50829
50830         Work even in a chroot where d_ino values for entries in "/"
50831         don't match the stat.st_ino values for the same names.
50832         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
50833         number, iterate through all entries again, using lstat instead.
50834         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
50835         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
50836
50837         * lib/getcwd.c (__getcwd): Clarify a comment.
50838         Use memcpy in place of a call to strcpy.
50839
50840         2006-03-12  Jim Meyering  <jim@meyering.net>
50841
50842         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
50843         matches that of the current directory (which we're about to chdir ".."
50844         out of), then save the dev-ino of the parent, instead.
50845
50846         * lib/same-inode.h (SAME_INODE): New file/macro.
50847         * lib/chdir-safer.c (SAME_INODE): Remove definition.
50848         Include "same-inode.h", instead.
50849         * lib/same.c: Likewise.
50850         * lib/cycle-check.h: Include "same-inode.h".
50851         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
50852         * lib/cycle-check.c (SAME_INODE): Remove definition.
50853         * lib/root-dev-ino.h: Include "same-inode.h".
50854
50855         2006-03-11  Eric Blake  <ebb9@byu.net>
50856
50857         * lib/same.c (same_name): s/base_name/last_component/
50858         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
50859         * lib/filenamecat.c (file_name_concat): Likewise.
50860
50861         2006-03-11  Eric Blake  <ebb9@byu.net>,
50862                     Paul Eggert  <eggert@cs.ucla.edu>
50863
50864         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
50865         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
50866         drive prefix.
50867         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
50868         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
50869         (last_component): New method.
50870         * lib/dirname.c (dir_len): Determine when drive letters need a
50871         subsequent slash.  Preserve // when it is special.
50872         (dir_name): Don't append dot when drive letter is absolute.
50873         [TEST_DIRNAME]: Move into a full-blown gnulib test.
50874         * lib/basename.c (base_name): New semantics - malloc the result.
50875         Preserve // when it is special.  Preserve relative files that look
50876         like drive letters.
50877         (base_len): Preserve // when it is special.
50878         (last_component): New method, similar to old base_name semantics.
50879         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
50880         base_name.  Strip redundant slashes from ///.
50881
50882 2006-07-03  Jim Meyering  <jim@meyering.net>
50883
50884         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
50885         macro is used before the first cycle_check call.
50886
50887 2006-07-03  Eric Blake  <ebb9@byu.net>
50888
50889         * modules/dirname (Depends-on): Add xstrndup.
50890
50891 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50892
50893         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
50894         test cases, so that config.log is a bit easier to follow.
50895
50896 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50897
50898         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
50899         both are 64 bits, since this seems to be the tradition, and this
50900         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
50901         we ever run into a host that prefers long long to long in this
50902         case, we'll need another configure-time test.  Problem reported by
50903         Jim Meyering.
50904
50905 2006-07-02  Eric Blake  <ebb9@byu.net>
50906
50907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
50908
50909 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50910
50911         * modules/inttypes (Depends-on): No longer depends on stdint.
50912         * modules/stdint (Description): Say more about assumptions.
50913         Say that the fast types might differ.  Say macros are used.
50914         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
50915         (Makefile.am): Revise list of substituted symbols to match
50916         new stdint.m4.
50917         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
50918         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
50919         * tests/test-stdint.c (verify_same_types)
50920         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
50921         the code conforms to C99/C89.
50922         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
50923         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
50924
50925 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50926
50927         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
50928         but fix a bug, by requiring at least 64 bits.
50929         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50930         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
50931         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
50932         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
50933
50934         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
50935         changes.  Make 2.59 a prerequisite.  Check and substitute for
50936         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
50937         inttypes.h.  Do not use special include files; just use the
50938         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
50939         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
50940         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
50941         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
50942         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
50943         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
50944         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
50945         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
50946         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
50947         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
50948         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
50949         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
50950         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
50951         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
50952         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
50953         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
50954         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
50955         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
50956         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
50957         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
50958         WINT_MAX.  Check for C99 conformance more strictly, by detecting
50959         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
50960         not check for things that C99 does not require, e.g., int8_t.  If
50961         a test isn't needed unless <stdint.h> isn't working, and is
50962         unlikely to be needed for any other reason, then don't do it
50963         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
50964         size_t, since we assume C89 freestanding at least.  Do not check
50965         for sig_atomic_t, wchar_t, or wint_t, since the code now does
50966         the right thing even if the types are not defined.  Instead use:
50967         (gl_STDINT_TYPE_PROPERTIES): New macro.
50968         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
50969         testing whether <sys/types.h> clashes, as Autoconf does this for
50970         us now.  All uses removed.
50971         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
50972         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
50973         (gl_CHECK_TYPE_SAME):
50974         Remove; no longer needed.
50975         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
50976         exists, since we'll return 0 anyway in that case.
50977         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
50978
50979 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50980
50981         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
50982         possible collision with system files.
50983         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
50984         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
50985         WCHAR_MIN and WCHAR_MAX in this case.
50986         (<stddef.h>): Do not include; no longer needed.
50987         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
50988         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
50989         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
50990         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
50991         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
50992         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
50993         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
50994         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
50995         !defined(__c99))]: Include in this case too, since it's harmless
50996         now.
50997         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
50998         dangerous to do so.
50999         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51000         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51001         (_STDINT_MIN, _STDINT_MAX): New macros.
51002         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51003         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51004         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51005         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51006         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51007         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51008         macros, not typedefs; this simplifies things quite a bit.
51009         Use long int for all types narrower than int64_t.
51010         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51011         Define in terms of long long int or int64_t or long int,
51012         not int64_t or int32_t.  This saves some compile-time testing.
51013         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51014         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51015         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51016         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51017         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51018         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51019         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51020         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51021         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51022         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51023         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51024         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51025         undef any previous version and define our own version, for
51026         simplicity and consistency with the new macros for types.
51027         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51028         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51029         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51030         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51031         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51032         @WINT_T_SUFFIX@ to keep things simple here.
51033         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51034         Simplify by assuming typical 8/16/32/64 host, since we're
51035         already doing that elsewhere anyway.
51036         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51037         and assume long long int is 64 bits if available.  This
51038         speeds up 'configure'.
51039
51040 2006-07-01  Eric Blake  <ebb9@byu.net>
51041
51042         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51043         Reported by Andreas Buening.
51044
51045 2006-07-01  Eric Blake  <ebb9@byu.net>
51046
51047         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51048
51049 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51050
51051         * lib/getaddrinfo.c: fixed typo
51052
51053 2006-06-29  Jim Meyering  <jim@meyering.net>
51054
51055         * modules/strftime (Maintainer): Add my name, since with the
51056         FPRINTFTIME changes strftime.c has forked from glibc.
51057
51058 2006-06-29  Eric Blake  <ebb9@byu.net>
51059
51060         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51061
51062 2006-06-29  Eric Blake  <ebb9@byu.net>
51063
51064         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51065
51066 2006-06-29  Eric Blake  <ebb9@byu.net>
51067
51068         * lib/stat_.h: New file.
51069
51070 2006-06-29  Eric Blake  <ebb9@byu.net>
51071
51072         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51073         unused static function.
51074
51075 2006-06-29  Eric Blake  <ebb9@byu.net>
51076
51077         * doc/functions.texi (Function Portability): Document missing lstat
51078         on mingw.
51079
51080 2006-06-29  Eric Blake  <ebb9@byu.net>
51081
51082         * MODULES.html.sh: Add sys_stat.
51083         * modules/sys_stat: New module.
51084         * modules/mkstemp (Depends-on): Add sys_stat.
51085
51086 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51087
51088         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51089
51090 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51091
51092         * m4/c-bs-a.m4: Removed.
51093
51094 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51095
51096         * lib/strftime.c: Assume strftime() exists.
51097
51098 2006-06-29  Derek Price  <derek@ximbiot.com>
51099
51100         * modules/c-bs-a: Removed - \a is C89.
51101         * MODULES.html.sh: Remove c-bs-a.
51102
51103 2006-06-29  Bruno Haible  <bruno@clisp.org>
51104
51105         * modules/wcwidth (License): Change to LGPL.
51106
51107 2006-06-28  Simon Josefsson  <jas@extundo.com>
51108
51109         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51110         on _WIN32.
51111
51112         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51113         getnameinfo.
51114
51115 2006-06-28  Simon Josefsson  <jas@extundo.com>
51116
51117         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51118
51119 2006-06-28  Simon Josefsson  <jas@extundo.com>
51120
51121         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51122         functions there.  It will succeed on Windows XP, but on Windows
51123         2000 and (presumably) earlier, it will fail, and use the internal
51124         re-implementation.
51125         (use_win32_p): New function.
51126         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51127         Support AI_NUMERICSERV to disable getservbyname.
51128         (getnameinfo): New function, only supports
51129         NI_NUMERICHOST|NI_NUMERICSERV for now.
51130
51131         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51132         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51133         getnameinfo.
51134
51135 2006-06-28  Eric Blake  <ebb9@byu.net>
51136
51137         * modules/wcwidth: New file.
51138         * modules/mbchar (Depends-on): Add wcwidth.
51139         * modules/mbswidth (Depends-on): Add wcwidth.
51140         * MODULES.html.sh: Add wcwidth.
51141
51142 2006-06-28  Eric Blake  <ebb9@byu.net>
51143
51144         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51146
51147 2006-06-28  Eric Blake  <ebb9@byu.net>
51148
51149         * lib/xvasprintf.h: Fix comments.
51150
51151 2006-06-28  Eric Blake  <ebb9@byu.net>
51152
51153         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51154         * lib/mbswidth.c (wcwidth): Move from here...
51155         * lib/wcwidth.h: ...to this new file.
51156
51157 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51158
51159         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51160
51161         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51162         it's obsolete.
51163         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51164
51165 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51166
51167         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51168         Autoconf 2.60 says this stuff was obsolete.
51169
51170 2006-06-28  Bruno Haible  <bruno@clisp.org>
51171
51172         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51173
51174 2006-06-28  Bruno Haible  <bruno@clisp.org>
51175
51176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51177         gt_TYPE_WCHAR_T.
51178
51179 2006-06-28  Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51182         declaration for wcwidth.
51183         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51184
51185 2006-06-28  Bruno Haible  <bruno@clisp.org>
51186
51187         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51188         (mkdir): Define using _mkdir.
51189
51190 2006-06-28  Bruno Haible  <bruno@clisp.org>
51191
51192         * lib/getaddrinfo.h: Fix POSIX URL.
51193         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51194         _WIN32.
51195         (use_win32_p): Make static.
51196         (getaddrinfo): Reject service name if it is empty or does not consist
51197         solely of decimal digits, or if its value is > 65535.
51198         (getnameinfo): Remove useless casts.
51199
51200 2006-06-27  Simon Josefsson  <jas@extundo.com>
51201
51202         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51203         Eggert and Martin Lambers.
51204
51205 2006-06-27  Simon Josefsson  <jas@extundo.com>
51206
51207         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51208         Eggert and Martin Lambers.
51209
51210 2006-06-27  Bruno Haible  <bruno@clisp.org>
51211
51212         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51213         result to 0, not to empty.
51214         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51215
51216 2006-06-27  Bruno Haible  <bruno@clisp.org>
51217
51218         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51219
51220 2006-06-26  Simon Josefsson  <jas@extundo.com>
51221
51222         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51223         present.
51224
51225 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51226
51227         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51228         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51229         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51230
51231 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51232
51233         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51234
51235 2006-06-26  Bruno Haible  <bruno@clisp.org>
51236
51237         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51238
51239 2006-06-26  Bruno Haible  <bruno@clisp.org>
51240
51241         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51242
51243 2006-06-26  Bruno Haible  <bruno@clisp.org>
51244
51245         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51246         SGI C compiler in pre-C99 mode.
51247         Suggested by Mark D. Baushke and Larry Jones.
51248
51249 2006-06-26  Bruno Haible  <bruno@clisp.org>
51250
51251         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51252         WCHAR_MAX.
51253         Reported by Mark D. Baushke and Larry Jones.
51254
51255 2006-06-26  Bruno Haible  <bruno@clisp.org>
51256
51257         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51258         in pre-C99 mode.
51259         Suggested by Mark D. Baushke and Larry Jones.
51260
51261 2006-06-23  Simon Josefsson  <jas@extundo.com>
51262             Bruno Haible  <bruno@clisp.org>
51263
51264         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51265         Emit mostlyclean-local rule.
51266         (func_emit_tests_Makefile_am): Likewise.
51267         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51268
51269 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51270
51271         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51272
51273 2006-06-23  Bruno Haible  <bruno@clisp.org>
51274
51275         * tests/test-stdint.c: Update to match ISO C 99 Technical
51276         Corrigendum 1.
51277
51278 2006-06-23  Bruno Haible  <bruno@clisp.org>
51279
51280         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51281
51282 2006-06-23  Bruno Haible  <bruno@clisp.org>
51283
51284         * lib/stdint_.h: Treat IRIX like OpenBSD.
51285
51286 2006-06-23  Bruno Haible  <bruno@clisp.org>
51287
51288         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51289         ISO C 99 Technical Corrigendum 1.
51290
51291 2006-06-22  Simon Josefsson  <jas@extundo.com>
51292
51293         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51294         MinGW.
51295
51296 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51297
51298         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51299         needed.  Some compiler complained about some of them.  Problem reported
51300         by Larry Jones in
51301         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51302
51303 2006-06-21  Simon Josefsson  <jas@extundo.com>
51304
51305         * tests/test-getaddrinfo.c: New file.
51306
51307         * modules/getaddrinfo-tests: New file.
51308
51309         * MODULES.html.sh: Add inet_pton.
51310
51311         * modules/inet_pton: New file.
51312
51313 2006-06-21  Simon Josefsson  <jas@extundo.com>
51314
51315         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51316         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51317         of using the (limited) gnulib implementation on Windows XP.
51318
51319         * m4/inet_pton.m4: New file.
51320
51321 2006-06-21  Simon Josefsson  <jas@extundo.com>
51322
51323         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51324         variable.
51325
51326         * lib/socket_.h: Don't define WINVER.
51327
51328         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51329         slightly modified to work in gnulib.
51330
51331 2006-06-21  Simon Josefsson  <jas@extundo.com>
51332
51333         * doc/gnulib.texi (Windows sockets): Add.
51334
51335 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51336
51337         * lib/read-file.c (fread_file): Start with buffer allocation of
51338         0 bytes rather than 1 byte; this simplifies the code.
51339         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51340         code to free buffer and save/restore errno.
51341         (internal_read_file): Remove unused local.
51342
51343 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51344
51345         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51346         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51347         Problem reported by Denis Excoffier in
51348         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51349
51350 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51351
51352         * modules/sys_socket, modules/socklen: Include sys/types since
51353         FreeBSD 4.x's sys/socket.h needs it.
51354
51355 2006-06-19  Simon Josefsson  <jas@extundo.com>
51356
51357         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51358
51359 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51360
51361         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51362
51363 2006-06-19  Bruno Haible  <bruno@clisp.org>
51364
51365         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51366         and FULL_PATH_INTTYPES_H in angle brackets.
51367         Reported by Mark D. Baushke <mdb@gnu.org>.
51368
51369 2006-06-17  Eric Blake  <ebb9@byu.net>
51370
51371         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51372         errno.
51373
51374 2006-06-17  Bruno Haible  <bruno@clisp.org>
51375
51376         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51377         <sys/inttypes.h>.
51378
51379 2006-06-17  Bruno Haible  <bruno@clisp.org>
51380
51381         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51382         whether errno is declared. Assume <errno.h> declares errno.
51383
51384 2006-06-17  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51387
51388 2006-06-17  Bruno Haible  <bruno@clisp.org>
51389
51390         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51391         problem on Solaris 2.5.1.
51392
51393 2006-06-16  Eric Blake  <ebb9@byu.net>
51394
51395         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51396         * lib/unicodeio.c [!defined errno]: Likewise.
51397         * lib/strtol.c [!defined errno]: Likewise.
51398         * lib/strtod.c [!defined errno]: Likewise.
51399
51400 2006-06-15  Eric Blake  <ebb9@byu.net>
51401
51402         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51403
51404 2006-06-15  Eric Blake  <ebb9@byu.net>
51405
51406         * config/srclist.txt (ssize_t.m4): Lose sync.
51407
51408 2006-06-15  Bruno Haible  <bruno@clisp.org>
51409
51410         * modules/stdint (Files): Include m4/full-header-path.m4,
51411         m4/size_max.m4, m4/wchar_t.m4.
51412         (Makefile.am): Many more substitutions.
51413         * modules/stdint-tests: New file.
51414         * tests/test-stdint.c: New file.
51415
51416 2006-06-15  Bruno Haible  <bruno@clisp.org>
51417
51418         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51419         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51420         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51421         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51422         gl_CHECK_TYPE_SAME): New macros.
51423
51424 2006-06-15  Bruno Haible  <bruno@clisp.org>
51425
51426         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51427
51428 2006-06-15  Bruno Haible  <bruno@clisp.org>
51429
51430         * lib/stdint_.h: Rewritten to be fully auto-configured.
51431         Fixes bug on HP-UX/IA64.
51432
51433 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51434
51435         * lib/getdate.y (__attribute__): Don't define if already defined.
51436         Problem reported by Larry Jones.
51437         * lib/utimens.c (__attribute__): Likewise.
51438
51439 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51440
51441         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51442         reported by Andreas Schwab.
51443
51444 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51445             Bruno Haible  <bruno@clisp.org>
51446
51447         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51448         check for the declaration of strnlen and a run test that exposes the
51449         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51450         rpl_strndup.
51451
51452 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51453             Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51456
51457 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51458
51459         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51460         compile test, for Tru64 4.0D.
51461
51462 2006-05-28  Karl Berry  <karl@gnu.org>
51463
51464         * config/srclist.txt (printf-args.c): lose sync.
51465
51466 2006-05-26  Martin Lambers  <marlam@marlam.de>
51467
51468         * lib/getpass.c: Updates the test for the native W32 API, and adds
51469         missing includes, thus fixing compilation warnings.
51470
51471 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51472
51473         * lib/exclude.c (exclude_fnmatch): New function.
51474         (excluded_file_name): Call exclude_fnmatch.
51475         * lib/exclude.h (excluded_file_name): New prototype
51476
51477 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51478
51479         * lib/tempname.c (small_open, large_open): New macros.
51480         (__open, __open64) [!_LIBC]: Remove.
51481         (__gen_tempname): Use small_open and large_open instead of __open
51482         and __open64.  This fixes a portability bug on HP-UX 11.11i
51483         reported by Simon Wing-Tang in
51484         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51485
51486 2006-05-24  Bruno Haible  <bruno@clisp.org>
51487
51488         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51489         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51490         Reported by Thorsten Maerz <torte@netztorte.de> via
51491         Aaron Stone <aaron@serendipity.cx>.
51492
51493 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51494
51495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51496         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51497         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51498         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51499         not really conditional on the cache.
51500         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51501
51502 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51503
51504         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51505         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51506         (my_usleep): Don't mishandle maximum value.
51507
51508 2006-05-19  Jim Meyering  <jim@meyering.net>
51509
51510         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51511
51512 2006-05-17  Bruno Haible  <bruno@clisp.org>
51513
51514         Cygwin portability.
51515         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51516
51517 2006-05-17  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/stdint_.h: Fix recognition of Cygwin.
51520
51521 2006-05-15  Bruno Haible  <bruno@clisp.org>
51522
51523         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51524         on libtool patch by Ralf Wildenhues.
51525
51526 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51527
51528         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51529         test for C99 conformance; (bool) 0.5 is an integer constant
51530         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51531         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51532
51533 2006-05-11  Simon Josefsson  <jas@extundo.com>
51534
51535         * m4/xvasprintf.m4: Fix obvious typo.
51536
51537 2006-05-11  Jim Meyering  <jim@meyering.net>
51538
51539         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51540         James Lemley.
51541
51542 2006-05-10  Simon Josefsson  <jas@extundo.com>
51543
51544         * lib/md4.c: Typo fix, update copyright years.
51545         (K1, K2): Don't use L because it turn computations into 64-bit on
51546         64-bit platforms.
51547
51548 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51549
51550         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51551         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51552         unwanted sign propagation, e.g., on hosts with 64-bit int.
51553         There still are some problems with reeelly weird theoretical hosts
51554         (e.g., 33-bit int) but it's not worth worrying about now.
51555         * lib/sha1.c (rol): Likewise.
51556         (K1, K2, K3, K4): Remove unnecessary L suffix.
51557
51558 2006-05-10  Bruno Haible  <bruno@clisp.org>
51559
51560         * lib/des.c: Cast to avoid warnings.
51561
51562 2006-05-09  Bruno Haible  <bruno@clisp.org>
51563
51564         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51565         (Depends-on): Depend also on xsize, stdarg.
51566         (configure.ac): Add gl_XVASPRINTF.
51567
51568 2006-05-09  Bruno Haible  <bruno@clisp.org>
51569
51570         * m4/xvasprintf.m4: New file.
51571
51572 2006-05-09  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51575         (EOVERFLOW): Define fallback value.
51576         (xstrcat): New function.
51577         (xvasprintf): Recognize the special case of a string concatenation.
51578
51579 2006-05-08  Eric Blake  <ebb9@byu.net>
51580
51581         * gnulib-tool (func_version): Base copyright year on CVS date.
51582         (func_emit_copyright_notice): New function.
51583         (func_emit_lib_Makefile_am): Use it.
51584         (func_emit_tests_Makefile_am): Likewise.
51585         (func_import): Likewise.
51586
51587 2006-05-08  Bruno Haible  <bruno@clisp.org>
51588
51589         * modules/stdarg: New file.
51590         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51591
51592 2006-05-08  Bruno Haible  <bruno@clisp.org>
51593
51594         * m4/stdarg.m4: New file, from GNU gettext.
51595
51596 2006-05-08  Bruno Haible  <bruno@clisp.org>
51597
51598         * config/srclist.txt (build-aux/config.rpath): different from latest
51599         release.
51600
51601 2006-05-08  Bruno Haible  <bruno@clisp.org>
51602
51603         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51604
51605 2006-05-05  Jim Meyering  <jim@meyering.net>
51606
51607         * m4/warning.m4: New file, derived from bison's file by the same name.
51608
51609 2006-05-03  Bruno Haible  <bruno@clisp.org>
51610
51611         * lib/stdint_.h: Shorter URL.
51612         * lib/inttypes.h: Likewise.
51613
51614 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51615
51616         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51617
51618 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51619
51620         * lib/verify.h: Document the internals better.  Most of this change
51621         was written by Bruno Haible.
51622
51623 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         * doc/verify.texi: New file, partly based on a proposal by
51626         Bruno Haible.
51627
51628 2006-05-02  Bruno Haible  <bruno@clisp.org>
51629
51630         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
51631         test from here...
51632         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
51633
51634 2006-04-29  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
51637         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
51638
51639 2006-04-29  Bruno Haible  <bruno@clisp.org>
51640
51641         * gnulib-tool: Make --update option actually work.
51642
51643 2006-04-29  Bruno Haible  <bruno@clisp.org>
51644
51645         * doc/gcd.texi: New file.
51646         * doc/gnulib.texi: Include it.
51647
51648 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
51649
51650         * lib/getdate.y (get_date): When adding relative date, start with the
51651         initial time, not with the result of the first mktime call.
51652
51653 2006-04-25  Bruno Haible  <bruno@clisp.org>
51654
51655         * gnulib-tool (func_import): Output the include directives in three
51656         blocks, sorted separately.
51657         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51658
51659 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51660
51661         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
51662         to define main with arguments, for C++.  Reported by Eric Blake.
51663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51664         Prefer 'int main ()' to 'int main (void)', for C++.
51665         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
51666         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
51667         for 'main', for C99 and C++.
51668
51669 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51670
51671         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
51672         Don't assume that exit status -1 is valid.
51673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51674         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51675         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
51676         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
51677         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
51678         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
51679         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
51680         functions can be used without declaring them, or that you can
51681         exit with status -1.
51682         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
51683
51684 2006-04-24  Karl Berry  <karl@gnu.org>
51685
51686         * config/srclist.txt (longdouble.m4): sync lost.
51687
51688 2006-04-24  Eric Blake  <ebb9@byu.net>
51689
51690         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
51691
51692 2006-04-24  Bruno Haible  <bruno@clisp.org>
51693
51694         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
51695         poll() implementation in AIX.
51696         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51697
51698 2006-04-24  Bruno Haible  <bruno@clisp.org>
51699
51700         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
51701         assigned exactly once.
51702
51703 2006-04-23  Claudio Fontana  <claudio@gnu.org>
51704             Bruno Haible  <bruno@clisp.org>
51705
51706         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
51707         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
51708         for AM_CPPFLAGS.
51709
51710 2006-04-23  Bruno Haible  <bruno@clisp.org>
51711
51712         * modules/copy-file: Depend on unistd.
51713         * modules/execute: Likewise.
51714         * modules/fatal-signal: Likewise.
51715         * modules/findprog: Likewise.
51716         * modules/mkdtemp : Likewise.
51717         * modules/pipe: Likewise.
51718         * modules/wait-process: Likewise.
51719
51720 2006-04-23  Bruno Haible  <bruno@clisp.org>
51721
51722         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
51723         condition was already detected.
51724         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51725
51726 2006-04-23  Bruno Haible  <bruno@clisp.org>
51727
51728         * lib/copy-file.c: Include <unistd.h> unconditionally.
51729         * lib/execute.c: Likewise.
51730         * lib/fatal-signal.c: Likewise.
51731         * lib/findprog.c: Likewise.
51732         * lib/mkdtemp.c: Likewise.
51733         * lib/pipe.h: Likewise.
51734         * lib/pipe.c: Likewise.
51735         * lib/wait-process.h: Likewise.
51736
51737 2006-04-23  Bruno Haible  <bruno@clisp.org>
51738
51739         * gnulib-tool (func_usage): Fix --import description. Document
51740         --update.
51741         (func_import): Create temporary file in a temporary directory, if
51742         --dry-run is specified. Silence errors from 'grep' when there are no
51743         m4 files in $m4dir.
51744         (func_create_testdir): Silence errors from 'grep' when there are no
51745         m4 files in $m4dir.
51746         Reported by Karl Berry <karl@freefriends.org>.
51747
51748 2006-04-20  Bruno Haible  <bruno@clisp.org>
51749
51750         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
51751         one argument, so that the code will be portable to Autoconf 2.60.
51752         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
51753         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
51754         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
51755
51756 2006-04-19  Derek Price  <derek@ximbiot.com>
51757             Eric Blake  <ebb9@byu.net>
51758
51759         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
51760         rather than "/full/path.h".  Update comment to match.  Shorten &
51761         generalize m4_translit call via AS_TR_CPP.
51762
51763 2006-04-19  Derek Price  <derek@ximbiot.com>
51764             Eric Blake  <ebb9@byu.net>
51765
51766         * lib/inttypes.h: Correct grammar in comment.
51767
51768 2006-04-18  Derek Price  <derek@ximbiot.com>
51769             Paul Eggert  <eggert@cs.ucla.edu>
51770
51771         * modules/inttypes: New file.
51772         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
51773
51774 2006-04-18  Derek Price  <derek@ximbiot.com>
51775             Paul Eggert  <eggert@cs.ucla.edu>
51776
51777         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
51778         New files.
51779
51780 2006-04-18  Derek Price  <derek@ximbiot.com>
51781             Paul Eggert  <eggert@cs.ucla.edu>
51782
51783         * lib/inttypes.h: New file.
51784         * lib/strtoimax.c: Assume <inttypes.h>.
51785
51786 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
51787
51788         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
51789         isn't mounted.  Problem reported by Kir Kolyshkin.
51790
51791 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51792
51793         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
51794         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
51795         Derek R. Price.
51796         * lib/regex.h (RE_DUP_MAX): Update comment to match current
51797         implementation.
51798
51799 2006-04-12  Eric Blake  <ebb9@byu.net>
51800
51801         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
51802         is now done automatically by the corresponding Autoconf macro.
51803
51804 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
51805
51806         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
51807         time_r.h.
51808
51809 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51810
51811         Merge regex changes from libc, removing some of our
51812         POSIX-conformance changes that were rejected and redoing them in a
51813         less-intrusive way.
51814
51815         * lib/regcomp.c (re_compile_internal, init_dfa):
51816         Length arg is now size_t, not Idx.  All uses changed.
51817         (peek_token): Forward decl now says internal_function.
51818         (__re_error_msgid, __re_error_msgid_idx):
51819         Now static rather than extern with attribute_hidden.
51820         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
51821         For some reason libc prefers K&R style defns for external functions.
51822         (regerror) [!defined _LIBC]: Likewise.
51823         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
51824         (seek_collating_symbol_entry, lookup_collation_sequence_value):
51825         (build_range_exp, build_collating_symbol):
51826         Use K&R-style defn.
51827         (re_compile_fastmap): Use '\0' to memset, not 0.
51828         (utf8_sb_map): Make the calculations more obvious.
51829         (init_dfa, parse_bracket_exp, build_charclass_op):
51830         Call calloc and cast result, as glibc does.
51831         (init_word_char, fetch_token, peek_token, peek_token_bracket):
51832         (build_range_exp, build_collating_symbol):
51833         Now internal functions.
51834
51835         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
51836
51837         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
51838         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
51839         Don't depend on VMS; depend on __VMS instead, for POSIX
51840         namespace cleanness.
51841         (regoff_t): Define to ssize_t, not long int.
51842
51843         Remove the REG_ macros named below.  Instead, make the old names
51844         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
51845         __USE_GNU_REGEX.
51846         (REG_BACKSLASH_ESCAPE_IN_LISTS):
51847         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
51848         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
51849         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
51850         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
51851         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
51852         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
51853         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
51854         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
51855         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
51856         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
51857         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
51858         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
51859         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
51860         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
51861         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
51862         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
51863         (REG_NREGS):
51864         Remove.  All uses replaced by the old RE_* names.
51865         (RE_BACKSLASH_ESCAPE_IN_LISTS):
51866         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
51867         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
51868         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
51869         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
51870         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
51871         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
51872         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
51873         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
51874         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
51875         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
51876         Don't bother having these macros be independent of each others'
51877         values, since they no longer exist in the POSIX name space.
51878
51879         Rename the following member names back to their old names,
51880         unless !__USE_GNU_REGEX.  All uses changed back.
51881         (buffer): Renamed from re_buffer.
51882         (allocated): Renamed from re_allocated.
51883         (used): Renamed from re_used.
51884         (syntax): Renamed from re_syntax.
51885         (fastmap): Renamed from re_fastmap.
51886         (translate): Renamed from re_translate.
51887         (can_be_null): Renamed from re_can_be_null.
51888         (regs_allocated): Renamed from re_regs_allocated.
51889         (fastmap_accurate): Renamed from re_fastmap_accurate.
51890         (no_sub): Renamed from re_no_sub.
51891         (not_bol): Renamed from re_not_bol.
51892         (not_eol): Renamed from re_not_eol.
51893         (newline_anchor): Renamed from re_newline_anchor.
51894         (num_regs): Renamed from rm_num_regs.
51895         (start): Renamed from rm_start.
51896         (end): Renamed from rm_end.
51897
51898         (free_state): Move up a bit.
51899
51900         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
51901         #define to be empty.
51902         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
51903         when that is what is intended.
51904         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
51905         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
51906         (MAX): New macro.
51907         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
51908         All uses changed back to re_malloc, etc.  It's now the caller's
51909         responsibility to check for overflow; all callers changed.
51910         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
51911         (re_x2nrealloc): Remove.
51912         (free_state): Remove decl.
51913
51914         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
51915         (re_set_registers, re_exec):
51916         Use K&R-style defn.
51917
51918         2006-01-31  Roland McGrath  <roland@redhat.com>
51919
51920         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
51921         Reported by Mike Frysinger <vapier@gentoo.org>.
51922
51923         2006-01-15  Andreas Jaeger  <aj@suse.de>
51924
51925         [BZ #1950]
51926         * lib/regex_internal.c (re_string_reconstruct): Adjust for
51927         build_wcs_upper_buffer change.
51928         (build_wcs_upper_buffer): Change return type.
51929
51930         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
51931
51932         * lib/regex_internal.h: Include <stdint.h> if available.
51933
51934         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
51935
51936         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
51937
51938         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51939
51940         * lib/regcomp.c: Adjust for changed secondary hash function.
51941
51942         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
51943
51944         * lib/regex.h: Pretty printing.
51945         Clean up namespace a bit.
51946
51947         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
51948
51949         * lib/regexec.c (update_cur_sifted_state, check_arrival,
51950         check_arrival_add_next_nodes): Avoid using uninitialized variable.
51951
51952         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51953                     Ulrich Drepper  <drepper@redhat.com>
51954
51955         [BZ #1302]
51956         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
51957         changed.
51958         (bitset_word_t): Renamed from bitset_word.  All uses changed.
51959
51960         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
51961
51962         [BZ #281]
51963         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
51964         * lib/regcomp.c: Remove unnecessary uses of
51965         unsigned RE_TRANSLATE_TYPE.
51966         * lib/regex_internal.h: Likewise.
51967         * lib/regex_internal.c: Likewise.
51968         * lib/regexec.c: Likewise.
51969         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
51970
51971         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
51972
51973         * lib/regexec.c (find_recover_state): Remove unnecessary
51974         initialization.
51975         (transit_state_bkref): Make DFA a const pointer.
51976         (get_subexp): Likewise.
51977         (check_arrival): Likewise.
51978         (update_cur_sifted_state): Likewise.
51979         (re_search_internal): Likewise.
51980         (prune_impossible_nodes): Likewise.
51981         (acquire_init_state_context): Likewise.
51982         (proceed_next_node): Likewise.
51983         (set_regs): Likewise.
51984         (free_fail_stack_return): Likewise.
51985         (check_arrival_expand_ecl): Mark DFA parameter as const.
51986         (check_arrival_expand_ecl_sub): Likewise.
51987         (check_subexp_limits): Likewise.
51988         (sub_epsilon_src_nodes):  Likewise.
51989         (add_epsilon_src_nodes):  Likewise.
51990         (merge_state_array): Likewise.
51991         (update_regs): Likewise.
51992         (build_trtable): Likewise.
51993         (sift_states_backward): Mark MCTX parameter as const.
51994         (build_sifted_states): Likewise.
51995         (update_cur_sifted_state): Likewise.
51996         (sift_states_mkref): Likewise.
51997         (check_arrival_expand_ecl): Mark eclosure as const.
51998         (check_dst_limits_calc_pos_1): Likewise.
51999         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52000         pointer.
52001
52002         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52003
52004         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52005         (transit_state_sb): Likewise.
52006         (transit_state_mb): Likewise.
52007         (sift_states_iter_mb): Likewise.
52008         (check_arrival_add_next_nodes): Likewise.
52009         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52010         [_LIBC] (re_search_2_stub): Use mempcpy.
52011
52012         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52013         mbrtowc for very simple UTF-8 case.
52014
52015         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52016         a pointer-to-const.
52017         (re_acquire_state_context): Likewise.
52018         * lib/regex_internal.h: Adjust prototypes.
52019
52020         * lib/regex.c: Prevent using C++ compilers.
52021
52022         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52023         (re_acquire_state_context): Likewise.
52024
52025 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52026
52027         * modules/regex (Depends-on): Add ssize_t.
52028
52029 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52030
52031         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52032         translation table.
52033
52034 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52035
52036         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52037
52038 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52039             Bruno Haible  <bruno@clisp.org>
52040
52041         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52042         <sys/types.h> and <inttypes.h>.
52043
52044 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52045
52046         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52047         `__error_t_defined', so argp.h will not typedef the former.
52048
52049 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52050
52051         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52052         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52053         glibc names.  Even if glibc is changed to conform to POSIX, the
52054         traditional names will be available anyway, since regex depends on
52055         the extensions module.  Also, fix a longstanding typo in the
52056         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52057         reported by Emanuele Giaquinta.  Also, change sense of cached
52058         variable, so that the message makes sense.
52059
52060 2006-03-24  Simon Josefsson  <jas@extundo.com>
52061
52062         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52063         including some doc fixes.
52064         (base64_encode_alloc): Fix +1 bug on allocation failures.
52065
52066 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52067
52068         * lib/base64.c (base64_encode): Do not read past end of array with
52069         unsanitized input on systems with CHAR_BIT > 8.
52070
52071 2006-03-24  Eric Blake  <ebb9@byu.net>
52072
52073         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52074
52075 2006-03-22  Karl Berry  <karl@gnu.org>
52076
52077         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52078         * config/srclistvars.sh (COREUTILS): new var.
52079
52080 2006-03-17  Jim Meyering  <jim@meyering.net>
52081
52082         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52083         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52084
52085 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52086
52087         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52088         no longer needs it.  Instead, check that regoff_t is as least
52089         as wide as ptrdiff_t.
52090
52091         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52092         so that our regex.h stays compatible with the installed regex.
52093         This is helpful for installers who configure --without-included-regex.
52094         Problem reported by Emanuele Giaquinta.
52095
52096 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52097
52098         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52099         Typedef to long int, not to off_, as POSIX will likely change
52100         in that direction.
52101
52102 2006-03-15  Eric Blake  <ebb9@byu.net>
52103
52104         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52105
52106 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52107
52108         * lib/argp-help.c (validate_uparams): Fix typo
52109         * lib/argp-parse.c (argp_default_options): Consistently begin help
52110         messages with a lowercase letter.
52111
52112 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52113
52114         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52115         overrun buffers and shouldn't be used (much as gets shouldn't be
52116         used).
52117         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52118
52119 2006-03-08  Simon Josefsson  <jas@extundo.com>
52120
52121         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52122         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52123
52124 2006-03-08  Simon Josefsson  <jas@extundo.com>
52125
52126         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52127         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52128
52129 2006-03-08  Simon Josefsson  <jas@extundo.com>
52130
52131         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52132         signal that configure disabled the device.
52133
52134 2006-03-08  Simon Josefsson  <jas@extundo.com>
52135
52136         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52137         languages.
52138
52139 2006-03-07  Simon Josefsson  <jas@extundo.com>
52140
52141         * modules/getopt (Depends-on): Add unistd.
52142
52143         * modules/unistd: New file.
52144
52145 2006-03-07  Simon Josefsson  <jas@extundo.com>
52146
52147         * modules/gc-random: New file.
52148
52149 2006-03-07  Simon Josefsson  <jas@extundo.com>
52150
52151         * m4/unistd_h.m4: New file.
52152
52153 2006-03-07  Simon Josefsson  <jas@extundo.com>
52154
52155         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52156         test to be side-effect free by storing the result in the cache
52157         variable gl_cv_lib_readline, and moving the assignment of
52158         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52159         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52160
52161 2006-03-07  Simon Josefsson  <jas@extundo.com>
52162
52163         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52164         error on missing devices (the functions will return an error).
52165
52166         * m4/gc.m4: Move random stuff to gc-random.m4
52167
52168 2006-03-07  Simon Josefsson  <jas@extundo.com>
52169
52170         * lib/unistd_.h: New file.
52171
52172 2006-03-07  Simon Josefsson  <jas@extundo.com>
52173
52174         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52175
52176 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52177
52178         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52179         Problem reported by Juan Manuel Guerrero.
52180
52181 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52182
52183         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52184         the unistd module.
52185         * lib/getlogin_r.c: Likewise.
52186         * lib/getlogin_r.h: Likewise.
52187         * lib/glob.c: Likewise.
52188         * lib/pagealign_alloc.c: Likewise.
52189         * lib/unistd_.h: Remove; no longer needed.
52190
52191 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52194         Add unistd.
52195         * modules/c-stack (Depends-on): Add unistd.
52196         * modules/getlogin_r: Likewise.
52197         * modules/glob: Likewise.
52198         * modules/pagealign_alloc: Likewise.
52199         * modules/unistd (Files): Remove lib/unistd_.h.
52200         (EXTRA_DIST): Remove.
52201         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52202         need unistd_.h.
52203         (MOSTLYCLEANFILES): Remove unistd.h-t.
52204
52205 2006-03-03  Simon Josefsson  <jas@extundo.com>
52206
52207         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52208
52209 2006-03-03  Simon Josefsson  <jas@extundo.com>
52210
52211         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52212         libidn and bison.
52213
52214 2006-03-03  Simon Josefsson  <jas@extundo.com>
52215
52216         * build-aux/maint.mk: Add indent target.
52217
52218 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52219
52220         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52221         our replacement poll.h in any case, to avoid a differing
52222         declaration from a system header.  Seen on AIX.
52223
52224 2006-03-01  Simon Josefsson  <jas@extundo.com>
52225
52226         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52227         <kasal@ucw.cz>.
52228
52229 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52230
52231         * modules/gettime (Depends-on): Add extensions module.
52232         * modules/nanosleep (Depends-on): Likewise.
52233         * modules/settime (Depends-on): Likewise.
52234
52235 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52236
52237         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52238         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52239         pedantically.
52240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52241         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52242
52243         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52244         not "==".  Reported by Ralf Wildenhues.
52245
52246 2006-03-01  Karl Berry  <karl@gnu.org>
52247
52248         * doc/Copyright/request-*: new files, synced from gnuorg.
52249
52250 2006-03-01  Karl Berry  <karl@gnu.org>
52251
52252         * config/srclist.txt (Copyright/*): new entries.
52253
52254 2006-02-28  Simon Josefsson  <jas@extundo.com>
52255
52256         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52257
52258 2006-02-27  Simon Josefsson  <jas@extundo.com>
52259
52260         * lib/base64.h: Indent #define's.  From Jim Meyering
52261         <jim@meyering.net>.
52262
52263 2006-02-27  Jim Meyering  <jim@meyering.net>
52264
52265         Revert the change of 2006-02-24, so these files can continue
52266         to be sync'd from gettext.
52267         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52268         of `config.h'.
52269
52270 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52271
52272         * modules/intprops: New file.
52273         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52274         Add intprops.
52275         * modules/getloadavg (Files): Remove lib/intprops.h.
52276         (Depends-on): Add intprops.
52277         * modules/human: Likewise.
52278         * modules/inttostr: Likewise.
52279         * modules/openat: Likewise.
52280         * modules/sig2str: Likewise.
52281         * modules/userspec: Likewise.
52282         * modules/utimecmp: Likewise.
52283         * modules/xnanosleep: Likewise.
52284         * modules/xstrtol: Likewise.
52285
52286 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52287
52288         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52289         * modules/lock-tests (TESTS): Use $(EXEEXT).
52290         * modules/tls-tests: Likewise.
52291         * modules/argp-tests: Likewise.
52292         (check_PROGRAMS): New var, replacing...
52293         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52294
52295 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52296
52297         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52298         `config.h'.
52299
52300 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52301
52302         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52303
52304 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52305
52306         Sync from coreutils.
52307         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52308         gl_CHDIR_SAFER.
52309
52310 2006-02-22  Jim Meyering  <jim@meyering.net>
52311
52312         Sync from coreutils.
52313         * m4/chdir-safer.m4: New file.
52314
52315 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52316
52317         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52318         AT_FDCWD exceeds INT_MAX.
52319         * lib/openat.h (AT_FDCWD): Likewise.
52320
52321 2006-02-17  Eric Blake  <address@hidden>
52322
52323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52324
52325 2006-02-16  Simon Josefsson  <jas@extundo.com>
52326
52327         * modules/getaddrinfo (Depends-on): Add sys_socket.
52328
52329 2006-02-15  Simon Josefsson  <jas@extundo.com>
52330
52331         * build-aux/maint.mk: Add dsyntax-check rule.
52332
52333 2006-02-15  Eric Blake  <ebb9@byu.net>
52334
52335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52336         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52337         'present but cannot compile' warnings on cygwin.
52338         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52339         use ws2tcpip.h if sys/socket.h works.
52340         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52341         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52342
52343 2006-02-14  Simon Josefsson  <jas@extundo.com>
52344
52345         * modules/maintainer-makefile (Files): Rename.
52346
52347         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52348         and (the local) Makefile.cfg to maint-cfg.mk.
52349
52350         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52351         to the latter.
52352
52353         * modules/maintainer-makefile: New module.
52354
52355         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52356         severaly stripped to make it possible to build it up from scratch
52357         with reliable tests.
52358
52359         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52360         fixes to permit overriding the default actions when configure and
52361         makefile are not available.
52362
52363 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52364
52365         Sync from coreutils.
52366         * modules/lstat (Depends-on): Don't depend on xalloc.
52367         (License): Change from GPL to LGPL, since this is now simply a
52368         replacement for a libc function.
52369
52370 2006-02-14  Jim Meyering  <jim@meyering.net>
52371
52372         Sync from coreutils.
52373
52374         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52375         failure on deficient systems, and simplify gnulib lgpl dependencies.
52376         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52377         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52378
52379         * lib/xalloc-die.c: Remove unused definition of N_.
52380
52381 2006-02-14  Jim Meyering  <jim@meyering.net>
52382
52383         Sync from coreutils.
52384         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52385         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52386         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52387         double-quote uses of that variable, to accommodate the rare case in
52388         which getmntent is available in none of the libraries checked.  This
52389         happens at least on FreeBSD 5.0.
52390
52391 2006-02-13  Simon Josefsson  <jas@extundo.com>
52392
52393         * gnulib-tool (Usage): Fix --import, from
52394         karl@freefriends.org (Karl Berry).
52395
52396 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52397
52398         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52399
52400 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52401
52402         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52403         "autoupdate" on 2005-12-12.
52404
52405 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52406
52407         * modules/closeout (Depends-on): Remove atexit.
52408
52409 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52410
52411         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52412         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52413
52414 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52415
52416         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52417         __EXTENSIONS__ if this causes compilation to fail.  Problem
52418         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52419         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52420
52421 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52424         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52425         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52426         All uses changed.
52427
52428 2006-01-26  Simon Josefsson  <jas@extundo.com>
52429
52430         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52431         prototype is visible on mingw32.
52432
52433         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52434         for mingw32.
52435
52436         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52437         mingw32).
52438
52439 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52440
52441         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52442         attempt to open for write; this always fails, at least on POSIX
52443         hosts.  This reinstates the 2006-01-09 change, which was
52444         inadvertently removed.
52445
52446 2006-01-26  Bruno Haible  <bruno@clisp.org>
52447
52448         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52449         Reported by Paul Eggert.
52450
52451 2006-01-26  Bruno Haible  <bruno@clisp.org>
52452             Paul Eggert  <eggert@cs.ucla.edu>
52453
52454         * lib/stdbool_.h (_Bool)
52455         [(! (defined __cplusplus || defined __BEOS__)
52456           && !defined __GNUC__
52457           && !(defined __HP_cc || defined __xlc__
52458                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52459                || defined __sgi))]:
52460         #define to signed char in these cases too; this simplifies
52461         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52462         etc., separately) and makes it more conservative.
52463
52464 2006-01-25  Simon Josefsson  <jas@extundo.com>
52465
52466         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52467         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52468         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52469
52470 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52471
52472         * lib/argp-namefrob.h: Bugfix. Remove stray #
52473
52474 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52475
52476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52477         so that we test the test.
52478         Check for yet another HP-UX cc bug involving *bool |= bool.
52479
52480 2006-01-25  Karl Berry  <karl@gnu.org>
52481
52482         * config/srclist.txt (vasnprintf.c): sync lost.
52483
52484 2006-01-25  Jim Meyering  <jim@meyering.net>
52485
52486         Sync from the stable (b5) branch of coreutils:
52487
52488         * lib/fts.c (fts_children): Don't let close() clobber errno from
52489         failed fchdir().
52490
52491         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52492         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52493         a dangling symlink.  That can also happen at least for ELOOP.
52494         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52495         FYI, this bug predates the inclusion of fts.c in coreutils.
52496
52497         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52498         in their own block, so pre-c99 compilers don't object.
52499
52500         Avoid the double-free (first in fts_read, second in fts_close) that
52501         would occur when an `active' directory is made inaccessible (e.g.,
52502         via chmod a-x) during a traversal.
52503         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52504         before returning.  Reproduce this failure by
52505         mkdir -p a/b; cd a; chmod a-x . b
52506         Reported by Stavros Passas.
52507
52508 2006-01-25  Jim Meyering  <jim@meyering.net>
52509
52510         * lib/fileblocks.c: Remove more useless parentheses.
52511         * lib/readutmp.h: Likewise.
52512
52513 2006-01-25  Bruno Haible  <bruno@clisp.org>
52514
52515         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52516         warnings.
52517         Reported by Paul Eggert.
52518
52519 2006-01-25  Bruno Haible  <bruno@clisp.org>
52520
52521         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52522         rid of a trap command. For Solaris sh.
52523         Reported by Mark D. Baushke <mdb@gnu.org>.
52524
52525 2006-01-24  Simon Josefsson  <jas@extundo.com>
52526
52527         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52528         Bruno.
52529
52530 2006-01-24  Karl Berry  <karl@gnu.org>
52531
52532         * config/srclist.txt (argp-namefrob.h): sync lost.
52533
52534 2006-01-24  Jim Meyering  <jim@meyering.net>
52535
52536         * modules/openat (Files): Add lib/intprops.h.
52537         From Mark D. Baushke.
52538
52539 2006-01-24  Jim Meyering  <jim@meyering.net>
52540
52541         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52542         Reported by Mark D. Baushke.
52543
52544 2006-01-24  Jim Meyering  <jim@meyering.net>
52545
52546         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52547
52548 2006-01-24  Bruno Haible  <bruno@clisp.org>
52549
52550         * modules/strnlen (Maintainer): Change from glibc to all.
52551
52552 2006-01-24  Bruno Haible  <bruno@clisp.org>
52553
52554         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52555         Patch by Paul Eggert.
52556
52557 2006-01-24  Bruno Haible  <bruno@clisp.org>
52558
52559         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52560         already has it.
52561         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52562         2005-11-26.
52563
52564         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52565         'signed char' to avoid problems with the built-in _Bool type.
52566         Reported by Paul Eggert on 2005-11-26.
52567
52568 2006-01-24  Bruno Haible  <bruno@clisp.org>
52569
52570         * gnulib-tool (func_import): Avoid constructing complicated sed
52571         expressions inside backquote.
52572         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52573
52574 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52575
52576         These changes imported from libc.
52577         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52578         test and two separate function calls.
52579         * lib/strndup.c (__strndup): Add libc_hidden_def.
52580
52581 2006-01-23  Simon Josefsson  <jas@extundo.com>
52582
52583         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52584         Remove the test_*_SOURCES variable: automake infers it by default.
52585         * modules/tls-tests: Likewise.
52586
52587 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52588
52589         Work around porting bugs reported by Dieter in
52590         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52591         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52592         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52593         Include "getopt.h" first, to check interface.
52594         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52595         !HAVE_DECL_GETENV.
52596         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52597         (__strndup): Revert to K&R-style function dfns, the glibc style.
52598         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52599         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52600         Include strnlen.h first, to get prototype properly.
52601         (strnlen): Renamed from __strnlen.
52602         Remove weak alias.
52603
52604 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52605
52606         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52607
52608 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52609
52610         * config/srclist.txt: Adjust to reflect glibc reorganization.
52611         This affects only comments.
52612
52613 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52614
52615          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52616          Reported by Bruce Korb <bkorb@gnu.org>.
52617
52618 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52619
52620         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52621         to pacify gcc -Wswitch-default.
52622
52623 2006-01-22  Bruno Haible  <bruno@clisp.org>
52624
52625         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
52626         temporary buffer for sprintf, take into account the precision also
52627         for 'd', 'i', 'u', 'o', 'x', 'X'.
52628
52629 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52630
52631         * modules/argp-tests: New module
52632         * tests/test-argp.c: New file
52633         * tests/test-argp-2.sh: New file
52634
52635 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52636
52637         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
52638         (__argp_base_name): Removed
52639         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
52640         typo.
52641         (__argp_base_name): Provide macro definition or extern declaration
52642         depending on the configuration
52643
52644 2006-01-20  Simon Josefsson  <jas@extundo.com>
52645
52646         * modules/inet_ntop (Depends-on): Depend on sys_socket.
52647
52648 2006-01-20  Simon Josefsson  <jas@extundo.com>
52649
52650         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
52651
52652 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52653
52654         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
52655         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
52656         Suggested by Bruno Haible.
52657
52658 2006-01-20  Karl Berry  <karl@gnu.org>
52659
52660         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
52661         until changes propagate, I guess.
52662
52663 2006-01-19  Simon Josefsson  <jas@extundo.com>
52664
52665         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
52666
52667 2006-01-19  Simon Josefsson  <jas@extundo.com>
52668
52669         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
52670
52671 2006-01-19  Simon Josefsson  <jas@extundo.com>
52672
52673         * gnulib-tool: Set check_PROGRAMS.
52674
52675         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52676         modules/des-tests, modules/gc-arcfour-tests,
52677         modules/gc-arctwo-tests, modules/gc-des-tests,
52678         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52679         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52680         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52681         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52682         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52683         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
52684         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
52685         test_*_SOURCES.
52686
52687 2006-01-18  Simon Josefsson  <jas@extundo.com>
52688
52689         * modules/socklen (Depends-on): Depend on sys_socket.
52690
52691 2006-01-18  Simon Josefsson  <jas@extundo.com>
52692
52693         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52694         modules/des-tests, modules/gc-arcfour-tests,
52695         modules/gc-arctwo-tests, modules/gc-des-tests,
52696         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52697         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52698         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52699         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52700         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52701         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
52702         $(EXEEXT) to automake TESTS variable, for mingw32.
52703
52704 2006-01-17  Simon Josefsson  <jas@extundo.com>
52705
52706         * modules/socklen (Include): Need sys/socket.h.
52707
52708 2006-01-17  Bruno Haible  <bruno@clisp.org>
52709
52710         * modules/ssize_t (Include): Add <sys/types.h>.
52711
52712 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
52713
52714         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
52715         it's not portable and it doesn't work with cross-compiles.
52716         Problem reported by Bruno Haible.  Fix missing-$ typo in
52717         'test "gl_cv_ignore_unused_libraries" ...' that prevented
52718         -zignore from being used with Sun's C compiler.
52719
52720 2006-01-12  Simon Josefsson  <jas@extundo.com>
52721
52722         * lib/base64.c: Fix warning, reported by Bruno Haible
52723         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
52724
52725 2006-01-12  Bruno Haible  <bruno@clisp.org>
52726
52727         * modules/ldd: New file.
52728         * build-aux/ldd.sh.in: New file.
52729         * MODULES.html.sh (Support for building libraries and executables): Add
52730         ldd.
52731
52732 2006-01-12  Bruno Haible  <bruno@clisp.org>
52733
52734         * m4/ldd.m4: New file.
52735
52736 2006-01-12  Bruno Haible  <bruno@clisp.org>
52737
52738         * gnulib-tool (func_import, func_create_testdir): Don't go into an
52739         endless loop while replacing $auxdir with build-aux.
52740
52741 2006-01-11  Simon Josefsson  <jas@extundo.com>
52742
52743         * lib/stdint_.h (SIZE_MAX): Add missing (.
52744
52745 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
52746
52747         Sync from coreutils.
52748         * lib/md5.c: Fix commentary typos.
52749         (alignof, UNALIGNED_P): No need for a GCC-specific version.
52750         * lib/md5.h (__attribute__): Remove; unused.
52751         * lib/sha1.c: Fix commentary to match md5 better.
52752         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
52753         so that we don't need to worry about alignment.  All uses changed.
52754         This merges the 2005-10-28 md5 change into sha1.
52755
52756 2006-01-11  Jim Meyering  <jim@meyering.net>
52757
52758         Sync from coreutils.
52759         * lib/md5.c (OP): Fix spacing.
52760
52761 2006-01-11  Bruno Haible  <bruno@clisp.org>
52762
52763         Ensure automatic ordering between gl_LOCK and gl_ARGP.
52764         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
52765         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
52766
52767 2006-01-11  Bruno Haible  <bruno@clisp.org>
52768
52769         Ensure automatic ordering between gl_LOCK and gl_ARGP.
52770         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
52771         the "early" section as well.
52772
52773 2006-01-11  Bruno Haible  <bruno@clisp.org>
52774
52775         Avoid "ar: no archive members specified" error on MacOS X.
52776         * gnulib-tool (func_modules_add_dummy): New function.
52777         (func_import, func_create_testdir): Invoke it.
52778
52779 2006-01-11  Bruno Haible  <bruno@clisp.org>
52780
52781         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
52782         with $auxdir in AC_CONFIG_FILES statements.
52783
52784 2006-01-11  Bruno Haible  <bruno@clisp.org>
52785
52786         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52787         Initialize also noinst_HEADERS to empty.
52788
52789 2006-01-11  Bruno Haible  <bruno@clisp.org>
52790
52791         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
52792         variables.
52793         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
52794         autoreconf.
52795
52796 2006-01-11  Bruno Haible  <bruno@clisp.org>
52797
52798         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
52799         overridable by the user.
52800         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52801
52802 2006-01-10  Simon Josefsson  <jas@extundo.com>
52803
52804         * modules/sys_socket: New file.
52805
52806 2006-01-10  Simon Josefsson  <jas@extundo.com>
52807
52808         * m4/sys_socket_h.m4: New file.
52809
52810 2006-01-10  Simon Josefsson  <jas@extundo.com>
52811
52812         * lib/socket_.h: New file.
52813
52814 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52815
52816         * modules/readutmp (Maintainer): Add myself.
52817
52818 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52819
52820         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
52821         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
52822         People who are still concerned with buggy memcmp implementations
52823         can invoke gl_FUNC_MEMCMP themselves.
52824
52825 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52826
52827         * lib/regex_internal.h (BITSET_WORD_BITS):
52828         Work around a bug in 64-bit PGC (before version 6.1-2), where the
52829         preprocessor mishandles large unsigned values as if they were signed.
52830         Problem reported by Claudio Fontana in
52831         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
52832
52833 2006-01-10  Jim Meyering  <jim@meyering.net>
52834
52835         Avoid the double-free (first in fts_read, second in fts_close) that
52836         would occur when an `active' directory is made inaccessible (e.g.,
52837         via chmod a-x) during a traversal.
52838         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52839         before returning.  Reproduce this failure by
52840         mkdir -p a/b; cd a; chmod a-x . b
52841         Reported by Stavros Passas.
52842
52843         Sync from coreutils.
52844         * lib/sha1.c: Tweak grammar in a comment.
52845
52846 2006-01-10  Jim Meyering  <jim@meyering.net>
52847
52848         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
52849         Patch by Joerg Sonnenberger.
52850
52851 2006-01-10  Bruno Haible  <bruno@clisp.org>
52852
52853         * modules/readutmp: Depend on module free.
52854         * modules/strtok_r: Depend on module restrict.
52855
52856 2006-01-10  Bruno Haible  <bruno@clisp.org>
52857
52858         * modules/gettext (configure.ac): Add an invocation of
52859         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
52860
52861 2006-01-10  Bruno Haible  <bruno@clisp.org>
52862
52863         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
52864         Reported by Werner Lemberg <wl@gnu.org>.
52865
52866 2006-01-10  Bruno Haible  <bruno@clisp.org>
52867
52868         * lib/localcharset.c: Update from GNU gettext.
52869
52870 2006-01-10  Bruno Haible  <bruno@clisp.org>
52871
52872         * lib/argp.h (__const): Remove macro. Use const instead.
52873         * lib/argp-fmtstream.h (__const): Likewise.
52874         * lib/glob_.h (__const): Remove macro.
52875         * lib/glob-libc.h: Use const instead of __const.
52876
52877 2006-01-10  Bruno Haible  <bruno@clisp.org>
52878
52879         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
52880         variable.
52881         Needed to avoid an automake error regarding the 'gettext' module.
52882
52883 2006-01-09  Simon Josefsson  <jas@extundo.com>
52884
52885         * modules/inet_ntop (Depends-on): Add restrict.
52886
52887 2006-01-09  Simon Josefsson  <jas@extundo.com>
52888
52889         * modules/gc-rijndael-tests (License): Put under LGPL.
52890
52891         * modules/gc-des-tests (License): Likewise.
52892
52893         * modules/gc-arcfour-tests (License): Likewise.
52894
52895         * modules/gc-arctwo-tests (License): Likewise.
52896
52897         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
52898
52899         * modules/gc-hmac-sha1-tests (Files): Likewise.
52900
52901         * modules/gc-hmac-md5-tests (License): Likewise.
52902
52903         * modules/gc-sha1-tests (License): Likewise.
52904
52905         * modules/gc-md5-tests (License): Likewise.
52906
52907         * modules/gc-md4-tests (License): Likewise.
52908
52909         * modules/gc-md2-tests (License): Likewise.
52910
52911         * modules/gc-tests (License): Likewise.
52912
52913         * modules/des-tests (License): Likewise.
52914
52915         * modules/md4-tests (License): Likewise.
52916
52917         * modules/md2-tests (License): Likewise.
52918
52919 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52920
52921         Sync from coreutils:
52922
52923         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
52924         * modules/lib-ignore: New file.
52925         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
52926         chdir-safer.m4, lchmod.m4.
52927         * modules/openat: Add mkdirat.c, openat-priv.h.
52928
52929 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52930
52931         Sync from coreutils.
52932         * m4/lib-ignore.m4: New file.
52933         * m4/lchmod.m4: New file.
52934
52935 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52936
52937         Sync from coreutils.
52938         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
52939         for write access: POSIX says that must fail.
52940         * lib/fts.c (diropen): Likewise.
52941         * lib/save-cwd.c (save_cwd): Likewise.
52942         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
52943         well, for minor improvements on hosts that lack O_DIRECTORY.
52944         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
52945         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
52946         Fall back on chown if open failed with EACCES.
52947
52948         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
52949         Report an error at compile-time if only a 1-second nominal clock
52950         resolution is found.
52951
52952         * lib/lchmod.h: New file.
52953         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
52954         (make_dir_parents): Use lchown rather than chown, and
52955         lchmod rather than chmod.
52956
52957         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
52958         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
52959         "proc" reported by n0dalus.
52960
52961         * lib/mountlist.c: Include <limits.h>.
52962         (dev_from_mount_options)
52963         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
52964         New function.  It no longer assumes "dev=" has the System V meaning
52965         on Linux (since it doesn't).  It also parses "dev=" more carefully.
52966         (read_file_system_list)
52967         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
52968         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
52969         dev= in that case.
52970
52971         * lib/posixtm.h (PDS_PRE_2000): New macro.
52972         * lib/posixtm.c (year): Arg is now syntax_bits rather than
52973         allow_century.  All usages changed.  Reject dates outside the range
52974         1969-1999 if PDS_PRE_2000 is used.
52975
52976 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52977
52978         Sync from coreutils.
52979         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
52980         (Time of day items): Mention the possibility of leap seconds.
52981         Problem reported by Dr. David Alan Gilbert.
52982
52983 2006-01-09  Jim Meyering  <jim@meyering.net>
52984
52985         Sync from coreutils.
52986
52987         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
52988
52989         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
52990
52991         * lib/modechange.c (mode_compile): Reject an invalid mode string
52992         that starts with an octal digit.  From Andreas Gruenbacher.
52993
52994         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
52995         and dup to open_safer and dup_safer, respectively.
52996         (openat_permissive): Fix typo in comment.
52997
52998         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
52999         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53000         (_): Remove; no longer needed.
53001         (openat): Renamed from rpl_openat; no need for rpl_openat
53002         since openat.h renames openat for us.
53003         Replace most of the body with a call to openat_permissive,
53004         to avoid duplicate code.
53005         Port to (probably hypothetical) environments were mode_t is
53006         wider than int.
53007         (openat_permissive): Require mode arg, so that we can check
53008         types better.  Put it just after flags.  Change cwd failure
53009         indicator from pointer-to-bool to pointer-to-errno-value.
53010         All callers changed.
53011         Invoke openat_save_fail and/or openat_restore_fail if
53012         cwd_errno is null, so that openat can call us.
53013         (openat_permissive, fdopendir, fstatat, unlinkat):
53014         Simplify errno handling to avoid some duplicate code,
53015         as it's OK to set errno on success.
53016         * lib/openat.h: Revamp code so that function macros depend on
53017         __OPENAT_PREFIX only, not also on AT_FDCWD.
53018         (openat_ro): Remove.  Caller changed to use openat_permissive.
53019         (openat_permissive): Now a macro, if not a function.
53020         (openat_restore_fail, openat_save_fail): Now always functions,
53021         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53022
53023         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53024         and openat.c.
53025         * lib/mkdirat.c: Include openat-priv.h.
53026         Remove definitions of macros defined therein.
53027         * lib/openat.c: Likewise.
53028
53029         * lib/mkdirat.c (mkdirat): New file and function.
53030         * lib/openat.h (mkdirat): Declare.
53031
53032         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53033
53034         * lib/openat.h (openat_permissive): Declare.
53035         (openat_ro): Define.
53036
53037         * lib/openat.c (EXPECTED_ERRNO): New macro.
53038         (openat_permissive): New function -- used in remove.c rewrite.
53039         (all functions): Set errno just before returning, only if there
53040         was an actual failure.
53041         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53042
53043         Emulate openat-family functions using Linux's procfs, if possible.
53044         Idea and some code based on Ulrich Drepper's glibc changes.
53045
53046         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53047         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53048         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53049         before falling back on save_cwd and restore_cwd.
53050         (fdopendir, fstatat, unlinkat): Likewise.
53051
53052         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53053         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53054
53055         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53056         as second argument to va_arg.  Otherwise, some versions of gcc
53057         warn that `if this code is reached, the program will abort'.
53058
53059 2006-01-09  Jim Meyering  <jim@meyering.net>
53060
53061         Sync from coreutils.
53062         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53063         Require openat-priv.h.
53064
53065 2006-01-09  Bruno Haible  <bruno@clisp.org>
53066
53067         * modules/strnlen (Include): Use strnlen.h.
53068
53069 2006-01-09  Bruno Haible  <bruno@clisp.org>
53070
53071         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53072
53073 2006-01-09  Bruno Haible  <bruno@clisp.org>
53074
53075         * lib/sysexit_.h (EX_OK): New macro.
53076         Suggested by Martin Lambers <marlam@marlam.de>.
53077
53078 2006-01-09  Bruno Haible  <bruno@clisp.org>
53079
53080         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53081         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53082
53083 2006-01-09  Bruno Haible  <bruno@clisp.org>
53084
53085         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53086         numbers.
53087
53088 2006-01-09  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53091         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53092         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53093         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53094
53095 2006-01-09  Bruno Haible  <bruno@clisp.org>
53096
53097         * build-aux/javacomp.sh.in: New file, moved from lib/.
53098         * modules/javacomp-script (Files): Update.
53099         (configure.ac): Add AC_CONFIG_FILES invocation.
53100         (EXTRA_DIST): Remove variable.
53101
53102         * build-aux/javaexec.sh.in: New file, moved from lib/.
53103         * modules/javaexec (Files): Update.
53104         (configure.ac): Add AC_CONFIG_FILES invocation.
53105         (EXTRA_DIST): Remove javaexec.sh.in.
53106
53107         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53108         * modules/csharpcomp-script (Files): Update.
53109         (configure.ac): Add AC_CONFIG_FILES invocation.
53110         (EXTRA_DIST): Remove variable.
53111
53112         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53113         * modules/csharpexec (Files): Update.
53114         (configure.ac): Add AC_CONFIG_FILES invocation.
53115         (EXTRA_DIST): Remove csharpexec.sh.in.
53116
53117 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53118
53119         Sync from coreutils.
53120
53121         Add POSIX ACL support
53122         * lib/acl.h (copy_acl, set_acl): Add declarations.
53123         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53124         systems other than Linux.
53125         (chmod_or_fchmod): New function: use fchmod when possible,
53126         and chmod otherwise.
53127         (file_has_acl): Add a POSIX ACL implementation, with a
53128         Linux-specific subcase.
53129         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53130         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53131         acls are unsupported.
53132         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53133         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53134         are unsupported.
53135
53136 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53137
53138         Sync from coreutils.
53139         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53140
53141 2006-01-07  Bruno Haible  <bruno@clisp.org>
53142
53143         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53144         gl_EARLY.
53145
53146 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53147
53148         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53149         Problem reported for Mingw by Mark Junker.
53150
53151 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53152
53153         * README: Gnulib normally doesn't generate a tarball.
53154
53155 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53156
53157         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53158         long int, not int, for nanosecond counts, so that people who are
53159         used to POSIX struct timespec won't be surprised.  Reported by Jim
53160         Meyering.
53161
53162 2005-12-28  Bruno Haible  <bruno@clisp.org>
53163
53164         * build-aux/config.rpath: Update from GNU gettext.
53165
53166 2005-12-16  Jim Meyering  <jim@meyering.net>
53167
53168         * modules/fprintftime: New module.
53169         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53170
53171 2005-12-16  Jim Meyering  <jim@meyering.net>
53172
53173         * m4/fprintftime.m4: New file.
53174
53175 2005-12-16  Jim Meyering  <jim@meyering.net>
53176
53177         * lib/fprintftime.c, lib/fprintftime.h: New files.
53178
53179 2005-12-15  Simon Josefsson  <jas@extundo.com>
53180
53181         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53182         new m4/socklen.m4.
53183
53184 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53185
53186         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53187         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53188
53189 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53190
53191         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53192         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53193         struct uparams is valid. Fall back to the default values if it is
53194         not.
53195
53196 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53197
53198         * modules/argp (Files): Add argp-pin.c
53199         (Depends-on): dirname
53200         (lib_SOURCES): Add argp-pin.c
53201
53202 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53203
53204         * m4/argp.m4:  Check if program_invocation_name and
53205         program_invocation_short_name are declared and define appropriate
53206         macros if they are not.
53207
53208 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53209
53210         * lib/argp-help.c (__argp_base_name): New function
53211         (__argp_short_program_name): Rewrite using __argp_base_name
53212         * lib/argp-namefrob.h: Define program_invocation_name and
53213         program_invocation_short_name if requested
53214         (__argp_base_name): Add prototype
53215         * lib/argp-parse.c (argp_def): Use gettext wrappers
53216         (argp_default_parser): Use __argp_base_name
53217         * lib/argp-pin.c: New file. Defines program_invocation_name and
53218         program_invocation_short_name on systems that lack them.
53219
53220 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53221
53222         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53223         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53224         porting problem reported by Georg Schwarz in
53225         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53226
53227 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53228
53229         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53230         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53231         porting problem reported by Georg Schwarz in
53232         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53233
53234 2005-12-05  Bruno Haible  <bruno@clisp.org>
53235
53236         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53237         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53238         Reported by Mark Junker <mjscod@gmx.de>.
53239
53240 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53241
53242         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53243         Use implementation from Albert Chin, with some
53244         comments/corrections by Stepan Kasal and myself.
53245
53246 2005-12-02  Bruno Haible  <bruno@clisp.org>
53247
53248         * gnulib-tool (func_import): Accept GPLed build tool modules when
53249         --lgpl is given.
53250         * modules/csharpcomp-script: New file.
53251         * modules/csharpcomp: Depend on it.
53252         * modules/javacomp-script: New file.
53253         * modules/javacomp: Depend on it.
53254         Suggested by Simon Josefsson.
53255
53256 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53257
53258         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53259         statement, to work around an HP-UX 10.20 compiler bug reported by
53260         Peter O'Gorman.
53261
53262 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53263
53264         * modules/savedir (Depends-on): Add openat.
53265
53266 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53269         (uintmax_t) [defined uintmax_t]: Do not declare.
53270         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53271         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53272         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53273         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53274         sake of portability to weird hosts that C allows (though we don't
53275         know of any practical examples).
53276
53277         * lib/savedir.h (fdsavedir): New decl.
53278         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53279         contains most of the former guts of savedir.
53280         (savedir): Use savedirstream.
53281         Include "openat.h".
53282
53283 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * modules/obstack (Files): Add m4/ulonglong.m4.
53286         Problem reported by Davide Angelocola.
53287
53288 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53289
53290         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53291         coreutils no longer futzes with rounding modes.
53292
53293 2005-11-14  Jim Meyering  <jim@meyering.net>
53294
53295         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53296         replacement of mkstemp.
53297
53298 2005-11-10  Simon Josefsson  <jas@extundo.com>
53299
53300         * lib/readline.c: Remove EOL.
53301
53302 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53303
53304         * modules/gethrxtime (Depends-on): Add gettime.
53305
53306 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53307
53308         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53309         or gettimeofday; no longer needed.
53310
53311 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53312
53313         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53314         time business.
53315         (gethrxtime) [! (HAVE_NANOUPTIME
53316         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53317         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53318         our own approximation.
53319
53320 2005-11-08  Eric Blake  <ebb9@byu.net>
53321
53322         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53323
53324 2005-11-08  Eric Blake  <ebb9@byu.net>
53325
53326         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53327
53328 2005-11-04  Bruno Haible  <bruno@clisp.org>
53329
53330         * gnulib-tool: Implement --update mode.
53331
53332 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53333
53334         Fix porting problem reported by Theodoros V. Kalamatianos.
53335         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53336         Don't assume that futimes failing means we must fail.
53337
53338 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53339
53340         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53341         variables to suggest the intended function of the PATH_MAX check.
53342
53343 2005-10-30  Kean Johnston  <jkj@sco.com>
53344
53345         Trivial changes to support SCO systems.
53346         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53347         as PATH_MAX.
53348         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53349         where __ptr is null when no I/O is pending.
53350
53351 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53352
53353         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53354         leave errno alone.  Problem reported by Dmitry V. Levin.
53355
53356 2005-10-28  Simon Josefsson  <jas@extundo.com>
53357
53358         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53359         Test more.
53360
53361         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53362
53363         * modules/md2, modules/md2-tests: New files.
53364
53365 2005-10-28  Simon Josefsson  <jas@extundo.com>
53366
53367         * m4/inet_ntop.m4: More tests.
53368
53369         * m4/gc-md2.m4, md2.m4: New file.
53370
53371 2005-10-28  Simon Josefsson  <jas@extundo.com>
53372
53373         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53374         "restrict" keywords, as per POSIX.  Protect the function
53375         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53376         Don't use K&R prototypes.  Check the sprintf return values.
53377         Re-define EAFNOSUPPORT if not present.  Indent.
53378
53379         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53380         suggested by Bruno Haible <bruno@clisp.org>.
53381
53382         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53383
53384         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53385
53386         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53387         libgcrypt).
53388
53389         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53390
53391         * lib/md2.h, lib/md2.c: New files.
53392
53393 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53394
53395         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53396         errno alone.  Problem reported by Frederic Jolliton.
53397
53398 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53399
53400         * modules/verify (License): Change from GPL to LGPL.  This is a
53401         tiny module and there are apparently near-equivalents that are
53402         under the BSD license.
53403
53404 2005-10-24  Simon Josefsson  <jas@extundo.com>
53405
53406         * modules/sha1: Relicense to LGPL.
53407
53408 2005-10-24  Simon Josefsson  <jas@extundo.com>
53409
53410         * lib/md4.h: Shrink buffer size, now that we changed the type.
53411
53412 2005-10-23  Simon Josefsson  <jas@extundo.com>
53413
53414         * gnulib-tool (func_import): Fix --tests-base.
53415
53416 2005-10-22  Simon Josefsson  <jas@extundo.com>
53417
53418         * modules/arcfour (Depends-on): Need stdint.
53419
53420 2005-10-22  Simon Josefsson  <jas@extundo.com>
53421
53422         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53423         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53424
53425 2005-10-22  Simon Josefsson  <jas@extundo.com>
53426
53427         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53428         suggested by Bruno Haible <bruno@clisp.org>.
53429
53430 2005-10-22  Simon Josefsson  <jas@extundo.com>
53431
53432         * lib/crc.h: Include stddef.h, for size_t.
53433
53434 2005-10-22  Simon Josefsson  <jas@extundo.com>
53435
53436         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53437         arcfour_context struct (simplify test vector testing in GNU
53438         Shishi).
53439
53440 2005-10-21  Simon Josefsson  <jas@extundo.com>
53441
53442         * modules/des, modules/des-tests: New files.
53443
53444         * modules/gc-des, modules/gc-des-tests: New files.
53445
53446         * tests/test-des.c, tests/test-gc-des.c: New file.
53447
53448 2005-10-21  Simon Josefsson  <jas@extundo.com>
53449
53450         * modules/arctwo, modules/arctwo-tests: New files.
53451
53452         * tests/test-arctwo.c: New file.
53453
53454         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53455
53456         * tests/test-gc-arctwo.c: New file.
53457
53458 2005-10-21  Simon Josefsson  <jas@extundo.com>
53459
53460         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53461         Bruno Haible <bruno@clisp.org>.
53462
53463         * m4/gc-des.m4: New file.
53464
53465 2005-10-21  Simon Josefsson  <jas@extundo.com>
53466
53467         * m4/arctwo.m4: New file.
53468
53469         * m4/gc-arctwo.m4: New file.
53470
53471 2005-10-21  Simon Josefsson  <jas@extundo.com>
53472
53473         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53474         block.
53475
53476 2005-10-21  Simon Josefsson  <jas@extundo.com>
53477
53478         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53479         <bruno@clisp.org>.
53480
53481         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53482
53483         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53484         Bruno Haible <bruno@clisp.org>.
53485
53486         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53487         <bruno@clisp.org>.
53488
53489 2005-10-21  Simon Josefsson  <jas@extundo.com>
53490
53491         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53492
53493 2005-10-21  Simon Josefsson  <jas@extundo.com>
53494
53495         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53496
53497 2005-10-21  Simon Josefsson  <jas@extundo.com>
53498
53499         * lib/des.h, lib/des.c: New files.
53500
53501         * lib/gc-gnulib.c: Support DES.c
53502
53503 2005-10-21  Simon Josefsson  <jas@extundo.com>
53504
53505         * lib/arctwo.h, lib/arctwo.c: New files.
53506
53507         * lib/gc-gnulib.c: Support ARCTWO.
53508
53509 2005-10-21  Simon Josefsson  <jas@extundo.com>
53510
53511         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53512         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53513
53514 2005-10-21  Simon Josefsson  <jas@extundo.com>
53515
53516         * gnulib-tool (func_import, func_create_testdir): Define automake
53517         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53518         Makefile.am snippet),
53519         suggested by Bruno Haible <bruno@clisp.org>.
53520
53521         * modules/gc (Makefile.am): Use it.
53522
53523 2005-10-21  Bruno Haible  <bruno@clisp.org>
53524
53525         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53526         patch.
53527
53528 2005-10-19  Simon Josefsson  <jas@extundo.com>
53529
53530         * tests/test-gc-rijndael.c: New file.
53531
53532         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53533
53534 2005-10-19  Simon Josefsson  <jas@extundo.com>
53535
53536         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53537         interface too.
53538
53539 2005-10-19  Simon Josefsson  <jas@extundo.com>
53540
53541         * tests/test-gc-arcfour.c: New file.
53542
53543         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53544
53545 2005-10-19  Simon Josefsson  <jas@extundo.com>
53546
53547         * modules/gc-md4, modules/gc-md4-tests: New file.
53548
53549         * tests/test-gc-md4.c: New file.
53550
53551 2005-10-19  Simon Josefsson  <jas@extundo.com>
53552
53553         * m4/gc-md4.m4: New file.
53554
53555 2005-10-19  Simon Josefsson  <jas@extundo.com>
53556
53557         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53558         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53559         <kasal@ucw.cz>.
53560
53561 2005-10-19  Simon Josefsson  <jas@extundo.com>
53562
53563         * m4/gc-arcfour.m4: New file.
53564
53565         * m4/gc-rijndael.m4: New file.
53566
53567 2005-10-19  Simon Josefsson  <jas@extundo.com>
53568
53569         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53570
53571 2005-10-19  Simon Josefsson  <jas@extundo.com>
53572
53573         * lib/gc-gnulib.c: Support ARCFOUR.
53574
53575 2005-10-19  Simon Josefsson  <jas@extundo.com>
53576
53577         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53578         support.
53579
53580         * lib/gc.h: Add ECB enum type.
53581
53582         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53583
53584 2005-10-18  Simon Josefsson  <jas@extundo.com>
53585
53586         * tests/test-md5.c: New file.
53587
53588         * modules/md5-tests: New file.
53589
53590 2005-10-18  Simon Josefsson  <jas@extundo.com>
53591
53592         * tests/test-md4.c: New file.
53593
53594         * modules/md4, modules/md4-tests: New files.
53595
53596 2005-10-18  Simon Josefsson  <jas@extundo.com>
53597
53598         * m4/md4.m4: New file.
53599
53600 2005-10-18  Simon Josefsson  <jas@extundo.com>
53601
53602         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53603
53604 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53605
53606         * gnulib-tool (func_create_testdir): Omit the second check whether
53607         BUILT_SOURCES in nonempty.
53608
53609 2005-10-17  Simon Josefsson  <jas@extundo.com>
53610
53611         * tests/test-rijndael.c: New file.
53612
53613 2005-10-17  Simon Josefsson  <jas@extundo.com>
53614
53615         * modules/sha1: Depend on stdint instead of md5.
53616
53617         * modules/md5: Depend on stdint, remove uint32_t.
53618
53619 2005-10-17  Simon Josefsson  <jas@extundo.com>
53620
53621         * modules/gc-sha1-tests: New file.
53622
53623         * tests/test-gc-sha1.c: New file.
53624
53625 2005-10-17  Simon Josefsson  <jas@extundo.com>
53626
53627         * m4/md5.m4: Remove call to uint32_t.m4.
53628
53629 2005-10-17  Simon Josefsson  <jas@extundo.com>
53630
53631         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
53632
53633         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
53634         md5.h.
53635
53636         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
53637
53638         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
53639
53640 2005-10-17  Simon Josefsson  <jas@extundo.com>
53641
53642         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
53643
53644 2005-10-17  Simon Josefsson  <jas@extundo.com>
53645
53646         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
53647
53648 2005-10-17  Simon Josefsson  <jas@extundo.com>
53649
53650         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
53651
53652         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
53653
53654 2005-10-17  Bruno Haible  <bruno@clisp.org>
53655
53656         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
53657         that it can also be used in a test.
53658
53659 2005-10-16  Bruno Haible  <bruno@clisp.org>
53660
53661         * gnulib-tool (func_emit_tests_Makefile_am): Also define
53662         TESTS_ENVIRONMENT, so that individual tests can augment it.
53663
53664         * gnulib-tool (func_create_testdir): Use an intermediate target for
53665         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
53666         macros, like $(ALLOCA_H), which cannot be passed through the command
53667         line.
53668
53669 2005-10-15  Simon Josefsson  <jas@extundo.com>
53670
53671         * modules/rijndael-tests: New file.
53672
53673         * modules/rijndael: New file.
53674
53675 2005-10-15  Simon Josefsson  <jas@extundo.com>
53676
53677         * m4/rijndael.m4: New file.
53678
53679 2005-10-15  Simon Josefsson  <jas@extundo.com>
53680
53681         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
53682
53683         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
53684
53685 2005-10-14  Simon Josefsson  <jas@extundo.com>
53686
53687         * tests/test-arcfour.c: New file.
53688
53689         * modules/arcfour, modules/arcfour-tests: New files.
53690
53691 2005-10-14  Simon Josefsson  <jas@extundo.com>
53692
53693         * m4/arcfour.m4: New file.
53694
53695 2005-10-14  Simon Josefsson  <jas@extundo.com>
53696
53697         * lib/arcfour.h, lib/arcfour.c: New files.
53698
53699 2005-10-14  Roland McGrath  <roland@redhat.com>
53700
53701         Import from libc.  [BZ #1331]
53702         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
53703         macro argument.
53704         Reported by Matej Vela <vela@debian.org>.
53705
53706 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53707
53708         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
53709         include <wchar.h>; no longer needed.
53710
53711 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53712
53713         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
53714
53715 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
53716         and  Ulrich Drepper  <drepper@redhat.com>
53717
53718         Import from libc.
53719         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
53720         instead of inline stream orientation test and two separate
53721         function calls.  Pay no attention to USE_IN_LIBIO.
53722
53723 2005-10-13  Simon Josefsson  <jas@extundo.com>
53724
53725         * modules/gc-hmac-md5-tests: New file.
53726
53727         * tests/test-gc-hmac-sha1.c: New file.
53728
53729         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
53730
53731         * modules/gc-hmac-md5-tests: New file.
53732
53733         * tests/test-gc-md5.c: New file.
53734
53735         * modules/gc-md5-tests: New file.
53736
53737 2005-10-13  Simon Josefsson  <jas@extundo.com>
53738
53739         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
53740         Move memory allocation outside of loop.
53741
53742 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
53743
53744         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
53745         intermediate directory is in a read-only file system.  Problem
53746         reported by Eric Blake.
53747
53748 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
53749
53750         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
53751
53752 2005-10-12  Simon Josefsson  <jas@extundo.com>
53753
53754         * tests/test-hmac-sha1.c: New file.
53755
53756         * modules/hmac-sha1-tests: New file.
53757
53758         * modules/hmac-sha1: New file.
53759
53760 2005-10-12  Simon Josefsson  <jas@extundo.com>
53761
53762         * modules/gc-sha1: New file.
53763
53764 2005-10-12  Simon Josefsson  <jas@extundo.com>
53765
53766         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
53767
53768         * tests/test-gc-pbkdf2-sha1.c: New file.
53769
53770 2005-10-12  Simon Josefsson  <jas@extundo.com>
53771
53772         * modules/gc-md5, modules/gc-hmac-md5: New files.
53773
53774         * modules/gc (Files): Remove md5, memxor and hmac files.
53775
53776 2005-10-12  Simon Josefsson  <jas@extundo.com>
53777
53778         * m4/gc-pbkdf2-sha1.m4: New file.
53779
53780         * m4/gc-hmac-sha1.m4: New file.
53781
53782         * m4/gc-sha1: New file.
53783
53784         * m4/hmac-sha1.m4: New file.
53785
53786 2005-10-12  Simon Josefsson  <jas@extundo.com>
53787
53788         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
53789
53790         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
53791
53792 2005-10-12  Simon Josefsson  <jas@extundo.com>
53793
53794         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
53795         suggested by Bruno Haible <bruno@clisp.org>.
53796
53797 2005-10-12  Simon Josefsson  <jas@extundo.com>
53798
53799         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
53800
53801 2005-10-12  Simon Josefsson  <jas@extundo.com>
53802
53803         * lib/gc-pbkdf2-sha1.c: New file.
53804
53805         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
53806
53807 2005-10-12  Simon Josefsson  <jas@extundo.com>
53808
53809         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
53810
53811         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
53812
53813 2005-10-12  Simon Josefsson  <jas@extundo.com>
53814
53815         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
53816         GC_USE_HMAC_MD5, respectively.
53817
53818         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
53819         (gc_md5): Fix typo.
53820
53821         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
53822
53823         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
53824
53825         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
53826
53827 2005-10-12  Bruno Haible  <bruno@clisp.org>
53828
53829         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
53830         Reported by Stepan Kasal <kasal@ucw.cz>.
53831
53832 2005-10-11  Simon Josefsson  <jas@extundo.com>
53833
53834         * tests/test-crc.c: New file.
53835
53836         * modules/crc, modules/crc-tests: New files.
53837
53838 2005-10-11  Simon Josefsson  <jas@extundo.com>
53839
53840         * m4/crc.m4: New file.
53841
53842 2005-10-11  Simon Josefsson  <jas@extundo.com>
53843
53844         * lib/gc.h: Add gc_hash and gc_hash_buffer.
53845
53846         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
53847
53848         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
53849
53850 2005-10-11  Simon Josefsson  <jas@extundo.com>
53851
53852         * lib/crc.h, lib/crc.c: New files.
53853
53854         * lib/gc.h (gc_hash_buffer): Add doc.
53855
53856 2005-10-11  Bruno Haible  <bruno@clisp.org>
53857
53858         * modules/c-strcasestr: New file.
53859         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
53860
53861 2005-10-11  Bruno Haible  <bruno@clisp.org>
53862
53863         * modules/c-strcase: New file.
53864         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
53865
53866 2005-10-11  Bruno Haible  <bruno@clisp.org>
53867
53868         * lib/strcasecmp.c: Include limits.h.
53869         (strcasecmp): Avoid integer overflow on exotic platforms.
53870         * lib/strncasecmp.c: Include limits.h.
53871         (strncasecmp): Avoid integer overflow on exotic platforms.
53872         Reported by Paul Eggert.
53873
53874 2005-10-11  Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/c-strcasestr.h: New file, from GNU gettext.
53877         * lib/c-strcasestr.c: New file, from GNU gettext.
53878
53879 2005-10-11  Bruno Haible  <bruno@clisp.org>
53880
53881         * lib/c-strcase.h: New file, from GNU gettext.
53882         * lib/c-strcasecmp.c: New file, from GNU gettext.
53883         * lib/c-strncasecmp.c: New file, from GNU gettext.
53884
53885 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53886
53887         * modules/mempcpy (License): GPL -> LGPL.
53888         * modules/strchrnul (License): Likewise.
53889         * modules/sysexits (License): Likewise.
53890
53891 2005-10-08  Simon Josefsson  <jas@extundo.com>
53892
53893         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
53894
53895 2005-10-07  Simon Josefsson  <jas@extundo.com>
53896
53897         * m4/memxor.m4: Remove gl_C_RESTRICT call.
53898
53899 2005-10-06  Simon Josefsson  <jas@extundo.com>
53900
53901         * tests/test-hmac-md5.c: New file.
53902
53903         * modules/hmac-md5-tests: New file.
53904
53905         * modules/hmac-md5: New file.
53906
53907 2005-10-06  Simon Josefsson  <jas@extundo.com>
53908
53909         * m4/hmac-md5.m4: New file.
53910
53911         * m4/memxor.m4: Require gl_C_RESTRICT.
53912
53913 2005-10-06  Simon Josefsson  <jas@extundo.com>
53914
53915         * lib/memxor.c (memxor): Avoid casts and warnings.
53916
53917 2005-10-06  Simon Josefsson  <jas@extundo.com>
53918
53919         * lib/hmac-md5.c: New file.
53920
53921         * lib/hmac.h: New file.
53922
53923 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
53926         promotes to int, not unsigned int, to catch the AIX 5.3
53927         compiler bug.
53928
53929 2005-10-05  Simon Josefsson  <jas@extundo.com>
53930
53931         * modules/memxor: New file.
53932
53933         * modules/iconv (Files): Move config.rpath to havelib, it is used
53934         there.
53935
53936         * modules/havelib (Files): Add config.rpath.
53937
53938 2005-10-05  Simon Josefsson  <jas@extundo.com>
53939
53940         * m4/memxor.m4: New file.
53941
53942 2005-10-05  Simon Josefsson  <jas@extundo.com>
53943
53944         * lib/memxor.c (memxor): Fix compiler error.
53945
53946         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
53947         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
53948
53949         * lib/memxor.h, lib/memxor.c: New files.
53950
53951         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
53952         we assume all systems have it, suggested by Jim Meyering
53953         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
53954         any systems lack sys/socket.h; mingw32 is known to lack it, but we
53955         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
53956         same reasons.
53957
53958 2005-10-05  Simon Josefsson  <jas@extundo.com>
53959
53960         * config/srclist.txt: Add glibc bug 1423 for md5.h.
53961
53962 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53963
53964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
53965         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
53966         needed, since the source code now assumes these .h files.
53967
53968 2005-10-05  Derek Price  <derek@ximbiot.com>
53969
53970         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
53971
53972 2005-10-05  Bruno Haible  <bruno@clisp.org>
53973
53974         * modules/stdint (License): Change to LGPL.
53975
53976 2005-10-04  Simon Josefsson  <jas@extundo.com>
53977
53978         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
53979         D. Baushke" <mdb@gnu.org>.
53980
53981 2005-10-04  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/verify.h (verify_true): Provide alternative definition for C++.
53984
53985 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
53986
53987         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
53988         (SSIZE_MAX): New macro, if not already defined.
53989         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
53990         than 2 GiB.
53991
53992 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53993
53994         Sync from coreutils.
53995         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
53996         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
53997         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
53998         ULLONG_MAX doesn't work with 2.7.2.1.
53999
54000 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54001
54002         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54003         From Ben Pfaff.
54004
54005         * modules/exclude (Depends-on): Depend on verify.
54006         * modules/strtoimax (Depends-on): Likewise.
54007         * modules/utimecmp (Depends-on): Likewise.
54008
54009 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54010
54011         * lib/exclude.c: Include verify.h.
54012         (verify): Remove.  All callers changed to use verify.h's version.
54013         * lib/strtoimax.c: Likewise.
54014         * lib/utimecmp.c: Likewis.e
54015
54016         Sync from coreutils.
54017         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54018         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54019         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54020         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54021         bother returning ENOSYS if settimeofday or stime fails; just let
54022         them return whatever errno they want to return.
54023         * lib/utimens.c: Include unistd.h, for dup2.
54024         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54025         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54026
54027 2005-10-02  Jim Meyering  <jim@meyering.net>
54028
54029         Sync from coreutils.
54030         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54031         from glibc-2.2.5 that fails for read-only files.
54032
54033 2005-10-02  Jim Meyering  <jim@meyering.net>
54034
54035         Sync from coreutils.
54036         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54037         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54038         `#if HAVE_CONFIG_H'.
54039         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54040         Remove AT_FDCWD test.
54041         Do not consume the fd unless successful.
54042         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54043         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54044         block, so that we don't even try to compile it if settimeofday is
54045         available.  This works around a compilation failure on OSF1 V5.1,
54046         due to stime requiring a `long int*' while tv_sec is `int'.
54047
54048 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54049
54050         Sync from coreutils.
54051         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54052         against `yes', rather than just testing for nonempty.
54053
54054 2005-10-01  Simon Josefsson  <jas@extundo.com>
54055
54056         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54057         and Darwin.
54058
54059         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54060         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54061         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54062         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54063         Check if struct addrinfo is declared.
54064
54065 2005-10-01  Simon Josefsson  <jas@extundo.com>
54066
54067         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54068         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54069         AI_* and EAI_* definitions.  Protect function declarations.
54070
54071 2005-10-01  Jim Meyering  <jim@meyering.net>
54072
54073         Sync from coreutils.
54074
54075         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54076         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54077         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54078         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54079         in the inet and nsl libraries.  Required on Solaris 5.7.
54080
54081 2005-10-01  Jim Meyering  <jim@meyering.net>
54082
54083         Sync from coreutils.
54084         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54085         in the inet and nsl libraries.  Required on Solaris 5.7.
54086
54087 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54088
54089         * lib/getdelim.c (getdelim): Remove unused variables.
54090
54091 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54092
54093         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54094         so that the code works even with ancient cpp.  Portability problem
54095         with GCC 2.7.2.1 reported by Thomas M.Ott.
54096
54097 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54098
54099         * modules/regex (Depends-on): Add strcase.
54100
54101         * modules/gethostname (Licence): Change from GPL to LGPL, since
54102         gethostname.c is a trivial implementation of a standard library
54103         function.
54104         * modules/poll (License): Change from GPL to LGPL, since it's
54105         derived from LGPL code.
54106
54107 2005-09-27  Jim Meyering  <jim@meyering.net>
54108
54109         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54110         HAVE_CONFIG_H.
54111
54112         * lib/intprops.h (signed_type_or_expr__): Define.
54113         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54114         for unsigned types.
54115
54116 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54117
54118         * lib/verify.h (verify_expr): Remove, replacing with:
54119         (verify_true): New macro that returns true instead of void.
54120         (verify_type__): Remove.
54121         (verify): Use verify_true rather than verify_type__.
54122
54123 2005-09-26  Bruno Haible  <bruno@clisp.org>
54124
54125         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54126         is necessary.
54127         (lib_SOURCES): Remove mbchar.c.
54128         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54129         (Files): Add m4/mbrtowc.m4.
54130         * modules/mbiter: Likewise.
54131         * modules/mbuiter: Likewise.
54132
54133 2005-09-26  Bruno Haible  <bruno@clisp.org>
54134
54135         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54136         compile mbchar.c if they are not both present.
54137         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54138         * m4/mbiter.m4 (gl_MBITER): Likewise.
54139         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54140         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54141         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54142
54143 2005-09-25  Jim Meyering  <jim@meyering.net>
54144
54145         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54146         also uses socklen_t.
54147
54148 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54149
54150         * lib/utimens.c (ENOSYS): Define if not already defined.
54151         (futimens): Support having a null PATH if the file descriptor
54152         is nonnegative.
54153
54154         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54155         Remove.
54156         (__attribute): Define to empty unless GCC 3.1 or later.
54157         This works around a core dump on OpenBSD 3.4, which has GCC
54158         2.95.3, which dumps core when given __attribute__(()).  It also
54159         simplifies other tests, since we really don't want to bother with
54160         worrying about which ancient version of GCC supported what.
54161         Original problem reported by Yoann Vandoorselaere, with part of
54162         the fix suggested by Derek Price.
54163
54164 2005-09-24  Jim Meyering  <jim@meyering.net>
54165
54166         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54167         so we can once again use a positive bitfield width of 1 -- now we
54168         don't have to explain why we were using a bitfield width of 2.
54169
54170 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54171
54172         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54173         and similarly for the other external symbols.  Problem reported
54174         by James Gallager.
54175
54176         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54177         bug reported by Jim Meyering.
54178
54179         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54180         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54181         not needed, since socklen is a prerequisite module.
54182
54183 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54184
54185         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54186         Problem reported by Eric Blake.
54187         (getaddrinfo): Initialize se so that it's not garbage.
54188         Redo internal storage allocation so that it doesn't make unportable
54189         assumptions about alignment.
54190         Fix a memory leak.
54191
54192         * lib/utimens.c (futimens): Use futimesat if available.
54193         Prefer it to futimes since it doesn't have the futimes bug.
54194
54195         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54196         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54197         Instead, declare a function that returns a pointer to an array,
54198         and use verify_type__ to declare the size of the array.
54199         Problem and germ of a solution reported by Bruno Haible.
54200         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54201         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54202
54203 2005-09-23  Jim Meyering  <jim@meyering.net>
54204
54205         Sync from coreutils.
54206         Correct build failure (socklen_t not defined) on at least
54207         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54208         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54209
54210 2005-09-23  Jim Meyering  <jim@meyering.net>
54211
54212         * modules/getaddrinfo (Depends-on): Add socklen.
54213
54214 2005-09-23  Bruno Haible  <bruno@clisp.org>
54215
54216         * tests/test-verify.c: New file.
54217
54218 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54219
54220         Sync from coreutils.
54221
54222         * modules/argmatch (Depends-on): Add verify.
54223         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54224         unistd-safer.
54225         * modules/save-cwd (Depends-on): Likewise.
54226
54227         * modules/openat (Files): Add lib/openat-die.c.
54228         (Depends-on): Remove error, exitfail.
54229         Add dirname.
54230
54231         * modules/verify: New file.
54232         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54233         with "verify" module.
54234
54235 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54236
54237         Sync from coreutils.
54238
54239         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54240         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54241         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54242         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54243         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54244         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54245         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54246         Don't bother checking for string.h, stdlib.h, unistd.h.
54247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54248         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54249         module's job.
54250         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54251         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54252
54253         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54254         (gl_GETDATE): Use it.
54255
54256         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54257
54258 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54259
54260         Sync from coreutils.
54261
54262         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54263         stat-time.h.
54264         * lib/argmatch.h: Include verify.h
54265         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54266         (ARGMATCH_ASSERT): Remove; unused.
54267         * lib/canonicalize.c: Assume STDC_HEADERS.
54268         * lib/exclude.c: Include "strcase.h".
54269         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54270         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54271         and stdio-safer.h.
54272         (getusershell): Call fopen, not fopen_safer.
54273         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54274         Do not include unistd-safer.h.
54275         (save_cwd): Don't call fd_safer; no longer needed
54276         now that we include fcntl--.h.
54277
54278         * lib/getdate.y (relative_time): New type.
54279         (RELATIVE_TIME_0): New constant.
54280         (parser_control): Use relative_time instead of doing it ourselves.
54281         (%union): Add new relative_time rel member.
54282         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54283         Now typeless.
54284         (relunit, relunit_snumber): Now of type rel.
54285         (zone, rel, relunit, get_date): Adjust to above changes.
54286
54287         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54288         Do not include unistd-safer.h.
54289         (getloadavg): Don't call fd_safer; no longer needed
54290         now that we include fcntl--.h.
54291
54292         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54293         (make_dir_parents): Treat ENOSYS like EEXIST.
54294
54295         Improve quality of diagnostics on restore_cwd failure.
54296         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54297         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54298         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54299         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54300         each time through the loop.  Do not diagnose restore_cwd failure;
54301         that is the caller's job (and perhaps the caller does not care).
54302
54303         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54304         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54305         If the file already exists but is not a directory, don't bother
54306         to try to make its parents.
54307         Close potential file descriptor leak if we can't chdir("/") (!).
54308         Don't always return true if chdir($PWD) fails; return true only
54309         if the requested action was done successfully (except for the
54310         chdir($PWD)).
54311         Don't log final directory unless we actually made it.
54312         Refactor to avoid duplicate code to fix up permissions.
54313         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54314
54315         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54316         to make it a bit faster and (I hope) clearer.
54317         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54318         Fix bug in formats like %2N.
54319
54320         * lib/verify.h: New file.
54321
54322 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54323
54324         Sync from coreutils.
54325         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54326
54327 2005-09-22  Jim Meyering  <jim@meyering.net>
54328
54329         Sync from coreutils.
54330
54331         * m4/lstat.m4 (gl_FUNC_LSTAT):
54332         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54333         Remove obsolete comment.
54334         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54335         * m4/xstrtod.m4: Likewise.
54336
54337         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54338
54339 2005-09-22  Jim Meyering  <jim@meyering.net>
54340
54341         Sync from coreutils.
54342
54343         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54344
54345         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54346         the .tm_year member, since otherwise gcc-4.0 would now warn about
54347         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54348
54349         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54350         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54351
54352         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54353         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54354         when run in a time zone for which daylight savings time is in effect
54355         for the starting date.
54356
54357         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54358         stop us from restricting permissions of just-created absolute-named
54359         directories.
54360         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54361         to restore initial working directory.
54362         * lib/mkdir-p.c (make_dir_parents): New parameter:
54363         different_working_dir, to tell caller if/when we change the working
54364         directory and are unable to return to the initial one.
54365         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54366         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54367         `return false'.  This fixes a bug introduced on 2004-07-30.
54368
54369         * lib/openat.c (fdopendir): Be sure to close the supplied
54370         file descriptor before returning.  This makes our replacement
54371         implementation a little closer to Solaris's, where fdopendir
54372         ties the file descriptor to the returned DIR* pointer.
54373         * lib/openat.c (unlinkat): New function.
54374         * lib/openat.h (unlinkat): Add prototype.
54375         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54376         (openat_restore_fail): Rename from openat_restore_die.
54377         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54378
54379         Provide an alternative to exiting immediately upon save_cwd or
54380         restore_cwd failure.  Now, an application can arrange e.g.,
54381         to perform a longjump in that case.
54382         * lib/openat.c: Include dirname.h.
54383         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54384         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54385         and openat_restore_die rather than calling error directly.
54386         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54387
54388         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54389         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54390         define.
54391
54392         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54393         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54394                             int utc, int nanoseconds);
54395         Background:
54396         date should not have to allocate a megabyte of virtual memory to
54397         handle a format argument like +%1048575T.  When implemented with
54398         strftime, it must allocate such a buffer, use strftime to fill it
54399         in, print it, then free it.
54400         With fprintftime, it simply prints everything and exits.
54401         With no need for memory allocation, that's one fewer way to fail.
54402         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54403         optional field width, not before, so we accept %9:z, not %:9z.
54404         (my_strftime): Be sure to use L_('x') for literals.
54405
54406         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54407         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54408         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54409         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54410         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54411         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54412         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54413         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54414         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54415         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54416         * lib/xgethostname.c, lib/xreadlink.c:
54417         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54418
54419         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54420         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54421         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54422         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54423         and don't include <sys/file.h>).
54424
54425 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54426
54427         Sync from coreutils.
54428
54429         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54430         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54431         [!LDAV_DONE]: Avoid unused variable warning.
54432
54433 2005-09-21  Bruno Haible  <bruno@clisp.org>
54434
54435         * lib/unicodeio.h (unicode_to_mb): New declaration.
54436
54437 2005-09-20  Derek Price  <derek@ximbiot.com>
54438
54439         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54440         getaddrinfo.h.
54441
54442 2005-09-20  Bruno Haible  <bruno@clisp.org>
54443
54444         * gnulib-tool: Remove trailing slashes from the values specified for
54445         --source-base, --m4-base, --tests-base, --aux-dir.
54446         Suggested by Simon Josefsson <jas@extundo.com>.
54447
54448 2005-09-20  Bruno Haible  <bruno@clisp.org>
54449
54450         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54451         func_modules_to_filelist, func_import, func_create_testdir): Make all
54452         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54453         change when gnulib-tool is invoked in a different locale.
54454
54455 2005-09-19  Simon Josefsson  <jas@extundo.com>
54456
54457         * m4/socklen.m4: Fix typo.
54458
54459 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54460
54461         Use a consistent style for including <config.h>.
54462         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54463         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54464         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54465         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54466         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54467         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54468         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54469         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54470         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54471         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54472         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54473         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54474         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54475         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54476         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54477         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54478         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54479         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54480         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54481         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54482         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54483         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54484         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54485         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54486         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54487         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54488         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54489         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54490         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54491         lib/xstrtoumax.c, lib/yesno.c:
54492         Standardize inclusion of config.h.
54493         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54494         lib/inttostr.h:  Removed inclusion of config.h from header files.
54495         * lib/inttostr.c:  Adjusted in-tree users.
54496         * lib/timespec.h: Remove superfluous warning to include config.h.
54497         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54498         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54499         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54500         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54501         config.h with HAVE_CONFIG_H.
54502
54503 2005-09-19  Jim Meyering  <jim@meyering.net>
54504
54505         * modules/pathmax (License): Change to LGPL.
54506
54507 2005-09-19  Derek Price  <derek@ximbiot.com>
54508
54509         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54510
54511 2005-09-19  Bruno Haible  <bruno@clisp.org>
54512
54513         * gnulib-tool (import): Provide default for --tests-base.
54514
54515 2005-09-19  Bruno Haible  <bruno@clisp.org>
54516
54517         * doc/quote.texi: New file, extracted from gnulib.texi.
54518         * doc/ctime.texi: New file, extracted from gnulib.texi.
54519         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54520         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54521         * doc/gnulib.texi: Include them.
54522
54523 2005-09-18  Bruno Haible  <bruno@clisp.org>
54524
54525         Portability fix.
54526         * gnulib-tool (func_readlink): New function.
54527         (func_ln_if_changed): Use it.
54528
54529 2005-09-18  Bruno Haible  <bruno@clisp.org>
54530
54531         * gnulib-tool: Support --with-tests also with --import.
54532         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54533         (func_import): Use variables $testsbase and $inctests. Emit a
54534         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54535         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54536         SUBDIRS += $testsdir.
54537         (func_create_testdir): Update.
54538
54539 2005-09-18  Bruno Haible  <bruno@clisp.org>
54540
54541         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54542         instead of $dry_run.
54543         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54544         (func_ln_if_changed): Don't handle dry-run here.
54545         (func_import): In dry-run mode, detect more precisely which actions
54546         would be performed, and don't use "...ing" verbs.
54547
54548 2005-09-18  Bruno Haible  <bruno@clisp.org>
54549
54550         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54551         (func_import): Use join on two temporary files instead of three nested
54552         loops, in order to determine which files are new or old.
54553
54554 2005-09-18  Bruno Haible  <bruno@clisp.org>
54555
54556         * gnulib-tool (func_import): Comment out code that spits out the
54557         new files with --dry-run.
54558
54559 2005-09-18  Bruno Haible  <bruno@clisp.org>
54560
54561         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54562
54563 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * lib/stat-time.h: New file.
54566         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54567         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54568         in a different way.
54569         (timespec_cmp): New function.
54570         * lib/utimecmp.c: Include stat-time.h.
54571         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54572         members exist, not on the obsolescent ST_MTIM_NSEC.
54573         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54574
54575 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54576
54577         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54578
54579 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54580
54581         * MODULES.html.sh (File system functions): Add stat-time.
54582         * modules/stat-time: New file.
54583         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54584         is now done in a different way, by the stat-time module.
54585         * modules/utimecmp (Depends-on): Add stat-time.
54586
54587 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54588
54589         * m4/st_mtim.m4: Remove.  Superseded by...
54590         * m4/stat-time.m4: New file.
54591         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54592         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54593
54594 2005-09-15  Derek Price  <derek@ximbiot.com>
54595
54596         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54597
54598 2005-09-15  Derek Price  <derek@ximbiot.com>
54599
54600         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54601         * lib/regex_internal.c: Ditto, using this...
54602         (__GNUC_PREREQ): ...new macro.
54603         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54604         using...
54605         (__GNUC_PREREQ): ...this new macro.
54606
54607         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54608
54609 2005-09-15  Derek Price  <derek@ximbiot.com>
54610             Paul Eggert  <eggert@cs.ucla.edu>
54611
54612         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54613         changes, consolidating in...
54614         * lib/regex_internal.h: ...this file.
54615
54616 2005-09-13  Jim Meyering  <jim@meyering.net>
54617
54618         * lib/canon-host.c: Filter through gnu indent and reword comments
54619         slightly.
54620         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54621
54622 2005-09-13  Derek Price  <derek@ximbiot.com>
54623
54624         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54625         failure.
54626         Reported by Jim Meyering  <jim@meyering.net>.
54627
54628 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54629
54630         * lib/base64.c: Typo.
54631         (base64_encode): Put b64str in initialized data section.
54632
54633 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54634
54635         Merge glibc and coreutils changes into gnulib, plus a few
54636         extra fixes.
54637         * lib/md5.c: Use #error rather than a string.
54638         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
54639         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
54640         (__attribute__): Define to empty for non recent-GCC.
54641         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
54642         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
54643         Renamed from their non-__ counterparts, with new macros replacing
54644         them if not _LIBC.  Add __THROW attribute.
54645         (rol): Remove.
54646         (struct md5_ctx): Align buffer if using GCC.
54647         * lib/sha1.h (struct sha1_ctx): Likewise.
54648         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
54649         The old name was backwards.
54650         (NOTSWAP): Remove; not used.
54651         (rol): New macro, moved here from md5.h.
54652         (sha1_process_block): Remove a FIXME that doesn't make sense.
54653
54654 2005-09-12  Derek Price  <derek@ximbiot.com>
54655
54656         Return usable errors from canon-host.
54657         * lib/canon-host.h: New file.
54658         * lib/canon-host.c (canon_host): Wrap...
54659         (canon_host_r): ...this new function, which now relies exclusively on
54660         getaddrinfo.
54661         (ch_strerror): New function.
54662         (last_cherror): New global.
54663         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
54664         interface.
54665         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
54666         void *.
54667         (freeaddrinfo): Free ai->ai_canonname when set.
54668
54669 2005-09-12  Derek Price  <derek@ximbiot.com>
54670
54671         Make canon-host require getaddrinfo.
54672         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
54673         AC_LIBSOURCE canon-host.h.  Call...
54674         (gl_PREREQ_CANON_HOST): ...this new function, which requires
54675         gl_GETADDRINFO.
54676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
54677
54678 2005-09-12  Derek Price  <derek@ximbiot.com>
54679
54680         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
54681         LGPL.
54682         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
54683
54684 2005-09-12  Derek Price  <derek@ximbiot.com>
54685
54686         * lib/gai_strerror.c: Include config.h when available.  Include
54687         getaddrinfo.h before other headers to test interface.
54688         Reported by Larry Jones <lawrence.jones@ugs.com>.
54689
54690 2005-09-12  Derek Price  <derek@ximbiot.com>
54691             Paul Eggert  <eggert@cs.ucla.edu>
54692
54693         * modules/glob (Files): Add glob-libc.h.
54694
54695 2005-09-12  Derek Price  <derek@ximbiot.com>
54696             Paul Eggert  <eggert@cs.ucla.edu>
54697
54698         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
54699         glob_.h, glob-libc.h.
54700         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
54701
54702 2005-09-12  Derek Price  <derek@ximbiot.com>
54703             Paul Eggert  <eggert@cs.ucla.edu>
54704
54705         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
54706         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
54707         protecting things that should be done only in gnulib contexts.
54708         * lib/glob_.h: New file, containing only the glob things needed for
54709         gnulib.
54710         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
54711         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
54712         (glob, globfree, glob_pattern_p): Now defined simply in terms of
54713         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
54714         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
54715         and to respect the namespace rules better.
54716
54717 2005-09-08  Simon Josefsson  <jas@extundo.com>
54718
54719         * modules/socklen: New file.
54720
54721 2005-09-08  Simon Josefsson  <jas@extundo.com>
54722
54723         * m4/socklen.m4: New file.
54724
54725 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54726
54727         * modules/utimens (Files): Add m4/utimbuf.m4, since
54728         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
54729         Reported by Sergey Poznyakoff.
54730
54731 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54732
54733         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
54734         definitions, since that's the preferred style in glibc.
54735         Fix a minor spacing issue, and update copyright notice to match
54736         glibc's.
54737
54738 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54739
54740         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
54741
54742 2005-09-06  Simon Josefsson  <jas@extundo.com>
54743
54744         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
54745         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
54746
54747 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54748
54749         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
54750         warning.
54751
54752 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         * config/srclist.txt: Add glibc bug 1302.
54755
54756 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
54757
54758         Change bitset word type from unsigned int to unsigned long int,
54759         as this has better performance on typical 64-bit hosts.
54760         Port bitset code to hosts with unusual word sizes.
54761         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
54762         (build_collating_symbol):
54763         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
54764         argument is a bitset.  This is merely a style issue, but it makes
54765         it clearer that an entire array is expected.
54766         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
54767         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
54768         Port to the case where bitset_word is not the same as unsigned int.
54769         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54770         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
54771         Likewise.
54772         * lib/regexec.c (check_dst_limits_calc_pos_1,
54773         check_subexp_matching_top):
54774         (build_trtable, group_nodes_into_DFAstates):
54775         Likewise.
54776         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
54777         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
54778         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
54779         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
54780         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
54781         * lib/regcomp.c (optimize_subexps, lower_subexp):
54782         Work even if bitset_word has holes in its bitwise representation.
54783         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
54784         * lib/regexec.c (check_dst_limits_calc_pos_1,
54785         check_subexp_matching_top):
54786         Likewise.
54787         * lib/regex_internal.c (re_string_reconstruct):
54788         Don't assume UCHAR_MAX == 255.
54789         * lib/regex_internal.h (bitset_set_all): Likewise.
54790         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
54791         All uses changed.
54792         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
54793         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
54794         All uses changed.
54795         (BITSET_WORD_MAX): New macro.
54796         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
54797         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
54798         (bitset_empty, bitset_copy):
54799         Prefer sizeof (bitset) to multiplying it out ourselves.
54800         (bitset_not_merge): Remove; unused.
54801         (bitset_contain): Return bool, not unsigned int with one bit on.
54802         All callers changed.
54803         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
54804         alignment than re_node_set; do this by defining a new internal
54805         type struct dests_alloc and using it to allocate memory.
54806
54807 2005-09-05  Bruno Haible  <bruno@clisp.org>
54808
54809         * gnulib-tool (func_import): Fix comparison in handling of symbolic
54810         links.
54811
54812 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
54813
54814         * modules/size_max (Makefile.am): Add size_max.h
54815
54816 2005-09-04  Derek Price  <derek@ximbiot.com>
54817
54818         * gnulib-tool (func_import): Fix reversed $symbolic logic.
54819
54820 2005-09-03  Simon Josefsson  <jas@extundo.com>
54821
54822         * gnulib-tool: Fix typo.
54823
54824 2005-09-03  Simon Josefsson  <jas@extundo.com>
54825
54826         * config/srclist.txt: Add glibc bug 1293.
54827
54828 2005-09-03  Derek Price  <derek@ximbiot.com>
54829
54830         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
54831         From Larry Jones <lawrence.jones@ugs.com>.
54832
54833 2005-09-02  Simon Josefsson  <jas@extundo.com>
54834
54835         * modules/socklen: New file.
54836
54837 2005-09-02  Simon Josefsson  <jas@extundo.com>
54838
54839         * modules/havelib: New module.
54840
54841         * modules/gettext, modules/iconv, modules/lock, modules/readline:
54842         Use havelib.
54843
54844 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54845
54846         Check for arithmetic overflow when calculating sizes, to prevent
54847         some buffer-overflow issues.  These patches are conservative, in the
54848         sense that when I couldn't determine whether an overflow was possible,
54849         I inserted a run-time check.
54850         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
54851         macros.
54852         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
54853         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
54854         (re_xnrealloc, re_x2nrealloc): New inline functions.
54855         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
54856         parse_bracket_exp):
54857         (build_equiv_class, build_charclass): Check for arithmetic overflow
54858         in size expression calculations.
54859         * lib/regex_internal.c (re_string_realloc_buffers):
54860         (build_wcs_upper_buffer, re_node_set_add_intersect):
54861         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
54862         (re_dfa_add_node, register_state): Likewise.
54863         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
54864         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
54865         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
54866         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
54867
54868 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54869
54870         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54871         m4/ulonglong.m4.  Problem reported by Martin Lambers.
54872
54873 2005-09-02  Bruno Haible  <bruno@clisp.org>
54874
54875         Support for lib vs. lib64 distinction on biarch platforms.
54876         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
54877         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
54878         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
54879
54880 2005-09-02  Bruno Haible  <bruno@clisp.org>
54881
54882         * gnulib-tool (import): In the other first-use case, provide defaults
54883         as well.
54884
54885 2005-09-02  Bruno Haible  <bruno@clisp.org>
54886
54887         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
54888         patches not yet found in the latest gettext release.
54889
54890 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
54893         to avoid a collision with bits/local_lim.h in glibc.
54894         All uses changed.  Problem reported by Dmitry V. Levin in
54895         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
54896
54897         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
54898         bugs in int versus size_t comparisons.
54899         (re_string_context_at): Fix bug where the code assumed that
54900         Idx is signed.
54901
54902         Use bool where appropriate.
54903         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
54904         All callers changed.
54905         (calc_eclosure_iter): Likewise, for ROOT arg.
54906         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
54907         (build_charclass_op): Likewise, for NON_MATCH arg.
54908         * lib/regex_internal.c (re_string_allocate, re_string_construct):
54909         (re_string_construct_common): Likewise, for ICASE arg.
54910         * lib/regexec.c (re_search_2_stub, re_search_stub):
54911         Likewise, for RET_LEN arg.
54912         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
54913         (set_regs): Likewise, for FL_BACKTRACK arg.
54914         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
54915         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
54916         (calc_eclosure_iter, parse_bracket_exp):
54917         Use bool for internal variables that are booleans.
54918         * lib/regexec.c (re_search_internal, check_matching,
54919         proceed_next_node):
54920         (set_regs, build_sifted_states, sift_states_bkref):
54921         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
54922         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54923         (find_collation_sequence_value):
54924         Likewise.
54925         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
54926         (re_node_set_compare):
54927         Return bool, not int. All callers changed.
54928         * lib/regexec.c (check_halt_node_context, check_dst_limits):
54929         (build_trtable, check_node_accept): Likewise.
54930         * lib/regex_internal.h: Include stdbool.h.
54931
54932         Fix bugs uncovered when converting to bool.
54933         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
54934         failure instead of charging ahead blindly.
54935         * lib/regex_internal.c (register_state): Likewise.
54936         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
54937         for freeing internal storage.
54938         (group_nodes_into_DFA_states): Use unsigned int, not int, for
54939         bitset pieces used as boolean, to avoid undefined behavior
54940         on hosts that do int overflow checking.
54941
54942 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54943
54944         * config/srclist.txt: Add glibc bugs 1285-1287.
54945
54946 2005-09-01  Jim Meyering  <jim@meyering.net>
54947
54948         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
54949         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
54950         Require gl_STAT_MACROS, too.
54951
54952 2005-09-01  Bruno Haible  <bruno@clisp.org>
54953
54954         * gnulib-tool (import): In the first-use case, provide defaults.
54955
54956 2005-09-01  Bruno Haible  <bruno@clisp.org>
54957
54958         * gnulib-tool (func_import): Remove the .tmp files.
54959
54960 2005-09-01  Bruno Haible  <bruno@clisp.org>
54961
54962         * gnulib-tool (func_import): Fix handling of symbolic links.
54963
54964 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54965
54966         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
54967         old glibc regex code mishandles strings longer than 2**31 bytes.
54968         This patch fixes this when the regex code is used in gnulib
54969         (i.e., outside glibc).
54970
54971         This patch should not affect the use of the regex code inside
54972         glibc.  No doubt this problem also needs to be handled for glibc
54973         as well, but the result will be an incompatible change to the
54974         glibc ABI, and the old ABI will have to be supported too.  That
54975         can be the the subject for another patch.
54976
54977         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
54978         governing whether the rest of this patch is active.  By default,
54979         the macro is disabled and the patch has no effect.
54980         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
54981         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
54982         (struct re_pattern_buffer, re_search, re_search_2, re_match):
54983         (re_match_2, re_set_registers): Use the new types.
54984         * lib/regex_internal.h (Idx, re_hashval_t): New types.
54985         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
54986         New macros.
54987         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
54988         (re_string_context_at, bin_tree_t, re_dfastate_t):
54989         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
54990         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
54991         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
54992         (re_string_char_size_at, re_string_wchar_at):
54993         (re_string_elem_size_at):
54994         Use the new types and macros to port to 64-bit hosts.
54995         Use unsigned types for internal values, so that the code
54996         mostly works even for arrays larger than SSIZE_MAX.
54997         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
54998         (search_duplicated_node, calc_eclosure_iter, fetch_number):
54999         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55000         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55001         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55002         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55003         (calc_inveclosure, parse_dup_op, build_range_exp):
55004         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55005         (fetch_number, create_token_tree, mark_opt_subexp):
55006         Likewise.
55007         * lib/regex_internal.c (re_string_construct_common,
55008         create_ci_newstate):
55009         (create_cd_newstate, re_string_allocate, re_string_construct):
55010         (re_string_realloc_buffers, build_wcs_upper_buffer):
55011         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55012         (re_string_reconstruct, re_string_peek_byte_case):
55013         (re_string_fetch_byte_case, re_string_context_at):
55014         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55015         (re_node_set_init_copy, re_node_set_add_intersect):
55016         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55017         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55018         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55019         (re_acquire_state, re_acquire_state_context, register_state):
55020         Likewise.
55021         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55022         search_cur_bkref_entry):
55023         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55024         (re_search_internal, re_search_2_stub, re_search_stub)
55025         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55026         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55027         (update_cur_sifted_state, check_dst_limits):
55028         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55029         (check_subexp_limits, sift_states_bkref, merge_state_array):
55030         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55031         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55032         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55033         (expand_bkref_cache, check_node_accept_bytes):
55034         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55035         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55036         (acquire_init_state_context, check_halt_node_context):
55037         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55038         (sift_states_backward, clean_state_log_if_needed):
55039         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55040         (find_recover_state, transit_state_sb, transit_state_mb):
55041         (transit_state_bkref, build_trtable, match_ctx_clean):
55042         Likewise.
55043         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55044         to work around an assumption that REG_MISSING is negative.
55045
55046         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55047         (seek_collating_symbol_entry) [defined _LIBC]:
55048         (lookup_collation_sequence_value) [defined _LIBC]:
55049         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55050         Use prototypes rather than old-style function definitions.
55051         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55052         (transit_state_sb) [0]:
55053         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55054
55055         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55056         rm_eo.
55057
55058         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55059         (optimize_subexps, lower_subexp):
55060         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55061         since the signed shift might overflow.  Use 1u<<31 instead.
55062         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55063         Likewise.
55064         * lib/regexec.c (check_dst_limits_calc_pos_1,
55065         check_subexp_matching_top): Likewise.
55066
55067         * lib/regcomp.c (optimize_subexps, lower_subexp):
55068         Use CHAR_BIT rather than 8, for clarity.
55069         * lib/regexec.c (check_dst_limits_calc_pos_1):
55070         (check_subexp_matching_top): Likewise.
55071         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55072         have to worry about portability issues when shifting it left.
55073         Remove no-longer-needed test for table_size > 0.
55074         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55075         in a word, as the resulting behavior is undefined.
55076         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55077         in one case, a <= should have been an <, and in another case the
55078         whole test was missing.
55079         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55080         the standard name CHAR_BIT.
55081         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55082         this is not true on one's complement and signed-magnitude hosts.
55083
55084         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55085         next_last_offset.
55086         (struct re_dfa_t): Remove unused member states_alloc.
55087         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55088
55089 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55090
55091         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55092         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55093         and large-file glibc and in 32-bit large-file Solaris.
55094
55095 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55098         lengths fit in regoff_t; this isn't true if regoff_t is the same
55099         width as size_t.
55100         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55101         (= START + RANGE) instead of RANGE.  This avoids overflow
55102         problems when regoff_t is the same width as size_t.
55103         All callers changed.
55104         (re_search_2_stub): Check for overflow when adding the
55105         sizes of the two strings.
55106         (re_search_stub): Check for overflow when adding START
55107         to RANGE; if it occurs, substitute the extreme value.
55108
55109 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55110
55111         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55112
55113 2005-08-31  Jim Meyering  <jim@meyering.net>
55114
55115         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55116         a pointer-to-const.
55117         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55118         (register_state): Likewise.
55119         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55120         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55121         (group_nodes_into_DFAstates): Likewise.
55122
55123 2005-08-31  Jim Meyering  <jim@meyering.net>
55124
55125         * check-module: Add a FIXME comment.
55126
55127 2005-08-31  Eric Blake  <ebb9@byu.net>
55128
55129         * modules/unistd-safer (Files): Add unistd--.h.
55130         * modules/stdio-safer (Files): Add stdio--.h.
55131
55132 2005-08-31  Derek Price  <derek@ximbiot.com>
55133
55134         * lib/getdelim.c (getdelim): Return EOF on EOF.
55135         Reported by Larry Jones <lawrence.jones@ugs.com>.
55136
55137 2005-08-31  Bruno Haible  <bruno@clisp.org>
55138
55139         Avoid unnecessary diffs in the generated lib/Makefile.am.
55140         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55141         the generated files.
55142         (func_import): Don't set cmd.
55143
55144 2005-08-31  Bruno Haible  <bruno@clisp.org>
55145
55146         * lib/strstr.c: Include <stddef.h>, for NULL.
55147         * lib/strcasestr.c: Likewise.
55148         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55149
55150 2005-08-31  Bruno Haible  <bruno@clisp.org>
55151
55152         * gnulib-tool: New option --macro-prefix.
55153         (func_import): Use macro_prefix.
55154         (import): Handle option --macro-prefix.
55155
55156 2005-08-31  Bruno Haible  <bruno@clisp.org>
55157
55158         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55159         Also use new variables cached_lgpl, cached_libtool.
55160
55161 2005-08-31  Bruno Haible  <bruno@clisp.org>
55162
55163         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55164         always instantiating them.
55165
55166 2005-08-31  Bruno Haible  <bruno@clisp.org>
55167
55168         * gnulib-tool (func_import): Read the previous cached settings
55169         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55170         earlier added by gnulib but are now dropped. Warn when a gnulib file
55171         overwrites a non-gnulib file.
55172
55173 2005-08-31  Bruno Haible  <bruno@clisp.org>
55174
55175         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55176         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55177         projects that don't keep autogenerated files in CVS. Put into
55178         actioncmd only the specified modules, not the transitive closure.
55179
55180 2005-08-31  Bruno Haible  <bruno@clisp.org>
55181
55182         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55183         Create directories that shall be filled.
55184         (import): Don't look for gl_* macros in configure.ac. Recurse across
55185         all directories containing a gnulib-cache.m4 files, if meaningful.
55186
55187 2005-08-31  Bruno Haible  <bruno@clisp.org>
55188
55189         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55190         (import): Set seen_libtool when we see gl_LIBTOOL.
55191
55192 2005-08-31  Bruno Haible  <bruno@clisp.org>
55193
55194         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55195         declaration macro definitions from generated gnulib.m4.
55196
55197 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55198
55199         * lib/iconvme.h: Add prototype for iconv_alloc.
55200
55201 2005-08-29  Simon Josefsson  <jas@extundo.com>
55202
55203         * lib/iconvme.c: Fix errno.
55204
55205 2005-08-29  Bruno Haible  <bruno@clisp.org>
55206
55207         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55208         that it works when the directory contains spaces.
55209
55210 2005-08-29  Bruno Haible  <bruno@clisp.org>
55211
55212         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55213
55214 2005-08-29  Bruno Haible  <bruno@clisp.org>
55215
55216         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55217         Emit more advice.
55218
55219 2005-08-29  Bruno Haible  <bruno@clisp.org>
55220         and Stepan Kasal  <kasal@ucw.cz>
55221
55222         * check-module: If more parameters are given, check each of them
55223         separately; add more exceptions, as noted by Jim Meyering.
55224         (check_module): New procedure.
55225         (%exempt_header): Now contains all exceptions.
55226
55227 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55228
55229         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55230
55231 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55232
55233         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55234
55235 2005-08-28  Bruno Haible  <bruno@clisp.org>
55236
55237         * m4/gnulib-tool.m4: New file.
55238
55239 2005-08-27  Jim Meyering  <jim@meyering.net>
55240
55241         * modules/unistd-safer (Files): Add pipe-safer.c.
55242         * modules/fcntl-safer (Files): Add creat-safer.c.
55243
55244 2005-08-27  Jim Meyering  <jim@meyering.net>
55245
55246         * m4/stdlib-safer.m4: New file.  From coreutils.
55247         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55248         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55249         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55250         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55251         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55252
55253 2005-08-27  Jim Meyering  <jim@meyering.net>
55254
55255         * lib/fopen-safer.c: Merge minor changes from coreutils.
55256         * lib/dup-safer.c: Likewise.
55257         * lib/fd-safer.c: Likewise.
55258
55259         Merge from coreutils.
55260         * lib/stdio--.h: New file.
55261         * lib/stdlib--.h: New file.
55262         * lib/mkstemp-safer.c: New file.
55263
55264         GNU tar needs these.
55265         * lib/pipe-safer.c: New file.
55266         * lib/creat-safer.c: New file.
55267         * lib/fcntl--.h (creat): Define to creat_safer.
55268         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55269         * lib/unistd--.h (pipe): Define to pipe_safer.
55270         * lib/unistd-safer.h: Declare pipe_safer.
55271
55272 2005-08-26  Simon Josefsson  <jas@extundo.com>
55273
55274         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55275         Haible <bruno@clisp.org>.
55276
55277 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55278
55279         * lib/regex_internal.h: Remove all references to
55280         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55281         or better.
55282         (bitset_not, bitset_merge, bitset_not_merge):
55283         (bitset_mask, re_string_allocate, re_string_construct):
55284         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55285         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55286         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55287         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55288         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55289         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55290         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55291         (re_acquire_state_context):
55292         Remove unnecessary forward decls.
55293         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55294         Put __attribute at function definition,
55295         now that the function decl has been removed.
55296         * lib/regex_internal.c (re_string_peek_byte_case):
55297         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55298         Likewise.
55299
55300 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55301
55302         * m4/regex.m4: Add AC_PREREQ(2.50).
55303         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55304
55305 2005-08-25  Simon Josefsson  <jas@extundo.com>
55306
55307         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55308         __fsetlocking.
55309
55310 2005-08-25  Simon Josefsson  <jas@extundo.com>
55311
55312         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55313         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55314         GLIBC specific code.
55315
55316 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55317
55318         Make regex safe for g++.  This fixes one real bug (an "err"
55319         that should have been "*err").  g++ problem reported by
55320         Sam Steingold.
55321         * lib/regex_internal.h (re_calloc): New macro, consistent with
55322         re_malloc etc.  All callers of calloc changed to use re_calloc.
55323         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55324         not int.  All callers changed.
55325         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55326         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55327         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55328         (find_recover_state): Change "err" to "*err"; this fixes what
55329         appears to be a real bug.
55330         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55331         versus int.
55332
55333 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55334
55335         * modules/regex (Depends-on): Add malloc, since the code
55336         assumes that !malloc(0) means failure.
55337
55338 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55341
55342         alloca modernization/simplification for regex.
55343         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55344         needs to be at the start of the file, and can be moved into
55345         regex_internal.h and simplified.
55346         * lib/regex_internal.h: Include <alloca.h>.
55347         (__libc_use_alloca) [!defined _LIBC]: New macro.
55348         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55349         now works outside glibc.
55350
55351 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         * config/srclist.txt: Add glibc bugs 1241, 1245.
55354
55355 2005-08-25  Jim Meyering  <jim@meyering.net>
55356
55357         * lib/open-safer.c: Include <config.h>.
55358         Otherwise, we'd lose LARGEFILE support in any file using
55359         e.g. "fcntl--.h"
55360
55361 2005-08-25  Bruno Haible  <bruno@clisp.org>
55362
55363         * m4/minmax.m4: Require autoconf 2.52.
55364         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55365         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55366         alternatives of translit over the alphabet.
55367         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55368
55369 2005-08-24  Simon Josefsson  <jas@extundo.com>
55370
55371         * tests/test-getpass.c: New file.
55372
55373 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55376         for GNU regex features.
55377
55378 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55379
55380         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55381         * lib/regex.h (regerror): Likewise.
55382
55383         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55384         requires this.  (The code never needed it.)
55385
55386         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55387         All uses of recently-renamed identifiers changed to use the new,
55388         POSIX-compliant names.  The code will build and run just fine
55389         without these changes, but it's better to eat our own dog food
55390         and use the standard-conforming names.
55391
55392         * lib/regex.h: Fix a multitude of POSIX name space violations.
55393         These changes have an effect only for programs that define
55394         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55395         do not change anything for programs compiled in the normal way.
55396         Also, there is no effect on the ABI.
55397
55398         (_REGEX_SOURCE): New macro.
55399         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55400         defined and _GNU_SOURCE is not; this fixes a name space violation.
55401
55402         Rename the following macros to obey POSIX requirements.
55403         The old names are still visible as macros if _REGEX_SOURCE is defined.
55404         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55405         RE_BACKSLASH_ESCAPE_IN_LISTS.
55406         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55407         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55408         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55409         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55410         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55411         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55412         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55413         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55414         (REG_INTERVALS): renamed from RE_INTERVALS.
55415         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55416         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55417         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55418         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55419         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55420         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55421         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55422         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55423         RE_UNMATCHED_RIGHT_PAREN_ORD.
55424         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55425         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55426         (REG_DEBUG): renamed from RE_DEBUG.
55427         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55428         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55429         unusual, since we can't clash with the POSIX REG_ICASE.
55430         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55431         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55432         (REG_NO_SUB): renamed from RE_NO_SUB.
55433         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55434         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55435         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55436         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55437         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55438         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55439         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55440         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55441         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55442         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55443         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55444         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55445         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55446         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55447         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55448         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55449         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55450         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55451         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55452         (REG_FIXED): Renamed from REGS_FIXED.
55453         (REG_NREGS): Renamed from RE_NREGS.
55454
55455         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55456         of other REG_* macros, since POSIX says the user is allowed to
55457         #undef these macros selectively.
55458
55459         (reg_errcode_t): Update comment stating what other tables need
55460         to be consistent.
55461
55462         Rename the following enum values to obey POSIX requirements.
55463         The old names are still visible as macros.
55464         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55465         is not defined, since GNU is supposed to be a superset of POSIX as
55466         much as possible, and since we want reg_errcode_t to be a signed
55467         type for implementation consistency.
55468         (_REG_NOERROR): Renamed from REG_NOERROR.
55469         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55470         (_REG_BADPAT): Renamed from REG_BADPAT.
55471         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55472         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55473         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55474         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55475         (_REG_EBRACK): Renamed from REG_EBRACK.
55476         (_REG_EPAREN): Renamed from REG_EPAREN.
55477         (_REG_EBRACE): Renamed from REG_EBRACE.
55478         (_REG_BADBR): Renamed from REG_BADBR.
55479         (_REG_ERANGE): Renamed from REG_ERANGE.
55480         (_REG_ESPACE): Renamed from REG_ESPACE.
55481         (_REG_BADRPT): Renamed from REG_BADRPT.
55482         (_REG_EEND): Renamed from REG_EEND.
55483         (_REG_ESIZE): Renamed from REG_ESIZE.
55484         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55485         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55486         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55487         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55488         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55489
55490         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55491         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55492         changed.  But support the old name if the new one is not defined
55493         and if _REGEX_SOURCE.
55494
55495         Change the following member names in struct re_pattern_buffer.
55496         The old names are still supported if !_REGEX_SOURCE.
55497         The new names are always supported, regardless of _REGEX_SOURCE.
55498         (re_buffer): Renamed from buffer.
55499         (re_allocated): Renamed from allocated.
55500         (re_used): Renamed from used.
55501         (re_syntax): Renamed from syntax.
55502         (re_fastmap): Renamed from fastmap.
55503         (re_translate): Renamed from translate.
55504         (re_can_be_null): Renamed from can_be_null.
55505         (re_regs_allocated): Renamed from regs_allocated.
55506         (re_fastmap_accurate): Renamed from fastmap_accurate.
55507         (re_no_sub): Renamed from no_sub.
55508         (re_not_bol): Renamed from not_bol.
55509         (re_not_eol): Renamed from not_eol.
55510         (re_newline_anchor): Renamed from newline_anchor.
55511
55512         Change the following member names in struct re_registers.
55513         The old names are still supported if !_REGEX_SOURCE.
55514         The new names are always supported, regardless of _REGEX_SOURCE.
55515         (rm_num_regs): Renamed from num_regs.
55516         (rm_start): Renamed from start.
55517         (rm_end): Renamed from end.
55518
55519         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55520         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55521         Prepend __ to parameter names.
55522
55523         Undo yesterday's changes.
55524
55525 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55526
55527         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55528         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55529         lib/regex.c.
55530
55531 2005-08-24  Jim Meyering  <jim@meyering.net>
55532
55533         Sync from coreutils.
55534         * m4/fcntl-safer.m4: New file.
55535
55536         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55537         and object files for this module.
55538
55539 2005-08-24  Jim Meyering  <jim@meyering.net>
55540
55541         Sync from coreutils.
55542         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55543
55544 2005-08-24  Jim Meyering  <jim@meyering.net>
55545
55546         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55547         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55548
55549 2005-08-24  Jim Meyering  <jim@meyering.net>
55550
55551         * modules/fcntl-safer: New module.
55552         * modules/fts (Depends-on): Add fcntl-safer.
55553         * MODULES.html.sh (File descriptor based Input/Output):
55554         Add fcntl-safer.
55555
55556 2005-08-24  Bruno Haible  <bruno@clisp.org>
55557
55558         Support for unit test modules.
55559         * modules/README: Mention tests modules.
55560         * modules/TEMPLATE-TESTS: New file.
55561         * gnulib-tool: New options --extract-tests-module, --with-tests and
55562         --tests-base (unused for the moment).
55563         (testsbase, inctests): New variables.
55564         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55565         (func_verify_module): Exclude TEMPLATE-TESTS.
55566         (func_verify_nontests_module, func_verify_tests_module): New functions.
55567         (func_get_dependencies): Add implicit dependency for tests modules.
55568         (func_get_tests_module): New function.
55569         (func_modules_transitive_closure): When --with-tests was specified,
55570         include the unit tests as well, unless explicitly avoided.
55571         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55572         (func_emit_tests_Makefile_am): New function.
55573         (func_create_testdir): When --with-tests was specified, emit a
55574         tests/ directory.
55575         * MODULES.html.sh (Future developments): Update.
55576
55577 2005-08-24  Bruno Haible  <bruno@clisp.org>
55578
55579         * modules/tls-tests: New file.
55580         * tests/test-tls.c: New file, from GNU gettext.
55581
55582 2005-08-24  Bruno Haible  <bruno@clisp.org>
55583
55584         * modules/lock-tests: New file.
55585         * tests/test-lock.c: New file, from GNU gettext.
55586
55587 2005-08-24  Bruno Haible  <bruno@clisp.org>
55588
55589         * lib/lock.h: Add multiple inclusion guard.
55590         * lib/tls.h: Add multiple inclusion guard.
55591
55592 2005-08-24  Bruno Haible  <bruno@clisp.org>
55593
55594         * gnulib-tool: Add support for the --aux-dir option to
55595         --create-testdir, --create-megatestdir, --test, --megatest.
55596         (func_create_testdir, func_create_megatestdir): Optionally emit a
55597         AC_CONFIG_AUX_DIR directive.
55598         (create-testdir, create-megatestdir, test, megatest): Provide a
55599         default value for $auxdir.
55600
55601 2005-08-24  Bruno Haible  <bruno@clisp.org>
55602
55603         * gnulib-tool (import): Use compound statement instead of subshell
55604         where possible.
55605
55606 2005-08-24  Bruno Haible  <bruno@clisp.org>
55607
55608         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55609
55610 2005-08-24  Bruno Haible  <bruno@clisp.org>
55611
55612         * gnulib-tool (func_version): Update.
55613
55614 2005-08-24  Bruno Haible  <bruno@clisp.org>
55615
55616         * gnulib-tool (func_import, func_create_testdir,
55617         func_create_megatestdir): Quote all autoconf macro arguments.
55618
55619 2005-08-24  Bruno Haible  <bruno@clisp.org>
55620
55621         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55622         option --force, because --force causes the aclocal.m4 of each
55623         subdirectory to be newer than the corresponding config.h.in.
55624
55625 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55626
55627         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
55628         All contents moved to gl_REGEX.
55629         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
55630         assume that it does.
55631
55632 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55633
55634         * lib/regex.h (REG_NOSYS)
55635         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
55636         Define, since POSIX requires it as of 2001.
55637         (_REG_ENOSYS)
55638         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
55639         New private symbol, used to keep the enum signed in all cases.
55640         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
55641         Youngman in
55642         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
55643
55644         * lib/regex_internal.c (re_string_skip_chars, register_state):
55645         (calc_state_hash):
55646         Remove forward decls; no longer needed now that we use prototypes.
55647         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
55648         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
55649         (clean_state_log_if_needed): Likewise.
55650
55651 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55652
55653         * config/srclist.txt: Add glibc bugs 1231-1233.
55654
55655 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55656
55657         Fix problems reported by Sam Steingold in
55658         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
55659         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
55660         assumed that reg_errcode_t is a signed type, which is not
55661         necessarily true if _XOPEN_SOURCE is not defined.
55662         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
55663         since some compilers warn about it otherwise.
55664
55665 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55666
55667         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
55668         (init_word_char, create_initial_state, duplicate_node_closure):
55669         (fetch_token, peek_token_bracket, build_range_exp):
55670         (build_collating_symbol): Remove forward decls; no longer needed
55671         now that we use prototypes.
55672
55673         * lib/regcomp.c:
55674         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
55675         (re_compile_fastmap_iter, regcomp, regerror, regfree):
55676         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
55677         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
55678         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
55679         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
55680         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
55681         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
55682         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
55683         (build_range_exp, build_collating_symbol, parse_bracket_exp):
55684         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
55685         (build_charclass, build_charclass_op, fetch_number, create_tree):
55686         (create_token_tree, mark_opt_subexp, duplicate_tree):
55687         Use prototypes rather than old-style definitions.
55688
55689         * lib/regex_internal.c:
55690         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
55691         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
55692         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55693         (re_string_reconstruct, re_string_peek_byte_case):
55694         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
55695         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55696         (re_node_set_init_copy, re_node_set_add_intersect):
55697         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55698         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55699         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55700         (re_acquire_state, re_acquire_state_context, register_state):
55701         (create_ci_newstate, create_cd_newstate, free_state):
55702         Likewise.
55703         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
55704         re_search_2):
55705         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
55706         (re_search_internal, prune_impossible_nodes):
55707         (acquire_init_state_context, check_matching, static):
55708         (check_halt_node_context, check_halt_state_context, proceed_next_node):
55709         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
55710         (update_regs, sift_states_backward, build_sifted_states):
55711         (clean_state_log_if_needed, merge_state_array):
55712         (update_cur_sifted_state, add_epsilon_src_nodes):
55713         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
55714         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
55715         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
55716         (find_recover_state, check_subexp_matching_top, transit_state_mb):
55717         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
55718         (check_arrival, check_arrival_add_next_nodes):
55719         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55720         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55721         (check_node_accept_bytes, check_node_accept, extend_buffers):
55722         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
55723         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
55724         (sift_ctx_init):
55725         Likewise.
55726
55727         * lib/regex_internal.h:
55728         (re_string_allocate, re_string_construct, re_string_reconstruct):
55729         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
55730         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
55731         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
55732         (re_string_context_at, re_string_peek_byte_case):
55733         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
55734         is defined, since we now use prototypes always.
55735
55736         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
55737         C89 or better.  All uses removed.
55738
55739 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55740
55741         * config/srclist.txt: Add glibc bugs 1220-1227.
55742
55743 2005-08-20  Jim Meyering  <jim@meyering.net>
55744
55745         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
55746         of unused local, dfa.
55747
55748 2005-08-20  Bruno Haible  <bruno@clisp.org>
55749
55750         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
55751
55752 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55753
55754         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
55755         (re_node_set_insert_last, re_dfa_add_node):
55756         Rename local variables to avoid GCC shadowing warnings.
55757
55758 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55759
55760         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
55761         [defined lint]: Suppress bogus uninitialized-variable warnings.
55762
55763         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
55764         and let the caller return REG_ESPACE if out of space.  This
55765         removes an uninitialied-variable warning with GCC 4.0.1, and also
55766         avoids taking the address of a local variable.  All callers
55767         changed.
55768
55769 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55770
55771         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
55772         $LIBCSRC/posix/regexec.c.
55773         Add glibc bug 1217 for regcomp.c.
55774
55775 2005-08-19  Jim Meyering  <jim@meyering.net>
55776
55777         * lib/regexec.c (proceed_next_node): Redo local variables to
55778         avoid GCC shadowing warnings.
55779
55780 2005-08-18  Bruno Haible  <bruno@clisp.org>
55781
55782         * lib/strstr.c (strstr): Fix return value in multibyte case.
55783         * lib/strcasestr.c (strcasestr): Likewise.
55784
55785 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55786
55787         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
55788
55789 2005-08-17  Jim Meyering  <jim@meyering.net>
55790
55791         Make the %s format (seconds since the epoch) work for a negative
55792         number and when used with a zero-padded field width, e.g. %015s.
55793
55794         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
55795         label so that it precedes the code to set `digits'.  Otherwise,
55796         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
55797         print `00-22'.  Now, it prints `-0022', as it should.
55798
55799 2005-08-17  Bruno Haible  <bruno@clisp.org>
55800
55801         * modules/strstr (Files): Add m4/mbrtowc.m4.
55802         (Depends-on): Add mbuiter.
55803
55804 2005-08-17  Bruno Haible  <bruno@clisp.org>
55805
55806         * modules/strcasestr: New file.
55807         * MODULES.html.sh (String handling, based on ANSI C 89): Add
55808         strcasestr.
55809
55810 2005-08-17  Bruno Haible  <bruno@clisp.org>
55811
55812         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
55813
55814 2005-08-17  Bruno Haible  <bruno@clisp.org>
55815
55816         * modules/mbuiter: New file.
55817         * MODULES.html.sh (Extended multibyte and wide character utilities):
55818         Add mbuiter.
55819
55820 2005-08-17  Bruno Haible  <bruno@clisp.org>
55821
55822         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
55823         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
55824
55825 2005-08-17  Bruno Haible  <bruno@clisp.org>
55826
55827         * m4/strcasestr.m4: New file.
55828
55829 2005-08-17  Bruno Haible  <bruno@clisp.org>
55830
55831         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
55832         * lib/strstr.c: Completely rewritten, with multibyte locale support.
55833
55834 2005-08-17  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/strcasestr.h: New file.
55837         * lib/strcasestr.c: New file.
55838
55839 2005-08-17  Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/strcasecmp.c: Use mbuiter.h.
55842
55843 2005-08-17  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/mbuiter.h: New file.
55846
55847 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55848
55849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
55850         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
55851         and gl_GETOPT are both invoked via different paths (as happens
55852         with GNU tar CVS because it uses both argp and getopt), the former
55853         wins.
55854
55855 2005-08-16  Bruno Haible  <bruno@clisp.org>
55856
55857         * modules/tls: New file.
55858         * MODULES.html.sh (Multithreading): Add tls.
55859
55860 2005-08-16  Bruno Haible  <bruno@clisp.org>
55861
55862         * modules/strnlen1: New file.
55863         * MODULES.html.sh (String handling): Add strnlen1.
55864
55865 2005-08-16  Bruno Haible  <bruno@clisp.org>
55866
55867         * modules/strcase (Files): Add m4/mbrtowc.m4.
55868         (Depends-on): Add strnlen1, mbchar.
55869
55870 2005-08-16  Bruno Haible  <bruno@clisp.org>
55871
55872         * modules/mbiter: New file.
55873         * MODULES.html.sh (Extended multibyte and wide character utilities):
55874         Add mbiter.
55875
55876 2005-08-16  Bruno Haible  <bruno@clisp.org>
55877
55878         * modules/mbfile: New file.
55879         * MODULES.html.sh (Extended multibyte and wide character utilities):
55880         Add mbfile.
55881
55882 2005-08-16  Bruno Haible  <bruno@clisp.org>
55883
55884         * modules/mbchar: New file.
55885         * MODULES.html.sh (Extended multibyte and wide character utilities):
55886         New section.
55887
55888 2005-08-16  Bruno Haible  <bruno@clisp.org>
55889
55890         * m4/tls.m4: New file, from GNU gettext.
55891
55892 2005-08-16  Bruno Haible  <bruno@clisp.org>
55893
55894         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
55895         always.
55896         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
55897
55898 2005-08-16  Bruno Haible  <bruno@clisp.org>
55899
55900         * m4/mbiter.m4: New file.
55901
55902 2005-08-16  Bruno Haible  <bruno@clisp.org>
55903
55904         * m4/mbfile.m4: New file.
55905
55906 2005-08-16  Bruno Haible  <bruno@clisp.org>
55907
55908         * m4/mbchar.m4: New file.
55909
55910 2005-08-16  Bruno Haible  <bruno@clisp.org>
55911
55912         * lib/tls.h: New file, from GNU gettext.
55913         * lib/tls.c: New file, from GNU gettext.
55914
55915 2005-08-16  Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/strnlen1.h: New file.
55918         * lib/strnlen1.c: New file.
55919
55920 2005-08-16  Bruno Haible  <bruno@clisp.org>
55921
55922         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
55923         (mbi_init): Update.
55924         (mbi_avail, mbi_advance): Let the iteration end before the terminating
55925         NUL byte, not after it.
55926
55927 2005-08-16  Bruno Haible  <bruno@clisp.org>
55928
55929         * lib/strcase.h (strcasecmp): Add note in comments.
55930         * lib/strncasecmp.c: Use code from strcasecmp.c.
55931         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
55932         (strcasecmp): Work correctly in multibyte locales.
55933
55934 2005-08-16  Bruno Haible  <bruno@clisp.org>
55935
55936         * lib/mbiter.h: New file.
55937
55938 2005-08-16  Bruno Haible  <bruno@clisp.org>
55939
55940         * lib/mbfile.h: New file.
55941
55942 2005-08-16  Bruno Haible  <bruno@clisp.org>
55943
55944         * lib/mbchar.h: New file.
55945         * lib/mbchar.c: New file.
55946
55947 2005-08-16  Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
55950         the valid ones. Makes the comparison operations transitive:
55951         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
55952         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
55953
55954 2005-08-15  Simon Josefsson  <jas@extundo.com>
55955
55956         * modules/ssize_t (License): Change to 'unlimited'.
55957
55958         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
55959
55960 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55961
55962         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
55963         Add comments for each pending glibc patch.
55964
55965 2005-08-15  Bruno Haible  <bruno@clisp.org>
55966
55967         * lib/regex.h (__restrict_arr): Don't define to __restrict if
55968         __cplusplus is defined.
55969
55970 2005-08-14  Jim Meyering  <jim@meyering.net>
55971
55972         Sync from coreutils.
55973
55974         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
55975         Use the hash-table-based cycle-detection code not just when
55976         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
55977         Reported by James Youngman in
55978         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
55979         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
55980         FTS_TIGHT_CYCLE_CHECK.
55981         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
55982         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
55983         once again.
55984         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
55985         * lib/fts.c (fd_safer): Remove decl.
55986         Include fcntl--.h rather than unistd-safer.h
55987         (fts_safe_changedir): Don't call fd_safer; no longer needed
55988         now that we include fcntl--.h.
55989
55990 2005-08-12  Simon Josefsson  <jas@extundo.com>
55991
55992         * modules/getndelim2: Use ssize_t module.
55993         * modules/getnline: Likewise.
55994         * modules/safe-read: Likewise.
55995         * modules/xreadlink: Likewise.
55996
55997         * modules/ssize_t: New file.
55998
55999 2005-08-12  Simon Josefsson  <jas@extundo.com>
56000
56001         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56002
56003 2005-08-12  Simon Josefsson  <jas@extundo.com>
56004
56005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56006         ssize_t.
56007
56008 2005-08-12  Simon Josefsson  <jas@extundo.com>
56009
56010         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56011         readline, getdelim and check_version.
56012         (Support for systems lacking ISO C 99: Sizes of integer types):
56013         Add size_max.
56014
56015 2005-08-12  Bruno Haible  <bruno@clisp.org>
56016
56017         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56018
56019 2005-08-11  Simon Josefsson  <jas@extundo.com>
56020
56021         * modules/readline: New file.
56022
56023         * modules/strnlen (Files): Add strnlen.h.
56024
56025 2005-08-11  Simon Josefsson  <jas@extundo.com>
56026
56027         * m4/readline.m4: New file.
56028
56029 2005-08-11  Simon Josefsson  <jas@extundo.com>
56030
56031         * lib/readline.h, readline.c: New file.
56032
56033 2005-08-11  Simon Josefsson  <jas@extundo.com>
56034
56035         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56036         gl_AVOID.
56037
56038 2005-08-11  Bruno Haible  <bruno@clisp.org>
56039
56040         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56041
56042 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56043
56044         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56045
56046 2005-08-10  Simon Josefsson  <jas@extundo.com>
56047
56048         * tests/test-iconvme.c: New file.
56049
56050 2005-08-10  Simon Josefsson  <jas@extundo.com>
56051
56052         * m4/strnlen.m4: New file.
56053
56054         * m4/strndup.m4: Don't check for strnlen declaration, done in
56055         strnlen.m4.
56056
56057 2005-08-10  Simon Josefsson  <jas@extundo.com>
56058
56059         * lib/strndup.c: Use strnlen.h.
56060
56061         * lib/strnlen.h: New file.
56062
56063 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56064
56065         * README: Typos.
56066
56067 2005-08-02  Simon Josefsson  <jas@extundo.com>
56068
56069         * modules/readline: New file.
56070
56071 2005-08-02  Simon Josefsson  <jas@extundo.com>
56072
56073         * modules/getdelim: New file.
56074
56075         * modules/getline: Rewrite, don't use getndelim2.
56076
56077 2005-08-02  Simon Josefsson  <jas@extundo.com>
56078
56079         * m4/getline.m4: Separate out getdelim stuff into separate module.
56080
56081         * m4/getdelim.m4: New file.
56082
56083 2005-08-02  Simon Josefsson  <jas@extundo.com>
56084
56085         * lib/getline.h, getline.c: Rewrite.
56086
56087         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56088
56089 2005-07-31  Bruno Haible  <bruno@clisp.org>
56090
56091         * lib/lock.h (gl_lock_initializer): New macro.
56092         (gl_lock_define_initialized): Use it.
56093         (gl_rwlock_initializer): New macro.
56094         (gl_rwlock_define_initialized): Use it.
56095         (gl_recursive_lock_initializer): New macro.
56096         (gl_recursive_lock_define_initialized): Use it.
56097
56098 2005-07-30  Karl Berry  <karl@gnu.org>
56099
56100         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56101         Report from Ben Pfaff, regarding getopt.
56102
56103 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56104
56105         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56106         normal way.
56107         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56108         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56109         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56110         (gl_GETOPT): Use the new macros.  Most of the implementation
56111         is moved to the new macros.  This is for programs like Emacs
56112         that don't want all the functionality of gl_GETOPT.
56113
56114 2005-07-26  Bruno Haible  <bruno@clisp.org>
56115
56116         * m4/lock.m4: Update from GNU gettext.
56117
56118 2005-07-26  Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/lock.h: Update from GNU gettext.
56121         * lib/lock.c: Update from GNU gettext.
56122
56123 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56124
56125         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56126         obsolescent AC_TRY_RUN.  Include the default includes files, for
56127         'exit'.
56128
56129 2005-07-24  Bruno Haible  <bruno@clisp.org>
56130
56131         * modules/visibility: New file.
56132         * MODULES.html.sh (Misc): Add visibility.
56133
56134 2005-07-24  Bruno Haible  <bruno@clisp.org>
56135
56136         * m4/visibility.m4: New file.
56137
56138 2005-07-24  Bruno Haible  <bruno@clisp.org>
56139
56140         * doc/visibility.texi: New file.
56141
56142 2005-07-22  Bruno Haible  <bruno@clisp.org>
56143
56144         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56145         $(ALLOCA_H), redundant through BUILT_SOURCES.
56146         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56147         redundant through BUILT_SOURCES.
56148         * modules/byteswap (Makefile.am): Remove explicit dependency on
56149         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56150         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56151         $(FNMATCH_H), redundant through BUILT_SOURCES.
56152         * modules/getopt (Makefile.am): Remove explicit dependency on
56153         $(GETOPT_H), redundant through BUILT_SOURCES.
56154         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56155         redundant through BUILT_SOURCES.
56156         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56157         redundant through BUILT_SOURCES.
56158         * modules/stdbool (Makefile.am): Remove explicit dependency on
56159         $(STDBOOL_H), redundant through BUILT_SOURCES.
56160         * modules/stdint (Makefile.am): Remove explicit dependency on
56161         $(STDINT_H), redundant through BUILT_SOURCES.
56162         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56163         Remove explicit dependency on $(SYSEXITS_H).
56164         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56165
56166 2005-07-18  Simon Josefsson  <jas@extundo.com>
56167
56168         * lib/check-version.c (check_version): Accept identical versions too.
56169
56170 2005-07-18  Bruno Haible  <bruno@clisp.org>
56171
56172         * modules/lock: New file.
56173         * MODULES.html.sh (Multithreading): New section.
56174
56175 2005-07-18  Bruno Haible  <bruno@clisp.org>
56176
56177         * m4/lock.m4: New file, from GNU gettext.
56178
56179 2005-07-18  Bruno Haible  <bruno@clisp.org>
56180
56181         * lib/lock.h: New file, from GNU gettext.
56182         * lib/lock.c: New file, from GNU gettext.
56183
56184 2005-07-18  Bruno Haible  <bruno@clisp.org>
56185
56186         * lib/lock.h (gl_once_t): New type.
56187         (gl_once_define, gl_once): New macros.
56188         * lib/lock.c (fresh_once): New variable.
56189         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56190         functions.
56191
56192 2005-07-16  Simon Josefsson  <jas@extundo.com>
56193
56194         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56195         workaround, suggested by Bruno.
56196
56197 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56198
56199         * modules/xalloc (Depends-on): Add xalloc-die.
56200         * modules/xvasprintf (Depends-on): Add xalloc-die.
56201
56202 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56203
56204         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56205         with a minor change.
56206
56207 2005-07-15  Bruno Haible  <bruno@clisp.org>
56208
56209         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56210         When using lib/poll.c, define poll as rpl_poll.
56211
56212 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         * modules/argp (Depends-on): Remove unlocked-io.
56215
56216 2005-07-14  Derek Price  <derek@ximbiot.com>
56217
56218         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56219         for glob symlink bug.
56220
56221 2005-07-14  Bruno Haible  <bruno@clisp.org>
56222
56223         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56224         Instead, test for *_unlocked function declarations directly.
56225
56226 2005-07-11  Simon Josefsson  <jas@extundo.com>
56227
56228         * modules/size_max: New file.
56229
56230         * modules/xsize: Depend on size_max module for size_max.m4.
56231
56232 2005-07-11  Simon Josefsson  <jas@extundo.com>
56233
56234         * lib/size_max.h: New file.
56235
56236 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56237
56238         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56239         copyright symbol and the year.
56240         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56241         (version_etc_va): Use parameterized copyright notice.
56242         Reword to conform to the current GNU coding standards.
56243
56244 2005-07-11  Karl Berry  <karl@gnu.org>
56245
56246         * doc/gnulib.texi (Quoting): new node.
56247         (Initial import): more info, from Patrice.
56248
56249 2005-07-11  Bruno Haible  <bruno@clisp.org>
56250
56251         * gnulib-tool (func_usage): Document option --avoid.
56252         (Command line options): Handle --avoid.
56253         (func_acceptable): New function.
56254         (func_modules_transitive_closure): Use it.
56255
56256 2005-07-11  Bruno Haible  <bruno@clisp.org>
56257
56258         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56259         Reported by Jim Meyering.
56260
56261 2005-07-10  Bruno Haible  <bruno@clisp.org>
56262
56263         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56264         Needed when size_t is smaller than 'unsigned int'.
56265         Reported by Paul Eggert.
56266
56267 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56268
56269         * modules/argp (Depends-on): Add unlocked-io
56270
56271 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56272
56273         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56274         block of defines.
56275
56276 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56277
56278         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56279         fix now.
56280
56281 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56282         and Paul Eggert  <eggert@cs.ucla.edu>
56283
56284         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56285         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56286
56287 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56288
56289         * modules/regex (Files): Add lib/regex_internal.c,
56290         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56291         (Depends-on): Add extensions.
56292         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56293
56294 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56295
56296         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56297         pathconf.
56298         * m4/same.m4 (gl_SAME): Likewise.
56299         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56300
56301         * m4/regex.m4: Adjust to new libc regex implementation.
56302         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56303         all the .c and .h parts of (the new) regex.
56304         Quote the m4 stuff better.
56305         Check for RE_ICASE bug of old gnulib.
56306         Check for REG_STARTEND of recent libc.
56307         Rename local variables from jm_* to gl_*.
56308         Quote operand of "test -f".
56309         Say "recent enough" version of libc, not "version 2".
56310         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56311         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56312         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56313         Remove check for btowc, isascii.
56314         Require AM_LANGINFO_CODESET.
56315
56316 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56317
56318         * lib/regex.c, regex.h: Sync from libc.
56319         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56320         * lib/regexec.c:
56321         New files, synced from libc, except that regex_internal.h
56322         currently has a small porting fix.
56323
56324 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56325
56326         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56327         regex_internal.c, regexec.c.
56328         Add regex_internal.h too, but as a comment, since the libc version
56329         is currently broken in gnulib mode.
56330
56331 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56332
56333         Support programs like Emacs that use gnulib but not gettext.
56334         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56335         * modules/gettext-h: New file.
56336         * modules/gettext (Files): Remove lib/gettext.h.
56337         (Depends-on): Add gettext-h.
56338         (Makefile.am): Remove lib_SOURCES.
56339         * modules/argmatch, modules/c-stack, modules/closeout:
56340         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56341         * modules/execute, modules/file-type, modules/getaddrinfo:
56342         * modules/getopt, modules/human, modules/javacomp:
56343         * modules/javaexec, modules/mkdir-p, modules/obstack:
56344         * modules/openat, modules/pagealign_alloc, modules/pipe:
56345         * modules/quotearg, modules/regex, modules/rpmatch:
56346         * modules/unicodeio, modules/userspec, modules/version-etc:
56347         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56348         * modules/xsetenv:
56349         Depend on gettext-h, not gettext.
56350
56351 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56352
56353         * gnulib-tool (func_import): Add support for 'public domain' license.
56354         * modules/alloca, modules/atexit, modules/memmove:
56355         Now public domain, not GPL.
56356         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56357         * modules/realloc, modules/strerror, modules/strtod:
56358         Now LGPL, not GPL.
56359
56360 2005-07-05  Bruno Haible  <bruno@clisp.org>
56361
56362         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56363         autoconf CVS. Needed for mingw.
56364
56365 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56366
56367         Remove the dependency of the strftime module on the tzset module.
56368         * modules/strftime (Depends-on): Remove dependency on tzset.
56369
56370 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56371
56372         Remove the dependency of the strftime module on the tzset module.
56373         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56374         gl_FUNC_TZSET_CLOBBER.
56375
56376 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56377
56378         Remove the dependency of the strftime module on the tzset module.
56379         * lib/strftime.c (my_strftime)
56380         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56381         Copy the input structure, to work around some of the bug with
56382         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56383         Solaris releases, you should also use the tzset module, but we won't
56384         require it as a dependency any more since we don't want LGPLed code
56385         to depend on GPLed code.
56386
56387 2005-07-02  Jim Meyering  <jim@meyering.net>
56388
56389         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56390         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56391         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56392         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56393
56394 2005-07-02  Jim Meyering  <jim@meyering.net>
56395
56396         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56397
56398 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56399
56400         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56401         declares only 'struct timespec;' (!).
56402
56403 2005-07-01  Jim Meyering  <jim@meyering.net>
56404
56405         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56406         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56407         * lib/save-cwd.c, tempname.c:
56408         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56409         and don't include <sys/file.h>).
56410
56411 2005-06-29  Jim Meyering  <jim@meyering.net>
56412
56413         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56414         type name.  Use the variable name instead.
56415         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56416         Likewise.
56417
56418 2005-06-28  Simon Josefsson  <jas@extundo.com>
56419
56420         * modules/check-version (Files): Add check-version.m4.
56421
56422 2005-06-28  Simon Josefsson  <jas@extundo.com>
56423
56424         * m4/check-version.m4: New file, suggested by Jim Meyering
56425         <jim@meyering.net>.
56426
56427 2005-06-28  Simon Josefsson  <jas@extundo.com>
56428
56429         * lib/check-version.h, lib/check-version.c: New files.
56430
56431 2005-06-28  Simon Josefsson  <jas@extundo.com>
56432
56433         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56434         collision with global variable.  Better indentation.  Don't
56435         increment buffer pointer beyond buffer end.  Based on comments
56436         from Paul Eggert <eggert@cs.ucla.edu>.
56437
56438         * lib/base64.h: Indent.
56439
56440 2005-06-28  Simon Josefsson  <jas@extundo.com>
56441
56442         * doc/gnulib.texi (Library version handling): New section.
56443
56444 2005-06-28  Jim Meyering  <jim@meyering.net>
56445
56446         * check-module (find_included_lib_files): Hard-code another
56447         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56448         but modules/fts-lgpl (correctly) does not list those files.
56449
56450         * modules/canonicalize (Files): Add lib/pathmax.h.
56451
56452 2005-06-25  Simon Josefsson  <jas@extundo.com>
56453
56454         * modules/check-version: New file.
56455
56456 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56457
56458         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56459         initializer of struct addrinfo, as an indication that we don't
56460         care how many members the structure has.
56461
56462 2005-06-24  Derek Price  <derek@ximbiot.com>
56463         and Bruno Haible  <bruno@clisp.org>
56464
56465         Remove stat module & update lstat.
56466         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56467         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56468         * m4/stat.m4: Remove this file.
56469
56470 2005-06-24  Derek Price  <derek@ximbiot.com>
56471         and Bruno Haible  <bruno@clisp.org>
56472
56473         Remove stat module & update lstat.
56474         * lib/stat.c: Remove this file...
56475         (slash_aware_lstat): ...moving this content and its support...
56476         * lib/lstat.c (rpl_lstat): ...into here.
56477         * lib/lstat.h: New file.
56478
56479 2005-06-24  Derek Price  <derek@ximbiot.com>
56480         and Bruno Haible  <bruno@clisp.org>
56481
56482         Remove stat module & update lstat.
56483         * config/srclist.txt (libc sources): Remove stat.
56484
56485 2005-06-24  Derek Price  <derek@ximbiot.com>
56486         and Bruno Haible  <bruno@clisp.org>
56487
56488         Remove stat module & update lstat.
56489         * MODULES.html.sh (stat): Remove.
56490         * MODULES.html: Regenerated.
56491         * modules/lstat (Description): Correct function name.
56492         (Files): Add "lstat.h".
56493         (Depends-on): Remove stat, add xalloc, stat-macros.
56494         * modules/stat: Remove this file.
56495         (Include): Add "lstat.h", remove <sys/stat.h>.
56496
56497 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56498
56499         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56500         (ranged_convert): Don't save conversion in a temporary struct.
56501         This causes a warning with GCC 4.0.0, and anyway in the typical
56502         case it's not worth the extra 100 bytes or so of code.
56503         (ranged_convert, __mktime_internal): When calling a function via a
56504         pointer P, use P () rather than (*P) (), as we now assume C89 or
56505         better.
56506
56507 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56508
56509         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56510         "who -r" failed to give output.  Problem reported by Tim Waugh.
56511
56512         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56513         (xcalloc): Use it to avoid needless tests.
56514         Problem reported by Jim Meyering.
56515
56516 2005-06-20  Derek Price  <derek@ximbiot.com>
56517
56518         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56519         unnecessary for Autoconfs > 2.59c.
56520
56521 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56522
56523         * lib/argp.h (__option_is_short): Check upper limit of
56524         __key. Isprint() requires its argument to have the value
56525         of an unsigned char or EOF.
56526
56527 2005-06-16  Jim Meyering  <jim@meyering.net>
56528
56529         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56530         when either N or S is zero.
56531
56532 2005-06-16  Derek Price  <derek@ximbiot.com>
56533
56534         * m4/bison.m4: Declare YACC & YFLAGS precious.
56535
56536 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56537
56538         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56539         multibyte string or pattern, fall back on unibyte matching.
56540         Problem reported by James Youngman.
56541
56542 2005-06-08  Bruno Haible  <bruno@clisp.org>
56543
56544         * modules/csharpcomp: New file.
56545         * MODULES.html.sh (C#): Add csharpcomp.
56546
56547 2005-06-08  Bruno Haible  <bruno@clisp.org>
56548
56549         * m4/csharpcomp.m4: New file, from GNU gettext.
56550
56551 2005-06-08  Bruno Haible  <bruno@clisp.org>
56552
56553         * lib/csharpcomp.h: New file, from GNU gettext.
56554         * lib/csharpcomp.c: New file, from GNU gettext.
56555         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56556
56557 2005-06-08  Bruno Haible  <bruno@clisp.org>
56558
56559         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56560         warning on mingw.
56561
56562 2005-06-07  Derek Price  <derek@ximbiot.com>
56563
56564         Sync from CVS.
56565         * lib/glob_.h: Indent nested #ifdef.
56566
56567 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56568
56569         Sync from coreutils.
56570         Use "file name" when talking about file names, instead of "filename"
56571         or "path", as per the GNU coding standards.
56572         * lib/mkdir-p.c: Renamed from makepath.c.
56573         (make_dir_parents): Renamed from make_path.  All callers changed.
56574         * lib/mkdir-p.h: Likewise.  All includers changed.
56575         * lib/filenamecat.c: Renamed from path-concat.c.
56576         (file_name_concat): Renamed from path_concat.  All callers changed.
56577         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56578         * lib/filenamecat.h: Likewise.  All includers changed.
56579         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56580         in comments or local variable names.
56581         * lib/basename.c: Likewise.
56582         * lib/canonicalize.c, canonicalize.h: Likewise.
56583         * lib/dirname.c, dirname.h: Likewise.
56584         * lib/euidaccess.c: Likewise.
56585         * lib/exclude.c: Likewise
56586         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56587         * lib/fsusage.c, fsuage.h: Likewise.
56588         * lib/fts.c, fts_.h: Likewise.
56589         * lib/getcwd.c: Likewise.
56590         * lib/getloadavg.c: Likewise.
56591         * lib/mkstemp.c: Likewise.
56592         * lib/mountlist.c, mountlist.h: Likewise.
56593         * lib/openat.c, openat.h: Likewise.
56594         * lib/readlink-stub.c: Likewise.
56595         * lib/readutmp.c, readutmp.h: Likewise.
56596         * lib/rename.c: Likewise.
56597         * lib/rmdir.c: Likewise.
56598         * lib/same.c: Likewise.
56599         * lib/savedir.c: Likewise.
56600         * lib/stripslash.c: Likewise.
56601         * lib/tempname.c: Likewise.
56602         * lib/xreadlink.c: Likewise.
56603         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56604         All uses changed.
56605         * lib/exclude.h: Likewise.
56606
56607         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56608         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56609         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56610         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56611         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56612         files have been getting away with it for years (MORE/BSD 4.3
56613         is extinct now).
56614         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56615         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56616
56617         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56618         Define to 256, not 255, as per modern POSIX.
56619
56620 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56621
56622         Sync from coreutils.
56623         Use "file name" when talking about file names, instead of "filename"
56624         or "path", as per the GNU coding standards.
56625         * MODULES.html.sh: mkdir-p renamed from makepath.
56626         filenamecat renamed from path-concat.
56627         * modules/filenamecat: Renamed from modules/path-concat.
56628         (Files): filenamecat.h and filenamecat.c renamed from
56629         path-concat.h and path-concat.c.
56630         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
56631         (Include): filenamecat.h, not path-concat.h.
56632         * modules/mkdir-p: Renamed from modules/makepath.
56633         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
56634         makepath.c.
56635         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
56636         (Include): mkdir-p.h, not makepath.h.
56637
56638 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56639
56640         Sync from coreutils.
56641         * m4/mkdir-p.m4: Renamed from makepath.m4.
56642         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
56643         Rename files from makepath.c to mkdir-p.c, and from
56644         makepath.h to mkdir-p.h.
56645         * m4/filenamecat.m4: Renamed from path-concat.m4.
56646         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
56647         Rename files from path-concat.c to filenamecat.c,
56648         and from path-concat.h to filenamecat.h.
56649         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
56650         "file name" in local variables or comments.
56651         * m4/rename.m4: Likewise.
56652
56653 2005-06-01  Bruno Haible  <bruno@clisp.org>
56654
56655         * modules/csharpexec: New file.
56656         * MODULES.html.sh (C#): New section.
56657
56658 2005-06-01  Bruno Haible  <bruno@clisp.org>
56659
56660         * m4/csharp.m4: New file, from GNU gettext.
56661         * m4/csharpexec.m4: New file, from GNU gettext.
56662
56663 2005-06-01  Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/csharpexec.h: New file, from GNU gettext.
56666         * lib/csharpexec.c: New file, from GNU gettext.
56667         * lib/csharpexec.sh.in: New file, from GNU gettext.
56668
56669 2005-05-31  Derek Price  <derek@ximbiot.com>
56670             Paul Eggert  <eggert@cs.ucla.edu>
56671
56672         Sync from cvs.
56673         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56674
56675 2005-05-31  Derek Price  <derek@ximbiot.com>
56676             Paul Eggert  <eggert@cs.ucla.edu>
56677
56678         Sync from cvs.
56679         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56680
56681 2005-05-29  Derek Price  <derek@ximbiot.com>
56682
56683         * config/srclist.txt (glob_.h, glob.c): Add these files.
56684
56685 2005-05-29  Derek Price  <derek@ximbiot.com>
56686
56687         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
56688         * modules/glob: New file.
56689         * modules/getlogin_r: Add link to POSIX spec in description.
56690
56691 2005-05-29  Derek Price  <derek@ximbiot.com>
56692             Paul Eggert  <eggert@cs.ucla.edu>
56693
56694         * m4/glob.m4: New file.
56695
56696 2005-05-29  Derek Price  <derek@ximbiot.com>
56697             Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         * lib/glob_.h, lib/glob.c: New files.
56700
56701 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56702
56703         * modules/fts (Files): Remove m4/inttypes-pri.m4.
56704         * modules/fts-lgpl (Depends-on): Remove gettext.
56705
56706 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56707
56708         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
56709         and don't require gt_INTTYPES_PRI.
56710
56711 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56712
56713         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
56714
56715         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
56716         the configuration hassle isn't worth it.
56717         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
56718         (LONGEST_MODIFIER, PRIuMAX): Remove.
56719
56720 2005-05-27  Bruno Haible  <bruno@clisp.org>
56721
56722         * lib/getlogin_r.h: Remove second include of <stddef.h>.
56723
56724 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
56725
56726         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
56727         _POSIX_PTHREAD_SEMANTICS for Solaris.
56728
56729 2005-05-25  Derek Price  <derek@ximbiot.com>
56730
56731         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
56732
56733 2005-05-25  Derek Price  <derek@ximbiot.com>
56734             Paul Eggert  <eggert@cs.ucla.edu>
56735
56736         * modules/getlogin_r, m4/getlogin_r.m4: New files.
56737         * lib/getlogin_r.c, getlogin_r.h: New files.
56738
56739 2005-05-25  Bruno Haible  <bruno@clisp.org>
56740             Derek Price  <derek@ximbiot.com>
56741
56742         * lib/getlogin_r.h: Simplify API documentation.
56743
56744 2005-05-23  Derek Price  <derek@ximbiot.com>
56745
56746         * modules/minmax (Files): Add m4/minmax.m4.
56747         (configure.ac): Add gl_MINMAX.
56748
56749 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56750
56751         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
56752         so that unistd-safer.h (GPL'ed code) need not be included.
56753
56754 2005-05-22  Bruno Haible  <bruno@clisp.org>
56755
56756         * m4/minmax.m4: New file.
56757         Based on a patch by Derek Price <derek@ximbiot.com>.
56758
56759 2005-05-22  Bruno Haible  <bruno@clisp.org>
56760
56761         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
56762         (INT64_MIN): Fix definition.
56763         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
56764
56765         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
56766         NEED_SIGNED_INT_TYPES.
56767
56768         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
56769         HAVE_SYSTEM_INTTYPES.
56770
56771 2005-05-22  Bruno Haible  <bruno@clisp.org>
56772
56773         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
56774         Also include <sys/param.h> if it defines MIN, MAX.
56775         Based on a patch by Derek Price <derek@ximbiot.com>.
56776
56777 2005-05-21  Jim Meyering  <jim@meyering.net>
56778
56779         * modules/fts (Files): Add m4/inttypes-pri.m4.
56780         (Depends-on): Add lstat and remove gettext.  Alphabetize.
56781
56782 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56783
56784         New fts module.
56785         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
56786         (setup_dir, free_dir): New functions.
56787         (enter_dir, leave_dir): Define trivial
56788         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
56789         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
56790         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
56791         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
56792         Move to fts-cycle.c.
56793         (fts_open): Use setup_dir.
56794         (fts_close): Use free_dir.
56795         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
56796         This adds a label and some gotos, but the alternatives were messier.
56797         Check for memory allocation failure when entering a dir.
56798         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
56799         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
56800         (FTS): New member fts_cycle, that is a union that contains the
56801         old active_dir_ht and cycle_state.  All uses changed to mention
56802         fts_cycle.ht and fts_cycle.state.
56803         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
56804         fts.c, with the following changes:
56805         (setup_dir, free_dir): New functions.
56806         (enter_dir): Now returns bool.  Return true if successful, false
56807         if memory exhausted.  All callers changed.
56808         Do not bother partly cleaning up on
56809         memory allocation failure; that is free_dir's job.
56810         However, free ad if hash_insert fails, to avoid memory leak.
56811         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
56812         fts->fts_options to see which union member to use.
56813
56814 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
56817         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
56818
56819 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56820
56821         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
56822
56823 2005-05-20  Jim Meyering  <jim@meyering.net>
56824
56825         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
56826         Now a macro, to pacify GCC.
56827
56828 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
56829
56830         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
56831         of -1.
56832
56833 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
56834
56835         * lib/chown.c (rpl_chown): Return -1 on failure.
56836
56837 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
56840         Don't check for stddef.h.
56841         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
56842         don't use its results.
56843         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
56844         since we include them unconditionally.  Don't require
56845         AM_STDBOOL_H, since stdbool is a prerequisite.
56846         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
56847         since we assume C89 or better.
56848         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
56849         as we don't use their results.
56850         Don't check for fchdir, memmove, memset, strrchr, as we use
56851         them unconditionally.
56852         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
56853         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
56854
56855 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
56856
56857         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
56858         Include <stddef.h> unconditionally, since we assume C89 now.
56859         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
56860         * lib/fts.c: Include fts_.h first, to check interface.
56861         Do not include intprops.h; no longer needed.
56862         Include cycle-check.h and hash.h, since fts_.h no longer does.
56863         Remove unnecessary casts of closedir to void.
56864         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
56865         decide whether to decrement nlinks.
56866         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
56867         (FTS): Use struct hash_table * instead of Hash_table, so that
56868         we no longer need to include hash.h here.
56869
56870 2005-05-18  Jim Meyering  <jim@meyering.net>
56871
56872         * modules/dirfd (License): Change to LGPL.  Most of the code
56873         is already in the public domain.
56874
56875 2005-05-18  Jim Meyering  <jim@meyering.net>
56876
56877         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
56878         Reported by Yoann Vandoorselaere.
56879
56880 2005-05-17  Jim Meyering  <jim@meyering.net>
56881
56882         * m4/fts.m4: New file, from coreutils.
56883
56884 2005-05-17  Jim Meyering  <jim@meyering.net>
56885
56886         * lib/fts.c, lib/fts_.h: New files, from coreutils.
56887
56888 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         Sync from coreutils.
56891         * m4/unlinkdir.m4: New file.
56892
56893 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56894
56895         Sync from coreutils.
56896         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
56897         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
56898         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
56899         White space changes only.
56900         * lib/makepath.c (make_path): Port to hosts where leading "//" is
56901         special.
56902         * lib/yesno.c: Include getline.h, not ctype.h.
56903         (yesno): Don't remove leading white space; POSIX doesn't allow it.
56904         Use getline to remove arbitrary restriction on response length.
56905
56906 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56907
56908         * config/srclist-update: Spell out "Street" in FSF postal
56909         mail address; this is the style the FSF seems to prefer.
56910
56911         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
56912         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
56913         this updates FSF postal mail address.
56914
56915         Sync from coreutils.
56916         * modules/unlinkdir: New file.
56917         * modules/yesno (Depends-on): Add getline.
56918         * MODULES.html.sh (File system functions): Add unlinkdir.
56919
56920 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56921
56922         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
56923         lib/strsep.h:
56924         Change the initial comment to refer to GPL, not LGPL.
56925         gnulib-tool will change it to LGPL as needed.
56926
56927         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
56928         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
56929         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
56930         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
56931         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
56932         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
56933         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
56934         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
56935         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
56936         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
56937         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
56938         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
56939         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
56940         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
56941         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
56942         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
56943         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
56944         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
56945         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
56946         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
56947         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
56948         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
56949         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
56950         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
56951         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
56952         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
56953         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
56954         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
56955         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
56956         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
56957         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
56958         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
56959         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
56960         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
56961         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
56962         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
56963         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
56964         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
56965         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
56966         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
56967         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
56968         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
56969         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
56970         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
56971         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
56972         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
56973         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
56974         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
56975         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
56976         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
56977         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
56978         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
56979         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
56980         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
56981         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
56982         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
56983         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
56984         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
56985         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
56986         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
56987         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
56988         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
56989         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
56990         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
56991         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
56992         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
56993         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
56994         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
56995         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
56996         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
56997         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
56998         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
56999         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57000         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57001         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57002         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57003         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57004         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57005         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57006         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57007         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57008         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57009         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57010         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57011         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57012         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57013         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57014         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57015         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57016         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57017         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57018         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57019         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57020         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57021         lib/yesno.c, lib/yesno.h:
57022         Update FSF postal mail address.
57023
57024 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57025
57026         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57027         tests/test-memmem.c, tests/test-stpncpy.c:
57028         Update FSF postal mail address.
57029
57030 2005-05-13  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57033         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57034         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57035         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57036         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57037         Add support for 64-bit integers in the MSVC compiler.
57038
57039 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57040
57041         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57042
57043 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57044
57045         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57046
57047 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57048
57049         * doc/getdate.texi (General date syntax): Don't say that date
57050         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57051         Problem reported by Nic Ferrier.
57052
57053 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57054
57055         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57056         specified in ai_socktype. Fix invalid ai_protocol
57057         check. ai_protocol is usually set to 0 or depending on
57058         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57059         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57060         ai_socktype / ai_protocol in the returned addrinfo structure.
57061
57062 2005-05-10  Simon Josefsson  <jas@extundo.com>
57063
57064         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57065         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57066
57067 2005-05-10  Karl Berry  <karl@gnu.org>
57068
57069         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57070         (from http://www.gnu.org/licenses).
57071         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57072         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57073         fdl.texi suffices.
57074
57075 2005-05-10  Karl Berry  <karl@gnu.org>
57076
57077         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57078         (COPYING.DOC): remove.
57079
57080         * config/srclist-update: new FSF address.
57081
57082 2005-05-10  Derek Price  <derek@ximbiot.com>
57083
57084         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57085         possible.
57086
57087 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57088             Bruno Haible  <bruno@clisp.org>
57089
57090         * modules/inet_ntop: New file.
57091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57092         inet_ntop.
57093
57094 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57095             Bruno Haible  <bruno@clisp.org>
57096
57097         * m4/inet_ntop.m4: New file.
57098
57099 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57100             Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/inet_ntop.h: New file.
57103         * lib/inet_ntop.c: New file, from glibc with modifications.
57104
57105 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57106
57107         * modules/time_r (License): Change to LGPL.
57108         * modules/extensions (License): Change to LGPL.  Actually,
57109         the license is more permissive than that, but currently gnulib-tool
57110         doesn't know how to handle more-permissive licenses.
57111
57112         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57113         Problem reported by Dave Love.
57114
57115 2005-05-08  Jim Meyering  <jim@meyering.net>
57116
57117         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57118         blank.
57119
57120 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57121
57122         * modules/argmatch (Depends-on): Add stdbool.
57123         * modules/backupfile (Depends-on): Likewise.
57124         * modules/chdir-long (Depends-on): Likewise.
57125         * modules/closeout (Depends-on): Likewise.
57126         * modules/cycle-check (Depends-on): Likewise.
57127         * modules/dirname (Depends-on): Likewise.
57128         * modules/fnmatch (Depends-on): Likewise.
57129         * modules/fsusage (Depends-on): Likewise.
57130         * modules/fwriteerror (Depends-on): Likewise.
57131         * modules/getcwd (Depends-on): Likewise.
57132         * modules/getloadavg (Depends-on): Likewise.
57133         * modules/hard-locale (Depends-on): Likewise.
57134         * modules/makepath (Depends-on): Likewise.
57135         * modules/mountlist (Depends-on): Likewise.
57136         * modules/nanosleep (Depends-on): Likewise.
57137         * modules/posixtm (Depends-on): Likewise.
57138         * modules/quotearg (Depends-on): Likewise.
57139         * modules/readtokens (Depends-on): Likewise.
57140         * modules/readtokens0 (Depends-on): Likewise.
57141         * modules/readutmp (Depends-on): Likewise.
57142         * modules/save-cwd (Depends-on): Likewise.
57143         * modules/strftime (Depends-on): Likewise.
57144         * modules/userspec (Depends-on): Likewise.
57145         * modules/utimecmp (Depends-on): Likewise.
57146         * modules/xgetcwd (Depends-on): Likewise.
57147         * modules/xnanosleep (Depends-on): Likewise.
57148         * modules/xstrtod (Depends-on): Likewise.
57149         * modules/yesno (Depends-on): Likewise.
57150
57151 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57152
57153         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57154         needless checks.
57155
57156 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57157
57158         Merge from coreutils.  Among other things,
57159         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57160         * lib/fd-safer.c: New file.
57161         * lib/fcntl-safer.h, open-safer.c: Remove.
57162         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57163         * lib/dup-safer.c: Include unistd-safer.h first.
57164         Don't include errno.h.
57165         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57166         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57167         * lib/file-type.c: Rely on file-type.h change.
57168         * lib/getloadavg.c: Include unistd-safer.h.
57169         (getloadavg): Use safer open.
57170         * lib/getusershell.c: Include "stdio-safer.h".
57171         (getusershell): Use safer fopen.
57172         * lib/long-options.c (long_options): Use NULL rather than 0.
57173         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57174         'free'.
57175         * lib/modechange.c: Likewise.
57176         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57177         (MODE_DONE): New constant.
57178         (struct mode_change): Remove 'next' member.
57179         (make_node_op_equals): New function; like the old one of the
57180         same name, except it allocates an array.
57181         (mode_compile, mode_create_from_ref): Use it.
57182         (mode_compile): Allocate result as an array, not a linked list.
57183         Parse octal string ourself, so that we catch mistakes like "+0".
57184         (mode_adjust): Arg is an array, not a linked list.
57185         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57186         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57187         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57188         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57189         Remove.  This is now stat-macros.h's job.
57190         (talloc): Remove.  All callers replaced by xalloc, so that
57191         our invokers don't have to worry about reporting memory failures.
57192         (make_node_op_equals): Remove.
57193         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57194         New constants.
57195         (struct mode_change): Moved here from modechange.h.
57196         (mode_append_entry): Remove.
57197         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57198         apps to have incorrect behavior.  Use simpler algorithm for head
57199         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57200         Detect more invalid usages rather than having somewhat-random behavior.
57201         Don't insert an "a=" action, as that leads to incorrect behavior.
57202         (mode_compile, mode_create_from_ref): Return NULL on error instead
57203         of an enum, since now there's only one way to have an error.  All
57204         callers changed.
57205         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57206         at the correct time.  Simplify calculation of "+u" and its ilk.
57207         Don't mishandle "+X".
57208         (mode_free): Remove "register" and localize decls.
57209         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57210         (struct mode_change): Move to modechange.c; callers don't
57211         need to see this stuff.
57212         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57213         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57214         (mode_change, mode_adjust): Reflect the new signatures noted above.
57215         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57216         that might redefine system include files.
57217         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57218         (my_usleep): Use NULL rather than (void *) 0.
57219         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57220         Use siginterrupt to specify that system calls should be interrupted.
57221         (rpl_nanosleep): Move initialization of suspended closer to call of
57222         my_usleep.
57223         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57224         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57225         (desirable_utmp_entry): New function.
57226         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57227         using x2nrealloc, to simplify logic.
57228         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57229         size calculation.  Do not assume utmp file is a regular file.
57230         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57231         (READ_UTMP_CHECK_PIDS): New constant.
57232         * lib/save-cwd.c: Include unistd-safer.h.
57233         (save_cwd): Use fd_safer.
57234         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57235         [!_LIBC] Include "stat-macros.h" instead.
57236         * lib/unistd-safer.h (fd_safer): New decl.
57237
57238 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * modules/getloadavg (Depends-on): Add unistd-safer.
57241         * modules/getusershell (Depends-on): Add stdio-safer.
57242         * modules/lstat (Depends-on): Remove xalloc.
57243         * modules/mkstemp (Depends-on): Add stat-macros.
57244         * modules/modechange (Depends-on): Remove xstrtol.
57245         Add stat-macros, xalloc.
57246         * modules/save-cwd (Depends-on): Add unistd-safer.
57247         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57248         * modules/unistd-safer (Files): Add lib/fd-safer.c
57249         (Makefile.am): Remove lib_SOURCES.
57250
57251         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57252         Remove fcntl-safer; unistd-safer supersedes it.
57253
57254 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57257         AC_HEADER_STAT.
57258         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57259         (gl_PREREQ_CHOWN): Remove.
57260         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57261         it.  Don't require AC_HEADER_STAT.
57262         (gl_PREREQ_LSTAT): Remove.
57263         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57264         Don't require AC_HEADER_STAT.
57265         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57266         (gl_PREREQ_RMDIR): Remove.
57267         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57268         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57269         the stat-macros module a prerequisite.
57270         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57271         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57272         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57273         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57274         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57275         variable names.
57276         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57277         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57278         variable prefixes.
57279         * m4/fcntl-safer.m4: Remove.
57280         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57281         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57282         Invoke gl_PREREQ_FD_SAFER.
57283         (gl_PREREQ_FD_SAFER): New macro.
57284         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57285         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57286         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57287         Remove duplicate call to AC_LIBOBJ(readutmp).
57288         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57289
57290         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57291         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57292
57293 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57294
57295         * MODULES.html.sh (Misc): Add byteswap.
57296
57297 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57298
57299         * modules/getcwd (Depends-on): Add extensions.
57300         * modules/openat (Depends-on): Likewise.
57301
57302 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57303
57304         * modules/byteswap: New file.
57305
57306 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57307
57308         * m4/byteswap.m4: New file.
57309
57310 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57311
57312         * lib/byteswap_.h: New file.
57313
57314 2005-04-25  Karl Berry  <karl@gnu.org>
57315
57316         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57317
57318 2005-04-25  Albert Chin  <china@thewrittenword.com>
57319
57320         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57321         Toolkit C bug.
57322
57323 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57324
57325         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57326         (func_ln_if_changed) Remove forcibly for no error message
57327         in case file does not exist.
57328
57329 2005-04-19  Simon Josefsson  <jas@extundo.com>
57330
57331         * gnulib-tool (Options): Make --symlink mean --symbolic.
57332
57333 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57334
57335         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57336
57337 2005-04-16  Simon Josefsson  <jas@extundo.com>
57338
57339         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57340
57341 2005-04-15  Simon Josefsson  <jas@extundo.com>
57342
57343         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57344
57345 2005-04-15  Simon Josefsson  <jas@extundo.com>
57346
57347         * gnulib-tool: Rename --symlink to --symbolic.
57348
57349 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57350
57351         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57352         symbolic links to files instead of copying/moving.  Add --aux-dir,
57353         specifying directory relative --dir where auxiliary build tools
57354         are placed.
57355
57356 2005-04-14  Bruno Haible  <bruno@clisp.org>
57357
57358         * modules/allocsa (License): Change to LGPL.
57359         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57360
57361 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57364         that "UTC +1 second" continues to work.  Problem reported
57365         by Dmitry V. Levin.
57366         (relunit_snumber): New rule.
57367         (relunit): Use it.
57368
57369 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * lib/getdate.y (universal_time_zone_table): New constant.
57372         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57373         universal_time_zone_table.
57374         (lookup_zone): Prefer universal_time_zone_table to
57375         local_time_zone_table, so that "GMT" time stamps are allowed in
57376         London during the summer.  Problem reported by Ian Abbott.
57377
57378 2005-04-12  Jim Meyering  <jim@meyering.net>
57379
57380         * lib/human.c (humblock): Set *options even when returning due to
57381         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57382         warning from gcc-4.
57383
57384 2005-04-09  Jim Meyering  <jim@meyering.net>
57385
57386         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57387         -Wuninitialized: initialize tm0.tm_year.
57388
57389 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57390
57391         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57392         count, since there's no maximum.  All uses changed.
57393         Add member dsts_seen.
57394         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57395         not being INT_MAX.
57396         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57397         Use pc_rels_seen to decide whther a date is absolute.
57398
57399         * lib/getdate.y (number): Don't overwrite year.
57400         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57401         check.
57402
57403 2005-04-02  Simon Josefsson  <jas@extundo.com>
57404
57405         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57406         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57407
57408 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57409
57410         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57411         where no absolute path name can be longer than PATH_MAX.
57412
57413 2005-03-27  Jim Meyering  <jim@meyering.net>
57414
57415         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57416
57417 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57418
57419         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57420         "one's complement" -> "ones' complement" in comment, as per Knuth.
57421         "value of type" -> "type or expression" in comment.
57422         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57423
57424 2005-03-26  Jim Meyering  <jim@meyering.net>
57425
57426         Comment nits.
57427         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57428         Correct typos: s/or/of/.
57429
57430 2005-03-26  Jim Meyering  <jim@meyering.net>
57431
57432         * modules/check-include-files: Move to ../ and rename to...
57433         * check-module: ...this.
57434
57435 2005-03-25  Jim Meyering  <jim@meyering.net>
57436
57437         * modules/xvasprintf (Files): Add xalloc.h.
57438
57439 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57440
57441         * modules/gettext (Files): config/config.rpath ->
57442         build-aux/config.rpath
57443         * modules/iconv (Files): Likewise.
57444         Problem reported by Oskar Liljeblad.
57445
57446 2005-03-23  Jim Meyering  <jim@meyering.net>
57447
57448         * modules/check-include-files: New script to check for
57449         missing dependencies, multiple includes, etc.
57450
57451         * modules/c-strtold (Depends-on): Add xalloc.
57452         * modules/c-strtod (Depends-on): Add xalloc.
57453         * modules/hash (Depends-on): Add xalloc.
57454         (Files): Remove lib/xalloc.h.
57455
57456         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57457         * modules/userspec (Files): Add lib/inttostr.h.
57458
57459 2005-03-23  Jim Meyering  <jim@meyering.net>
57460
57461         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57462
57463 2005-03-22  Jim Meyering  <jim@meyering.net>
57464
57465         * modules/stat-macros: New module.
57466         * modules/canonicalize, modules/euidaccess, modules/file-type,
57467         * modules/filemode, modules/lchown, modules/makepath,
57468         * modules/rmdir, modules/stat: Depend on new stat-macros module
57469         rather than listing lib/stat-macros.h manually.
57470         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57471
57472 2005-03-22  Jim Meyering  <jim@meyering.net>
57473
57474         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57475
57476 2005-03-22  Bruno Haible  <bruno@clisp.org>
57477
57478         * config/srclist.txt: Replace target directory 'config' with
57479         'build-aux'.
57480         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57481         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57482         ../build-aux/.
57483
57484 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57485
57486         * modules/chdir-long (Depends-on): Add mempcpy.
57487
57488         * modules/acl, modules/backupfile, modules/c-strtod,
57489         modules/c-strtold, modules/canon-host, modules/canonicalize,
57490         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57491         modules/exclude, modules/exitfail, modules/file-type,
57492         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57493         modules/getdate, modules/getline, modules/getpagesize,
57494         modules/getpass, modules/getugroups, modules/group-member,
57495         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57496         modules/inttostr, modules/long-options, modules/makepath,
57497         modules/md5, modules/memcasecmp, modules/memcoll,
57498         modules/modechange, modules/mountlist, modules/path-concat,
57499         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57500         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57501         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57502         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57503         modules/strftime, modules/strndup, modules/strverscmp,
57504         modules/timespec, modules/unlocked-io, modules/userspec,
57505         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57506         modules/yesno:
57507         Remove lib_SOURCES line from Makefile.am section, as this is now
57508         done automatically by the corresponding Autoconf macro.
57509
57510 2005-03-21  Jim Meyering  <jim@meyering.net>
57511
57512         Changes imported from coreutils.
57513
57514         * lib/cycle-check.c: Don't include xalloc.h.
57515
57516         * lib/path-concat.c: Don't include assert.h.
57517         (path_concat): Remove assertion that would have triggered
57518         for ABASE starting with more than one slash.
57519         Reported by Andreas Schwab.
57520
57521         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57522         properly when ABASE is an absolute file name.
57523         Correct the description of this function.
57524         Include <assert.h>.
57525         Add an assertion and a test driver.
57526         This fixes a bug introduced on 2004-07-02.
57527         Andreas Schwab reported the resulting failure of cp --parents:
57528         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57529
57530 2005-03-21  Jim Meyering  <jim@meyering.net>
57531
57532         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57533         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57534
57535 2005-03-21  Jim Meyering  <jim@meyering.net>
57536         and  Paul Eggert  <eggert@cs.ucla.edu>
57537
57538         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57539         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57540         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57541         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57542         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57543         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57544         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57545         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57546         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57547         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57548         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57549         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57550         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57551         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57552         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57553         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57554         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57555         for these modules.
57556
57557 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57558
57559         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57560         (which shouldn't happen), generate nothing instead of returning 0
57561         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57562
57563 2005-03-16  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57566         HAVE_LONGLONG_64BIT.
57567
57568 2005-03-16  Bruno Haible  <bruno@clisp.org>
57569
57570         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57571         HAVE_LONGLONG_64BIT.
57572
57573 2005-03-16  Bruno Haible  <bruno@clisp.org>
57574
57575         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57576         HAVE_LONGLONG_64BIT.
57577
57578 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57579
57580         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57581         reliably distinguish strftime failure from empty output on POSIX
57582         hosts.
57583
57584 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57585
57586         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57587         (iconv_string): Don't guess a size-zero buffer, as that might cause
57588         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57589         result would be 'too large', where 'too large' is (heuristically)
57590         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57591         overflow concerns.  This will prevent some unwanted malloc failures
57592         when the inputs are very large.
57593
57594 2005-03-15  Karl Berry  <karl@gnu.org>
57595
57596         * config/srclist.txt (config.rpath): from gettext.
57597         * config/config.rpath: update.
57598
57599 2005-03-15  Bruno Haible  <bruno@clisp.org>
57600
57601         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57602         to 'negate'.
57603
57604         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57605         variable.
57606
57607         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57608         results.
57609
57610 2005-03-14  Simon Josefsson  <jas@extundo.com>
57611
57612         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57613         <fx@gnu.org>.
57614
57615 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57616
57617         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57618         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57619         intprops.h.
57620         * lib/strtol.c: Likewise.
57621
57622 2005-03-14  Jim Meyering  <jim@meyering.net>
57623
57624         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57625         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
57626         to be nonzero so that we (and caller) can detect the difference
57627         between a valid zero-length expansion and an error return, even
57628         when the underlying strftime fails before writing anything into
57629         that location.
57630
57631 2005-03-14  Bruno Haible  <bruno@clisp.org>
57632
57633         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
57634         Update from GNU gettext 0.14.3.
57635
57636 2005-03-10  Jim Meyering  <jim@meyering.net>
57637
57638         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
57639
57640 2005-03-10  Jim Meyering  <jim@meyering.net>
57641
57642         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
57643         so that this module works on systems without fchdir.
57644
57645 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
57646
57647         Factor int-properties macros into a single file, except for
57648         glibc-related files.
57649         * lib/intprops.h: New file.
57650         * lib/getloadavg.c: Include it instead of limits.h.
57651         (INT_STRLEN_BOUND): Remove.
57652         * lib/human.c: Include intprops.h.
57653         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
57654         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
57655         302/1000.
57656         * lib/inttostr.h: Include intprops.h instead of limits.h.
57657         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
57658         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
57659         for consistency with intprops.h.
57660         (time_t_is_integer, twos_complement_arithmetic): Use them.
57661         * lib/sig2str.h: Include <signal.h>, intprops.h.
57662         (INT_STRLEN_BOUND): Remove.
57663         * lib/strftime.c (TYPE_SIGNED): Remove.
57664         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
57665         * lib/strtol.c: Adjust comments to match intprops.h.
57666         * lib/userspec.c: Include intprops.h.
57667         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
57668         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
57669         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
57670         instead of rolling our own expressions.
57671         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
57672
57673         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
57674         instead of int.
57675         (my_strftime): Do not mishandle years close to INT_MAX, by doing
57676         the right thing even if adding 1900 would overflow.  Similarly
57677         for tm_mon + 1 and tm_yday + 1.
57678         Make %Y always equivalent to %C%y, and similarly for %G and %g.
57679         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
57680         (DO_SIGNED_NUMBER): New macro.
57681         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
57682
57683 2005-03-07  Bruno Haible  <bruno@clisp.org>
57684
57685         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
57686
57687 2005-03-07  Bruno Haible  <bruno@clisp.org>
57688
57689         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
57690
57691 2005-03-04  Derek R. Price  <derek@ximbiot.com>
57692
57693         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
57694         (func_import): Only replace files via --import when they have actually
57695         changed.
57696
57697 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57698
57699         * m4/mmap-anon.m4: New file.
57700         * m4/pagealign_alloc.m4: New file.
57701
57702 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57703             Bruno Haible  <bruno@clisp.org>
57704
57705         * modules/pagealign_alloc: New file.
57706         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
57707
57708 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57709             Bruno Haible  <bruno@clisp.org>
57710
57711         * lib/pagealign_alloc.h: New file.
57712         * lib/pagealign_alloc.c: New file.
57713
57714 2005-03-03  Bruno Haible  <bruno@clisp.org>
57715
57716         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
57717         Use an all-permissive copyright notice, recommended by RMS.
57718
57719 2005-03-02  Bruno Haible  <bruno@clisp.org>
57720
57721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
57722         of AIX, the replacement has to be done only after <string.h> is
57723         included, therefore not in config.h. stpncpy.h does the replacement,
57724         and stpncpy.c uses it.
57725
57726 2005-03-02  Bruno Haible  <bruno@clisp.org>
57727
57728         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
57729         stpncpy.c uses it.
57730
57731 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
57734         The workaround isn't strictly needed for POSIX conformance, and
57735         it's too much of a pain to configure and maintain.  We'll ask
57736         people to fix their kernels instead.
57737         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
57738         (NANOSLEEP_BUG_WORKAROUND): Remove.
57739         (xnanosleep): Remove the workaround.
57740
57741 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57742
57743         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
57744         Reported by Derek Price.
57745         (Include): Add "timespec.h".
57746
57747         * modules/xnanosleep (Depends-on): Remove gethrxtime.
57748
57749 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57750
57751         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
57752         to detect nanosleep bug.
57753
57754 2005-03-01  Bruno Haible  <bruno@clisp.org>
57755
57756         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
57757
57758 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57759
57760         * modules/gethrxtime: New file.
57761         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
57762         (Depends-on): Add gethrxtime.
57763         (configure.ac): Add gl_XNANOSLEEP.
57764         (Makefile.am): Remove lib_SOURCES line.
57765
57766 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57767
57768         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
57769         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
57770
57771 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57772
57773         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
57774         * lib/timespec.h (gettime): Return void, since it always
57775         succeeds now.  All uses changed.
57776         * lib/gettime.c (gettime) Likewise.
57777         [HAVE_NANOTIME]: Prefer nanotime.
57778         Assume gettimeofday succeeds, as POSIX requires.
57779         Assime time () succeeds, since other code already does.
57780         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
57781         (timespec_subtract): Remove.
57782         (NANOSLEEP_BUG_WORKAROUND): New constant.
57783         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
57784         things considerably.  Use it only on GNU/Linux hosts, since the
57785         workaround shouldn't be needed elsewhere.
57786
57787 2005-02-24  Bruno Haible  <bruno@clisp.org>
57788
57789         * modules/gettext (Files): Add m4/glibc2.m4.
57790
57791 2005-02-24  Bruno Haible  <bruno@clisp.org>
57792
57793         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
57794         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
57795         * m4/progtest.m4:
57796         Update from GNU gettext 0.14.2.
57797         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
57798
57799 2005-02-24  Bruno Haible  <bruno@clisp.org>
57800
57801         * lib/localcharset.c: Update from GNU gettext 0.14.2.
57802         * lib/config.charset: Update from GNU gettext 0.14.2.
57803
57804 2005-02-24  Bruno Haible  <bruno@clisp.org>
57805
57806         * lib/gettext.h: Update from GNU gettext 0.14.2.
57807
57808 2005-02-23  Simon Josefsson  <jas@extundo.com>
57809
57810         * m4/iconvme.m4: New file.
57811
57812 2005-02-23  Jim Meyering  <jim@meyering.net>
57813
57814         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
57815         change.
57816         Thanks to Bruno Haible for catching it.
57817
57818 2005-02-22  Simon Josefsson  <jas@extundo.com>
57819
57820         * modules/iconvme: New file.
57821
57822         * MODULES.html.sh: Add iconvme.
57823
57824 2005-02-22  Simon Josefsson  <jas@extundo.com>
57825
57826         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
57827
57828 2005-02-22  Simon Josefsson  <jas@extundo.com>
57829
57830         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
57831
57832 2005-02-22  Jim Meyering  <jim@meyering.net>
57833
57834         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
57835         s/ifndef/ifdef/.
57836
57837 2005-02-20  Neil Conway  <neilc@samurai.com>
57838
57839         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
57840         returned by OSX/Darwin if the specified buffer is not large
57841         enough for the hostname.
57842
57843 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57844
57845         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
57846         pass it to _help, otherwise the latter coredumps trying to
57847         dereference state.root_argp.
57848
57849 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57850
57851         * modules/chdir-long (Depends-on): Add memrchr.
57852         * modules/memrchr (Files): Add lib/memrchr.h.
57853         (Include): "memrchr.h".
57854
57855 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57856
57857         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
57858
57859 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57860
57861         * lib/memrchr.h: New file.
57862         * lib/chdir-long.c: Include it.
57863         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
57864         Don't bother including stddef.h.
57865
57866 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57867
57868         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
57869         inclusion.
57870         Include <sys/types.h>, for dev_t.
57871         (ME_DUMMY, ME_REMOTE): Move from here....
57872         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
57873         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
57874         Dmitry V. Levin.
57875         Include mountlist.h first, to test the interface.
57876
57877 2005-01-29  Bruno Haible  <bruno@clisp.org>
57878
57879         * lib/progname.c (program_name): Initialize.
57880         Needed when linking statically on MacOS X.
57881
57882 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57883
57884         Sync from coreutils.
57885         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
57886         (Depends-on): Add c-strtod.
57887         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
57888
57889 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57890
57891         Sync from coreutils.
57892         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
57893
57894         Remove files that are specific to coreutils.
57895         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
57896
57897 2005-01-28  Bruno Haible  <bruno@clisp.org>
57898
57899         * modules/javacomp: New file.
57900         * MODULES.html.sh (Java): Add javacomp.
57901
57902 2005-01-28  Bruno Haible  <bruno@clisp.org>
57903
57904         * m4/javacomp.m4: New file, from GNU gettext.
57905
57906 2005-01-28  Bruno Haible  <bruno@clisp.org>
57907
57908         * lib/javacomp.sh.in: New file, from GNU gettext.
57909         * lib/javacomp.h: New file, from GNU gettext.
57910         * lib/javacomp.c: New file, from GNU gettext.
57911
57912 2005-01-26  Simon Josefsson  <jas@extundo.com>
57913
57914         * lib/gai_strerror.c: Use GPL in header.
57915
57916 2005-01-26  Bruno Haible  <bruno@clisp.org>
57917
57918         * modules/javaexec: New file.
57919         * MODULES.html.sh (Java): Add javaexec.
57920
57921 2005-01-26  Bruno Haible  <bruno@clisp.org>
57922
57923         * m4/javaexec.m4: New file, from GNU gettext.
57924
57925 2005-01-26  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/javaexec.sh.in: New file, from GNU gettext.
57928         * lib/javaexec.h: New file, from GNU gettext.
57929         * lib/javaexec.c: New file, from GNU gettext.
57930
57931 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57932
57933         * modules/lchown (Depends-on): Remove lchown.h
57934
57935 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57936
57937         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
57938         must be defined if the header file was not found, in order
57939         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
57940
57941 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57942
57943         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
57944         initializers for struct pentry_state.
57945         (__argp_error): Check return value of __asprintf
57946         (__argp_failure): Translate error message
57947
57948         * lib/argp-parse.c: Removed braces around the expansion of N_()
57949
57950 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57951
57952         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
57953         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
57954         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
57955         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
57956         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
57957         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
57958         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
57959         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
57960         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
57961         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
57962         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
57963         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
57964         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
57965         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
57966         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
57967         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
57968         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
57969         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
57970         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
57971         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
57972         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
57973         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
57974         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
57975         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
57976         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
57977         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
57978         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
57979         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
57980         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
57981         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
57982         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
57983         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
57984         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
57985         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
57986         xstrtol.m4, xstrtoumax.m4, yesno.m4:
57987         Use an all-permissive copyright notice, recommended by RMS.
57988
57989 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57990
57991         * modules/chdir-long (Depends-on): Remove mempcpy.
57992
57993 2005-01-21  Jim Meyering  <jim@meyering.net>
57994
57995         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
57996         same value as for Solaris 9.
57997
57998         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
57999         component length.  This included changing the parameter to be
58000         of type `char *' rather than `char const *'.
58001         * lib/chdir-long.h (chdir_long): Update prototype.
58002
58003         * lib/openat.c (fdopendir, fstatat): New functions.
58004         * lib/openat.h: Include headers required for use of DIR and struct
58005         stat.
58006         [AT_SYMLINK_NOFOLLOW]: Define.
58007         (fdopendir, fstatat): Add prototypes.
58008
58009 2005-01-21  Bruno Haible  <bruno@clisp.org>
58010
58011         * modules/classpath: New file.
58012         * MODULES.html.sh (Java): Add classpath.
58013
58014 2005-01-21  Bruno Haible  <bruno@clisp.org>
58015
58016         * lib/classpath.h: New file, from GNU gettext.
58017         * lib/classpath.c: New file, from GNU gettext.
58018
58019 2005-01-20  Simon Josefsson  <jas@extundo.com>
58020
58021         * modules/version-etc-fsf: New file.
58022
58023 2005-01-20  Simon Josefsson  <jas@extundo.com>
58024
58025         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58026         * lib/version-etc.c: Remove version_etc_copyright.
58027         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58028         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58029
58030 2005-01-20  Simon Josefsson  <jas@extundo.com>
58031
58032         * lib/base64.h (isbase64): Add.
58033
58034         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58035         using a unsigned prototype, don't inline.
58036         (base64_decode): Use it.
58037
58038 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58039
58040         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58041         it.
58042
58043 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58044
58045         * lib/save-cwd.c (save_cwd): Remove code to support the case
58046         where fchdir is missing or flaky.
58047
58048 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58049
58050         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58051
58052 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58053
58054         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58055         AC_LIBSOURCES now does this.
58056         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58057         with new ullong_max module.
58058
58059 2005-01-19  Bruno Haible  <bruno@clisp.org>
58060
58061         * modules/sh-quote: New file.
58062         * MODULES.html.sh (Executing programs): Add sh-quote.
58063
58064 2005-01-19  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/sh-quote.h: New file, from GNU gettext.
58067         * lib/sh-quote.c: New file, from GNU gettext.
58068
58069 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58070
58071         Merge from coreutils.
58072         * m4/ullong_max.m4: New file.
58073         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58074         (gl_MACROS): Assume localeconv exists.
58075
58076 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         Merge changes from coreutils, as described below in several
58079         changelogs dated today.
58080
58081         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58082         (O_DIRECTORY): Remove; not needed here, since "." must be
58083         a directory.  All uses removed.
58084         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58085         universal on Suns, and we also need to test for IRIX.
58086         Revamp code to use 'if' rather than '#if'.
58087         Avoid unnecessary comparison of cwd->desc to 0.
58088
58089         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58090         for known valid error numbers rather than observed invalid ones.
58091
58092 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58093
58094         * modules/ullong_max: New file.
58095
58096         * modules/chdir-long, modules/openat: New files.
58097         * modules/save-cwd (Depends-on): Depend on chdir-long.
58098         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58099
58100 2005-01-18  Jim Meyering  <jim@meyering.net>
58101
58102         Merge from coreutils.
58103         * m4/chdir-long.m4, m4/openat.m4: New files.
58104         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58105         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58106         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58107         is sane and DOES follow symlinks.  Besides, testing 20 different
58108         systems found no broken chown implementations.
58109         Prompted by a change in rsync's copy of this macro.
58110         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58111
58112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58113
58114         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58115         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58116         NULL-means-set-to-current-time semantics.
58117         Remove temporary file immediately, rather than waiting
58118         for configure's at-exit trap code to do it.
58119
58120 2005-01-18  Jim Meyering  <jim@meyering.net>
58121
58122         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58123
58124         * lib/utimens.c (futimens): Account for the fact that futimes
58125         can also fail with errno == ENOSYS or errno == ENOENT.
58126         Patch from Dmitry V. Levin.
58127
58128         Change the name of the robust chdir function from chdir to chdir_long.
58129         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58130         (restore_cwd): Use chdir_long, not chdir.
58131         * lib/chdir-long.c: Renamed from chdir.c.
58132         * lib/chdir-long.h: Renamed from chdir.h.
58133         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58134         Hurd.
58135
58136 2005-01-18  Bruno Haible  <bruno@clisp.org>
58137
58138         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58139         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58140         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58141         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58142         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58143         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58144         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58145         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58146         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58147         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58148         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58149         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58150         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58151         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58152         Use an all-permissive copyright notice, recommended by RMS.
58153
58154 2005-01-18  Bob Proulx  <bob@proulx.com>
58155
58156         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58157         simplify offsetof() macro construct to avoid compile failure with
58158         native HP-UX 11.0 ANSI C compiler.
58159
58160 2005-01-17  Bruno Haible  <bruno@clisp.org>
58161
58162         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58163         redundant because stpncpy.m4 takes care of it.
58164
58165 2005-01-17  Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58168
58169 2005-01-17  Bruno Haible  <bruno@clisp.org>
58170
58171         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58172         used.
58173
58174 2005-01-17  Bruno Haible  <bruno@clisp.org>
58175
58176         * lib/fwriteerror.h (fwriteerror): Change specification to include
58177         fclose.
58178         * lib/fwriteerror.c: Include <stdbool.h>.
58179         (fwriteerror): At the end, close the file stream. Record whether
58180         stdout was already closed.
58181
58182 2005-01-17  Bruno Haible  <bruno@clisp.org>
58183
58184         * lib/execute.c (environ): Declare if needed.
58185         * lib/pipe.c (environ): Likewise.
58186         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58187
58188 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58189
58190         * modules/argp: Depend on vsnprintf
58191
58192 2005-01-10  Jim Meyering  <jim@meyering.net>
58193
58194         * modules/closeout (Depends-on): Add atexit.
58195
58196 2005-01-06  Bruno Haible  <bruno@clisp.org>
58197
58198         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58199
58200 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58201
58202         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58203         definitions to be after all include files, to avoid collisions.
58204         Problem reported by Bob Proulx.
58205
58206 2005-01-04  Jim Meyering  <jim@meyering.net>
58207
58208         Changes imported from coreutils.
58209         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58210         as the mkstemp template, use a temporary directory and an
58211         8.3-friendly template to avoid trouble on systems like DJGPP.
58212         Reported by Juan M. Guerrero via Stepan Kasal.
58213         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58214         close. Remove the temporary directory right away, rather than waiting
58215         for configure's at-exit trap code to do it.
58216         Suggestion from Stepan Kasal.
58217
58218 2005-01-01  Simon Josefsson  <jas@extundo.com>
58219
58220         * gnulib-tool: Print #include directives when --import'ing.
58221
58222 2004-12-28  Simon Josefsson  <jas@extundo.com>
58223
58224         * tests/test-base64.c: Include required header files.  Remove
58225         unused variables.
58226
58227 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         * modules/error (Depends-on): Remove gettext.
58230
58231 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58234         not needed.  This removes a dependency on the gettext module.
58235         [defined _LIBC]: Do not include <libintl.h>; not needed.
58236
58237 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58238
58239         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58240         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58241
58242 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58243
58244         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58245         HAVE_DECL_STRTOLD.
58246
58247 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58248
58249         * modules/getdate (Depends-on): Remove alloca-opt.
58250
58251 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58252
58253         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58254
58255 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         * lib/argp-parse.c: Include <stddef.h>.
58258         (alignof, alignto): New macros.
58259         (parser_init): Don't assume that void * is aligned sufficiently
58260         for struct option.
58261
58262         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58263         need to extend the stack.
58264         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58265         large.
58266
58267 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58268
58269         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58270
58271 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58272
58273         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58274         (2004-10-24) change.  Apparently this was a false alarm.
58275
58276         * modules/getdate: Depend on alloca-opt, not alloca.
58277
58278 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58279
58280         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58281         Remove now-obsolete comment about AIX.
58282         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58283         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58284         (YYMAXDEPTH): New macro.
58285
58286 2004-12-18  Simon Josefsson  <jas@extundo.com>
58287
58288         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58289
58290 2004-12-18  Bruno Haible  <bruno@clisp.org>
58291
58292         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58293
58294 2004-12-18  Bruno Haible  <bruno@clisp.org>
58295
58296         * lib/fatal-signal.c (fatal_signals): Make non-const.
58297         (init_fatal_signals): New function.
58298         (uninstall_handlers, install_handlers): Ignore signals that were set to
58299         SIG_IGN.
58300         (at_fatal_signal): Call init_fatal_signals.
58301         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58302         SIG_IGN.
58303         Reported by Paul Eggert.
58304
58305 2004-12-18  Bruno Haible  <bruno@clisp.org>
58306
58307         * doc/alloca.texi: New file.
58308         * doc/alloca-opt.texi: New file.
58309
58310 2004-12-17  Jim Meyering  <jim@meyering.net>
58311
58312         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58313         Otherwise, install-sh could exit with improper exit status when
58314         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58315
58316 2004-12-16  Simon Josefsson  <jas@extundo.com>
58317
58318         * tests/test-base64.c: Add license.
58319
58320 2004-12-15  Stepan Kasal  <address@hidden>
58321
58322         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58323
58324 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58325
58326         * modules/getcwd (Files): Add m4/d-ino.m4.
58327         Suggested by Mark D. Baushke.
58328
58329 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * lib/getdate.y (textint): New member "negative".
58332         (time_zone_hhmm): New function.
58333         Expect 14 shift-reduce conflicts, not 13.
58334         (o_colon_minutes): New rule.
58335         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58336         (yylex): Set the "negative" member of signed numbers.
58337
58338 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58339
58340         * doc/getdate.texi (Time of day items, Time zone items):
58341         Describe new formats +00:00, UTC+00:00.
58342
58343 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58344
58345         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58346         spurious "-l"s.  Problem reported by Stepan Kasal.
58347
58348 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58351         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58352
58353 2004-12-04  Simon Josefsson  <jas@extundo.com>
58354
58355         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58356         Vandoorselaere <yoann@prelude-ids.org>.
58357
58358 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58359
58360         Changes imported from coreutils.
58361         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58362         exist.
58363         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58364
58365 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58366
58367         Changes imported from coreutils.
58368         * lib/hard-locale.c: Assume <locale.h> exists.
58369         Include "strdup.h".
58370         (GLIBC_VERSION): New macro.
58371         (hard_locale): Assume setlocale exists.
58372         Rewrite to avoid #ifdef.
58373         Use strdup rather than malloc + strcpy.
58374         * lib/human.c: Assume <locale.h> exists.
58375         (human_readable): Assume localeconv exists.
58376
58377 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58378
58379         * modules/hard-locale (Depends-on): Add strdup.
58380
58381 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58382
58383         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58384         convert T2, not T.  (Imported from libc.)
58385
58386 2004-11-30  Simon Josefsson  <jas@extundo.com>
58387
58388         * modules/restrict (License): Change to LGPL.
58389
58390 2004-11-30  Simon Josefsson  <jas@extundo.com>
58391
58392         * m4/restrict.m4: Add copyright and copying conditions.
58393
58394 2004-11-30  Simon Josefsson  <jas@extundo.com>
58395
58396         * m4/base64.m4: New file.
58397
58398 2004-11-30  Simon Josefsson  <jas@extundo.com>
58399
58400         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58401         base64.
58402
58403         * tests/test-base64.c: New file.
58404
58405         * modules/base64: New file.
58406
58407 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58408
58409         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58410         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58411
58412         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58413
58414 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58415
58416         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58417         (__getcwd.c): Don't restore errno; glibc doesn't.
58418         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58419         first, falling back to our code only if its results look suspicious.
58420         Ensure that the resulting buffer is only as large as necessary.
58421
58422         * lib/readutmp.c: Include readutmp.h first.
58423         Include <errno.h>, since readutmp.h no longer does that.
58424         * lib/readutmp.h: Don't include <errno.h>,
58425         <sys/param.h>, <time.h>; not needed to establish interface.
58426         (errno): Remove decl.
58427         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58428         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58429         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58430
58431 2004-11-28  Simon Josefsson  <jas@extundo.com>
58432
58433         * lib/base64.h, base64.c: New file.
58434
58435 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58436
58437         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58438
58439 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58440
58441         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58442         (Depends-on): Remove pathmax, same.  Add mempcpy.
58443         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58444         (Makefile.am): Append getcwd.h to lib_SOURCES.
58445         (Include): Add getcwd.h.
58446         (Maintainer): Change from Jim Meyering to "all, glibc",
58447         since getdate now uses intended-for-glibc code.
58448         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58449         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58450
58451 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58452
58453         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58454         HP's ANSI C compiler.
58455         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58456         Declaring int functions causes warnings on some modern systems and
58457         shouldn't be needed to compile on ancient ones.
58458         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58459         defined.
58460
58461         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58462         with the following changes.
58463         (__set_errno): Parenthesize properly.
58464         Include <stdbool.h>.
58465         (MIN, MAX, MATCHING_INO): New macros.
58466         (__getcwd): Define with prototype, not K&R form.
58467         Use heuristics to allocate default buffer on stack if possible.
58468         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58469         behavior, and to avoid the PATH_MAX limit when computing
58470         ../../../../...
58471         Use MATCHING_INO to compare inode number to file.
58472         Check for arithmetic overflow in size calculations.
58473         Fix bug in reallocation of dot array that caused getcwd to fail
58474         on directories nested deeper than 75.
58475         Be more careful about saving errno on error.
58476         Do not use realloc; use only free+malloc, as this is a bit
58477         more flexible and avoids a needless copy operation.
58478         Do not inspect st_dev and st_ino for symbolic links; POSIX
58479         doesn't specify the latter.
58480         Check for closedir errors.
58481         Avoid needless casts.
58482         Use "#ifdef weak_alias" around weak_alias, to be like other
58483         glibc code.
58484         The following changes to getcwd.c have effect only when used in
58485         gnulib; they have no effect inside glibc proper.
58486         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58487         as alloca isn't used.
58488         (alloca, __alloca): Likewise.
58489         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58490         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58491         unconditionally, as gnulib assumes C89 or better.
58492         Do not include <sys/param.h>.
58493         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58494         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58495         better.
58496         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58497         Include <dirent.h> in a way that is compatible with modern Autoconf.
58498         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58499         New macros, if not already defined.
58500         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58501         Use "_LIBC", not "defined _LIBC", for consistency.
58502         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58503         a mempcpy module.
58504         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58505         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58506         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58507         credit only to Jim Meyering and adjust the copyright dates.
58508         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58509         <stdlib.h>, <unistd.h>, "pathmax.h".
58510         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58511         (INITIAL_BUFFER_SIZE): Remove.
58512         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58513
58514 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58515
58516         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58517         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58518         Use the _ONCE methods, for efficiency.
58519         Check for fcntl.h.  In test program, include <errno.h>
58520         and <fcntl.h> if available.  Remove old K&R cruft from
58521         test program.  Check for common errors in GNU/Linux,
58522         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58523         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58524         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58525         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58526         name accordingly.
58527         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58528         accommodate new getcwd.c.
58529         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58530         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58531         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58532         that's all we need now.
58533
58534 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58535
58536         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58537         argp-parse.c depends on getopt internals, that means we should
58538         always use our getopt, to be on the safe side.
58539         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58540         order not to spoil the result of an eventual previous invocation
58541         of gl_GETOPT_SUBSTITUTE.
58542
58543 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58544
58545         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58546         redefinition warnings. To avoid them, include the defines
58547         in `#if !defined __need_getopt ... #endif'. The only place
58548         where __getopt_argv_const is used is in definitions
58549         of getopt_long and getopt_long_only below, which are as well
58550         protected by `#ifndef __need_getopt'.
58551         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58552         __need_getopt after including <stdio.h> and <unistd.h> These
58553         headers might have defined it.
58554
58555 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58556
58557         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58558
58559 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58560
58561         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58562         (futimens): New function, which uses futimes if available.
58563         (futimens, utimens): Support timespec==NULL, with same semantics
58564         as utime and utimens.
58565         * lib/utimens.h (futimens): New decl.
58566
58567 2004-11-23  Jim Meyering  <jim@meyering.net>
58568
58569         * lib/getopt_.h: Remove trailing blanks.
58570
58571 2004-11-23  Jim Meyering  <jim@meyering.net>
58572
58573         * lib/__fpending.c: Add comment.
58574
58575 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58576
58577         * modules/canonicalize (Depends-on): Add xreadlink.
58578         Problem reported by James Youngman.
58579
58580 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58581
58582         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58583         New macros.
58584         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58585         optopt): Use them instead of invoking ## directly; otherwise, the
58586         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58587
58588 2004-11-19  Bruno Haible  <bruno@clisp.org>
58589
58590         * lib/strtok_r.c: Move comments from here...
58591         * lib/strtok_r.h: ... to here.
58592
58593 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58594
58595         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58596         implementations that mishandle size_t overflow.
58597
58598 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58599
58600         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58601         might fail.  Problem reported by Yoann Vandoorselaere.
58602         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58603         implementations that mishandle size_t overflow.
58604
58605 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * modules/canon-host (Depends-on): Add strdup.
58608
58609 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58610
58611         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58612
58613 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58614
58615         * lib/canon-host.c: Include "strdup.h".
58616         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58617         Use strdup instead of malloc/strcpy to duplicate strings.
58618
58619         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58620         (human_space_before_unit): New constant.
58621         * lib/human.c (human_readable): Support it.
58622
58623         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58624         (xgetcwd): Set errno correctly when failing.
58625         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
58626         the failure is actually due to a PATH_MAX problem.
58627
58628         Further getopt changes to make it more likely that glibc will
58629         buy the changes back.
58630         * lib/getopt.c (POSIXLY_CORRECT): New constant.
58631         (getopt): Use it, so to preserve glibc semantic
58632         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
58633         when compiling for libc.
58634         * lib/getopt_.h (__getopt_argv_const): Bring it back.
58635         (getopt_long, getopt_long_only): Use it.
58636
58637         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58638         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
58639         (getopt): Argv is now char * const *, as per standard.
58640         (_getopt_internal_r, _getopt_internal): Argv is now char **,
58641         not char *__getopt_argv_const *.
58642         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58643         _getopt_long_only_r): Likewise.
58644         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
58645         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58646         _getopt_long_r, _getopt_long_only_r): Likewise.
58647         * lib/getopt_.h (__getopt_argv_const): Remove.
58648         (getopt): Argv is now char * const *, as per standard.
58649
58650         * lib/getdate.y (tORDINAL): New token.
58651         (day, relunit): Allow it for relative times.
58652         (relative_time_table): Use tORDINAL for ordinals.
58653
58654 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58655
58656         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
58657         Document that "second" isn't allowed as an ordinal number.
58658
58659 2004-11-16  Jim Meyering  <jim@meyering.net>
58660
58661         * modules/closeout (Depends-on): Add fpending.
58662
58663 2004-11-15  Jim Meyering  <jim@meyering.net>
58664
58665         * lib/closeout.c: Include "__fpending.h" once again.
58666         Include <stdbool.h>.
58667         (close_stdout): Don't fail just because stdout was closed initially,
58668         since some programs don't write to stdout in the normal course of
58669         operation (other than --version and --help), and we don't want this
58670         function to make e.g. `touch file >&-' fail.
58671         But do fail if it was closed and someone has tried to write to it.
58672         E.g., `printf foo >&-' must fail.
58673
58674 2004-11-13  Jim Meyering  <jim@meyering.net>
58675
58676         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
58677
58678 2004-11-12  Simon Josefsson  <jas@extundo.com>
58679
58680         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
58681         small doc fix is still pending.
58682
58683 2004-11-11  Simon Josefsson  <jas@extundo.com>
58684
58685         * modules/strtok_r: New file.
58686
58687         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58688         strtok_r.
58689
58690 2004-11-11  Simon Josefsson  <jas@extundo.com>
58691
58692         * m4/strtok_r.m4: New file.
58693
58694         * m4/getopt.m4: Replace opterr.
58695
58696 2004-11-11  Simon Josefsson  <jas@extundo.com>
58697
58698         * lib/strtok_r.h, strtok_r.c: New file.
58699
58700 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58701
58702         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
58703         of replacing opterr, getopt, etc.  This should handle the
58704         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
58705
58706 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58707
58708         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
58709         we can stop lying to compilers about the constness of argv when we
58710         are compiled outside glibc.
58711         (getopt, getopt_long, getopt_long_only): Use it.
58712         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58713         _getopt_internal, getopt): Likewise.
58714         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58715         _getopt_long_only_r): Likewise.
58716         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58717         _getopt_long_r, _getopt_long_only_r): Likewise.
58718
58719         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
58720         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
58721         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
58722         the other external symbols.
58723         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
58724         declaration, since the above renaming now works around collisions.
58725
58726 2004-11-11  Jim Meyering  <jim@meyering.net>
58727
58728         * lib/linebreak.c: Remove trailing blanks.
58729         * lib/alloca_.h: Likewise.
58730         * lib/acosl.c: Likewise.
58731         * lib/euidaccess.c: Likewise.
58732         * lib/allocsa.h: Likewise.
58733
58734 2004-11-10  Simon Josefsson  <jas@extundo.com>
58735
58736         * m4/getaddrinfo.m4: New file.
58737
58738 2004-11-10  Simon Josefsson  <jas@extundo.com>
58739
58740         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
58741
58742 2004-11-10  Simon Josefsson  <jas@extundo.com>
58743
58744         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58745         getaddrinfo.
58746
58747         * modules/getaddrinfo: New file.
58748
58749 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
58752
58753 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         * lib/mktime.c (SHR): New macro, which is a portable
58756         substitute for >> that should work even on Crays.
58757         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
58758         Problem reported by Mark D. Baushke in
58759         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
58760         * lib/getdate.y (SHR): Likewise.
58761         (tm_diff): Use it.
58762         * lib/strftime.c (SHR): Likewise.
58763         (tm_diff): Use it.
58764         * lib/quotearg.c (struct quoting_options): Use unsigned int for
58765         quote_these_too, so that right shifts are well defined.  All uses
58766         changed.
58767
58768 2004-11-10  Jim Meyering  <jim@meyering.net>
58769
58770         Ensure that no close failure goes unreported.
58771         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
58772         return early when it seems there's nothing to flush.
58773         Don't include __fpending.h.
58774
58775 2004-11-10  Jim Meyering  <jim@meyering.net>
58776
58777         * modules/closeout (Depends-on): Remove fpending.
58778
58779 2004-11-10  Jim Meyering  <jim@meyering.net>
58780
58781         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
58782
58783 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
58786         gl_FUNC_STRFTIME.
58787         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
58788         and AC_REQUIRE when possible, to avoid duplicate checks.
58789         Check for <wchar.h>.
58790
58791 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58792
58793         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
58794
58795 2004-11-09  Bruno Haible  <bruno@clisp.org>
58796
58797         * m4/sockpfaf.m4: New file.
58798
58799 2004-11-05  Bruno Haible  <bruno@clisp.org>
58800
58801         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
58802         Reported by Mark D. Baushke <mdb@cvshome.org>.
58803
58804 2004-11-04  Bruno Haible  <bruno@clisp.org>
58805
58806         2004-09-11  Bruno Haible  <bruno@clisp.org>
58807                 * allocsa.valgrind: New file.
58808         2004-02-06  Bruno Haible  <bruno@clisp.org>
58809                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
58810                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
58811                 Reported by Christopher Seip <chris.seip@hp.com>.
58812
58813 2004-11-04  Bruno Haible  <bruno@clisp.org>
58814
58815         * modules/allocsa (Files): Add lib/allocsa.valgrind.
58816         (Makefile.am): Distribute it.
58817
58818 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58819
58820         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
58821         with errno == ERANGE if the buffer is too small.
58822         Problem reported by Mark D. Baushke.
58823
58824 2004-11-03  Albert Chin  <china@thewrittenword.com>
58825             Paul Eggert  <eggert@cs.ucla.edu>
58826
58827         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
58828         equivalent, substitute $ac_type for equivalent type rather than
58829         blindly using uint32_t *always* which won't work if uint32_t is not
58830         available.  Define _UINT32_T to work around typedef of uint32_t if
58831         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
58832         2.5.1.
58833
58834 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58835
58836         * m4/jm-macros.m4: Sync from coreutils.
58837         (gl_MACROS): Check for mbrlen, for pathchk.
58838         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
58839
58840 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58841
58842         * lib/xreadlink.c (MAXSIZE): New macro.
58843         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
58844         size does not exceed MAXSIZE.  Avoid cast.
58845         As suggested by Mark D. Baushke in
58846         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
58847         if readlink fails with buffer size just under MAXSIZE, try again
58848         with MAXSIZE.
58849
58850 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58851
58852         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
58853
58854 2004-11-02  Derek R. Price  <derek@ximbiot.com>
58855         and  Paul Eggert  <eggert@cs.ucla.edu>
58856
58857         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
58858         (get_date): Overparenthesize to avoid GCC warning.
58859
58860 2004-11-02  Bruno Haible  <bruno@clisp.org>
58861
58862         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
58863         returns void.
58864
58865 2004-11-02  Bruno Haible  <bruno@clisp.org>
58866
58867         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
58868         function returns void.
58869
58870 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58871
58872         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
58873         fflush_unlocked, flockfile, funlockfile, funlockfile,
58874         fputs_unlocked, putc_unlocked.
58875
58876 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58877
58878         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58879         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
58880         already declared.
58881
58882 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         * modules/getdate (Files): Add doc/getdate.texi.
58885         (Depends-on): Add setenv, xalloc.
58886
58887 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58888
58889         * lib/getdate.y: Add support for TZ="foo" within a date string.
58890         Fix some bugs near time_t boundaries.  Reject dates with
58891         out-of-range components, e.g., "Sept 31".
58892         Include <stdlib.h>, "setenv.h", "xalloc.h".
58893         (ISDIGIT_LOCALE): Remove; unused.
58894         Note that the TZ and time functions used here are not reentrant.
58895         (mktime_ok, get_tz): New functions.
58896         (TZBUFSIZE): New constant.
58897         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
58898         This requires that we sometimes generate our own TZ="XXX..." setting.
58899
58900 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58901
58902         * doc/getdate.texi: New file, from coreutils with modifications for
58903         the new TZ parsing.
58904
58905 2004-10-27  Derek R. Price  <derek@ximbiot.com>
58906
58907         * lib/mktime.c (not_equal_tm): Remove redundant check.
58908
58909 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58910
58911         * modules/regex (lib_SOURCES): Add regex.c.
58912         Reported by James Youngman in
58913         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
58914
58915 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58916
58917         * lib/getdate.y: Use Bison 1.875 features, and some minor
58918         code cleanups.  This change does not affect semantics.
58919         Don't include <stdlib.h>; no longer needed.
58920         Don't include unlocked-io.h; only the "#if TEST" code uses
58921         stdio, and performance isn't crucial there.
58922         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
58923         Bison 1.875 features as described below.
58924         All uses of "PC." replaced by "pc->".
58925         (YYSTYPE): Add a forward declaration.
58926         (yylex, yyerror): Use full prototypes in forward decls.
58927         Use "%pure-parser" rather than obsolescent "%pure_parser".
58928         Use %parse-param and %lex-param instead of obsolescent
58929         YYPARSE_PARAM and YYLEX_PARAM.
58930         (meridian_table, month_and_day_table, time_units_table,
58931         relative_time_table, time_zone_table, military_table,
58932         lookup_zone, lookup_word, get_date):
58933         Use NULL instead of 0 where appropriate.
58934         (to_hour): Avoid abort (), to avoid a dependency on
58935         stdlib.h.
58936         (yyerror, yylex): Now accepts parser_control * arg.
58937         (main) [TEST]: Use '\0' rather than 0 for char.
58938
58939 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
58942
58943 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58944
58945         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
58946         It's now the caller's responsibility to handle the case where
58947         !HAVE_GETPAGESIZE && !defined getpagesize.
58948
58949         * lib/mktime.c (leapyear): Arg is long int, not int.
58950
58951 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
58952
58953         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
58954
58955 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58956
58957         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
58958         missing.  Problem reported by James Youngman.
58959
58960 2004-10-16  Simon Josefsson  <jas@extundo.com>
58961
58962         * gnulib-tool: Fix comments.  Fix parse problem.
58963         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
58964
58965 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
58966
58967         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
58968         implementation of getopt_long.  Problem reported by Alexander Taler in:
58969         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
58970
58971 2004-10-15  Bruno Haible  <bruno@clisp.org>
58972
58973         * gnulib-tool: Untabify. Initialize supplied_libname.
58974         (func_usage): More homogenous output.
58975         (func_modules_transitive_closure, func_modules_to_filelist,
58976         func_emit_lib_Makefile_am): New functions.
58977         (func_import): New function, extracted from big case statement. Use
58978         func_get_license, func_modules_transitive_closure,
58979         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
58980         opt_lgpl. Don't use test -a, as it's not portable.
58981         (func_create_testdir): Use func_modules_transitive_closure,
58982         func_modules_to_filelist, func_emit_lib_Makefile_am.
58983
58984 2004-10-15  Bruno Haible  <bruno@clisp.org>
58985
58986         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
58987
58988 2004-10-15  Bruno Haible  <bruno@clisp.org>
58989
58990         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
58991         the portions belonging to each module.
58992         Suggested by Derek Robert Price <derek@ximbiot.com>.
58993
58994 2004-10-12  Simon Josefsson  <jas@extundo.com>
58995
58996         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58997         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
58998         to real functions.
58999
59000 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59001
59002         * modules/vsnprintf: New file.
59003
59004 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59005
59006         * m4/vsnprintf.m4: New file.
59007
59008 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59009
59010         * lib/vsnprintf.h: New file.
59011         * lib/vsnprintf.c: New file.
59012
59013 2004-10-11  Bruno Haible  <bruno@clisp.org>
59014
59015         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59016         vsnprintf.
59017
59018 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59019
59020         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59021
59022 2004-10-07  Bruno Haible  <bruno@clisp.org>
59023
59024         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59025         fits into the provided buffer.
59026
59027 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * lib/diacrit.c, diacrit.h: Add GPL notice.
59030
59031         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59032         notice.
59033         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59034         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59035         This avoids a potential constant-folding bug.
59036
59037 2004-10-05  Bruno Haible  <bruno@clisp.org>
59038
59039         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59040         for the declaration of strsep.
59041
59042 2004-10-05  Bruno Haible  <bruno@clisp.org>
59043
59044         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59045
59046 2004-10-04  Simon Josefsson  <jas@extundo.com>
59047
59048         * modules/memmem: New file.
59049         * tests/test-memmem.c: New file.
59050         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59051
59052 2004-10-04  Simon Josefsson  <jas@extundo.com>
59053
59054         * m4/memmem.m4: New file.
59055
59056 2004-10-04  Simon Josefsson  <jas@extundo.com>
59057
59058         * lib/memmem.h: New file.
59059         * lib/memmem.c: New file, taken from glibc.
59060
59061 2004-10-04  Simon Josefsson  <jas@extundo.com>
59062
59063         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59064         '#ifdef USE_UNLOCKED_IO'.
59065
59066 2004-10-04  Simon Josefsson  <jas@extundo.com>
59067
59068         * config/srclist.txt: Add memmem from glibc.
59069
59070 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59071
59072         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59073
59074         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59075         modules/exclude, modules/getdate, modules/getline,
59076         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59077         modules/getusershell, modules/linebuffer, modules/md5,
59078         modules/mountlist, modules/posixtm, modules/readtokens,
59079         modules/readutmp, modules/regex, modules/sha1,
59080         modules/version-etc, modules/yesno:
59081         Remove dependency on unlocked-io.
59082
59083 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59084
59085         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59086
59087         * m4/unlocked-io.m4: Add copyright notice.
59088         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59089
59090 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59091
59092         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59093         * lib/xmalloc.c (xmemdup): Likewise.
59094         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59095         XFREE): Remove these long-obsolescent macros.
59096         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59097         * lib/xstrdup.c: Remove.
59098
59099         * lib/regex.c (re_comp): Cast gettext return value to char *,
59100         Problem reported by Martin Neitzel via Mark D. Baushke.
59101
59102 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59103
59104         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59105         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59106         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59107         regex.c, sha1.c, version-etc.c, yesno.c:
59108         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59109         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59110         the includer's responsibility.
59111
59112         Sync from coreutils.
59113
59114         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59115         points to the start of a string, as the C Standard says the
59116         resulting behavior is undefined.
59117
59118         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59119         simple -> simple_backups, numbered_existing ->
59120         numbered_existing_backups, numbered -> numbered_backups
59121         to avoid shadowing problems.  All uses changed.
59122         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59123         * lib/backupfile.c (check_extension, numbered_backup):
59124         Rename locals to avoid shadowing 'basename'.
59125         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59126         once.
59127
59128         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59129         * lib/.cvsignore: Add getopt.h.
59130
59131 2004-10-04  Bruno Haible  <bruno@clisp.org>
59132
59133         * modules/README: New file.
59134         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59135         not a module.
59136
59137 2004-10-02  Jim Meyering  <jim@meyering.net>
59138
59139         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59140
59141 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59142
59143         * modules/strsep: New file.
59144
59145 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59146
59147         * m4/strsep.m4: New file.
59148
59149 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59150
59151         * lib/strsep.h: New file.
59152         * lib/strsep.c: New file.
59153
59154 2004-10-01  Simon Josefsson  <jas@extundo.com>
59155
59156         * lib/snprintf.c (snprintf): Handle size==0.
59157
59158 2004-10-01  Simon Josefsson  <jas@extundo.com>
59159             Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59162         (snprintf): Declare 'args'.
59163
59164 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59165
59166         * lib/snprintf.c: Remove comments as to why each header is needed.
59167
59168 2004-10-01  Bruno Haible  <bruno@clisp.org>
59169
59170         * MODULES.html.sh: Add strsep.
59171
59172 2004-09-30  Simon Josefsson  <jas@extundo.com>
59173
59174         * modules/snprintf: New file.
59175
59176 2004-09-30  Simon Josefsson  <jas@extundo.com>
59177
59178         * m4/snprintf.m4: New file.
59179
59180 2004-09-30  Simon Josefsson  <jas@extundo.com>
59181
59182         * lib/snprintf.h, lib/snprintf.c: New files.
59183
59184 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59185
59186         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59187         (hol_entry_help): Never translate an empty string.
59188         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59189         * lib/argp.h (OPTION_NO_TRANS): New option.
59190
59191 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59192
59193         * modules/argp (Maintainer): Replace Simon Josefsson
59194         by Sergey Poznyakoff.
59195
59196 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59197
59198         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59199         changes merged back into glibc.
59200
59201 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59204
59205 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59206
59207         * lib/xvasprintf.c: Include xalloc.h.
59208         (xvasprintf): Use xalloc_die, not xmalloc_die.
59209
59210 2004-09-29  Bruno Haible  <bruno@clisp.org>
59211
59212         * modules/alloca-opt: New file, derived from modules/alloca.
59213         * modules/allocsa: Depend on alloca-opt instead of alloca.
59214         * modules/setenv: Likewise.
59215         * modules/vasnprintf: Likewise.
59216         * MODULES.html.sh: Add alloca-opt.
59217
59218 2004-09-28  Simon Josefsson  <jas@extundo.com>
59219
59220         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59221         LGPL, and to replace license template from GPL to LGPL.
59222
59223 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59224
59225         * modules/dummy: Change license to LGPL.
59226
59227 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59228
59229         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59230
59231 2004-09-24  Simon Josefsson  <jas@extundo.com>
59232
59233         * modules/minmax (License): Change from GPL to LGPL.
59234
59235 2004-09-23  Simon Josefsson  <jas@extundo.com>
59236
59237         * gnulib-tool (--import): Typo.
59238
59239 2004-09-23  Simon Josefsson  <jas@extundo.com>
59240
59241         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59242
59243 2004-09-22  Bruno Haible  <bruno@clisp.org>
59244
59245         * modules/*: Add 'License' field.
59246         * gnulib-tool: Accept --extract-license option.
59247         (func_get_license): New function.
59248
59249 2004-09-21  Bruno Haible  <bruno@clisp.org>
59250
59251         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59252         Reported by Simon Josefsson.
59253
59254 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59255
59256         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59257         gl_AC_TYPE_LONG_LONG.
59258
59259 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59260
59261         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59262
59263 2004-09-18  Simon Josefsson  <jas@extundo.com>
59264         and  Paul Eggert  <eggert@cs.ucla.edu>
59265
59266         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59267         calls with autoreconf.  Define GL_LIB.
59268
59269 2004-09-14  Karl Berry  <karl@gnu.org>
59270
59271         * config/srclist.txt: unsync setenv.c, sigh.
59272
59273 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59276         Problem reported by Bruno Haible in:
59277         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59278
59279 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59280
59281         * config/srclist.txt: Comment out argp-pvh.c.
59282
59283 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59286         in case some system header has #define'd it.  Problem reported by
59287         Soeren D. Schulze in
59288         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59289
59290 2004-09-09  Karl Berry  <karl@gnu.org>
59291
59292         * regex.[ch]: delete from the root.  These were supposed to be
59293                 synced with emacs cvs, but this has not happened for about
59294                 a year, and anyway nothing else uses emacs regex.[ch].
59295                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59296                 lib/regex[.ch] is untouched.
59297
59298 2004-09-09  Bruno Haible  <bruno@clisp.org>
59299
59300         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59301
59302 2004-09-09  Bruno Haible  <bruno@clisp.org>
59303
59304         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59305         modifications.
59306         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59307
59308 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59309
59310         * modules/xvasprintf: New file.
59311         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59312
59313 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59314
59315         * lib/xvasprintf.h: New file.
59316         * lib/xvasprintf.c: New file.
59317         * lib/xasprintf.c: New file.
59318
59319 2004-09-08  Bruno Haible  <bruno@clisp.org>
59320
59321         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59322
59323 2004-09-08  Bruno Haible  <bruno@clisp.org>
59324
59325         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59326         length is > INT_MAX.
59327         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59328         more.
59329
59330 2004-09-08  Bruno Haible  <bruno@clisp.org>
59331
59332         * lib/stdint_.h: New file, taken from GNU clisp.
59333
59334 2004-09-08  Bruno Haible  <bruno@clisp.org>
59335             Oskar Liljeblad  <oskar@osk.mine.nu>
59336
59337         * modules/stdint: New file.
59338         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59339
59340 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59341
59342         Import from coreutils.
59343         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59344         strings on unbounded length.  alloca's performance benefits aren't
59345         that important here.
59346         (V_STRDUP): Remove.
59347         (parse_with_separator): New function, with most of the internals
59348         of the old parse_user_spec.  Allow user to omit both user and group,
59349         for compatibility with FreeBSD.
59350         Clone only the user name, not the entire spec.
59351         Do not set *uid, *gid unless entirely successful.
59352         Avoid memory leak in some failing cases.
59353         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59354         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59355         (parse_user_spec): Rewrite to use parse_with_separator.
59356
59357 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * modules/userspec: Don't depend on alloca.
59360
59361 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59364
59365 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59366
59367         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59368         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59369         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59370
59371 2004-08-16  Simon Josefsson  <jas@extundo.com>
59372
59373         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59374         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59375         Add --dry-run for --import.
59376         Let user provided command line parameters override configure.ac
59377         settings.
59378
59379 2004-08-12  Simon Josefsson  <jas@extundo.com>
59380
59381         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59382         as discussed with Paul Eggert in threads rooted at
59383         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59384         and
59385         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59386         Before, the test was empty, and relied on ELIDE_CODE in source
59387         code.)
59388         (gl_PREREQ_GETOPT): New macro.
59389         (gl_GETOPT): Use them.
59390
59391 2004-08-12  Simon Josefsson  <jas@extundo.com>
59392
59393         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59394         * lib/getopt_.h: Renamed from getopt.h.
59395
59396 2004-08-12  Simon Josefsson  <jas@extundo.com>
59397
59398         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59399         Change default library name from libfoo to libgnu.
59400         Now, if you have a configure.ac that says:
59401                 gl_SOURCE_BASE(gl)
59402                 gl_M4_BASE(gl/m4)
59403                 gl_MODULES(error getopt etcetera)
59404                 gl_INIT
59405         you can import all you need by running:
59406                 ../gnulib/gnulib-tool --import
59407
59408         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59409         (Makefile.am): Rewrite, use logic from argz.
59410         (Include): Use <getopt.h> instead of "getopt.h".
59411
59412 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59413
59414         * modules/argp (Files): Add m4/unlocked-io.m4.
59415         (Depends-on): Add extensions.
59416
59417 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59418
59419         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59420         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59421         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59422         Check for program_invocation_name, program_invocation_short_name,
59423         flockfile, funlockfile, features.h, _getopt_long_only_r.
59424
59425 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59426
59427         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59428         its complicated substitute.
59429         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59430         and program_invocation_name.
59431         (__argp_basename) [!_LIBC]: Remove; the only use was
59432         replaced by its body.
59433         (__argp_short_program_name): Change condition from
59434         !defined __argp_short_program_name to
59435         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59436         to match argp-namefrob.h.
59437         (__argp_failure): Don't assume strerror_r returns char *.
59438         * lib/argp-parse.c (N_): Define unconditionally.
59439         (argp_default_options): Fill out initializers with 0 to avoid
59440         gcc warnings.
59441
59442 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59443
59444         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59445         getopt1.c.
59446
59447 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59448
59449         Merge from coreutils.
59450
59451         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59452
59453         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59454         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59455
59456 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         Merge from coreutils.
59459
59460         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59461         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59462         for Reliant Unix 5.43.
59463
59464         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59465         (union fooround): Use uintmax_t, not long int.
59466         The rest is a merge from libc:
59467         [defined _LIBC]: Include <shlib-compat.h>.
59468         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59469
59470         * lib/settime.c (settime): Recode to avoid warning with
59471         Sun Forte C 6U2.
59472
59473         * lib/strverscmp.c: Convert to UTF-8.
59474
59475 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59476
59477         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59478         m4/uintmax_t.m4.
59479
59480 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59481
59482         * modules/xalloc-die: New file.
59483         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59484
59485         * modules/md5 (Files): Add m4/uint32_t.m4.
59486         * modules/sha1: Renamed from modules/sha.
59487         (Files):
59488         Rename lib/sha.h to lib/sha1.h.
59489         Rename lib/sha.c to lib/sha1.c.
59490         Rename m4/sha.m4 to m4/sha1.m4.
59491         (lib_SOURCES): Likewise.
59492         (configure.ac): Rename gl_SHA to gl_SHA1.
59493         (Include): sha.h -> sha1.h.
59494
59495 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59496
59497         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59498         * m4/sha1.m4: Renamed from sha.m4.
59499         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59500
59501 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         * lib/obstack.h (obstack_empty_p):
59504         Don't assume that chunk->contents is suitably aligned.
59505         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59506         Likewise. Problem reported by Benno in
59507         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59508
59509         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59510         readable.  This could be improved further but it'd take some work.
59511
59512 2004-08-08  Simon Josefsson  <jas@extundo.com>
59513
59514         * modules/xgethostname (Depends-on): Remove exit and error (not
59515         used).
59516
59517         * modules/getpass-gnu: Add getpass.h.
59518         (Depends-on): Add stdbool.
59519         * modules/getpass: Add getpass.h.
59520
59521 2004-08-08  Simon Josefsson  <jas@extundo.com>
59522
59523         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59524         Check getpass declaration.
59525
59526 2004-08-08  Simon Josefsson  <jas@extundo.com>
59527
59528         * lib/xgethostname.c: Don't include error.h (not used).
59529
59530         * lib/getpass.h: Add.
59531         * lib/getpass.c: Include getpass.h first.
59532
59533 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * lib/xalloc-die.c: New file.
59536         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59537         All uses removed.
59538         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59539         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59540         xalloc-die.c.
59541         (_, N_, xalloc_die): Move to xalloc-die.c.
59542         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59543         so that we needn't mess with xalloc_msg_memory_exhausted.
59544
59545         * lib/sha1.h: Renamed from sha.h.
59546         (SHA1_H): Renamed from _SHA_H.
59547         (sha1_ctx): Renamed from sha_ctx.
59548         (sha1_init_ctx): Renamed from sha_init_ctx.
59549         (sha1_process_block): Renamed from sha_process_block.
59550         (sha1_process_bytes): Renamed from sha_process_bytes.
59551         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59552         (sha1_read_ctx): Renamed from sha_read_ctx.
59553         (sha1_stream): Renamed from sha_stream.
59554         (sha1_buffer): Renamed from sha_buffer.
59555         * lib/sha1.c: Likewise; renamed from sha.c.
59556         Do not include <sys/types.h>.
59557         Include <stddef.h> rather than <stdlib.h>.
59558
59559 2004-08-08  Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59562         FILESYSTEM_PREFIX_LEN.
59563         * lib/progreloc.c: Likewise.
59564         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59565
59566 2004-08-06  Simon Josefsson  <jas@extundo.com>
59567
59568         * modules/progname (Depends-on): Don't depend on stdbool.
59569
59570 2004-08-06  Simon Josefsson  <jas@extundo.com>
59571
59572         * modules/getsubopt: New file.
59573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59574         getsubopt.
59575
59576 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59577
59578         More merge from coreutils.
59579
59580         * m4/utimens.m4, m4/utimecmp.m4: New files.
59581         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59582         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59583         prereq.m4, sha.m4: Import changes from coreutils.
59584
59585 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59586
59587         More merge from coreutils.
59588         * modules/raise, modules/readtokens0, modules/utimens:
59589         * modules/utimecmp, module/xnanosleep: New files.
59590         * modules/strftime: Add lib/strftime.h.
59591         Change include from <time.h> to "strftime.h".
59592         * modules/yesno: Add lib/yesno.h.
59593         * modules/backupfile: Remove lib/addext.c.
59594         * modules/euidaccess: Add stat-macros.h.
59595         * modules/canonicalize, modules/euidaccess,
59596         modules/filemode, modules/lchown, modules/makepath,
59597         modules/rmdir, modules/stat: Likewise.
59598
59599 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59600
59601         Merge from tar.
59602         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59603         SIZE_MAX is a valid preprocessor constant.
59604         (__argp_basename): Change from "#ifndef _LIBC"
59605         to "#ifndef __argp_short_program_name", so that
59606         we don't compile these functions for tar.
59607
59608         More merges from coreutils.
59609         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59610         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59611         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59612         * lib/addext.c: Remove; no longer needed.
59613         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59614         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59615         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59616         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59617         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59618         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59619         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59620         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59621         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59622         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59623         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59624         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59625         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
59626         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
59627         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
59628         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
59629         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
59630         Import changes from coreutils.
59631
59632 2004-08-05  Simon Josefsson  <jas@extundo.com>
59633
59634         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
59635
59636 2004-08-05  Simon Josefsson  <jas@extundo.com>
59637
59638         * m4/getsubopt.m4: New file.
59639
59640 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59641
59642         Merge from coreutils.
59643
59644         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
59645         * m4/getcwd-path-max.m4: New files.
59646
59647         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
59648         FILESYSTEM_PREFIX_LEN ->
59649         FILE_SYSTEM_PREFIX_LEN.
59650         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
59651         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
59652         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
59653         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
59654
59655         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
59656         prerequisite modules now handle the DOS stuff.
59657         Don't check for unistd.h.
59658
59659 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59660
59661         Merge from coreutils.
59662
59663         * lib/.gdb-history: Remove; this doesn't belong here.
59664
59665         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
59666         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
59667         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
59668         * lib/getcwd.c: New files.
59669
59670         * lib/dirname.h: Include <stdbool.h>.
59671         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
59672         for consistency with POSIX terminology.  All uses changed.
59673         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
59674         (strip_trailing_slashes): Use bool for booleans.
59675         * lib/stripslash.c (strip_trailing_slashes): Likewise.
59676
59677         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
59678         sometimes returns a positive errno value even when it succeeds.
59679         (print_errno_message) [!LIBC]: Fall back on strerror if
59680         __strerror_r fails.
59681
59682         * lib/path-concat.c (mempcpy): Don't define if a system header defines
59683         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
59684         (longest_relative_suffix): New function.
59685         (path_concat): Use it.  Assume first argument is not NULL.
59686         Port to DOS.  Omit redundant separators.
59687         Report an error instead of returning NULL.
59688         Use mempcpy instead of memcpy.
59689         (xpath_concat): Remove: not declared or used.
59690
59691         * lib/same.h: Include <stdbool.h>
59692         (same_name): Return bool, not int.
59693         * lib/same.c (same_name): Likewise.
59694         (errno): Don't declare; we assume C89 or better now.
59695
59696         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
59697         if not already defined.
59698
59699         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
59700         * lib/dup-safer.c (errno): Likewise.
59701
59702 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59703
59704         Merge from coreutils.
59705         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
59706         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
59707         * modules/path-concat: Don't depend on strdup.
59708
59709 2004-08-03  Simon Josefsson  <jas@extundo.com>
59710
59711         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
59712         * lib/progname.h: Don't include stdbool.h.
59713
59714 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59715
59716         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
59717         * MODULES.html.sh (func_all_modules): Remove fatal.
59718
59719 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59720
59721         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
59722
59723 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
59726         working.
59727
59728 2004-08-02  Simon Josefsson  <jas@extundo.com>
59729
59730         * lib/getsubopt.h: New file, with comments from Bruno Haible.
59731         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
59732         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
59733
59734 2004-08-01  Simon Josefsson  <jas@extundo.com>
59735
59736         * lib/xgetdomainname.c: Include stdlib.h, for free().
59737
59738 2004-07-19  Bruno Haible  <bruno@clisp.org>
59739
59740         * MODULES.html.sh (func_all_modules): Add dummy.
59741
59742 2004-07-16  Simon Josefsson  <jas@extundo.com>
59743
59744         * modules/dummy: New file.
59745
59746 2004-07-16  Simon Josefsson  <jas@extundo.com>
59747
59748         * lib/dummy.c: New file.
59749
59750 2004-07-16  Bruno Haible  <bruno@clisp.org>
59751
59752         * lib/backupfile.h: Add extern "C" for C++.
59753         * lib/closeout.h: Likewise.
59754         * lib/copy-file.h: Likewise.
59755         * lib/findprog.h: Likewise.
59756         * lib/full-write.h: Likewise.
59757         * lib/pathname.h: Likewise.
59758         * lib/progname.h: Likewise.
59759         * lib/stpcpy.h: Likewise.
59760         * lib/stpncpy.h: Likewise.
59761         * lib/strcase.h: Likewise.
59762         * lib/strstr.h: Likewise.
59763         * lib/xalloc.h: Likewise.
59764
59765         * lib/mbswidth.h: Add extern "C" for C++.
59766         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
59767
59768 2004-07-13  Robert Millan  <robertmh@gnu.org>
59769
59770         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
59771
59772 2004-07-09  Simon Josefsson  <jas@extundo.com>
59773
59774         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
59775         failed without this.)
59776
59777 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59778
59779         * modules/chown (Files): Add lib/fchown-stub.c, since
59780         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
59781
59782 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59783
59784         * lib/fchown-stub.c: New file.
59785
59786 2004-06-24  Jim Meyering  <jim@meyering.net>
59787
59788         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
59789
59790 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59791
59792         * modules/argz: Omit "#include".
59793
59794         * MODULES.html.sh (func_all_modules): Add calloc, to match
59795         2004-06-01 addition of calloc module.
59796
59797 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59798
59799         * m4/argz.m4: New file, which is autoupdated from libtool.
59800
59801 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
59804         libtool.
59805
59806 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59807
59808         * config/srclist-update: Don't insist on "USA." before the
59809         close-comment, as libtool omits the period and puts the */ on a
59810         separate line.
59811         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
59812         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
59813
59814 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
59815
59816         * modules/argz: New file.
59817         * MODULES.html.sh (func_all_modules): Add argz.
59818
59819 2004-06-12  Jim Meyering  <jim@meyering.net>
59820         and  Paul Eggert  <eggert@cs.ucla.edu>
59821
59822         * modules/hash (Files): Add lib/xalloc.h.
59823         * modules/pipe (Depends-on): Add wait-process.
59824         * modules/stat (Depends-on): Add xalloc.
59825         * modules/userspec (Files): Add lib/userspec.h.
59826         * modules/xstrto
59827
59828         Upgrade from gettext-0.13.
59829         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
59830         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
59831         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
59832
59833 2004-06-10  Jim Meyering  <jim@meyering.net>
59834
59835         * lib/calloc.c: New file.
59836
59837 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59838
59839         * lib/getdate.y (yylex): Allow space between sign and number.
59840         Problem reported by Dan Jacobson.
59841
59842 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
59843
59844         Merge from coreutils CVS.
59845
59846         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
59847         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
59848         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
59849         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
59850         xstrtol.m4: Fix copyright date and/or serial number.
59851
59852         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
59853         See if we need an fchown replacement.
59854         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
59855         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
59856         and use the replacement function if we detect either defect.
59857
59858         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
59859         gl_UTIMECMP.
59860
59861 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
59862         and  Jim Meyering  <jim@meyering.net>
59863
59864         Merge from coreutils CVS.
59865
59866         * lib/stat-macros.h: New file, with contents from file-type.h
59867         and coreutils' system.h.
59868         * lib/file-type.c: Include "stat-macros.h".
59869         * lib/file-type.h (file_type): Move all macro definitions to new file,
59870         stat-macros.h.
59871
59872         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
59873         Wrap old code with this conditional.
59874         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
59875         function that does not dereference symlinks.
59876         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
59877
59878         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
59879         dependency problems.
59880         (xreadlink): Accept new arg SIZE, for efficiency.
59881         All decls and uses changed.
59882         * lib/xreadlink.h: Include <stddef.h>, for size_t.
59883
59884         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
59885         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
59886
59887         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
59888         sysexits.h.
59889
59890 2004-06-01  Jim Meyering  <jim@meyering.net>
59891
59892         * m4/calloc.m4: New file.
59893
59894 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
59895
59896         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
59897         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
59898         Also, fix a typo in a diagnostic.
59899
59900 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59901
59902         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
59903         or AC_FUNC_REALLOC.
59904
59905 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59906
59907         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
59908         macros to be defined.
59909         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
59910         the allocator returns NULL because the requested size is zero.
59911
59912 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59913
59914         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
59915         var.  Add comment explaining why libc still defines it.  This
59916         merges the following patch from glibc:
59917         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
59918
59919 2004-05-20  Andreas Schwab  <schwab@suse.de>
59920
59921         * m4/free.m4: Replace free if it not known to work, not the other
59922         way round.
59923
59924 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59925
59926         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
59927         present in glibc since revision 1.1 of this file.
59928         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
59929         obstack_alignment_mask, obstack_alloc, obstack_base,
59930         obstack_blank, obstack_blank_fast, obstack_chunk_size,
59931         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
59932         obstack_grow0, obstack_init, obstack_int_grow,
59933         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
59934         obstack_next_free, obstack_object_size, obstack_ptr_grow,
59935         obstack_ptr_grow_fast, obstack_room): Remove declarations of
59936         nonexistent functions.
59937
59938 2004-05-18  Karl Berry  <karl@gnu.org>
59939
59940         * config/srclist.txt: break link for vasnprintf.c.
59941
59942 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59943
59944         Port obstack to the AS/400, where pointers are 16 bytes wide and
59945         you cannot cast an integer to a valid pointer.  This patch is
59946         currently waiting to be integrated into glibc; see
59947         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
59948
59949         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
59950         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
59951         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
59952         (struct obstack): temp member is now a union of a pointer and
59953         an integer, instead of an integer.  All integer uses changed.
59954         This does not affect the physical layout of struct obstack,
59955         except on hosts (like the AS/400) where the size or alignment of
59956         void * is greater than that of ptrdiff_t.
59957         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
59958         __STDC__)]: Store temporary in pointer member of union, not
59959         integer member.
59960         * lib/obstack.c: Include <stddef.h>, for offsetof.
59961         (struct fooalign): Remove; it doesn't need a name.
59962         (union fooround): Change double to long double, and add void *.
59963         (DEFAULT_ALIGNMENT): Use offsetof to compute.
59964         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
59965         not a macro.  Hence the values are always int; so remove all
59966         casts-to-int in uses.
59967
59968 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59969
59970         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
59971         we can get this patch merged into glibc.
59972
59973 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59974             Paul Eggert  <eggert@cs.ucla.edu>
59975
59976         * m4/argp: Depend on alloca.
59977
59978 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59979             Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
59982         freecoding.
59983
59984 2004-05-17  Bruno Haible  <bruno@clisp.org>
59985
59986         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
59987         precision that consists of a '.' followed by an empty digit string.
59988         Patch by Tor Lillqvist <tml@iki.fi>.
59989
59990 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59991
59992         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
59993         for backward compatibility with older code.  We need our own
59994         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
59995         it under some other name, and our alloca.h will define it.
59996
59997 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59998             Derek Price  <derek@ximbiot.com>
59999
60000         * lib/alloca.c: Include <alloca.h>, to get our interface.
60001         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60002         include <alloca.h> first.  Use C89 prototype for alloca; this
60003         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60004         Use #elif for simplicity, since we can assume C89 now.
60005         Don't try to source the system alloca.h since it will not be found
60006         and to prevent recursively including its replacement.
60007         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60008         * lib/regex.c: Likewise.
60009
60010 2004-05-16  Derek Price  <derek@ximbiot.com>
60011             Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         getline cleanup.  This changes the getndelim2 API: both order of
60014         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60015         no delimiter).
60016
60017         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60018         interface does that.
60019         (getline): Always use getdelim, so that we don't have two
60020         copies of this code.
60021         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60022         if available.
60023         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60024         (GETNDELIM2_MAXIMUM): New macro.
60025         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60026         instead of the old practice of delim2==0.  All callers changed.
60027         Return -1 on overflow, instead of returning junk.
60028         Do not set *linesize unless allocation succeeds.
60029         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60030         that we include sys/types.h.
60031         * lib/getnline.h: Likewise.
60032         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60033         (getndelim2): Reorder arguments.
60034         * lib/getnline.c (getnline, getndelim):
60035         Don't discard the NMAX argument.
60036         (getnline): Invoke getndelim, to avoid code duplication.
60037         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60038         of (size_t) -1 by callers of the getnline family.
60039
60040 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60041
60042         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60043         Check for gettimeofday.
60044         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60045         Check for settimeofday, stime.
60046
60047 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         * lib/nanosleep.c (suspended): Change its type from int to
60050         sig_atomic_t volatile.
60051         (first_call): Make it private to rpl_nanosleep, and have it
60052         be zero initially as that's a bit faster.
60053         (my_usleep): Round up fractional times instead of truncating them,
60054         as this is the usual meaning for 'sleep'.
60055
60056         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60057         doesn't work.
60058         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60059         (ENOSYS): Define if not defined.
60060         (settime): Fall back on stime if it exists and settimeofday fails.
60061         But don't bother with fallbacks if a method fails with errno == EPERM.
60062
60063 2004-05-11  Jim Meyering  <jim@meyering.net>
60064
60065         Prior to this change, the save_cwd caller required read access to the
60066         current directory on most systems (ones with the fchdir function).
60067
60068         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60069         fails, try write-only, and finally, resort to using xgetcwd.
60070
60071 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60072
60073         * lib/obstack.c, obstack.h: Import changes from libc.
60074
60075 2004-04-28  Bruno Haible  <bruno@clisp.org>
60076
60077         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60078         also implicitly appends .exe to executables.
60079         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60080         accepts Windows pathnames.
60081         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60082         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60083         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60084         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60085         Reported by Derek Robert Price <derek@ximbiot.com>.
60086
60087 2004-04-21  Karl Berry  <karl@gnu.org>
60088
60089         * config/srclist.txt (localcharset.c): break sync.
60090
60091 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60092
60093         * m4/host-os.m4: Add a copyright notice.
60094
60095 2004-04-20  Jim Meyering  <jim@meyering.net>
60096
60097         Change UTILS_ to gl_ in AC_DEFINE'd names.
60098         Change utils_- and jm_-prefixed variables, too.
60099         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60100         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60101         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60102
60103         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60104         Don't emit trailing blanks.
60105         Also rename jm_-prefixed variables to have gl_ prefix.
60106
60107         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60108         Also rename jm_-prefixed variables to have gl_ prefix.
60109
60110         * m4/jm-macros.m4: Reflect the renamings.
60111         * m4/prereq.m4: Likewise.
60112
60113 2004-04-20  Jim Meyering  <jim@meyering.net>
60114
60115         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60116         memory.
60117
60118 2004-04-20  Jim Meyering  <jim@meyering.net>
60119             Bruno Haible  <bruno@clisp.org>
60120
60121         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60122         memory when realloc fails.
60123
60124 2004-04-19  Jim Meyering  <jim@meyering.net>
60125
60126         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60127         now that readutmp.c may call `free (0)'.
60128
60129 2004-04-19  Bruno Haible  <bruno@clisp.org>
60130
60131         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60132         * m4/inttypes_h.m4: Likewise.
60133         * m4/stdint_h.m4: Likewise.
60134         * m4/intmax_t.m4: Likewise.
60135         * m4/uintmax_t.m4: Likewise.
60136
60137 2004-04-18  Jim Meyering  <jim@meyering.net>
60138
60139         * m4/prereq.m4: Don't forbid jm_ prefix.
60140
60141         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60142         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60143         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60144         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60145         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60146         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60147         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60148         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60149         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60150         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60151         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60152         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60153         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60154         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60155         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60156         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60157         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60158         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60159         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60160
60161 2004-04-18  Jim Meyering  <jim@meyering.net>
60162
60163         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60164         failure, don't leak memory and do call END_UTMP_ENT.
60165
60166 2004-04-16  Jim Meyering  <jim@meyering.net>
60167
60168         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60169         coreutils' stat program.
60170         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60171
60172 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60173
60174         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60175         C89.
60176         (CHAR_BIT): Remove, since we assume C89.
60177         Include <stdint.h> if available, as per current Autoconf CVS advice.
60178
60179 2004-03-31  Jim Meyering  <jim@meyering.net>
60180
60181         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60182         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60183         * m4/xalloc.m4: Likewise.
60184
60185 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60186
60187         Merge from coreutils.
60188
60189         * m4/inttostr.m4: New file.
60190         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60191         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60192         Require gl_CLOCK_TIME.
60193         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60194
60195 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60196
60197         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60198         not bool, to be more consistent with Unix conventions.
60199         Suggested by Bruno Haible.
60200
60201         Merge from coreutils.
60202
60203         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60204         * lib/umaxtostr.c: New files.
60205
60206         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60207         the usual <time.h> dance.
60208         (get_date): Change signature to support fractional time stamps.
60209         All callers changed.
60210         * lib/getdate.y: Include "getdate.h" first, as we can now
60211         assume C89 and don't need to worry about 'const'.
60212         Similarly, include "unlocked-io.h" near start, not in middle.
60213         Include <limits.h>.
60214         (textint.value): Use long int rather than int.
60215         (textint.digits): Use size_t rather than int.
60216         (BILLION, LOG10_BILLION): New constants.
60217         (parser_control): New member rel_ns.  Members day_ordinal,
60218         time_zone, month, day, hour, minutes, rel_year, rel_month,
60219         rel_day, rel_hour, rel_minutes, rel_seconds
60220         are now long int, not int.  Member seconds is now struct timespec,
60221         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60222         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60223         not int.
60224         (%union.intval): Now long int, not int.
60225         New member timespec.
60226         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60227         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60228         (spec): Now is a timespec or an item list.
60229         (timespec, items): New nonterminals.
60230         (time, rel, relunit, number, get_date):
60231         Add support for fractional seconds.
60232         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60233         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60234         (to_hour): First arg is now long int, not int.
60235         (to_year): Returns long int, not int.
60236         Don't treat year -70 like 70.
60237         (tm_diff): Returns long int, not int.
60238         (lookup_word): Use bool instead of int when appropriate.
60239         (yylex): Use size_t for count, not int.
60240         Detect overflow when parsing large integer constants.
60241         Add support for fractions.
60242         (get_date): Make pointers 'const' if possible.
60243         Use more-portable code to detect integer overflow.
60244         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60245         Don't use ctime; it's not reliable if the year has >4 digits.
60246
60247         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60248         This is for compatibility with BSD.
60249
60250         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60251         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60252         From coreutils' system.h.
60253
60254         * lib/userspec.c: Don't include "posixver.h".
60255         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60256         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60257         compatible extension.  Simplify code by removing a boolean int
60258         that was always nonzero if a string was nonnull.
60259
60260 2004-03-30  Jim Meyering  <jim@meyering.net>
60261
60262         Merge from coreutils.
60263
60264         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60265         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60266         on some systems one must include <grp.h> before it.
60267         Reported by Christian Krackowizer.
60268
60269 2004-03-30  Jim Meyering  <jim@meyering.net>
60270
60271         Merge from coreutils.
60272
60273         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60274
60275         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60276         an empty input stream.
60277
60278         * lib/readtokens.c: Include <stdbool.h>.
60279         (readtoken): Use `size_t' rather than int/long.
60280         All callers adjusted.
60281         Use `bool' rather than `int' where appropriate.
60282         Use memset rather than an explicit loop.
60283         Use x2nrealloc rather than xrealloc.
60284         Allow the use of `\0' as a delimiter.
60285         (readtokens): Likewise.
60286         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60287
60288 2004-03-30  Jim Meyering  <jim@meyering.net>
60289
60290         * m4/realloc.m4: Remove file, since now it does no more than
60291         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60292         the `configure.ac' section of module/realloc.
60293         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60294
60295 2004-03-30  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60298         nonnull.
60299
60300 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60301
60302         Merge changes to getloadavg.c from coreutils and Emacs.
60303
60304         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60305         Define to an expression, not to the empty string.
60306         Include cloexec.h and xalloc.h.
60307         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60308         Use set_cloexec_flag rather than rolling our own.
60309         * lib/cloexec.c, lib/cloexec.h: New files.
60310
60311 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60312
60313         * m4/cloexec.m4: New file.
60314
60315 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60316
60317         * lib/getopt.h: Sync with libc CVS.
60318
60319 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60320             Bruno Haible  <bruno@clisp.org>
60321
60322         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60323         mbswidth.
60324
60325 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60326             Bruno Haible  <bruno@clisp.org>
60327
60328         * lib/mbswidth.h: Include <wchar.h> only if
60329         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60330         <wchar.h>.
60331         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60332
60333 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60334
60335         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60336         Sync with libc CVS.
60337         * lib/getopt_int.h: New file, also synced from libc.
60338
60339 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60340
60341         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60342         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60343         Bring back getopt.c, getopt.h, getopt1.c.
60344
60345 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60346
60347         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60348         All uses changed.  Check for sa_sigaction member; this fixes
60349         a bug first reported by Jason Andrade in
60350         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60351
60352 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60353
60354         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60355         '#if' expressions.  Unlike the code it replaces, it does not
60356         depend on (defined _SC_PAGESIZE).  However, it does depend on
60357         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60358         first reported by Jason Andrade in
60359         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60360
60361 2004-02-25  Simon Josefsson  <jas@extundo.com>
60362
60363         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60364
60365 2004-02-25  Simon Josefsson  <jas@extundo.com>
60366
60367         * lib/strdup.h: New file.
60368         * lib/strdup.c: Include it.
60369         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60370         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60371
60372 2004-02-23  Karl Berry  <karl@gnu.org>
60373
60374         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60375         (from fencepost.gnu.org:/gd/gnuorg).
60376
60377 2004-02-23  Karl Berry  <karl@gnu.org>
60378
60379         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60380         * config/srclist.txt: add maintain/standards documents.
60381
60382 2004-02-18  Bruno Haible  <bruno@clisp.org>
60383
60384         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60385         Reported by Derek Robert Price <derek@ximbiot.com>.
60386
60387 2004-02-16  Karl Berry  <karl@gnu.org>
60388
60389         * config/mkinstalldirs, install-sh: update from automake.
60390
60391 2004-02-06  Karl Berry  <karl@gnu.org>
60392
60393         * m4/po.m4: update from gettext 0.14.1.
60394
60395 2004-02-06  Karl Berry  <karl@gnu.org>
60396
60397         * lib/config.charset: update from gettext 0.14.1.
60398
60399 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60400
60401         Add comments and code, prompted by suggestions from Bruno Haible
60402         for sh-quote.
60403         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60404         describing the enum quoting_style values.
60405         * lib/quotearg.c (quotearg_alloc): New function.
60406         (quotearg_buffer_restyled): Treat lone { and } as special.
60407         Treat = as special.  Work around bug with older shells
60408         that "see" a '\' that is really the 2nd byte of a multibyte char.
60409         Quote empty string with shell_quoting_style.
60410
60411 2004-02-03  Bruno Haible  <bruno@clisp.org>
60412
60413         * m4/pipe.m4: New file, from GNU gettext.
60414
60415 2004-02-03  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/pipe.h: New file, from GNU gettext.
60418         * lib/pipe.c: New file, from GNU gettext.
60419
60420 2004-01-27  Bruno Haible  <bruno@clisp.org>
60421
60422         * m4/execute.m4: New file, from GNU gettext.
60423
60424 2004-01-27  Bruno Haible  <bruno@clisp.org>
60425
60426         * lib/execute.h: New file, from GNU gettext.
60427         * lib/execute.c: New file, from GNU gettext.
60428         * lib/w32spawn.h: New file, from GNU gettext.
60429
60430 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60431
60432         Merge from diffutils.
60433
60434         * lib/file-type.c (file_type): Add typed memory objects.
60435         * lib/file-type.h (S_TYPEISTMO): New macro.
60436
60437         * lib/c-stack.h (c_stack_action): Remove argv argument.
60438         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60439         (die): Don't calculate message unless segv_action returns.
60440         (get_stack_location, min_address_from_argv, max_address_from_argv,
60441         volatile stack_base, volatile_stack_size): Remove.
60442         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60443         that every segmentation violation is a stack overflow.  (Ouch!)
60444         See Debian bug 136249 (still outstanding) for more info about why
60445         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60446
60447 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60448
60449         Exit-status fix from coreutils.
60450
60451         Use exit_failure consistently in place of EXIT_FAILURE,
60452         so that program exit statuses are consistent on failure.
60453
60454         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60455         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60456         * lib/argmatch.h: Comment fix to match the above.
60457         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60458         Now a macro referring to exit_failure, instead of a separate
60459         variable.  Include "exitfail.h" to get it.
60460         * lib/xstrtol.h: Include "exitfail.h".
60461         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60462
60463         * lib/long-options.c (parse_long_options): Use prototype
60464         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60465         for clarity.
60466
60467 2004-01-21  Jim Meyering  <jim@meyering.net>
60468
60469         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60470         so as not to conflict with a different-sized __mktime_internal
60471         function in GNU libc.
60472         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60473         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60474
60475 2004-01-20  Karl Berry  <karl@gnu.org>
60476
60477         * config/config.guess: update from config.
60478
60479         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60480
60481 2004-01-20  Bruno Haible  <bruno@clisp.org>
60482
60483         Safer stack allocation.
60484         * lib/setenv.c: Include allocsa.h.
60485         (alloca): Remove fallback definition.
60486         (freea): Remove macro.
60487         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60488         instead of freea.
60489
60490 2004-01-20  Bruno Haible  <bruno@clisp.org>
60491
60492         * m4/eealloc.m4: New file, from GNU gettext.
60493
60494 2004-01-20  Bruno Haible  <bruno@clisp.org>
60495
60496         * m4/allocsa.m4: New file, from GNU gettext.
60497
60498 2004-01-20  Bruno Haible  <bruno@clisp.org>
60499
60500         * lib/xallocsa.h: New file, from GNU gettext.
60501         * lib/xallocsa.c: New file, from GNU gettext.
60502
60503 2004-01-20  Bruno Haible  <bruno@clisp.org>
60504
60505         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60506
60507 2004-01-20  Bruno Haible  <bruno@clisp.org>
60508
60509         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60510         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60511         specially.
60512
60513 2004-01-20  Bruno Haible  <bruno@clisp.org>
60514
60515         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60516         patch.
60517
60518 2004-01-20  Bruno Haible  <bruno@clisp.org>
60519
60520         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60521
60522 2004-01-20  Bruno Haible  <bruno@clisp.org>
60523
60524         * lib/eealloc.h: New file.
60525
60526 2004-01-20  Bruno Haible  <bruno@clisp.org>
60527
60528         * lib/binary-io.h: Avoid warnings on Cygwin.
60529
60530 2004-01-20  Bruno Haible  <bruno@clisp.org>
60531
60532         * lib/allocsa.h: New file, from GNU gettext.
60533         * lib/allocsa.c: New file, from GNU gettext.
60534
60535 2004-01-18  Karl Berry  <karl@gnu.org>
60536
60537         * doc/gpl.texi, doc/lgpl.texi: new files.
60538
60539 2004-01-18  Karl Berry  <karl@gnu.org>
60540
60541         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60542         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60543
60544 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60545
60546         Merge from coreutils.
60547
60548         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60549         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60550         (gl_DEFAULT_POSIX2_VERSION): Move
60551         the documentation from 'configure' into 'config.hin',
60552         so that 'configure --help' isn't burdened by it and
60553         we don't have to worry about its formatting there.
60554         Reword the documentation so that it's more succinct
60555         and can be run together into a single paragraph.
60556         * m4/same.m4 (gl_SAME): Check for pathconf.
60557
60558 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60559
60560         Merge from coreutils.
60561
60562         * lib/posixver.c: Include posixver.h.
60563
60564         * lib/same.c: Include <stdbool.h>, <limits.h>.
60565         (_POSIX_NAME_MAX): Define if not defined.
60566         (MIN): New macro.
60567         (same_name): If file names are silently truncated, report
60568         that the file names are the same if they are the same after
60569         the silent truncation.
60570
60571         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60572         conversion function.
60573         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60574         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60575         longer needed.
60576
60577 2004-01-15  Jim Meyering  <jim@meyering.net>
60578
60579         Merge from coreutils.
60580
60581         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60582         if no library is required.
60583         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60584         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60585         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60586         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60587         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60588         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60589         value, $ac_cv_search_crypt, if it's "none required".
60590         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60591         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60592         not gl_FUNC_GETLOADAVG.
60593         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60594         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60595
60596 2004-01-15  Jim Meyering  <jim@meyering.net>
60597
60598         Merge from coreutils.
60599
60600         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60601         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60602         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60603
60604         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60605         optional configure-time default.
60606
60607         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60608
60609         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60610
60611 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60612
60613         Merge from coreutils.
60614
60615         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60616         value, $ac_cv_search_nanosleep, if it's "none required".
60617
60618 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60619
60620         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60621         with like-named macro in fnmatch.c.
60622         (EXT): Use an internal constant instead.
60623
60624         Merge fnmatch patches from glibc.
60625         * lib/fnmatch.c (mbsinit): Remove define.
60626         Add libc_hidden_ver (__fnmatch, fnmatch).
60627         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
60628         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
60629
60630 2004-01-14  Karl Berry  <karl@gnu.org>
60631
60632         * config/install-sh: update from automake.
60633
60634 2004-01-13  Karl Berry  <karl@gnu.org>
60635
60636         * config/install-sh: update from automake.
60637
60638 2004-01-09  Karl Berry  <karl@gnu.org>
60639
60640         * config/install-sh: update from automake.
60641
60642 2004-01-05  Karl Berry  <karl@gnu.org>
60643
60644         * config/config.{sub,guess}: update from config.
60645
60646 2003-12-31  Karl Berry  <karl@gnu.org>
60647
60648         * config/depcomp: update from automake.
60649
60650 2003-12-14  Karl Berry  <karl@gnu.org>
60651
60652         * lib/config.charset: update from gettext-runtime.
60653
60654 2003-12-03  Paul Eggert  <eggert@twinsun.com>
60655
60656         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
60657         Bug reported by Alfred M. Szmidt.
60658
60659 2003-12-03  Bruno Haible  <bruno@clisp.org>
60660
60661         * m4/gettext.m4: Upgrade from gettext-0.13.
60662         * m4/po.m4: Upgrade from gettext-0.13.
60663         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
60664         * m4/intmax.m4: New file, from gettext-0.13.
60665         * m4/printf-posix.m4: New file, from gettext-0.13.
60666
60667 2003-11-29  Karl Berry  <karl@gnu.org>
60668
60669         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
60670
60671 2003-11-25  Paul Eggert  <eggert@twinsun.com>
60672             Bruno Haible  <bruno@clisp.org>
60673
60674         * lib/printf-parse.h: Don't include sys/types.h.
60675         (ARG_NONE): New macro.
60676         (char_directive): Change type of *arg_index fields to size_t.
60677         * lib/printf-parse.c: Don't include sys/types.h.
60678         (SSIZE_MAX): Remove macro.
60679         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
60680         Remove unnecessary overflow check.
60681         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
60682         fields.
60683
60684 2003-11-25  Bruno Haible  <bruno@clisp.org>
60685
60686         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
60687
60688 2003-11-25  Bruno Haible  <bruno@clisp.org>
60689
60690         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
60691         gt_TYPE_SSIZE_T.
60692
60693 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60694
60695         * modules/alloca: Remove dependency on xalloc.
60696
60697 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60698
60699         * lib/alloca.c: Remove dependency on xalloc module.
60700         (xalloc_die): Remove.
60701         (memory_full) [!defined emacs]: New macro.
60702         [!defined emacs]: Don't include xalloc.h.
60703         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
60704         address arithmetic overflows.  Change datatypes a bit to avoid
60705         unnecessary casts.
60706
60707 2003-11-22  Jim Meyering  <jim@meyering.net>
60708
60709         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
60710         s/size/size_t/.
60711
60712 2003-11-21  Karl Berry  <karl@gnu.org>
60713
60714         * config/config.{sub,guess}: update from config.
60715
60716 2003-11-18  Karl Berry  <karl@gnu.org>
60717
60718         * config/config.{sub,guess}: update from config.
60719
60720         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
60721
60722 2003-11-17  Paul Eggert  <eggert@twinsun.com>
60723
60724         * README: Mention that S+T cannot overflow if S is the size of
60725         an existing object and T is sufficiently small.
60726
60727 2003-11-17  Jim Meyering  <jim@meyering.net>
60728
60729         On systems without utime and without a utimes function capable of
60730         dealing with a NULL struct utimbuf* argument, this utime replacement
60731         could -- in unusual circumstances -- leak a file descriptor.
60732         * lib/utime.c: Include <unistd.h> and <errno.h>.
60733         (utime_null): Be sure to close `fd' and to preserve errno.
60734         Reported by Geoff Collyer via Arnold Robbins.
60735
60736 2003-11-17  Bruno Haible  <bruno@clisp.org>
60737
60738         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
60739         (Depends-on): Add xsize.
60740
60741 2003-11-17  Bruno Haible  <bruno@clisp.org>
60742
60743         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
60744
60745 2003-11-17  Bruno Haible  <bruno@clisp.org>
60746
60747         * lib/vasnprintf.c (alloca): Remove fallback definition.
60748         (freea): Remove definition.
60749         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
60750         Reported by Paul Eggert.
60751
60752 2003-11-16  Paul Eggert  <eggert@twinsun.com>
60753             Bruno Haible  <bruno@clisp.org>
60754
60755         Protect against address arithmetic overflow.
60756         * lib/printf-args.h: Include stddef.h.
60757         (arguments): Change type of field 'count' to size_t.
60758         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
60759         'unsigned int' where appropriate.
60760         * lib/printf-parse.h: Include sys/types.h.
60761         (char_directive): Change type of *arg_index fields to ssize_t.
60762         (char_directives): Change type of fields 'count', max_*_length to
60763         size_t.
60764         * lib/printf-parse.c: Include sys/types.h and xsize.h.
60765         (SSIZE_MAX): Define fallback value.
60766         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
60767         instead of 'int' where appropriate. Check a_allocated, d_allocated
60768         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
60769         * lib/vasnprintf.c: Include xsize.h.
60770         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
60771         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
60772         overflow. Avoid wraparound when converting a width or precision from
60773         decimal to binary.
60774
60775 2003-11-16  Bruno Haible  <bruno@clisp.org>
60776
60777         Update from GNU gettext.
60778         * lib/printf-parse.c: Generalize to it can be compiled for wide
60779         strings.
60780         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
60781         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
60782         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
60783         SNPRINTF): New macros.
60784         Don't include <alloca.h> if the file is used inside libintl.
60785         (local_wcslen): New function, for Solaris 2.5.1.
60786         (VASNPRINTF): Use it instead of wcslen.
60787
60788 2003-11-16  Bruno Haible  <bruno@clisp.org>
60789
60790         * lib/xsize.h (xmax): New function.
60791         (xsum, xsum3, xsum4): Declare as "pure" functions.
60792
60793 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60794
60795         * modules/xalloc (Files): Undo latest change, since xalloc.h
60796         no longer needs SIZE_MAX or PTRDIFF_MAX.
60797
60798 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60799
60800         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
60801         gl_PTRDIFF_MAX.
60802
60803 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60804
60805         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
60806         "return", to pacify some unknown compiler.  Problem reported
60807         by Joerg Schilling.
60808
60809 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60810
60811         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
60812         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
60813         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
60814         heuristic is just as accurate as far as we know, and it removes a
60815         dependency on size_max.m4 and ptrdiff_max.m4.
60816
60817 2003-11-11  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/xsize (Files): Add m4/size_max.m4.
60820         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
60821
60822 2003-11-11  Bruno Haible  <bruno@clisp.org>
60823
60824         * m4/size_max.m4: New file.
60825         * m4/ptrdiff_max.m4: New file.
60826         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
60827         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
60828         (gl_XALLOC): Invoke it.
60829
60830 2003-11-11  Bruno Haible  <bruno@clisp.org>
60831
60832         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
60833         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
60834         defined.
60835
60836 2003-11-10  Paul Eggert  <eggert@twinsun.com>
60837
60838         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
60839         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
60840         rejected some allocations of exactly SIZE_MAX - 2 bytes.
60841         From Bruno Haible.
60842         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
60843         not (size_t) -1, since it's defined here.
60844
60845 2003-11-09  Karl Berry  <karl@gnu.org>
60846
60847         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
60848
60849 2003-11-06  Paul Eggert  <eggert@twinsun.com>
60850
60851         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
60852         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
60853         Reject sizes of exactly SIZE_MAX bytes.
60854         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
60855         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
60856
60857 2003-11-05  Bruno Haible  <bruno@clisp.org>
60858
60859         * lib/xsize.h: Include limits.h, to avoid a possible collision with
60860         SIZE_MAX defined in <limits.h> on Solaris.
60861
60862 2003-11-04  Jim Meyering  <jim@meyering.net>
60863
60864         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
60865         variable names, rather than @VAR@.
60866         * modules/poll: Likewise.
60867
60868 2003-11-04  Bruno Haible  <bruno@clisp.org>
60869
60870         * modules/xsize: New file.
60871         * modules/linebreak: Depend on xsize.
60872         * MODULES.html.sh (func_all_modules): Add xsize.
60873
60874 2003-11-04  Bruno Haible  <bruno@clisp.org>
60875
60876         * m4/xsize.m4: New file.
60877
60878 2003-11-04  Bruno Haible  <bruno@clisp.org>
60879
60880         * lib/xsize.h: New file.
60881         * lib/linebreak.c: Include xsize.h.
60882         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
60883         argument for overflow.
60884         Suggested by Paul Eggert.
60885
60886 2003-11-03  Karl Berry  <karl@gnu.org>
60887
60888         * config/config.{guess,sub}: update from config.
60889
60890 2003-11-03  Jim Meyering  <jim@meyering.net>
60891
60892         * modules/userspec (lib_SOURCES): Add userspec.h.
60893         (Include): Add "userspec.h".
60894         Improve description.
60895
60896 2003-11-03  Jim Meyering  <jim@meyering.net>
60897
60898         * lib/userspec.c: Include "userspec.h".
60899         * lib/userspec.h: New file.
60900
60901 2003-11-03  Bruno Haible  <bruno@clisp.org>
60902
60903         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
60904
60905 2003-11-03  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
60908         available, to avoid (extremely rare) race condition.
60909         Suggested by Paul Eggert.
60910
60911 2003-11-02  Karl Berry  <karl@gnu.org>
60912
60913         * config/srclist.txt (vasprintf.c): sync broken, sigh.
60914
60915 2003-10-31  Paul Eggert  <eggert@twinsun.com>
60916
60917         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
60918         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
60919         (read_filesystem_list): Set and use me_type_malloced.
60920         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
60921         whatever the type happens to be), for brevity and consistency.
60922         Check for size calculation overflow on Alphas running OSF/1.
60923
60924 2003-10-31  Jim Meyering  <jim@meyering.net>
60925
60926         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
60927
60928         * lib/linebuffer.c: Include <string.h> for declaration of memset.
60929
60930 2003-10-30  Paul Eggert  <eggert@twinsun.com>
60931             Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
60934         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
60935
60936 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
60939         netbsd*-gnu*.  Suggested by Robert Millan.
60940
60941 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60942
60943         * modules/group-member: Depend on stdbool.
60944
60945 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60946
60947         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
60948
60949 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60950
60951         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
60952         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
60953         after the 'gnu' in these cases.  This fixes some bugs in the
60954         previous change, and is based on suggestions by Robert Millan.
60955
60956 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60957
60958         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
60959         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
60960         no longer needed.
60961         * lib/quotearg.c (quotearg_n_options): Use it.
60962         * lib/group-member.c: Include <stdbool.h>.
60963         (free_group_info): Arg is now const *; don't free arg.
60964         (get_group_info): Now returns bool and accepts struct group_info *,
60965         rather than returning a malloc'ed struct group_info *.
60966         All uses changed.  Check for overflow in internal size calculation.
60967
60968         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
60969         rather than xmalloc/xrealloc.
60970         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
60971         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
60972         conformance bug: the old code used a pointer after freeing the
60973         storage that it addressed.
60974         * lib/hash.c (hash_initialize): Simplify the code by using
60975         xalloc_oversized rather than doing it by hand.
60976         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
60977         the buffer preserved.  Use free and xmalloc instead.
60978         * lib/quotearg.c (quotearg_n_options): Likewise.
60979         Use a simpler test for size overflow.  Don't use xalloc_oversized
60980         because unsigned int might be wider than size_t (!); this suggests
60981         that we should switch from unsigned int to size_t for slot numbers.
60982
60983 2003-10-28  Paul Eggert  <eggert@twinsun.com>
60984
60985         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
60986         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
60987         NetBSD kernels.  Requested by Richard Stallman.
60988
60989 2003-10-27  Paul Eggert  <eggert@twinsun.com>
60990
60991         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
60992         to allocate the returned structure.  Do not allocate a subarray,
60993         as x2nrealloc will do that.
60994         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
60995         instead of xnrealloc.
60996         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
60997
60998 2003-10-27  Bruno Haible  <bruno@clisp.org>
60999
61000         * lib/stdbool_.h: Better support for BeOS.
61001
61002 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61003
61004         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61005         now uses inline.
61006
61007 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61008
61009         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61010         callers that want to do their own size-overflow checking.  Include
61011         <stdbool.h>, since xalloc_oversized returns bool.
61012         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61013         to use xalloc_oversized.
61014
61015         Add two functions x2realloc, x2nrealloc, for programs that grow
61016         arrays dynamically by doubling their sizes.
61017         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61018         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61019         New functions.
61020
61021         Port to C99 semantics for 'inline' of external functions.
61022         Bug reported by Bruno Haible.
61023         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61024         with the old contents of xnmalloc.
61025         (xnmalloc, xmalloc): Use it.
61026         (xnrealloc_inline): New static inline function,
61027         with the old contents of xnrealloc.
61028         (xnrealloc, xrealloc): Use it.
61029
61030         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61031         that.
61032
61033 2003-10-26  Karl Berry  <karl@gnu.org>
61034
61035         * config/srclist.txt (COPYING.DOC): no longer available from
61036         /gd/gnuorg; don't know where the ultimate source is.
61037
61038 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61039
61040         Fix several address-calculation bugs in the hash modules,
61041         plus some minor code cleanup.
61042
61043         * lib/hash.h: Include <stdbool.h>, for bool.
61044         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61045         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61046         hash_get_n_entries, hash_get_max_bucket_length,
61047         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61048         hash_rehash): Use size_t rather than unsigned.
61049         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61050         hash_get_n_buckets_used, hash_get_n_entries,
61051         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61052         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61053         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61054         Likewise.
61055         (SIZE_MAX): Define if not defined.
61056         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61057         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61058         hash_print):
61059         Use const * when possible.
61060         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61061         (check_tuning): Fix bug: if tuning parameters were very close to
61062         0 or 1, rounding errors could have caused subscript violations.
61063         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61064         (hash_initialize): Add 'fail:' label
61065         to free table and return NULL, and use it to simplify code.
61066         Use calloc rather than clearing the storage ourself.
61067         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61068         buffer size calculations.
61069         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61070         Include <stddef.h>, for size_t.
61071         * lib/hash-pjw.c (hash_pjw): Likewise.
61072         Switch to method described by Bruno Haible.
61073         Include <limits.h>, for CHAR_BIT.
61074         (SIZE_BITS): New macro.
61075
61076 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61077
61078         * m4/getline.m4 (AM_FUNC_GETLINE):
61079         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61080         hosts.  Problem reported by Derek Robert Price in
61081         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61082         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61083         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61084
61085 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61086
61087         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61088         ceiling the allocation at NMAX bytes rather than silently
61089         discarding input bytes before NMAX is reached.  This makes
61090         a difference only if NMAX exceeds SIZE_MAX / 2.
61091
61092         * lib/obstack.c: Merge from glibc.
61093         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61094         Add libc_hidden_def (_obstack_newchunk).
61095         (_obstack_free) [! defined _LIBC]: Remove.
61096         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61097         a clone of the function body.
61098         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61099         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61100
61101         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61102         glibc.
61103         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61104         arg to memcpy.
61105
61106         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61107         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61108         Don't use lvalue casts, as GCC plans to remove support for them
61109         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61110         was also present in the non-GCC version, indicating that this
61111         code had always been buggy and had never been widely used.
61112         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61113         Use the fast variant of each macro, rather than copying the
61114         definiens of the fast variant; that way, we'll be more likely to
61115         catch future bugs in the fast variants.
61116
61117 2003-10-20  Bruno Haible  <bruno@clisp.org>
61118
61119         * modules/wait-process: New file.
61120         * MODULES.html.sh (func_all_modules): Add wait-process.
61121
61122 2003-10-20  Bruno Haible  <bruno@clisp.org>
61123
61124         * m4/wait-process.m4: New file.
61125
61126 2003-10-20  Bruno Haible  <bruno@clisp.org>
61127
61128         * lib/wait-process.h: New file, from GNU gettext.
61129         * lib/wait-process.c: New file, from GNU gettext.
61130
61131 2003-10-19  Jim Meyering  <jim@meyering.net>
61132
61133         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61134         HPUX 10.20.
61135
61136 2003-10-18  Karl Berry  <karl@gnu.org>
61137
61138         * config/config.guess: update from config.
61139
61140 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61141
61142         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61143         (getgroups): First arg is int, not size_t.
61144         Don't let 'free' mangle errno.
61145
61146 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61147
61148         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61149
61150 2003-10-16  Karl Berry  <karl@gnu.org>
61151
61152         * config/config.{guess,sub}: update from config.
61153
61154 2003-10-16  Jim Meyering  <jim@meyering.net>
61155
61156         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61157         memcpy.
61158
61159 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61160
61161         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61162         (SIZE_MAX): Remove.
61163         (new_exclude, add_exclude_file): Initial size no longer needs to
61164         be a power of 2.
61165         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61166         our own address arithmetic overflow checking.
61167
61168         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61169         (fnmatch): Do not alloca more than 2000 wide characters;
61170         instead, use malloc for large buffers.
61171         Check for address arithmetic overflow, and return -1
61172         with errno set to ENOMEM in that case.
61173         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61174         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61175         instead, return -1.  Check for address arithmetic overflow.
61176
61177 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61178
61179         Handle invalid suffixes and overflow independently, so that
61180         callers can treat them independently as needed.  Fix some bugs in
61181         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61182         suffix for a human-readable blocksize.  The major caller-visible
61183         change is the addition of a new
61184         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61185         that both overflow and suffix chars were found.
61186
61187         * lib/human.c (humblock): Don't check separately for invalid suffix
61188         char; that is xstrtoumax's job (now that its bug is fixed).
61189         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61190         INTMAX_MAX]: New macros.
61191         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61192         TYPE_MAXIMUM): New macros.
61193         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61194         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61195         if overflow occurs, as it's what __strtol does and it's more useful
61196         in practice.
61197         (__xstrtol): If __strtol reports some error other than ERANGE,
61198         reflect it to the caller as LONGINT_INVALID.  If it reports
61199         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61200         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61201         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61202         value.
61203         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61204         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61205         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61206         [defined UINTMAX_MAX]: New macros.
61207
61208 2003-10-14  Bruno Haible  <bruno@clisp.org>
61209
61210         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61211
61212 2003-10-14  Bruno Haible  <bruno@clisp.org>
61213
61214         * m4/sig_atomic_t: New file, from GNU gettext.
61215         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61216
61217 2003-10-14  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61220         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61221         Also use volatile where needed.
61222
61223 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61224
61225         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61226         Change maintainer from Bruno Haible to 'all'.
61227
61228 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61229
61230         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61231
61232 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61233
61234         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61235         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61236         and define in terms of the other primitives.
61237         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61238         (SIZE_MAX): Define if not already defined.
61239         (array_size_overflow): New function.
61240         (xalloc_die): Abort instead of exiting if 'error' returns.
61241         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61242         (xmalloc, xrealloc): Use them.
61243         (xcalloc): Check for address arithmetic overflow.
61244         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61245         a bit faster than strcpy.
61246
61247 2003-10-10  Simon Josefsson  <jas@extundo.com>
61248
61249         * modules/argp (Depends-on): Add restrict and strcase.
61250
61251 2003-10-10  Simon Josefsson  <jas@extundo.com>
61252
61253         * m4/argp.m4: Add AC_C_INLINE.
61254
61255 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61256
61257         Merge getpass from libc, plus a few fixes.
61258
61259         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61260         Include <stdbool.h>.
61261         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61262         __fsetlocking to empty.
61263         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61264         do include <bits/libc-lock.h>.
61265         Do not include <fcntl.h>; not needed.
61266         [_LIBC]: Include <wchar.h>.
61267         (NOTCANCEL_MODE): New macro.
61268         (flockfile, funlockfile) [_LIBC]: New macros.
61269         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61270         [!_LIBC]: New macros.
61271         (call_fclose): New function.
61272         (getpass): Use it.  Save tty stream separately; this simplifies the
61273         code and makes it more reliable if stdin happens to equal stdout.
61274         Invoke __fsetlocking on tty.
61275         Handle thread cancellation if needed.
61276         Namespace cleanup (use __tcgetattr, __getline).
61277         Use bool for Booleans.
61278         [USE_IN_LIBIO]: Handle wide streams.
61279         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61280         stream might go where.
61281
61282         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61283         doesn't have to include <stdio.h> before us.
61284         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61285         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61286         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61287         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61288         if not declared, so that we can use getpass.c code from libc without
61289         rewriting it.
61290         (flockfile, ftrylockfile, funlockfile): New macros.
61291
61292 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61293
61294         * modules/getpass: Depend on stdbool.
61295
61296 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61297
61298         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61299
61300 2003-10-07  Karl Berry  <karl@gnu.org>
61301
61302         * config/config.{guess,sub}: update from config.
61303
61304 2003-10-06  Jim Meyering  <jim@meyering.net>
61305             Bruno Haible  <bruno@clisp.org>
61306
61307         This lets translators provide better translations for the
61308         "Written by ..." part of --version output.
61309         * lib/version-etc.h: Include stdarg.h.
61310         (version_etc_copyright): Declare as readonly.
61311         (version_etc): Make this function variadic with a NULL-terminated list
61312         of author name strings.
61313         (version_etc_va): New declaration.
61314         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61315         (version_etc_copyright): Declare as readonly.
61316         (version_etc_va): New function. Provide a different translatable string
61317         for each possible number of authors < 10. Abbreviate when there are 10
61318         authors or more.
61319         (version_etc): Make this function variadic. Call version_etc_va.
61320         Suggestion from Gary V. Vaughan.
61321
61322         * lib/long-options.h (parse_long_options): Change prototype: the
61323         authors string is moved to the end and becomes variadic.
61324         * lib/long-options.c: Include stdarg.h.
61325         (parse_long_options): Make this function variadic, too.
61326         Call version_etc_va, not version_etc.
61327
61328 2003-10-06  Bruno Haible  <bruno@clisp.org>
61329
61330         * modules/version-etc-2: Remove file.
61331         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61332
61333 2003-10-06  Bruno Haible  <bruno@clisp.org>
61334
61335         * modules/fatal-signal: New file.
61336         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61337
61338 2003-10-06  Bruno Haible  <bruno@clisp.org>
61339
61340         * m4/fatal-signal.m4: New file.
61341         * m4/signalblocking.m4: New file, from GNU gettext.
61342
61343 2003-10-06  Bruno Haible  <bruno@clisp.org>
61344
61345         * lib/version-etc-2.h: Remove file.
61346         * lib/version-etc-2.c: Remove file.
61347
61348 2003-10-06  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/fatal-signal.h: New file, from GNU gettext.
61351         * lib/fatal-signal.c: New file, from GNU gettext.
61352
61353 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61354
61355         * README: Rework advice for preventing empty .o files.
61356         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61357         not <sys/types.h>.
61358
61359 2003-10-04  Karl Berry  <karl@gnu.org>
61360
61361         * lib/argp*: update from libc.
61362
61363 2003-10-04  Karl Berry  <karl@gnu.org>
61364
61365         * config/config.{guess,sub}: update from config.
61366
61367 2003-10-02  Bruno Haible  <bruno@clisp.org>
61368
61369         * modules/lchown (Include): Add lchown.h.
61370         * modules/time_r (Include): Use "..." syntax.
61371         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61372
61373 2003-10-01  Simon Josefsson  <jas@extundo.com>
61374
61375         * MODULES.html.sh (func_all_modules): Move gethostname from section
61376         'based on' to section 'lacking' POSIX:2001.
61377
61378 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61379
61380         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61381         to output mode on the same stream.
61382
61383 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61384
61385         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61386         Fix arg typo in previous patch.
61387
61388 2003-09-28  Jim Meyering  <jim@meyering.net>
61389
61390         * lib/error.c: Correct cpp indentation.
61391
61392 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61393
61394         * modules/free: New file.
61395
61396 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61397
61398         * m4/free.m4: New file.
61399
61400 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61401
61402         * lib/minmax.h (MIN, MAX)
61403         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61404         Omit the special code that used __typeof__, since we worry that
61405         it could be more trouble than it's worth.  See:
61406         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61407         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61408
61409         * lib/free.c: New file.
61410
61411 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61412
61413         Trivial fixes to Makefile.am parts of module listings.
61414         * modules/strstr: Append strstr.h to lib_SOURCES.
61415         * modules/strcase: Likewise, for strcase.h.
61416
61417 2003-09-27  Karl Berry  <karl@gnu.org>
61418
61419         * config/mkinstalldirs: update from automake.
61420
61421 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61422
61423         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61424         (error_tail): Do not loop, reallocating temporary buffer, since
61425         the output cannot contain more wide characters than the input
61426         contains bytes, the size must be big enough already.  This avoids
61427         one potential size overflow calculation.  Check for size overflow
61428         when calculating temporary buffer size.  Free temporary buffer
61429         when done, if it was allocated with malloc; this plugs a memory
61430         leak.  Remove casts from void * to pointers, that are no longer
61431         needed now that we're assuming C89 or better.
61432
61433         Merge error changes from glibc.
61434
61435         * lib/error.c, error.h: Update copyright notice header to match glibc.
61436         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61437         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61438         Disable cancellation while printing error.
61439         * lib/error.h: Prepend __ to parameter names.
61440
61441 2003-09-26  Jim Meyering  <jim@meyering.net>
61442
61443         * lib/error.c (error_tail): Move some declarations
61444         into inner scope where the local variables are used.
61445
61446 2003-09-26  Bruno Haible  <bruno@clisp.org>
61447
61448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61449         stpncpy().
61450         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61451
61452 2003-09-26  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61455         (stpncpy): Define as alias for gnu_stpncpy.
61456         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61457
61458 2003-09-25  Simon Josefsson  <jas@extundo.com>
61459
61460         * lib/xgetdomainname.h: New file.
61461         * lib/xgetdomainname.c: New file.
61462
61463 2003-09-25  Simon Josefsson  <jas@extundo.com>
61464             Bruno Haible  <bruno@clisp.org>
61465
61466         * modules/getdomainname: New file.
61467         * modules/xgetdomainname: New file.
61468         * MODULES.html.sh (func_all_modules): Add getdomainname,
61469         xgetdomainname.
61470
61471 2003-09-25  Simon Josefsson  <jas@extundo.com>
61472             Bruno Haible  <bruno@clisp.org>
61473
61474         * m4/getdomainname.m4: New file.
61475
61476 2003-09-25  Simon Josefsson  <jas@extundo.com>
61477             Bruno Haible  <bruno@clisp.org>
61478
61479         * lib/getdomainname.h: New file.
61480         * lib/getdomainname.c: New file.
61481
61482 2003-09-25  Karl Berry  <karl@gnu.org>
61483
61484         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61485
61486 2003-09-25  Karl Berry  <karl@gnu.org>
61487
61488         * config/install-sh: update from automake.
61489
61490 2003-09-25  Bruno Haible  <bruno@clisp.org>
61491
61492         * modules/version-etc-2: New file, from modules/version-etc with
61493         modifications.
61494         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61495
61496 2003-09-25  Bruno Haible  <bruno@clisp.org>
61497
61498         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61499         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61500
61501 2003-09-24  Simon Josefsson  <jas@extundo.com>
61502
61503         * modules/xgethostname: Add xgethostname.h.
61504
61505 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61506
61507         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61508         the buffer associated with the argument.  Bug reported by
61509         Simon Josefsson.
61510
61511 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61512
61513         * README: Document assumptions that 'int' is at least 32 bits
61514         wide, that integer arithmetic is 2's complement without overflow,
61515         that there are no holes in integer values, that adding sizes of
61516         two nonoverlapping objects can't overflow, and that all-bits-zero
61517         yields scalar zero.  Fix spelling and capitalization typos.
61518
61519 2003-09-19  Karl Berry  <karl@gnu.org>
61520
61521         * lib/argp.h: update from libc.
61522
61523 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61524
61525         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61526         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61527         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61528
61529 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61530
61531         * gnulib-tool: Use "test -h", not "test -L", for portability
61532         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61533         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61534         (sed_extract_prog): Issue s commands one-by-one, rather than
61535         using \| in one s command.
61536
61537 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61538
61539         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61540         input error, instead of returning NULL the next time we are called
61541         (and therefore losing track of errno).
61542
61543 2003-09-16  Bruno Haible  <bruno@clisp.org>
61544
61545         * gnulib-tool (func_create_testdir): Warn about duplicated
61546         dependencies.
61547
61548 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61549
61550         * modules/argmatch, modules/fatal, modules/obstack,
61551         modules/xalloc, modules/xgethostname: Sort dependencies by
61552         importance, not alphabetically.
61553
61554 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61555
61556         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61557         fails, so that the caller gets the proper errno.
61558
61559         * lib/readutmp.c (read_utmp): Likewise.
61560         Check for fstat error.  Close stream and free storage
61561         when failing.
61562
61563 2003-09-14  Karl Berry  <karl@gnu.org>
61564
61565         * config/srclist.txt (strdup.c): disable for c89 changes.
61566
61567 2003-09-14  Jim Meyering  <jim@meyering.net>
61568
61569         * lib/getloadavg.c: Correct cpp indentation.
61570         * lib/strdup.c: Likewise.
61571         * lib/vasnprintf.c: Likewise.
61572
61573 2003-09-14  Bruno Haible  <bruno@clisp.org>
61574
61575         * modules/fwriteerror: New file.
61576         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61577
61578 2003-09-14  Bruno Haible  <bruno@clisp.org>
61579
61580         * lib/fwriteerror.h: New file.
61581         * lib/fwriteerror.c: New file.
61582
61583 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61584
61585         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61586         modules/xgethostname, modules/xalloc: Depend on exit.
61587
61588 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61589
61590         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61591
61592         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61593         and AC_MINIX, too, so that their extensions are available.
61594
61595         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61596         This macro has been superseded by gl_BACKUPFILE.
61597
61598         More patches to assume C89 or better.
61599
61600         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61601
61602         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61603         unconditionally.
61604         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61605         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61606         Include <string.h>, <stdlib.h> unconditionally.
61607         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61608         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61609         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61610         headers or for string.h.
61611         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61612         or strtoul.
61613
61614         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61615         headers.
61616         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61617         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61618         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61619         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61620         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61621         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61622         memcpy, memset.
61623         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61624         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61625         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
61626         strtol.
61627         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
61628         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
61629         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
61630         strtoul.
61631
61632 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61633
61634         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
61635         * lib/obstack.c [!defined _LIBC]: Likewise.
61636         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
61637         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
61638         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
61639
61640         More changes to assume C89 or better.
61641
61642         * lib/error.c (error_tail): Assume vprintf.
61643
61644         * lib/argmatch.c (getenv): Remove decl.
61645         * lib/progreloc.c (get_full_program_name): Define via prototype.
61646         * lib/setenv.c (clearenv): Likewise.
61647         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
61648         needed.
61649         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
61650         (malloc, memcpy): Remove decls.
61651         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
61652         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
61653         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61654         (memcpy): Remove macro.
61655         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
61656         (__P): Remove.  All uses removed.
61657         (PTR): Remove.  All uses changed to void *.
61658         (CHAR_BIT, NULL): Remove.
61659         (spaces, zeros, memset_space, memset_zero)
61660         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
61661         Remove.
61662         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
61663         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
61664         Define with prototype.
61665         Remove now-unnecessary prototype decl.
61666         (extra_args_spec): Assume ANSI C.  All uses changed.
61667         (extra_args_spec_iso): Remove.
61668         (my_strftime, emacs_strftimeu): Define via prototype.
61669         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
61670         unconditionally.
61671         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
61672         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
61673         (strtoul, strtol): Remove decls.
61674         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
61675         LONG_MAX): Remove.
61676         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61677         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
61678         (LOCALE_PARAM_PROTO): New macro.
61679         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
61680         (INTERNAL (strtol), strtol): Define with a prototype.
61681         (PARAMS): Remove.  All uses removed.
61682         * lib/tempname.c: Include <string.h> unconditionally.
61683         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
61684         * lib/xgethostname.c (main): Define with a prototype.
61685         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
61686         Include <stdlib.h> unconditionally.
61687         (calloc, malloc, realloc, free): Remove decls.
61688         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
61689         Include <stdlib.h> unconditionally.  Sort include file names.
61690         (strtod): Remove.
61691         (xstrtod): Define with a prototype.
61692         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
61693         (strtol, strtoul): Remove decls.
61694
61695 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61696
61697         More patches to assume C89 or better.
61698         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
61699         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
61700         string.h, memchr, STDC_HEADERS.
61701
61702 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61703
61704         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
61705         Include <stdlib.h>, <string.h> unconditionally.
61706         Remove now-unnecessary cast to char *.
61707         * lib/strnlen.c: Include <string.h> unconditionally.
61708         * lib/yesno.c (yesno): Define with a prototype.
61709
61710 2003-09-11  Bruno Haible  <bruno@clisp.org>
61711
61712         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
61713
61714 2003-09-10  Jim Meyering  <jim@meyering.net>
61715
61716         * lib/error.c: Correct indentation of cpp directives.
61717
61718 2003-09-10  Bruno Haible  <bruno@clisp.org>
61719
61720         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
61721         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
61722         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
61723         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
61724         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
61725         <stdlib.h> and <string.h> checks.
61726         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
61727         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
61728
61729 2003-09-10  Bruno Haible  <bruno@clisp.org>
61730
61731         * lib/strcspn.c: Include <string.h> unconditionally.
61732         * lib/strpbrk.c: Include <string.h> unconditionally.
61733         * lib/strstr.c: Include <string.h> unconditionally.
61734         * lib/unicodeio.c: Include <string.h> unconditionally.
61735         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
61736         * lib/unsetenv.c: Likewise.
61737         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
61738         * lib/yesno.c: Include <stdlib.h> unconditionally.
61739         (rpmatch): Add prototype.
61740
61741 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61742
61743         More patches to assume C89 or better.
61744         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
61745         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
61746         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
61747         or for string.h.
61748         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
61749         stdlib.h.
61750         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
61751         C headers.
61752         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
61753         string.h.
61754         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
61755         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
61756         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
61757         or for string.h.
61758         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
61759         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
61760         C headers.
61761         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
61762         memcpy.
61763         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
61764         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
61765         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
61766         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
61767         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
61768         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
61769         string.h, free.
61770         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
61771         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
61772         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
61773         C headers, or for string.h.
61774         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
61775         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
61776         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
61777         headers, memory.h, stdlib.h, string.h, strings.h.
61778         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
61779         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
61780         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
61781         strchr.
61782         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
61783         headers, memory.h, string.h.
61784         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
61785         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
61786         free.
61787         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
61788         headers.
61789         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
61790         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
61791         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
61792         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
61793         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
61794
61795 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61796
61797         More K&R removal.
61798
61799         * lib/acosl.c (main): Use a prototype.
61800         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
61801         tanl.c: Likewise.
61802
61803         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
61804
61805         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
61806         (getopt, etopt_long, getopt_long_only, _getopt_internal)
61807         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
61808         with a prototype.
61809         * lib/getopt.c (const): Remove macro.
61810         Include <string.h> unconditionally.
61811         (my_index): Remove; all uses changed to strchr.
61812         (strlen): Remove decl.
61813         (exchange): Remove forward decl; no longer needed.
61814         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
61815         Define with prototype.
61816         * lib/getopt1.c (const): Remove macro.
61817         (getopt_long, getopt_long_only, main): Define with prototype.
61818
61819         * lib/getugroups.c: Include <string.h> unconditionally.
61820
61821         * lib/getusershell.c: Include <stdlib.h> unconditionally.
61822         (getusershell, setusershell, endusershell, readname, main):
61823         Define with prototypes.
61824
61825         * lib/group-member.c: Include group-member.h first.
61826         Include <stdlib.h> unconditionally.
61827
61828         * lib/hard-locale.c: Include hard-locale.h first.
61829         Include <stdlib.h>, <string.h> unconditionally.
61830
61831         * lib/hash.c (free, malloc): Remove decls.
61832         Include <stdlib.h> unconditionally.
61833
61834         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
61835         (getenv): Do not declare.
61836
61837         * lib/idcache.c: Include <string.h> unconditionally.
61838
61839         * lib/long-options.c: Include long-options.h first, to test interface.
61840         Include <stdlib.h> unconditionally.
61841
61842         * lib/makepath.c: Include makepath.h first, to test interface.
61843         Include <stdlib.h> and <string.h> unconditionally.
61844
61845         * lib/linebuffer.c: Include <stdlib.h>.
61846         (free): Remove decl.
61847
61848         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
61849         stddef.h. rpl_malloc returns void *, not char *.
61850         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
61851         prototype.
61852
61853         * lib/md5.h: Include <limits.h> unconditionally.
61854         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
61855         (__P): Remove; all uses removed.
61856         * lib/md5.c: Include "md5.h" first.
61857         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
61858         md5_buffer, md5_process_bytes, md5_process_block):
61859         Define with prototypes.
61860         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
61861         * lib/sha.c: Include "sha.h" first.
61862         Include <stdlib.h>, <string.h> unconditionally.
61863
61864         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
61865         * lib/memcmp.c (__ptr_t): Likewise.
61866         * lib/memrchr.c (__ptr_t): Likewise.
61867         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
61868         Include <string.h> unconditionally.
61869         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
61870         * lib/memchr.c: Include <stdlib.h> unconditionally.
61871         * lib/memchr.c (LONG_MAX): Remove.
61872         * lib/memrchr.c (LONG_MAX): Likewise.
61873         * lib/memchr.c (__memchr): Define via a prototype.
61874         * lib/memrchr.c (__memrchr): Likewise.
61875         * lib/memcmp.c (__P): Remove, and remove all uses.
61876         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
61877         Remove forward decls; no longer needed.
61878         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
61879         Use types required by C89 in prototype.
61880
61881         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
61882         * lib/savedir.c: Likewise.
61883         * lib/mkdir.c (free): Remove decl.
61884         * lib/rmdir.c (rmdir): Define with a prototype.
61885         * lib/savedir.c: Include savedir.h first, to test interface.
61886
61887         * lib/mktime.c (STDC_HEADERS): Remove.
61888         Include <stdlib.h>, <string.h> unconditionally.
61889
61890         * lib/modechange.c: Include <stdlib.h> unconditionally.
61891         (malloc): Remove decl.
61892
61893         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
61894         (free): Remove decl.
61895
61896         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
61897         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
61898         (This type really should be intptr_t, but that's a C99ism.)
61899         (_obstack_memcpy): Remove: all uses changed to memcpy.
61900         Include <string.h> unconditionally.
61901         (struct obstack): Assume __STDC__ for types of members
61902         chunkfun, freefun, extra_arg.
61903         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
61904         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
61905         obstack_begin, obstack_specify_allocation,
61906         obstack_specify_allocation_with_arg, obstack_chunkfun,
61907         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
61908         Remove unprototyped decls and the macros that use them.
61909         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
61910         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
61911         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
61912         (defined __STDC__ && __STDC__)]:
61913         Remove nonprototyped code.
61914         Include <stdlib.h> unconditionally.
61915         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
61916         _obstack_allocated_p, _obstack_free, obstack_free,
61917         _obstack_memory_used, print_and_abort):
61918         Define using prototypes.
61919         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
61920         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
61921         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
61922         obstack_next_free, obstack_object_size, obstack_room) [0]:
61923         Remove unused, unprototyped code.
61924
61925         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
61926
61927         * lib/physmem.c (physmem_total, physmem_available, main): Define
61928         with prototypes.
61929
61930         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
61931         (main): Define with a prototype.
61932
61933         * lib/posixver.c (getenv): Remove decl.
61934
61935         * lib/putenv.c (malloc): Returns void *, not char *.
61936         Include <string.h> unconditionally.
61937         (strchr, memcpy, NULL): Do not define.
61938
61939         * lib/readtokens.c: Include readtokens.h first, to test interface.
61940         Include <stdlib.h>, <string.h> unconditionally.
61941         (init_tokenbuffer): Define with a prototype.
61942
61943         * lib/regex.c (PARAMS): Remove.  All uses removed.
61944         All uses of _RE_ARGS removed, too.
61945         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61946         unconditionally.
61947         (bzero): Assume memset exists.
61948         (memcmp, memcpy, NULL): Remove.
61949         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
61950         char, or assignments to local vars of type signed char.
61951         (init_syntax_once, PREFIX(extract_number_and_incr),
61952         PREFIX(print_partial_compiled_pattern),
61953         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
61954         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
61955         PREFIX(regex_grow_registers), PREFIX(regex_compile),
61956         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
61957         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
61958         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
61959         wcs_compile_range, byte_compile_range, truncate_wchar,
61960         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
61961         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
61962         count_mbs_length, wcs_re_match_2_internal,
61963         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
61964         PREFIX(alt_match_null_string_p),
61965         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
61966         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
61967         regfree, PREFIX(extract_number)): Define with prototype.  Remove
61968         now-unnecessary declaration, if any.
61969         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
61970         regcomp, regexec):
61971         Remove now-unnecessary casts among pointer types.
61972         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
61973
61974         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
61975         (free): Remove decl.
61976
61977         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
61978
61979         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
61980         (free): Remove decl.
61981
61982         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
61983         * lib/xgetcwd.c: Likewise.
61984
61985         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
61986         (free): Remove decl.
61987
61988         * lib/strchrnul.c (strchrnul): Define with a prototype.
61989         Fix bug: c_in was not converted to char before searching.
61990
61991         The following changes are not K&R related:
61992
61993         * lib/group-member.h: Include <sys/types.h>, so that this file is
61994         self-contained.
61995         * lib/makepath.h: Likewise.
61996
61997         * lib/getusershell.c (readname, default_index, line_size, readname):
61998         Use size_t, not int, for sizes.
61999         (readname): If the size overflows, report an error instead of
62000         looping forever.
62001
62002 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62003
62004         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62005         libc.
62006
62007 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62008
62009         * README: New section: portability guidelines.
62010
62011 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62012
62013         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62014         C89 spec.
62015
62016 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62017
62018         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62019
62020 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62021
62022         Assume C89 or better; remove K&R cruft.
62023         A few of these changes were first proposed by Derek Robert Price
62024         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62025
62026         * lib/addext.c: Include <string.h> unconditionally.
62027         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62028         Don't declare getenv or malloc.
62029
62030         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62031         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62032         (NULL): Remove.
62033         (find_stack_direction, alloca): Use prototypes.
62034
62035         * lib/atexit.c (atexit): Define using a prototype.
62036
62037         * lib/basename.c, dirname.c, stripslash.c:
62038         Include <string.h> unconditionally.
62039
62040         * lib/bcopy.c: Include <stddef.h>.
62041         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62042
62043         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62044
62045         * lib/error.h (error, error_at_line, error_print_progname)
62046         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62047         * lib/error.c: Include error.h first, to check interface.
62048         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62049         (VA_START): Remove; all uses changeed to va_start.
62050         (exit, strerror): Remove decls.
62051         (error_print_progname): Prototype uncondionally.
62052         Don't include <errno.h>; no longer needed.
62053         (private_strerror): Remove.
62054         (error_tail): Always define.
62055         (error, error_at_line): Assume C89 or better; always use prototypes.
62056         * lib/fatal.c: Include "fatal.h" first, to test interface.
62057         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62058         (VA_START): Remove; all uses changed to va_start.
62059         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62060         this case.
62061         (exit): Remove decl.
62062         (fatal): Prototype unconditionally.  Assume va_start works.
62063         Abort at end, to pacify gcc.
62064
62065         * lib/euidaccess.c (main): Define with a prototype.
62066
62067         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62068
62069         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62070
62071         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62072         prototypes.
62073         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62074         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62075         (getenv): Remove decl.
62076         (fnmatch): Define using a prototype.
62077         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62078         (FCT): Define using a prototype.
62079
62080         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62081
62082         * lib/gethostname.c: Include <stddef.h>.
62083         (gethostname): Define with prototype.  Length is size_t, not int.
62084
62085 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62086
62087         Assume C89 or better; remove K&R cruft.
62088         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62089         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62090         string.h, getenv, malloc.
62091         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62092         headers.
62093         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62094         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62095         do not check for strerror.
62096         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62097         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62098         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62099         do not check for doprnt or vprintf.
62100         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62101         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62102
62103 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62104
62105         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62106         getversion.c should have been removed then, but was accidentally
62107         preserved.
62108
62109         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62110         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62111
62112 2003-09-08  Karl Berry  <karl@gnu.org>
62113
62114         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62115                 config, forget about prep.
62116
62117         * config/depcomp, missing: update from automake.
62118
62119 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62120
62121         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62122         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62123
62124 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62125
62126         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62127         copy_tm_result.  Bug reported by Simon Josefsson in
62128         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62129
62130 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62131
62132         * m4/time_r.m4: New file.
62133         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62134         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62135         is. Check for timegm declaration.
62136         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62137         Do not check for gmtime_r.
62138         Replace mktime if __mktime_internal does not exist and if mktime
62139         hasn't been replaced already.
62140
62141 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62142
62143         * lib/time_r.c, lib/time_r.h: New files.
62144
62145         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62146         __localtime_r.
62147         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62148         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62149
62150         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62151         __gmtime_r.
62152         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62153         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62154         Include <time_r.h>.
62155
62156         * lib/timegm.c: Switch to glibc implementation, with the following
62157         changes:
62158         [defined HAVE_CONFIG_H]: Include <config.h>.
62159         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62160         (__mktime_internal) [!defined _LIBC]: New decl.
62161         (__gmtime_r) [!defined _LIBC]: New macro and function.
62162         (timegm): Use a prototype, since gnulib assumes C89.
62163         Do not bother declaring tmp to be const, as it's not really usefu.
62164         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62165         (timegm): Declare only if HAVE_DECL_TIMEGM.
62166
62167 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62168
62169         * MODULES.html.sh (func_all_modules): Add time_r.
62170         * modules/time_r: New file.
62171         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62172         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62173
62174 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62175
62176         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62177         Bug reported by Lute Kamstra in
62178         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62179
62180         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62181         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62182         course with correspondingly smaller numbers for tomorrow and
62183         yesterday.  From Tadayoshi Funaba.  Originally installed into
62184         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62185         coreutils merge?).
62186
62187 2003-08-31  Simon Josefsson  <jas@extundo.com>
62188
62189         * modules/timegm: New file.
62190         * MODULES.html.sh (func_all_modules): Add timegm.
62191
62192 2003-08-31  Simon Josefsson  <jas@extundo.com>
62193
62194         * m4/timegm.m4: New file.
62195
62196 2003-08-31  Simon Josefsson  <jas@extundo.com>
62197
62198         * lib/timegm.h: New file.
62199         * lib/timegm.c: New file.  Based on
62200         wget-1.8.2/src/http.c:mktime_from_utc.
62201
62202 2003-08-31  Karl Berry  <karl@gnu.org>
62203
62204         * lib/argp.h: update from libc.
62205
62206 2003-08-28  Bruno Haible  <bruno@clisp.org>
62207
62208         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62209         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62210         followed by '#define fnmatch fnmatch_posix' gives an error.
62211
62212 2003-08-28  Bruno Haible  <bruno@clisp.org>
62213
62214         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62215         warning on QNX, which defines O_BINARY to 000000.
62216
62217 2003-08-27  Jim Meyering  <jim@meyering.net>
62218
62219         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62220         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62221         would fail after 32.  Reported by Danny Levinson.  Details here:
62222         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62223
62224 2003-08-24  Bruno Haible  <bruno@clisp.org>
62225
62226         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62227         MSVC7 <stdio.h> is included later.
62228
62229 2003-08-22  Simon Josefsson  <jas@extundo.com>
62230
62231         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62232
62233 2003-08-20  Karl Berry  <karl@gnu.org>
62234
62235         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62236
62237 2003-08-20  Bruno Haible  <bruno@clisp.org>
62238
62239         * modules/progname: New file.
62240         * MODULES.html.sh (func_all_modules): Add progname.
62241
62242 2003-08-20  Bruno Haible  <bruno@clisp.org>
62243
62244         * lib/progname.h: New file, from GNU gettext.
62245         * lib/progname.c: New file, from GNU gettext.
62246         * lib/progreloc.c: New file, from GNU gettext.
62247
62248 2003-08-19  Jim Meyering  <jim@meyering.net>
62249
62250         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62251         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62252
62253 2003-08-19  Bruno Haible  <bruno@clisp.org>
62254
62255         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62256         more.
62257
62258 2003-08-19  Bruno Haible  <bruno@clisp.org>
62259
62260         * lib/xstrdup.c: Assume <string.h> exists.
62261
62262 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62263
62264         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62265         in makefile rules.
62266
62267 2003-08-18  Jim Meyering  <jim@meyering.net>
62268
62269         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62270         * m4/lib-ld.m4: Likewise.
62271
62272 2003-08-18  Jim Meyering  <jim@meyering.net>
62273
62274         * lib/setenv.h: Indent nested cpp directive.
62275         * lib/vasnprintf.c: Remove trailing blanks.
62276
62277 2003-08-17  Simon Josefsson  <jas@extundo.com>
62278
62279         * modules/xstrndup: New file.
62280         * MODULES.html.sh (func_all_modules): Add xstrndup.
62281
62282 2003-08-17  Simon Josefsson  <jas@extundo.com>
62283
62284         * modules/argp: Fix autoconf macro name. Add more dependencies.
62285
62286 2003-08-17  Simon Josefsson  <jas@extundo.com>
62287
62288         * m4/xstrndup.m4: New file.
62289
62290 2003-08-17  Simon Josefsson  <jas@extundo.com>
62291
62292         * m4/argp.m4: New file.
62293
62294 2003-08-17  Simon Josefsson  <jas@extundo.com>
62295             Bruno Haible  <bruno@clisp.org>
62296
62297         * lib/xstrndup.h: New file.
62298         * lib/xstrndup.c: New file.
62299
62300 2003-08-17  Bruno Haible  <bruno@clisp.org>
62301
62302         * modules/strndup (Files, Include): Add lib/strndup.h.
62303
62304 2003-08-17  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/euidaccess (Files): Add lib/euidaccess.h.
62307
62308 2003-08-17  Bruno Haible  <bruno@clisp.org>
62309
62310         * lib/strndup.h: New file.
62311
62312 2003-08-17  Bruno Haible  <bruno@clisp.org>
62313
62314         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62315         like AC_GNU_SOURCE.
62316         * modules/extensions (configure.ac): Comment out the invocation of
62317         gl_USE_SYSTEM_EXTENSIONS.
62318
62319 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62320
62321         Merges from coreutils, etc.
62322         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62323         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62324         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62325         fixing a typo.
62326         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62327         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62328
62329 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62330
62331         Document merge from coreutils.
62332         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62333         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62334         * modules/utime: Add m4/utimes-null.m4.
62335
62336 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62337
62338         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62339         space, undoing this 2003-08-12 change:
62340         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62341
62342 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62343
62344         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62345         strtoul.c from libc, undoing this 2003-08-12 change:
62346         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62347
62348 2003-08-16  Jim Meyering  <jim@meyering.net>
62349
62350         Merges from coreutils.
62351         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62352         prefix.  Adjust cache variables similarly.  Create 500 rather than
62353         just 300 files, to exercise bug on Darwin6.5, too.
62354         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62355         $missing_dir.
62356         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62357         AM_SYS_POSIX_TERMIOS.
62358         Reported by mkc@mathdogs.com.
62359         Also change use of $am_cv_sys_posix_termios
62360         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62361         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62362         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62363         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62364         in /proc/mounts until it finds one with matching device number.  This
62365         is unnecessary when the FILE argument *is* a mount point.  No stat call
62366         is necessary in that case.  So, disable the statvfs-testing code on
62367         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62368         as RedHat bug# 84846.
62369         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62370         to 1MB, so as not to render systems with no stack size limit (e.g.,
62371         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62372         Include <unistd.h>.  On some systems,
62373         it is required for the definition of _SC_PAGESIZE.
62374
62375 2003-08-16  Jim Meyering  <jim@meyering.net>
62376
62377         Merge from coreutils.
62378         * lib/xstrtoimax.c: #else #if -> #elif.
62379         * lib/xstrtoumax.c: Likewise.
62380
62381 2003-08-16  Jim Meyering  <jim@meyering.net>
62382
62383         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62384         * m4/utimes.m4: Removed.
62385         * m4/utimes-null.m4: Renamed from utimes.m4.
62386
62387         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62388         to 1MB, so as not to render systems with no stack size limit (e.g.,
62389         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62390         Include <unistd.h>.  On some systems,
62391         it is required for the definition of _SC_PAGESIZE.
62392
62393 2003-08-16  Jim Meyering  <jim@meyering.net>
62394         and Paul Eggert  <eggert@cs.ucla.edu>
62395
62396         Merges from coreutils, etc.
62397
62398         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62399         using the latest version from cvs.  This avoids problems with #line
62400         directives using a vendor (Sun) compiler.
62401         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62402         Don't set GETGROUPS_LIB here; now it's
62403         done via getgroups.m4's wrapper function.
62404         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62405         rather than just in sh-util/configure.in, so that the
62406         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62407         same.
62408         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62409         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62410         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62411         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62412         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62413         Remove code that is now done by the newly-required macros.
62414         Append $(EXEEXT) to DF_PROG.
62415         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62416         Do not invoke or require the following here,
62417         since prereq.m4 or some gnulib .m4 now does this for us:
62418         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62419         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62420         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62421         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62422         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62423         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62424         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62425         AC_FUNC_OBSTACK.
62426         Do not replace the following functions, as this is now the job
62427         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62428         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62429         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62430         atexit getpass, strdup, getpagesize.
62431         Replace 'raise'.
62432         Do not check for the following functions, as this is now the job
62433         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62434         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62435         setregid.
62436         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62437         Check for sys/sysctl.h.
62438         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62439         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62440         of checking for ssize_t ourselves.
62441
62442         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62443         Require every macro that gnulib/modules/* suggests for us.
62444         (jm_PREREQ_ADDEXT): New macro.
62445         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62446         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62447
62448         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62449         (gl_PHYSMEM): Use it.
62450         Also check for `table' function.
62451         Check for new headers and functions.
62452         Add check for sys/sysmp.h.
62453         With suggestions from Kaveh Ghazi.
62454         Ignore headers that are present but cannot be compiled.  This
62455         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62456         C 5.4.
62457
62458 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62459
62460         Document merge from coreutils.
62461         * modules/userspec: Depend on posixver.
62462         * modules/strftime: Depend on tzset.
62463
62464 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62465
62466         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62467         rather than tab, after '#' in shell-script copyright notices.
62468         Suggested by Bruno Haible.
62469
62470 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62471
62472         * config/srclist-update: Use three spaces, rather than tab, after '#'
62473         in shell-script copyright notices.  Suggested by Bruno Haible.
62474         Remove unnecessary parenthesization in regular expression.
62475
62476 2003-08-15  Jim Meyering  <jim@meyering.net>
62477
62478         Merge from coreutils.
62479         * lib/xgethostname.c: Include <stdlib.h>.
62480         (xghostname): Don't exit for anything other than memory-related
62481         failure; just return NULL.
62482         * lib/userspec.c: Include "posixver.h".
62483         (parse_user_spec): Accept `.' as a separator only
62484         in pre-POSIX-200112 mode.
62485         * lib/strtoimax.c: Use #elif rather than #else #if.
62486         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62487         Remove function, now that we can rely on a working tzset function.
62488         [!_LIBC]: Ensure that the required autoconf test has been run.
62489         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62490         Use underlying_strftime for %r.
62491         * lib/sha.c: Merge in some clean-up and optimization changes from
62492         glibc.
62493         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62494         Ensure that it is a multiple of 64.
62495         Rearrange loop exit tests so as to avoid performing an
62496         additional fread after encountering an error or EOF.
62497         * lib/realloc.c: Update copyright date.
62498
62499 2003-08-15  Jim Meyering  <jim@meyering.net>
62500         and Paul Eggert  <eggert@twinsun.com>
62501
62502         Merge from coreutils.
62503         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62504         member but strut utmpx does not.  Needed for AIX 4.3.3.
62505         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62506
62507 2003-08-15  Jim Meyering  <jim@meyering.net>
62508         and Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         Merges from coreutils, etc.
62511         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62512         Require gl_FUNC_TZSET_CLOBBER.
62513         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62514         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62515         members.
62516
62517 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62518
62519         Help the merge from coreutils.
62520         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62521         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62522         * m4/tzset.m4: Use it too.
62523
62524 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62525
62526         * modules/tzset: New file.
62527
62528 2003-08-14  Jim Meyering  <jim@meyering.net>
62529
62530         Merges from coreutils.
62531         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62532         variable names, rather than @FNMATCH_H@.
62533         * modules/alloca: Likewise for $(ALLOCA_H).
62534
62535         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62536         the three copies of the literal target, `fnmatch.h'.
62537         * modules/alloca (alloca.h): Likewise.
62538
62539 2003-08-14  Jim Meyering  <jim@meyering.net>
62540
62541         Merge from coreutils.
62542         * m4/tzset.m4: New file.
62543         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62544         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62545         otherwise, AIX 5.1 systems would end up using the latter.
62546         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62547         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62548         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62549         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62550
62551 2003-08-14  Jim Meyering  <jim@meyering.net>
62552
62553         Merge from coreutils.
62554         * lib/obstack.h: Whitespace changes.
62555         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62556         and xcalloc return values.
62557         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62558         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62559         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62560         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62561         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62562         error from mntctl.
62563         Use mntctl's return value to drive the entry-processing loop, since
62564         we can't rely on the value of the vmt_length member in the last
62565         entry.  On some systems doing so could result in exhausting
62566         virtual memory.  Based in part on a patch from Mike Jetzer.
62567
62568 2003-08-14  Jim Meyering  <jim@meyering.net>
62569         and Paul Eggert  <eggert@twinsun.com>
62570
62571         Merges from coreutils, plus other fixes.
62572         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62573         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62574         for credits and details.  Thanks to Kaveh Ghazi for helping
62575         to keep these files in sync.
62576         (ARRAY_SIZE): Define it.
62577         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62578         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62579         (memcasecmp): Don't assume size_t fits in unsigned int.
62580         Remove casts and duplicate code.
62581         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62582         (memcpy): Remove definition.
62583         Merge in some clean-up and optimization changes from glibc.
62584         [BLOCKSIZE]: Move definition to top of file.
62585         Ensure that it is a multiple of 64.
62586         Rearrange loop exit tests so as to avoid performing an
62587         additional fread after encountering an error or EOF.
62588         * lib/md5.h (md5_uintptr): Define.
62589         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62590         return to the initial working directory.  Preserve errno
62591         for caller.
62592         * lib/idcache.c: Include "xalloc.h".
62593         (xmalloc, xrealloc): Remove decls.
62594         (getuser): Remove casts no longer required in C89.
62595         * lib/human.c: Include stdio.h, for sprintf.
62596         * lib/group-member.c: Include "xalloc.h".
62597         (xmalloc, xrealloc): Remove decls.
62598         (get_group_info): Remove casts no longer required in C89.
62599         * lib/getusershell.c (readname): Remove casts no longer required in
62600         C89.
62601         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62602         * lib/getline.c: Whitespace fix, from coreutils.
62603
62604 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62605
62606         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62607         Check for isascii.
62608
62609         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62610         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62611         Undo previous (whitespace-only) change.
62612
62613 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62614
62615         * lib/exclude.c: Include <ctype.h>
62616         (IN_CTYPE_DOMAIN): New macro.
62617         (is_space): New fn.
62618         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62619         and empty lines.
62620
62621         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62622         Undo previous (whitespace-only) change.
62623
62624 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62625
62626         * config/srclist-update: Change update back to the old behavior,
62627         leaving whitespace alone.  Use one 'sed' command rather than a
62628         pipeline.
62629         (fixlicense): Now a variable, not a function.
62630         (remove_trailing_blanks): Remove.
62631         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
62632         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62633         Undo previous (whitespace-only) change.
62634
62635 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62636
62637         Merge from coreutils.
62638         * modules/euidaccess: Add lib_SOURCES, include for new
62639         file euidaccess.h
62640
62641 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62642
62643         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62644         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62645         Normalize leading white space and remove trailing white space.
62646
62647         Merge from coreutils
62648         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
62649
62650         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
62651         0.12.1.  These files are now being upgraded automatically by
62652         ../config/srclist-update.
62653
62654 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62655
62656         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62657         Normalize leading white space and remove trailing white space.
62658         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
62659         notice, as per ../config/srclist-update.
62660
62661         Merge from coreutils.
62662         * lib/euidaccess.h: New file.
62663         * lib/euidaccess.c: Include it.
62664         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
62665         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
62666         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
62667
62668 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62669
62670         * config/srclist-update: Add copyright notice.
62671         (remove_id_lines, remove_trailing_blanks): New constants.
62672         (fixfile): Use them to normalize spacing a bit in copied files.
62673         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62674         Normalize leading white space and remove trailing white space.
62675
62676         * config/texinfo.tex: Sync with texinfo.
62677
62678         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
62679         strtoul.c from libc, to merge coreutils whitespace changes.
62680
62681         * config/srclist.txt: Get the following m4 files from gettext:
62682         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
62683         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
62684         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
62685         wint_t.m4.
62686
62687 2003-08-12  Karl Berry  <karl@gnu.org>
62688
62689         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
62690         been made.
62691
62692 2003-08-11  Paul Eggert  <eggert@twinsun.com>
62693
62694         * modules/gnu-source, m4/gnu-source.m4:
62695         Remove; we're assuming Autoconf 2.54 or later now.
62696         Suggested by Bruno Haible.
62697         * MODULES.html.sh (func_all_modules): Remove gnu-source.
62698
62699 2003-08-11  Bruno Haible  <bruno@clisp.org>
62700
62701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
62702
62703 2003-08-11  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
62706         (vasnprintf): Use it instead of wcslen.
62707
62708 2003-08-11  Bruno Haible  <bruno@clisp.org>
62709
62710         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
62711         value to ensure that _Bool promotes to int. Use #define for _Bool when
62712         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
62713
62714 2003-08-10  Karl Berry  <karl@gnu.org>
62715
62716         * lib/regex.h: update from libc (whitespace fix).
62717
62718 2003-08-09  Paul Eggert  <eggert@twinsun.com>
62719
62720         Merge some files from coreutils.  These changes were
62721         originally made by Jim Meyering.
62722         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
62723         many older Unixes require this.
62724         * lib/alloca.c (alloca): Remove cast to argument of free;
62725         no longer needed in C89.
62726         * lib/alloca_.h, regex.h: Fix white space to match
62727         what GNU indent does.
62728
62729 2003-08-09  Paul Eggert  <eggert@twinsun.com>
62730
62731         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
62732         apparently Emacs's Unicode mode got confused before my 2003-08-05
62733         checkin.
62734
62735 2003-08-08  Paul Eggert  <eggert@twinsun.com>
62736
62737         * m4/extensions.m4: New file.
62738         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
62739         Require gl_USE_SYSTEM_EXTENSIONS.
62740         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
62741         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
62742
62743 2003-08-08  Paul Eggert  <eggert@twinsun.com>
62744
62745         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
62746         * modules/extensions, modules/gnu-source: New files.
62747         * modules/timespec, modules/unlocked-io: Depend on extensions.
62748
62749 2003-08-07  Paul Eggert  <eggert@twinsun.com>
62750
62751         * modules/restrict: New file.
62752         * MODULES.html.sh (func_all_modules): Add restrict.
62753         * modules/regex: Depend on restrict.
62754
62755 2003-08-07  Paul Eggert  <eggert@twinsun.com>
62756
62757         * m4/restrict.m4: New file.
62758         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
62759
62760 2003-08-07  Bruno Haible  <bruno@clisp.org>
62761
62762         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
62763         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
62764
62765 2003-08-07  Bruno Haible  <bruno@clisp.org>
62766
62767         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
62768         makes the module 'getndelim2' compatible with the module 'getline'.
62769
62770 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62771
62772         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
62773         byte with "\201" to avoid glitches when editing that source file
62774         with multi-gnome-terminal.
62775
62776 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62777
62778         * lib/bumpalloc.h: Remove.
62779
62780 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62781
62782         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
62783         * modules/bumpalloc: Remove.
62784
62785 2003-08-04  Paul Eggert  <eggert@twinsun.com>
62786
62787         * lib/getloadavg.c: Change copyright notice and spacing to conform to
62788         GNU coding style.
62789
62790         Merge from coreutils.
62791         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
62792         1. From glibc.
62793         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
62794         from Karl Berry, implemented by Jim Meyering.
62795         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
62796         from Dmitry V. Levin.
62797         Remove anachronistic cast of xrealloc.
62798         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
62799         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
62800         type. Otherwise, it wouldn't compile with at least /bin/cc on
62801         ymp-cray-unicos9.0.2.X.
62802         Combine two mostly-identical uses of alloca into one.
62803         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
62804
62805 2003-08-04  Dave Love  <d.love@dl.ac.uk>
62806
62807         [From Emacs.]
62808
62809         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
62810         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
62811         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
62812         obsolete NLIST_NAME_UNION.
62813         [__GNU__]: Undef BSD and FSCALE.
62814         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
62815
62816 2003-08-03  Paul Eggert  <eggert@twinsun.com>
62817
62818         * lib/stdbool_.h (_Bool): Make it signed char, instead of
62819         an enum type, so that it's guaranteed to promote to int.  See:
62820         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
62821
62822 2003-08-03  Karl Berry  <karl@gnu.org>
62823
62824         * config/depcomp: update from automake.
62825
62826 2003-07-31  Paul Eggert  <eggert@twinsun.com>
62827
62828         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
62829         (strerror): Don't assume that a printable int fits in 14 bytes.
62830
62831 2003-07-31  Bruno Haible  <bruno@clisp.org>
62832
62833         * modules/getpass-gnu: New file.
62834         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
62835
62836 2003-07-31  Bruno Haible  <bruno@clisp.org>
62837
62838         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
62839
62840 2003-07-24  Karl Berry  <karl@gnu.org>
62841
62842         * config/missing: update from automake.
62843
62844 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
62845             Bruno Haible  <bruno@clisp.org>
62846
62847         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
62848         * lib/getline.c (getline, getdelim): Likewise.
62849         Remove _GNU_SOURCE define; now it's defined in config.h through
62850         m4/getline.m4.
62851
62852 2003-07-23  Karl Berry  <karl@gnu.org>
62853
62854         * config/config.sub: update from prep.
62855
62856 2003-07-22  Paul Eggert  <eggert@twinsun.com>
62857
62858         * modules/xalloc (Depends-on): Add exitfail.
62859         * modules/xmemcoll: Likewise.
62860
62861 2003-07-22  Paul Eggert  <eggert@twinsun.com>
62862
62863         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
62864         over-parenthesization in macros.
62865
62866         Sync with coreutils.
62867
62868         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
62869         required by C99.
62870
62871         Use `exit_failure' for xalloc and xmemcoll instead of their own
62872         private exit-failure variables.
62873         * lib/xalloc.h (xalloc_exit_failure): Remove.
62874         * lib/xmalloc.c: Likewise.  Include exitfail.h.
62875         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
62876         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
62877         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
62878         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
62879
62880 2003-07-20  Jim Meyering  <jim@meyering.net>
62881
62882         * modules/closeout (Depends-on): Add exitfail.
62883         Suggestion from Bruno Haible.
62884
62885 2003-07-19  Karl Berry  <karl@gnu.org>
62886
62887         * config/config.sub: update from prep.
62888
62889 2003-07-18  Paul Eggert  <eggert@twinsun.com>
62890
62891         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
62892         Remove.
62893         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
62894         to test that it can stand by itself.  Include "exitfail.h".
62895         Clients should set exit_failure instead.
62896         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
62897
62898 2003-07-18  Bruno Haible  <bruno@clisp.org>
62899
62900         * modules/getndelim2: New file.
62901         * modules/getline: Share files with module getndelim2.
62902         * modules/getnline: Depend on getndelim2 instead of sharing files with
62903         it. Add getnline.c to lib_SOURCES.
62904         * MODULES.html.sh (func_all_modules): Add getndelim2.
62905
62906 2003-07-18  Bruno Haible  <bruno@clisp.org>
62907
62908         * m4/getndelim2.m4: New file.
62909         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
62910         invoke gl_PREREQ_GETNDELIM2.
62911         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
62912         gl_PREREQ_GETNDELIM2.
62913         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
62914         gl_GETNDELIM2.
62915
62916 2003-07-18  Bruno Haible  <bruno@clisp.org>
62917
62918         * lib/getndelim2.h: New file.
62919         * lib/getndelim2.c: Make into a module of its own. Include config.h,
62920         getndelim2.h.
62921         (getndelim2): Make non-static. Change return type to ssize_t.
62922         * lib/getline.h: Change argument names.
62923         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
62924         * lib/getnline.c: Include getndelim2.h.
62925
62926 2003-07-18  Andreas Schwab  <schwab@suse.de>
62927
62928         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
62929
62930 2003-07-17  Karl Berry  <karl@gnu.org>
62931
62932         * config/config.sub: update from prep.
62933
62934 2003-07-17  Bruno Haible  <bruno@clisp.org>
62935
62936         * modules/getnline: New file.
62937         * modules/getline: Add lib/getndelim2.c to source file list.
62938         * MODULES.html.sh (func_all_modules): Add getnline.
62939
62940 2003-07-17  Bruno Haible  <bruno@clisp.org>
62941
62942         * m4/getnline.m4: New file.
62943
62944 2003-07-17  Bruno Haible  <bruno@clisp.org>
62945
62946         * m4/Makefile.am.in: Remove file.
62947         * m4/Makefile.am: Remove file.
62948         * m4/Makefile.in: Remove file.
62949
62950 2003-07-17  Bruno Haible  <bruno@clisp.org>
62951
62952         * lib/getnline.h: New file.
62953         * lib/getnline.c: New file.
62954         * lib/getndelim2.c: New file, extracted from getline.c.
62955         (getndelim2): Renamed from getdelim2, with added nmax argument.
62956         * lib/getline.c: Include getndelim2.c.
62957         (getdelim2): Moved out to getndelim2.c.
62958         (getline, getdelim): Update.
62959
62960 2003-07-17  Bruno Haible  <bruno@clisp.org>
62961
62962         * lib/Makefile.am: Remove file.
62963         * lib/Makefile.in: Remove file.
62964
62965 2003-07-17  Bruno Haible  <bruno@clisp.org>
62966
62967         * configure.in: Remove file.
62968         * Makefile.in: Remove file.
62969
62970 2003-07-17  Bruno Haible  <bruno@clisp.org>
62971
62972         * MODULES.html.sh: Put the </BODY> right before </HTML>.
62973
62974 2003-07-16  Karl Berry  <karl@gnu.org>
62975
62976         * config/srclist-update: was running fixlicense twice, which caused
62977                 texinfo.tex to be nullified for some reason.  Simplify,
62978                 $gplsrc is no longer needed as far as I can see?
62979
62980 2003-07-16  Jim Meyering  <jim@meyering.net>
62981
62982         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
62983
62984 2003-07-15  Paul Eggert  <eggert@twinsun.com>
62985
62986         * config/srclist.txt: Get the following files from gettext-runtime/intl
62987         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
62988         ref-del.sin.  From Bruno Haible.
62989         * config/srclist-update (fixfile): Change grep pattern again, since the
62990         previous fix didn't work (there was another trailing $).  Use
62991         '[$]' to escape the $s.
62992
62993 2003-07-15  Karl Berry  <karl@gnu.org>
62994
62995         * lib/vasnprintf.c: update from gettext.
62996
62997 2003-07-15  Karl Berry  <karl@gnu.org>
62998
62999         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63000         gets expanded when surrounded by '$'.
63001
63002 2003-07-15  Jim Meyering  <jim@meyering.net>
63003
63004         * modules/save-cwd: Don't depend on error.  From Derek Price.
63005
63006 2003-07-15  Jim Meyering  <jim@meyering.net>
63007
63008         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63009
63010 2003-07-14  Simon Josefsson  <jas@extundo.com>
63011
63012         * modules/mempcpy: New file.
63013         * MODULES.html.sh (func_all_modules): Add mempcpy.
63014
63015 2003-07-14  Simon Josefsson  <jas@extundo.com>
63016
63017         * m4/mempcpy.m4: New file.
63018
63019 2003-07-14  Simon Josefsson  <jas@extundo.com>
63020
63021         * lib/mempcpy.h: New file.
63022         * lib/mempcpy.c: New file.
63023
63024 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63025
63026         * modules/getdate, modules/posixtm: Depend on mktime.
63027
63028 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63029
63030         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63031         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63032         unicodeio.c, unicodeio.h, unlocked-io.h:
63033         Switch from LGPL to GPL.
63034
63035 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63036
63037         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63038         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63039         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63040         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63041         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63042         updated automatically by ../config/srclist-update.  This changes
63043         their license from LPGL to GPL.
63044
63045 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63046
63047         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63048         assumed to refer to the root of the most recent stable gettext version.
63049         * config/srclistvars.sh: Add defaults for eggert.
63050         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63051         Match "This program" as well as "The program".  This is needed
63052         for gettext.
63053
63054 2003-07-14  Jim Meyering  <jim@meyering.net>
63055
63056         Don't emit diagnostics.  Let callers do that.
63057         * lib/save-cwd.c: Don't include "error.h".
63058         (save_cwd): Don't call error.  Ensure that errno is valid
63059         when returning nonzero.
63060
63061         * lib/save-cwd.h (restore_cwd): Update prototype.
63062         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63063         Simplify.  Don't call error upon failure.  Let callers do that.
63064         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63065         when auditing is enabled.  But don't bother updating the #if.
63066
63067 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63068
63069         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63070         it breaks C++ compilation.
63071         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63072
63073 2003-07-10  Simon Josefsson  <jas@extundo.com>
63074
63075         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63076
63077 2003-07-10  Jim Meyering  <jim@meyering.net>
63078
63079         * m4/clock_time.m4: Remove trailing blank.
63080         * m4/intmax_t.m4: Likewise.
63081
63082 2003-07-10  Jim Meyering  <jim@meyering.net>
63083
63084         * lib/vasnprintf.c: Remove trailing blanks.
63085         Make cpp indentation consistent.
63086
63087 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63088
63089         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63090         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63091         Switch from LGPL to GPL.
63092
63093 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63094
63095         * config/srclist.txt: Sort sublists.  Add
63096         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63097         that differ from gnulib for one reason or another; we'd like this list
63098         to be smaller but for now let's document what we have.
63099
63100 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63101
63102         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63103         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63104         and sweeter "eval x=$x".
63105         * config/srclist.txt: Get lib/argp* from glibc.
63106
63107 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63108
63109         * lib/mktime.c: Fix some boundary cases and remove need for floating
63110         point.
63111
63112         Issue a compile-time diagnostic if time_t is floating point, or if
63113         two's complement arithmetic is not in effect, or if arithmetic
63114         right shift does not propagate the sign.  These assumptions were
63115         all in the original code but they weren't checked.
63116
63117         (TIME_T_MIDPOINT, verify): New macros.
63118         (__isleap): Remove; it has integer overflow problems.
63119         (leapyear): New function, without those problems.
63120         (ydhms_tm_diff): Remove; splitting into two parts.
63121         (ydhms_diff): New function, containing the arithmetic part of
63122         the old ydhms_tm_diff function.  Issue a compile-time
63123         diagnostic if we are not using C99 integer division.
63124         Avoid casts when possible.
63125         (guess_time_tm): New function, containing the checking part of
63126         the old ydhms_tm_diff function.  Return the new value, rather than
63127         the difference between it and the old.  Accept a new argument T
63128         so that *T specifies the old value.  Check for overflow in the result.
63129
63130         (__mktime_internal): Use a time_t offset, not a long int offset.
63131         This undoes the 2003-06-04 change, which is no longer needed now
63132         that we have better overflow checking.
63133         (localtime_offset): Likewise.
63134
63135         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63136         and long are 64-bit but int is only 32-bit.
63137         (ydhms_diff): Use long int to store year1 and yday1.
63138         Issue a compile-time diagnostic if long int is not wide enough.
63139
63140         (__mktime_internal): Use long int to store adjusted year and yday.
63141         Use plain C rather than preprocessor commands, if that doesn't
63142         affect efficiency.
63143         Check for overflow (and try to repair) after each probe
63144         rather than checking only at the very end.  This avoids some bugs
63145         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63146         does not equal GMT offset at maximum time).
63147         Use integer to check for overflow rather than floating point; this
63148         is more portable to non-IEEE hosts, and is a tad faster.
63149         When we detect that we are oscillating between two values,
63150         don't check whether tm_isdst has the requested value, since
63151         we already know the answer.  When tm_isdst has the wrong value,
63152         use a different heuristic to find the right one, based on the
63153         extreme values actually observed in practice in tz2003a,
63154         rather than the (overly optimistic) "previous 3 calendar quarters".
63155
63156         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63157         "T const" to accommodate glibc style.
63158         (check_result): Use less-confusing report format.  "long" -> "long int.
63159         (main): Likewise.
63160         Don't loop if the iteration overflows time_t.
63161         Allow a negative step in the iteration.
63162
63163 2003-07-06  Karl Berry  <karl@gnu.org>
63164
63165         * config/depcomp: update from automake.
63166         * config/config.sub: update from prep.
63167
63168 2003-07-03  Karl Berry  <karl@gnu.org>
63169
63170         * config/config.guess: update from prep.
63171
63172 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63173
63174         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63175         xreadlink.c now includes it unconditionally.
63176
63177 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63178
63179         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63180         having it depend on HAVE_SYS_TYPES_H.
63181
63182 2003-07-01  Bruno Haible  <bruno@clisp.org>
63183
63184         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63185         <sys/types.h> should be sufficient.
63186         Reported by Paul Eggert.
63187
63188 2003-06-26  Karl Berry  <karl@gnu.org>
63189
63190         * config/depcomp: update from automake.
63191
63192 2003-06-26  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/human: Depend on module stdbool.
63195
63196 2003-06-25  Bruno Haible  <bruno@clisp.org>
63197
63198         * modules/readlink: New file.
63199         * modules/xreadlink: Depend on it.
63200         * MODULES.html.sh (func_all_modules): Add readlink.
63201
63202 2003-06-25  Bruno Haible  <bruno@clisp.org>
63203
63204         * m4/readlink.m4: New file.
63205
63206 2003-06-25  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/readlink.c: New file.
63209
63210 2003-06-22  Karl Berry  <karl@gnu.org>
63211
63212         * config/srclist.txt: update mkinstalldirs from automake.
63213         * config/mkinstalldirs: update.
63214
63215 2003-06-22  Bruno Haible  <bruno@clisp.org>
63216
63217         Portability to mingw32.
63218         * m4/ssize_t.m4: New file, from GNU gettext.
63219         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63220         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63221
63222 2003-06-22  Bruno Haible  <bruno@clisp.org>
63223
63224         * modules/safe-read: Add m4/ssize_t.m4.
63225         * modules/xreadlink: Add m4/ssize_t.m4.
63226
63227 2003-06-20  Bruno Haible  <bruno@clisp.org>
63228
63229         Assume C89, so PARAMS isn't needed.
63230         * lib/unicodeio.h (PARAMS): Remove.
63231         * lib/unicodeio.c: Don't use PARAMS.
63232
63233 2003-06-18  Karl Berry  <karl@gnu.org>
63234
63235         * config/config.{guess,sub}: update from prep.
63236
63237 2003-06-18  Jim Meyering  <jim@meyering.net>
63238
63239         Merge changes from coreutils.
63240         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63241         Remove explicit declarations of xmalloc and realloc.
63242         Include xalloc.h.
63243         (read_utmp): Remove anachronistic cast of xmalloc.
63244
63245 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63246
63247         Assume C89, so PARAMS isn't needed.
63248         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63249         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63250         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63251         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63252         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63253         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63254         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63255         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63256         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63257         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63258         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63259         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63260         no longer needed. Anyway, config.h should always be included before any
63261         other file.
63262
63263 2003-06-11  Simon Josefsson  <jas@extundo.com>
63264
63265         * modules/sysexits: New file.
63266         * MODULES.html.sh (func_all_modules): Add sysexits.
63267
63268 2003-06-11  Simon Josefsson  <jas@extundo.com>
63269
63270         * lib/sysexit_.h: New file.
63271
63272 2003-06-11  Derek Price  <derek@ximbiot.com>
63273
63274         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63275         necessary.
63276
63277 2003-06-11  Bruno Haible  <bruno@clisp.org>
63278
63279         * m4/sysexits.m4: New file.
63280
63281 2003-06-10  Simon Josefsson  <jas@extundo.com>
63282
63283         * lib/argp.h: New file, from glibc.
63284         * lib/argp-ba.c: New file, from glibc.
63285         * lib/argp-eexst.c: New file, from glibc.
63286         * lib/argp-fmtstream.c: New file, from glibc.
63287         * lib/argp-fmtstream.h: New file, from glibc.
63288         * lib/argp-fs-xinl.c: New file, from glibc.
63289         * lib/argp-help.c: New file, from glibc.
63290         * lib/argp-namefrob.h: New file, from glibc.
63291         * lib/argp-parse.c: New file, from glibc.
63292         * lib/argp-pv.c: New file, from glibc.
63293         * lib/argp-pvh.c: New file, from glibc.
63294         * lib/argp-xinl.c: New file, from glibc.
63295
63296 2003-06-10  Simon Josefsson  <jas@extundo.com>
63297
63298         * modules/strchrnul: New file.
63299
63300 2003-06-10  Simon Josefsson  <jas@extundo.com>
63301
63302         * modules/argp: New file.
63303
63304 2003-06-10  Simon Josefsson  <jas@extundo.com>
63305
63306         * m4/strchrnul.m4: New file.
63307
63308 2003-06-10  Simon Josefsson  <jas@extundo.com>
63309
63310         * lib/strchrnul.h: New file.
63311         * lib/strchrnul.c: New file.
63312
63313 2003-06-10  Bruno Haible  <bruno@clisp.org>
63314
63315         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63316
63317 2003-06-07  Karl Berry  <karl@gnu.org>
63318
63319         * config/config.{guess,sub}: update from prep.
63320
63321 2003-06-07  Jim Meyering  <jim@meyering.net>
63322
63323         * modules/strtod: Use $(...) notation, not @...@ for
63324         AC_REPLACE'd variables.
63325         * modules/localcharset: Likewise.
63326
63327 2003-06-07  Jim Meyering  <jim@meyering.net>
63328
63329         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63330         in place of my name in the copyright comment.
63331         Remove definition and uses of __P.
63332
63333         From coreutils.
63334         * lib/stat.c: Don't declare xmalloc explicitly.
63335         Instead, include "xalloc.h".
63336         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63337         xrealloc, and xcalloc return values.
63338         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63339         Improve comment.
63340         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63341
63342 2003-06-07  Bruno Haible  <bruno@clisp.org>
63343
63344         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63345         avoid AC_CONFIG_LINKS.
63346         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63347         fnmatch.h, to avoid AC_CONFIG_LINKS.
63348         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63349
63350 2003-06-07  Bruno Haible  <bruno@clisp.org>
63351
63352         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63353         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63354         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63355         directory.
63356         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63357         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63358         directory.
63359
63360 2003-06-06  Jim Meyering  <jim@meyering.net>
63361
63362         Merge from coreutils.
63363         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63364         Consolidate declarations and initializations of *_base* locals.
63365
63366         Merge from coreutils.
63367         This avoids a core dump on systems without GNU putenv,
63368         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63369         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63370         (unsetenv): New static function, from GNU libc.
63371         (rpl_putenv): Use it.
63372
63373         * lib/modechange.c: Remove trailing blanks.
63374
63375         Merge from coreutils.
63376         * lib/fsusage.c: Remove declaration of statfs.
63377         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63378
63379         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63380
63381 2003-06-06  Jim Meyering  <jim@meyering.net>
63382
63383         * lib/stdbool_.h: Renamed from stdbool.h.in.
63384
63385 2003-06-06  Jim Meyering  <jim@meyering.net>
63386             Bruno Haible  <bruno@clisp.org>
63387
63388         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63389         Adjust Makefile.am snippet not to redirect directly to target.
63390         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63391
63392 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63393
63394         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63395         mismatch, look in future quarters as well as past.  This fixes a
63396         bug when processing fall-backwards gaps immediately after a long
63397         period of daylight-saving time.
63398
63399         * lib/mktime.c: Assume freestanding C89 or better.
63400         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63401         (__P): Remove; not used.
63402         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63403         (mktime, not_equal_tm, print_tm, check_result,
63404         main): Use prototypes.  Use const * where appropriate.
63405         (main): Fix typo in testing code that uncovered by above changes.
63406         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63407
63408 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63409
63410         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63411         locale.h, localeconv.  This merges changes from coreutils.
63412
63413         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63414         It can be removed after the next Autoconf is released.
63415         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63416         needed.
63417
63418 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63419
63420         * lib/mktime.c: Fix Debian bug 177940
63421         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63422         (localtime_offset): Now long int, not time_t, because we want it
63423         to be guaranteed to be signed.  All uses changed.
63424         (__mktime_internal): If overflow would occur when adding offset,
63425         don't add it.
63426
63427         Merge 'human' changes from coreutils.  Rewrite to support
63428         locale-specific notations like thousands separators.
63429         * lib/human.c: Simplify authorship notice.
63430         Include human.h immediately after config.h.
63431         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63432         <limits.h>: Do not include, since human.h does.
63433         (SIZE_MAX, UINTMAX_MAX): New macros.
63434         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63435         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63436         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63437         (power_letter): Renamed from suffixes.
63438         (generate_suffix_backwards): Remove.
63439         (adjust_value): Now takes int style (because of human.h changes)
63440         and long double value (for greater precision on some platforms).
63441         (group_number): New function.
63442         (human_readable): Use it.  Use integer options, not enum.
63443         Put the options before the sizes in the arg list.
63444         Support all the new options.
63445         The old human_readable function has been removed;
63446         use inttostr.h instead.
63447         (human_readable, default_block_size, humblock):
63448         Use uintmax_t, not int, for block sizes.
63449         (human_readable_inexact, block_size_types): Remove.
63450         (block_size_opts): New constant.
63451         (human_options): Renamed from human_block_size, with new signature
63452         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63453         * lib/human.h: Add copyright and authorship notice.
63454         Include <limits.h> and <stdbool.h> unconditionally.
63455         (PARAMS): Remove.  All uses removed.
63456         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63457         (enum human_inexact_style): Remove tag; now a nameless enum.
63458         (human_floor, human_ceiling, human_round_to_even): Now have
63459         values 2, 0, 1 rather than -1, 1, 0.
63460         (human_group_digits, human_suppress_point_zero, human_autoscale,
63461         human_base_1024, human_SI, human_B): New constants.
63462         (human_readable_inexact, human_block_size): Remove.
63463         (human_readable): Size args are now uintmax_t, not int.
63464         (human_options): New decl.
63465
63466         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63467         unnecessary now that we assume C89 or better.  This change
63468         imported from coreutils.
63469
63470         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63471         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63472         in the 2003-05-30 sync from glibc.
63473
63474         .h files should stand alone, but we shouldn't include <sys/types.h>
63475         if we can get away with just <stddef.h>.
63476
63477         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63478         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63479         rather than <sys/types.h>, as we merely need size_t.
63480         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63481         to get size_t.
63482         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63483         Include <stdio.h>, to get FILE.
63484         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63485         memcasecmp.h has included <stddef.h> and all we need is size_t.
63486         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63487         our interface, instead of including <sys/types.h>
63488
63489 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63490
63491         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63492         now, as glibc mktime is buggy on non-glibc systems.
63493
63494 2003-06-03  Karl Berry  <karl@gnu.org>
63495
63496         * config/config.sub: update from prep.
63497
63498 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63499
63500         [from coreutils]
63501         Fix some minor time-related bugs with POSIX time arguments.
63502         Some valid time stamps were being rejected (notably -1, and
63503         time stamps before 1900 on 64-bit hosts).  And some invalid
63504         time stamps were being accepted, e.g. September 31.
63505
63506         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63507         that we can return (time_t) -1 successfully.
63508         * lib/posixtm.c: Likewise.
63509         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63510         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63511         (t): Remove static var.
63512         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63513         of static var.  All uses changed.
63514         (year): Do not reject years before 1900; they can occur with
63515         64-bit time_t.
63516         (posix_time_parse): Do not check for out-of-range components;
63517         that is now the caller's responsibility, since our checks were
63518         only approximations.
63519         (posixtime): Use mktime to check for out-of-range components,
63520         since it knows them exactly.
63521         If mktime returns (time_t) -1, check whether an error actually occurred
63522         by invoking localtime on -1.
63523         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63524         posixtime failures better.
63525         Improve the test data (in comments only).
63526
63527 2003-06-02  Karl Berry  <karl@gnu.org>
63528
63529         * config/mkinstalldirs (version): new variable.
63530         (--version): new option.
63531         (usage): improve message.
63532
63533 2003-05-30  Karl Berry  <karl@gnu.org>
63534
63535         * lib/mktime.c: update from libc.
63536
63537 2003-05-30  Bruno Haible  <bruno@clisp.org>
63538
63539         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63540         * config/config.rpath: Upgrade to gettext-0.12.1.
63541
63542 2003-05-30  Bruno Haible  <bruno@clisp.org>
63543
63544         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63545         * m4/nls.m4: New file, from gettext-0.12.1.
63546         * m4/po.m4: New file, from gettext-0.12.1.
63547         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63548
63549 2003-05-30  Bruno Haible  <bruno@clisp.org>
63550
63551         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63552         * lib/localcharset.h: Likewise.
63553         * lib/localcharset.c: Likewise.
63554
63555 2003-05-29  Karl Berry  <karl@gnu.org>
63556
63557         * config/config.rpath: update from gettext.
63558
63559 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63560
63561         Assume the headers required for C89 freestanding compilers.
63562         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63563         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63564         * m4/human.m4 (gl_HUMAN): Likewise.
63565         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63566         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63567         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63568         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63569         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63570         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63571
63572 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63573
63574         Assume the headers required for C89 freestanding compilers.
63575         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63576         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63577         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63578         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63579         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63580         define, since <limits.h> is guaranteed to do that.
63581         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63582         * lib/exclude.c: Include <stdbool.h> unconditionally.
63583         * lib/tempname.c: Include <stddef.h> unconditionally.
63584         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63585         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63586         <stddef.h> does that.
63587         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63588         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63589         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63590         needed.
63591         * lib/xstrtol.c: Likewise.
63592         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63593         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63594
63595         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63596         warnings on some platforms.
63597
63598         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63599         arbitrarily.
63600
63601 2003-05-26  Jim Meyering  <jim@meyering.net>
63602
63603         Merge in a change from coreutils:
63604         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63605         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63606         that condition, rather than `-1' which is slightly misleading.
63607         Change the name of the cache variable to have the gl_ prefix.
63608         Prompted by a patch from Richard Dawe for DJGPP.
63609
63610 2003-05-24  Karl Berry  <karl@gnu.org>
63611
63612         * config/config.guess: update from prep.
63613
63614 2003-05-22  Karl Berry  <karl@gnu.org>
63615
63616         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63617
63618 2003-05-20  Karl Berry  <karl@gnu.org>
63619
63620         * config/config.guess: update from prep.
63621
63622 2003-05-18  Karl Berry  <karl@gnu.org>
63623
63624         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63625         might actually be set by the user.
63626
63627         * config/depcomp, install-sh, mdate-sh: update from automake.
63628
63629 2003-05-17  Bruno Haible  <bruno@clisp.org>
63630
63631         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
63632         invalid expansion for AC_EGREP_CPP.
63633         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63634         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63635         Suggested by Akim Demaille <akim@epita.fr> in
63636         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
63637
63638 2003-05-12  Jim Meyering  <jim@meyering.net>
63639
63640         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
63641         the space-padded-by-default conversion specifiers, %e, %k, %l.
63642
63643 2003-05-12  Bruno Haible  <bruno@clisp.org>
63644
63645         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
63646         the string is longer than 4 KB.
63647
63648 2003-05-11  Karl Berry  <karl@gnu.org>
63649
63650         * config/config.{guess,sub}: update from prep.
63651
63652 2003-05-09  Bruno Haible  <bruno@clisp.org>
63653
63654         * modules/error: Add m4/strerror_r.m4 to file list.
63655
63656 2003-05-03  Bruno Haible  <bruno@clisp.org>
63657
63658         Upgrade to Unicode-4.0.
63659         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
63660         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
63661         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
63662         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
63663         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
63664         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
63665         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
63666         Change width of U+E0100..U+E01EF from 1 to 0.
63667
63668 2003-04-25  Jim Meyering  <jim@meyering.net>
63669
63670         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
63671         of type size_t, not int.
63672
63673 2003-04-25  Bruno Haible  <bruno@clisp.org>
63674
63675         * lib/copy-file.c: Include <stddef.h>, for size_t.
63676
63677 2003-04-21  Paul Eggert  <eggert@twinsun.com>
63678
63679         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
63680         code which expansion is under static control.  Patch imported from
63681         Akim Demaille's patch to Bison; see
63682         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
63683
63684 2003-04-14  Bruno Haible  <bruno@clisp.org>
63685
63686         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
63687
63688 2003-04-11  Jim Meyering  <jim@meyering.net>
63689
63690         Merge changes from Coreutils.
63691
63692         2003-03-22  Jim Meyering  <jim@meyering.net>
63693
63694         * lib/strftime.c (widen): Cast alloca return value to proper type.
63695
63696         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
63697
63698         From GNU libc.
63699         * lib/strftime.c (my_strftime): Handle very large width
63700         specifications for numeric values correctly.  Improve checks for
63701         overflow.
63702
63703         2003-01-19  Jim Meyering  <jim@meyering.net>
63704
63705         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
63706         definitions.
63707         (nl_get_alt_digit) [! defined my_strftime]: Define.
63708         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
63709         _nl_get_alt_digit and _nl_get_walt_digit.
63710
63711         * lib/strftime.c (my_strftime): Merge in locale-related changes from
63712         libc. These changes have no effect outside of _LIBC.
63713
63714 2003-04-10  Bruno Haible  <bruno@clisp.org>
63715
63716         * modules/findprog: New file.
63717         * MODULES.html.sh (func_all_modules): Add it.
63718
63719 2003-04-10  Bruno Haible  <bruno@clisp.org>
63720
63721         * m4/findprog.m4: New file.
63722         * m4/eaccess.m4: New file.
63723
63724 2003-04-10  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/findprog.h: New file, from GNU gettext.
63727         * lib/findprog.c: New file, from GNU gettext.
63728
63729 2003-04-05  Jim Meyering  <jim@meyering.net>
63730
63731         Merge changes from Coreutils.
63732
63733         * lib/exclude.h (PARAMS): Remove definition and uses.
63734         * lib/exclude.c: Remove uses of `PARAMS'.
63735
63736         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
63737         Add test-cases for DOS filenames. Declare program_name.
63738         (main): Set up program_name.  Patch by Rich Dawe.
63739
63740         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63741         error from mntctl.
63742         Use mntctl's return value to drive the entry-processing loop, since
63743         we can't rely on the value of the vmt_length member in the last
63744         entry.  On some systems doing so could result in exhausting
63745         virtual memory.  Based in part on a patch from Mike Jetzer.
63746
63747 2003-04-04  Bruno Haible  <bruno@clisp.org>
63748
63749         * modules/linebreak: New file.
63750         * MODULES.html.sh (func_all_modules): Add it.
63751
63752 2003-04-04  Bruno Haible  <bruno@clisp.org>
63753
63754         * m4/linebreak.m4: New file.
63755
63756 2003-04-04  Bruno Haible  <bruno@clisp.org>
63757
63758         * lib/linebreak.h: New file, from GNU gettext.
63759         * lib/linebreak.c: New file, from GNU gettext with slight
63760         modifications.
63761         * lib/lbrkprop.h: New file, from GNU gettext.
63762
63763 2003-04-03  Bruno Haible  <bruno@clisp.org>
63764
63765         * modules/utf8-ucs4: New file.
63766         * modules/utf16-ucs4: New file.
63767         * modules/ucs4-utf8: New file.
63768         * modules/ucs4-utf16: New file.
63769         * MODULES.html.sh (func_all_modules): Add them.
63770
63771 2003-04-03  Bruno Haible  <bruno@clisp.org>
63772
63773         * m4/utf-ucs4.m4: New file.
63774         * m4/ucs4-utf.m4: New file.
63775
63776 2003-04-03  Bruno Haible  <bruno@clisp.org>
63777
63778         * lib/utf8-ucs4.h: New file, from GNU gettext.
63779         * lib/utf16-ucs4.h: New file, from GNU gettext.
63780         * lib/ucs4-utf8.h: New file, from GNU gettext.
63781         * lib/ucs4-utf16.h: New file, from GNU gettext.
63782
63783 2003-04-02  Bruno Haible  <bruno@clisp.org>
63784
63785         * modules/binary-io: New file.
63786         * MODULES.html.sh (func_all_modules): Add it.
63787
63788 2003-04-02  Bruno Haible  <bruno@clisp.org>
63789
63790         * lib/binary-io.h: New file, from GNU gettext.
63791
63792 2003-04-01  Bruno Haible  <bruno@clisp.org>
63793
63794         * modules/pathname: New file.
63795         * MODULES.html.sh (func_all_modules): Add it.
63796
63797 2003-04-01  Bruno Haible  <bruno@clisp.org>
63798
63799         * lib/pathname.h: New file, from GNU gettext.
63800         * lib/concatpath.c: New file, from GNU gettext.
63801
63802 2003-03-30  Bruno Haible  <bruno@clisp.org>
63803
63804         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
63805
63806 2003-03-30  Bruno Haible  <bruno@clisp.org>
63807
63808         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
63809         function chown() doesn't exist.
63810
63811 2003-03-28  Bruno Haible  <bruno@clisp.org>
63812
63813         * modules/copy-file: New file.
63814         * MODULES.html.sh (func_all_modules): Add it.
63815
63816 2003-03-28  Bruno Haible  <bruno@clisp.org>
63817
63818         * m4/copy-file.m4: New file.
63819
63820 2003-03-28  Bruno Haible  <bruno@clisp.org>
63821
63822         * lib/copy-file.h: New file, from GNU gettext.
63823         * lib/copy-file.c: New file, from GNU gettext.
63824
63825 2003-03-18  Jim Meyering  <jim@meyering.net>
63826
63827         * lib/quote.c (quote_n): Fix typo in comment.
63828
63829 2003-03-18  Bruno Haible  <bruno@clisp.org>
63830
63831         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
63832         checking.
63833         * m4/onceonly_2_57.m4: Likewise.
63834
63835 2003-03-17  Bruno Haible  <bruno@clisp.org>
63836
63837         * m4/onceonly.m4: Require autoconf 2.54 or newer.
63838         (m4_quote): Remove macro.
63839         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
63840
63841 2003-03-14  Jim Meyering  <jim@meyering.net>
63842
63843         Merge changes from Coreutils.
63844         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
63845         to be const, in order to avoid warnings.
63846         (obstack_room): Likewise.
63847         (obstack_empty_p): Likewise.
63848
63849 2003-03-14  Bruno Haible  <bruno@clisp.org>
63850
63851         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
63852         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
63853
63854 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63855
63856         Merge changes from Bison.
63857         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
63858         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
63859         when compiling Bison 1.875's `bitset bset = obstack_alloc
63860         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
63861         * lib/hash.c: Include <stdbool.h> unconditionally.
63862
63863 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63864
63865         * m4/onceonly.m4 (m4_quote): New macro.
63866         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
63867         Quote AC_FOREACH variable-expansions properly.
63868
63869 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63870
63871         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
63872
63873 2003-03-09  Paul Eggert  <eggert@twinsun.com>
63874
63875         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
63876         Reported by Bruce Becker; see:
63877         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
63878
63879 2003-03-03  Paul Eggert  <eggert@twinsun.com>
63880             Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
63883         Reported by John Hughes, see
63884         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
63885
63886 2003-02-20  Bruno Haible  <bruno@clisp.org>
63887
63888         * MODULES.html.sh (func_all_modules): Add poll.
63889
63890 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63891
63892         * modules/poll: New file.
63893
63894 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63895
63896         * lib/poll_.h: New file.
63897         * lib/poll.c: New file.
63898
63899 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63900
63901         * m4/poll.m4: New file.
63902
63903 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63904
63905         * modules/mathl: New file.
63906
63907 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63908
63909         * lib/mathl.h: New file.
63910         * lib/acosl.c: New file.
63911         * lib/asinl.c: New file.
63912         * lib/atanl.c: New file.
63913         * lib/ceill.c: New file.
63914         * lib/cosl.c: New file.
63915         * lib/expl.c: New file.
63916         * lib/floorl.c: New file.
63917         * lib/frexpl.c: New file.
63918         * lib/ldexpl.c: New file.
63919         * lib/logl.c: New file.
63920         * lib/sincosl.c: New file.
63921         * lib/sinl.c: New file.
63922         * lib/sqrtl.c: New file.
63923         * lib/tanl.c: New file.
63924         * lib/trigl.c: New file.
63925         * lib/trigl.h: New file.
63926
63927 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63928
63929         * m4/mathl.m4: New file.
63930
63931 2003-02-18  Bruno Haible  <bruno@clisp.org>
63932
63933         * MODULES.html.sh (func_all_modules): Add mathl.
63934
63935 2003-02-17  Bruno Haible  <bruno@clisp.org>
63936
63937         * modules/mkdtemp: New module.
63938         * MODULES.html.sh (func_all_modules): Add it.
63939
63940 2003-02-17  Bruno Haible  <bruno@clisp.org>
63941
63942         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
63943
63944 2003-02-17  Bruno Haible  <bruno@clisp.org>
63945
63946         * lib/mkdtemp.h: New file, from GNU gettext.
63947         * lib/mkdtemp.c: New file, from GNU gettext.
63948
63949 2003-02-02  Jim Meyering  <jim@meyering.net>
63950
63951         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
63952         e.g. glibc-2.2.93.
63953
63954 2003-01-31  Bruno Haible  <bruno@clisp.org>
63955
63956         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
63957         'rpl_rename'.
63958         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
63959         'rpl_strnlen'.
63960         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
63961         'rpl_strtod'.
63962         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
63963         'rpl_utime'.
63964
63965 2003-01-31  Bruno Haible  <bruno@clisp.org>
63966
63967         * lib/rename.c: #undef rename before defining rpl_rename.
63968         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
63969
63970 2003-01-30  Bruno Haible  <bruno@clisp.org>
63971
63972         * modules/vasnprintf, modules/vasprintf: New modules.
63973         * MODULES.html.sh (func_all_modules): Add them.
63974
63975 2003-01-30  Bruno Haible  <bruno@clisp.org>
63976
63977         * m4/signed.m4: New file, from GNU gettext.
63978         * m4/longdouble.m4: New file, from GNU gettext.
63979         * m4/wchar_t.m4: New file, from GNU gettext.
63980         * m4/wint_t.m4: New file, from GNU gettext.
63981         * m4/vasnprintf.m4: New file.
63982         * m4/vasprintf.m4: New file.
63983
63984 2003-01-30  Bruno Haible  <bruno@clisp.org>
63985
63986         * lib/printf-args.h: New file, from GNU gettext.
63987         * lib/printf-args.c: New file, from GNU gettext.
63988         * lib/printf-parse.h: New file, from GNU gettext.
63989         * lib/printf-parse.c: New file, from GNU gettext.
63990         * lib/vasnprintf.h: New file, from GNU gettext.
63991         * lib/vasnprintf.c: New file, from GNU gettext.
63992         * lib/asnprintf.c: New file, from GNU gettext.
63993         * lib/vasprintf.h: New file, from GNU gettext with modifications.
63994         * lib/vasprintf.c: New file, from GNU gettext.
63995         * lib/asprintf.c: New file, from GNU gettext.
63996
63997 2003-01-29  Bruno Haible  <bruno@clisp.org>
63998
63999         * modules/stpncpy: New module.
64000         * MODULES.html.sh (func_all_modules): Add it.
64001
64002 2003-01-29  Bruno Haible  <bruno@clisp.org>
64003
64004         * m4/stpncpy.m4: New file.
64005
64006 2003-01-29  Bruno Haible  <bruno@clisp.org>
64007
64008         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64009         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64010
64011 2003-01-28  Bruno Haible  <bruno@clisp.org>
64012
64013         * modules/c-ctype: New module.
64014         * MODULES.html.sh (func_all_modules): Add it.
64015
64016 2003-01-28  Bruno Haible  <bruno@clisp.org>
64017
64018         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64019         Paul Eggert.
64020         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64021         Paul Eggert.
64022
64023 2003-01-27  Bruno Haible  <bruno@clisp.org>
64024
64025         * modules/xsetenv: New module.
64026         * MODULES.html.sh (func_all_modules): Add it.
64027
64028 2003-01-27  Bruno Haible  <bruno@clisp.org>
64029
64030         * lib/xsetenv.h: New file, from GNU gettext.
64031         * lib/xsetenv.c: New file, from GNU gettext.
64032
64033 2003-01-23  Jim Meyering  <jim@meyering.net>
64034
64035         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64036         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64037
64038 2003-01-23  Bruno Haible  <bruno@clisp.org>
64039
64040         * modules/minmax: New module.
64041         * MODULES.html.sh (func_all_modules): Add it.
64042
64043 2003-01-23  Bruno Haible  <bruno@clisp.org>
64044
64045         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64046         Eggert.
64047
64048 2003-01-22  Bruno Haible  <bruno@clisp.org>
64049
64050         * modules/exit: New module.
64051         * MODULES.html.sh (func_all_modules): Add it.
64052
64053 2003-01-22  Bruno Haible  <bruno@clisp.org>
64054
64055         * lib/exit.h: New file, from GNU gettext.
64056
64057 2003-01-19  Bruno Haible  <bruno@clisp.org>
64058
64059         * gnulib-tool: Recognize option --extract-maintainer.
64060         (func_get_maintainer): New function.
64061         * modules/*: Add Maintainer entry.
64062
64063 2003-01-16  Jim Meyering  <jim@meyering.net>
64064
64065         * m4/regex.m4: The `regex' struct is both input and output.
64066         Initialize it before each use.  Patch by Tim Waugh.
64067
64068 2003-01-16  Bruno Haible  <bruno@clisp.org>
64069
64070         * MODULES.html.sh: Add a table of contents. Add the module name as
64071         leftmost column. Add hyperlinks.
64072
64073 2003-01-15  Bruno Haible  <bruno@clisp.org>
64074
64075         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64076
64077 2003-01-15  Bruno Haible  <bruno@clisp.org>
64078
64079         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64080         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64081         suffix.
64082
64083 2003-01-15  Bruno Haible  <bruno@clisp.org>
64084
64085         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64086
64087 2003-01-15  Bruno Haible  <bruno@clisp.org>
64088
64089         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64090         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64091
64092 2003-01-14  Jim Meyering  <jim@meyering.net>
64093
64094         * lib/same.c (same_name): Tweak a comment.
64095
64096 2003-01-14  Bruno Haible  <bruno@clisp.org>
64097
64098         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64099         when a string comparison is sufficient.
64100
64101 2003-01-14  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64104         'unsigned int'.
64105
64106 2003-01-14  Bruno Haible  <bruno@clisp.org>
64107
64108         * lib/hash-pjw.c: Add comment about low quality of this function.
64109
64110 2003-01-13  Bruno Haible  <bruno@clisp.org>
64111
64112         * modules/stpcpy: Distribute lib/stpcpy.h.
64113         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64114
64115 2003-01-13  Bruno Haible  <bruno@clisp.org>
64116
64117         * modules/*: Add a description.
64118         * modules/strpbrk: Fix Makefile.am snippet.
64119         * modules/strtoimax: Fix dependencies.
64120         * modules/strtoumax: Likewise.
64121
64122 2003-01-13  Bruno Haible  <bruno@clisp.org>
64123
64124         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64125         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64126         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64127
64128 2003-01-13  Bruno Haible  <bruno@clisp.org>
64129
64130         * gnulib-tool (func_create_testdir): Store config/* files in the main
64131         directory.
64132         * config.rpath: Move to ...
64133         * config/config.rpath: ... here.
64134         * modules/gettext: Contains config/config.rpath, not config.rpath.
64135         * modules/iconv: Likewise.
64136
64137 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64138
64139         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64140         to avoid collisions with libcurses and libreadline.
64141
64142         * m4/getstr.m4: Remove.
64143         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64144
64145 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64146
64147         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64148         to avoid collisions with libcurses and libreadline.
64149
64150         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64151         * lib/getstr.h, getstr.c: Remove.
64152         * lib/getline.c: Include "getline.h", to check interface.
64153         Move body of old getstr.c here: this defines MIN_CHUNK and
64154         declares getdelim2, which is renamed from getstr.
64155         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64156
64157         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64158         All uses changed.
64159         * lib/linebuffer.h: Likewise.
64160         (readline): Remove backward-compatibility macro.
64161
64162 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64163
64164         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64165         to avoid collisions with libcurses and libreadline.
64166         * getstr: Remove.
64167         * MODULES.html.sh: Remove getstr.
64168         * modules/getline: Depend on unlocked-io, not getstr.
64169
64170 2003-01-12  Jim Meyering  <jim@meyering.net>
64171
64172         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64173
64174 2003-01-10  Bruno Haible  <bruno@clisp.org>
64175
64176         * modules/alloca: Change Makefile.am requirements. Simplify Include
64177         requirements. Add lib/alloca_.h to file list.
64178
64179 2003-01-10  Bruno Haible  <bruno@clisp.org>
64180
64181         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64182
64183 2003-01-10  Bruno Haible  <bruno@clisp.org>
64184
64185         * lib/alloca_.h: New file.
64186         * lib/getdate.y: Unconditionally include alloca.h.
64187         * lib/makepath.c: Likewise.
64188         * lib/setenv.c: Likewise.
64189         * lib/userspec.c: Likewise.
64190
64191 2003-01-09  Karl Berry  <karl@gnu.org>
64192
64193         * MODULES.html.sh: include `dirname $0` in PATH, to find
64194         gnulib-tool.
64195
64196 2003-01-09  Bruno Haible  <bruno@clisp.org>
64197
64198         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64199         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64200
64201 2003-01-09  Bruno Haible  <bruno@clisp.org>
64202
64203         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64204
64205 2003-01-09  Bruno Haible  <bruno@clisp.org>
64206
64207         * lib/stdbool.h.in: New file.
64208
64209 2003-01-09  Bruno Haible  <bruno@clisp.org>
64210
64211         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64212         * MODULES.html.sh: Likewise.
64213
64214 2003-01-08  Jim Meyering  <jim@meyering.net>
64215
64216         * lib/full-write.c: Undefine and define-away `const' after inclusion
64217         of errno.h, not before.  Suggestion from Bruno Haible.
64218
64219 2003-01-08  Bruno Haible  <bruno@clisp.org>
64220
64221         * modules/full-read: Depend on full-write.
64222
64223 2003-01-08  Bruno Haible  <bruno@clisp.org>
64224
64225         * lib/safe-read.c: Include specification header first, to ensure its
64226         selfcontainedness.
64227         * lib/full-write.c: Likewise.
64228
64229 2003-01-07  Jim Meyering  <jim@meyering.net>
64230
64231         * lib/full-write.c: Rework so that it may serve to define full_read,
64232         too.
64233         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64234
64235 2003-01-07  Bruno Haible  <bruno@clisp.org>
64236
64237         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64238         <inttypes.h>.
64239         * lib/xstrtol.h: Likewise.
64240         * lib/xstrtoimax.c: Likewise.
64241         * lib/xstrtoumax.c: Likewise.
64242         * lib/human.h: Likewise.
64243
64244         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64245         on systems that have <inttypes.h> but not <stdint.h>.
64246
64247 2003-01-07  Bruno Haible  <bruno@clisp.org>
64248
64249         * MODULES.html.sh: Add copyright notice.
64250         (missed_files): Omit CVS directory entries.
64251         (func_module): Make it work with sed-3.02.
64252         * MODULES.txt: Remove file.
64253
64254 2003-01-06  Jim Meyering  <jim@meyering.net>
64255
64256         * lib/version-etc.c: Update year in translatable copyright string.
64257
64258 2003-01-03  Karl Berry  <karl@gnu.org>
64259
64260         * config/config.{guess,sub}: update from prep.
64261
64262 2003-01-02  Karl Berry  <karl@gnu.org>
64263
64264         * doc/COPYING.DOC: belatedly updated to 1.2.
64265
64266 2003-01-01  Karl Berry  <karl@gnu.org>
64267
64268         * gnulib-tool (func_verify_module): report module name $module in
64269         error message, not $1.
64270         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64271         be created, only if it doesn't exist.
64272         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64273
64274 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64275
64276         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64277
64278 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64279
64280         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64281         memcmp if strcoll doesn't work.
64282
64283 2002-12-31  Bruno Haible  <bruno@clisp.org>
64284
64285         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64286         nonempty.
64287
64288 2002-12-31  Bruno Haible  <bruno@clisp.org>
64289
64290         * lib/memcoll.c (STRCOLL): New macro.
64291         (memcoll): Use it.
64292
64293 2002-12-31  Bruno Haible  <bruno@clisp.org>
64294
64295         * lib/localcharset.h: New file.
64296         * lib/localcharset.c: Include it.
64297         * lib/unicodeio.c: Likewise.
64298
64299 2002-12-31  Bruno Haible  <bruno@clisp.org>
64300
64301         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64302         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64303
64304 2002-12-31  Bruno Haible  <bruno@clisp.org>
64305
64306         * lib/getline.h: Include <stddef.h>, for size_t.
64307
64308         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64309         * lib/unicodeio.c: Don't include <stddef.h>.
64310
64311 2002-12-31  Bruno Haible  <bruno@clisp.org>
64312
64313         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64314         HAVE_TM_ZONE.
64315
64316 2002-12-24  Karl Berry  <karl@gnu.org>
64317
64318         * config/config.guess: update from prep.
64319
64320 2002-12-24  Bruno Haible  <bruno@clisp.org>
64321
64322         General infrasructure.
64323         * m4/README: Rewritten.
64324         * m4/onceonly.m4: New file.
64325         * m4/onceonly_2_57.m4: New file.
64326
64327         Module atexit.
64328         * m4/atexit.m4: New file.
64329
64330         Module strtod.
64331         * m4/strtod.m4: New file.
64332
64333         Module strtol.
64334         * m4/strtol.m4: New file.
64335
64336         Module strtoul.
64337         * m4/strtoul.m4: New file.
64338
64339         Module memchr.
64340         * m4/memchr.m4: New file.
64341
64342         Module memcmp.
64343         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64344         (jm_FUNC_MEMCMP): Invoke it.
64345
64346         Module memcpy.
64347         * m4/memcpy.m4: New file.
64348
64349         Module memmove.
64350         * m4/memmove.m4: New file.
64351
64352         Module memset.
64353         * m4/memset.m4: New file.
64354
64355         Module strcspn.
64356         * m4/strcspn.m4: New file.
64357
64358         Module strpbrk.
64359         * m4/strpbrk.m4: New file.
64360
64361         Module strstr.
64362         * m4/strstr.m4: New file.
64363
64364         Module strerror.
64365         * m4/strerror.m4: New file.
64366
64367         Module mktime.
64368         * m4/mktime.m4: Renamed from jm-mktime.m4.
64369         (gl_PREREQ_MKTIME): New macro.
64370         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64371
64372         Module malloc.
64373         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64374         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64375         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64376
64377         Module realloc.
64378         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64379         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64380         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64381
64382         Module strftime.
64383         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64384         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64385         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64386         gl_TM_GMTOFF.
64387         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64388
64389         Module xalloc.
64390         * m4/xalloc.m4: New file.
64391
64392         Module alloca.
64393         * m4/alloca.m4: New file.
64394
64395         Module putenv.
64396         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64397         (jm_FUNC_PUTENV): Invoke it.
64398
64399         Module setenv.
64400         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64401         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64402         when invoked twice.
64403         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64404         gt_FUNC_SETENV.
64405
64406         Module memrchr.
64407         * m4/memrchr.m4: New file.
64408
64409         Module stpcpy.
64410         * m4/stpcpy.m4: New file.
64411
64412         Module strcase.
64413         * m4/strcase.m4: New file.
64414
64415         Module strdup.
64416         * m4/strdup.m4: New file.
64417
64418         Module strnlen.
64419         * m4/strnlen.m4: New file.
64420
64421         Module strndup.
64422         * m4/strndup.m4: New file.
64423
64424         Module xstrtod.
64425         * m4/xstrtod.m4: New file.
64426
64427         Module xstrtol.
64428         * m4/xstrtol.m4: New file.
64429
64430         Module getdate.
64431         * m4/getdate.m4: New file.
64432
64433         Module unlocked-io.
64434         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64435         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64436         * m4/jm-glibc-io.m4n: Remove file.
64437
64438         Module long-options.
64439         * m4/long-options.m4: New file.
64440
64441         Module md5.
64442         * m4/md5.m4: New file.
64443
64444         Module sha.
64445         * m4/sha.m4: New file.
64446
64447         Module getstr.
64448         * m4/getstr.m4: New file.
64449
64450         Module getline.
64451         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64452         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64453         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64454         simply getline. Infoke gl_PREREQ_GETLINE.
64455
64456         Module obstack.
64457         * m4/obstack.m4: New file.
64458
64459         Module hash.
64460         * m4/hash.m4: New file.
64461
64462         Module readtokens.
64463         * m4/readtokens.m4: New file.
64464
64465         Module strverscmp.
64466         * m4/strverscmp.m4: New file.
64467
64468         Module stdbool.
64469         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64470         OSF/1.
64471
64472         Module strtoll.
64473         * m4/strtoll.m4: New file.
64474
64475         Module strtoull.
64476         * m4/strtoull.m4: New file.
64477
64478         Module strtoimax.
64479         * m4/strtoimax.m4: New file.
64480
64481         Module strtoumax.
64482         * m4/strtoumax.m4: New file.
64483
64484         Module xstrtoimax.
64485         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64486         jm_AC_PREREQ_XSTRTOIMAX.
64487         Moved the strtol prerequisites to strtol.m4.
64488         Moved the strtoll prerequisites to strtoll.m4.
64489         Moved the strtoimax prerequisites to strtoimax.m4.
64490
64491         Module xstrtoumax.
64492         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64493         jm_AC_PREREQ_XSTRTOUMAX.
64494         Moved the strtoul prerequisites to strtoul.m4.
64495         Moved the strtoull prerequisites to strtoull.m4.
64496         Moved the strtoumax prerequisites to strtoumax.m4.
64497
64498         Module chown.
64499         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64500         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64501
64502         Module dup2.
64503         * m4/dup2.m4: New file.
64504
64505         Module ftruncate.
64506         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64507         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64508
64509         Module getgroups.
64510         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64511         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64512
64513         Module gettimeofday.
64514         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64515         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64516         gl_PREREQ_GETTIMEOFDAY.
64517
64518         Module mkdir.
64519         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64520         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64521
64522         Module mkstemp.
64523         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64524         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64525         jm_AC_TYPE_UINTMAX_T.
64526         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64527
64528         Module stat.
64529         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64530         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64531
64532         Module lstat.
64533         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64534         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64535
64536         Module timespec.
64537         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64538         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64539         * m4/st_mtim.m4: Indentation.
64540
64541         Module nanosleep.
64542         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64543         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64544         gl_PREREQ_NANOSLEEP.
64545
64546         Module regex.
64547         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64548         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64549         (gl_REGEX): New macro.
64550
64551         Module rename.
64552         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64553         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64554
64555         Module rmdir.
64556         * m4/rmdir.m4: New file.
64557
64558         Module utime.
64559         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64560         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64561         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64562
64563         Module dirname.
64564         * m4/dirname.m4: New file.
64565
64566         Module getopt.
64567         * m4/getopt.m4: New file.
64568
64569         Module unistd-safer.
64570         * m4/unistd-safer.m4: New file.
64571
64572         Module fnmatch.
64573         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64574         declaration.
64575         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64576         (gl_FUNC_FNMATCH_POSIX): New macro.
64577         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64578         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64579         simply fnmatch.
64580
64581         Module exclude.
64582         * m4/exclude.m4: New file.
64583
64584         Module human.
64585         * m4/human.m4: New file.
64586
64587         Module acl.
64588         * m4/acl.m4: Nop.
64589
64590         Module backupfile.
64591         * m4/backupfile.m4: New file.
64592         * m4/d-ino.m4: Indentation.
64593
64594         Module fsusage.
64595         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64596         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64597         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64598
64599         Module dirfd.
64600         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64601         requirements.
64602
64603         Module euidaccess.
64604         * m4/euidaccess.m4: New file.
64605
64606         Module file-type.
64607         * m4/file-type.m4: New file.
64608
64609         Module fileblocks.
64610         * m4/fileblocks.m4: New file.
64611
64612         Module filemode.
64613         * m4/filemode.m4: New file.
64614
64615         Module isdir.
64616         * m4/isdir.m4: New file.
64617
64618         Module lchown.
64619         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64620         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64621
64622         Module makepath.
64623         * m4/makepath.m4: New file.
64624
64625         Module modechange.
64626         * m4/modechange.m4: New file.
64627
64628         Module mountlist.
64629         * m4/mountlist.m4: New file.
64630         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
64631         Indentation.
64632
64633         Module path-concat.
64634         * m4/path-concat.m4: New file.
64635
64636         Module pathmax.
64637         * m4/pathmax.m4: New file.
64638
64639         Module same.
64640         * m4/same.m4: New file.
64641
64642         Module save-cwd.
64643         * m4/save-cwd.m4: New file.
64644
64645         Module savedir.
64646         * m4/savedir.m4: New file.
64647
64648         Module xgetcwd.
64649         * m4/xgetcwd.m4: New file.
64650         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
64651
64652         Module xreadlink.
64653         * m4/xreadlink.m4: New file.
64654
64655         Module safe-read.
64656         * m4/safe-read.m4: New file.
64657
64658         Module safe-write.
64659         * m4/safe-write.m4: New file.
64660
64661         Module closeout.
64662         * m4/closeout.m4: New file.
64663
64664         Module stdio-safer.
64665         * m4/stdio-safer.m4: New file.
64666
64667         Module getpass.
64668         * m4/getpass.m4: New file.
64669
64670         Module getugroups.
64671         * m4/getugroups.m4: New file.
64672
64673         Module group-member.
64674         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
64675         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
64676
64677         Module idcache.
64678         * m4/idcache.m4: New file.
64679
64680         Module userspec.
64681         * m4/userspec.m4: New file.
64682
64683         Module gettime.
64684         * m4/clock_time.m4: New file.
64685         * m4/gettime.m4: New file.
64686
64687         Module settime.
64688         * m4/settime.m4: New file.
64689
64690         Module posixtm.
64691         * m4/posixtm.m4: New file.
64692
64693         Module gethostname.
64694         * m4/gethostname.m4: New file.
64695
64696         Module canon-host.
64697         * m4/canon-host.m4: New file.
64698
64699         Module gettext.
64700         * m4/codeset.m4: New file, from gettext-0.11.5.
64701         * m4/gettext.m4: New file, from gettext-0.11.5.
64702         * m4/glibc21.m4: New file, from gettext-0.11.5.
64703         * m4/iconv.m4: New file, from gettext-0.11.5.
64704         * m4/intdiv0.m4: New file, from gettext-0.11.5.
64705         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
64706         * m4/inttypes.m4: New file, from gettext-0.11.5.
64707         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
64708         * m4/isc-posix.m4: New file, from gettext-0.11.5.
64709         * m4/lcmessage.m4: New file, from gettext-0.11.5.
64710         * m4/lib-ld.m4: New file, from gettext-0.11.5.
64711         * m4/lib-link.m4: New file, from gettext-0.11.5.
64712         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
64713         * m4/progtest.m4: New file, from gettext-0.11.5.
64714         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
64715         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
64716         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
64717
64718         Module localcharset.
64719         * m4/localcharset.m4: New file.
64720
64721         Module hard-locale.
64722         * m4/hard-locale.m4: New file.
64723
64724         Module mbswidth.
64725         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
64726         onceonly macros.
64727         * m4/mbrtowc.m4: Add comment.
64728
64729         Module memcasecmp.
64730         * m4/memcasecmp.m4: New file.
64731
64732         Module memcoll.
64733         * m4/memcoll.m4: New file.
64734
64735         Module unicodeio.
64736         * m4/unicodeio.m4: New file.
64737
64738         Module rpmatch.
64739         * m4/rpmatch.m4: New file.
64740
64741         Module yesno.
64742         * m4/yesno.m4: New file.
64743
64744         Module exitfail.
64745         * m4/exitfail.m4: New file.
64746
64747         Module c-stack.
64748         * m4/c-stack.m4 (gl_C_STACK): New macro.
64749         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
64750
64751         Module error.
64752         * m4/error.m4 (gl_ERROR): New macro.
64753         (jm_PREREQ_ERROR): Use onceonly macros.
64754
64755         Module fatal.
64756         * m4/fatal.m4: New file.
64757
64758         Module getloadavg.
64759         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
64760         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
64761
64762         Module getpagesize.
64763         * m4/getpagesize.m4: New file.
64764
64765         Module getusershell.
64766         * m4/getusershell.m4: New file.
64767
64768         Module physmem.
64769         * m4/physmem.m4: New file.
64770
64771         Module posixver.
64772         * m4/posixver.m4: New file.
64773
64774         Module quotearg.
64775         * m4/quotearg.m4: New file.
64776
64777         Module quote.
64778         * m4/quote.m4: New file.
64779
64780         Module readutmp.
64781         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
64782
64783         Module sig2str.
64784         * m4/sig2str.m4: New file.
64785
64786         Other.
64787         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
64788         ulonglong.m4.
64789         * m4/intmax_t.m4: New file.
64790         * m4/d-type.m4: Indentation.
64791         * m4/jm-macros.m4: Update.
64792         * m4/prereq.m4 (jm_PREREQ): Update.
64793         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
64794         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
64795         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
64796         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
64797         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
64798         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
64799         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
64800         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
64801         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
64802         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
64803         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
64804         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
64805         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
64806         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
64807         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
64808         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
64809         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
64810         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
64811         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
64812
64813 2002-12-24  Bruno Haible  <bruno@clisp.org>
64814
64815         * MODULES.txt: Update according to m4/ changes.
64816
64817         Module gettext.
64818         * config.rpath: New file, from gettext-0.11.5.
64819
64820         * modules/*: New module descriptions.
64821         * gnulib-tool: New file.
64822         * MODULES.html.sh: New file.
64823
64824 2002-12-21  Karl Berry  <karl@gnu.org>
64825
64826         * doc/fdl.texi: update to version 1.2.
64827
64828 2002-12-19  Karl Berry  <karl@gnu.org>
64829
64830         * config/config.guess: update from prep.
64831
64832 2002-12-18  Bruno Haible  <bruno@clisp.org>
64833
64834         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
64835         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
64836
64837 2002-12-17  Bruno Haible  <bruno@clisp.org>
64838
64839         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
64840         stdlib.h, string.h.
64841
64842 2002-12-17  Bruno Haible  <bruno@clisp.org>
64843
64844         * lib/canon-host.c (strdup): Remove unused declaration.
64845
64846         * lib/fsusage.c: Include full_read.h.
64847         (get_fs_usage): Use full_read instead of safe_read.
64848
64849         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
64850
64851 2002-12-12  Karl Berry  <karl@gnu.org>
64852
64853         * config/config.guess: update from prep.
64854
64855 2002-12-11  Bruno Haible  <bruno@clisp.org>
64856
64857         * m4/setenv.m4: New file, from gettext-0.11.5.
64858
64859 2002-12-11  Bruno Haible  <bruno@clisp.org>
64860
64861         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
64862         not unsetenv().
64863         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
64864         modifications:
64865
64866         2002-12-11  Bruno Haible  <bruno@clisp.org>
64867
64868                 * setenv.c (alloca): Fall back to malloc.
64869                 (freea): New macro.
64870                 (setenv): Use freea() to free memory allocated with alloca().
64871
64872         2002-11-13  Bruno Haible  <bruno@clisp.org>
64873
64874                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
64875                 function declarations.
64876                 * unsetenv.c (unsetenv): Likewise.
64877
64878         2002-03-04  Bruno Haible  <bruno@clisp.org>
64879
64880                 Portability to AIX 4.3.3.
64881                 * unsetenv.c: New file, extracted from setenv.c.
64882                 * setenv.c: Move the unsetenv() function to unsetenv.c.
64883
64884         2001-12-20  Bruno Haible  <bruno@clisp.org>
64885
64886                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
64887                 use malloc instead. For SunOS 4.
64888
64889         2001-12-11  Bruno Haible  <bruno@clisp.org>
64890
64891                 * setenv.c: Declare alloca.
64892                 (compar_fn_t): New typedef.
64893                 (KNOWN_VALUE, STORE_VALUE): Use it.
64894
64895         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
64896         setenv.h.
64897
64898 2002-12-10  Paul Eggert  <eggert@twinsun.com>
64899
64900         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
64901         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
64902         Choose values that are less likely to collide with system fnmatch
64903         options.
64904         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
64905         defined (e.g., a pure POSIX system).
64906         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
64907         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
64908
64909 2002-12-06  Paul Eggert  <eggert@twinsun.com>
64910
64911         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
64912         a pain in practice to deal with generated m4 files.  This change
64913         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
64914
64915         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
64916         and jm-glibc-io.m4, as they are no longer a special case.
64917         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
64918         kludge and the auto-generation stuff.  Check only whether the
64919         functions are declared, not whether they exist, since older hosts
64920         that don't declare the functions can't use the optimization anyway.
64921
64922 2002-12-06  Jim Meyering  <jim@meyering.net>
64923
64924         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
64925
64926         Merge in changes from libc's misc/error.c, in preparation
64927         for the merge of gnulib's changes back into libc.
64928
64929         * lib/error.c (_): Define only if not already defined.
64930         Move definition to follow all #include directives.
64931         Include unlocked-io.h only if !_LIBC.
64932         [_LIBC]: Include <libio/libioP.h>.
64933         [USE_IN_LIBIO]: Include <libio/iolibio.h>
64934         (fflush): Tweak definition to use INTUSE.
64935         (putc): Define.
64936
64937 2002-12-05  Paul Eggert  <eggert@twinsun.com>
64938
64939         * lib/alloca.c [defined emacs]: Include "lisp.h".
64940         (xalloc_die) [defined emacs]: New macro.
64941         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
64942         [! defined emacs]: Include <xalloc.h>.
64943         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
64944         (pointer): Typedef to POINTER_TYPE *.
64945         (malloc): Remove decl; we now always use xmalloc.
64946         (alloca): Use old-style definition, since Emacs needs this.
64947         Check for arithmetic overflow when computing combined size.
64948
64949 2002-12-04  Paul Eggert  <eggert@twinsun.com>
64950
64951         Do not generate unlocked-io.h automatically, since it's easier to
64952         maintain it by hand.
64953
64954         * lib/unlocked-io.h: New file, from GNU diffutils,
64955         but with proper copyright notice and attribution.
64956         * lib/gen-uio: Remove.
64957         * lib/Makefile.am: Add copyright notice.
64958         (libfetish_a_SOURCES): Add unlocked-io.h.
64959         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
64960         (DISTCLEANFILES, io_functions): Remove macros.
64961         (EXTRA_DIST): Remove gen_uio.
64962         (unlocked-io.h): Remove rule.
64963
64964 2002-12-04  Jim Meyering  <jim@meyering.net>
64965
64966         Reflect the fact that stat.c and lstat.c are no longer generated.
64967         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
64968         (DISTCLEANFILES): Likewise.
64969         (EXTRA_DIST): Likewise.
64970         (all_local): Don't depend on stat.c or lstat.c.
64971         (stat.c, lstat.c): Remove rules.
64972         (EXTRA_DIST): Remove xstat.in.
64973
64974         * lib/xstat.in: Remove file.  Contents moved into stat.c.
64975         * lib/stat.c: New file.  Contents mostly from xstat.in.
64976         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
64977         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
64978
64979         * lib/safe-read.c: Rework so that it may serve to define safe_write,
64980         too.
64981         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
64982
64983 2002-12-03  Jim Meyering  <jim@meyering.net>
64984
64985         * lib/safe-read.c, safe-write.c: Change variable names and comments,
64986         but not semantics, to minimize the differences between these two files.
64987         (safe_read): Change comment to mention SAFE_READ_ERROR.
64988
64989         * lib/safe-read.c (IS_EINTR): Define.
64990         (safe_read): Use IS_EINTR in place of in-function cpp directives.
64991
64992 2002-12-02  Jim Meyering  <jim@meyering.net>
64993
64994         * lib/safe-read.c (EINTR): Define.
64995         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
64996         (INT_MAX): Provide fallback.
64997         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
64998
64999         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65000
65001 2002-12-02  Bruno Haible  <bruno@clisp.org>
65002
65003         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65004         Define, taken from safe-read.c.
65005         (INT_MAX): Provide fallback.
65006         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65007         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65008
65009         * lib/safe-read.c (EINTR): Remove definition.
65010         (safe_read): Don't use EINTR if it is absent.
65011
65012 2002-12-01  Jim Meyering  <jim@meyering.net>
65013
65014         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65015         zero.
65016         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65017
65018 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65019
65020         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65021         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65022         with `if (! (value < limit)) abort ();', for readability.
65023
65024 2002-11-26  Karl Berry  <karl@gnu.org>
65025
65026         * lib/strdup.c: copy from libc again, with jim's ok.
65027         * lib/.cppi-disable: re-add strdup.c
65028
65029 2002-11-25  Karl Berry  <karl@gnu.org>
65030
65031         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65032         instead of "strtol.c".
65033
65034 2002-11-25  Karl Berry  <karl@gnu.org>
65035
65036         * config/install-sh: update from automake for variable quoting, $0 in
65037         error msgs, etc.
65038
65039         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65040         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65041         entry.
65042
65043 2002-11-25  Jim Meyering  <jim@meyering.net>
65044
65045         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65046
65047 2002-11-24  Karl Berry  <karl@gnu.org>
65048
65049         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65050         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65051
65052 2002-11-24  Jim Meyering  <jim@meyering.net>
65053
65054         Update from coreutils:
65055
65056         * lib/mktime.c: Merge in changes from libc.
65057
65058         Avoid a link-time failure on some Linux systems.
65059         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65060         (otherwise).
65061         (__mon_yday): Declare with the STATIC attribute.
65062         (__mktime_internal): Likewise.
65063         Based on a report from Greg Schafer.
65064
65065 2002-11-23  Jim Meyering  <jim@meyering.net>
65066
65067         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65068         Use `unsigned', not `int', as type of index.
65069
65070         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65071
65072         * lib/fsusage.c: Remove unneeded parentheses around operands of
65073         `defined'.
65074
65075 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65076
65077         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65078         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65079         so that we can be included first.
65080         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65081         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65082         No need to include stddef.h or sys/types.h any more.
65083         Surround local include files with "", not "<>".
65084         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65085         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65086         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65087         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65088         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65089         (ISPRINT): Remove; no longer needed now that we assume C89.
65090
65091         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65092         Preserve errno.
65093
65094         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65095         quotearg_char): Use SIZE_MAX rather than
65096         (size_t) -1 when we are talking about "infinity".
65097
65098         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65099
65100 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65101
65102         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65103         hint that one should use `if (! x) abort ();' rather than `assert
65104         (x);', and anyway it's one less thing to worry about configuring.
65105         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65106         hash_rehash, hash_insert): Use abort rather than assert.
65107
65108 2002-11-22  Bruno Haible  <bruno@clisp.org>
65109
65110         * lib/safe-read.h: Assume C89. Add comments.
65111         (safe_read): Change return type to size_t.
65112         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65113         byte counts > SSIZE_MAX correctly.
65114         * lib/safe-write.h: New file.
65115         * lib/safe-write.c: New file.
65116         * lib/full-read.h: New file.
65117         * lib/full-read.c: New file.
65118         * lib/full-write.h: Assume C89. Add comments.
65119         * lib/full-write.c: Include safe-write.h.
65120         (full_write): Rewritten to use safe_write.
65121         Suggested by Jim Meyering and Paul Eggert.
65122
65123 2002-11-21  Jim Meyering  <jim@meyering.net>
65124
65125         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65126
65127         Merge in changes from the coreutils.
65128
65129         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65130         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65131         <stdint.h>.
65132         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65133         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65134         int.  Work more efficiently if X is the same width as uintmax_t.
65135         Do not compare X to -1, to avoid bogus compiler warning.
65136         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65137         Don't assume that f_frsize and f_bsize are the same type.
65138
65139         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65140         warning on FreeBSD.
65141
65142         * lib/makepath.c (make_path): Restore umask *before* creating the final
65143         component.
65144         (make_path): Minor reformatting.
65145
65146         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65147         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65148         HAVE_MALLOC/HAVE_REALLOC.
65149
65150         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65151         dummy ones.  At least on GNU/Linux systems, `auto' means something
65152         else.
65153         From Michael Stone.
65154
65155 2002-11-21  Bruno Haible  <bruno@clisp.org>
65156
65157         Remove case insensitive option matching.
65158         * lib/argmatch.h (argcasematch): Remove declaration.
65159         (ARGCASEMATCH): Remove macro.
65160         (__xargmatch_internal): Remove case_sensitive argument.
65161         (XARGMATCH): Update.
65162         (XARGCASEMATCH): Remove macro.
65163         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65164         case_sensitive argument.
65165         (argcasematch): Remove function.
65166         (__xargmatch_internal): Remove case_sensitive argument.
65167         (main): Use XARGMATCH instead of XARGCASEMATCH.
65168
65169         * lib/xmalloc.c: Change compile-time error message. Add comment about
65170         required autoconf version.
65171
65172 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65173
65174         Merge argmatch cleanups from Bison.  Assume C89.
65175
65176         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65177         Include stdlib.h, for EXIT_FAILURE.
65178         Always include <string.h>, since we assume C89.
65179         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65180         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65181         Include <stddef.h> instead, since it's all we need for size_t.
65182         (PARAMS): Remove.  All uses removed.
65183         (ARRAY_CARDINALITY): Do not bother to #undef.
65184         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65185         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65186         Remove unnecessary parentheses.
65187         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65188         Insert necessary parentheses.
65189         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65190         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65191
65192 2002-11-19  Bruno Haible  <bruno@clisp.org>
65193
65194         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65195         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65196
65197         * lib/mbswidth.h (PARAMS): Remove macro.
65198         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65199         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65200
65201         * lib/gcd.h (PARAMS): Remove macro.
65202         (gcd): Use ANSI C function declarations.
65203         * lib/gcd.c (gcd): Likewise.
65204
65205 2002-11-15  Bruno Haible  <bruno@clisp.org>
65206
65207         * lib/strcspn.c: Include <stddef.h>.
65208         (strcspn): Use ANSI C function declaration. Change return type to
65209         size_t. Use NULL.
65210         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65211         (strpbrk): Use NULL.
65212         * lib/strpbrk.h (PARAMS): Remove macro.
65213         (strpbrk): Use ANSI C function declaration.
65214         * lib/strstr.c: Don't include <sys/types.h>.
65215         * lib/strstr.h (PARAMS): Remove macro.
65216         (strstr): Use ANSI C function declarations.
65217
65218 2002-11-14  Karl Berry  <karl@gnu.org>
65219
65220         * config/mkinstalldirs: `do' on separate line, instead of
65221         `for var; do'.
65222
65223 2002-11-06  Bruno Haible  <bruno@clisp.org>
65224
65225         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65226         * lib/gcd.c (gcd): Likewise.
65227
65228 2002-11-05  Bruno Haible  <bruno@clisp.org>
65229
65230         * lib/gcd.h: New file, from gettext-0.11.5.
65231         * lib/gcd.c: New file, from gettext-0.11.5.
65232
65233 2002-11-05  Bruno Haible  <bruno@clisp.org>
65234
65235         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65236         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65237         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65238         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65239
65240         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65241         <libintl.h>.
65242         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65243         <libintl.h>.
65244
65245         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65246         * lib/human.c: Include gettext.h instead of <libintl.h>.
65247         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65248         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65249         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65250         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65251         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65252         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65253         (textdomain): Remove definition.
65254         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65255
65256         * lib/long-options.c: Remove include of <libintl.h> and definition of
65257         _.
65258         * lib/same.c: Remove include of <libintl.h> and definition of _.
65259
65260 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65261
65262         * lib/config.charset: A few additions for Solaris.
65263
65264 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65265
65266         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65267         * lib/localcharset.c (locale_charset): Declare as extern "C".
65268
65269 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65270
65271         * lib/config.charset: msdos in uk_UA uses CP1125.
65272
65273 2002-11-04  Bruno Haible  <bruno@clisp.org>
65274
65275         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65276         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65277         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65278         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65279         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65280
65281 2002-11-04  Bruno Haible  <bruno@clisp.org>
65282
65283         * lib/localcharset.c (locale_charset): Don't return an empty string.
65284
65285 2002-11-04  Bruno Haible  <bruno@clisp.org>
65286
65287         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65288         aliases.
65289
65290 2002-11-04  Bruno Haible  <bruno@clisp.org>
65291
65292         * lib/config.charset: Update for newest glibc. Add canonical names
65293         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65294
65295 2002-11-04  Bruno Haible  <bruno@clisp.org>
65296
65297         * lib/config.charset: Add support for NetBSD.
65298
65299 2002-11-04  Bruno Haible  <bruno@clisp.org>
65300
65301         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65302
65303 2002-11-01  Bruno Haible  <bruno@clisp.org>
65304
65305         * configure.in: Add AC_CONFIG_AUX_DIR call.
65306         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65307         test/Makefile.
65308         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65309
65310 2002-09-28  Karl Berry  <karl@gnu.org>
65311
65312         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65313         installed automake until the next release, since changes have been
65314         made.
65315
65316 2002-09-25  Karl Berry  <karl@gnu.org>
65317
65318         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65319         * lib/getopt*: copy from libc/posix.
65320         * lib/gettext.h: copy from gettext.
65321         * lib/.cppi-disable: add strdup.c, gettext.h.
65322
65323 2002-09-25  Karl Berry  <karl@gnu.org>
65324
65325         * config/srclist.txt: enable gettext.h check.
65326         * config/config.{guess,sub}: update from prep.
65327         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65328                 from automake 1.6.3.
65329         See srclist*.
65330
65331 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65332
65333         * regex.c (PATFETCH): Remove the translating fetch.
65334         (PATFETCH_RAW): Rename to PATFETCH.
65335         (set_image_of_range): New fun.
65336         (SET_RANGE_TABLE_WORK_AREA): Use it.
65337         (regex_compile): Don't translate the pattern chars so eagerly.
65338         Only do it when inserting an `exactn' bytecode or when handling
65339         a char-range.
65340         (mutually_exclusive_p): Avoid empty statement.
65341
65342 2002-07-06  Jim Meyering  <meyering@lucent.com>
65343
65344         * m4/README: Don't mention Makefile.am.in.
65345         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65346
65347 2002-07-01  Jim Meyering  <meyering@lucent.com>
65348
65349         * lib/c-stack.c: Include sys/time.h.
65350         From Volker Borchert.
65351
65352 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65353
65354         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65355
65356 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65357
65358         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65359         New macro.  Use it uniformly instead of
65360         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65361         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65362         reported by Vin Shelton.
65363
65364 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65365
65366         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65367         Do not assume SA_SIGINFO behavior.
65368         Bug reported by Jim Meyering on NetBSD 1.5.2.
65369
65370 2002-06-22  Jim Meyering  <meyering@lucent.com>
65371
65372         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65373         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65374
65375         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65376         now that configure.ac uses AC_GNU_SOURCE.
65377         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65378         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65379
65380         Update to latest tools.  Suggestions from Paul Eggert.
65381         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65382         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65383         * m4/fnmatch.m4: Likewise.
65384         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65385         to AC_HEADER_STDBOOL
65386
65387 2002-06-22  Jim Meyering  <meyering@lucent.com>
65388
65389         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65390         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65391
65392 2002-06-22  Jim Meyering  <meyering@lucent.com>
65393
65394         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65395
65396         * lib/exitfail.c, exitfail.h: Likewise.
65397         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65398
65399         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65400         of fnmatch.h.
65401         (EXTRA_DIST): Add fnmatch_loop.c.
65402         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65403
65404         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65405         * lib/fnmatch.c: Update from diffutils-2.8.2.
65406         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65407         * lib/fnmatch.h: Remove file.
65408
65409 2002-06-21  Jim Meyering  <meyering@lucent.com>
65410
65411         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65412         * m4/mbrtowc.m4: Likewise.
65413
65414         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65415         * m4/mbswidth.m4: Reflect name change:
65416         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65417         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65418
65419         * m4/lib-link.m4: Update from gettext-0.11.2.
65420         * m4/gettext.m4: Likewise.
65421
65422         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65423         From Alfred M. Szmidt.
65424
65425 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65426
65427         * lib/file-type.h: Report an error if neither S_ISREG nor
65428         S_IFREG is defined, instead of using a test specific to glibc
65429         2.2.  This should be safe, since POSIX requires S_ISREG and
65430         Unix Version 7 had S_IFREG.  We don't need to check for
65431         <sys/types.h> since we don't use any symbols that it defines.
65432
65433 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65434
65435         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65436         $@-t, so that each temporary file name is unique and valid in the first
65437         8 characters, for operation under DOS.
65438
65439 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65440
65441         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65442
65443 2002-06-15  Jim Meyering  <meyering@lucent.com>
65444
65445         Work even with DJGPP 2.03, which lacks support for symlinks.
65446         From Richard Dawe.
65447         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65448         is defined.
65449         * lib/lchown.c (S_ISLNK): Likewise.
65450
65451 2002-06-15  Jim Meyering  <meyering@lucent.com>
65452
65453         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65454         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65455         have been included before this file.
65456
65457 2002-06-14  Jim Meyering  <meyering@lucent.com>
65458
65459         * lib/file-type.h: Use the version from diffutils-2.8.2.
65460         * lib/file-type.c: Likewise.
65461
65462 2002-06-07  Jim Meyering  <meyering@lucent.com>
65463
65464         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65465         They're needed at least for NetBSD 1.5.2.
65466         ($statxfs_includes): Include those same headers.
65467         ($statxfs_includes): Include sys/vfs.h if available.
65468         ($statxfs_includes): Likewise for sys/statvfs.h.
65469         Check for the following members in both structs statfs and statvfs:
65470         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65471
65472 2002-06-01  Jim Meyering  <meyering@lucent.com>
65473
65474         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65475         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65476
65477 2002-05-28  Jim Meyering  <meyering@lucent.com>
65478
65479         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65480         Reported by Volker Borchert.
65481
65482 2002-05-27  Jim Meyering  <meyering@lucent.com>
65483
65484         Fix a problem seen only on nonconforming systems whereby ls.c's
65485         use of localtime, and then of gettimeofday would cause trouble:
65486         the localtime call used to initialize rpl_gettimeofday's save
65487         mechanism would clobber ls's current local time information so
65488         that in any long listing the first file would always be listed
65489         with date 1970-01-01.  Analysis by Volker Borchert.
65490
65491         * lib/gettimeofday.c (localtime): Undefine.
65492         (rpl_localtime): New function.
65493
65494 2002-05-27  Jim Meyering  <meyering@lucent.com>
65495
65496         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65497         localtime.
65498
65499         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65500         use the replacement function; it wouldn't resolve at link time.
65501         Reported by Volker Borchert.
65502
65503 2002-05-22  Jim Meyering  <meyering@lucent.com>
65504
65505         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65506         file-type.h.
65507         * lib/file-type.h: New file.
65508         * lib/file-type.c (file_type): New file/function.  Extracted from
65509         diffutils.
65510
65511 2002-04-30  Jim Meyering  <meyering@lucent.com>
65512
65513         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65514
65515 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65516
65517         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65518
65519 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65520
65521         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65522         Do not check for alloca.h (no longer used) or stdbool.h (was never
65523         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65524
65525 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65526
65527         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65528
65529 2002-04-29  Jim Meyering  <meyering@lucent.com>
65530
65531         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65532         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65533         Use AC_FUNC_STRNLEN here instead.
65534
65535         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65536         With autoconf-2.53a, it's part of AC_PROG_CC.
65537
65538 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65539
65540         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65541         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65542
65543 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65544
65545         * lib/sig2str.h, lib/sig2str.c: New files.
65546         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65547
65548 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65549
65550         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65551         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65552         of 127, since 64 is the largest conceivable number for ancient
65553         nonstandard hosts.
65554         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65555
65556 2002-04-28  Jim Meyering  <meyering@lucent.com>
65557
65558         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65559
65560 2002-04-24  Jim Meyering  <meyering@lucent.com>
65561
65562         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65563         (jm_PREREQ): Use it.
65564
65565         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65566         mach/mach.h fcntl.h.
65567         Check for this function: setlocale.
65568
65569 2002-04-24  Jim Meyering  <meyering@lucent.com>
65570
65571         * lib/gettext.h: New file, from Gettext.
65572         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65573         (libfetish_a_SOURCES): Add gettext.h.
65574
65575 2002-04-16  Jim Meyering  <meyering@lucent.com>
65576
65577         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65578         ut_pid, ut_id, ut_exit.
65579
65580 2002-04-16  Jim Meyering  <meyering@lucent.com>
65581
65582         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65583         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65584         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65585
65586 2002-04-12  Jim Meyering  <meyering@lucent.com>
65587
65588         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65589         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65590         existence of the getmntinfo function.  Needed for Darwin 5.3.
65591
65592         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65593         This is necessary at least on Darwin 5.3.
65594
65595         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65596         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65597         strnlen.o in the library, and that makes some versions of ranlib
65598         object.
65599
65600 2002-04-12  Jim Meyering  <meyering@lucent.com>
65601
65602         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65603
65604 2002-04-09  Jim Meyering  <meyering@lucent.com>
65605
65606         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65607         to be more precise.  Rather than saying we're checking whether the
65608         function `works', say what we're testing.
65609         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65610         Reported by Bruno Haible.
65611
65612 2002-03-10  Jim Meyering  <meyering@lucent.com>
65613
65614         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65615         Suggestion from Santiago Vila.
65616
65617 2002-03-08  Jim Meyering  <meyering@lucent.com>
65618
65619         * lib/rename.c: Mention that this wrapper is needed also on
65620         mips-dec-ultrix4.4 systems.
65621
65622 2002-03-02  Jim Meyering  <meyering@lucent.com>
65623
65624         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65625         not HAVE_CLOCK_SETTIME.
65626
65627 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65628
65629         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
65630         Check for clock_settime.
65631
65632 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65633
65634         * lib/nanosleep.h: Rename to....
65635         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
65636
65637         * lib/gettime.c: New file.
65638         * lib/settime.c: New file.
65639         * lib/stime.c: Remove.
65640
65641         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
65642         timespec.h.  Remove nanosleep.h.
65643
65644 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65645
65646         * m4/acl.m4: New file.
65647         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
65648         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
65649
65650 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65651
65652         * lib/acl.c, lib/acl.h: New files.
65653         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
65654
65655 2002-02-24  Jim Meyering  <meyering@lucent.com>
65656
65657         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
65658         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
65659         cause trouble.  Reported by Nelson Beebe.
65660
65661 2002-02-23  Paul Eggert  <eggert@twinsun.com>
65662
65663         * lib/path-concat.c (xpath_concat): Reorder code to pacify
65664         compilers that don't know that xalloc_die never returns.
65665
65666 2002-02-20  Jim Meyering  <meyering@lucent.com>
65667
65668         * lib/getdate.c: Regenerate using bison-1.33.
65669
65670 2002-02-17  Jim Meyering  <meyering@lucent.com>
65671
65672         * config/config.guess (main): Don't use `head -1'; it's no longer
65673         portable. Use `sed 1q' instead.
65674
65675 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
65676
65677         * m4/codeset.m4: Upgrade to gettext-0.11.
65678         * m4/gettext.m4: Upgrade to gettext-0.11.
65679         * m4/glibc21.m4: Upgrade to gettext-0.11.
65680         * m4/iconv.m4: Upgrade to gettext-0.11.
65681         * m4/isc-posix.m4: Upgrade to gettext-0.11.
65682         * m4/lcmessage.m4: Upgrade to gettext-0.11.
65683         * m4/lib-ld.m4: New file, from gettext-0.11.
65684         * m4/lib-link.m4: New file, from gettext-0.11.
65685         * m4/lib-prefix.m4: New file, from gettext-0.11.
65686         * m4/progtest.m4: Upgrade to gettext-0.11.
65687
65688 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65689
65690         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
65691         (jm_PREREQ): Use it.
65692
65693 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65694
65695         * lib/posixver.c, lib/posixver.h: New files.
65696         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
65697
65698 2002-02-02  Paul Eggert  <eggert@twinsun.com>
65699             Bruno Haible  <bruno@clisp.org>
65700
65701         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
65702         (fwrite_success_callback): New declaration.
65703         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
65704         print_unicode_char. Call failure callback instead of error.
65705         (fwrite_success_callback): New function.
65706         (exit_failure_callback): New function.
65707         (fallback_failure_callback): New function.
65708         (print_unicode_char): Call unicode_to_mb.
65709
65710 2002-01-26  Jim Meyering  <meyering@lucent.com>
65711
65712         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
65713         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
65714
65715 2002-01-26  Jim Meyering  <meyering@lucent.com>
65716
65717         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
65718
65719 2002-01-22  Paul Eggert  <eggert@twinsun.com>
65720
65721         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
65722
65723 2002-01-22  Jim Meyering  <meyering@lucent.com>
65724
65725         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
65726         Otherwise, some versions of automake would omit the rule that makes
65727         Makefile from Makefile.in.
65728
65729 2002-01-21  Paul Eggert  <eggert@twinsun.com>
65730
65731         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
65732         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
65733         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
65734         (memcoll): Set errno to zero if there is no error.
65735
65736         * lib/quotearg.c (quotearg_buffer_restyled):
65737         Fix bug with quoting buffers containing NUL when backslashing escapes.
65738         This bug was exposed by the other changes in this patch.
65739         (quotearg_n_options): New arg ARGSIZE.
65740         All callers changed.
65741         (quoting_options_from_style): New function.
65742         (quotearg_n_style): Use it.
65743         (quotearg_n_style_mem): New function.
65744
65745         * lib/quotearg.h (quotearg_n_style_mem): New function.
65746
65747 2002-01-19  Jim Meyering  <meyering@lucent.com>
65748
65749         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
65750         Remove useless quotes: DF_PROG="df".
65751         * m4/strnlen.m4: New file.
65752
65753 2002-01-16  Paul Eggert  <eggert@twinsun.com>
65754
65755         * lib/backupfile.c (ISDIGIT): Comment fix.
65756         * lib/getdate.y (ISDIGIT): Likewise.
65757         * lib/posixtm.c (ISDIGIT, year): Likewise.
65758         * lib/strverscmp.c (ISDIGIT): Likewise.
65759         * lib/userspec.c (ISDIGIT): Likewise.
65760
65761 2002-01-16  Jim Meyering  <meyering@lucent.com>
65762
65763         * lib/getdate.y: Add three semicolons, each just before a closing
65764         brace. Bison (as of version 1.31) no longer papers over that mistake.
65765
65766 2002-01-05  Jim Meyering  <meyering@lucent.com>
65767
65768         * lib/version-etc.c (version_etc_copyright): Update copyright year.
65769
65770 2001-12-19  Paul Eggert  <eggert@twinsun.com>
65771
65772         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
65773         not silently exit merely because the output buffer happens to
65774         have nothing pending.
65775
65776 2001-12-18  Paul Eggert  <eggert@twinsun.com>
65777
65778         See the big note in ../ChangeLog.
65779         * lib/human.c (suffixes): Prefer K to k for 1024.
65780         (generate_suffix_backwards): New function.
65781         (human_readable_inexact): Use it.
65782         * lib/xstrtol.c (__xstrtol): If there is no number but there
65783         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
65784         Accept 'K' as well as 'k'.
65785
65786 2001-12-15  Jim Meyering  <meyering@lucent.com>
65787
65788         * lib/regex.h (__restrict_arr): Update from libc.
65789
65790         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
65791         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
65792         (STREQ): Define.
65793
65794 2001-12-14  Jim Meyering  <meyering@lucent.com>
65795
65796         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
65797         Suggestion from Bruno Haible.
65798
65799 2001-12-10  Jim Meyering  <meyering@lucent.com>
65800
65801         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
65802         xrealloc, Instead, include "xalloc.h".
65803         (initbuffer): Don't cast xmalloc return value to char*.
65804         (readline): Reword comment.
65805         Don't cast xrealloc return value to char*
65806         Return NULL, not 0.
65807
65808 2001-12-09  Jim Meyering  <meyering@lucent.com>
65809
65810         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
65811         about `signed and unsigned type in conditional expression'.
65812         * lib/posixtm.c (posix_time_parse): Likewise.
65813
65814         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
65815
65816         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
65817         to avoid a pedantic warning.
65818
65819         * lib/getstr.c: Don't include assert.h.
65820         (getstr): Remove warning-evoking assertions.
65821         Return -1 if offset parameter is out of bounds.
65822         Change the type of a local from int to size_t.
65823
65824         * lib/strftime.c (my_strftime_localtime_r): Include this function
65825         definition in the `#if ! HAVE_TM_GMTOFF' block.
65826
65827         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
65828         Include xalloc.h instead.
65829
65830 2001-12-02  Jim Meyering  <meyering@lucent.com>
65831
65832         * lib/tempname.c: Don't declare getenv, thus reverting the change of
65833         2001-11-18.  It's no longer necessary, now that stdlib.h is always
65834         included.
65835
65836         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
65837         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
65838
65839 2001-11-30  Akim Demaille  <akim@epita.fr>
65840
65841         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
65842         before being defined.
65843
65844 2001-11-27  Paul Eggert  <eggert@twinsun.com>
65845
65846         * lib/quotearg.h (quotearg_n, quotearg_n_style):
65847         First arg is int, not unsigned.
65848         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
65849         (SIZE_MAX, UINT_MAX): New macros.
65850         (quotearg_n_options): Abort if N is negative.
65851         Avoid overflow check on hosts where size_t is 64 bits and int
65852         is 32 bits, as overflow is impossible there.
65853         Fix off-by-one typo that caused unnecessary reallocation.
65854
65855 2001-11-27  Jim Meyering  <meyering@lucent.com>
65856
65857         * lib/tempname.c: Merge with version from libc.
65858         * lib/regex.c: Likewise.
65859
65860         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
65861         systems for which STDC_HEADERS is 0, it was not included, resulting in
65862         a warning about an integer-to-pointer conversion problem with getenv.
65863         Reported by Volker Borchert.
65864
65865 2001-11-26  Jim Meyering  <meyering@lucent.com>
65866
65867         * lib/gtod.h: Remove file.
65868         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
65869         * lib/gettimeofday.c: Don't include gtod.h.
65870         (GTOD_init): Remove function.
65871         (rpl_gettimeofday): Do its job here instead, rather than aborting.
65872         Suggestion from Volker Borchert.
65873
65874 2001-11-23  Jim Meyering  <meyering@lucent.com>
65875
65876         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
65877         it.
65878         * lib/hash.c (struct hash_table): Define it here instead.
65879
65880 2001-11-22  Jim Meyering  <meyering@lucent.com>
65881
65882         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
65883
65884 2001-11-20  Jim Meyering  <meyering@lucent.com>
65885
65886         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
65887         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
65888
65889 2001-11-19  Jim Meyering  <meyering@lucent.com>
65890
65891         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
65892         directory.  Use "conftestXXXXXX" as the template.
65893         Suggestion from Paul Eggert.
65894
65895         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
65896         immediately, so the test doesn't mistakenly hit the max-open-files
65897         limit.
65898
65899 2001-11-18  Paul Eggert  <eggert@twinsun.com>
65900
65901         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
65902         (TEMPORARIES): New macro.
65903         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
65904         removes an artificial limitation (e.g. HP-UX 10.20, where
65905         TMP_MAX is 17576).
65906
65907 2001-11-18  Jim Meyering  <meyering@lucent.com>
65908
65909         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
65910
65911 2001-11-18  Jim Meyering  <meyering@lucent.com>
65912
65913         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
65914         on SunOS 4.
65915
65916         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
65917         files will be created before anything else.
65918
65919 2001-11-17  Paul Eggert  <eggert@twinsun.com>
65920
65921         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
65922         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
65923
65924 2001-11-17  Jim Meyering  <meyering@lucent.com>
65925
65926         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
65927         Prompted by a report from Bob Proulx.
65928
65929         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
65930         Instead, require UTILS_FUNC_MKSTEMP.
65931
65932 2001-11-17  Jim Meyering  <meyering@lucent.com>
65933
65934         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
65935         Now, that's done as part of AC_FUNC_STRTOD.
65936
65937 2001-11-17  Jim Meyering  <meyering@lucent.com>
65938
65939         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
65940         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
65941         rather than group writable.  Patch by Juan F. Codagnone.
65942
65943         * lib/readtokens.c: Remove explicit declarations of xmalloc and
65944         xrealloc, Instead, include "xalloc.h".
65945
65946         * lib/mountlist.c: Include unlocked-io.h after all system headers.
65947         Remove explicit declarations of xmalloc, xrealloc,
65948         and xstrdup.  Instead, include "xalloc.h".
65949
65950         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
65951         unlocked-io.h.
65952         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
65953         Likewise.
65954         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
65955
65956         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
65957         Reported by Padraig Brady.
65958
65959         * lib/mkstemp.c: #undef mkstemp.
65960         Include config.h.
65961         (rpl_mkstemp): Rename from mkstemp.
65962         Protoize.
65963
65964 2001-11-16  Jim Meyering  <meyering@lucent.com>
65965
65966         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
65967         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
65968         determine the amount of total physical memory, use pstat_getstatic.
65969         HPUX-11 doesn't define _SC_PHYS_PAGES.
65970         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
65971         If sysconf couldn't be used to determine the amount of available
65972         physical memory, use both pstat_getstatic and pstat_getdynamic.
65973         Based on a patch from Bob Proulx.
65974
65975 2001-11-10  Jim Meyering  <meyering@lucent.com>
65976
65977         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
65978         (jm_PREREQ): Use it.
65979
65980 2001-11-09  Jim Meyering  <meyering@lucent.com>
65981
65982         * m4/jm-macros.m4: Require autoconf-2.52f.
65983         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
65984         Use these AC_-prefixed names, not the AM_-prefixed ones.
65985
65986         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
65987
65988 2001-11-05  Jim Meyering  <meyering@lucent.com>
65989
65990         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
65991
65992 2001-11-04  Jim Meyering  <meyering@lucent.com>
65993
65994         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
65995         $DEFS.
65996
65997 2001-11-03  Jim Meyering  <meyering@lucent.com>
65998
65999         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66000         of AC_DEFUN.
66001
66002         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66003         know the name of the variable in the macro definition.
66004
66005 2001-11-03  Jim Meyering  <meyering@lucent.com>
66006
66007         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66008         in argmatch_to_argument call.
66009
66010         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66011         argument.
66012
66013         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66014         e.g., a fault due to an attempt to free a NULL pointer.
66015
66016 2001-11-01  Jim Meyering  <meyering@lucent.com>
66017
66018         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66019         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66020
66021 2001-11-01  Jim Meyering  <meyering@lucent.com>
66022
66023         * lib/dirfd.c, lib/dirfd.h: New files.
66024         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66025
66026         * lib/hash.c (hash_print) [TESTING]: Clean up.
66027
66028 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66029
66030         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66031         to avoid a warning if -Wall.
66032
66033 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66034
66035         * README: New file
66036         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66037         (per RMS's instructions, this is now the canonical source)
66038         * lgpl/, gpl/: New directories.
66039
66040 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66041
66042         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66043
66044 2001-10-21  Jim Meyering  <meyering@lucent.com>
66045
66046         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66047         this code would end up calling gettext even in packages built
66048         with --disable-nls.
66049         * lib/getopt.c (_): Likewise.
66050         * lib/regex.c (_): Likewise.
66051
66052 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66053
66054         * m4/error.m4 (jm_PREREQ_ERROR):
66055         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66056         AC_FUNC_STRERROR_R does that.
66057         Check for strerror declaration.
66058
66059         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66060         are supposed to have them these days.
66061         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66062         Merge changes from latest Autoconf CVS.
66063         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66064         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66065         POSIX decided to standardize on the int flavor of strerror_r.
66066
66067 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66068
66069         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66070         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66071         Use strerror_r that is only a macro, even if it is not a function.
66072         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66073         (private_strerror): Use prototypes, not old-style function definition.
66074         (print_errno_message): New function.
66075         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66076         char*-flavored one.
66077         (error_tail, error, error_at_line): Use it.
66078
66079 2001-10-11  Jim Meyering  <meyering@lucent.com>
66080
66081         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66082         and quote_n (1, ... to avoid clobbering a buffer.
66083
66084 2001-10-05  Jim Meyering  <meyering@lucent.com>
66085
66086         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66087         hash-pjw.h.
66088         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66089         * lib/hash-pjw.h: New file.
66090
66091 2001-09-30  Jim Meyering  <meyering@lucent.com>
66092
66093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66094         `struct fsstat' has the `f_fstypename' member.
66095         Use that to define FS_TYPE, which is now used to make
66096         the getfsstat link test tighter.
66097
66098 2001-09-30  Jim Meyering  <meyering@lucent.com>
66099
66100         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66101         Include <sys/ucred.h>, for Apple Darwin.
66102         Include sys/mount.h and sys/fs_types.h only if available.
66103         (FS_TYPE): Define.
66104         (read_filesystem_list): Use FS_TYPE.
66105
66106 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66107
66108         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66109         a boolean context.
66110
66111 2001-09-29  Jim Meyering  <meyering@lucent.com>
66112
66113         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66114         [one-argument getmntent function]): Include stdio.h before mntent.h.
66115         SunOS 4.1.x needs it for the declaration of `FILE'.
66116         Patch by Volker Borchert.
66117
66118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66119         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66120         sys/fs_types.h, and make the link-test for getfsstat guard #include
66121         directives with appropriate #if HAVE_*_H tests so that we can
66122         detect getfsstat on Apple Darwin1.3.7 systems.
66123         Reported by Nelson Beebe.
66124         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66125
66126 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66127
66128         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66129         #defines strtoimax.  Also treat the other strto* functions
66130         like strtoimax.
66131
66132         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66133         Check for strtoul and strtoumax,
66134         as those declarations are made even in the signed case.
66135         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66136         Likewise, for strtol and strtoimax.
66137
66138 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66139
66140         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66141         #defines strtoimax.  Also treat the other strto* functions
66142         like strtoimax.
66143
66144         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66145         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66146         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66147
66148 2001-09-26  Jim Meyering  <meyering@lucent.com>
66149
66150         Most macros in unlocked-io.h had the wrong number of arguments.
66151         * lib/gen-uio: New script.
66152         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66153         * lib/unlocked-io.hin: Remove file.
66154         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66155         rather than trying to embed it here.
66156         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66157         Reported by Padraig Brady.
66158
66159 2001-09-25  Volker Borchert  <bt@teknon.de>
66160
66161         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66162         `result'.
66163
66164 2001-09-24  Jim Meyering  <meyering@lucent.com>
66165
66166         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66167
66168 2001-09-23  Jim Meyering  <meyering@lucent.com>
66169
66170         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66171         instead of the mere test for existence of mntent.h.  The latter
66172         would get a false-positive on AIX 3.4 systems.
66173         In the outer getmntent if-block, don't die if neither of the getmntent
66174         tests succeeds.  Instead, just fall through and continue with the
66175         remaining tests.
66176
66177 2001-09-23  Jim Meyering  <meyering@lucent.com>
66178
66179         * lib/mountlist.c: Remove useless parentheses in #if directives.
66180         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66181         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66182
66183 2001-09-22  Jim Meyering  <meyering@lucent.com>
66184
66185         * m4/gettext.m4: New file.  From gettext.
66186         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66187         * m4/progtest.m4: Likewise
66188         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66189         * m4/glibc21.m4: Likewise.
66190
66191         * m4/libintl.m4: Remove.  No longer used.
66192
66193 2001-09-22  Jim Meyering  <meyering@lucent.com>
66194
66195         * lib/localcharset.c: Update from latest gettext.
66196         * lib/config.charset: Likewise.
66197
66198 2001-09-20  Jim Meyering  <meyering@lucent.com>
66199
66200         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66201         strtoimax.
66202         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66203         strtoumax.
66204
66205 2001-09-20  Jim Meyering  <meyering@lucent.com>
66206
66207         * lib/xstrtol.c (strtoimax): Guard declaration with
66208         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66209         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66210         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66211         (strtoumax): Likewise, for completeness (it wasn't necessary).
66212
66213 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66214
66215         * lib/strtoimax.c (HAVE_LONG_LONG):
66216         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66217         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66218         to work around bug in IBM C compiler.
66219
66220 2001-09-17  Jim Meyering  <meyering@lucent.com>
66221
66222         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66223         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66224         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66225         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66226         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66227         whenever the right hand side need not be expanded by the shell.
66228
66229 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66230
66231         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66232         library.  It's not correct, as some older glibcs are buggy.
66233         fnmatch wasn't fixed until glibc 2.2.
66234
66235         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66236         special shell magic here.
66237
66238 2001-09-16  Jim Meyering  <meyering@lucent.com>
66239
66240         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66241         * m4/jm-macros.m4: Require it.
66242
66243 2001-09-16  Jim Meyering  <meyering@lucent.com>
66244
66245         * lib/mkdir.c: New file.
66246
66247 2001-09-15  Jim Meyering  <meyering@lucent.com>
66248
66249         * m4/jm-macros.m4: Check for help2man.
66250
66251 2001-09-11  Jim Meyering  <meyering@lucent.com>
66252
66253         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66254         The body, by Paul Eggert, was moved here from configure.in.
66255         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66256
66257 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66258
66259         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66260         (jm_PREREQ): Use it.
66261
66262 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66263
66264         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66265         Use ssize_t, not int, to store result of readlink.
66266         Check for ssize_t overflow as well as size_t overflow,
66267         as POSIX says the result of readlink is implementation-defined
66268         when ssize_t overflows.
66269         Remove unnecessary cast to char*.
66270         Use free+malloc instead of realloc, as the storage doesn't need
66271         to be preserved and it's clearer and can be more efficient that way.
66272         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66273         * lib/xreadlink.h (xreadlink): Update prototype.
66274
66275 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66276
66277         * lib/xgetcwd.c: Revert some of the previous change; intead,
66278         fix the HAVE_GETCWD_NULL code to behave more like the
66279         !HAVE_GETCWD_NULL code used to.
66280
66281         Include "xalloc.h".
66282         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66283         invoke xalloc_die.
66284
66285 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66286
66287         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66288         sys/param.h, as pathmax.h includes them.
66289
66290 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66291
66292         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66293         (jm_PREREQ_XGETCWD): New macro.
66294
66295         * m4/getcwd.m4: New file.
66296
66297 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66298
66299         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66300         like the HAVE_GETCWD_NULL code.
66301         Include pathmax.h if not HAVE_GETCWD.
66302         Do not include xalloc.h.
66303         (INITIAL_BUFFER_SIZE): New symbol.
66304         Do not use xmalloc / xrealloc, since the caller is responsible for
66305         handling errors.  Preserve errno around `free' during failure.
66306         Do not overrun buffer when using getwd.
66307
66308 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66309
66310         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66311         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66312         getcwd (NULL, 0).
66313
66314 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66315
66316         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66317         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66318         spotted by Jim Meyering.
66319
66320 2001-09-03  Jim Meyering  <meyering@lucent.com>
66321
66322         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66323         failure.
66324
66325 2001-09-02  Jim Meyering  <meyering@lucent.com>
66326
66327         * lib/error.c: Update from GNU libc.
66328
66329 2001-09-01  Jim Meyering  <meyering@lucent.com>
66330
66331         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66332         Used by df.
66333
66334 2001-09-01  Jim Meyering  <meyering@lucent.com>
66335
66336         * lib/xreadlink.c: New file.
66337         * lib/xreadlink.h: New file.
66338         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66339         xreadlink.h.
66340
66341         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66342         doesn't conflict with sparc Solaris 7's definition in
66343         /usr/include/sys/int_types.h.
66344
66345         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66346         files.
66347         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66348         and strncasecmp as r-values.  Unixware didn't have declarations.
66349
66350 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66351
66352         * lib/xstrtol.h: Add copyright notice.
66353         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66354         LONGINT_INVALID_SUFFIX_CHAR.
66355
66356 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66357
66358         * lib/xstrtol.c (strtoimax): New decl.
66359
66360 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66361
66362         * lib/xgetcwd.c: Don't include pathmax.h.
66363         Include stdlib.h and unistd.h if available.
66364         Include xalloc.h.
66365         (xmalloc, xstrdup, free): Remove decls.
66366         (xgetcwd): Don't assume sizes fit in unsigned.
66367         Check for overflow when computing sizes.
66368         Simplify reallocation code.
66369
66370 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66371
66372         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66373         a directory's st_size can have an arbitrary value, so the old
66374         usage could waste an arbitrary amount of memory.  All uses
66375         changed.
66376         * lib/savedir.h: Update prototype.
66377
66378 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66379
66380         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66381
66382         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66383         old strtoimax.c.
66384
66385         Also, make the following further changes to make this file's
66386         configuration more similar to that of strtol.c:
66387         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66388         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66389         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66390         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66391         changed to signed values.
66392
66393         And make the following changes as well:
66394         Fix copyright notice, as 1999 was missing.
66395         (verify): New macro.
66396         (strtoimax): Check sizes at compile-time, not run-time.
66397         Prefer strtol to strtoll if both work.
66398         (main): Remove; it was not that useful and was a pain to maintain.
66399
66400         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66401
66402 2001-08-31  Jim Meyering  <meyering@lucent.com>
66403
66404         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66405         Use an initial, malloc'd, buffer of length 128 rather than
66406         a statically allocated one of length 1024.
66407
66408 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66409
66410         Simplify code, partly by assuming autoconf 2.52 semantics.
66411
66412         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66413
66414         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66415         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66416         All uses removed.
66417         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66418         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66419         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66420         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66421         jm_AC_HEADER_INTTYPES_H.
66422         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66423
66424         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66425
66426         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66427         Quote first arg of AC_DEFUN.
66428         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66429         since they are needed to parse the include file even if we need
66430         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66431         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66432         but with opposite signedness.
66433
66434 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66435
66436         Merge 'exclude' changes from tar 1.13.22.
66437         This fixes one or two unlikely storage allocation overflow bugs,
66438         but doesn't change user-visible behavior otherwise.
66439
66440 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66441
66442         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66443         (jm_PREREQ_EXCLUDE): New macro.
66444
66445 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66446
66447         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66448         tm to be declared.
66449
66450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66451
66452         * lib/hash.c: Remove '2001' from copyright notice.
66453
66454 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66455
66456         * lib/full-write.h: New file.
66457         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66458         * lib/full-write.c: Correct credits, as cccp.c no longer
66459         exists and anyway it was so heavily changed from the old cccp
66460         code as to be unrecognizable.  Include full-write.h.
66461         (full_write) Return size_t, with short writes meaning failure.
66462         All callers changed.  This fixes a bug with large buffers
66463         on 64-bit hosts.
66464         * lib/utime.c: Include full-write.h.
66465
66466 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66467
66468         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66469         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66470         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66471         Include if available.
66472         (<xalloc.h>): Include
66473         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66474         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66475         collide with FNM macros.
66476         (struct patopts): New struct.
66477         (struct exclude): Use it, as exclude patterns now come with options.
66478         (new_exclude): Support above changes.
66479         (new_exclude, add_exclude_file):
66480         Initial size must now be a power of two to simplify overflow checking.
66481         (free_exclude, fnmatch_no_wildcards): New function.
66482         (excluded_filename): No longer requires options arg, as the options
66483         are determined by add_exclude.  Now returns bool, not int.
66484         (excluded_filename, add_exclude):
66485         Add support for the fancy new exclusion options.
66486         (add_exclude, add_exclude_file): Now takes int options arg.
66487         Check for arithmetic overflow when computing sizes.
66488         (add_exclude_file): xrealloc might modify errno, so don't
66489         realloc until after errno might be used.
66490
66491         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66492         New macros.
66493         (free_exclude): New decl.
66494         (add_exclude, add_exclude_file): Now takes int options arg.
66495         (excluded_filename): No longer requires options arg, as the options
66496         are determined by add_exclude.  Now returns bool, not int.
66497
66498 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66499
66500         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66501
66502 2001-08-27  Jim Meyering  <meyering@lucent.com>
66503
66504         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66505
66506         * lib/version-etc.c (N_): Remove definition.
66507         Revert most of last change.
66508         Instead, simply don't mark the `Copyright...' string for translation.
66509         Based on advice from Paul Eggert.
66510
66511         * lib/strtoxmax.c: Tweak comment.
66512
66513 2001-08-26  Jim Meyering  <meyering@lucent.com>
66514
66515         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66516
66517         * m4/xstrtoimax.m4: New file.
66518         * m4/xstrtoumax.m4: Add comments explaining why we
66519         AC_REPLACE_FUNCS(strtol).
66520
66521 2001-08-26  Jim Meyering  <meyering@lucent.com>
66522
66523         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66524         of copyright with `%s' so translators don't get an untranslated
66525         message in 2002.
66526         (COPYRIGHT_YEAR): Define.
66527         (version_etc): Use fprintf rather than fputs.
66528         Suggestion from Ulrich Drepper.
66529
66530         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66531
66532         * lib/strtoll.c: New file, from GNU libc.
66533         * lib/xstrtoimax.c: New file.
66534
66535         * lib/xstrtol.h: Add xstrtoimax.
66536         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66537         * lib/strtoimax.c: New file.  Likewise, but first define
66538         STRTOUXMAX_SIGNED.
66539
66540         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66541         ...
66542         * lib/strtoxmax.c: ... then renamed to this.
66543
66544 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66545
66546         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66547         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66548         (jm_AC_TYPE_INTMAX_T): New macro.
66549         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66550
66551         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66552
66553         * m4/longlong.m4: Renamed from ulonglong.m4.
66554         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66555         * m4/uintmax_t.m4: Removed.
66556
66557 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66558
66559         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66560         Port to Solaris 8, where 'sed' requires a space after the 'r'
66561         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66562         Redirect output to $tmp just once.
66563
66564 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66565
66566         * lib/addext.c (<errno.h>): Include.
66567         (errno): Declare if not defined.
66568         (addext): Work correctly when pathconf returns -1 and leaves
66569         errno alone because there is no limit.  Also, work even if
66570         pathconf returns a value greater than SIZE_MAX.
66571
66572 2001-08-12  Jim Meyering  <meyering@lucent.com>
66573
66574         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66575         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66576         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66577         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66578         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66579         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66580         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66581         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66582         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66583         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66584         utime.m4, utimes.m4, xstrtoumax.m4:
66585         Quote the first argument in each use of AC_DEFUN.
66586
66587 2001-08-12  Jim Meyering  <meyering@lucent.com>
66588
66589         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66590         Simply `return getcwd (NULL, 0);'.
66591         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66592         Use 1300 as initial value for length, not PATH_MAX.
66593
66594         * lib/pathmax.h: Clean up cpp syntax.
66595
66596 2001-08-12  Jim Meyering  <meyering@lucent.com>
66597
66598         * lib/gettimeofday.c: New file.
66599         * lib/gtod.h: New file.
66600         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66601
66602 2001-08-05  Jim Meyering  <meyering@lucent.com>
66603
66604         * m4/jm-macros.m4: Require autoconf-2.52.
66605
66606 2001-08-04  Jim Meyering  <meyering@lucent.com>
66607
66608         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66609         stmt, to get in sync with glibc.
66610
66611 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66612
66613         The following changes are from gettext 0.10.39 as maintained by
66614         Bruno Haible.
66615
66616         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66617         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66618         with inverted sense.  All uses changed.
66619
66620         * lib/mbswidth.c: Don't include <limits.h>.
66621         Include <stdlib.h> and <string.h> unconditionally.
66622         (iswcntrl, mbsinit, ISCNTRL): New macros.
66623         (mbsnwidth): Use K&R style function declarations.
66624         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66625         can optimize it when MB_CUR_MAX == 1.
66626         The width of control characters is zero, not 1.
66627
66628 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66629
66630         The following changes are from gettext 0.10.39 as maintained by
66631         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
66632
66633         * m4/codeset.m4: Upgrade to serial AM1.
66634         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
66635         all uses changed.  Quote first arg of AC_DEFUN.
66636         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
66637
66638         * m4/iconv.m4: Upgrade to serial AM2.
66639         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
66640         Add --with-libconv-prefix.
66641         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
66642         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
66643         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
66644         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
66645         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
66646
66647         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
66648         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
66649         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
66650         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
66651         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
66652         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
66653         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66654         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
66655         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66656
66657         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
66658         string.h any more.
66659
66660         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
66661         not the default value.
66662
66663         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
66664         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
66665         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
66666         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
66667         Also check for iswcntrl, used for wcwidth fallback.
66668         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
66669         to Autoconf 2.13.
66670
66671 2001-08-03  Jim Meyering  <meyering@lucent.com>
66672
66673         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
66674         as it was in the original.  Reported by Paul Eggert.
66675
66676 2001-07-16  Jim Meyering  <meyering@lucent.com>
66677
66678         * m4/gettimeofday.m4: New file.
66679         Prompted by a report from Bernhard Baehr.
66680
66681 2001-07-15  Jim Meyering  <meyering@lucent.com>
66682
66683         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
66684         stuff. Now it's in ../Makefile.cfg.
66685
66686 2001-07-15  Jim Meyering  <meyering@lucent.com>
66687
66688         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
66689         (BUILT_SOURCES): Add unlocked-io.h.
66690         (io_functions): Define.
66691         (unlocked-io.h): New rule.
66692         (DISTCLEANFILES): Add unlocked-io.h.
66693         (all-local): Depend on unlocked-io.h, to ensure it is created.
66694
66695         * lib/unlocked-io.hin: New file
66696
66697         * lib/regex.c: Update from glibc.
66698
66699 2001-07-05  Jim Meyering  <meyering@lucent.com>
66700
66701         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
66702         recommendation.
66703         (libfetish_a_SOURCES): Put all .h files here instead.
66704         Remove a thus-exposed (better checks in automake) duplicate and
66705         two unnecessary .h files.
66706
66707 2001-07-04  Jim Meyering  <meyering@lucent.com>
66708
66709         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
66710         that generates jm-glibc-io.m4 so that it doesn't trigger any make
66711         distcheck failure.
66712
66713 2001-07-02  Jim Meyering  <meyering@lucent.com>
66714
66715         The following changes were prompted by suggestions from Bruno Haible.
66716
66717         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
66718         is now generated.
66719         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
66720         definition of EXTRA_DIST.
66721         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
66722         ensure that the generated file is created/updated whenever the list
66723         of $(unlocked_functions) is changed.
66724         (jm-glibc-io.m4): New rule.
66725         (unlocked-io.h): New rule -- currently unused.
66726
66727 2001-06-24  Jim Meyering  <meyering@lucent.com>
66728
66729         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
66730         unmatched right bracket, rather than kludging it with an extra,
66731         falsely-matching quote in a comment.  Patch by Akim Demaille.
66732
66733 2001-06-11  Jim Meyering  <meyering@lucent.com>
66734
66735         * lib/regex.c: Update from GNU libc.
66736
66737 2001-05-27  Jim Meyering  <meyering@lucent.com>
66738
66739         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
66740         Check for ut_type in struct utmp.
66741
66742 2001-05-27  Jim Meyering  <meyering@lucent.com>
66743
66744         * lib/readutmp.h (UT_TYPE): Define.
66745
66746 2001-05-24  Jim Meyering  <meyering@lucent.com>
66747
66748         * lib/argmatch.c: Include "quote.h".
66749         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
66750         quote function.  Reported by Göran Uddeborg.
66751
66752 2001-05-22  Jim Meyering  <meyering@lucent.com>
66753
66754         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
66755         now that we use the package-supplied version unconditionally.
66756         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
66757
66758 2001-05-21  Jim Meyering  <meyering@lucent.com>
66759
66760         * m4/regex.m4: Change a couple backticks to single quotes to avoid
66761         shell syntax errors.
66762
66763 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
66764
66765         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
66766
66767 2001-05-20  Paul Eggert  <eggert@twinsun.com>
66768
66769         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
66770         Don't bother to check library strftime, since
66771         we'll be using our own my_strftime function anyway.
66772         Define my_strftime instead of strftime.
66773
66774 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
66775
66776         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
66777         which is not yet declared.
66778
66779 2001-05-15  Jim Meyering  <meyering@lucent.com>
66780
66781         * m4/regex.m4: Use proper quoting so brackets appear in the test
66782         program.
66783         Reported by, and with help from, Bruno Haible.
66784
66785 2001-05-13  Jim Meyering  <meyering@lucent.com>
66786
66787         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
66788         undefined.
66789
66790 2001-05-11  Paul Eggert  <eggert@twinsun.com>
66791
66792         dirname code cleanup.  base_name now behaves more compatibly
66793         with POSIX basename when given file names that have trailing
66794         slashes, and similarly for dir_name.  Add new primitives
66795         base_len and dir_len.  Put the directory-name-related decls
66796         into dirname.h.
66797
66798         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
66799         * lib/backupfile.c (base_name): Likewise.
66800         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
66801         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
66802         * lib/makepath.c (strip_trailing_slashes): Likewise.
66803         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
66804         ISSLASH): Likewise.
66805         * lib/rename.c (strip_trailing_slashes): Likewise.
66806         * lib/same.c (base_name): Likewise.
66807         * lib/stripslash.c (ISSLASH): Likewise.
66808
66809         * lib/addext.c: Include <dirname.h> after size_t is defined.
66810         * lib/backupfile.c: Likewise.
66811
66812         * lib/addext.c (addext): Use base_len to trim redundant
66813         trailing slashes instead of doing it ourselves.
66814         But do not trim the last slash if it is not redundant.
66815
66816         * lib/backupfile.c (find_backup_file_name,
66817         max_backup_version): Use base_len instead of rolling it ourselves.
66818         Handle the case of "" and (on DOS) "C:" correctly.
66819
66820         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
66821         needed. Include <string.h>, <dirname.h>.
66822         (base_name): Allow file names ending in slashes, other than names
66823         that are all slashes.  In this case, return the basename followed
66824         by the slashes.  This is more general, and can be used in places
66825         where the original base_name purposely had an assertion failure.
66826         (base_len): New function.
66827
66828         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
66829         Do not include <assert.h>; no longer needed.
66830         Include xalloc.h.
66831         (memrchr): Remove decl.
66832         (dir_name_r): Remove.
66833         (dir_len): Renamed from dirlen.  All callers changed.
66834         Rewrite in terms of base_name, for simplicity and consistency.
66835         (dir_name): Never return NULL.  All callers changed.
66836         Do not include <stdlib.h> in test program; no longer needed.
66837         return 0; is fine for test program.
66838
66839         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
66840         New macros.
66841         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
66842
66843         * lib/path-concat.c (path_concat): Use base_len to compute
66844         base length, not strlen; this means we cannot rely on memcpy
66845         to null-terminate.
66846
66847         * lib/same.c (STREQ): Remove.
66848         (same_name): Handle the case where the basename ends in trailing '/'.
66849
66850         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
66851         a slash was stripped.  Do not strip the last slash after a
66852         file system prefix.
66853
66854 2001-05-11  Paul Eggert  <eggert@twinsun.com>
66855
66856         * lib/Makefile.am (libfetish_a_SOURCES):
66857         Add strftime.c, since we now compile it on all hosts.
66858
66859         * lib/strftime.c (my_strftime):
66860         Define to nstrftime if emacs, but only if my_strftime is not defined.
66861         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
66862         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
66863         Add one more extra argument: a nanoseconds value.
66864         All uses changed.
66865         (ns): New macro.
66866         (my_strftime function): Add %N format.
66867         (emacs_strftimeu): Renamed from emacs_strftime,
66868         with extra ut argument.
66869
66870 2001-05-09  Paul Eggert  <eggert@twinsun.com>
66871
66872         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
66873
66874 2001-04-21  Jim Meyering  <meyering@lucent.com>
66875
66876         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
66877         doesn't interfere.
66878
66879 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
66880
66881         * m4/ftruncate.m4: Check for chsize.
66882         Link with ftruncate.o unconditionally if ftruncate is missing.
66883         This was required when cross-compiling to i586-mingw32msvc.
66884
66885 2001-04-08  Jim Meyering  <meyering@lucent.com>
66886
66887         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
66888         recomputed; that's necessary when the offset spans a DST transition.
66889         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
66890
66891 2001-04-02  Jim Meyering  <meyering@lucent.com>
66892
66893         * lib/regex.h, regex.c: Update from GNU libc.
66894
66895 2001-03-24  Jim Meyering  <meyering@lucent.com>
66896
66897         * m4/jm-macros.m4: Require autoconf-2.49d.
66898
66899 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
66900
66901         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
66902
66903 2001-03-19  Paul Eggert  <eggert@twinsun.com>
66904
66905         * lib/version-etc.c (version_etc_copyright): Update to 2001.
66906
66907 2001-03-17  Jim Meyering  <meyering@lucent.com>
66908
66909         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
66910         now that the version in autoconf is equivalent.
66911         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
66912
66913         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
66914         Suggestion from Akim Demaille.
66915
66916         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
66917         (jm_PREREQ_TEMPNAME): New function.
66918
66919 2001-03-16  Paul Eggert  <eggert@twinsun.com>
66920
66921         * lib/tempname.c (uint64_t): Define to uintmax_t if
66922         not defined, and if UINT64_MAX is not defined.
66923         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
66924         Reported by John David Anglin.
66925
66926 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
66927
66928         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
66929         resolve alias if codeset is empty.
66930         * lib/config.charset (BeOS): Use wildcard syntax.
66931
66932 2001-03-13  Jim Meyering  <meyering@lucent.com>
66933
66934         * lib/path-concat.c (path_concat)
66935         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
66936         concatenating e.g., `C:' and `foo'.
66937         From Bruno Haible.
66938
66939 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66940
66941         * lib/localcharset.c (locale_charset): Don't use
66942         setlocale(LC_CTYPE,NULL). Don't return NULL.
66943         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
66944
66945 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66946
66947         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
66948         support for DOS/DJGPP.
66949
66950 2001-03-01  Paul Eggert  <eggert@twinsun.com>
66951
66952         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
66953         lacks mkstemp.  Compile our own tempname.c if we compile our own
66954         mkstemp.c, as mkstemp relies on tempname.
66955
66956 2001-03-01  Jim Meyering  <meyering@lucent.com>
66957
66958         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
66959         AH_VERBATIM really does output its argument verbatim.
66960
66961 2001-02-28  Paul Eggert  <eggert@twinsun.com>
66962
66963         * lib/Makefile.am (libfetish_a_SOURCES):
66964         Add dup-safer.c, fopen-safer.c.
66965         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
66966
66967         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
66968         * lib/unistd-safer.h: New files.
66969
66970 2001-02-25  Paul Eggert  <eggert@twinsun.com>
66971
66972         The mkstemp replacement is taken from glibc 2.2.2, with some
66973         portability fixes for use outside glibc, as follows:
66974
66975         * lib/tempname.c (struct_stat64): New macro.
66976         (direxists, __gen_tempname): Use it.
66977         This avoids a portability problem with Solaris 8.
66978
66979         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
66980         (<stddef.h>, <stdint.h>, <string.h>):
66981         Include only if STDC_HEADERS || _LIBC.
66982         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
66983         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
66984         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
66985         (__set_errno): Define this macro if <errno.h> doesn't.
66986         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
66987         Define these macros if <stdio.h> doesn't.
66988         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
66989         Define these macros if <sys/stat.h>
66990         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
66991         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
66992         __xstat64): Define if not _LIBC.
66993         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
66994         (__gen_tempname): Invoke gettimeofday only if
66995         HAVE_GETTIMEOFDAY || _LIBC;
66996         otherwise, fall back on plain "time".
66997         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
66998
66999         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67000
67001         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67002
67003 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67004
67005         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67006
67007 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67008
67009         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67010         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67011         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67012         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67013
67014 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67015
67016         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67017         Remove workaround macros for hosts that have mbrtowc but not
67018         mbstate_t, as we now insist on proper declarations for both
67019         before using mbrtowc.
67020
67021 2001-02-17  Jim Meyering  <meyering@lucent.com>
67022
67023         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67024         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67025         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67026         UnixWare 7.1.1.
67027
67028         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67029         rather than AC_CACHE_VAL.
67030
67031 2001-02-17  Jim Meyering  <meyering@lucent.com>
67032
67033         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67034         around included file name.
67035
67036         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67037
67038         * lib/strftime.c: Update from GNU libc (the only changes were to
67039         comments).
67040
67041 2001-02-17  Jim Meyering  <meyering@lucent.com>
67042
67043         * lib/regex.c: Update from libc.
67044
67045 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67046
67047         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67048         clash.
67049
67050 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67051
67052         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67053         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67054         Reported by Mark Hounschell via Paul Eggert.
67055
67056 2001-02-07  Jim Meyering  <meyering@lucent.com>
67057
67058         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67059
67060 2001-02-05  Jim Meyering  <meyering@lucent.com>
67061
67062         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67063         it includes the patch required for `large file' support with at least
67064         HP-UX's 10.20 /bin/cc.
67065
67066 2001-02-03  Jim Meyering  <meyering@lucent.com>
67067
67068         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67069         AS_IF, now that it works once again (mysteriously).
67070         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67071
67072 2001-01-30  Jim Meyering  <meyering@lucent.com>
67073
67074         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67075         * m4/chown.m4: Rename conftestchown to conftest.chown.
67076         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67077         s/conftestdir2/conftest.d2/.
67078         * m4/utimes.m4: s/conftestdata/conftest.data/
67079         Inspired by Pavel Roskin's change in autoconf.
67080
67081 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67082
67083         * lib/config.charset: Update for FreeBSD 4.2.
67084
67085 2001-01-27  Jim Meyering  <meyering@lucent.com>
67086
67087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67088         a use of AS_IF.
67089         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67090
67091 2001-01-26  Jim Meyering  <meyering@lucent.com>
67092
67093         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67094         quotearg.c includes it.
67095
67096 2001-01-26  Jim Meyering  <meyering@lucent.com>
67097
67098         * lib/quotearg.c: Include stddef.h.
67099         * lib/quote.c: Include stddef.h.
67100         Reported by Axel Kittenberger.
67101
67102         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67103         line in double quotes so that it evokes a better diagnostic.
67104         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67105         Reported by Axel Kittenberger.
67106
67107 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67108
67109         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67110         as if it was a `charset'.
67111
67112 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67113
67114         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67115         has const.
67116
67117 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67118
67119         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67120         to avoid a warning.  Add back 'const' to inptr.
67121
67122 2001-01-20  Jim Meyering  <meyering@lucent.com>
67123
67124         Be sure that headers are checked before used in code compiled
67125         for the type checks.
67126         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67127         In place of that, invoke jm_CHECK_ALL_TYPES.
67128         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67129         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67130         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67131         The check for ssize_t was mistakenly run before the test for unistd.h.
67132
67133         The configure-time check for stdbool.h was missing.
67134         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67135         (jm_PREREQ_HASH): New function.
67136
67137 2001-01-17  Jim Meyering  <meyering@lucent.com>
67138
67139         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67140         for autoconf-2.49c.
67141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67142
67143 2001-01-16  Jim Meyering  <meyering@lucent.com>
67144
67145         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67146         From Bruno Haible.
67147
67148 2001-01-14  Jim Meyering  <meyering@lucent.com>
67149
67150         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67151         foo and bar.  Create conftestdir/ in the script, not in the C code.
67152         Remove directories in the script, not in the C code.
67153         Remove conftestdir{,2} before trying to create the directory.
67154         Make the entire configure script fail if the mkdir fails.
67155
67156 2001-01-14  Jim Meyering  <meyering@lucent.com>
67157
67158         * lib/rename.c: New file.  From Volker Borchert.
67159         Include stdlib.h, string.h or strings.h, and xalloc.h.
67160         Use strip_trailing_slashes rather than open-coding it.
67161
67162 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67163
67164         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67165
67166 2001-01-03  Jim Meyering  <meyering@lucent.com>
67167
67168         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67169         of local `inptr' to avoid warning with some system declarations of
67170         iconv.
67171
67172 2001-01-02  Volker Borchert  <bt@teknon.de>
67173
67174         * m4/rename.m4: New file.
67175         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67176
67177 2001-01-01  Jim Meyering  <meyering@lucent.com>
67178
67179         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67180         even on systems with utmpx.h.  It's necessary for the declaration of
67181         utmp's ut_user member.  Reported by Andreas Jaeger.
67182
67183         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67184         available. They are required for the declarations of getgrgid and
67185         getpwuid resp.
67186         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67187         Reported by Andreas Jaeger.
67188
67189 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67190
67191         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67192         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67193         so `make install' also works in VPATH builds.
67194
67195 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67196
67197         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67198         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67199         can be used in subdirectories.
67200
67201 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67202
67203         * lib/modechange.c: Do not assume that mode_t uses the
67204         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67205         the other-execute bit of FOO even if S_IXOTH != 1.
67206
67207         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67208         WOTH, XOTH, ALLM): New macros.
67209         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67210          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67211         Use them.
67212         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67213         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67214         (mode_compile):
67215         No need to use uintmax_t; unsigned long is long enough.
67216         Don't bother to get suffix since we don't use it.
67217
67218 2000-12-26  Jim Meyering  <meyering@lucent.com>
67219
67220         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67221         better with autoheader.
67222
67223 2000-12-24  Jim Meyering  <meyering@lucent.com>
67224
67225         * lib/hash.c (is_prime): Return explicit boolean values.
67226         (hash_get_first): Return NULL to appease Irix5.6's 89.
67227         Reported by Nelson Beebe.
67228
67229 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67230
67231         * lib/localcharset.c (locale_charset): Add support for Win32.
67232
67233 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67234
67235         * lib/physmem.h, lib/physmem.c: New files.
67236
67237         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67238         (noinst_HEADERS): Add physmem.h.
67239
67240         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67241         't' for compatibility with Solaris 8 sort.
67242
67243 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67244
67245         * lib/config.charset: Add support for BeOS.
67246
67247 2000-12-17  Jim Meyering  <meyering@lucent.com>
67248
67249         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67250         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67251
67252 2000-12-16  Jim Meyering  <meyering@lucent.com>
67253
67254         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67255         N and M) would have treated it like `chown N:N FILE'.
67256
67257         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67258
67259 2000-12-16  Jim Meyering  <meyering@lucent.com>
67260
67261         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67262         SHELLS_FILE to a file name that's useful on djgpp systems.
67263         Include stdlib.h.
67264         (ADDITIONAL_DEFAULT_SHELLS): Define.
67265         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67266         Based mostly on a patch from Prashant TR.
67267
67268 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67269
67270         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67271         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67272         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67273
67274 2000-12-08  Andreas Schwab  <schwab@suse.de>
67275
67276         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67277         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67278
67279 2000-12-07  Jim Meyering  <meyering@lucent.com>
67280
67281         * lib/stripslash.c (ISSLASH): Define.
67282         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67283         `/'.
67284         From Prashant TR.
67285
67286         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67287         (dir_name_r): Declare this function as static.
67288         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67289         manifest itself on a name containing a mix of slashes and
67290         backslashes.
67291         Make this function work with names starting with a DOS-style
67292         drive letter and colon prefix.
67293         (dir_name): Append `.' if necessary.
67294         Based mostly on patches from Prashant TR and Eli Zaretskii.
67295
67296         * lib/dirname.h (dir_name_r): Remove prototype.
67297
67298 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67299
67300         * m4/off_t-format.m4: Remove this file.
67301         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67302
67303 2000-12-06  Jim Meyering  <meyering@lucent.com>
67304
67305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67306         replacement strtoull, we may well need the replacement strtoul, too.
67307         Check for declarations of strtoul and strtoull.
67308         Check for strtol.  Mainly as a cue to cause automake to include
67309         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67310         Check for limits.h -- strtol.c needs it.
67311
67312 2000-12-05  Jim Meyering  <meyering@lucent.com>
67313
67314         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67315
67316 2000-12-04  Jim Meyering  <meyering@lucent.com>
67317
67318         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67319         Also include memory.h, stdlib.h, unistd.h if appropriate.
67320         Reported by Andreas Jaeger (conflicting declaration of malloc).
67321
67322 2000-12-02  Jim Meyering  <meyering@lucent.com>
67323
67324         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67325         * m4/jm-macros.m4 (jm_MACROS): require it.
67326
67327 2000-12-02  Jim Meyering  <meyering@lucent.com>
67328
67329         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67330
67331 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67332
67333         * lib/memrchr.c: Include <config.h> before any system include file.
67334
67335 2000-11-30  Jim Meyering  <meyering@lucent.com>
67336
67337         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67338
67339 2000-11-30  Jim Meyering  <meyering@lucent.com>
67340
67341         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67342
67343 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67344
67345         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67346
67347 2000-11-26  Jim Meyering  <meyering@lucent.com>
67348
67349         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67350
67351 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67352
67353         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67354         size of (size_t) -1; it's not portable.
67355
67356 2000-11-17  Jim Meyering  <meyering@lucent.com>
67357
67358         * lib/strstr.c: Update from GNU libc.
67359
67360 2000-11-17  Akim Demaille  <akim@epita.fr>
67361
67362         * lib/obstack.h: Formatting changes.
67363         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67364         prevent type checking.
67365         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67366         cast the value to (void *): assigning a `foo *' to a `void *'
67367         variable is valid.
67368         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67369
67370 2000-11-16  Jim Meyering  <meyering@lucent.com>
67371
67372         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67373
67374 2000-11-11  Jim Meyering  <meyering@lucent.com>
67375
67376         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67377
67378 2000-11-10  Jim Meyering  <meyering@lucent.com>
67379
67380         * lib/obstack.h: Update from GNU libc.
67381         * lib/obstack.c: Likewise.
67382
67383 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67384
67385         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67386
67387 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67388
67389         * lib/getusershell.c (setusershell): Use rewind rather than
67390         fseek/fseeko, to avoid configuration hassles with fseeko.
67391         Don't bother opening SHELLS_FILE if shellstream is NULL;
67392         it's not necessary.
67393
67394 2000-11-05  Jim Meyering  <meyering@lucent.com>
67395
67396         * lib/makepath.h (make_dir): Declare.
67397         * lib/makepath.c (make_dir): Remove `static' attribute.
67398         Tweak a comment.
67399
67400 2000-11-04  Jim Meyering  <meyering@lucent.com>
67401
67402         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67403
67404 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67405
67406         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67407         last one in a bucket, advance to the next bucket.
67408
67409 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67410
67411         * lib/fnmatch.c: Do not comment out all the code if we are using
67412         the GNU C library, because in some cases we are replacing buggy
67413         code in the GNU C library itself.
67414
67415 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67416
67417         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67418         (regex_compile): Catch bogus \(\1\).
67419
67420 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67421
67422         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67423         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67424         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67425
67426 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67427
67428         * lib/error.h, getline.h, modechange.h:
67429         Remove "2000" from Copyright line, as the file hasn't been
67430         changed this year other than in the copyright notice.
67431
67432         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67433         was changed this year.
67434
67435 2000-10-29  Jim Meyering  <meyering@lucent.com>
67436
67437         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67438         renaming.
67439         * m4/ls-mntd-fs.m4: Likewise
67440
67441 2000-10-29  Jim Meyering  <meyering@lucent.com>
67442
67443         * lib/xstat.in: Fix grammar in comment.
67444
67445 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67446
67447         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67448         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67449         doesn't define __restrict_arr.
67450
67451 2000-10-28  Jim Meyering  <meyering@lucent.com>
67452
67453         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67454         (jm_PREREQ_MEMCHR): New function.
67455
67456 2000-10-28  Jim Meyering  <meyering@lucent.com>
67457
67458         * lib/memchr.c: Update from libc.
67459         Adjust for portability:
67460         [HAVE_STDLIB_H]: Include stdlib.h.
67461         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67462         Undef __memchr, too.
67463         [!weak_alias]: Define __memchr to memchr.
67464
67465         * lib/regex.c: Update from libc.
67466         * lib/regex.h: Likewise.
67467         * lib/getopt1.c: Likewise.
67468         * lib/memcmp.c: Likewise.
67469
67470         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67471         Avoid using fseek, when possible -- it's broken by design.
67472         Patch by Ulrich Drepper.
67473
67474 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67475
67476         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67477         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67478         Giving in to popular pressure to shut up the compiler with casts.
67479
67480 2000-10-26  Jim Meyering  <meyering@lucent.com>
67481
67482         * lib/strftime.c: Update from libc.
67483
67484 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67485
67486         * regex.c: More `unsigned char' -> `re_char' changes.
67487         Also change several `int' into `re_wchar_t'.
67488         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67489         (PUSH_FAILURE_POINTER): Don't cast any more.
67490         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67491         We want GCC to complain, since this piece of code makes
67492         re_match non-reentrant, which *should* be fixed.
67493         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67494         (EXTEND_BUFFER): Use RETALLOC.
67495         (SET_LIST_BIT): Don't cast.
67496         (re_wchar_t): New type.
67497         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67498         that those two functions will always properly return.
67499         (IMMEDIATE_QUIT_CHECK): Cast to void.
67500         (analyse_first): Use recursion rather than an explicit stack.
67501         (re_compile_fastmap): Can't fail anymore.
67502         (re_search_2): Don't check re_compile_fastmap for failure.
67503         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67504         Now also sets the new value (passed in a new argument).
67505         (re_match_2_internal): Use it.
67506         Also, use a new var `reg' of type size_t when looping through regs
67507         rather than reuse the inappropriate `mcnt'.
67508
67509 2000-10-25  Jim Meyering  <meyering@lucent.com>
67510
67511         * lib/obstack.c: Update from libc.
67512
67513 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67514
67515         * regex.c (regex_compile): Change the way of handling a range from
67516         a char less than 256 to a char not less than 256.
67517
67518 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67519
67520         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67521         NT-Emacs only.
67522         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67523         so that re_search functions only quit when callers expect them to.
67524
67525 2000-10-23  Jim Meyering  <meyering@lucent.com>
67526
67527         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67528         wrong.  That set_locale call must not have any side effects.
67529         From Paul Eggert.
67530
67531 2000-10-22  Jim Meyering  <meyering@lucent.com>
67532
67533         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67534         [CYCLIC]: Remove now-unused definition.
67535
67536         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67537         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67538         Suggestion from Ulrich Drepper.
67539
67540 2000-10-21  Jim Meyering  <meyering@lucent.com>
67541
67542         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67543         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67544         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67545
67546 2000-10-21  Jim Meyering  <meyering@lucent.com>
67547
67548         * lib/dirname.c (memrchr): Declare if necessary.
67549         (dir_name): Remove the restriction that there be no
67550         trailing slashes.  Now, this code skips past them, effectively
67551         ignoring them.
67552         [TEST_DIRNAME] (main): New unit tests.
67553
67554         * lib/memrchr.c: New file from GNU libc.
67555         Undef __memrchr, too.
67556         [!weak_alias]: Define __memrchr to memrchr.
67557         Guard weak_alias use with `#ifdef weak_alias'.
67558
67559 2000-10-21  Jim Meyering  <meyering@lucent.com>
67560
67561         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67562         (dir_name): Use dir_name_r.
67563         * lib/dirname.h (dir_name_r): Declare it.
67564
67565 2000-10-17  Jim Meyering  <meyering@lucent.com>
67566
67567         * lib/quote.h (PARAMS): Define and use.
67568         Reported by Akim Demaille.
67569
67570         * lib/getopt.c: Update from libc.
67571
67572 2000-10-16  Jim Meyering  <meyering@lucent.com>
67573
67574         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67575         setlocale.
67576         From Jan Fedak.
67577
67578 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67579
67580         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67581
67582 2000-09-25  Jim Meyering  <meyering@lucent.com>
67583
67584         * lib/md5.h (rol): Define (from GnuPG).
67585
67586         * lib/sha.c: Give credit (GnuPG) where due.
67587         (M): Use rol rather than open-coding it.
67588         Add a FIXME comment.
67589
67590 2000-09-21  Jim Meyering  <meyering@lucent.com>
67591
67592         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67593         Reported by Michael Stone.
67594
67595 2000-09-20  Jim Meyering  <meyering@lucent.com>
67596
67597         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67598         (noinst_HEADERS): Add sha.h.
67599         Based on code from Scott G. Miller and from GnuPG.
67600
67601 2000-09-18  Jim Meyering  <meyering@lucent.com>
67602
67603         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67604         LIBS. Otherwise, everyone ends up linking with -lelf for some
67605         configurations.
67606         Reported by Mike Stone.
67607
67608 2000-09-15  Jim Meyering  <meyering@lucent.com>
67609
67610         * lib/regex.c: Update from libc.
67611
67612 2000-09-10  Jim Meyering  <meyering@lucent.com>
67613
67614         * lib/getopt.c (_getopt_internal): Update from glibc.
67615
67616 2000-09-09  Jim Meyering  <meyering@lucent.com>
67617
67618         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67619         think it should be used as a general replacement for isascii.
67620         * lib/fnmatch.c: Likewise.
67621         * lib/mbswidth.c: Likewise
67622         * lib/regex.c: Likewise.
67623
67624         Don't use atoi.
67625         * lib/userspec.c: Include sys/param.h and limits.h.
67626         Include xstrtol.h.
67627         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67628         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
67629         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
67630         UID, GID.  Check range.
67631
67632 2000-09-06  Jim Meyering  <meyering@lucent.com>
67633
67634         * lib/getopt.c (_getopt_internal): Update from glibc.
67635
67636 2000-08-30  Jim Meyering  <meyering@lucent.com>
67637
67638         * lib/strftime.c: Merge in changes from GNU libc.
67639
67640 2000-08-26  Jim Meyering  <meyering@lucent.com>
67641
67642         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
67643         * m4/fpending.m4: New file.
67644
67645 2000-08-26  Jim Meyering  <meyering@lucent.com>
67646
67647         * lib/closeout.c: Include "__fpending.h".
67648         (close_stdout_status): Return right away if there's nothing to flush.
67649
67650         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
67651         * lib/__fpending.c: New file.
67652         * lib/__fpending.h: New file.
67653
67654 2000-08-20  Jim Meyering  <meyering@lucent.com>
67655
67656         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
67657         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
67658         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
67659
67660 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
67661
67662         Improve fileutils installation on systems where running
67663         programs (like install) can't be unlinked.
67664         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
67665         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
67666
67667 2000-08-07  Paul Eggert  <eggert@twinsun.com>
67668
67669         Standardize on "memory exhausted" instead of "Memory exhausted"
67670         or "virtual memory exhausted".
67671         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
67672         "virtual memory exhausted".
67673         * lib/same.c (same_name): Invoke xalloc_die instead of printing
67674         our own message.
67675         * lib/userspec.c (parse_user_spec): Likewise.
67676         * lib/bumpalloc.h: comment fix
67677         * lib/same.c, userspec.c: Include xalloc.h.
67678
67679         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
67680         not char *const and pointing to a constant array.
67681         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
67682         (xrealloc): Comment fix.
67683
67684         * lib/userspec.c (parse_user_spec):
67685         Don't translate a message until just before returning,
67686         to avoid unnecessary translation.
67687
67688 2000-08-07  Jim Meyering  <meyering@lucent.com>
67689
67690         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
67691         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
67692         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
67693         getgroups.c, gethostname.c, getopt.h, group-member.c,
67694         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
67695         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
67696         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
67697         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
67698         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
67699         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
67700         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
67701         yesno.c: Back out Copyright date changes for each file with no change
67702         this year.  This eases coordination with other programs using the same
67703         source code modules.  From Paul Eggert.
67704
67705 2000-08-06  Paul Eggert  <eggert@twinsun.com>
67706
67707         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
67708         not char, for compatibility with glibc 2.1.3 strftime.c.
67709
67710 2000-08-03  Greg McGary  <greg@mcgary.org>
67711
67712         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
67713         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
67714         (EXTEND_BUFFER): Use them.
67715
67716 2000-08-01  Jim Meyering  <meyering@lucent.com>
67717
67718         * lib/dirname.c (ISSLASH): Define.
67719         (BACKSLASH_IS_PATH_SEPARATOR): Define.
67720         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
67721         both `\' and `/' may be use as path separators.
67722         Based on a patch from Prashant TR.
67723
67724 2000-07-31  Paul Eggert  <eggert@twinsun.com>
67725
67726         * lib/quotearg.c (quotearg_n_options): Don't make the initial
67727         slot vector a constant, since it might get modified.
67728
67729 2000-07-31  Jim Meyering  <meyering@lucent.com>
67730
67731         * lib/xmalloc.c: Use `virtual memory exhausted', not
67732         `Memory exhausted'.
67733         * lib/obstack.c (print_and_abort): Likewise.
67734
67735 2000-07-30  Paul Eggert  <eggert@twinsun.com>
67736
67737         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
67738         buffer, so that the caller can always quote one small
67739         component of a "memory exhausted" message in slot 0.
67740         From a suggestion by Jim Meyering.
67741
67742 2000-07-30  Jim Meyering  <meyering@lucent.com>
67743
67744         * lib/makepath.c (make_path): Quote the other instance, too.
67745
67746         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
67747         (STATIC_BUF_SIZE): Define.
67748         (quotearg_n_options): Use only statically allocated storage when
67749         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
67750         than STATIC_BUF_SIZE.
67751
67752 2000-07-29  Jim Meyering  <meyering@lucent.com>
67753
67754         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
67755         * lib/dirname.c (dir_name): Likewise.
67756
67757         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
67758         `/'.
67759
67760         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
67761         (dir_name): Assert that there are no trailing slashes.
67762
67763 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
67764
67765         * lib/mbswidth.h (mbswidth): Add a flags argument.
67766         (mbswidth): New declaration.
67767         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
67768         * lib/mbswidth.c (mbswidth): Add a flags argument.
67769         (mbsnwidth): New function.
67770
67771 2000-07-24  Jim Meyering  <meyering@lucent.com>
67772
67773         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
67774
67775 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67776
67777         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
67778
67779 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67780
67781         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
67782         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
67783         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
67784         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
67785         invoke multibyte primitives.
67786
67787 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67788
67789         * lib/quotearg.c:
67790         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
67791         so that mbstate_t is always defined.
67792
67793         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
67794         be 1 in at least one GCC installation, and this configuration
67795         error is likely to be common.  Ignoring MB_LEN_MAX hurts
67796         performance on hosts that have mbrtowc but have only unibyte
67797         locales, but I assume these hosts are rare.
67798
67799 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67800
67801         * lib/mbswidth.c (_XOPEN_SOURCE):
67802         Don't define; this causes problems on Solaris 7.
67803         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
67804
67805 2000-07-23  Jim Meyering  <meyering@lucent.com>
67806
67807         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
67808         too: getgrgid, getpwuid, getuid.
67809
67810 2000-07-23  Jim Meyering  <meyering@lucent.com>
67811
67812         * lib/basename.c (base_name): Add an assertion.
67813
67814 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
67815
67816         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
67817         shadow its mbsinit function.
67818
67819 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
67820
67821         * lib/mbswidth.h: New file.
67822         * lib/mbswidth.c: New file.
67823         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
67824         (noinst_HEADERS): Add mbswidth.h.
67825
67826 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
67827
67828         * lib/config.charset: Add support for FreeBSD. Improve support for
67829         HP-UX and IRIX 6.
67830
67831 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
67832
67833         * m4/mbswidth.m4: New file.
67834         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
67835
67836 2000-07-15  Jim Meyering  <meyering@lucent.com>
67837
67838         * lib/makepath.c: Include quote.h.
67839         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
67840         corresponding argument in a `quote (...)' call.
67841         Give better diagnostics.
67842
67843         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
67844         (noinst_HEADERS): Add quote.h.
67845
67846         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
67847         from tar's src/misc.c.
67848         * lib/quote.h: New file.  Prototypes for same.
67849
67850 2000-07-14  Paul Eggert  <eggert@twinsun.com>
67851
67852         From a suggestion by Bruno Haible.
67853         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
67854         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
67855         to decide whether to define the BeOS workaround macro;
67856         this adjusts to the change to AC_MBSTATE_T.
67857
67858 2000-07-14  Jim Meyering  <meyering@lucent.com>
67859
67860         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
67861         jm_AC_TYPE_UINTMAX_T.
67862
67863 2000-07-13  Paul Eggert  <eggert@twinsun.com>
67864
67865         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
67866
67867         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
67868         quotearg_buffer_restyled): Add support for
67869         clocale_quoting_style.  Undo previous change to
67870         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
67871         and "{RIGHT QUOTATION MARK}" msgids.
67872
67873 2000-07-10  Paul Eggert  <eggert@twinsun.com>
67874
67875         From a suggestion by Bruno Haible.
67876         * m4/mbstate_t.m4 (AC_MBSTATE_T):
67877         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
67878         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
67879         and mbstate_t, to a single-part test that simply defines mbstate_t.
67880         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
67881         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
67882
67883 2000-07-10  Jim Meyering  <meyering@lucent.com>
67884
67885         * m4/strerror_r.m4: Mirror the correction made in autoconf.
67886
67887         * m4/gnu-source.m4: Output to confdefs.h directly.
67888         Suggestion from Akim Demaille.
67889
67890 2000-07-09  Paul Eggert  <eggert@twinsun.com>
67891
67892         The old behavior of quoting `like this' doesn't look good with
67893         newer, ISO-style fonts.  See:
67894         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
67895
67896         Instead, quote "like this" by default.  Let the translator
67897         tailor the locale-specific quoting behavior by providing
67898         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
67899
67900         * lib/quotearg.c (N_): New macro.
67901         (gettext_default): New function.
67902         (quotearg_buffer_restyled): Use
67903         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
67904         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
67905
67906 2000-07-09  Jim Meyering  <meyering@lucent.com>
67907
67908         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
67909         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
67910
67911         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
67912         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
67913
67914 2000-07-09  Jim Meyering  <meyering@lucent.com>
67915
67916         * lib/Most files: Update copyright dates to include 2000.
67917
67918 2000-07-08  Jim Meyering  <meyering@lucent.com>
67919
67920         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
67921         if not defined.
67922         (xgethostname): Remove now-unnecessary #ifdef.
67923         Move declaration of `err' into loop where it's used.
67924
67925 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67926         and Bruno Haible  <haible@clisp.cons.org>
67927
67928         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
67929         only if the test for an object-type mbstate_t fails.  This
67930         prevents us from mistakenly reporting that mbstate_t is a
67931         system object type after we "#define mbstate_t int" to work
67932         around its lack.
67933
67934 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67935         and Bruno Haible  <haible@clisp.cons.org>
67936
67937         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
67938
67939 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67940
67941         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
67942         to strerror_r.
67943         Include <ctype.h> for use of isalpha.
67944
67945 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67946
67947         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
67948         by allocating a larger buffer. Test the gethostname return value for
67949         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
67950         returns an error and ENAMETOOLONG isn't defined.
67951
67952 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67953
67954         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
67955         dimension.
67956
67957 2000-07-04  Jim Meyering  <meyering@lucent.com>
67958
67959         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
67960         of the deprecated AC_CHECKING.
67961
67962 2000-07-04  Jim Meyering  <meyering@lucent.com>
67963
67964         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
67965         Reported by Bruno Haible.
67966
67967 2000-07-04  Jim Meyering  <meyering@lucent.com>
67968
67969         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
67970         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
67971         lacks mbrtowc.
67972
67973 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67974
67975         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
67976         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
67977
67978 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67979         and Bruno Haible  <haible@clisp.cons.org>
67980
67981         * lib/quotearg.c (mbrtowc):
67982         Assign to *pwc, and return 1 only if result is nonzero.
67983         (iswprint): Use ISPRINT when substituting our own mbrtowc.
67984
67985 2000-07-03  Jim Meyering  <meyering@lucent.com>
67986
67987         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
67988
67989 2000-07-03  Jim Meyering  <meyering@lucent.com>
67990
67991         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
67992         This is necessary to get a definition of e.g., UTMP_FILE on
67993         HP-UX 10.20.
67994         From Bob Proulx.
67995
67996 2000-07-02  Jim Meyering  <meyering@lucent.com>
67997
67998         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
67999
68000         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68001         AC_LIBOBJ(function_name).
68002         * m4/chown.m4: Likewise.
68003         * m4/fnmatch.m4: Likewise.
68004         * m4/ftruncate.m4: Likewise.
68005         * m4/getgroups.m4: Likewise.
68006         * m4/getline.m4: Likewise.
68007         * m4/group-member.m4: Likewise.
68008         * m4/jm-macros.m4: Likewise.
68009         * m4/lstat.m4: Likewise.
68010         * m4/malloc.m4: Likewise.
68011         * m4/memcmp.m4: Likewise.
68012         * m4/nanosleep.m4: Likewise.
68013         * m4/putenv.m4: Likewise.
68014         * m4/realloc.m4: Likewise.
68015         * m4/regex.m4: Likewise.
68016         * m4/stat.m4: Likewise.
68017         * m4/strftime.m4: Likewise.
68018
68019 2000-07-02  Jim Meyering  <meyering@lucent.com>
68020
68021         * lib/quotearg.c (mbstate_t): Don't define here.
68022
68023 2000-07-02  Jim Meyering  <meyering@lucent.com>
68024
68025         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68026
68027 2000-07-01  Jim Meyering  <meyering@lucent.com>
68028
68029         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68030
68031 2000-07-01  Jim Meyering  <meyering@lucent.com>
68032
68033         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68034         problem.
68035
68036 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68037
68038         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68039         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68040
68041 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68042
68043         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68044         per change in ../m4/ls-mntd-fs.m4.
68045         (read_filesystem_list): Ignore symbolic links.
68046
68047 2000-06-29  Jim Meyering  <meyering@lucent.com>
68048
68049         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68050         for declaration of strcmp.
68051
68052         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68053
68054         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68055         Avoid warning by casting result to `char *' to remove `const'.
68056
68057 2000-06-28  Jim Meyering  <meyering@lucent.com>
68058
68059         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68060         included by quotearg.c, for which we perform this test.  From
68061         Bruno Haible.
68062
68063 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68064
68065         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68066         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68067         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68068
68069 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68070
68071         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68072
68073 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68074
68075         savedir now sets errno on failure and invokes xmalloc to get memory.
68076         Fix a couple of other minor bugs while we're at it.
68077
68078         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68079         (NAMLEN): Remove macro.
68080         (malloc, realloc): Remove decls.
68081         (stpcpy): Likewise.
68082         ("xalloc.h"): Include.
68083         (NAME_SIZE_DEFAULT): New macro.
68084         (savedir): Use xmalloc / xrealloc to allocate memory.
68085         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68086         Skip "" directory entries.
68087         Use strlen to calculate directory entry length, since the old method
68088         is rarely used these days and isn't worth supporting.
68089         Don't use a pointer after freeing it.
68090         Check for integer overflow when calculating allocation size.
68091         Use memcpy to copy entries, instead of stpcpy.
68092         Set errno properly when returning NULL.
68093         Check for readdir error.
68094
68095 2000-06-26  Jim Meyering  <meyering@lucent.com>
68096
68097         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68098
68099 2000-06-25  Jim Meyering  <meyering@lucent.com>
68100
68101         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68102         Linux header bug when _XOPEN_SOURCE is defined to 500.
68103
68104 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68105
68106         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68107         deficiency.
68108
68109 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68110
68111         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68112         Include xalloc.h.
68113         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68114
68115 2000-06-24  Jim Meyering  <meyering@lucent.com>
68116
68117         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68118         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68119         for which strerror does return char*, but which lacks a conveniently
68120         accessible declaration of the function.  If the compile-test says
68121         strerror_r doesn't work, then resort to a `run'-test that works on
68122         BeOS and segfaults on DEC Unix.
68123
68124 2000-06-24  Jim Meyering  <meyering@lucent.com>
68125
68126         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68127
68128 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68129
68130         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68131         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68132
68133 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68134
68135         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68136         (mbrtowc, mbstate_t): Define substitutes if
68137         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68138         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68139         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68140
68141 2000-06-23  Jim Meyering  <meyering@lucent.com>
68142
68143         * m4/afs.m4: Add missing AC_MSG_RESULT.
68144         Reported by Bruno Haible.
68145
68146         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68147         Suggestion from Bruno Haible.
68148
68149 2000-06-23  Jim Meyering  <meyering@lucent.com>
68150
68151         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68152
68153 2000-06-21  Jim Meyering  <meyering@lucent.com>
68154
68155         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68156
68157 2000-06-21  Jim Meyering  <meyering@lucent.com>
68158
68159         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68160         (noinst_HEADERS): Add getstr.h.
68161
68162         * lib/getline.c (getstr): Move into a separate file.
68163         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68164         the following changes: new parameter, delim2; both delim[12]
68165         parameters have type `int', not `char'.  The latter would lose
68166         with 8-bit delimiters.
68167         * lib/getstr.h: New file.
68168
68169 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68170
68171         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68172         than 1024, return a memory chunk of least possible size, instead
68173         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68174         Use free/xmalloc instead of xrealloc to avoid copying for very long
68175         paths.
68176
68177 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68178
68179         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68180         the empty string.
68181
68182 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68183
68184         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68185         address, not strdup.  Include <stdlib.h> and don't declare free().
68186
68187 2000-06-19  Jim Meyering  <meyering@lucent.com>
68188
68189         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68190
68191 2000-06-18  Jim Meyering  <meyering@lucent.com>
68192
68193         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68194
68195         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68196         `checking whether...' message to be consistent with that of the
68197         lstat test.
68198
68199 2000-06-18  Jim Meyering  <meyering@lucent.com>
68200
68201         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68202         Besides, these days every porting target provides a mkdir function.
68203
68204         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68205         needed. (this snippet comes from src/system.h).
68206
68207 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68208
68209         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68210
68211 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68212
68213         * lib/human.c (adjust_value): New function.
68214         (human_readable_inexact): Apply rounding style even when
68215         printing approximate values.
68216
68217 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68218
68219         * lib/human.c (human_readable_inexact): Allow an input block
68220         size that is not a multiple of the output block size, and vice versa.
68221         Reported by Piergiorgio Sartor.
68222
68223 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68224
68225         * lib/getdate.y (get_date): Apply relative times after time
68226         zone indicator, not before.  Reported by Todd A. Jacobs.
68227
68228 2000-06-13  Jim Meyering  <meyering@lucent.com>
68229
68230         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68231
68232         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68233
68234 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68235
68236         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68237
68238 2000-06-12  Jim Meyering  <meyering@lucent.com>
68239
68240         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68241         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68242         optional argument.
68243         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68244         the optional argument, `lib'.
68245
68246 2000-06-08  Jim Meyering  <meyering@lucent.com>
68247
68248         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68249
68250 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68251
68252         Rewrite largefile configuration so that we don't need to run
68253         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68254         AC_CANONICAL_HOST in configure.in -- jmm]
68255
68256         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68257         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68258         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68259         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68260         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68261         All uses changed.
68262         Instead of inspecting the output of getconf, try to compile the
68263         test program without and with the macro definition.
68264         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68265         for getconf.  Instead, check for the needed flags by compiling
68266         test programs.
68267
68268 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68269
68270         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68271
68272 2000-06-04  Jim Meyering  <meyering@lucent.com>
68273
68274         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68275         SunOS 4.1.4 for which gid_t is an unsigned type.
68276
68277 2000-06-03  Jim Meyering  <meyering@lucent.com>
68278
68279         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68280         now that autoconf requires that.
68281
68282         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68283         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68284         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68285
68286 2000-06-03  Jim Meyering  <meyering@lucent.com>
68287
68288         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68289
68290 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68291
68292         * m4/glibc21.m4: New file.
68293         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68294
68295 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68296
68297         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68298         newer, don't install charset.alias.
68299         * lib/config.charset: Change the Linux/glibc rules so they become empty
68300         on glibc-2.1 or newer.
68301
68302 2000-06-02  Jim Meyering  <meyering@lucent.com>
68303
68304         * lib/mountlist.c: Back out last change.  Instead, do this...
68305         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68306         me_dummy member using the same `ignore'-testing code.
68307         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68308         fs_type strings.
68309         From Mark D. Roth.
68310
68311 2000-05-29  Jim Meyering  <meyering@lucent.com>
68312
68313         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68314         mounts with the `ignore' attribute.  Based on a patch from
68315         Mark D. Roth.
68316
68317 2000-05-28  Jim Meyering  <meyering@lucent.com>
68318
68319         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68320         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68321         * m4/stat.m4: Likewise.
68322         * m4/lstat.m4: Likewise.
68323         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68324
68325         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68326         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68327
68328 2000-05-26  Jim Meyering  <meyering@lucent.com>
68329
68330         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68331
68332 2000-05-24  Jim Meyering  <meyering@lucent.com>
68333
68334         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68335         autoconf requires that.
68336         * m4/lib-check.m4: Likewise.
68337         * m4/jm-macros.m4: Likewise.
68338         * m4/strftime.m4: Likewise.
68339
68340         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68341         AC_CHECK_DECLS, now that autoconf requires that.
68342
68343 2000-05-22  Jim Meyering  <meyering@lucent.com>
68344
68345         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68346         * m4/lstat.m4: Likewise.
68347
68348 2000-05-22  Jim Meyering  <meyering@lucent.com>
68349
68350         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68351
68352 2000-05-20  Jim Meyering  <meyering@lucent.com>
68353
68354         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68355         (jm_PREREQ): Use it.
68356
68357 2000-05-18  Jim Meyering  <meyering@lucent.com>
68358
68359         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68360         back, too, since it may have been modified by allocate_entry.
68361         (hash_delete): Rewrite to use neither the assignment operator
68362         nor the comma operator in an if-expression.
68363
68364 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68365
68366         * lib/closeout.c:
68367         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68368         Remove; no longer needed.
68369         "quotearg.h": Add include.
68370         (file_name): Do not bother to explicitly initialize to NULL; it's less
68371         efficient on some hosts.
68372         (close_stdout_status): Remove test as to whether stdout was already
68373         closed; it breaks for the case "echo x | sort >&-".
68374         Quote file name colons.
68375         Do not assume that _("write error") lacks format strings.
68376
68377 2000-05-15  Jim Meyering  <meyering@lucent.com>
68378
68379         * lib/version-etc.c (version_etc_copyright): Update the copyright
68380         string used in all --version output.
68381
68382 2000-05-14  Jim Meyering  <meyering@lucent.com>
68383
68384         * lib/closeout.c (close_stdout_set_file_name): New function.
68385         (close_stdout_status): Use new file-scoped global.
68386         Return right away if fstat says the stdout file descriptor is invalid.
68387         * lib/closeout.h (close_stdout_set_file_name): Declare.
68388
68389 2000-05-10  Jim Meyering  <meyering@lucent.com>
68390
68391         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68392         (close_stdout_set_status): New function.
68393         * lib/closeout.h (close_stdout_set_status): Declare.
68394
68395 2000-05-09  Jim Meyering  <meyering@lucent.com>
68396
68397         * m4/gettext.m4: Rename this...
68398         * m4/libintl.m4: ...to this.
68399
68400 2000-05-08  Jim Meyering  <meyering@lucent.com>
68401
68402         * lib/long-options.c: Don't include closeout.h.
68403         (parse_long_options): Don't call close_stdout for --version.
68404
68405 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68406
68407         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68408         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68409         2.1.3 bug.  This avoids a clash when files like regex.c define
68410         _GNU_SOURCE.
68411
68412 2000-05-06  Jim Meyering  <meyering@lucent.com>
68413
68414         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68415         (AC_REPLACE_FUNCS): Add strnlen.
68416
68417         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68418         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68419
68420         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68421         AC_SEARCH_LIBS call for nanosleep.
68422         (LIB_NANOSLEEP): Set and AC_SUBST.
68423
68424 2000-05-06  Jim Meyering  <meyering@lucent.com>
68425
68426         * lib/strnlen.c: Undefine __strnlen and strnlen.
68427         [!weak_alias]: Define __strnlen to strnlen.
68428
68429         * lib/atexit.c: New file, from libiberty.
68430
68431 2000-05-06  Jim Meyering  <meyering@lucent.com>
68432
68433         * lib/closeout.c (close_stdout_status): Also check for errors on the
68434         stderr stream.
68435
68436 2000-05-05  Jim Meyering  <meyering@lucent.com>
68437
68438         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68439         AC_SEARCH_LIBS call for clock_gettime.
68440         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68441
68442         * m4/search-libs.m4: Update from autoconf.
68443
68444         su doesn't work on Solaris 2.6.
68445         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68446         <shadow.h>.  Reported by Dragos Harabor.
68447
68448 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68449
68450         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68451         memcpy instead of xmalloc, xrealloc, path_concat.
68452         (locale_charset): Treat empty environment variables as absent.
68453         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68454
68455 2000-05-04  Jim Meyering  <meyering@lucent.com>
68456
68457         * lib/getopt.c: Update from glibc.
68458         * lib/obstack.c: Likewise.
68459         * lib/obstack.h: Likewise.
68460         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68461         file
68462
68463         * lib/regex.h: Likewise.
68464         * lib/strndup.c: Likewise.
68465         * lib/strnlen.c: New file, from glibc.
68466
68467 2000-05-03  Jim Meyering  <meyering@lucent.com>
68468
68469         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68470
68471 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68472
68473         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68474         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68475         compile-time test, rather than inspecting host and OS, to
68476         decide whether to define _LARGEFILE_SOURCE.
68477
68478 2000-05-01  Jim Meyering  <meyering@lucent.com>
68479
68480         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68481
68482         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68483         Based on a patch from Bruno Haible.
68484
68485 2000-05-01  Jim Meyering  <meyering@lucent.com>
68486
68487         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68488
68489 2000-04-29  Jim Meyering  <meyering@lucent.com>
68490
68491         * lib/path-concat.c: Declare strdup only if it's not defined.
68492         * lib/canon-host.c: Likewise.
68493
68494 2000-04-28  Jim Meyering  <meyering@lucent.com>
68495
68496         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68497         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68498         is included first, then limits.h is included by locale.h by libintl.h.
68499         From John David Anglin.
68500
68501 2000-04-25  Jim Meyering  <meyering@lucent.com>
68502
68503         * lib/makepath.c (S_IRWXUGO): Define.
68504         (make_path): Always perform explicit chmod if MODE specifies any
68505         of the `special' permission bits.  Prompted by a bug report against
68506         install from Mate Wierdl and Joost van Baal.
68507
68508 2000-04-18  Jim Meyering  <meyering@lucent.com>
68509
68510         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68511         (jm_PREREQ): Use it.
68512
68513 2000-04-18  Jim Meyering  <meyering@lucent.com>
68514
68515         * lib/README: New file.
68516
68517         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68518         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68519
68520 2000-04-17  Jim Meyering  <meyering@lucent.com>
68521
68522         Get it right :-)
68523         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68524         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68525         Suggestion from Akim Demaille.
68526
68527 2000-04-17  Jim Meyering  <meyering@lucent.com>
68528
68529         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68530         the definition of it to rpl_strftime also defined-away the system's
68531         declaration.
68532
68533 2000-04-15  Jim Meyering  <meyering@lucent.com>
68534
68535         Use `C' to denote so-called `contiguous' files, the same way
68536         that tar does.
68537         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68538         (ftypelet): Use S_ISCTG.
68539         From Michael Deutschmann.
68540
68541 2000-04-14  Jim Meyering  <meyering@lucent.com>
68542
68543         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68544         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68545         clobbered.
68546
68547 2000-04-14  Jim Meyering  <meyering@lucent.com>
68548
68549         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68550
68551 2000-04-13  Jim Meyering  <meyering@lucent.com>
68552
68553         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68554         AH_VERBATIM to insert required #ifndef into config.h.in.
68555         Suggestion from Akim Demaille.
68556
68557 2000-04-12  Jim Meyering  <meyering@lucent.com>
68558
68559         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68560         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68561         Christian Krackowizer.
68562
68563         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68564         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68565         (AC_SYS_LARGEFILE): Require.
68566         (AM_C_PROTOTYPES): Require.
68567
68568 2000-04-08  Jim Meyering  <meyering@lucent.com>
68569
68570         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68571         names don't conflict.  Reported by Eli Zaretskii.
68572
68573 2000-04-07  Jim Meyering  <meyering@lucent.com>
68574
68575         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68576         sys/types.h, to work around system header problems on AIX 3.2.5.
68577         From Bruno Haible.
68578
68579 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68580
68581         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68582         bug.  Deal with the different error behavior of Irix iconv.
68583
68584 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68585
68586         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68587         IRIX if the installer said otherwise.
68588
68589 2000-04-05  Jim Meyering  <meyering@lucent.com>
68590
68591         Portability tweaks required for ultrix4.3.
68592         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68593         (jm_CHECK_DECLS): Add getutent to the list of functions.
68594         (_jm_DECL_HEADERS): Add utmpx.h.
68595         From John David Anglin.
68596
68597         * m4/strftime.m4: Back out the 2000-04-02 change.
68598         Instead of that change, simply undefine putenv in the test program.
68599
68600 2000-04-05  Jim Meyering  <meyering@lucent.com>
68601
68602         Portability tweaks required for ultrix4.3.
68603         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68604         getutent.
68605         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68606         * lib/canon-host.c: Declare strdup.
68607         * lib/path-concat.c: Likewise.
68608         From John David Anglin.
68609
68610 2000-04-04  Jim Meyering  <meyering@lucent.com>
68611
68612         Be more DOS 8.3-friendly.
68613         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68614         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68615         * lib/Makefile.am: Reflect renaming.
68616         Reported by Eli Zaretskii.
68617
68618         Use a temporary file name that won't clash with `charset.alias'
68619         in the DOS 8.3 name space.
68620         * lib/Makefile.am (charset_tmp): Define.
68621         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68622         (uninstall-local): Likewise.
68623         Reported by Eli Zaretskii.
68624
68625 2000-04-03  Jim Meyering  <meyering@lucent.com>
68626
68627         * m4/gettext.m4: Fix typo in comment.
68628
68629         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
68630         textutils/configure.in).  Suggestion from Paul Eggert.
68631         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
68632
68633 2000-04-02  Paul Eggert  <eggert@twinsun.com>
68634
68635         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
68636         variable in the shell rather than using putenv, which isn't
68637         portable.  This avoids the configure-time inter-test dependency
68638         on the potentially-renamed putenv function.
68639
68640 2000-03-30  Paul Eggert  <eggert@twinsun.com>
68641
68642         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
68643         before checking struct stat.st_blksize, so that
68644         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
68645
68646 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68647
68648         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
68649         since strftime.c uses HAVE_STRFTIME to decide whether to use
68650         the underlying strftime.
68651
68652 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68653
68654         * lib/time/strftime.c (my_strftime): Make sure we call the system
68655         strftime, not ourselves, when invoking the underlying strftime.
68656
68657 2000-03-24  Jim Meyering  <meyering@lucent.com>
68658
68659         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
68660         (charset_alias): Define.
68661         (install-exec-local): Factor out common code.
68662         (uninstall-local): Split lines longer than 80.
68663         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
68664         (SUFFIXES): Define.
68665         (.sed.in.sed): New rule.  Don't redirect directly to $@.
68666         (CLEANFILES): Add ref-add.sed and ref-del.sed.
68667
68668 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
68669
68670         * lib/config.charset: Output a line containing "Packages using this
68671         file".
68672         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
68673         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
68674         ref-del.sed): New rules.
68675
68676 2000-03-17  Jim Meyering  <meyering@lucent.com>
68677
68678         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
68679         Otherwise, include <strings.h>
68680
68681 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
68682
68683         * lib/unicodeio.c (utf8_wctomb): New function.
68684         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
68685         format instead of in UCS-4 with platform dependent endianness.
68686
68687 2000-03-10  Jim Meyering  <meyering@lucent.com>
68688
68689         * m4/lib-check.m4: Look for getspnam in -lgen, too.
68690         From Marco Franzen.
68691
68692 2000-03-07  Paul Eggert  <eggert@twinsun.com>
68693
68694         * lib/savedir.c (savedir): Work even if directory size is
68695         negative; this can happen with some screwy NFS configurations.
68696
68697 2000-03-06  Jim Meyering  <meyering@lucent.com>
68698
68699         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
68700         if it's NULL (because we ran out of memory).  From Bruno Haible.
68701
68702 2000-03-05  Jim Meyering  <meyering@lucent.com>
68703
68704         * lib/localcharset.c ("path-concat.h"): Include.
68705         (get_charset_aliases): Use path_concat instead of ANSI string
68706         concatenation.
68707
68708         * lib/unicodeio.h (PARAMS): Define.
68709         Use it to guard prototype.
68710
68711 2000-03-04  Jim Meyering  <meyering@lucent.com>
68712
68713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
68714         for lib/localcharset.c.
68715
68716 2000-03-04  Jim Meyering  <meyering@lucent.com>
68717
68718         * lib/Makefile.am (install-exec-local): Create $(libdir) before
68719         installing into it.
68720         (uninstall-local): Uncomment this rule so `make distcheck' works
68721         once again.
68722
68723         * lib/unicodeio.c (<errno.h>): Include it.
68724         (errno): Declare if not defined.
68725
68726         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
68727
68728         * lib/config.charset: New version, incorporating remarks from a linux
68729         i18n mailing list.  From Bruno Haible.
68730
68731 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
68732
68733         * m4/codeset.m4: New file.
68734         * m4/iconv.m4: New file.
68735         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
68736
68737 2000-03-03  Jim Meyering  <meyering@lucent.com>
68738
68739         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
68740
68741 2000-03-02  Jim Meyering  <meyering@lucent.com>
68742
68743         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
68744         the messages come out on separate lines.
68745
68746         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
68747         rather than jm_CHECK_DECLARATIONS.
68748         * m4/decl.m4: Remove now-unused file.
68749
68750         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
68751         geteuid.
68752
68753 2000-03-02  Jim Meyering  <meyering@lucent.com>
68754
68755         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
68756
68757 2000-03-01  Jim Meyering  <meyering@lucent.com>
68758
68759         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
68760         * lib/unicodeio.c: Likewise.
68761
68762 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
68763
68764         * lib/config.charset: New file.
68765         * lib/localcharset.c: New file.
68766         * lib/unicodeio.h, lib/unicodeio.c: New files.
68767         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
68768         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
68769         (noinst_HEADERS): Add unicodeio.h.
68770         (all-local, install-exec-local, charset.alias): New targets.
68771
68772 2000-02-28  Paul Eggert  <eggert@twinsun.com>
68773
68774         * lib/quotearg.c (ALERT_CHAR): New macro.
68775         (quotearg_buffer_restyled): Use it.
68776
68777 2000-02-27  Jim Meyering  <meyering@lucent.com>
68778
68779         * m4/check-decl.m4: Add getenv to the list.
68780
68781 2000-02-27  Jim Meyering  <meyering@lucent.com>
68782
68783         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
68784         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
68785
68786         * lib/backupfile.c: Guard inclusion of stdlib.h with
68787         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
68788         Declare malloc if needed.
68789
68790         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
68791         `#ifndef HAVE_DECL..'
68792         now that autoconf always defines the HAVE_DECL_ symbols.
68793         * lib/human.c: Likewise.
68794         * lib/same.c: Likewise.
68795         * lib/strtoumax.c: Likewise.
68796
68797         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
68798         declaration check was not run.
68799         * lib/hash.c: Likewise.
68800         * lib/human.c: Likewise.
68801         * lib/same.c: Likewise.
68802         * lib/strtoumax.c: Likewise.
68803
68804         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
68805         `.', then first look up the entire `.'-containing string as a login
68806         name.
68807
68808 2000-02-23  Jim Meyering  <meyering@lucent.com>
68809
68810         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
68811         in place of my hack.
68812
68813 2000-02-18  Paul Eggert  <eggert@twinsun.com>
68814
68815         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
68816         (textint): New typedef.
68817         (parser_control): Member year changed from int to textint.
68818         All uses changed.
68819         (YYSTYPE): Removed; replaced by %union with int and textint members.
68820         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
68821         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
68822         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
68823         (tSNUMBER, tUNUMBER): Now of type <textintval>.
68824         (date, number, to_year): Use width of number in digits, not its value,
68825         to determine whether it's a 2-digit year, or a 2-digit time.
68826         (yylex): Store number of digits of numeric tokens.
68827         Reported by John Kendall.
68828
68829         (parser_control): Changed from struct parser_control to typedef (for
68830         consistency).  All uses changed.
68831
68832         (tID): Removed; not used.
68833         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
68834
68835 2000-02-14  Paul Eggert  <eggert@twinsun.com>
68836
68837         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
68838         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
68839
68840 2000-02-12  Jim Meyering  <meyering@lucent.com>
68841
68842         * lib/userspec.c (ISDIGIT): Define it.
68843         (isdigit): Remove definition.
68844         (is_number): Use ISDIGIT, not isdigit.
68845         <libintl.h>: Include.
68846         (_ and N_): Define.
68847         (parse_user_spec): Mark translatable strings.
68848
68849 2000-02-10  Jim Meyering  <meyering@lucent.com>
68850
68851         With these changes, nanosleep.[ch] are finally enough like the other
68852         lib/* replacement files to compile on a few more losing systems.
68853
68854         * lib/nanosleep.h: Don't include config.h.
68855         Remove prototype from declaration of nanosleep.
68856         (PARAMS): Remove now-unneeded definition.
68857         * lib/nanosleep.c: #undef nanosleep.
68858         (rpl_nanosleep): Rename from nanosleep.
68859
68860 2000-02-10  Jim Meyering  <meyering@lucent.com>
68861
68862         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
68863         gnu_nanosleep to rpl_nanosleep.
68864
68865 2000-02-09  Jim Meyering  <meyering@lucent.com>
68866
68867         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
68868         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
68869
68870 2000-02-08  Akim Demaille  <akim@epita.fr>
68871
68872         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
68873         `[' and `]' and remove uses of `changequote'.
68874         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
68875         (AC_SYS_LARGEFILE): Likewise.
68876         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
68877         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
68878         of changequote.
68879         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
68880         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
68881         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
68882         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
68883
68884 2000-02-05  Jim Meyering  <meyering@lucent.com>
68885
68886         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
68887         Remove explicit use of AC_HEADER_TIME.  It is required by
68888         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
68889         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
68890         in autoconf whereby the expansion of the latter ended up preceding
68891         the expansion of its prerequisite, AC_HEADER_TIME.
68892         Reported by Volker Borchert.
68893
68894 2000-02-03  Jim Meyering  <meyering@lucent.com>
68895
68896         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
68897
68898 2000-02-03  Jim Meyering  <meyering@lucent.com>
68899
68900         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
68901         rather than with `#if HAVE_UTMPNAME'.
68902
68903 2000-02-02  Jim Meyering  <meyering@lucent.com>
68904
68905         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
68906         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
68907         Reported by Eli Zaretskii.
68908
68909 2000-02-01  Jim Meyering  <meyering@lucent.com>
68910
68911         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
68912
68913 2000-01-31  Jim Meyering  <meyering@lucent.com>
68914
68915         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
68916         functions.  Add the time.h and sys/time.h headers along with the
68917         AC_REQUIRE'ment of AC_HEADER_TIME.
68918
68919 2000-01-31  Jim Meyering  <meyering@lucent.com>
68920
68921         * lib/nanosleep.h (nanosleep): Guard declaration with
68922         `#if ! HAVE_DECL_NANOSLEEP'.
68923         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
68924         the declaration in that vendor's sys/timers.h.
68925         Reported by Christian Krackowizer.
68926
68927         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
68928         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
68929         (ISPRINT): Likewise.
68930         Reported by Tom Tromey.
68931
68932 2000-01-30  Jim Meyering  <meyering@lucent.com>
68933
68934         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
68935
68936         * m4/prereq.m4 (utmp_includes): Define.
68937         Check for ut_user and ut_name members in both struct utmpx
68938         and struct utmp.
68939
68940 2000-01-30  Jim Meyering  <meyering@lucent.com>
68941
68942         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
68943         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
68944         header files where only utmpx.ut_user is declared.
68945
68946         * lib/readutmp.h (UT_USER): Define.
68947
68948 2000-01-29  Jim Meyering  <meyering@lucent.com>
68949
68950         * m4/lib-check.m4: New file containing library-related checks from
68951         fileutils and sh-utils (textutils had none).
68952
68953 2000-01-28  Jim Meyering  <meyering@lucent.com>
68954
68955         * m4/perl.m4: Change format of warning message to look more like that
68956         from the missing script.  Suggestion from François Pinard.
68957
68958 2000-01-25  Jim Meyering  <meyering@lucent.com>
68959
68960         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
68961         well as time.h in the compile check.
68962         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
68963         Fix typo in cross-compiling case: s/yes/no/.
68964
68965 2000-01-23  Jim Meyering  <meyering@lucent.com>
68966
68967         * m4/jm-macros.m4: Move df-related tests here from
68968         fileutils/configure.in
68969
68970         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
68971         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
68972
68973         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
68974         s/space/ac_fsusage_space/.
68975         (jm_FILE_SYSTEM_USAGE): Take two parameters.
68976
68977         * m4/ftruncate.m4: New file (derived from part of
68978         fileutils/configure.in).
68979         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
68980         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
68981
68982         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
68983         AC_SUBST these here, rather than just in sh-util/configure.in, so
68984         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
68985         all the same.
68986         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
68987         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
68988         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
68989         (AC_SUBST(POW_LIBM)): Likewise.
68990         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
68991
68992 2000-01-23  Jim Meyering  <meyering@lucent.com>
68993
68994         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
68995         obstack.c.
68996
68997 2000-01-22  Jim Meyering  <meyering@lucent.com>
68998
68999         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69000
69001         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69002
69003         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69004         configure.in
69005         (AC_CHECK_HEADERS): Likewise for sh-utils.
69006         (AC_CHECK_HEADERS): Likewise for textutils.
69007         Merge the three lists of headers.
69008
69009         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69010         from fileutils' configure.in.
69011
69012         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69013         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69014         check-decl.m4.
69015
69016         * m4/check-decl.m4: Use #if rather than #ifdef.
69017         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69018         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69019         (_jm_DECL_HEADERS): Define new function.
69020         (jm_CHECK_DECLARATIONS): Require it.
69021
69022 2000-01-22  Jim Meyering  <meyering@lucent.com>
69023
69024         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69025         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69026         Required for some AIX systems.  Reported by Christian Krackowizer.
69027         [TESTING] (main): New function.
69028
69029         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69030         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69031         letters.
69032
69033         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69034         iswprint.
69035
69036         * lib/strverscmp.c (ISDIGIT): Define.
69037         (strverscmp): Use ISDIGIT, not isdigit.
69038
69039 2000-01-19  Jim Meyering  <meyering@lucent.com>
69040
69041         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69042         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69043         defines `struct timespec' in <sys/time.h>
69044
69045         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69046         Thanks to Akim for explaining.
69047
69048 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69049
69050         * lib/nanosleep.c (nanosleep):
69051         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69052         POSIX.1 doesn't require SA_INTERRUPT and some systems
69053         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69054         it's been part of POSIX.1 since day 1 (in 1988).
69055
69056 2000-01-17  Jim Meyering  <meyering@lucent.com>
69057
69058         * lib/interlock: Remove unused file.  Reported by François Pinard.
69059
69060 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69061
69062         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69063         alert, backslash, formfeed, and vertical tab unnecessarily in
69064         shell quoting style.
69065
69066 2000-01-16  Jim Meyering  <meyering@lucent.com>
69067
69068         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69069         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69070         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69071         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69072
69073 2000-01-16  Jim Meyering  <meyering@lucent.com>
69074
69075         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69076         because the latter didn't work.
69077
69078 2000-01-15  Jim Meyering  <meyering@lucent.com>
69079
69080         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69081         (AC_REPLACE_FUNCS): Add memcpy and memset.
69082         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69083         Add strpbrk.
69084         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69085
69086 2000-01-12  Jim Meyering  <meyering@lucent.com>
69087
69088         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69089         (jm_PREREQ): Use it.
69090         (jm_PREREQ_READUTMP): New macro.
69091         (jm_PREREQ): Use it.
69092
69093 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69094
69095         Quote multibyte characters correctly.
69096         * m4/c-bs-a.m4: New file.
69097         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69098         (jm_PREREQ): Use it.
69099
69100 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69101
69102         * m4/uintmax_t.m4: Port to autoconf 2.13.
69103
69104 2000-01-08  Jim Meyering  <meyering@ascend.com>
69105
69106         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69107         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69108
69109 2000-01-04  Jim Meyering  <meyering@ascend.com>
69110
69111         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69112         jm_STRUCT_DIRENT_D_TYPE.
69113         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69114         jm_STRUCT_DIRENT_D_INO.
69115         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69116         jm_STRUCT_UTIMBUF.
69117         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69118         renamings.
69119         * m4/utime.m4: Likewise.
69120
69121         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69122         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69123
69124 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69125
69126         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69127         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69128
69129 2000-01-02  Jim Meyering  <meyering@ascend.com>
69130
69131         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69132         remember if this is necessary.
69133
69134 1999-12-26  Jim Meyering  <meyering@ascend.com>
69135
69136         * m4/jm-macros.m4: Use it here.
69137         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69138
69139 1999-12-23  Jim Meyering  <meyering@ascend.com>
69140
69141         * m4/jm-macros.m4: Check for clock_gettime (moved from
69142         fileutils/configure.in)
69143         Check for gettimeofday.
69144
69145 1999-12-20  Jim Meyering  <meyering@ascend.com>
69146
69147         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69148         autoconf-2.14a-1999-12-20.
69149
69150 1999-12-19  Jim Meyering  <meyering@ascend.com>
69151
69152         * m4/lstat-slash.m4: New file.
69153         * m4/jm-macros.m4: Use the new macro:
69154         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69155
69156 1999-12-07  Jim Meyering  <meyering@ascend.com>
69157
69158         * m4/perl.m4: Require that File::Compare be available, too.
69159         Too many systems seem to lack it.
69160
69161         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69162         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69163
69164 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69165
69166         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69167         problem with the QNX 4.25 shell, which doesn't propagate exit
69168         status of failed commands inside shell assignments.
69169
69170 1999-11-17  Jim Meyering  <meyering@ascend.com>
69171
69172         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69173
69174 1999-11-07  Jim Meyering  <meyering@ascend.com>
69175
69176         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69177
69178 1999-11-06  Jim Meyering  <meyering@ascend.com>
69179
69180         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69181         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69182
69183 1999-11-05  Jim Meyering  <meyering@ascend.com>
69184
69185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69186         configure.in of textutils, fileutils, and sh-utils into this one
69187         (shared between those packages) file.
69188         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69189         AC_STRUCT_ST_BLKSIZE.
69190
69191 1999-11-03  Jim Meyering  <meyering@ascend.com>
69192
69193         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69194         of AC_CHECK_TYPE checks includes unistd.h.
69195         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69196         Suggestion from Akim Demaille.
69197
69198 1999-10-30  Jim Meyering  <meyering@ascend.com>
69199
69200         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69201         m4-quoted string.
69202         * m4/ls-mntd-fs.m4: Likewise.
69203         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69204         * m4/jm-winsz1.m4: Likewise.
69205
69206         * m4/const.m4: Remove file, since the fix made it into the experimental
69207         version of autoconf.
69208         * m4/mktime.m4: Likewise.
69209
69210         * m4/check-type.m4: Remove file, now that the latest version of
69211         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69212
69213         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69214         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69215         AC_CHECK_TYPE.
69216
69217 1999-10-04  Jim Meyering  <meyering@ascend.com>
69218
69219         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69220
69221 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69222
69223         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69224         2.95.1 bug with HP-UX 10.20.
69225
69226 1999-09-17  Jim Meyering  <meyering@ascend.com>
69227
69228         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69229         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69230         due to missing strdup (against sh-utils-2.0).
69231
69232 1999-08-29  Jim Meyering  <meyering@ascend.com>
69233
69234         * m4/jm-macros.m4: Require jm_BISON.
69235         * m4/bison.m4: New file.
69236
69237 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69238
69239         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69240         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69241
69242 1999-08-05  Jim Meyering  <meyering@ascend.com>
69243
69244         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69245         to avoid conflicts with `conftest' on 8+3 filesystems.
69246         Suggestion from Eli Zaretskii.
69247
69248 1999-08-04  Jim Meyering  <meyering@ascend.com>
69249
69250         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69251         fileutils and sh-utils (textutils's getline test was inadequate).
69252         (AM_FUNC_GETLINE): Run this test.
69253         (AC_CHECK_FUNCS): Check for getdelim.
69254         Reported by Bob Proulx.
69255
69256 1999-08-02  Jim Meyering  <meyering@ascend.com>
69257
69258         * m4/jm-macros.m4: Add a comment.
69259
69260 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69261
69262         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69263         <inttypes.h> defines strtoumax as a macro (and not as a
69264         function).
69265
69266 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69267
69268         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69269         that we can shift, multiply and divide unsigned long long
69270         values; Ultrix cc can't do it.
69271
69272 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69273
69274         * m4/mktime.m4: New file, which is a preview of what should appear
69275         in the next public autoconf release.
69276
69277 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69278
69279         * m4/lfs.m4: Remove this file.
69280         * m4/largefile.m4: New file.  It contains the old contents of
69281         lfs.m4, except that all names with prefix AC_LFS have been
69282         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69283         compatible with future autoconf versions.  Also, some minor m4
69284         quoting problems have been fixed.
69285
69286 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69287
69288         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69289         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69290         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69291         and simplify the shell code.
69292
69293 1999-08-01  Jim Meyering  <meyering@ascend.com>
69294
69295         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69296         m4.
69297
69298 1999-07-20  Jim Meyering  <meyering@ascend.com>
69299
69300         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69301
69302 1999-07-15  Jim Meyering  <meyering@ascend.com>
69303
69304         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69305
69306 1999-05-22  Jim Meyering  <meyering@ascend.com>
69307
69308         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69309
69310 1999-05-20  Jim Meyering  <meyering@ascend.com>
69311
69312         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69313         Add a colon after each `then' in case $4 is empty.
69314
69315 1999-05-16  Jim Meyering  <meyering@ascend.com>
69316
69317         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69318
69319 1999-05-10  Jim Meyering  <meyering@ascend.com>
69320
69321         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69322
69323         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69324         AC_FUNC_MKTIME.
69325
69326 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69327
69328         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69329
69330 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69331
69332         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69333         not CPPFLAGS, so that linking works correctly in IRIX.
69334
69335 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69336
69337         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69338
69339 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69340
69341         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69342         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69343         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69344         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69345         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69346
69347         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69348
69349 1999-04-20  Jim Meyering  <meyering@ascend.com>
69350
69351         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69352         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69353         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69354
69355 1999-04-18  Jim Meyering  <meyering@ascend.com>
69356
69357         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69358         * m4/jm-macros.m4: Use it.
69359
69360 1999-04-06  Jim Meyering  <meyering@ascend.com>
69361
69362         * m4/strftime.m4: Remove test for %f.
69363
69364 1999-03-29  Jim Meyering  <meyering@ascend.com>
69365
69366         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69367         superset of the AC_TYPE_* checks in the textutils, fileutils,
69368         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69369         AC_TYPE_PID_T.
69370
69371 1999-03-28  Jim Meyering  <meyering@ascend.com>
69372
69373         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69374         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69375         replaced e.g., in the *.sh files of the sh-utils.
69376
69377 1999-03-20  Jim Meyering  <meyering@ascend.com>
69378
69379         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69380         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69381         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69382
69383 1999-03-19  Jim Meyering  <meyering@ascend.com>
69384
69385         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69386
69387 1999-03-12  Jim Meyering  <meyering@ascend.com>
69388
69389         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69390
69391 1999-03-07  Jim Meyering  <meyering@ascend.com>
69392
69393         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69394         declared.
69395
69396 1999-02-17  Jim Meyering  <meyering@ascend.com>
69397
69398         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69399         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69400
69401 1999-02-07  Jim Meyering  <meyering@ascend.com>
69402
69403         * m4/group-member.m4: New file -- extracted from sh-utils'
69404         configure.in.
69405
69406         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69407         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69408
69409 1999-02-06  Jim Meyering  <meyering@ascend.com>
69410
69411         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69412         * m4/fnmatch.m4: Likewise.
69413         * m4/getgroups.m4: Likewise.
69414         * m4/lstat.m4: Likewise.
69415         * m4/malloc.m4: Likewise.
69416         * m4/putenv.m4: Likewise.
69417         * m4/realloc.m4: Likewise.
69418         * m4/regex.m4: Likewise.
69419         * m4/stat.m4: Likewise.
69420         * m4/strftime.m4: Likewise.
69421         Suggestion from Alain Magloire.
69422
69423         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69424         * m4/fnmatch.m4: Likewise.
69425         * m4/getgroups.m4: Likewise.
69426         * m4/getline.m4: Likewise.
69427         * m4/lstat.m4: Likewise.
69428         * m4/malloc.m4: Likewise.
69429         * m4/memcmp.m4: Likewise.
69430         * m4/putenv.m4: Likewise.
69431         * m4/realloc.m4: Likewise.
69432         * m4/regex.m4: Likewise.
69433         * m4/stat.m4: Likewise.
69434         * m4/strftime.m4: Likewise.
69435         Suggestion from Alain Magloire.
69436
69437         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69438         an argument.
69439
69440         * m4/regex.m4: Add a run-time Test for proper operation of
69441         re_compile_pattern.
69442
69443 1999-01-31  Jim Meyering  <meyering@ascend.com>
69444
69445         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69446
69447 1999-01-30  Jim Meyering  <meyering@ascend.com>
69448
69449         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69450
69451         * m4/jm-mktime.m4: Make this a wrapper around the official
69452         AM_FUNC_MKTIME rather than my private copy, now that the official one
69453         is up to date.
69454         * m4/mktime.m4: Remove file.
69455
69456         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69457         * m4/uptime.m4: Likewise.
69458         * m4/uintmax_t.m4: Likewise.
69459
69460 1999-01-28  Jim Meyering  <meyering@ascend.com>
69461
69462         * m4/jm-macros.m4: Use jm_AFS.
69463         * m4/afs.m4: New file (from fileutils' configure.in).
69464
69465         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69466         * m4/chown.m4: Likewise.
69467         * m4/d-ino.m4: Likewise.
69468         * m4/d-type.m4: Likewise.
69469         * m4/fnmatch.m4: Likewise.
69470         * m4/getgroups.m4: Likewise.
69471         * m4/gettext.m4: Likewise.
69472         * m4/jm-mktime.m4: Likewise.
69473         * m4/jm-winsz2.m4: Likewise.
69474         * m4/lcmessage.m4: Likewise.
69475         * m4/ls-mntd-fs.m4: Likewise.
69476         * m4/malloc.m4: Likewise.
69477         * m4/memcmp.m4: Likewise.
69478         * m4/putenv.m4: Likewise.
69479         * m4/realloc.m4: Likewise.
69480         * m4/st_mtim.m4: Likewise.
69481         * m4/strftime.m4: Likewise.
69482
69483 1999-01-16  Jim Meyering  <meyering@ascend.com>
69484
69485         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69486         (ARGMATCH_DIE_DECL): Define.
69487
69488 1999-01-12  Jim Meyering  <meyering@ascend.com>
69489
69490         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69491         Reported by Lars Hecking.
69492
69493 1999-01-10  Jim Meyering  <meyering@ascend.com>
69494
69495         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69496         gross kludge.
69497         * m4/inttypes_h.m4: Likewise.
69498         * m4/lstat.m4: Likewise.
69499         * m4/malloc.m4: Likewise.
69500         * m4/readdir.m4: Likewise.
69501         * m4/realloc.m4: Likewise.
69502         * m4/st_dm_mode.m4: Likewise.
69503         * m4/stat.m4: Likewise.
69504         * m4/utimbuf.m4: Likewise.
69505         * m4/utimes.m4: Likewise.
69506
69507         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69508         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69509         comments in config.h.in are meaningful.
69510
69511         * m4/jm-macros.m4: Require autoconf-2.13 here.
69512
69513         * m4/regex.m4: By default, don't use the included regex.c on systems
69514         with glibc 2.  Suggestion from Uli Drepper.
69515
69516 1999-01-02  Jim Meyering  <meyering@ascend.com>
69517
69518         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69519
69520 1998-12-18  Jim Meyering  <meyering@ascend.com>
69521
69522         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69523         Based on a suggestion from Lars Hecking.
69524
69525 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69526
69527         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69528
69529 1998-11-16  Jim Meyering  <meyering@ascend.com>
69530
69531         * m4/lfs.m4: Double-quote the `uname...` expression.
69532
69533 1998-11-14  Jim Meyering  <meyering@ascend.com>
69534
69535         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69536         * m4/stat.m4: Likewise.
69537
69538 1998-11-03  Jim Meyering  <meyering@ascend.com>
69539
69540         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69541         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69542
69543 1998-10-18  Jim Meyering  <meyering@ascend.com>
69544
69545         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69546
69547 1998-10-17  Jim Meyering  <meyering@ascend.com>
69548
69549         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69550         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69551         calls for those previously hard-coded headers.  Instead, take a new
69552         parameter.
69553         (jm_CHECK_DECLARATIONS): Reflect interface change.
69554         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69555         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69556
69557         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69558
69559 1998-10-14  Jim Meyering  <meyering@ascend.com>
69560
69561         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69562         instead of "TZ=America/Vancouver".  From Paul Eggert.
69563
69564 1998-10-11  Jim Meyering  <meyering@ascend.com>
69565
69566         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69567         This adds a test for a recently added compatibility fix for mktime.c.
69568         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69569
69570 1998-09-27  Jim Meyering  <meyering@ascend.com>
69571
69572         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69573
69574         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69575         ../configure.in, including a change from Gordon Matzigkeit to allow
69576         cross-compiling for the Hurd.
69577
69578         * m4/glibc.m4: New file/macro to test for the GNU C Library
69579         versions 1 and 2.  From Gordon Matzigkeit.
69580         Indent.
69581
69582 1998-09-21  Jim Meyering  <meyering@ascend.com>
69583
69584         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69585
69586 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69587
69588         Port nanosecond-resolution times to UnixWare 2.1.2 and
69589         pedantic Solaris 2.6.
69590
69591         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69592         AC_STRUCT_ST_MTIM.
69593         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69594         Generate name of ns member, instead of just 1 or undef.
69595         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69596
69597 1998-08-15  Jim Meyering  <meyering@ascend.com>
69598
69599         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69600         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69601         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69602         instead of jm_TYPE_SSIZE_T.
69603
69604 1998-08-12  Jim Meyering  <meyering@ascend.com>
69605
69606         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69607
69608 1998-08-02  Jim Meyering  <meyering@ascend.com>
69609
69610         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69611         in acconfig.h manually.
69612
69613 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69614
69615         * m4/st_mtim.m4: New file.
69616
69617 1998-07-28  Jim Meyering  <meyering@ascend.com>
69618
69619         * m4/utimes.m4: Undef stat.
69620
69621 1998-07-25  Jim Meyering  <meyering@ascend.com>
69622
69623         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69624         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69625
69626 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
69627
69628         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
69629         uid and gid actually remain unchanged.
69630
69631 1998-07-07  Jim Meyering  <meyering@ascend.com>
69632
69633         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
69634
69635 1998-07-04  Jim Meyering  <meyering@ascend.com>
69636
69637         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
69638         to prove that this macro can be used in packages without regex.c.
69639
69640 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
69641
69642         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
69643         is to be used.
69644
69645 1998-07-03  Jim Meyering  <meyering@ascend.com>
69646
69647         * m4/gettext.m4: Add -lintl if it's found to be necessary.
69648
69649         * m4/gettext.m4: New file -- from gettext-0.10.35.
69650         * m4/lcmessage.m4: Likewise.
69651         * m4/progtest.m4: Likewise.
69652
69653         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
69654         * m4/jm-macros.m4: Require the new macro.
69655
69656 1998-06-29  Jim Meyering  <meyering@ascend.com>
69657
69658         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
69659         for the definition of NGROUPS (used in a system header included
69660         by sys/mount.h).
69661
69662 1998-06-28  Jim Meyering  <meyering@ascend.com>
69663
69664         * m4/ls-mntd-fs.m4: New file.
69665         * m4/fstypename.m4: New file.
69666
69667         * m4/jm-macros.m4: Require the new macro.
69668         * m4/jm-glibc-io.m4: New file.
69669
69670 1998-05-19  Jim Meyering  <meyering@ascend.com>
69671
69672         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
69673         * m4/lchown.m4: New file.
69674
69675         * m4/Makefile.am.in: New file.
69676         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
69677
69678 1998-05-14  Jim Meyering  <meyering@ascend.com>
69679
69680         * m4/Makefile.am (EXTRA_DIST): Add them.
69681         * m4/jm-macros.m4: New file.
69682         * m4/utimbuf.m4: New file.
69683
69684 1998-05-12  Jim Meyering  <meyering@ascend.com>
69685
69686         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
69687
69688 1998-05-11  Jim Meyering  <meyering@ascend.com>
69689
69690         * m4/isc-posix.m4: New file.
69691
69692 1998-05-10  Jim Meyering  <meyering@ascend.com>
69693
69694         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
69695
69696 1998-05-09  Jim Meyering  <meyering@ascend.com>
69697
69698         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
69699         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
69700         with automake.
69701
69702         * m4/ssize_t.m4: New file.
69703         * m4/mktime.m4: Remove file -- the new automake has this now.
69704
69705 1998-04-26  Jim Meyering  <meyering@ascend.com>
69706
69707         * m4/assert.m4: New file.
69708         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
69709
69710 1998-04-05  Jim Meyering  <meyering@ascend.com>
69711
69712         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
69713         (jm_PREREQ): Use it here.
69714
69715 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
69716
69717         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
69718         in acconfig.h.
69719
69720 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
69721
69722         * m4/prereq.m4: New file.
69723         * m4/error.m4: New file.
69724         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
69725
69726 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
69727
69728         * m4/getline.m4: Don't set am_cv_func_working_getline before the
69729         cache-check for the same variable -- that defeated the purpose of
69730         the test; the test program was never run.  This was a problem only
69731         on systems with losing getline functions -- HP-UX 10.20 is one.
69732         Reported by Bjorn Helgaas.
69733
69734 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
69735
69736         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
69737
69738 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
69739
69740         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
69741
69742         * m4/const.m4: New file.  Use an initializer in this declaration
69743         typedef int charset[2]; const charset x;
69744         Reported by Bob Glickstein.
69745
69746 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
69747
69748         * m4/chown.m4: Fix reversed types on -1 args to chown.
69749         From Kaveh Ghazi.
69750
69751 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
69752
69753         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
69754         Add lseek and memchr.
69755
69756         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
69757         T.E.Dickey <dickey@clark.net> said that some older preprocessors
69758         have a 20-character limit on names.
69759
69760 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
69761
69762         * m4/inttypes_h.m4: New file.
69763         * m4/uintmax_t.m4: New file.
69764         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
69765
69766
69767         -----
69768
69769         Local Variables:
69770         coding: utf-8
69771         End:
69772
69773         Copyright (C) 1997-2010 Free Software Foundation, Inc.
69774
69775         Copying and distribution of this file, with or without
69776         modification, are permitted provided the copyright notice
69777         and this notice are preserved.