f3a5ffb3bca208f0c4e23f06618f1f82f644d76d
[gnulib.git] / ChangeLog
1 2010-09-07  Eric Blake  <eblake@redhat.com>
2
3         getopt: handle POSIXLY_CORRECT set but not exported
4         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
5         export state of POSIXLY_CORRECT, due to bash set -o posix.
6         Reported by Dustin J. Mitchell.
7
8 2010-09-05  Bruno Haible  <bruno@clisp.org>
9
10         gnulib-tool: Highlight the changed options.
11         * gnulib-tool (func_usage): Display the --import, --add-import,
12         --remove-import explanations in bold font.
13
14 2010-09-06  Karl Berry  <karl@gnu.org>
15
16         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17
18 2010-09-05  Bruno Haible  <bruno@clisp.org>
19
20         uniwidth/width: Update comment.
21         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
23
24 2010-09-05  Bruno Haible  <bruno@clisp.org>
25
26         isinf, isnan: Relax license.
27         * modules/isinf (License): Change from GPL to LGPL, with consent from
28         Ben Pfaff.
29         * modules/isnan (License): Likewise.
30         Requested by Ludovic Courtès.
31
32 2010-09-04  Bruno Haible  <bruno@clisp.org>
33
34         gnulib-tool: Help migration from --import to --add-import or --update.
35         * gnulib-tool: Emit a verbose error message when --import is used
36         without any module name.
37
38 2010-09-04  Bruno Haible  <bruno@clisp.org>
39
40         Update doc about gnulib-tool.
41         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
42         'gnulib-tool --update' in more detail.
43         Reported by Eric Blake.
44
45 2010-09-04  Bruno Haible  <bruno@clisp.org>
46
47         gnulib-tool: Change --import. New options --add/remove-import.
48         * gnulib-tool: New options --add-import, --remove-import.
49         (func_usage): Document them.
50         (have_associative): Define always.
51         (func_import): In import mode, don't merge the specified settings with
52         the cached settings. Implement remove-import mode.
53         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
54         Explain when to use them versus --import.
55         (Simple update): Use --add-import instead of --import.
56         * NEWS: Mention the change.
57
58 2010-09-04  Bruno Haible  <bruno@clisp.org>
59
60         * doc/gnulib-tool.texi (Initial import): Update paragraph about
61         separate gnulib.mk.
62
63 2010-09-04  Bruno Haible  <bruno@clisp.org>
64
65         gnulib-tool: Don't talk about CVS any more.
66         * gnulib-tool (func_usage, func_import): Write "version control"
67         instead of CVS.
68
69 2010-09-04  Jim Meyering  <meyering@redhat.com>
70
71         maint.mk: avoid obscure sc_copyright_check failure in coreutils
72         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
73         false positives (whose names may be ill-chosen) when searching
74         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
75         would cause a false-positive.
76
77         avoid coreutils "make distcheck" failure
78         Coreutils tests with an absolute build directory name that contains
79         a space.  Not quoting this directory name caused a failure.
80         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
81         * tests/test-vc-list-files-cvs.sh: Likewise.
82
83 2010-09-04  Bruno Haible  <bruno@clisp.org>
84
85         gnulib-tool: Avoid error when run in a package without Makefile.am.
86         * gnulib-tool: When collecting the m4dirs in a package that does not
87         have a Makefile.am, eliminate those directories that contain no
88         gnulib-cache.m4. Fix expression that counts these directories.
89
90 2010-09-04  Bruno Haible  <bruno@clisp.org>
91
92         update-copyright test: Improve output when perl is missing or too old.
93         * tests/test-update-copyright.sh: Move test of Perl version down after
94         the test whether Perl exists. Provide an explanation relating Perl's
95         error message to Automake's SKIP: message.
96
97 2010-09-04  Bruno Haible  <bruno@clisp.org>
98
99         Don't augment PATH in TESTS_ENVIRONMENT.
100         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
101         set abs_aux_dir instead of augmenting PATH.
102         * modules/vc-list-files-tests (Makefile.am): Likewise.
103         * tests/test-update-copyright.sh: Augment PATH here.
104         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
105         path_prepend_.
106         * tests/test-vc-list-files-git.sh: Likewise.
107
108 2010-09-04  Jim Meyering  <meyering@redhat.com>
109
110         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
111         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
112
113 2010-09-04  Bruno Haible  <bruno@clisp.org>
114
115         strdup: Fix compilation error in C++ mode.
116         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
117         the macro.
118
119 2010-09-04  Bruno Haible  <bruno@clisp.org>
120
121         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
122         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
123         macro into a function.
124         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
125
126 2010-09-04  Bruno Haible  <bruno@clisp.org>
127
128         Set PATH_SEPARATOR the same way autoconf does.
129         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
130         the value of PATH_SEPARATOR the same way autoconf-generated configure
131         scripts do.
132         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
133         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
134
135 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
136
137         Set PATH_SEPARATOR the same way autoconf does.
138         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
139         the same way autoconf-generated configure scripts do.
140         * posix-modules: Likewise.
141
142 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
143
144         hash: fix safe_hasher const typo
145         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
146         const; otherwise, there is a type error later.
147
148 2010-09-02  Jim Meyering  <meyering@redhat.com>
149
150         test-update-copyright.sh: require perl 5.8.0
151         * tests/test-update-copyright.sh: Require 5.8.0,
152         which Tom G. Christensen has confirmed is adequate,
153         while 5.6.1 is not.
154
155 2010-09-02  Eric Blake  <eblake@redhat.com>
156
157         tests: init.sh improvements for re-exec'ing with zsh
158         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
159         -vx through shell re-exec.
160         Reported by Tom G. Christensen.
161
162         wctype: fix typo in previous commit
163         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
164         Reported by Ludovic Courtès.
165
166 2010-09-02  Jim Meyering  <meyering@redhat.com>
167
168         test-update-copyright.sh: skip test if Perl is too old
169         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
170         Reported by Tom G. Christensen.
171
172 2010-09-02  Bruno Haible  <bruno@clisp.org>
173
174         wctype: Avoid compilation error on IRIX 6.5.30.
175         * lib/wctype.in.h (iswblank): Declare with a replacement if
176         REPLACE_ISWBLANK is set.
177         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
178         declared. Set REPLACE_ISWBLANK.
179         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
180         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
181         * doc/posix-headers/wctype.texi: Likewise.
182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
183
184 2010-09-01  Bruno Haible  <bruno@clisp.org>
185
186         New module 'socketlib'.
187         * modules/socketlib: New file.
188         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
189         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
190         * modules/sockets (Depends-on): Add socketlib.
191         Suggested by Sam Steingold <sds@gnu.org>.
192
193 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
194
195         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
196
197         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
198         when one needs search access to a directory but not read access.
199         On systems where it is available, it works in some cases where
200         O_RDONLY does not, namely on directories that are searchable but
201         not readable, and which need only to be searchable.  If O_SEARCH
202         is not available, fall back to the traditional method of using
203         O_RDONLY.
204
205         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
206         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
207         when opening a directory that needs only to be searchable.
208         * lib/chdir-safer.c (chdir_no_follow): Likewise.
209         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
210         * lib/openat-proc.c (openat_proc_name): Likewise.
211         * lib/openat.c (openat_needs_fchdir): Likewise.
212         * lib/save-cwd.c (save_cwd): Likewise.
213         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
214
215 2010-08-28  Bruno Haible  <bruno@clisp.org>
216
217         New module 'host-cpu-c-abi'.
218         * modules/host-cpu-c-abi: New file.
219         * m4/host-cpu-c-abi.m4: New file, based on part of
220         clisp/src/m4/general.m4.
221         Requested by Sam Steingold <sds@gnu.org>.
222
223 2010-08-31  Eric Blake  <eblake@redhat.com>
224         and Jim Meyering  <meyering@redhat.com>
225
226         hash: factor, and guard against misbehaving hasher function
227         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
228         of table->hasher's return value.  Also protect against a hash value
229         so large that adding it to table->bucket results in a NULL pointer.
230         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
231         Use it in place of open-coded check-and-abort.
232
233 2010-08-30  Bruno Haible  <bruno@clisp.org>
234
235         hash: silence spurious clang warning
236         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
237         Reported by Eric Blake.
238
239 2010-08-30  Eric Blake  <eblake@redhat.com>
240
241         strstr, memmem, strcasestr: avoid leaked shell message
242         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
243         FreeBSD.
244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
245         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
246
247         tests: silence clang warning
248         * tests/test-malloca.c (do_allocation): Avoid dead store.
249
250 2010-08-29  Bruno Haible  <bruno@clisp.org>
251
252         gettext: Fix recent mistake.
253         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
254
255 2010-08-29  Bruno Haible  <bruno@clisp.org>
256
257         selinux-h: Offer a --without-selinux option.
258         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
259         --without-selinux was specified, skip all tests and define
260         HAVE_SELINUX_SELINUX_H to 0.
261         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
262         set LIB_SELINUX to empty.
263         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
264         gl_LIBSELINUX. If --without-selinux was specified, replace
265         selinux/context.h.
266         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
267
268 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
269             Bruno Haible  <bruno@clisp.org>
270
271         Make the module 'realloc-gnu' work again on AIX and OSF/1.
272         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
273         of HAVE_REALLOC.
274         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
275         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
276         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
277         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
278
279 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
280             Bruno Haible  <bruno@clisp.org>
281
282         Make the module 'calloc-gnu' work again on AIX and OSF/1.
283         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
284         HAVE_CALLOC.
285         * lib/xmalloc.c: Update accordingly.
286         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
287         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
288         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
289
290 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
291             Bruno Haible  <bruno@clisp.org>
292
293         Make the module 'malloc-gnu' work again on AIX and OSF/1.
294         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
295         HAVE_MALLOC.
296         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
297         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
298         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
299
300 2010-08-29  Bruno Haible  <bruno@clisp.org>
301
302         Update modules list.
303         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
304         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
305         (String handling <string.h>): Add astrxfrm.
306         (File system functions): Add readlinkat.
307
308 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
309
310         Tests for module 'realloc-gnu'.
311         * modules/realloc-gnu-tests: New file.
312         * tests/test-realloc-gnu.c: New file.
313
314         Tests for module 'calloc-gnu'.
315         * modules/calloc-gnu-tests: New file.
316         * tests/test-calloc-gnu.c: New file.
317
318         Tests for module 'malloc-gnu'.
319         * modules/malloc-gnu-tests: New file.
320         * tests/test-malloc-gnu.c: New file.
321
322 2010-08-28  Bruno Haible  <bruno@clisp.org>
323
324         Rename module 'realloc' -> 'realloc-gnu'.
325         * modules/realloc-gnu: New file, copied from modules/realloc.
326         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
327         obsolete.
328         * modules/mgetgroups (Depends-on): Update.
329         * doc/posix-functions/realloc.texi: Update.
330         * NEWS: Mention the change.
331
332         Rename module 'calloc' -> 'calloc-gnu'.
333         * modules/calloc-gnu: New file, copied from modules/calloc.
334         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
335         obsolete.
336         * doc/posix-functions/calloc.texi: Update.
337         * NEWS: Mention the change.
338
339         Rename module 'malloc' -> 'malloc-gnu'.
340         * modules/malloc-gnu: New file, copied from modules/malloc.
341         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
342         obsolete.
343         * modules/argp (Depends-on): Update.
344         * modules/regex (Depends-on): Update.
345         * doc/posix-functions/malloc.texi: Update.
346         * NEWS: Mention the change.
347
348 2010-08-28  Eric Blake  <eblake@redhat.com>
349
350         pread, pwrite: add missing dependency
351         * modules/pread (Depends-on): Add extensions.
352         * modules/pwrite (Depends-on): Likewise.
353
354 2010-08-28  Bruno Haible  <bruno@clisp.org>
355
356         unistr/u*-strchr: Fix tests dependencies.
357         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
358         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
359         Reported by Ian Beckwith <ianb@erislabs.net>.
360
361 2010-08-28  Bruno Haible  <bruno@clisp.org>
362
363         read-file: Don't occupy too much unused memory.
364         * lib/read-file.c (fread_file): Shrink the buffer at the end.
365
366 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
367             Eric Blake  <eblake@redhat.com>
368             Bruno Haible  <bruno@clisp.org>
369
370         read-file: Avoid memory reallocations with regular files.
371         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
372         (fread_file): With regular files, use the remaining length as the
373         initial buffer size.  Check against overflow.
374         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
375         sys_stat.
376
377 2010-08-28  Bruno Haible  <bruno@clisp.org>
378
379         ftello: Relax license.
380         * modules/ftello (License): Relax to LGPLv2+.
381         Reported by Eric Blake.
382
383 2010-08-28  Bruno Haible  <bruno@clisp.org>
384
385         Avoid relocwrapper link errors due to gnulib replacement functions.
386         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
387         function.
388         Reported by Ben Pfaff <blp@cs.stanford.edu>.
389
390 2010-08-28  Bruno Haible  <bruno@clisp.org>
391
392         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
393         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
394         defined.
395         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
396         Suggested by Eric Blake.
397
398 2010-08-28  Bruno Haible  <bruno@clisp.org>
399
400         sys_socket, netdb: Ensure socklen_t gets defined.
401         * modules/sys_socket (Depends-on): Add socklen.
402         * modules/netdb (Depends-on): Likewise.
403         * modules/getaddrinfo (Depends-on): Remove socklen.
404         * modules/getsockopt (Depends-on): Likewise.
405         * modules/setsockopt (Depends-on): Likewise.
406         * tests/test-sys_socket.c: Check that socklen_t is defined.
407         * tests/test-netdb.c: Likewise.
408         * m4/socklen.m4: Update comments.
409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
410
411 2010-08-27  Eric Blake  <eblake@redhat.com>
412
413         login_tty: add missing dependency
414         * modules/login_tty (Depends-on): Add pty.
415
416 2010-08-26  Eric Blake  <eblake@redhat.com>
417
418         lib-symbol-versions: fix m4 quoting
419         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
420         format for AC_LINK_IFELSE.
421
422         glob: fix compile test
423         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
424
425         btowc: fix missing file
426         * modules/btowc (Files): Also ship locale-fr.m4.
427
428         lseek: fix link test
429         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
430         AC_LINK_IFELSE.
431
432         include_next: silence autoconf 2.68 warning
433         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
434         AC_COMPILE_IFELSE as special.
435         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
436         autoconf < 2.68.
437
438         acl: fix compilation test
439         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
440         AC_COMPILE_IFELSE.
441
442 2010-08-26  Bruno Haible  <bruno@clisp.org>
443
444         Modernize AC_TRY_RUN invocations.
445         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
446         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
447         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
448         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
449         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
450         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
451         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
452         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
453         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
454         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
455         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
456         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
457         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
458         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
459         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
460         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
461         gl_MBRLEN_NUL_RETVAL): Likewise.
462         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
463         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
464         Likewise.
465         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
466         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
467         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
468         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
469         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
470         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
471         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
472         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
473         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
474         Likewise.
475         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
476         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
477         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
478         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
479         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
480         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
481         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
482         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
483         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
485
486 2010-08-26  Bruno Haible  <bruno@clisp.org>
487
488         Modernize AC_TRY_LINK invocations.
489         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
490         AC_TRY_LINK.
491         * m4/argp.m4 (gl_ARGP): Likewise.
492         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
493         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
494         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
495         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
496         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
497         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
498         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
499         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
500         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
501         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
502         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
503         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
504         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
505         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
506         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
507         * m4/hostent.m4 (gl_HOSTENT): Likewise.
508         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
509         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
510         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
511         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
512         Likewise.
513         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
514         Likewise.
515         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
516         Likewise.
517         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
518         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
519         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
520         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
521         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
522         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
523         * m4/servent.m4 (gl_SERVENT): Likewise.
524         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
525         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
526         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
527         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
528         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
529         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
530         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
532         * modules/tsearch-tests (configure.ac): Likewise.
533
534 2010-08-26  Bruno Haible  <bruno@clisp.org>
535
536         Modernize AC_TRY_COMPILE invocations.
537         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
538         AC_TRY_COMPILE.
539         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
540         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
541         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
542         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
543         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
544         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
545         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
546         * m4/lock.m4 (gl_LOCK): Likewise.
547         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
548         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
549         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
550         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
551         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
552         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
553         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
554         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
555         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
556         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
557         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
558         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
559         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
560         extraneous semicolon.
561
562 2010-08-26  Jim Meyering  <meyering@redhat.com>
563
564         stat-time: relax license LGPL
565         * modules/stat-time (License): Change from GPL to LGPL,
566         with consent from all contributors, for use in libguile.
567         Requested by Ludovic Courtès.
568
569 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
570
571         poll: return immediately on POLLHUP.
572         * lib/poll.c (poll): Always set timeout before wait_timeout is
573         computed.
574
575 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
576
577         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
578         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
579         rmdir ("dir/.//"), unlinkat.
580
581 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
582
583         stdbool: avoid spurious failure with modern xlc
584         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
585
586 2010-08-24  Bruno Haible  <bruno@clisp.org>
587
588         getloadavg: simplify code
589         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
590         gl_have_func. Update comments.
591
592 2010-08-24  Eric Blake  <eblake@redhat.com>
593
594         getloadavg: don't define SVR4 on cygwin
595         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
596         only define SVR4 when -lkvm is required.
597         Reported by Yaakov Selkowitz.
598
599 2010-08-24  Bruno Haible  <bruno@clisp.org>
600
601         priv-set: fix comment
602         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
603
604 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
605
606         priv-set: fix comments
607         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
608         to match code, as suggested by David Bartley in:
609         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
610
611 2010-08-23  Eric Blake  <eblake@redhat.com>
612
613         stdbool: avoid rejecting clang
614         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
615         * tests/test-stdbool.c: Enable more tests if using the system
616         <stdbool.h> instead of the gnulib replacement.
617         (main): Move xlc bug test to a runtime test for all compilers.
618         Reported by Anders Kaseorg.
619
620         argz: fix shell quoting issue
621         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
622         Reported by Charles Wilson.
623
624 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
625             Erik Faye-Lund <kusmabite@gmail.com>
626
627         poll, select: handle ERROR_BROKEN_PIPE.
628         * lib/poll.c (win32_compute_revents): Return POLLHUP when
629         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
630         * lib/select.c (win32_compute_revents): Do not mark a pipe
631         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
632
633 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
634
635         fts: allow compilation with C++
636         * lib/fts_.h: Specify extern "C" linkage with C++.
637
638 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
639
640         Fix gnulib-tool sed script de-commentation for AIX sed.
641         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
642         sed.
643
644 2010-08-17  Eric Blake  <eblake@redhat.com>
645
646         test-stddef: test for (some) offsetof bugs
647         * tests/test-stddef.c: Enhance test to ensure correct type of
648         offsetof.
649         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
650         that we are not fixing at this time.
651
652 2010-08-15  Bruno Haible  <bruno@clisp.org>
653
654         stpncpy: Allow stpncpy to be defined as a macro.
655         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
656         if it's already correctly declared.
657         * lib/string.in.h (stpncpy): Undefine before redefining.
658         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
659
660 2010-08-14  Bruno Haible  <bruno@clisp.org>
661
662         Rename module 'memxfrm' to 'amemxfrm'.
663         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
664         (amemxfrm): Renamed from memxfrm.
665         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
666         (amemxfrm): Renamed from memxfrm.
667         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
668         * NEWS: Mention the change.
669         * MODULES.html.sh (String handling <string.h>): Update.
670         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
671         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
672         * lib/unicase/u16-casexfrm.c: Likewise.
673         * lib/unicase/u32-casexfrm.c: Likewise.
674         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
675         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
676         * lib/uninorm/u16-normxfrm.c: Likewise.
677         * lib/uninorm/u32-normxfrm.c: Likewise.
678         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
679         memxfrm.
680         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
681         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
682         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
683         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
684         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
685         Suggested by Paul Eggert.
686
687 2010-08-14  Bruno Haible  <bruno@clisp.org>
688
689         Tests for module 'astrxfrm'.
690         * modules/astrxfrm-tests: New file.
691         * tests/test-astrxfrm.c: New file.
692
693         New module 'astrxfrm'.
694         * lib/astrxfrm.h: New file.
695         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
696         * modules/astrxfrm: New file.
697
698 2010-08-14  Reuben Thomas <rrt@sc3d.org>
699
700         regex: Tweak doc.
701         * doc/regex.texi (Overview): Don't mention regex.c.
702         (GNU Regular Expression Compiling): Likewise.
703         (Match-end-of-line Operator): Mention 'not_eol'.
704
705 2010-08-14  Brian Gough  <bjg@gnu.org>
706             Bruno Haible  <bruno@clisp.org>
707
708         git-merge-changelog: add doc relating to use with bzr and hg.
709         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
710
711 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
712
713         pthread: fix pthread.h creation for srcdir != builddir
714         * modules/pthread (Makefile.am): Fix the rule to work also in a
715         non-srcdir build.
716
717 2010-08-13  Karl Berry  <karl@gnu.org>
718
719         * doc/regex.texi (Predefined Syntaxes): @smallexample.
720         * doc/posix-*/*: force line break before @url of POSIX
721         specifications.
722         Suggested by Werner Lemberg.
723
724 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
725
726         strtod: fix const diagnostic
727         * lib/strtod.c (strtod): Don't assign const char * to char *,
728         as this elicits a warning from GCC when warnings are enabled.
729
730 2010-08-10  Pádraig Brady <P@draigbrady.com>
731         and Eric Blake  <eblake@redhat.com>
732
733         copy-acl: ignore ENOTSUP on HP-UX
734         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
735         so that it is available for HP-UX.
736         * lib/copy-acl.c (qcopy_acl): Use it.
737         Reported by Patrick M. Callahan.
738
739 2010-08-10  Eric Blake  <eblake@redhat.com>
740
741         open, chown: relax license
742         * modules/open (License): Change to LGPLv2+, with consent by all
743         authors, for use in augeas.
744         * modules/chown (License): Likewise.
745         * modules/lchown (Likewise): Likewise.
746         Requested by Adam Stokes.
747
748 2010-08-09  Karl Berry  <karl@gnu.org>
749
750         * build-aux/ar-lib: new file, import from Automake.
751         * config/srclist.txt: autocheck for updates.
752
753 2010-08-09  Eric Blake  <eblake@redhat.com>
754
755         readlinkat: adjust client modules
756         * modules/areadlinkat (Depends-on): Use readlinkat, not
757         symlinkat.
758         * modules/areadlinkat-with-size (Depends-on): Likewise.
759
760         mknod: be more vocal about danger of running tests as root
761         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
762         root, since that is just asking for problems.
763         Suggested by Bruno Haible, based on a report by Rainer Tammer.
764
765         readlinkat: split into its own module
766         * modules/symlinkat: Split readlinkat...
767         * modules/readlinkat: ...into separate module.
768         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
769         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
770         * lib/symlinkat.c (readlinkat): Move...
771         * lib/readlinkat.c: ...into new file.
772         * modules/symlinkat-tests: Split readlinkat test...
773         * modules/readlinkat-tests: ...into separate module.
774         * tests/test-symlinkat.c: Split...
775         * tests/test-readlinkat.c: ...into new file.
776         * NEWS: Document the split.
777         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
778         * lib/unistd.in.h (readlinkat): Likewise.
779         Suggested by Bruno Haible.
780
781 2010-08-08  Bruno Haible  <bruno@clisp.org>
782
783         memxfrm: Speed up.
784         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
785         that usually only one call to strxfrm is necessary for each string
786         part.
787         Reported by Paul Eggert <eggert@cs.ucla.edu>.
788
789 2010-08-07  Karl Berry  <karl@gnu.org>
790
791         * doc/posix-headers/limits.texi,
792         * doc/posix-functions/malloc.texi,
793         * doc/posix-functions/strsignal.texi: missing @item.
794         * doc/ld-version-script.texi: spurious leading i.
795         * doc/regex.texi (Interval Operators): no commas inside @var.
796
797 2010-08-01  Bruno Haible  <bruno@clisp.org>
798
799         Integrate the regex documentation.
800         * doc/gnulib.texi: Define 'cn' index.
801         (Regular expressions): New a chapter that includes regex.texi and
802         regexprops-generic.texi.
803         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
804         syntax.
805
806         Whitespace cleanup.
807         * doc/regex.texi: Remove trailing spaces.
808
809         Add regex documentation.
810         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
811         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
812         Written by Kathy A. Hargreaves and Karl Berry.
813
814 2010-08-01  Bruno Haible  <bruno@clisp.org>
815
816         link: Update documentation.
817         * doc/posix-functions/link.texi: Update regarding Solaris.
818
819 2010-07-31  Bruno Haible  <bruno@clisp.org>
820
821         Update modules list.
822         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
823         (String handling <string.h>): Add memcmp2, memxfrm.
824         (Container data structures): Add xlist, xsublist, xoset.
825         (Core language properties): Add alignof, unused-parameter.
826         (Process control, Numeric conversion functions <stdlib.h>): Renamed
827         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
828         (Unibyte characters <ctype.h>): New section.
829         (String handling <string.h>): New section.
830         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
831         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
832         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
833         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
834         tan, tanh, tanl, y0, y1, yn.
835         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
836         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
837         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
838         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
839         unlockpt, vdprintf, vdprintf-posix.
840         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
841         (File system functions): Add concat-filename, sys_file, sys_ioctl,
842         xconcat-filename.
843         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
844         getdtablesize, pipe2, pipe2-safer.
845         (Security): New section.
846         (Networking functions): Add accept4.
847         (Signal handling): Add sigpipe.
848         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
849         mbmemcasecoll.
850         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
851         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
852         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
853         pipe-filter-ii.
854         (Misc): Add argp-version-etc, login_tty, parse-duration.
855
856 2010-07-31  Bruno Haible  <bruno@clisp.org>
857
858         Improve doc in MODULES.html.
859         * modules/linkat (Description): Add the word "function".
860         * modules/mkfifo (Description): Likewise.
861         * modules/mknod (Description): Likewise.
862         * modules/remove (Description): Likewise.
863         * modules/renameat (Description): Likewise.
864         * modules/stat (Description): Likewise.
865         * modules/symlink (Description): Likewise.
866         * modules/unlink (Description): Likewise.
867
868 2010-07-31  Bruno Haible  <bruno@clisp.org>
869
870         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
871         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
872         option --enable/disable-c++ instead of --enable/disable-cxx.
873         * NEWS: Mention the change.
874
875 2010-07-31  Bruno Haible  <bruno@clisp.org>
876
877         readlink, areadlink: Relax test a bit.
878         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
879         alternative to ENOTDIR.
880         * tests/test-areadlink.h (test_areadlink): Likewise.
881         Reported by Rainer Tammer.
882
883 2010-07-31  Bruno Haible  <bruno@clisp.org>
884
885         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
886         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
887         character, perform the search using U_STRCHR.
888         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
889         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
890         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
891         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
892         Suggested by Paolo Bonzini.
893
894 2010-07-31  Bruno Haible  <bruno@clisp.org>
895
896         unistr/u*-strstr: Fix dependencies.
897         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
898         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
899         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
900
901 2010-07-31  Bruno Haible  <bruno@clisp.org>
902
903         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
904         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
905         the beginning of the loop.
906         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
907         cases in 'switch' statement.
908
909         unistr/u8-strchr: Fix several bugs.
910         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
911         the string. When not found, return NULL, not a pointer near the end.
912
913         More tests for unistr/u8-strchr.
914         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
915         that the function does not read past the first occurrence of the byte
916         being searched.
917         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
918         * tests/unistr/test-u16-strchr.c (main): New function.
919         * tests/unistr/test-u32-strchr.c (main): New function.
920
921 2010-07-31  Bruno Haible  <bruno@clisp.org>
922
923         posix-modules: Ignore backup files of documentation files.
924         * posix-modules: grep only through files named *.texi.
925
926 2010-07-31  Bruno Haible  <bruno@clisp.org>
927
928         symlinkat: Fix documentation.
929         * doc/posix-functions/readlinkat.texi: Fix module name.
930
931 2010-07-31  Bruno Haible  <bruno@clisp.org>
932
933         fchownat: Replace also when chown has the trailing slash bug.
934         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
935         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
936         introduced on 2010-04-10.
937         Reported by Rainer Tammer.
938
939 2010-07-31  Bruno Haible  <bruno@clisp.org>
940
941         linkat: Work around AIX 7.1 bug.
942         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
943         whether linkat handles trailing slash correctly. If not, replace linkat
944         and define LINKAT_TRAILING_SLASH_BUG.
945         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
946         check whether (fd1,file1) points to a directory if file1 or file2 ends
947         in a slash. Code taken from lib/link.c.
948         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
949         Reported by Rainer Tammer.
950
951 2010-07-31  Bruno Haible  <bruno@clisp.org>
952
953         Correctly determine whether pow is available in libc on AIX 7 with xlc.
954         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
955         This disables an xlc optimization that was causing wrong test results.
956         Reported by Rainer Tammer.
957
958 2010-07-31  Bruno Haible  <bruno@clisp.org>
959
960         iconv: Work around AIX 6.1..7.1 bug.
961         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
962         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
963         cross-compiling, guess no on all versions of AIX.
964         Reported by Rainer Tammer.
965
966 2010-07-31  Bruno Haible  <bruno@clisp.org>
967
968         readlink: Relax test a bit.
969         * tests/test-readlink.h (test_readlink): Allow different errno value
970         when readlink is called with a file name that ends in / and refers to
971         a file.
972         Suggested by Eric Blake.
973         Reported by Rainer Tammer.
974
975 2010-07-31  Bruno Haible  <bruno@clisp.org>
976
977         copysign: Does not require -lm on glibc systems.
978         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
979         gl_COMMON_DOUBLE_MATHFUNC.
980         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
981
982 2010-07-31  Bruno Haible  <bruno@clisp.org>
983
984         duplocale: Work around AIX 7.1 bug.
985         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
986         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
987         * lib/duplocale.c (rpl_duplocale): Update comment.
988         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
989         Reported by Rainer Tammer.
990
991 2010-07-30  Bruno Haible  <bruno@clisp.org>
992
993         dirfd: Avoid link error on AIX 7.1.
994         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
995         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
996         exist, set REPLACE_DIRFD.
997         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
998         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
999         * doc/posix-functions/dirfd.texi: Update.
1000         Reported by Rainer Tammer.
1001
1002 2010-07-30  Eric Blake  <eblake@redhat.com>
1003
1004         strtod: next round of AIX fixes
1005         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1006         exponent.
1007         * tests/test-strtod.c (main): Enhance tests.
1008         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1009         Reported by Rainer Tammer.
1010
1011         futimens: fix configure check
1012         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1013         Reported by Bruno Haible.
1014
1015 2010-07-30  Bruno Haible  <bruno@clisp.org>
1016
1017         getline: Update regarding AIX.
1018         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1019         Reported by Rainer Tammer.
1020
1021 2010-07-30  Bruno Haible  <bruno@clisp.org>
1022
1023         wcwidth: Drop replacement on AIX 7.
1024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1025         AIX 7.
1026         Reported by Rainer Tammer.
1027
1028 2010-07-30  Bruno Haible  <bruno@clisp.org>
1029
1030         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1031         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1032         a 'char *'.
1033         Reported by Rainer Tammer.
1034
1035 2010-07-30  Bruno Haible  <bruno@clisp.org>
1036
1037         unlink: Update regarding AIX.
1038         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1039         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1040         Reported by Rainer Tammer.
1041
1042 2010-07-30  Bruno Haible  <bruno@clisp.org>
1043
1044         symlink: Update regarding AIX.
1045         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1046         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1047         Reported by Rainer Tammer.
1048
1049 2010-07-30  Bruno Haible  <bruno@clisp.org>
1050
1051         strndup: Update regarding AIX.
1052         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1053         AIX 7.
1054         Reported by Rainer Tammer.
1055
1056 2010-07-30  Bruno Haible  <bruno@clisp.org>
1057
1058         stat: Update regarding AIX.
1059         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1060         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1061         Reported by Rainer Tammer.
1062
1063 2010-07-30  Bruno Haible  <bruno@clisp.org>
1064
1065         truncl: Fix autoconf test.
1066         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1067         whether truncl works.
1068         Reported by Rainer Tammer.
1069
1070 2010-07-30  Bruno Haible  <bruno@clisp.org>
1071
1072         round: Update regarding AIX.
1073         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1074         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1075         Reported by Rainer Tammer.
1076
1077 2010-07-30  Bruno Haible  <bruno@clisp.org>
1078
1079         rename: Update regarding AIX.
1080         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1081         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1082         Reported by Rainer Tammer.
1083
1084 2010-07-30  Bruno Haible  <bruno@clisp.org>
1085
1086         printf.m4: Update regarding AIX.
1087         * m4/printf.m4: Update comments regarding AIX.
1088         Reported by Rainer Tammer.
1089
1090 2010-07-30  Bruno Haible  <bruno@clisp.org>
1091
1092         iconv: Update regarding AIX.
1093         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1094         AIX 7.
1095         Reported by Rainer Tammer.
1096
1097 2010-07-30  Bruno Haible  <bruno@clisp.org>
1098
1099         getopt: Update regarding AIX.
1100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1101         no on AIX.
1102         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1103         Reported by Rainer Tammer.
1104
1105 2010-07-30  Bruno Haible  <bruno@clisp.org>
1106
1107         ldexpl; Update regarding AIX.
1108         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1109         on AIX 7.
1110         Reported by Rainer Tammer.
1111
1112 2010-07-30  Bruno Haible  <bruno@clisp.org>
1113
1114         frexpl: Update regarding AIX.
1115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1116         on AIX 7.
1117         Reported by Rainer Tammer.
1118
1119 2010-07-30  Bruno Haible  <bruno@clisp.org>
1120
1121         open, fopen: Update regarding AIX.
1122         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1123         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1124         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1125         * doc/posix-functions/fopen.texi: Likewise.
1126         Reported by Rainer Tammer.
1127
1128 2010-07-30  Bruno Haible  <bruno@clisp.org>
1129
1130         chown: Update doc regarding AIX.
1131         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1132         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1133         Reported by Rainer Tammer.
1134
1135 2010-07-30  Eric Blake  <eblake@redhat.com>
1136
1137         strtod: fix bug in replacement function on AIX
1138         * lib/strtod.c (strtod): Special case broken "0x" parse in
1139         underlying strtod.
1140         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1141         * doc/posix-functions/strtod.texi (strtod): Likewise.
1142         Reported by Rainer Tammer.
1143
1144 2010-07-30  Bruno Haible  <bruno@clisp.org>
1145
1146         mbrlen: Fix cross-compilation guess for AIX.
1147         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1148         guess. Leftover from 2008-12-22.
1149
1150 2010-07-30  Bruno Haible  <bruno@clisp.org>
1151
1152         mbrtowc: Fix cross-compilation guess for AIX.
1153         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1154         guess. Leftover from 2008-12-21.
1155
1156 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1157
1158         init.sh: work around trap limitation of some shells
1159         * tests/init.sh (setup_): Move exit trap outside of shell function.
1160
1161 2010-07-29  Eric Blake  <eblake@redhat.com>
1162
1163         strtod: aid debugging
1164         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1165         understanding why strtod is rejected.
1166
1167 2010-07-28  Bruno Haible  <bruno@clisp.org>
1168
1169         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1170         * lib/unistr/u8-chr.c: Include <string.h>.
1171         * tests/unistr/test-u8-chr.c: Likewise.
1172         * tests/unistr/test-u16-chr.c: Likewise.
1173         * tests/unistr/test-u32-chr.c: Likewise.
1174         * tests/unistr/test-u8-strchr.c: Likewise.
1175         * tests/unistr/test-u16-strchr.c: Likewise.
1176         * tests/unistr/test-u32-strchr.c: Likewise.
1177         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1178         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1179         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1180         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1181
1182 2010-07-28  Bruno Haible  <bruno@clisp.org>
1183
1184         Use spaces for indentation, not tabs.
1185         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1186
1187 2010-07-27  Bruno Haible  <bruno@clisp.org>
1188
1189         mbspcasecmp: Fix function specification.
1190         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1191         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1192         Reported by Eric Blake <eblake@redhat.com>.
1193
1194 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1195
1196         timespec: use cast and not conditional, as truncation isn't possible
1197         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1198         instead of a conditional.  Comment about the situation in more detail.
1199         This undoes most of the 2009-10-29 patch.
1200
1201 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1202
1203         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1204         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1205         * lib/unistr/u8-strchr.c: Likewise.
1206         * modules/unistr/u8-chr: Depend on memchr.
1207
1208         unistr/u*-strchr: add tests
1209         * modules/unistr/u8-strchr-tests: New file.
1210         * modules/unistr/u16-strchr-tests: New file.
1211         * modules/unistr/u32-strchr-tests: New file.
1212         * tests/unistr/test-strchr.h: New file.
1213         * tests/unistr/test-u8-strchr.c: New file.
1214         * tests/unistr/test-u16-strchr.c: New file.
1215         * tests/unistr/test-u32-strchr.c: New file.
1216
1217         unistr/u*-chr: test multibyte sequences more
1218         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1219         test vector.
1220         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1221         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1222         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1223
1224         unistr/u*-chr: test multibyte sequences
1225         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1226
1227         unistr/u*-chr: prepare for multibyte tests
1228         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1229         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1230         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1231         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1232         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1233         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1234
1235 2010-07-18  Bruno Haible  <bruno@clisp.org>
1236
1237         unistr/u8-strchr: Optimize non-ASCII argument case.
1238         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1239         because the first byte often matches anyway.
1240         Reported by Pádraig Brady <P@draigbrady.com>.
1241
1242 2010-07-15  Karl Berry  <karl@gnu.org>
1243
1244         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1245
1246 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1247
1248         getcwd: on Solaris, work better if ancestors are inaccessible
1249         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1250         buffer and size, try again with a large buffer.  This works better
1251         on Solaris, since its getcwd succeeds even if the path to the root
1252         is inaccessible, and this is helpful in common cases such as .zfs
1253         hidden directories.  Problem reported by J Chapman Flack in
1254         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1255         Use system getcwd if it's declared, not merely if it's partly
1256         working; use the partly-working test only to avoid needless effort
1257         if the system getcwd fails.
1258         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1259         comment that was already obsolete and is now even more obsolete.
1260         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1261         now might call strdup.
1262
1263 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1264
1265         pthread: Add enough so that coreutils/src/sort.c compiles.
1266         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1267         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1268         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1269         Include <sys/types.h>, in case it defines pthread_t.
1270         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1271         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1272         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1273         (pthread_rwlockattr_t, pthread_spinlock_t):
1274         New typedefs, if HAVE_PTHREAD_T is not defined.
1275         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1276         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1277         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1278         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1279         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1280         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1281         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1282         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1283         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1284         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1285         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1286         New macros.
1287         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1288         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1289         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1290         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1291         (pthread_spin_unlock): New dummy functions.
1292         (pthread_create): Return EAGAIN; don't set errno.
1293         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1294         require AC_C_INLINE.
1295         * modules/pthread (Depends-on): Add sched, time.
1296         (pthread.h): Use AM_V_GEN.
1297
1298 2010-07-13  Bruno Haible  <bruno@clisp.org>
1299
1300         striconveh: Don't malloc memory if the result buffer is sufficient.
1301         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1302         buffer if its size is sufficient.
1303         Reported by Ludovic Courtès <ludo@gnu.org>.
1304
1305 2010-07-13  Bruno Haible  <bruno@clisp.org>
1306
1307         strtod: Add safety check.
1308         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1309
1310 2010-07-12  Bruno Haible  <bruno@clisp.org>
1311
1312         Unify tests that set gl_cv_func_ldexpl_no_libm.
1313         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1314         gl_FUNC_LDEXPL.
1315         (gl_FUNC_LDEXPL): Invoke it.
1316         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1317
1318 2010-07-12  Bruno Haible  <bruno@clisp.org>
1319
1320         Unify tests that set gl_cv_func_ldexp_no_libm.
1321         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1322         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1323         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1324         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1325         * modules/strtod (Files): Add m4/ldexp.m4.
1326
1327 2010-07-12  Bruno Haible  <bruno@clisp.org>
1328
1329         Unify tests that set gl_cv_func_frexpl_no_libm.
1330         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1331         gl_FUNC_FREXPL_NO_LIBM.
1332         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1333         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1334
1335 2010-07-12  Bruno Haible  <bruno@clisp.org>
1336
1337         Unify tests that set gl_cv_func_frexp_no_libm.
1338         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1339         gl_FUNC_FREXP_NO_LIBM.
1340         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1341         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1342
1343 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1344
1345         memcoll: clarify sizes versus lengths, document better, and tweak perf
1346         * lib/memcoll.c (strcoll_loop, memcoll0):
1347         Improve quality of descriptive comments.  Name variables
1348         consistently as to whether they are lengths (which do not include
1349         terminating null) versus sizes (which do).
1350         * lib/xmemcoll.c (xmemcoll0): Likewise.
1351         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1352         returned when s1size == 0; this is easier to compile and saves
1353         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1354
1355 2010-07-12  Bruno Haible  <bruno@clisp.org>
1356
1357         Tests for module '_Exit'.
1358         * modules/_Exit-tests: New file.
1359         * tests/test-_Exit.sh: New file.
1360         * tests/test-_Exit.c: New file.
1361
1362         New module '_Exit'.
1363         * lib/stdlib.in.h (__attribute__): New macro.
1364         (_Exit): New declaration.
1365         * lib/_Exit.c: New file.
1366         * m4/_Exit.m4: New file.
1367         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1368         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1369         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1370         * modules/_Exit: New file.
1371         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1372         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1373
1374 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1375
1376         strtod: make it more-accurate typically, and don't require libm
1377         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1378         Include limits.h.  Don't include string.h.
1379         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1380         (locale_isspace): New function, so that no casts are needed to
1381         check whether *s is a space.
1382         (ldexp): Provide an unused dummy if not available.
1383         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1384         (strtod): Use them.  This implementation prefers to use the
1385         underlying strtod if available, falling back on our own code
1386         only to fix known bugs.  This is more likely to produce an
1387         accurate result.  Also, it avoids the use of libm functions.
1388         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1389         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1390         was absent, but it caused a test failure with coreutils.
1391         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1392         with libm.
1393         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1394         * modules/strtod-tests (Makefile.am): Likewise.
1395
1396 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1397             Bruno Haible  <bruno@clisp.org>
1398
1399         unistr/u8-strchr: Optimize ASCII argument case.
1400         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1401
1402 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1403
1404         (x)memcoll: minor tweaks
1405         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1406         is after the type that it qualifies.
1407         (memcoll0): Likewise.
1408         * lib/memcoll.h (memcoll0): Likewise.
1409         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1410         * lib/xmemcoll.h (xmemcoll0): Likewise.
1411         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1412         differs from memcoll in that the NUL byte is part of the argument.
1413         Omit the abort-checks, as performance is a real issue here.  Plus,
1414         the checks were wrong anyway (an off-by-one error).  Omit local
1415         variable 'diff', as it's a bit clearer that way.
1416         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1417         no longer needed.
1418
1419 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1420
1421         (x)memcoll: speedup when input is known to be NUL delimited
1422         * lib/memcoll.c: Include stdlib.
1423         (memcoll0) New function.
1424         (strcoll_loop) New function, refactored for use in both memcoll
1425         and memcoll0.
1426         * lib/memcoll.h: Add prototype for memcoll0.
1427         * lib/xmemcoll.c: (xmemcoll0) New function.
1428         (collate_error) New function, refactored for use in both xmemcoll
1429         and xmemcoll0.
1430         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1431         * m4/memcoll.m4: add inline invocation.
1432
1433 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1434
1435         * build-aux/bootstrap: Remove any local translations
1436         from the translation project synchronization directory,
1437         so that local only translations are not distributed.
1438
1439 2010-07-04  Bruno Haible  <bruno@clisp.org>
1440
1441         fsusage: Clarify which code applies to which platforms.
1442         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1443         platform.
1444         * lib/fsusage.c (get_fs_usage): Likewise.
1445
1446 2010-07-04  Bruno Haible  <bruno@clisp.org>
1447
1448         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1449         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1450         Reported by Martin Lambers <marlam@marlam.de>.
1451
1452 2010-07-04  Jim Meyering  <meyering@redhat.com>
1453
1454         hash: once again explicitly disallow insertion of NULL
1455         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1456         inserting a NULL pointer cannot work with these functions.
1457         Add a comment with details.
1458         This reverts part of the 2010-07-01 commit, 5bef1a35
1459         "hash: extend module to deal with non-pointer keys".
1460
1461 2010-07-01  Bruno Haible  <bruno@clisp.org>
1462
1463         stdbool: Update doc.
1464         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1465         Info from Christian Weisgerber <naddy@mips.inka.de>.
1466
1467 2010-07-01  Jim Meyering  <meyering@redhat.com>
1468
1469         hash: extend module to deal with non-pointer keys
1470         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1471         but that allows insertion of non-pointer entries.
1472         Do not disallow an ENTRY value of NULL.
1473         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1474         * lib/hash.h (hash_insert0): Declare.
1475
1476 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1477
1478         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1479         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1480         not present (i.e. with autoconf 2.59 and when using gettextize, not
1481         gnulib), require AC_GNU_SOURCE instead.
1482
1483 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1484
1485         idpriv-drop: Fix tests.
1486         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1487         not to the test-idpriv-droptemp program.
1488
1489 2010-06-29  Bruno Haible  <bruno@clisp.org>
1490
1491         string: Fix syntax error with g++ 2.96.
1492         * lib/string.in.h (__pure__): Remove definition.
1493         (_GL_ATTRIBUTE_PURE): New macro.
1494         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1495         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1496         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1497
1498 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1499
1500         unitypes: Fix bug introduced on 2010-05-18.
1501         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1502
1503 2010-06-22  Eric Blake  <eblake@redhat.com>
1504
1505         memmem: slight optimization
1506         * lib/str-two-way.h (critical_factorization): Update comments.
1507         Reduce work during factorization phase.
1508         Reported by Carlos Bueno <carlos@bueno.org>.
1509
1510 2010-06-21  Bruno Haible  <bruno@clisp.org>
1511
1512         Fix HAVE_CALLOC_POSIX misnomer.
1513         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1514         !HAVE_CALLOC_POSIX.
1515         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1516         HAVE_CALLOC_POSIX.
1517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1518         instead of HAVE_CALLOC_POSIX.
1519         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1520         HAVE_CALLOC_POSIX.
1521
1522         Use modern idiom for calloc() replacement.
1523         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1524         AC_FUNC_CALLOC.
1525         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1526         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1527         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1528         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1529         (gl_REPLACE_CALLOC): New macro.
1530
1531 2010-06-21  Bruno Haible  <bruno@clisp.org>
1532
1533         Fix HAVE_REALLOC_POSIX misnomer.
1534         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1535         !HAVE_REALLOC_POSIX.
1536         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1537         HAVE_REALLOC_POSIX.
1538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1539         instead of HAVE_REALLOC_POSIX.
1540         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1541         HAVE_REALLOC_POSIX.
1542
1543         Use modern idiom for realloc() replacement.
1544         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1545         AC_FUNC_REALLOC.
1546         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1547         Autoconf's AC_FUNC_REALLOC.
1548         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1549         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
1550         (gl_REPLACE_REALLOC): New macro.
1551         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1552
1553 2010-06-21  Bruno Haible  <bruno@clisp.org>
1554
1555         Fix HAVE_MALLOC_POSIX misnomer.
1556         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
1557         !HAVE_MALLOC_POSIX.
1558         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
1559         HAVE_MALLOC_POSIX.
1560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
1561         instead of HAVE_MALLOC_POSIX.
1562         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
1563         HAVE_MALLOC_POSIX.
1564
1565         Use modern idiom for malloc() replacement.
1566         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
1567         AC_FUNC_MALLOC.
1568         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
1569         Autoconf's AC_FUNC_MALLOC.
1570         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1571         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
1572         (gl_REPLACE_MALLOC): New macro.
1573         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1574
1575 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
1576
1577         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
1578         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
1579         This macro takes 3 arguments, not 4.
1580
1581 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
1582
1583         ipv6: fix detection under mingw
1584         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
1585         in6_addr.
1586
1587 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
1588
1589         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
1590         that strtod() works when cross-compiling to a glibc version known
1591         to work.
1592
1593 2010-06-15  Bruno Haible  <bruno@clisp.org>
1594
1595         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
1596
1597 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
1598
1599         select: Correct timeout.
1600         * lib/select.c (rpl_select): Compute wait_timeout correctly.
1601
1602 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1603
1604         git-version-gen: init shell var to avoid env var influence
1605         * build-aux/git-version-gen (v): Init shell var to empty.
1606
1607 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
1608
1609         priv-set: Don't assume that priv.h exists merely because getppriv does.
1610         See Jan Andersen's bug report about AIX 5L in
1611         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
1612         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
1613         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
1614         * lib/priv-set.h: Likewise.
1615         * tests/test-priv-set.c: Likewise.
1616
1617 2010-06-13  Bruno Haible  <bruno@clisp.org>
1618
1619         relocatable: Make it easier to test whether to install wrappers.
1620         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
1621         RELOCATABLE_VIA_WRAPPER.
1622
1623 2010-06-13  Bruno Haible  <bruno@clisp.org>
1624
1625         gnulib-tool: Display specified modules and dependencies differently.
1626         * gnulib-tool (func_show_module_list): New function.
1627         (func_import, func_create_testdir): Invoke it.
1628         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1629
1630 2010-06-13  Bruno Haible  <bruno@clisp.org>
1631
1632         gnulib-tool: Align code of func_import and func_create_testdir.
1633         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
1634         specified_modules.
1635
1636 2010-06-12  Jim Meyering  <meyering@redhat.com>
1637
1638         test-inttostr: avoid spurious failure on Solaris 9
1639         * tests/test-inttostr.c (main): Skip the test when snprintf fails
1640         to accept "%ju".  Reported by Bruno Haible.
1641
1642 2010-06-11  Jim Meyering  <meyering@redhat.com>
1643
1644         test-sys_socket: mark variables as used more readably
1645         * tests/test-sys_socket.c (main): Mark otherwise unused variables
1646         as "used" explicitly via (void) statement casts.  This is more
1647         readable than using them in an artificial return expression.
1648         Suggestion from Bruno Haible.
1649
1650 2010-06-11  Bruno Haible  <bruno@clisp.org>
1651
1652         Avoid some more warnings from "gcc -Wwrite-strings".
1653         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
1654         to 'const char *'.
1655         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
1656         * tests/test-c-strcasestr.c (main): Likewise.
1657         * tests/test-mbscasestr1.c (main): Likewise.
1658         * tests/test-mbscasestr2.c (main): Likewise.
1659         * tests/test-memmem.c (main): Likewise.
1660         * tests/test-strstr.c (main): Likewise.
1661         * tests/test-strcasestr.c (main): Likewise.
1662
1663 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1664
1665         init.sh: change framework_failure_ to fail with status 99, not 1
1666         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
1667         automake's parallel-tests rule that this is an unexpected failure,
1668         even if the test is listed in XFAIL_TESTS.
1669
1670 2010-06-11  Jim Meyering  <meyering@redhat.com>
1671
1672         test-inttostr: avoid warnings about 4-6KB literal strings
1673         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
1674         Include "macros.h", for its definition of ASSERT.
1675         (CK): s/assert/ASSERT/
1676         * modules/inttostr-tests (Files): Add macros.h.
1677
1678         init.sh: don't use $ME_ or skip_ before they are defined
1679         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
1680         their first uses.  Also hoist their companions: warn_, fail_,
1681         framework_failure_, $stderr_fileno.  Prompted by a patch from
1682         Stefano Lattarini.
1683
1684         test-sys_socket: avoid set-but-not-used warnings from gcc
1685         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
1686         avoid warning about set-but-not-used variables.
1687
1688         test-xvasprintf: avoid 'const' discard warnings
1689         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
1690         "const" when assigning from literal strings.
1691         (test_xasprintf): Add "void" in function argument list to placate
1692         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
1693
1694         tests: avoid compilation warnings in argmatch and exclude tests...
1695         in packages that define ARGMATCH_DIE_DECL, like coreutils.
1696         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
1697         Since it always exits, declare with the "noreturn" attribute.
1698         * tests/test-argmatch.c: Likewise.
1699
1700         tests: avoid 'const' discard warnings in mbsstr tests
1701         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
1702         * tests/test-mbsstr2.c (main): Likewise.
1703
1704         test-verify: avoid warning from gcc's -Wmissing-declarations
1705         * tests/test-verify.c (function): Declare to be static.
1706
1707         test-inttostr.c: include <string.h> for use of strcmp
1708         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
1709
1710         test-linkat: avoid failed assertion on "other" architectures
1711         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
1712         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
1713         sparc: https://bugs.launchpad.net/bugs/591968
1714
1715 2010-06-11  Jim Meyering  <meyering@redhat.com>
1716
1717         printf.m4: avoid autoconf's "Expanded Before Required" warning
1718         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
1719         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
1720         autoconf warning.
1721
1722 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
1723
1724         Replacement header templates are now named with ".in", not "_".
1725         * doc/gnulib-intro.texi: Correct.
1726
1727 2010-06-10  Jim Meyering  <meyering@redhat.com>
1728
1729         inttostr-tests: depend on snprintf, not snprintf-posix
1730         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
1731         snprintf-posix, to avoid this aclocal failure:
1732           missing file gnulib-tests/vasnprintf.c
1733           configure.ac:45: error: expected source file, required through \
1734           AC_LIBSOURCES, not found
1735
1736 2010-06-10  Jim Meyering  <meyering@redhat.com>
1737
1738         inttostr: add a new function, inttostr, and tests
1739         The namesake function was not available.  The existence of the
1740         template file, inttostr.c makes its addition nontrivial.
1741         * lib/anytostr.c: Rename from inttostr.c.
1742         (anytostr): Rename from inttostr.
1743         * lib/inttostr.c: New file.
1744         * modules/inttostr (Files): Add anytostr.c.
1745         (Makefile.am): Set lib_SOURCES instead of ...
1746         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
1747         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
1748         * lib/offtostr.c: Likewise.
1749         * lib/uinttostr.c: Likewise.
1750         * lib/umaxtostr.c: Likewise.
1751         * modules/inttostr-tests: New file.
1752         * tests/test-inttostr.c: New file.  Test these functions.
1753
1754 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
1755             Bruno Haible  <bruno@clisp.org>
1756
1757         Add "Extending Gnulib" chapter to manual.
1758         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
1759         chapter.
1760         (Extending Gnulib): New chapter.
1761         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
1762         chapter.
1763
1764 2010-06-09  Bruno Haible  <bruno@clisp.org>
1765
1766         Avoid relocwrapper link errors due to gnulib replacement functions.
1767         * lib/areadlink.c: Use the system's malloc, realloc functions.
1768         (areadlink): Set errno to ENOMEM explicitly.
1769         * modules/areadlink (Depends-on): Remove malloc-posix.
1770         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1771
1772 2010-06-09  Bruno Haible  <bruno@clisp.org>
1773
1774         Avoid relocwrapper link errors due to gnulib replacement functions.
1775         * lib/canonicalize-lgpl.c: Use the system's malloc function.
1776         * lib/malloca.c: Likewise.
1777         * lib/relocatable.c: Likewise.
1778         * lib/progreloc.c: Use the system's malloc, sprintf functions.
1779         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
1780         * lib/setenv.c: Use the system's malloc, realloc functions.
1781         * lib/strerror.c: Use the system's sprintf function.
1782         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1783
1784 2010-06-04  Bruno Haible  <bruno@clisp.org>
1785
1786         Prefer documented low-level autoconf macro names.
1787         * m4/lib-link.m4: Use m4_translit instead of translit.
1788         * m4/environ.m4: Likewise.
1789         * m4/mathfunc.m4: Likewise.
1790         * m4/onceonly.m4: Likewise.
1791         * m4/stdint.m4: Likewise.
1792         Suggested by Eric Blake.
1793
1794 2010-06-04  Martin Lambers  <marlam@marlam.de>
1795             Bruno Haible  <bruno@clisp.org>
1796
1797         havelib: Allow library names with '+' characters.
1798         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1799         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
1800
1801 2010-06-09  Bruno Haible  <bruno@clisp.org>
1802
1803         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
1804         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
1805         realloc failed.
1806
1807 2010-06-08  Peter Simons  <simons@cryp.to>
1808
1809         maint.mk: make the news-check rule more configurable
1810         * top/maint.mk (news-check-lines-spec) New variable.
1811         (news-check): Use "sed -n 1,10p" in place of "head".
1812
1813 2010-06-07  Jim Meyering  <meyering@redhat.com>
1814
1815         do-release-commit-and-tag: fix typo in --help
1816         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
1817
1818         regex: avoid new dead-code warning with gcc-4.6.0
1819         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
1820         if-block containing a while-loop.  It's been unused for at least
1821         5 years.
1822
1823 2010-06-05  Bruno Haible  <bruno@clisp.org>
1824
1825         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
1826         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
1827
1828 2010-06-04  Bruno Haible  <bruno@clisp.org>
1829
1830         Update to GNU gettext 0.18.1.
1831         * modules/gettext (configure.ac): Require gettext infrastructure from
1832         version 0.18.1.
1833
1834 2010-06-03  Bruno Haible  <bruno@clisp.org>
1835
1836         Don't use AC_LIBOBJ with file names in subdirectories.
1837         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
1838         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
1839         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
1840         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
1841         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
1842         gl_LIBUNISTRING_LIBSOURCE.
1843         (Makefile.am): Augment lib_SOURCES here, conditionally.
1844         * NEWS: Drop requirement for Automake option 'subdir-objects'.
1845
1846 2010-06-03  Bruno Haible  <bruno@clisp.org>
1847
1848         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
1849         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
1850         expansion does not end with a newline.
1851         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
1852         unnecessary newline.
1853
1854 2010-06-03  Bruno Haible  <bruno@clisp.org>
1855
1856         Reduce dependencies.
1857         * tests/test-quotearg.h: New file, extracted from
1858         tests/test-quotearg.c.
1859         * tests/test-quotearg-simple.c: New file, extracted from
1860         tests/test-quotearg.c.
1861         * tests/test-quotearg.c: Don't include <ctype.h>.
1862         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
1863         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
1864         use_quote_double_quotes, use_quotearg_colon): Moved to
1865         tests/test-quotearg.h.
1866         (results_g, flag_results, custom_quotes, custom_results): Moved
1867         to tests/test-quotearg-simple.c.
1868         (main): Moved the part that does not depend on gettext to
1869         tests/test-quotearg-simple.c. Return 77 if the test cannot be
1870         performed.
1871         * modules/quotearg-simple: New file.
1872         * modules/quotearg-simple-tests: New file.
1873         * modules/quotearg (Depends-on): Add quotearg-simple.
1874         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
1875         (Files): Add tests/test-quotearg.h.
1876         Reported by Paolo Bonzini.
1877
1878 2010-06-03  Bruno Haible  <bruno@clisp.org>
1879
1880         Reduce dependencies.
1881         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
1882
1883 2010-06-03  Bruno Haible  <bruno@clisp.org>
1884
1885         time: Undefine more broken macros.
1886         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
1887         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
1888         Reported by Eric Blake.
1889
1890 2010-06-03  Bruno Haible  <bruno@clisp.org>
1891
1892         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
1893         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
1894         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
1895         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
1896         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
1897         Reported by Ludovic Courtès <ludo@gnu.org>.
1898
1899 2010-06-02  Eric Blake  <eblake@redhat.com>
1900
1901         time: work with mingw + pthreads-win32 library
1902         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
1903         if timespec is defined only in pthread.h.
1904         * modules/time (Makefile.am): Substitute it.
1905         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
1906         <pthread.h>, when needed.
1907         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
1908         from the library.
1909
1910 2010-05-31  Bruno Haible  <bruno@clisp.org>
1911
1912         Avoid expanding two macros in the wrong order.
1913         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
1914         gl_LIBUNISTRING if it is defined.
1915         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
1916         autoconf >= 2.64.
1917         Reported by Ludovic Courtès <ludo@gnu.org>.
1918
1919 2010-05-27  Jim Meyering  <meyering@redhat.com>
1920
1921         maint.mk: also prohibit "#undef" of always-defined symbols
1922         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
1923         Allow more than one space before the symbol name.
1924         (sc_prohibit_always-defined_macros): Use grep's -E, now that
1925         the regexp uses alternation.
1926
1927 2010-05-26  Eric Blake  <eblake@redhat.com>
1928
1929         maint.mk: avoid echo -e
1930         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
1931         Convert all uses of echo -* to printf.
1932         Reported by Matthias Bolte.
1933
1934 2010-05-25  Bruno Haible  <bruno@clisp.org>
1935
1936         Update to GNU gettext 0.18, part 2.
1937         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
1938         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
1939
1940 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1941
1942         Add missing include in test-pwrite.c.
1943         * tests/test-pwrite.c: Include string.h, for strcmp.
1944
1945 2010-05-24  Bruno Haible  <bruno@clisp.org>
1946
1947         * NEWS: Mention requirement for Automake option 'subdir-objects'.
1948
1949 2010-05-24  Bruno Haible  <bruno@clisp.org>
1950
1951         Don't use conversion with transliteration in u{8,16,32}_strcoll.
1952         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
1953         iconveh_error argument.
1954         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
1955         U_STRCONV_TO_LOCALE.
1956         * lib/unistr/u16-strcoll.c: Likewise.
1957         * lib/unistr/u32-strcoll.c: Likewise.
1958         * modules/unistr/u8-strcoll (Depends-on): Add
1959         uniconv/u8-strconv-to-enc, localcharset. Remove
1960         uniconv/u8-strconv-to-locale.
1961         (configure.ac): Bump version number.
1962         * modules/unistr/u16-strcoll (Depends-on): Add
1963         uniconv/u16-strconv-to-enc, localcharset. Remove
1964         uniconv/u16-strconv-to-locale.
1965         (configure.ac): Bump version number.
1966         * modules/unistr/u32-strcoll (Depends-on): Add
1967         uniconv/u32-strconv-to-enc, localcharset. Remove
1968         uniconv/u32-strconv-to-locale.
1969         (configure.ac): Bump version number.
1970
1971 2010-05-24  Bruno Haible  <bruno@clisp.org>
1972
1973         Avoid a test failure on NetBSD 5.0.
1974         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
1975         an iconv() bug.
1976
1977 2010-05-24  Bruno Haible  <bruno@clisp.org>
1978
1979         Adjust #include directive style.
1980         * modules/regex (Includes): Recommend to write <regex.h>.
1981
1982 2010-05-24  Bruno Haible  <bruno@clisp.org>
1983
1984         regex: Don't require alloca.
1985         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
1986         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
1987         only inside if (0).
1988
1989 2010-05-23  Jim Meyering  <meyering@redhat.com>
1990
1991         test-renameat.c: include <sys/stat.h>
1992         * tests/test-renameat.c: Include <sys/stat.h>; required for
1993         definition of S_IS* macros.
1994
1995 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
1996
1997         Update maintainer documentation for 'relocatable-prog' module.
1998         * doc/relocatable-maint.texi: Update.
1999         Comments by Bruno Haible.
2000
2001 2010-05-23  Bruno Haible  <bruno@clisp.org>
2002
2003         git-merge-changelog: Enable --split-merged-entry by default.
2004         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2005         (usage): Don't mention this option any more.
2006         Reported by Ralf Wildenhues.
2007
2008 2010-05-23  Jim Meyering  <meyering@redhat.com>
2009
2010         test-pwrite: do not leave behind a test file named "out"
2011         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2012         The trivial-looking use of init.sh is really necessary.
2013         It ensures that the temporary file, "out", is created in
2014         a temporary directory, and removed upon termination.
2015         * tests/test-pwrite.sh: Re-add file.
2016         * modules/pwrite-tests: Reference it.
2017
2018 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2019
2020         Fix output redirection buglet in init.sh.
2021         * tests/init.sh: Fix redirection of stderr.
2022
2023 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2024
2025         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2026
2027 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2028
2029         * modules/valgrind-tests: New file.
2030         * m4/valgrind-tests.m4: New file.
2031         * doc/valgrind-tests.texi: New file.
2032         * doc/gnulib.texi (Running self-tests under valgrind): New
2033         section.
2034
2035 2010-05-19  Bruno Haible  <bruno@clisp.org>
2036
2037         Clean up dead code in recent commit.
2038         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2039         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2040         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2041         Suggested by Paolo Bonzini.
2042
2043 2010-05-19  Bruno Haible  <bruno@clisp.org>
2044
2045         Avoid valgrind error reports from libunistring.
2046         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2047         * modules/libunistring (Files): Add it.
2048         * modules/libunistring-optional (Files): Likewise.
2049
2050 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2051             Bruno Haible  <bruno@clisp.org>
2052
2053         New module 'libunistring-optional'.
2054         * modules/libunistring-optional: New file.
2055         * m4/libunistring-base.m4: New file.
2056         * m4/libunistring-optional.m4: New file.
2057         * lib/unicase.in.h: Renamed from lib/unicase.h.
2058         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2059         * lib/unictype.in.h: Renamed from lib/unictype.h.
2060         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2061         * lib/uniname.in.h: Renamed from lib/uniname.h.
2062         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2063         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2064         * lib/unistr.in.h: Renamed from lib/unistr.h.
2065         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2066         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2067         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2068         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2069         gl_LIBUNISTRING. If the library was found, determine the installed
2070         version and set LIBUNISTRING_VERSION.
2071         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2072         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2073         handle a configuration option --with-included-libunistring.
2074         * modules/libunistring (Files): Add m4/absolute-header.m4.
2075         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2076         Add m4/libunistring-base.m4.
2077         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2078         (Makefile.am): Build unicase.h from unicase.in.h.
2079         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2080         Add m4/libunistring-base.m4.
2081         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2082         (Makefile.am): Build uniconv.h from uniconv.in.h.
2083         * modules/unictype/base (Files): Use unictype.in.h instead of
2084         unictype.h. Add m4/libunistring-base.m4.
2085         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2086         (Makefile.am): Build unictype.h from unictype.in.h.
2087         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2088         Add m4/libunistring-base.m4.
2089         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2090         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2091         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2092         Add m4/libunistring-base.m4.
2093         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2094         (Makefile.am): Build uniname.h from uniname.in.h.
2095         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2096         Add m4/libunistring-base.m4.
2097         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2098         (Makefile.am): Build uninorm.h from uninorm.in.h.
2099         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2100         unistdio.h. Add m4/libunistring-base.m4.
2101         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2102         (Makefile.am): Build unistdio.h from unistdio.in.h.
2103         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2104         Add m4/libunistring-base.m4.
2105         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2106         (Makefile.am): Build unistr.h from unistr.in.h.
2107         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2108         Add m4/libunistring-base.m4.
2109         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2110         (Makefile.am): Build unitypes.h from unitypes.in.h.
2111         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2112         Add m4/libunistring-base.m4.
2113         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2114         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2115         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2116         uniwidth.h. Add m4/libunistring-base.m4.
2117         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2118         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2119         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2120         instead of augmenting lib_SOURCES.
2121         * modules/unicase/empty-suffix-context: Likewise.
2122         * modules/unicase/locale-language: Likewise.
2123         * modules/unicase/tolower: Likewise.
2124         * modules/unicase/totitle: Likewise.
2125         * modules/unicase/toupper: Likewise.
2126         * modules/unicase/u8-casecmp: Likewise.
2127         * modules/unicase/u8-casecoll: Likewise.
2128         * modules/unicase/u8-casefold: Likewise.
2129         * modules/unicase/u8-casexfrm: Likewise.
2130         * modules/unicase/u8-ct-casefold: Likewise.
2131         * modules/unicase/u8-ct-tolower: Likewise.
2132         * modules/unicase/u8-ct-totitle: Likewise.
2133         * modules/unicase/u8-ct-toupper: Likewise.
2134         * modules/unicase/u8-is-cased: Likewise.
2135         * modules/unicase/u8-is-casefolded: Likewise.
2136         * modules/unicase/u8-is-lowercase: Likewise.
2137         * modules/unicase/u8-is-titlecase: Likewise.
2138         * modules/unicase/u8-is-uppercase: Likewise.
2139         * modules/unicase/u8-prefix-context: Likewise.
2140         * modules/unicase/u8-suffix-context: Likewise.
2141         * modules/unicase/u8-tolower: Likewise.
2142         * modules/unicase/u8-totitle: Likewise.
2143         * modules/unicase/u8-toupper: Likewise.
2144         * modules/unicase/u16-casecmp: Likewise.
2145         * modules/unicase/u16-casecoll: Likewise.
2146         * modules/unicase/u16-casefold: Likewise.
2147         * modules/unicase/u16-casexfrm: Likewise.
2148         * modules/unicase/u16-ct-casefold: Likewise.
2149         * modules/unicase/u16-ct-tolower: Likewise.
2150         * modules/unicase/u16-ct-totitle: Likewise.
2151         * modules/unicase/u16-ct-toupper: Likewise.
2152         * modules/unicase/u16-is-cased: Likewise.
2153         * modules/unicase/u16-is-casefolded: Likewise.
2154         * modules/unicase/u16-is-lowercase: Likewise.
2155         * modules/unicase/u16-is-titlecase: Likewise.
2156         * modules/unicase/u16-is-uppercase: Likewise.
2157         * modules/unicase/u16-prefix-context: Likewise.
2158         * modules/unicase/u16-suffix-context: Likewise.
2159         * modules/unicase/u16-tolower: Likewise.
2160         * modules/unicase/u16-totitle: Likewise.
2161         * modules/unicase/u16-toupper: Likewise.
2162         * modules/unicase/u32-casecmp: Likewise.
2163         * modules/unicase/u32-casecoll: Likewise.
2164         * modules/unicase/u32-casefold: Likewise.
2165         * modules/unicase/u32-casexfrm: Likewise.
2166         * modules/unicase/u32-ct-casefold: Likewise.
2167         * modules/unicase/u32-ct-tolower: Likewise.
2168         * modules/unicase/u32-ct-totitle: Likewise.
2169         * modules/unicase/u32-ct-toupper: Likewise.
2170         * modules/unicase/u32-is-cased: Likewise.
2171         * modules/unicase/u32-is-casefolded: Likewise.
2172         * modules/unicase/u32-is-lowercase: Likewise.
2173         * modules/unicase/u32-is-titlecase: Likewise.
2174         * modules/unicase/u32-is-uppercase: Likewise.
2175         * modules/unicase/u32-prefix-context: Likewise.
2176         * modules/unicase/u32-suffix-context: Likewise.
2177         * modules/unicase/u32-tolower: Likewise.
2178         * modules/unicase/u32-totitle: Likewise.
2179         * modules/unicase/u32-toupper: Likewise.
2180         * modules/unicase/ulc-casecmp: Likewise.
2181         * modules/unicase/ulc-casecoll: Likewise.
2182         * modules/unicase/ulc-casexfrm: Likewise.
2183         * modules/uniconv/u8-conv-from-enc: Likewise.
2184         * modules/uniconv/u8-conv-to-enc: Likewise.
2185         * modules/uniconv/u8-strconv-from-enc: Likewise.
2186         * modules/uniconv/u8-strconv-from-locale: Likewise.
2187         * modules/uniconv/u8-strconv-to-enc: Likewise.
2188         * modules/uniconv/u8-strconv-to-locale: Likewise.
2189         * modules/uniconv/u16-conv-from-enc: Likewise.
2190         * modules/uniconv/u16-conv-to-enc: Likewise.
2191         * modules/uniconv/u16-strconv-from-enc: Likewise.
2192         * modules/uniconv/u16-strconv-from-locale: Likewise.
2193         * modules/uniconv/u16-strconv-to-enc: Likewise.
2194         * modules/uniconv/u16-strconv-to-locale: Likewise.
2195         * modules/uniconv/u32-conv-from-enc: Likewise.
2196         * modules/uniconv/u32-conv-to-enc: Likewise.
2197         * modules/uniconv/u32-strconv-from-enc: Likewise.
2198         * modules/uniconv/u32-strconv-from-locale: Likewise.
2199         * modules/uniconv/u32-strconv-to-enc: Likewise.
2200         * modules/uniconv/u32-strconv-to-locale: Likewise.
2201         * modules/unictype/bidicategory-byname: Likewise.
2202         * modules/unictype/bidicategory-name: Likewise.
2203         * modules/unictype/bidicategory-of: Likewise.
2204         * modules/unictype/bidicategory-test: Likewise.
2205         * modules/unictype/block-list: Likewise.
2206         * modules/unictype/block-test: Likewise.
2207         * modules/unictype/category-C: Likewise.
2208         * modules/unictype/category-Cc: Likewise.
2209         * modules/unictype/category-Cf: Likewise.
2210         * modules/unictype/category-Cn: Likewise.
2211         * modules/unictype/category-Co: Likewise.
2212         * modules/unictype/category-Cs: Likewise.
2213         * modules/unictype/category-L: Likewise.
2214         * modules/unictype/category-Ll: Likewise.
2215         * modules/unictype/category-Lm: Likewise.
2216         * modules/unictype/category-Lo: Likewise.
2217         * modules/unictype/category-Lt: Likewise.
2218         * modules/unictype/category-Lu: Likewise.
2219         * modules/unictype/category-M: Likewise.
2220         * modules/unictype/category-Mc: Likewise.
2221         * modules/unictype/category-Me: Likewise.
2222         * modules/unictype/category-Mn: Likewise.
2223         * modules/unictype/category-N: Likewise.
2224         * modules/unictype/category-Nd: Likewise.
2225         * modules/unictype/category-Nl: Likewise.
2226         * modules/unictype/category-No: Likewise.
2227         * modules/unictype/category-P: Likewise.
2228         * modules/unictype/category-Pc: Likewise.
2229         * modules/unictype/category-Pd: Likewise.
2230         * modules/unictype/category-Pe: Likewise.
2231         * modules/unictype/category-Pf: Likewise.
2232         * modules/unictype/category-Pi: Likewise.
2233         * modules/unictype/category-Po: Likewise.
2234         * modules/unictype/category-Ps: Likewise.
2235         * modules/unictype/category-S: Likewise.
2236         * modules/unictype/category-Sc: Likewise.
2237         * modules/unictype/category-Sk: Likewise.
2238         * modules/unictype/category-Sm: Likewise.
2239         * modules/unictype/category-So: Likewise.
2240         * modules/unictype/category-Z: Likewise.
2241         * modules/unictype/category-Zl: Likewise.
2242         * modules/unictype/category-Zp: Likewise.
2243         * modules/unictype/category-Zs: Likewise.
2244         * modules/unictype/category-and: Likewise.
2245         * modules/unictype/category-and-not: Likewise.
2246         * modules/unictype/category-byname: Likewise.
2247         * modules/unictype/category-name: Likewise.
2248         * modules/unictype/category-none: Likewise.
2249         * modules/unictype/category-of: Likewise.
2250         * modules/unictype/category-or: Likewise.
2251         * modules/unictype/category-test: Likewise.
2252         * modules/unictype/combining-class: Likewise.
2253         * modules/unictype/ctype-alnum: Likewise.
2254         * modules/unictype/ctype-alpha: Likewise.
2255         * modules/unictype/ctype-blank: Likewise.
2256         * modules/unictype/ctype-cntrl: Likewise.
2257         * modules/unictype/ctype-digit: Likewise.
2258         * modules/unictype/ctype-graph: Likewise.
2259         * modules/unictype/ctype-lower: Likewise.
2260         * modules/unictype/ctype-print: Likewise.
2261         * modules/unictype/ctype-punct: Likewise.
2262         * modules/unictype/ctype-space: Likewise.
2263         * modules/unictype/ctype-upper: Likewise.
2264         * modules/unictype/ctype-xdigit: Likewise.
2265         * modules/unictype/decimal-digit: Likewise.
2266         * modules/unictype/digit: Likewise.
2267         * modules/unictype/mirror: Likewise.
2268         * modules/unictype/numeric: Likewise.
2269         * modules/unictype/property-alphabetic: Likewise.
2270         * modules/unictype/property-ascii-hex-digit: Likewise.
2271         * modules/unictype/property-bidi-arabic-digit: Likewise.
2272         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2273         * modules/unictype/property-bidi-block-separator: Likewise.
2274         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2275         * modules/unictype/property-bidi-common-separator: Likewise.
2276         * modules/unictype/property-bidi-control: Likewise.
2277         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2278         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2279         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2280         * modules/unictype/property-bidi-european-digit: Likewise.
2281         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2282         * modules/unictype/property-bidi-left-to-right: Likewise.
2283         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2284         * modules/unictype/property-bidi-other-neutral: Likewise.
2285         * modules/unictype/property-bidi-pdf: Likewise.
2286         * modules/unictype/property-bidi-segment-separator: Likewise.
2287         * modules/unictype/property-bidi-whitespace: Likewise.
2288         * modules/unictype/property-byname: Likewise.
2289         * modules/unictype/property-combining: Likewise.
2290         * modules/unictype/property-composite: Likewise.
2291         * modules/unictype/property-currency-symbol: Likewise.
2292         * modules/unictype/property-dash: Likewise.
2293         * modules/unictype/property-decimal-digit: Likewise.
2294         * modules/unictype/property-default-ignorable-code-point: Likewise.
2295         * modules/unictype/property-deprecated: Likewise.
2296         * modules/unictype/property-diacritic: Likewise.
2297         * modules/unictype/property-extender: Likewise.
2298         * modules/unictype/property-format-control: Likewise.
2299         * modules/unictype/property-grapheme-base: Likewise.
2300         * modules/unictype/property-grapheme-extend: Likewise.
2301         * modules/unictype/property-grapheme-link: Likewise.
2302         * modules/unictype/property-hex-digit: Likewise.
2303         * modules/unictype/property-hyphen: Likewise.
2304         * modules/unictype/property-id-continue: Likewise.
2305         * modules/unictype/property-id-start: Likewise.
2306         * modules/unictype/property-ideographic: Likewise.
2307         * modules/unictype/property-ids-binary-operator: Likewise.
2308         * modules/unictype/property-ids-trinary-operator: Likewise.
2309         * modules/unictype/property-ignorable-control: Likewise.
2310         * modules/unictype/property-iso-control: Likewise.
2311         * modules/unictype/property-join-control: Likewise.
2312         * modules/unictype/property-left-of-pair: Likewise.
2313         * modules/unictype/property-line-separator: Likewise.
2314         * modules/unictype/property-logical-order-exception: Likewise.
2315         * modules/unictype/property-lowercase: Likewise.
2316         * modules/unictype/property-math: Likewise.
2317         * modules/unictype/property-non-break: Likewise.
2318         * modules/unictype/property-not-a-character: Likewise.
2319         * modules/unictype/property-numeric: Likewise.
2320         * modules/unictype/property-other-alphabetic: Likewise.
2321         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2322         * modules/unictype/property-other-grapheme-extend: Likewise.
2323         * modules/unictype/property-other-id-continue: Likewise.
2324         * modules/unictype/property-other-id-start: Likewise.
2325         * modules/unictype/property-other-lowercase: Likewise.
2326         * modules/unictype/property-other-math: Likewise.
2327         * modules/unictype/property-other-uppercase: Likewise.
2328         * modules/unictype/property-paired-punctuation: Likewise.
2329         * modules/unictype/property-paragraph-separator: Likewise.
2330         * modules/unictype/property-pattern-syntax: Likewise.
2331         * modules/unictype/property-pattern-white-space: Likewise.
2332         * modules/unictype/property-private-use: Likewise.
2333         * modules/unictype/property-punctuation: Likewise.
2334         * modules/unictype/property-quotation-mark: Likewise.
2335         * modules/unictype/property-radical: Likewise.
2336         * modules/unictype/property-sentence-terminal: Likewise.
2337         * modules/unictype/property-soft-dotted: Likewise.
2338         * modules/unictype/property-space: Likewise.
2339         * modules/unictype/property-terminal-punctuation: Likewise.
2340         * modules/unictype/property-test: Likewise.
2341         * modules/unictype/property-titlecase: Likewise.
2342         * modules/unictype/property-unassigned-code-value: Likewise.
2343         * modules/unictype/property-unified-ideograph: Likewise.
2344         * modules/unictype/property-uppercase: Likewise.
2345         * modules/unictype/property-variation-selector: Likewise.
2346         * modules/unictype/property-white-space: Likewise.
2347         * modules/unictype/property-xid-continue: Likewise.
2348         * modules/unictype/property-xid-start: Likewise.
2349         * modules/unictype/property-zero-width: Likewise.
2350         * modules/unictype/scripts: Likewise.
2351         * modules/unictype/syntax-c-ident: Likewise.
2352         * modules/unictype/syntax-c-whitespace: Likewise.
2353         * modules/unictype/syntax-java-ident: Likewise.
2354         * modules/unictype/syntax-java-whitespace: Likewise.
2355         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2356         * modules/unilbrk/u8-width-linebreaks: Likewise.
2357         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2358         * modules/unilbrk/u16-width-linebreaks: Likewise.
2359         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2360         * modules/unilbrk/u32-width-linebreaks: Likewise.
2361         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2362         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2363         * modules/uniname/uniname: Likewise.
2364         * modules/uninorm/canonical-decomposition: Likewise.
2365         * modules/uninorm/composition: Likewise.
2366         * modules/uninorm/decomposing-form: Likewise.
2367         * modules/uninorm/decomposition: Likewise.
2368         * modules/uninorm/filter: Likewise.
2369         * modules/uninorm/nfc: Likewise.
2370         * modules/uninorm/nfd: Likewise.
2371         * modules/uninorm/nfkc: Likewise.
2372         * modules/uninorm/nfkd: Likewise.
2373         * modules/uninorm/u8-normalize: Likewise.
2374         * modules/uninorm/u8-normcmp: Likewise.
2375         * modules/uninorm/u8-normcoll: Likewise.
2376         * modules/uninorm/u8-normxfrm: Likewise.
2377         * modules/uninorm/u16-normalize: Likewise.
2378         * modules/uninorm/u16-normcmp: Likewise.
2379         * modules/uninorm/u16-normcoll: Likewise.
2380         * modules/uninorm/u16-normxfrm: Likewise.
2381         * modules/uninorm/u32-normalize: Likewise.
2382         * modules/uninorm/u32-normcmp: Likewise.
2383         * modules/uninorm/u32-normcoll: Likewise.
2384         * modules/uninorm/u32-normxfrm: Likewise.
2385         * modules/unistdio/u8-asnprintf: Likewise.
2386         * modules/unistdio/u8-asprintf: Likewise.
2387         * modules/unistdio/u8-snprintf: Likewise.
2388         * modules/unistdio/u8-sprintf: Likewise.
2389         * modules/unistdio/u8-u8-asnprintf: Likewise.
2390         * modules/unistdio/u8-u8-asprintf: Likewise.
2391         * modules/unistdio/u8-u8-snprintf: Likewise.
2392         * modules/unistdio/u8-u8-sprintf: Likewise.
2393         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2394         * modules/unistdio/u8-u8-vasprintf: Likewise.
2395         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2396         * modules/unistdio/u8-u8-vsprintf: Likewise.
2397         * modules/unistdio/u8-vasnprintf: Likewise.
2398         * modules/unistdio/u8-vasprintf: Likewise.
2399         * modules/unistdio/u8-vsnprintf: Likewise.
2400         * modules/unistdio/u8-vsprintf: Likewise.
2401         * modules/unistdio/u16-asnprintf: Likewise.
2402         * modules/unistdio/u16-asprintf: Likewise.
2403         * modules/unistdio/u16-snprintf: Likewise.
2404         * modules/unistdio/u16-sprintf: Likewise.
2405         * modules/unistdio/u16-u16-asnprintf: Likewise.
2406         * modules/unistdio/u16-u16-asprintf: Likewise.
2407         * modules/unistdio/u16-u16-snprintf: Likewise.
2408         * modules/unistdio/u16-u16-sprintf: Likewise.
2409         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2410         * modules/unistdio/u16-u16-vasprintf: Likewise.
2411         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2412         * modules/unistdio/u16-u16-vsprintf: Likewise.
2413         * modules/unistdio/u16-vasnprintf: Likewise.
2414         * modules/unistdio/u16-vasprintf: Likewise.
2415         * modules/unistdio/u16-vsnprintf: Likewise.
2416         * modules/unistdio/u16-vsprintf: Likewise.
2417         * modules/unistdio/u32-asnprintf: Likewise.
2418         * modules/unistdio/u32-asprintf: Likewise.
2419         * modules/unistdio/u32-snprintf: Likewise.
2420         * modules/unistdio/u32-sprintf: Likewise.
2421         * modules/unistdio/u32-u32-asnprintf: Likewise.
2422         * modules/unistdio/u32-u32-asprintf: Likewise.
2423         * modules/unistdio/u32-u32-snprintf: Likewise.
2424         * modules/unistdio/u32-u32-sprintf: Likewise.
2425         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2426         * modules/unistdio/u32-u32-vasprintf: Likewise.
2427         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2428         * modules/unistdio/u32-u32-vsprintf: Likewise.
2429         * modules/unistdio/u32-vasnprintf: Likewise.
2430         * modules/unistdio/u32-vasprintf: Likewise.
2431         * modules/unistdio/u32-vsnprintf: Likewise.
2432         * modules/unistdio/u32-vsprintf: Likewise.
2433         * modules/unistdio/ulc-asnprintf: Likewise.
2434         * modules/unistdio/ulc-asprintf: Likewise.
2435         * modules/unistdio/ulc-fprintf: Likewise.
2436         * modules/unistdio/ulc-snprintf: Likewise.
2437         * modules/unistdio/ulc-sprintf: Likewise.
2438         * modules/unistdio/ulc-vasnprintf: Likewise.
2439         * modules/unistdio/ulc-vasprintf: Likewise.
2440         * modules/unistdio/ulc-vfprintf: Likewise.
2441         * modules/unistdio/ulc-vsnprintf: Likewise.
2442         * modules/unistdio/ulc-vsprintf: Likewise.
2443         * modules/unistr/u8-check: Likewise.
2444         * modules/unistr/u8-chr: Likewise.
2445         * modules/unistr/u8-cmp: Likewise.
2446         * modules/unistr/u8-cmp2: Likewise.
2447         * modules/unistr/u8-cpy: Likewise.
2448         * modules/unistr/u8-cpy-alloc: Likewise.
2449         * modules/unistr/u8-endswith: Likewise.
2450         * modules/unistr/u8-mblen: Likewise.
2451         * modules/unistr/u8-mbsnlen: Likewise.
2452         * modules/unistr/u8-mbtouc: Likewise.
2453         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2454         * modules/unistr/u8-mbtoucr: Likewise.
2455         * modules/unistr/u8-move: Likewise.
2456         * modules/unistr/u8-next: Likewise.
2457         * modules/unistr/u8-prev: Likewise.
2458         * modules/unistr/u8-set: Likewise.
2459         * modules/unistr/u8-startswith: Likewise.
2460         * modules/unistr/u8-stpcpy: Likewise.
2461         * modules/unistr/u8-stpncpy: Likewise.
2462         * modules/unistr/u8-strcat: Likewise.
2463         * modules/unistr/u8-strchr: Likewise.
2464         * modules/unistr/u8-strcmp: Likewise.
2465         * modules/unistr/u8-strcoll: Likewise.
2466         * modules/unistr/u8-strcpy: Likewise.
2467         * modules/unistr/u8-strcspn: Likewise.
2468         * modules/unistr/u8-strdup: Likewise.
2469         * modules/unistr/u8-strlen: Likewise.
2470         * modules/unistr/u8-strmblen: Likewise.
2471         * modules/unistr/u8-strmbtouc: Likewise.
2472         * modules/unistr/u8-strncat: Likewise.
2473         * modules/unistr/u8-strncmp: Likewise.
2474         * modules/unistr/u8-strncpy: Likewise.
2475         * modules/unistr/u8-strnlen: Likewise.
2476         * modules/unistr/u8-strpbrk: Likewise.
2477         * modules/unistr/u8-strrchr: Likewise.
2478         * modules/unistr/u8-strspn: Likewise.
2479         * modules/unistr/u8-strstr: Likewise.
2480         * modules/unistr/u8-strtok: Likewise.
2481         * modules/unistr/u8-to-u16: Likewise.
2482         * modules/unistr/u8-to-u32: Likewise.
2483         * modules/unistr/u8-uctomb: Likewise.
2484         * modules/unistr/u16-check: Likewise.
2485         * modules/unistr/u16-chr: Likewise.
2486         * modules/unistr/u16-cmp: Likewise.
2487         * modules/unistr/u16-cmp2: Likewise.
2488         * modules/unistr/u16-cpy: Likewise.
2489         * modules/unistr/u16-cpy-alloc: Likewise.
2490         * modules/unistr/u16-endswith: Likewise.
2491         * modules/unistr/u16-mblen: Likewise.
2492         * modules/unistr/u16-mbsnlen: Likewise.
2493         * modules/unistr/u16-mbtouc: Likewise.
2494         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2495         * modules/unistr/u16-mbtoucr: Likewise.
2496         * modules/unistr/u16-move: Likewise.
2497         * modules/unistr/u16-next: Likewise.
2498         * modules/unistr/u16-prev: Likewise.
2499         * modules/unistr/u16-set: Likewise.
2500         * modules/unistr/u16-startswith: Likewise.
2501         * modules/unistr/u16-stpcpy: Likewise.
2502         * modules/unistr/u16-stpncpy: Likewise.
2503         * modules/unistr/u16-strcat: Likewise.
2504         * modules/unistr/u16-strchr: Likewise.
2505         * modules/unistr/u16-strcmp: Likewise.
2506         * modules/unistr/u16-strcoll: Likewise.
2507         * modules/unistr/u16-strcpy: Likewise.
2508         * modules/unistr/u16-strcspn: Likewise.
2509         * modules/unistr/u16-strdup: Likewise.
2510         * modules/unistr/u16-strlen: Likewise.
2511         * modules/unistr/u16-strmblen: Likewise.
2512         * modules/unistr/u16-strmbtouc: Likewise.
2513         * modules/unistr/u16-strncat: Likewise.
2514         * modules/unistr/u16-strncmp: Likewise.
2515         * modules/unistr/u16-strncpy: Likewise.
2516         * modules/unistr/u16-strnlen: Likewise.
2517         * modules/unistr/u16-strpbrk: Likewise.
2518         * modules/unistr/u16-strrchr: Likewise.
2519         * modules/unistr/u16-strspn: Likewise.
2520         * modules/unistr/u16-strstr: Likewise.
2521         * modules/unistr/u16-strtok: Likewise.
2522         * modules/unistr/u16-to-u32: Likewise.
2523         * modules/unistr/u16-to-u8: Likewise.
2524         * modules/unistr/u16-uctomb: Likewise.
2525         * modules/unistr/u32-check: Likewise.
2526         * modules/unistr/u32-chr: Likewise.
2527         * modules/unistr/u32-cmp: Likewise.
2528         * modules/unistr/u32-cmp2: Likewise.
2529         * modules/unistr/u32-cpy: Likewise.
2530         * modules/unistr/u32-cpy-alloc: Likewise.
2531         * modules/unistr/u32-endswith: Likewise.
2532         * modules/unistr/u32-mblen: Likewise.
2533         * modules/unistr/u32-mbsnlen: Likewise.
2534         * modules/unistr/u32-mbtouc: Likewise.
2535         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2536         * modules/unistr/u32-mbtoucr: Likewise.
2537         * modules/unistr/u32-move: Likewise.
2538         * modules/unistr/u32-next: Likewise.
2539         * modules/unistr/u32-prev: Likewise.
2540         * modules/unistr/u32-set: Likewise.
2541         * modules/unistr/u32-startswith: Likewise.
2542         * modules/unistr/u32-stpcpy: Likewise.
2543         * modules/unistr/u32-stpncpy: Likewise.
2544         * modules/unistr/u32-strcat: Likewise.
2545         * modules/unistr/u32-strchr: Likewise.
2546         * modules/unistr/u32-strcmp: Likewise.
2547         * modules/unistr/u32-strcoll: Likewise.
2548         * modules/unistr/u32-strcpy: Likewise.
2549         * modules/unistr/u32-strcspn: Likewise.
2550         * modules/unistr/u32-strdup: Likewise.
2551         * modules/unistr/u32-strlen: Likewise.
2552         * modules/unistr/u32-strmblen: Likewise.
2553         * modules/unistr/u32-strmbtouc: Likewise.
2554         * modules/unistr/u32-strncat: Likewise.
2555         * modules/unistr/u32-strncmp: Likewise.
2556         * modules/unistr/u32-strncpy: Likewise.
2557         * modules/unistr/u32-strnlen: Likewise.
2558         * modules/unistr/u32-strpbrk: Likewise.
2559         * modules/unistr/u32-strrchr: Likewise.
2560         * modules/unistr/u32-strspn: Likewise.
2561         * modules/unistr/u32-strstr: Likewise.
2562         * modules/unistr/u32-strtok: Likewise.
2563         * modules/unistr/u32-to-u16: Likewise.
2564         * modules/unistr/u32-to-u8: Likewise.
2565         * modules/unistr/u32-uctomb: Likewise.
2566         * modules/uniwbrk/u8-wordbreaks: Likewise.
2567         * modules/uniwbrk/u16-wordbreaks: Likewise.
2568         * modules/uniwbrk/u32-wordbreaks: Likewise.
2569         * modules/uniwbrk/ulc-wordbreaks: Likewise.
2570         * modules/uniwbrk/wordbreak-property: Likewise.
2571         * modules/uniwidth/u8-strwidth: Likewise.
2572         * modules/uniwidth/u8-width: Likewise.
2573         * modules/uniwidth/u16-strwidth: Likewise.
2574         * modules/uniwidth/u16-width: Likewise.
2575         * modules/uniwidth/u32-strwidth: Likewise.
2576         * modules/uniwidth/u32-width: Likewise.
2577         * modules/uniwidth/width: Likewise.
2578         * modules/unicase/cased-tests (Makefile.am): Link all test programs
2579         with $(LIBUNISTRING).
2580         * modules/unicase/ignorable-tests: Likewise.
2581         * modules/unicase/locale-language-tests: Likewise.
2582         * modules/unicase/tolower-tests: Likewise.
2583         * modules/unicase/totitle-tests: Likewise.
2584         * modules/unicase/toupper-tests: Likewise.
2585         * modules/unicase/u8-casecmp-tests: Likewise.
2586         * modules/unicase/u8-casecoll-tests: Likewise.
2587         * modules/unicase/u8-casefold-tests: Likewise.
2588         * modules/unicase/u8-is-cased-tests: Likewise.
2589         * modules/unicase/u8-is-casefolded-tests: Likewise.
2590         * modules/unicase/u8-is-lowercase-tests: Likewise.
2591         * modules/unicase/u8-is-titlecase-tests: Likewise.
2592         * modules/unicase/u8-is-uppercase-tests: Likewise.
2593         * modules/unicase/u8-tolower-tests: Likewise.
2594         * modules/unicase/u8-totitle-tests: Likewise.
2595         * modules/unicase/u8-toupper-tests: Likewise.
2596         * modules/unicase/u16-casecmp-tests: Likewise.
2597         * modules/unicase/u16-casecoll-tests: Likewise.
2598         * modules/unicase/u16-casefold-tests: Likewise.
2599         * modules/unicase/u16-is-cased-tests: Likewise.
2600         * modules/unicase/u16-is-casefolded-tests: Likewise.
2601         * modules/unicase/u16-is-lowercase-tests: Likewise.
2602         * modules/unicase/u16-is-titlecase-tests: Likewise.
2603         * modules/unicase/u16-is-uppercase-tests: Likewise.
2604         * modules/unicase/u16-tolower-tests: Likewise.
2605         * modules/unicase/u16-totitle-tests: Likewise.
2606         * modules/unicase/u16-toupper-tests: Likewise.
2607         * modules/unicase/u32-casecmp-tests: Likewise.
2608         * modules/unicase/u32-casecoll-tests: Likewise.
2609         * modules/unicase/u32-casefold-tests: Likewise.
2610         * modules/unicase/u32-is-cased-tests: Likewise.
2611         * modules/unicase/u32-is-casefolded-tests: Likewise.
2612         * modules/unicase/u32-is-lowercase-tests: Likewise.
2613         * modules/unicase/u32-is-titlecase-tests: Likewise.
2614         * modules/unicase/u32-is-uppercase-tests: Likewise.
2615         * modules/unicase/u32-tolower-tests: Likewise.
2616         * modules/unicase/u32-totitle-tests: Likewise.
2617         * modules/unicase/u32-toupper-tests: Likewise.
2618         * modules/unicase/ulc-casecmp-tests: Likewise.
2619         * modules/unicase/ulc-casecoll-tests: Likewise.
2620         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
2621         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
2622         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
2623         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
2624         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
2625         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
2626         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
2627         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
2628         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
2629         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
2630         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
2631         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
2632         * modules/unictype/bidicategory-byname-tests: Likewise.
2633         * modules/unictype/bidicategory-name-tests: Likewise.
2634         * modules/unictype/bidicategory-of-tests: Likewise.
2635         * modules/unictype/bidicategory-test-tests: Likewise.
2636         * modules/unictype/block-list-tests: Likewise.
2637         * modules/unictype/block-of-tests: Likewise.
2638         * modules/unictype/block-test-tests: Likewise.
2639         * modules/unictype/category-C-tests: Likewise.
2640         * modules/unictype/category-Cc-tests: Likewise.
2641         * modules/unictype/category-Cf-tests: Likewise.
2642         * modules/unictype/category-Cn-tests: Likewise.
2643         * modules/unictype/category-Co-tests: Likewise.
2644         * modules/unictype/category-Cs-tests: Likewise.
2645         * modules/unictype/category-L-tests: Likewise.
2646         * modules/unictype/category-Ll-tests: Likewise.
2647         * modules/unictype/category-Lm-tests: Likewise.
2648         * modules/unictype/category-Lo-tests: Likewise.
2649         * modules/unictype/category-Lt-tests: Likewise.
2650         * modules/unictype/category-Lu-tests: Likewise.
2651         * modules/unictype/category-M-tests: Likewise.
2652         * modules/unictype/category-Mc-tests: Likewise.
2653         * modules/unictype/category-Me-tests: Likewise.
2654         * modules/unictype/category-Mn-tests: Likewise.
2655         * modules/unictype/category-N-tests: Likewise.
2656         * modules/unictype/category-Nd-tests: Likewise.
2657         * modules/unictype/category-Nl-tests: Likewise.
2658         * modules/unictype/category-No-tests: Likewise.
2659         * modules/unictype/category-P-tests: Likewise.
2660         * modules/unictype/category-Pc-tests: Likewise.
2661         * modules/unictype/category-Pd-tests: Likewise.
2662         * modules/unictype/category-Pe-tests: Likewise.
2663         * modules/unictype/category-Pf-tests: Likewise.
2664         * modules/unictype/category-Pi-tests: Likewise.
2665         * modules/unictype/category-Po-tests: Likewise.
2666         * modules/unictype/category-Ps-tests: Likewise.
2667         * modules/unictype/category-S-tests: Likewise.
2668         * modules/unictype/category-Sc-tests: Likewise.
2669         * modules/unictype/category-Sk-tests: Likewise.
2670         * modules/unictype/category-Sm-tests: Likewise.
2671         * modules/unictype/category-So-tests: Likewise.
2672         * modules/unictype/category-Z-tests: Likewise.
2673         * modules/unictype/category-Zl-tests: Likewise.
2674         * modules/unictype/category-Zp-tests: Likewise.
2675         * modules/unictype/category-Zs-tests: Likewise.
2676         * modules/unictype/category-and-not-tests: Likewise.
2677         * modules/unictype/category-and-tests: Likewise.
2678         * modules/unictype/category-byname-tests: Likewise.
2679         * modules/unictype/category-name-tests: Likewise.
2680         * modules/unictype/category-none-tests: Likewise.
2681         * modules/unictype/category-of-tests: Likewise.
2682         * modules/unictype/category-or-tests: Likewise.
2683         * modules/unictype/category-test-withtable-tests: Likewise.
2684         * modules/unictype/combining-class-tests: Likewise.
2685         * modules/unictype/ctype-alnum-tests: Likewise.
2686         * modules/unictype/ctype-alpha-tests: Likewise.
2687         * modules/unictype/ctype-blank-tests: Likewise.
2688         * modules/unictype/ctype-cntrl-tests: Likewise.
2689         * modules/unictype/ctype-digit-tests: Likewise.
2690         * modules/unictype/ctype-graph-tests: Likewise.
2691         * modules/unictype/ctype-lower-tests: Likewise.
2692         * modules/unictype/ctype-print-tests: Likewise.
2693         * modules/unictype/ctype-punct-tests: Likewise.
2694         * modules/unictype/ctype-space-tests: Likewise.
2695         * modules/unictype/ctype-upper-tests: Likewise.
2696         * modules/unictype/ctype-xdigit-tests: Likewise.
2697         * modules/unictype/decimal-digit-tests: Likewise.
2698         * modules/unictype/digit-tests: Likewise.
2699         * modules/unictype/mirror-tests: Likewise.
2700         * modules/unictype/numeric-tests: Likewise.
2701         * modules/unictype/property-alphabetic-tests: Likewise.
2702         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
2703         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
2704         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
2705         * modules/unictype/property-bidi-block-separator-tests: Likewise.
2706         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
2707         * modules/unictype/property-bidi-common-separator-tests: Likewise.
2708         * modules/unictype/property-bidi-control-tests: Likewise.
2709         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
2710         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
2711         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
2712         * modules/unictype/property-bidi-european-digit-tests: Likewise.
2713         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
2714         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
2715         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
2716         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
2717         * modules/unictype/property-bidi-pdf-tests: Likewise.
2718         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
2719         * modules/unictype/property-bidi-whitespace-tests: Likewise.
2720         * modules/unictype/property-byname-tests: Likewise.
2721         * modules/unictype/property-combining-tests: Likewise.
2722         * modules/unictype/property-composite-tests: Likewise.
2723         * modules/unictype/property-currency-symbol-tests: Likewise.
2724         * modules/unictype/property-dash-tests: Likewise.
2725         * modules/unictype/property-decimal-digit-tests: Likewise.
2726         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
2727         * modules/unictype/property-deprecated-tests: Likewise.
2728         * modules/unictype/property-diacritic-tests: Likewise.
2729         * modules/unictype/property-extender-tests: Likewise.
2730         * modules/unictype/property-format-control-tests: Likewise.
2731         * modules/unictype/property-grapheme-base-tests: Likewise.
2732         * modules/unictype/property-grapheme-extend-tests: Likewise.
2733         * modules/unictype/property-grapheme-link-tests: Likewise.
2734         * modules/unictype/property-hex-digit-tests: Likewise.
2735         * modules/unictype/property-hyphen-tests: Likewise.
2736         * modules/unictype/property-id-continue-tests: Likewise.
2737         * modules/unictype/property-id-start-tests: Likewise.
2738         * modules/unictype/property-ideographic-tests: Likewise.
2739         * modules/unictype/property-ids-binary-operator-tests: Likewise.
2740         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
2741         * modules/unictype/property-ignorable-control-tests: Likewise.
2742         * modules/unictype/property-iso-control-tests: Likewise.
2743         * modules/unictype/property-join-control-tests: Likewise.
2744         * modules/unictype/property-left-of-pair-tests: Likewise.
2745         * modules/unictype/property-line-separator-tests: Likewise.
2746         * modules/unictype/property-logical-order-exception-tests: Likewise.
2747         * modules/unictype/property-lowercase-tests: Likewise.
2748         * modules/unictype/property-math-tests: Likewise.
2749         * modules/unictype/property-non-break-tests: Likewise.
2750         * modules/unictype/property-not-a-character-tests: Likewise.
2751         * modules/unictype/property-numeric-tests: Likewise.
2752         * modules/unictype/property-other-alphabetic-tests: Likewise.
2753         * modules/unictype/property-other-default-ignorable-code-point-tests:
2754         Likewise.
2755         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
2756         * modules/unictype/property-other-id-continue-tests: Likewise.
2757         * modules/unictype/property-other-id-start-tests: Likewise.
2758         * modules/unictype/property-other-lowercase-tests: Likewise.
2759         * modules/unictype/property-other-math-tests: Likewise.
2760         * modules/unictype/property-other-uppercase-tests: Likewise.
2761         * modules/unictype/property-paired-punctuation-tests: Likewise.
2762         * modules/unictype/property-paragraph-separator-tests: Likewise.
2763         * modules/unictype/property-pattern-syntax-tests: Likewise.
2764         * modules/unictype/property-pattern-white-space-tests: Likewise.
2765         * modules/unictype/property-private-use-tests: Likewise.
2766         * modules/unictype/property-punctuation-tests: Likewise.
2767         * modules/unictype/property-quotation-mark-tests: Likewise.
2768         * modules/unictype/property-radical-tests: Likewise.
2769         * modules/unictype/property-sentence-terminal-tests: Likewise.
2770         * modules/unictype/property-soft-dotted-tests: Likewise.
2771         * modules/unictype/property-space-tests: Likewise.
2772         * modules/unictype/property-terminal-punctuation-tests: Likewise.
2773         * modules/unictype/property-test-tests: Likewise.
2774         * modules/unictype/property-titlecase-tests: Likewise.
2775         * modules/unictype/property-unassigned-code-value-tests: Likewise.
2776         * modules/unictype/property-unified-ideograph-tests: Likewise.
2777         * modules/unictype/property-uppercase-tests: Likewise.
2778         * modules/unictype/property-variation-selector-tests: Likewise.
2779         * modules/unictype/property-white-space-tests: Likewise.
2780         * modules/unictype/property-xid-continue-tests: Likewise.
2781         * modules/unictype/property-xid-start-tests: Likewise.
2782         * modules/unictype/property-zero-width-tests: Likewise.
2783         * modules/unictype/scripts-tests: Likewise.
2784         * modules/unictype/syntax-c-ident-tests: Likewise.
2785         * modules/unictype/syntax-c-whitespace-tests: Likewise.
2786         * modules/unictype/syntax-java-ident-tests: Likewise.
2787         * modules/unictype/syntax-java-whitespace-tests: Likewise.
2788         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
2789         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
2790         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
2791         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
2792         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
2793         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
2794         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
2795         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
2796         * modules/uniname/uniname-tests: Likewise.
2797         * modules/uninorm/canonical-decomposition-tests: Likewise.
2798         * modules/uninorm/compat-decomposition-tests: Likewise.
2799         * modules/uninorm/composition-tests: Likewise.
2800         * modules/uninorm/decomposing-form-tests: Likewise.
2801         * modules/uninorm/decomposition-tests: Likewise.
2802         * modules/uninorm/filter-tests: Likewise.
2803         * modules/uninorm/nfc-tests: Likewise.
2804         * modules/uninorm/nfd-tests: Likewise.
2805         * modules/uninorm/nfkc-tests: Likewise.
2806         * modules/uninorm/nfkd-tests: Likewise.
2807         * modules/uninorm/u8-normcmp-tests: Likewise.
2808         * modules/uninorm/u8-normcoll-tests: Likewise.
2809         * modules/uninorm/u16-normcmp-tests: Likewise.
2810         * modules/uninorm/u16-normcoll-tests: Likewise.
2811         * modules/uninorm/u32-normcmp-tests: Likewise.
2812         * modules/uninorm/u32-normcoll-tests: Likewise.
2813         * modules/unistdio/u8-asnprintf-tests: Likewise.
2814         * modules/unistdio/u8-vasnprintf-tests: Likewise.
2815         * modules/unistdio/u8-vasprintf-tests: Likewise.
2816         * modules/unistdio/u8-vsnprintf-tests: Likewise.
2817         * modules/unistdio/u8-vsprintf-tests: Likewise.
2818         * modules/unistdio/u16-asnprintf-tests: Likewise.
2819         * modules/unistdio/u16-vasnprintf-tests: Likewise.
2820         * modules/unistdio/u16-vasprintf-tests: Likewise.
2821         * modules/unistdio/u16-vsnprintf-tests: Likewise.
2822         * modules/unistdio/u16-vsprintf-tests: Likewise.
2823         * modules/unistdio/u32-asnprintf-tests: Likewise.
2824         * modules/unistdio/u32-vasnprintf-tests: Likewise.
2825         * modules/unistdio/u32-vasprintf-tests: Likewise.
2826         * modules/unistdio/u32-vsnprintf-tests: Likewise.
2827         * modules/unistdio/u32-vsprintf-tests: Likewise.
2828         * modules/unistdio/ulc-asnprintf-tests: Likewise.
2829         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
2830         * modules/unistdio/ulc-vasprintf-tests: Likewise.
2831         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
2832         * modules/unistdio/ulc-vsprintf-tests: Likewise.
2833         * modules/unistr/u8-check-tests: Likewise.
2834         * modules/unistr/u8-chr-tests: Likewise.
2835         * modules/unistr/u8-cmp-tests: Likewise.
2836         * modules/unistr/u8-cmp2-tests: Likewise.
2837         * modules/unistr/u8-cpy-alloc-tests: Likewise.
2838         * modules/unistr/u8-cpy-tests: Likewise.
2839         * modules/unistr/u8-mblen-tests: Likewise.
2840         * modules/unistr/u8-mbsnlen-tests: Likewise.
2841         * modules/unistr/u8-mbtouc-tests: Likewise.
2842         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
2843         * modules/unistr/u8-mbtoucr-tests: Likewise.
2844         * modules/unistr/u8-move-tests: Likewise.
2845         * modules/unistr/u8-next-tests: Likewise.
2846         * modules/unistr/u8-prev-tests: Likewise.
2847         * modules/unistr/u8-set-tests: Likewise.
2848         * modules/unistr/u8-stpcpy-tests: Likewise.
2849         * modules/unistr/u8-stpncpy-tests: Likewise.
2850         * modules/unistr/u8-strcat-tests: Likewise.
2851         * modules/unistr/u8-strcmp-tests: Likewise.
2852         * modules/unistr/u8-strcoll-tests: Likewise.
2853         * modules/unistr/u8-strcpy-tests: Likewise.
2854         * modules/unistr/u8-strdup-tests: Likewise.
2855         * modules/unistr/u8-strlen-tests: Likewise.
2856         * modules/unistr/u8-strmblen-tests: Likewise.
2857         * modules/unistr/u8-strmbtouc-tests: Likewise.
2858         * modules/unistr/u8-strncat-tests: Likewise.
2859         * modules/unistr/u8-strncmp-tests: Likewise.
2860         * modules/unistr/u8-strncpy-tests: Likewise.
2861         * modules/unistr/u8-strnlen-tests: Likewise.
2862         * modules/unistr/u8-to-u16-tests: Likewise.
2863         * modules/unistr/u8-to-u32-tests: Likewise.
2864         * modules/unistr/u8-uctomb-tests: Likewise.
2865         * modules/unistr/u16-check-tests: Likewise.
2866         * modules/unistr/u16-chr-tests: Likewise.
2867         * modules/unistr/u16-cmp-tests: Likewise.
2868         * modules/unistr/u16-cmp2-tests: Likewise.
2869         * modules/unistr/u16-cpy-alloc-tests: Likewise.
2870         * modules/unistr/u16-cpy-tests: Likewise.
2871         * modules/unistr/u16-mblen-tests: Likewise.
2872         * modules/unistr/u16-mbsnlen-tests: Likewise.
2873         * modules/unistr/u16-mbtouc-tests: Likewise.
2874         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
2875         * modules/unistr/u16-mbtoucr-tests: Likewise.
2876         * modules/unistr/u16-move-tests: Likewise.
2877         * modules/unistr/u16-next-tests: Likewise.
2878         * modules/unistr/u16-prev-tests: Likewise.
2879         * modules/unistr/u16-set-tests: Likewise.
2880         * modules/unistr/u16-stpcpy-tests: Likewise.
2881         * modules/unistr/u16-stpncpy-tests: Likewise.
2882         * modules/unistr/u16-strcat-tests: Likewise.
2883         * modules/unistr/u16-strcmp-tests: Likewise.
2884         * modules/unistr/u16-strcoll-tests: Likewise.
2885         * modules/unistr/u16-strcpy-tests: Likewise.
2886         * modules/unistr/u16-strdup-tests: Likewise.
2887         * modules/unistr/u16-strlen-tests: Likewise.
2888         * modules/unistr/u16-strmblen-tests: Likewise.
2889         * modules/unistr/u16-strmbtouc-tests: Likewise.
2890         * modules/unistr/u16-strncat-tests: Likewise.
2891         * modules/unistr/u16-strncmp-tests: Likewise.
2892         * modules/unistr/u16-strncpy-tests: Likewise.
2893         * modules/unistr/u16-strnlen-tests: Likewise.
2894         * modules/unistr/u16-to-u32-tests: Likewise.
2895         * modules/unistr/u16-to-u8-tests: Likewise.
2896         * modules/unistr/u16-uctomb-tests: Likewise.
2897         * modules/unistr/u32-check-tests: Likewise.
2898         * modules/unistr/u32-chr-tests: Likewise.
2899         * modules/unistr/u32-cmp-tests: Likewise.
2900         * modules/unistr/u32-cmp2-tests: Likewise.
2901         * modules/unistr/u32-cpy-alloc-tests: Likewise.
2902         * modules/unistr/u32-cpy-tests: Likewise.
2903         * modules/unistr/u32-mblen-tests: Likewise.
2904         * modules/unistr/u32-mbsnlen-tests: Likewise.
2905         * modules/unistr/u32-mbtouc-tests: Likewise.
2906         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
2907         * modules/unistr/u32-mbtoucr-tests: Likewise.
2908         * modules/unistr/u32-move-tests: Likewise.
2909         * modules/unistr/u32-next-tests: Likewise.
2910         * modules/unistr/u32-prev-tests: Likewise.
2911         * modules/unistr/u32-set-tests: Likewise.
2912         * modules/unistr/u32-stpcpy-tests: Likewise.
2913         * modules/unistr/u32-stpncpy-tests: Likewise.
2914         * modules/unistr/u32-strcat-tests: Likewise.
2915         * modules/unistr/u32-strcmp-tests: Likewise.
2916         * modules/unistr/u32-strcoll-tests: Likewise.
2917         * modules/unistr/u32-strcpy-tests: Likewise.
2918         * modules/unistr/u32-strdup-tests: Likewise.
2919         * modules/unistr/u32-strlen-tests: Likewise.
2920         * modules/unistr/u32-strmblen-tests: Likewise.
2921         * modules/unistr/u32-strmbtouc-tests: Likewise.
2922         * modules/unistr/u32-strncat-tests: Likewise.
2923         * modules/unistr/u32-strncmp-tests: Likewise.
2924         * modules/unistr/u32-strncpy-tests: Likewise.
2925         * modules/unistr/u32-strnlen-tests: Likewise.
2926         * modules/unistr/u32-to-u16-tests: Likewise.
2927         * modules/unistr/u32-to-u8-tests: Likewise.
2928         * modules/unistr/u32-uctomb-tests: Likewise.
2929         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
2930         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
2931         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
2932         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
2933         * modules/uniwidth/u8-strwidth-tests: Likewise.
2934         * modules/uniwidth/u8-width-tests: Likewise.
2935         * modules/uniwidth/u16-strwidth-tests: Likewise.
2936         * modules/uniwidth/u16-width-tests: Likewise.
2937         * modules/uniwidth/u32-strwidth-tests: Likewise.
2938         * modules/uniwidth/u32-width-tests: Likewise.
2939         * modules/uniwidth/width-tests: Likewise.
2940
2941 2010-05-18  Richard Jones  <rjones@redhat.com>
2942
2943         doc: users.txt: list hivex
2944         * users.txt: Add hivex.
2945
2946 2010-05-18  Richard Jones  <rjones@redhat.com>
2947
2948         doc: users.txt: list febootstrap
2949         * users.txt: Add febootstrap.
2950
2951 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
2952
2953         bootstrap: fix an error when gnulib is not used as a git submodule
2954         * build-aux/bootstrap (gnulib_path): If its length is zero then
2955         assign "gnulib" to it.
2956         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
2957
2958 2010-05-16  Bruno Haible  <bruno@clisp.org>
2959
2960         Avoid autoconf warnings about AM_ICONV.
2961         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
2962         2.64.
2963
2964 2010-05-16  Bruno Haible  <bruno@clisp.org>
2965
2966         absolute-header: Make the macro usable in more situations.
2967         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
2968         from gl_ABSOLUTE_HEADER.
2969         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
2970
2971 2010-05-16  James Youngman  <jay@gnu.org>
2972
2973         doc: update users.txt
2974         * users.txt: Add CSSC.
2975
2976 2010-05-16  Jim Meyering  <meyering@redhat.com>
2977
2978         init.sh: fix an error in the previous change; add more comments
2979         * tests/init.sh: Compare exit code in loop against 9, not 2.
2980         Patch by Bruno Haible.
2981         Make the two tests more similar by adding an empty "then" clause.
2982         Add comments.
2983
2984         init.sh: avoid unnecessary shell re-exec
2985         * tests/init.sh: Improve the re-exec-required check to first test the
2986         current shell.  If it passes the test, do not search for a shell that
2987         does pass, and do not re-exec.  This test is particularly contorted to
2988         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
2989         of $(...) evokes a syntax error and causes immediate shell exit with
2990         status 2.  Bruno Haible reported that the re-exec made it impossible
2991         to single-step through any init.sh-using script.
2992
2993 2010-05-16  Bruno Haible  <bruno@clisp.org>
2994
2995         Fix collision between gnulib's and libintl's printf replacements.
2996         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
2997         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
2998         (printf): When using GNU C, map the __printf__ function to rpl_printf
2999         via __asm__. When not using GNU C, define rpl_printf instead of
3000         __printf__.
3001         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3002         commit.
3003         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3004         commit.
3005         * m4/asm-underscore.m4: New file.
3006         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3007         * modules/stdio (Files): Add m4/asm-underscore.m4.
3008         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3009         Reported by Ben Pfaff.
3010
3011 2010-05-16  Bruno Haible  <bruno@clisp.org>
3012
3013         verify: Avoid skipping the test on openSUSE 11.0.
3014         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3015
3016 2010-05-13  Bruno Haible  <bruno@clisp.org>
3017
3018         Avoid useless warnings from G++.
3019         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3020         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3021         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3022
3023 2010-05-11  Jim Meyering  <meyering@redhat.com>
3024
3025         maint.mk: tweak preceding change
3026         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3027         regexps tighter by anchoring at EOL, and make the new group "shy"
3028         for slightly decreased overhead.
3029
3030 2010-05-11  Eric Blake  <eblake@redhat.com>
3031
3032         maint.mk: gnulib doesn't guarantee NSIG
3033         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3034
3035 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3036
3037         test-pwrite.c: Remove unused variable declaration.
3038         * tests/test-pwrite.c (main): Remove read_buf declaration.
3039
3040         Remove useless test-pwrite.sh file.
3041         * tests/test-pwrite.sh: Delete file.
3042         * modules/pwrite-tests: Remove references.
3043         Reported by Bruno Haible.
3044
3045 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3046
3047         init.sh: fix a typo
3048         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3049
3050 2010-05-10  Jim Meyering  <meyering@redhat.com>
3051
3052         maint.mk: avoid using a temporary file in the always-defined-macros check
3053         * top/maint.mk (.re-defmac): Remove rule.
3054         (gl_trap_): Remove definition.
3055         (sc_prohibit_always-defined_macros): Rewrite not to create and
3056         depend on a temporary file.  Instead, depend on GNU grep's ability
3057         to read a list of regular expressions from stdin when given "-f -".
3058
3059 2010-05-09  Bruno Haible  <bruno@clisp.org>
3060
3061         Update to GNU gettext 0.18, part 1.
3062         * m4/gettext.m4: Update to GNU gettext 0.18.
3063         * m4/intl.m4: Likewise.
3064         * m4/po.m4: Likewise.
3065         * modules/gettext (Files): Add m4/fcntl-o.m4.
3066         (configure.ac): Require gettext infrastructure from version 0.18.
3067
3068 2010-05-09  Jim Meyering  <meyering@redhat.com>
3069
3070         init.sh: enable MALLOC_PERTURB_
3071         * tests/init.sh: Enable glibc's malloc-perturbing option.
3072
3073         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3074         With my recent change in init.sh from the two-line form:
3075             -#   : ${srcdir=.}
3076             -#   . "$srcdir/init.sh"; path_prepend_ .
3077             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3078         I noticed that using the one-line form would cause this test
3079         to fail with a false-positive, or to stop working altogether,
3080         depending on whether help-version changed or all the tests did.
3081         * top/maint.mk (_hv_regex): Remove this definition.
3082         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3083         (_hv_regex_strong): Use a stronger regex to check for conformance.
3084         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3085         Give a separate diagnostic for lack of conforming use.
3086
3087         maint.mk: prohibit definition of symbols defined by gnulib
3088         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3089         definition of symbols defined by gnulib.
3090
3091 2010-05-09  Bruno Haible  <bruno@clisp.org>
3092
3093         acl: Avoid test failure on Cygwin-hosted mingw.
3094         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3095
3096 2010-05-09  Bruno Haible  <bruno@clisp.org>
3097
3098         error: Use system's fcntl function.
3099         * lib/error.c (fcntl): Undefine.
3100
3101 2010-05-09  Jim Meyering  <meyering@redhat.com>
3102
3103         verify: adjust formatting to be more consistent
3104         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3105         argument-list '('s, and after one comma.
3106
3107 2010-05-09  Bruno Haible  <bruno@clisp.org>
3108
3109         error: More reliable output on mingw.
3110         * lib/error.c: Include <windows.h>.
3111         (is_open): New function.
3112         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3113         defined.
3114
3115 2010-05-09  Bruno Haible  <bruno@clisp.org>
3116
3117         vasnprintf: Fix syntax errors in libintl build on mingw.
3118         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3119         pad_ourselves and prec_ourselves after use.
3120
3121 2010-05-08  Bruno Haible  <bruno@clisp.org>
3122
3123         * lib/config.charset: Update comments for Cygwin 1.7.
3124         * lib/localcharset.c: Likewise.
3125
3126 2010-05-07  Jim Meyering  <meyering@redhat.com>
3127
3128         init.sh: improve comments
3129         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3130         . "${srcdir=.}/init.sh"; path_prepend_ .
3131         Add a note about path_prepend_ and the alternative of using
3132         TESTS_ENVIRONMENT.
3133
3134 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3135
3136         exclude: Unescape hashed patterns in wildcard mode.
3137         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3138         to the hash list.
3139         * tests/test-exclude8.sh: New test case.
3140         * modules/exclude-tests: Add new test.
3141
3142 2010-05-05  Eric Blake  <eblake@redhat.com>
3143
3144         verify: automate tests
3145         * modules/verify-tests: New module.
3146         * tests/test-verify.sh: New file.
3147         * tests/test-verify.c: Guard each negative test with a unique id.
3148         Also avoid warning about unused left hand of comma expressions.
3149
3150 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3151
3152         Further improvements to verify.h, suggested by Eric Blake.
3153         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3154         the GL_* versions, to avoid collision with OpenGL.
3155         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3156         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3157         than testing merely whether it's defined.
3158
3159         Modify verify.h to pacify gcc -Wredundant_decls.
3160         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3161         These use the prefix "GL_" since they're likely to be useful elsewhere.
3162         We may need to break them out into a different .h file.
3163         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3164         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3165         of verify_function__.
3166
3167 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3168
3169         Tests for module pwrite.
3170         * modules/pwrite-tests: New file.
3171         * tests/test-pwrite.sh: New file.
3172         * tests/test-pwrite.c: New file.
3173
3174         New module pwrite.
3175         * lib/unistd.in.h (pwrite): New declaration.
3176         * lib/pwrite.c: New file, from glibc with modifications.
3177         * m4/pwrite.m4: New file.
3178         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3179         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3180         REPLACE_PWRITE.
3181         * modules/pwrite: New file.
3182         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3183         REPLACE_PWRITE.
3184         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3185         * doc/posix-functions/pwrite.texi: Mention the new module.
3186
3187 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3188
3189         pread: Update documentation.
3190         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3191
3192 2010-05-04  Eric Blake  <eblake@redhat.com>
3193
3194         docs: update cygwin progress
3195         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3196         this bug.
3197         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3198         Added in cygwin 1.7.2.
3199         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3200         Likewise.
3201         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3202         Likewise.
3203         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3204         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3205         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3206         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3207         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3208         Mention nproc module.
3209         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3210         bug in cygwin 1.7.5 addition.
3211         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3212         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3213         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3214         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3215         1.7.5.
3216         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3217         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3218         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3219         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3220         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3221         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3222         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3223         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3224         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3225         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3226         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3227         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3228         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3229         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3230         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3231         Likewise.
3232         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3233         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3234         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3235         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3236         Likewise.
3237         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3238         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3239         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3240         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3241         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3242         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3243         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3244         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3245         Likewise.
3246         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3247         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3248         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3249         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3250         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3251         Likewise.
3252         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3253         Likewise.
3254         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3255         Likewise.
3256         * doc/glibc-functions/xdrrec_endofrecord.texi
3257         (xdrrec_endofrecord): Likewise.
3258         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3259         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3260         Likewise.
3261         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3262         Likewise.
3263
3264 2010-05-04  Jim Meyering  <meyering@redhat.com>
3265
3266         gendocs.sh: make its "-s FILE" option more useful
3267         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3268         $PACKAGE to reflect the probably-different basename of "FILE".
3269
3270 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3271
3272         bootstrap: don't ignore download_po_files failure
3273         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3274         failure.
3275
3276 2010-05-03  Jim Meyering  <meyering@redhat.com>
3277
3278         maint.mk: allow to pass options to gendocs.sh
3279         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3280         (gendocs_options_): New overridable variable.
3281
3282         gnu-web-doc-update: don't ignore configure or build failure
3283         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3284
3285         announce-gen: backslash-escape '@'s in --help output
3286         * build-aux/announce-gen: Fix syntax errors.
3287
3288         maint.mk, announce-gen: allow project-specific announcement mail headers
3289         * top/maint.mk (translation_project_): Define default.
3290         (announcement_Cc_, announcement_mail_headers_): Likewise.
3291         (announcement): Invoke announce-gen with new --mail-headers option.
3292         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3293
3294         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3295         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3296         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3297         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3298         line in the "err2" output file when running "make check" in verbose
3299         mode (i.e., with set -x enabled).
3300
3301 2010-05-03  Bruno Haible  <bruno@clisp.org>
3302
3303         wctob: Fix for weird platforms.
3304         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3305         argument value.
3306
3307 2010-05-03  Jim Meyering  <meyering@redhat.com>
3308
3309         maint.mk: prohibit unwarranted use of <strings.h>
3310         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3311         strings.h in a file that does not also use strcasecmp, strncasecmp,
3312         ffs or ffsll.
3313
3314         maint.mk: remove obsolete comments
3315         * top/maint.mk: Remove stale, commented-out rules.
3316
3317 2010-05-02  Bruno Haible  <bruno@clisp.org>
3318
3319         wcwidth: Declare also when it's aliased.
3320         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3321         macro.
3322
3323 2010-05-02  Bruno Haible  <bruno@clisp.org>
3324
3325         Fix regression from 2010-04-25.
3326         * gnulib-tool (func_modules_transitive_closure): Check the status of
3327         all modules, not only of the tests that are of the form foo-tests where
3328         foo is a module.
3329
3330 2010-05-02  Bruno Haible  <bruno@clisp.org>
3331
3332         wctob: Work around nasty Cygwin 1.7.2 bug.
3333         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3334         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3335
3336 2010-05-01  Bruno Haible  <bruno@clisp.org>
3337
3338         fpurge: Sharper test.
3339         * tests/test-fpurge.c (main): Add one more ftell check.
3340         * modules/fpurge-tests (Depends-on): Add ftell.
3341         Suggested by Eric Blake.
3342
3343 2010-05-01  Bruno Haible  <bruno@clisp.org>
3344
3345         ftello: Another test.
3346         * tests/test-ftello3.c: New file.
3347         * modules/ftello-tests (Files): Add it.
3348         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3349         MOSTLYCLEANFILES.
3350
3351         ftell: Another test.
3352         * tests/test-ftell3.c: New file.
3353         * modules/ftell-tests (Files): Add it.
3354         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3355         MOSTLYCLEANFILES.
3356
3357 2010-05-01  Bruno Haible  <bruno@clisp.org>
3358
3359         ftell, ftello: Work around Solaris bug.
3360         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3361         * lib/ftello.c: Include stdio-impl.h.
3362         (ftello): On Solaris, when _IOWRT is set, compute the result without
3363         looking at _IOREAD.
3364         * modules/ftello (Files): Add lib/stdio-impl.h.
3365         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3366         * doc/posix-functions/ftello.texi: Likewise.
3367         Reported by Eric Blake.
3368
3369 2010-05-01  Bruno Haible  <bruno@clisp.org>
3370
3371         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3372         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3373         the _IOWRT flag is also set.
3374
3375 2010-05-01  Bruno Haible  <bruno@clisp.org>
3376
3377         Fix doc about a HP-UX stdio bug.
3378         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3379         * doc/posix-functions/ftello.texi: Likewise.
3380
3381 2010-05-01  Bruno Haible  <bruno@clisp.org>
3382
3383         lseek test: Fix failure on Solaris.
3384         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3385         output.
3386
3387 2010-04-30  Jim Meyering  <meyering@redhat.com>
3388
3389         bootstrap: don't ignore failure to generate po*/Makevars
3390         * build-aux/bootstrap (with_gettext): Don't ignore failure
3391         to create po/Makevars or runtime-po/Makevars.
3392
3393 2010-04-29  Eric Blake  <eblake@redhat.com>
3394
3395         headers: relax license to LGPLv2+
3396         * modules/fcntl-h (License): Relax license.
3397         * modules/getopt-posix (License): Likewise.
3398         * modules/locale (License): Likewise.
3399         * modules/math (License): Likewise.
3400         * modules/pty (License): Likewise.
3401         * modules/sched (License): Likewise.
3402         * modules/search (License): Likewise.
3403         * modules/spawn (License): Likewise.
3404         * modules/stdarg (License): Likewise.
3405         * modules/sysexits (License): Likewise.
3406
3407 2010-04-29  Jim Meyering  <meyering@redhat.com>
3408
3409         inttypes: relax license to LGPLv2+
3410         * modules/inttypes (License): Relax license.
3411
3412 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3413
3414         * top/maint.mk (indent): Run twice to produce idempotent results.
3415
3416 2010-04-28  Bruno Haible  <bruno@clisp.org>
3417
3418         getdate: Generate getdate.c in the source directory.
3419         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3420         MOSTLYCLEANFILES.
3421         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3422
3423 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3424
3425         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3426         is not declared as a const *; avoid warnings in that case.
3427
3428 2010-04-28  Eric Blake  <eblake@redhat.com>
3429
3430         canonicalize-lgpl: avoid compiler warning
3431         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3432         declaration' / 'extraneous semicolon' warning with some compilers.
3433         Reported by Andreas Gruenbacher.
3434
3435 2010-04-28  Jim Meyering  <meyering@redhat.com>
3436
3437         init.sh: ensure a more reliable exit status when exiting via trap
3438         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3439         Inspired by patches from Dmitry V. Levin.
3440         Also trap on signal 3 (SIGQUIT).
3441
3442 2010-04-27  Bruno Haible  <bruno@clisp.org>
3443
3444         Update doc about utimes().
3445         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3446         'utimens' module.
3447         Reported by Andreas Gruenbacher <agruen@suse.de>.
3448
3449 2010-04-27  Eric Blake  <eblake@redhat.com>
3450
3451         full-read, full-write: relax license
3452         * modules/full-read (License): Drop to LGPLv2+.
3453         * modules/full-write (License): Likewise.
3454         * modules/safe-read (License): Likewise.
3455         * modules/safe-write (License): Likewise.
3456
3457         pthread: mention library for linking
3458         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3459
3460 2010-04-27  Jim Meyering  <meyering@redhat.com>
3461
3462         maint.mk: fix a bug introduced in last change
3463         * top/maint.mk (gl_assured_headers_): Now that all names are on
3464         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3465         is not anchored to end of word, it should be adequate.
3466
3467         maint.mk: avoid side-effect in latest syntax-check
3468         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3469         to run commands via $(shell...), and hence to incur cost only when
3470         the new rule is actually run.
3471
3472         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3473         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3474         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3475         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3476         (gl_assured_headers_, az_, AZ_): Define.
3477         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3478
3479 2010-04-26  Jim Meyering  <jim@meyering.net>
3480             Bruno Haible  <bruno@clisp.org>
3481
3482         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3483         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3484         Prompted by an exchange with Gilles Espinasse.
3485
3486 2010-04-26  Jim Meyering  <meyering@redhat.com>
3487
3488         git-version-gen: aesthetic tweak
3489         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3490         so that the command remains on a single line.
3491
3492 2010-04-26  Eric Blake  <eblake@redhat.com>
3493
3494         git-version-gen: allow use on EBCDIC hosts
3495         * build-aux/git-version-gen (dirty): Use literal rather than tying
3496         ourselves to ascii.
3497         Reported by Steve Goetze.
3498
3499 2010-04-25  Bruno Haible  <bruno@clisp.org>
3500
3501         netdb: Add support for GNULIB_POSIXCHECK.
3502         * lib/netdb.in.h: Include warn-on-use.h.
3503         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3504         functions are used when GNULIB_POSIXCHECK is defined and the
3505         getaddrinfo module is not in use.
3506         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3507         freeaddrinfo, gai_strerror, getnameinfo are declared.
3508         * modules/netdb (Depends-on): Add warn-on-use.
3509         (Makefile.am): Include warn-on-use.h in netdb.h.
3510
3511 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3512
3513         build: avoid "make check" failure without .git/ directory
3514         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3515         there is no .git/ directory.
3516
3517 2010-04-25  Bruno Haible  <bruno@clisp.org>
3518
3519         ptsname: Fix misuse of ttyname_r.
3520         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3521         of errno.
3522
3523 2010-04-25  Bruno Haible  <bruno@clisp.org>
3524
3525         ttyname_r: Make it work on Solaris 10.
3526         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3527         if the system function has the POSIX declaration. Test whether the
3528         function fails if the buffer is less than 128 bytes large.
3529         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3530         system's ttyname_r function. Provide a reasonably large buffer.
3531         * modules/ttyname_r (Depends-on): Add extensions.
3532         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3533
3534 2010-04-25  Bruno Haible  <bruno@clisp.org>
3535
3536         Use the 'extensions' module for some more functions on Solaris.
3537         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3538         module.
3539         * doc/posix-functions/ctime_r.texi: Likewise.
3540         * doc/posix-functions/getgrgid_r.texi: Likewise.
3541         * doc/posix-functions/getgrnam_r.texi: Likewise.
3542         * doc/posix-functions/getpwnam_r.texi: Likewise.
3543         * doc/posix-functions/getpwuid_r.texi: Likewise.
3544         * doc/posix-functions/readdir_r.texi: Likewise.
3545         * doc/posix-functions/sigwait.texi: Likewise.
3546         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3547         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
3548
3549 2010-04-25  Bruno Haible  <bruno@clisp.org>
3550
3551         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
3552         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
3553         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
3554         * lib/ttyname_r.c: Include <limits.h>.
3555         (ttyname_r): Define using the system's ttyname_r function, if it exists
3556         and not on Solaris.
3557         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
3558         set.
3559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
3560         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
3561         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
3562         Reported by Simon Josefsson.
3563
3564 2010-04-25  Bruno Haible  <bruno@clisp.org>
3565
3566         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
3567         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
3568         * doc/posix-functions/ctime_r.texi: Likewise.
3569         * doc/posix-functions/getgrgid_r.texi: Likewise.
3570         * doc/posix-functions/getgrnam_r.texi: Likewise.
3571         * doc/posix-functions/getlogin_r.texi: Likewise.
3572         * doc/posix-functions/getpwnam_r.texi: Likewise.
3573         * doc/posix-functions/getpwuid_r.texi: Likewise.
3574         * doc/posix-functions/readdir_r.texi: Likewise.
3575         * doc/posix-functions/sigwait.texi: Likewise.
3576         * doc/posix-functions/ttyname_r.texi: Likewise.
3577         Reported by Simon Josefsson.
3578
3579 2010-04-25  Bruno Haible  <bruno@clisp.org>
3580
3581         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
3582         * gnulib-tool (func_usage): Document that --with-*-tests options apply
3583         also to --create-testdir.
3584         (func_acceptable): Don't consider the status of *-tests modules here.
3585         (func_modules_transitive_closure): Consider it here, before including a
3586         test module.
3587         (func_import, func_create_testdir): Set inc_all_direct_tests,
3588         inc_all_indirect_tests.
3589         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
3590         --create-testdir and --create-megatestdir.
3591
3592 2010-04-25  Bruno Haible  <bruno@clisp.org>
3593
3594         gnulib-tool: Add --without-*-tests options.
3595         * gnulib-tool (func_usage): Document the --without-*-tests options.
3596         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
3597         excl_unportable_tests): New variables.
3598         Fail if they are specified with --import or --update.
3599         (func_acceptable): Respect the excl_*_tests variables.
3600         (func_import): Set the excl_*_tests variables to empty.
3601
3602 2010-04-25  Simon Josefsson  <simon@josefsson.org>
3603             Bruno Haible  <bruno@clisp.org>
3604
3605         Work around a MacOS X 10.4 bug with openpty.
3606         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
3607         * tests/test-openpty.c (main): Close the master side explicitly.
3608
3609 2010-04-25  Bruno Haible  <bruno@clisp.org>
3610
3611         strnlen: Fix a C++ test error on MacOS X and Solaris.
3612         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
3613         the function is not declared.
3614         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
3615         Simon Josefsson.
3616
3617 2010-04-24  Bruno Haible  <bruno@clisp.org>
3618
3619         Avoid a gcc warning.
3620         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
3621         of correct type for %08lx directive.
3622         Reported by Eric Blake.
3623
3624 2010-04-24  Bruno Haible  <bruno@clisp.org>
3625
3626         vasnprintf: Correct errno value in case of out-of-memory.
3627         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
3628         or sprintf. Use the errno value from SNPRINTF or sprintf.
3629         Reported by Ian Beckwith <ianb@erislabs.net>.
3630
3631 2010-04-24  Bruno Haible  <bruno@clisp.org>
3632
3633         ansi-c++-opt: Find correct compiler when cross-compiling.
3634         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
3635         AC_CHECK_PROGS.
3636         Reported by Simon Josefsson.
3637
3638 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
3639
3640         vc-list-files: Add support for subversion
3641         * build-aux/vc-list-files: Use "svn list" to generate the list of
3642         files controlled by subversion.
3643
3644 2010-04-23  Jim Meyering  <meyering@redhat.com>
3645
3646         vc-list-files tests: convert to use init.sh
3647         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
3648         path_prepend_.
3649         Use Exit, not exit.
3650         Use skip_ rather than open coding it.
3651         Remove trap set-up and compare definitions.
3652         * tests/test-vc-list-files-git.sh: Likewise.
3653         * modules/vc-list-files-tests (Files): Add tests/init.sh.
3654
3655 2010-04-22  Simon Josefsson  <simon@josefsson.org>
3656
3657         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
3658         backup files.
3659
3660 2010-04-21  Simon Josefsson  <simon@josefsson.org>
3661
3662         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
3663
3664 2010-04-20  Eric Blake  <eblake@redhat.com>
3665
3666         tests: be robust to ignored SIGPIPE
3667         * tests/test-select-in.sh: Consume all output.
3668         * tests/test-lseek.sh: Check correct exit status, while avoiding
3669         EPIPE.
3670
3671 2010-04-20  Simon Josefsson  <simon@josefsson.org>
3672             Bruno Haible  <bruno@clisp.org>
3673
3674         visibility: Don't use -fvisibility if it leads to a warning.
3675         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
3676         yes, don't pretend that visibility works if it leads to a warning.
3677         Reported by Mike Gran <spk121@yahoo.com>.
3678
3679 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
3680
3681         * build-aux/bootstrap: Use "git -h" for testing for supported options
3682         instead of "git --help".  The short-form option only shows a summary,
3683         and doesn't layout the full man page.  Grep for the full option name
3684         in the summary, too.
3685
3686 2010-04-19  Bruno Haible  <bruno@clisp.org>
3687
3688         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
3689         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
3690         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
3691         mention of RELOCATABLE_STRIP.
3692         Reported by Sylvain Beucler <beuc@beuc.net>.
3693
3694 2010-04-19  Bruno Haible  <bruno@clisp.org>
3695
3696         * lib/diffseq.h: Fix typo in comment.
3697         Reported by Eric Blake.
3698
3699 2010-04-19  Bruno Haible  <bruno@clisp.org>
3700
3701         ioctl: Move autoconf macro to a .m4 file.
3702         * m4/ioctl.m4: New file, extracted from modules/ioctl.
3703         * modules/ioctl (Files): Add it.
3704         (configure.ac): Simply invoke gl_FUNC_IOCTL.
3705         Reported by Ian Beckwith <ianb@erislabs.net>.
3706
3707 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
3708             Bruno Haible  <bruno@clisp.org>
3709
3710         diffseq: Accommodate use-case with abstract arrays.
3711         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
3712         is not defined.
3713         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
3714         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
3715
3716 2010-04-18  Bruno Haible  <bruno@clisp.org>
3717
3718         * doc/posix-headers/stdbool.texi: More precise wording.
3719
3720 2010-04-17  Jim Meyering  <meyering@redhat.com>
3721
3722         maint.mk: use gnu-style indentation in an embedded perl script
3723         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
3724         Rename variable: s/two/last_two_bytes/
3725
3726 2010-04-16  Eric Blake  <eblake@redhat.com>
3727
3728         test-stdbool: skip test that fails with Solaris CC
3729         * tests/test-stdbool.c (f): Skip test that causes compilation
3730         error under buggy C++ compiler.
3731         * lib/stdbool.in.h: Document the limitation.
3732         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
3733
3734         setenv: allow compilation with C++
3735         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
3736         register keyword.
3737
3738         stdint: allow test to pass with C++
3739         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
3740
3741         getopt: allow compilation with C++
3742         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
3743         struct.
3744         * lib/getopt.c (_getopt_internal_r): Use correct type.
3745         Reported by Dagobert Michelson, via Joel E. Denny.
3746
3747 2010-04-16  Bruno Haible  <bruno@clisp.org>
3748
3749         Override netdb.h always.
3750         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
3751         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
3752         Reported by Ludovic Courtès <ludo@gnu.org>.
3753
3754 2010-04-15  Bruno Haible  <bruno@clisp.org>
3755
3756         openpty: Fix mistake from 2010-03-21.
3757         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
3758         Reported by Simon Josefsson.
3759
3760 2010-04-15  Eric Blake  <eblake@redhat.com>
3761
3762         test-forkpty: fix expected signature
3763         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
3764         Reported by Simon Josefsson.
3765
3766 2010-04-15  Jim Meyering  <meyering@redhat.com>
3767
3768         maint.mk: texinfo_suffix_re_: correct the default regexp
3769         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
3770
3771         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
3772         make it configurable via texinfo_suffix_re_.
3773
3774 2010-04-14  Eric Blake  <eblake@redhat.com>
3775
3776         strtok_r: relax license to LGPLv2+
3777         * modules/strtok_r (License): Relax license.
3778         Reported by Matthias Bolte.
3779
3780 2010-04-14  Simon Josefsson  <simon@josefsson.org>
3781
3782         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
3783         version 1.4.4 by default instead of requiring the libgcrypt
3784         version used during build.  This makes it possible to use the
3785         application with older but still binary compatible libgcrypt
3786         versions.
3787
3788 2010-04-13  Eric Blake  <eblake@redhat.com>
3789
3790         getopt-gnu: match recent glibc fixes and posix ruling
3791         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
3792         '+' handling, when requesting extensions.
3793         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
3794         'W;' handling.
3795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
3796         * doc/posix-functions/getopt.texi (getopt): Document this.
3797         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3798         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3799         Likewise.
3800
3801         getopt: merge bug fixes from glibc
3802         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
3803         diagnostics.  Honor '+:' correctly.  Reject ';'.
3804
3805         getopt-posix: detect MacOS bug
3806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
3807         optind when missing a required argument.
3808         * doc/posix-functions/getopt.texi (getopt): Document the bug.
3809         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3810         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3811         Likewise.
3812
3813         getopt-posix: avoid spurious failure on Solaris
3814         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
3815         an indicator that setting optind=1 is sufficient for reset.
3816
3817         getopt-posix: avoid spurious failure on FreeBSD
3818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
3819         in POSIX mode, since the m4 test uses it.
3820
3821         gnulib-tool: silence warning on BSD sh
3822         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
3823
3824 2010-04-13  Jim Meyering  <meyering@redhat.com>
3825
3826         doc: users.txt: GNU patch now uses gnulib
3827         * users.txt: Add patch.
3828
3829 2010-04-12  Jim Meyering  <meyering@redhat.com>
3830
3831         maint.mk: generate more concise timing data for syntax-check rules
3832         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
3833         " done" from each line that reports a syntax-check test duration.
3834
3835 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
3836
3837         git-version-gen: use "git update-index..." rather than "git status"
3838         * build-aux/git-version-gen: Use git update-index --refresh, not
3839         "git status".  With some versions of git, "git status" would fail
3840         to update the index and result in an unwarranted "-dirty" suffix.
3841
3842 2010-04-11  Jim Meyering  <meyering@redhat.com>
3843
3844         openat: correct formatting (no semantic change)
3845         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
3846         Suggested by Bruno Haible.
3847
3848 2010-04-11  Bruno Haible  <bruno@clisp.org>
3849
3850         Stricter declaration checking in testdirs.
3851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3852         If for_tests is true, augment AM_CPPFLAGS to define
3853         GNULIB_STRICT_CHECKING.
3854         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
3855         GNULIB_STRICT_CHECKING is defined, verify that the function is
3856         declared.
3857
3858 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
3859             Bruno Haible  <bruno@clisp.org>
3860
3861         libunistring: Improve configure output.
3862         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
3863         Don't say "consider installing GNU libunistring" when checking again
3864         with libiconv.
3865
3866 2010-04-11  Bruno Haible  <bruno@clisp.org>
3867
3868         libunistring: Correct value of $LTLIBUNISTRING.
3869         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
3870         correct the value of $LTLIBUNISTRING.
3871
3872 2010-04-11  Bruno Haible  <bruno@clisp.org>
3873
3874         havelib: Add static libraries to LIBS in the right order.
3875         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
3876         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
3877
3878 2010-04-11  Bruno Haible  <bruno@clisp.org>
3879
3880         libunistring: Detect libunistring also when it depends on libiconv.
3881         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
3882         the second AC_LIB_HAVE_LINKFLAGS invocation.
3883
3884 2010-04-11  James Youngman  <jay@gnu.org>
3885
3886         close-stream: declare local scalars to be "const"
3887         * lib/close-stream.c (close_stream): Make boolean variables const
3888         to document the fact that we set but do not change them.
3889
3890 2010-04-11  Bruno Haible  <bruno@clisp.org>
3891
3892         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
3893
3894 2010-04-11  Jim Meyering  <meyering@redhat.com>
3895
3896         maint.mk: don't include dist-check.mk
3897         * top/maint.mk: Remove bogus include directive.
3898
3899         maint.mk: improve empty-line-at-EOF check
3900         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
3901         solution, rather than tail+Perl-based one.  The latter would read
3902         a few kilobytes from the end of each file, and did not handle empty
3903         files properly.
3904
3905         maint.mk: print the elapsed time for each syntax-check rule
3906         * top/maint.mk (sc_m_rules_): Save start time in a file.
3907         (sc_z_rules_): New rules: remove temp file and print elapsed time.
3908         (local-check): Interpose the .z rules
3909
3910 2010-04-11  Jim Meyering  <meyering@redhat.com>
3911
3912         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
3913         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
3914         empty file with one that ends in an empty line.
3915
3916 2010-04-10  Bruno Haible  <bruno@clisp.org>
3917
3918         mkdir: Make it work on mingw64.
3919         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
3920         * lib/mkdir.c: Update comment.
3921         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
3922
3923 2010-04-10  Bruno Haible  <bruno@clisp.org>
3924
3925         Don't override improved macro from newer autoconf.
3926         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
3927         autoconf >= 2.62.
3928         Reported by Joel E. Denny <jdenny@clemson.edu>.
3929
3930 2010-04-10  Jim Meyering  <meyering@redhat.com>
3931
3932         maint.mk: new syntax-check rule: prohibit empty lines at end of file
3933         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
3934
3935         maint.mk: correct a diagnostic
3936         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
3937         in diagnostic; now use $prohibit.
3938
3939 2010-04-10  Bruno Haible  <address@hidden>
3940
3941         fchownat: Fix a C++ test error on Solaris 8.
3942         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
3943         the function does not exist.
3944
3945 2010-04-10  Bruno Haible  <bruno@clisp.org>
3946
3947         vasnprintf: Add more tests.
3948         * tests/test-vasnprintf-posix.c: Include <errno.h>.
3949         (test_function): Test converting an invalid wide string.
3950
3951         vasnprintf: Correct handling of unconvertible wide string arguments.
3952         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
3953         VASNPRINTF.
3954         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
3955         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
3956         smaller than the expected maximum need for the directive. Set errno to
3957         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
3958         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
3959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
3960         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
3961         * modules/vasnprintf (Files): Add m4/printf.m4.
3962         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3963
3964 2010-04-10  Bruno Haible  <bruno@clisp.org>
3965
3966         vasnprintf: Fix crash in %ls directive.
3967         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
3968         string is passed as argument to %ls, with no precision and no width.
3969         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3970
3971 2010-04-10  Bruno Haible  <bruno@clisp.org>
3972
3973         vasnprintf: Fix multiple test failures on mingw.
3974         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
3975         _snprintf, or snwprintf, not _snwprintf.
3976
3977 2010-04-10  Bruno Haible  <bruno@clisp.org>
3978
3979         write: Fix a C++ test error on mingw.
3980         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
3981
3982 2010-04-10  Bruno Haible  <bruno@clisp.org>
3983
3984         vasnprintf test: Reduce code duplication.
3985         * tests/test-vasnprintf.c (test_function): New function, extracted from
3986         test_vasnprintf.
3987         (test_vasnprintf, test_asnprintf): Invoke it.
3988
3989 2010-04-10  Bruno Haible  <bruno@clisp.org>
3990
3991         strnlen: Fix warning in C++ mode on MacOS X.
3992         * lib/string.in.h (strnlen): Use the modern idiom.
3993         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
3994         defining strnlen as a macro already in <config.h>.
3995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3996         REPLACE_STRNLEN.
3997         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
3998         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3999
4000 2010-04-08  James Youngman  <jay@gnu.org>
4001
4002         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4003         the example.
4004
4005 2010-04-09  Jim Meyering  <meyering@redhat.com>
4006
4007         maint.mk: print better diagnostic when there is no $(_hv_file)
4008         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4009         announce that when $(_hv_file) (aka help-version) does not exist.
4010
4011         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4012         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4013         not try to interpret its random input bytes.  Jarno Rajahalme reported
4014         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4015         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4016         (mktempd_): Likewise, just in case.
4017
4018         ftruncate: add two years to projected module removal date: 2012
4019         * m4/ftruncate.m4: Adjust comments.
4020
4021         ftruncate: mark module as obsolete; even MinGW provides it, now
4022         * modules/ftruncate (Status): Obsolete.
4023         (Notice): Say that.
4024         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4025         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4026
4027 2010-04-08  Bruno Haible  <bruno@clisp.org>
4028
4029         Fix side effects from tests-related modules.
4030         * modules/dprintf-posix (Comment): New section.
4031         * modules/fprintf-posix (Comment): Likewise.
4032         * modules/obstack-printf-posix (Comment): Likewise.
4033         * modules/printf-posix (Comment): Likewise.
4034         * modules/snprintf-posix (Comment): Likewise.
4035         * modules/sprintf-posix (Comment): Likewise.
4036         * modules/vasnprintf-posix (Comment): Likewise.
4037         * modules/vasprintf-posix (Comment): Likewise.
4038         * modules/vdprintf-posix (Comment): Likewise.
4039         * modules/vfprintf-posix (Comment): Likewise.
4040         * modules/vprintf-posix (Comment): Likewise.
4041         * modules/vsnprintf-posix (Comment): Likewise.
4042         * modules/vsprintf-posix (Comment): Likewise.
4043         * modules/xprintf-posix (Comment): Likewise.
4044         * modules/xvasprintf-posix (Comment): Likewise.
4045         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4046         * modules/floorf-tests (Depends-on): Likewise.
4047         * modules/round-tests (Depends-on): Likewise.
4048         * modules/roundf-tests (Depends-on): Likewise.
4049         * modules/trunc-tests (Depends-on): Likewise.
4050         * modules/truncf-tests (Depends-on): Likewise.
4051         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4052         'fprintf-posix' module is not present.
4053         * tests/test-floorf2.c (check): Likewise.
4054         * tests/test-trunc2.c (check): Likewise.
4055         * tests/test-truncf2.c (check): Likewise.
4056         * tests/test-round2.c (equal): Likewise.
4057         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4058
4059 2010-04-07  Karl Berry  <karl@gnu.org>
4060
4061         * config/srclist.txt,
4062         * config/srclistvars.sh,
4063         * config/srclist-update: doc fixes.
4064
4065 2010-04-07  Jim Meyering  <meyering@redhat.com>
4066
4067         maint.mk: add a PATH crosschecking syntax-check rule
4068         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4069         Useful if you use a test like the one in help-version (coreutils,
4070         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4071         printed by prog --version.
4072
4073 2010-04-06  Bruno Haible  <bruno@clisp.org>
4074
4075         Fix link error on mingw.
4076         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4077         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4078
4079 2010-04-06  Bruno Haible  <bruno@clisp.org>
4080
4081         Assume rmdir exists.
4082         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4083
4084 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4085
4086         doc: update users.txt
4087         * users.txt: Add gcal.
4088
4089 2010-04-06  Jim Meyering  <meyering@redhat.com>
4090
4091         init.sh: simply unset TMPDIR rather than risking env -i
4092         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4093         although it probably works fine on all Unix-based systems, some
4094         systems (Cygwin?) cannot tolerate a totally cleared environment.
4095         Suggestion from Eric Blake.
4096
4097 2010-04-06  Jim Meyering  <meyering@redhat.com>
4098
4099         init.sh: portability fix: use env's POSIX-specified -i option not -u
4100         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4101         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4102
4103 2010-04-05  Bruno Haible  <bruno@clisp.org>
4104
4105         btowc: Work around Cygwin 1.7.2 bug.
4106         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4107         does not map NUL to 0.
4108         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4109
4110 2010-04-05  Bruno Haible  <bruno@clisp.org>
4111
4112         Make the multithread modules work on Cygwin 1.7.2.
4113         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4114         imported symbols can be declared weak, so that it returns "no" on
4115         Cygwin 1.7.2.
4116
4117 2010-04-05  Bruno Haible  <bruno@clisp.org>
4118
4119         Use the module 'strncat'.
4120         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4121
4122         Tests for module 'strncat'.
4123         * modules/strncat-tests: New file.
4124         * tests/test-strncat.c: New file.
4125
4126         New module 'strncat'.
4127         * lib/string.in.h (strncat): New declaration.
4128         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4129         * m4/strncat.m4: New file, based on m4/memchr.m4.
4130         * modules/strncat: New file.
4131         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4132         is declared.
4133         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4134         REPLACE_STRNCAT.
4135         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4136         REPLACE_STRNCAT.
4137         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4138         module.
4139         * tests/test-string-c++.cc: Check signature of strncat.
4140
4141 2010-04-05  Jim Meyering  <meyering@redhat.com>
4142
4143         xstrtoumax-tests: convert to use init.sh
4144         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4145         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4146         Use Exit, not exit.
4147         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4148
4149         xstrtoimax-tests: convert to use init.sh
4150         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4151         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4152         Use Exit, not exit.
4153         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4154
4155 2010-04-05  Bruno Haible  <bruno@clisp.org>
4156
4157         sys_socket: Avoid #define replacements in C++ mode.
4158         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4159         warning to the function if possible, rather than #defining the symbol
4160         to a dysfunctional alias.
4161
4162 2010-04-05  Bruno Haible  <bruno@clisp.org>
4163
4164         fseeko: Fix C++ test error on mingw.
4165         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4166         gl_FUNC_FSEEKO.
4167         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4168         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4169         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4170         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4171
4172 2010-04-05  Bruno Haible  <bruno@clisp.org>
4173
4174         duplocale: Improve test output.
4175         * tests/test-duplocale.c (main): Print reason for skipped test.
4176
4177 2010-04-05  Bruno Haible  <bruno@clisp.org>
4178
4179         Assume rmdir exists.
4180         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4181         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4182
4183 2010-04-05  Bruno Haible  <bruno@clisp.org>
4184
4185         Fix link error on Solaris 8 with cc.
4186         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4187
4188 2010-04-05  Bruno Haible  <bruno@clisp.org>
4189
4190         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4191         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4192
4193 2010-04-05  Bruno Haible  <bruno@clisp.org>
4194
4195         vasprintf: Update documentation.
4196         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4197
4198 2010-04-05  Bruno Haible  <bruno@clisp.org>
4199
4200         ptsname: Improve test.
4201         * tests/test-ptsname.c (main): Also try the various master names of BSD
4202         systems.
4203
4204 2010-04-05  Bruno Haible  <bruno@clisp.org>
4205
4206         memchr: Avoid a possible C++ test error.
4207         * lib/string.in.h (memchr): Provide declaration if function is missing.
4208         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4209         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4211         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4212
4213 2010-04-05  Bruno Haible  <bruno@clisp.org>
4214
4215         strtok_r: Improve idiom.
4216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4217         AC_LIBOBJ is used.
4218
4219 2010-04-05  Bruno Haible  <bruno@clisp.org>
4220
4221         strdup: Improve idiom.
4222         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4223         AC_LIBOBJ is used.
4224         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4225         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4226         when AC_LIBOBJ is used.
4227
4228 2010-04-05  Bruno Haible  <bruno@clisp.org>
4229
4230         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4231         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4232         don't set REPLACE_MBSINIT to 1.
4233         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4234         don't set REPLACE_MBRTOWC to 1.
4235         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4236         exist, don't set REPLACE_MBSRTOWCS to 1.
4237         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4238         exist, don't set REPLACE_MBSNRTOWCS to 1.
4239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4240         don't set REPLACE_WCRTOMB to 1.
4241         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4242         exist, don't set REPLACE_WCSRTOMBS to 1.
4243         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4244         exist, don't set REPLACE_WCSNRTOMBS to 1.
4245
4246 2010-04-05  Bruno Haible  <bruno@clisp.org>
4247
4248         ldexpl: Improve idiom.
4249         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4250         make sure to set HAVE_DECL_LDEXPL to 0.
4251
4252 2010-04-05  Jim Meyering  <meyering@redhat.com>
4253
4254         xstrtol-tests: convert to use init.sh
4255         * modules/xstrtol-tests (Files): Add tests/init.sh.
4256         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4257         Use Exit, not exit.
4258         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4259
4260         atexit-tests: convert to use init.sh
4261         * modules/atexit-tests (Files): Add tests/init.sh.
4262         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4263         Use Exit, not exit.
4264         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4265
4266         init.sh: fix typo
4267         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4268
4269         init.sh: make it easier for a test script to write to the tty, ...
4270         when using automake's parallel-tests mode.
4271         * tests/init.sh (stderr_fileno_): Define overridable variable.
4272         (warn_): New function, to use it.
4273         (fail_, skip_, framework_failure_): Use warn_.
4274
4275 2010-04-04  Bruno Haible  <bruno@clisp.org>
4276
4277         btowc: Avoid warning.
4278         * lib/btowc.c: Include <stdlib.h>.
4279         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4280
4281 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4282             Bruno Haible  <bruno@clisp.org>
4283
4284         wchar: Port to NetBSD 1.5.
4285         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4286         * lib/wctype.in.h (WEOF): Likewise.
4287
4288 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4289             Bruno Haible  <bruno@clisp.org>
4290
4291         Port extended stdio to NetBSD 1.5.
4292         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4293         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4294         older.
4295
4296 2010-04-04  Bruno Haible  <bruno@clisp.org>
4297
4298         string: Remove unused substitution.
4299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4300         HAVE_DECL_STRERROR.
4301         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4302
4303 2010-04-04  Bruno Haible  <bruno@clisp.org>
4304
4305         strtod: Avoid a possible C++ test error.
4306         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4307         set REPLACE_STRTOD.
4308
4309 2010-04-04  Bruno Haible  <bruno@clisp.org>
4310
4311         strerror: Update documentation.
4312         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4313
4314 2010-04-04  Bruno Haible  <bruno@clisp.org>
4315
4316         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4317         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4318         _GL_CXXALIAS_SYS_CAST.
4319
4320 2010-04-04  Bruno Haible  <bruno@clisp.org>
4321
4322         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4323         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4324         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4325         REPLACE_FREXPL to 1.
4326         * doc/posix-functions/frexpl.texi: Update documentation.
4327
4328 2010-04-04  Bruno Haible  <bruno@clisp.org>
4329
4330         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4331         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4332
4333 2010-04-04  Bruno Haible  <bruno@clisp.org>
4334
4335         Implement nanosleep for native Windows.
4336         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4337
4338 2010-04-04  Bruno Haible  <bruno@clisp.org>
4339
4340         math: Fix some C++ test errors on Solaris 8.
4341         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4342
4343 2010-04-04  Bruno Haible  <bruno@clisp.org>
4344
4345         math: Fix some C++ test errors on Cygwin.
4346         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4347         truncl): Provide declaration if the system does not have it.
4348         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4349         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4350         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4351         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4352         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4353         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4354         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4355         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4356         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4357         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4358         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4359         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4360         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4361         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4362         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4363         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4365         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4366         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4367         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4368         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4369         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4370
4371 2010-04-04  Bruno Haible  <bruno@clisp.org>
4372
4373         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4374         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4375         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4376         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4377         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4378         * m4/isinf.m4 (gl_ISINF): Likewise.
4379         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4380
4381 2010-04-04  Bruno Haible  <bruno@clisp.org>
4382
4383         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4384         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4385
4386 2010-04-04  Bruno Haible  <bruno@clisp.org>
4387
4388         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4389         * modules/tmpfile (configure.ac): Update.
4390
4391         tmpfile: Fix C++ test error on mingw.
4392         * lib/stdio.in.h (tmpfile): New declaration.
4393         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4394         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4395         * modules/tmpfile (Depends-on): Add stdio.
4396         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4397         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4398         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4399         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4400         REPLACE_TMPFILE.
4401         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4402
4403 2010-04-04  Bruno Haible  <bruno@clisp.org>
4404
4405         ioctl: Fix C++ test error on mingw.
4406         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4407         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4408         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4409
4410 2010-04-03  Bruno Haible  <bruno@clisp.org>
4411
4412         wcwidth: Fix C++ test error on mingw.
4413         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4415         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4416
4417 2010-04-03  Bruno Haible  <bruno@clisp.org>
4418
4419         nanosleep: Fix C++ test error on mingw.
4420         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4421         * lib/time.in.h (nanosleep): Use modern idiom.
4422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4423         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4424         REPLACE_NANOSLEEP to 1.
4425         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4426         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4427
4428 2010-04-03  Bruno Haible  <bruno@clisp.org>
4429
4430         strptime: Fix C++ test error on mingw.
4431         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4432         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4433         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4434         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4435         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4436         not REPLACE_STRPTIME.
4437         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4438         REPLACE_STRPTIME.
4439
4440 2010-04-03  Bruno Haible  <bruno@clisp.org>
4441
4442         timegm: Fix C++ test error on mingw.
4443         * lib/time.in.h (timegm): Use modern idiom.
4444         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4445         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4446         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4447         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4448
4449 2010-04-03  Bruno Haible  <bruno@clisp.org>
4450
4451         timegm: Assume declaration if function exists.
4452         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4453         if it exists. Don't clobber ac_cv_func_timegm.
4454
4455 2010-04-03  Bruno Haible  <bruno@clisp.org>
4456
4457         time_r: Fix C++ test error on mingw.
4458         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4459         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4460         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4461         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4462         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4463
4464 2010-04-03  Bruno Haible  <bruno@clisp.org>
4465
4466         time_r: Minor updates.
4467         * modules/time_r (Description): Mention the provided functions.
4468         * lib/time_r.c: Don't include <string.h>.
4469         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4470         * doc/posix-functions/localtime_r.texi: Likewise.
4471
4472 2010-04-03  Bruno Haible  <bruno@clisp.org>
4473
4474         time: Fix regression introduced on 2010-03-08.
4475         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4476         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4477
4478 2010-04-03  Jim Meyering  <meyering@redhat.com>
4479
4480         maint.mk: don't silently disable project-specific syntax-check rules
4481         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4482         that they need to convert their project-specific syntax-check rules
4483         to use the new _sc_search_regexp.
4484
4485 2010-04-03  Bruno Haible  <bruno@clisp.org>
4486
4487         fchdir: Fix regression introduced on 2010-03-08.
4488         * lib/unistd.in.h (fchdir): Fix declaration.
4489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4491         REPLACE_FCHDIR.
4492         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4493         REPLACE_FCHDIR.
4494
4495 2010-04-03  Bruno Haible  <bruno@clisp.org>
4496
4497         getpagesize: Fix C++ test error on mingw.
4498         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4499         system does not declare the function.
4500         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4501         declared.
4502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4503         HAVE_DECL_GETPAGESIZE.
4504         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4505
4506 2010-04-03  Bruno Haible  <bruno@clisp.org>
4507
4508         stdio: Make C++ tests work on mingw.
4509         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4510         does not declare the function.
4511
4512 2010-04-03  Bruno Haible  <bruno@clisp.org>
4513
4514         ftello: Fix C++ test error on mingw.
4515         * lib/stdio.in.h (ftello): Use modern idiom.
4516         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4517         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4518         is missing and that it needs to be replaced.
4519         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4521         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4522
4523 2010-04-03  Bruno Haible  <bruno@clisp.org>
4524
4525         fseeko: Fix C++ test error on mingw.
4526         * lib/stdio.in.h (fseeko): Use modern idiom.
4527         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4528         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4529         is missing and that it needs to be replaced.
4530         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4532         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4533
4534 2010-04-03  Bruno Haible  <bruno@clisp.org>
4535
4536         mkstemp: Fix C++ test error on mingw.
4537         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4538         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4539         function is missing and that it needs to be replaced.
4540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4541         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4542
4543 2010-04-03  Bruno Haible  <bruno@clisp.org>
4544
4545         stpncpy: Fix C++ test error on mingw.
4546         * lib/string.in.h (stpncpy): Use modern idiom.
4547         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
4548         function is missing and that it needs to be replaced.
4549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4550         REPLACE_STPNCPY.
4551         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
4552
4553 2010-04-03  Bruno Haible  <bruno@clisp.org>
4554
4555         sys_stat: Fix C++ test error on mingw.
4556         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
4557         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
4558
4559 2010-04-03  Bruno Haible  <bruno@clisp.org>
4560
4561         pty: Update doc.
4562         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
4563
4564 2010-04-03  Bruno Haible  <bruno@clisp.org>
4565
4566         unistd: Fix C++ test error on mingw.
4567         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
4568
4569 2010-04-03  Bruno Haible  <bruno@clisp.org>
4570
4571         Update doc regarding mingw.
4572         * doc/glibc-functions/openpty.texi: Update regarding mingw.
4573         * doc/glibc-functions/login_tty.texi: Likewise.
4574         * doc/glibc-functions/forkpty.texi: Likewise.
4575
4576 2010-04-03  Bruno Haible  <bruno@clisp.org>
4577
4578         stdlib: Avoid compilation failure of c-strtold on mingw.
4579         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
4580
4581 2010-04-03  Bruno Haible  <bruno@clisp.org>
4582
4583         locale: Make C++ tests work on Cygwin and mingw.
4584         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
4585         cannot provide the function.
4586         Reported by Simon Josefsson.
4587
4588 2010-04-03  Bruno Haible  <bruno@clisp.org>
4589
4590         localename: Port to MacOS X 10.6.
4591         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
4592         memory layout of the locales in MacOS X 10.6 as well.
4593         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
4594
4595 2010-04-02  Bruno Haible  <bruno@clisp.org>
4596
4597         gnulib-tool: Ensure that long-running tests are executed last.
4598         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
4599         running tests after the one for the other tests.
4600
4601 2010-04-02  Bruno Haible  <bruno@clisp.org>
4602
4603         gnulib-tool: Ensure the tests in the main directory are executed first.
4604         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
4605         start with the current directory.
4606
4607 2010-04-02  Bruno Haible  <bruno@clisp.org>
4608
4609         Tests for module 'havelib', moved here from GNU gettext.
4610         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
4611         modifications.
4612         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
4613         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
4614         with modifications.
4615         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
4616         modifications.
4617         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
4618         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
4619         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
4620         with modifications.
4621         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
4622         with modifications.
4623         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
4624         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
4625         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
4626         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
4627         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
4628         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
4629         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
4630         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
4631         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
4632         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
4633         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
4634         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
4635         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
4636         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
4637         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
4638         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
4639         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
4640         with modifications.
4641         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
4642         with modifications.
4643         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
4644         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
4645         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
4646         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
4647         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
4648         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
4649         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
4650         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
4651         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
4652         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
4653         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
4654         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
4655         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
4656         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
4657         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
4658         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
4659         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
4660         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
4661         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
4662         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
4663         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
4664         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
4665         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
4666         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
4667         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
4668         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
4669         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
4670         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
4671         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
4672         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
4673         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
4674         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
4675         * tests/havelib/rpathx/rpathx.c: New file, from
4676         gettext/autoconf-lib-link.
4677         * tests/havelib/rpathx/Makefile.am: New file, from
4678         gettext/autoconf-lib-link.
4679         * tests/havelib/rpathx/configure.ac: New file, from
4680         gettext/autoconf-lib-link with modifications.
4681         * tests/havelib/rpathy/rpathy.c: New file, from
4682         gettext/autoconf-lib-link.
4683         * tests/havelib/rpathy/Makefile.am: New file, from
4684         gettext/autoconf-lib-link.
4685         * tests/havelib/rpathy/configure.ac: New file, from
4686         gettext/autoconf-lib-link with modifications.
4687         * tests/havelib/rpathz/rpathz.c: New file, from
4688         gettext/autoconf-lib-link.
4689         * tests/havelib/rpathz/Makefile.am: New file, from
4690         gettext/autoconf-lib-link.
4691         * tests/havelib/rpathz/configure.ac: New file, from
4692         gettext/autoconf-lib-link with modifications.
4693         * tests/havelib/rpathlx/usex.c: New file, from
4694         gettext/autoconf-lib-link.
4695         * tests/havelib/rpathlx/Makefile.am: New file, from
4696         gettext/autoconf-lib-link.
4697         * tests/havelib/rpathlx/configure.ac: New file, from
4698         gettext/autoconf-lib-link with modifications.
4699         * tests/havelib/rpathly/usey.c: New file, from
4700         gettext/autoconf-lib-link.
4701         * tests/havelib/rpathly/Makefile.am: New file, from
4702         gettext/autoconf-lib-link.
4703         * tests/havelib/rpathly/configure.ac: New file, from
4704         gettext/autoconf-lib-link with modifications.
4705         * tests/havelib/rpathlz/usez.c: New file, from
4706         gettext/autoconf-lib-link.
4707         * tests/havelib/rpathlz/Makefile.am: New file, from
4708         gettext/autoconf-lib-link.
4709         * tests/havelib/rpathlz/configure.ac: New file, from
4710         gettext/autoconf-lib-link with modifications.
4711         * tests/havelib/rpathlyx/usey.c: New file, from
4712         gettext/autoconf-lib-link.
4713         * tests/havelib/rpathlyx/Makefile.am: New file, from
4714         gettext/autoconf-lib-link.
4715         * tests/havelib/rpathlyx/configure.ac: New file, from
4716         gettext/autoconf-lib-link with modifications.
4717         * tests/havelib/rpathlzyx/usez.c: New file, from
4718         gettext/autoconf-lib-link.
4719         * tests/havelib/rpathlzyx/Makefile.am: New file, from
4720         gettext/autoconf-lib-link.
4721         * tests/havelib/rpathlzyx/configure.ac: New file, from
4722         gettext/autoconf-lib-link with modifications.
4723         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
4724         with modifications.
4725
4726 2010-04-02  Bruno Haible  <bruno@clisp.org>
4727
4728         gnulib-tool: Create distributed built sources also for the tests.
4729         * gnulib-tool (func_create_testdir): Also generate distributed built
4730         sources in the tests directory.
4731
4732 2010-04-02  Bruno Haible  <bruno@clisp.org>
4733
4734         gnulib-tool: Obey user's environment variables.
4735         * gnulib-tool (func_create_testdir): When creating built sources,
4736         respect the environment variables for autoconf, automake, etc. given by
4737         the user.
4738
4739 2010-04-02  Bruno Haible  <bruno@clisp.org>
4740
4741         gnulib-tool: Provide the value of --m4-base to modules.
4742         * gnulib-tool (func_import, func_create_testdir): Emit a definition
4743         of gl_m4_base.
4744
4745 2010-04-02  Eric Blake  <eblake@redhat.com>
4746
4747         maint.mk: fix some fallout
4748         * NEWS: Document the incompatible change, and its effect on cfg.mk.
4749         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
4750
4751 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
4752
4753         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
4754         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
4755         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
4756         (sc_cast_of_x_alloc_return_value): Likewise.
4757         (sc_cast_of_alloca_return_value): Likewise.
4758         (sc_space_tab): Likewise.
4759         (sc_prohibit_atoi_atof): Likewise.
4760         (sc_prohibit_magic_number_exit): Likewise.
4761         (sc_error_exit_success): Likewise.
4762         (sc_file_system): Likewise.
4763         (sc_prohibit_have_config_h): Likewise.
4764         (sc_require_config_h): Likewise.
4765         (sc_prohibit_HAVE_MBRTOWC): Likewise.
4766         (sc_obsolete_symbols): Likewise.
4767         (sc_changelog): Likewise.
4768         (sc_program_name): Likewise.
4769         (sc_the_the): Likewise.
4770         (sc_trailing_blank): Likewise.
4771         (sc_two_space_separator_in_usage): Likewise.
4772         (sc_useless_cpp_parens): Likewise.
4773         (sc_GPL_version): Likewise.
4774         (sc_GFDL_version): Likewise.
4775         (sc_texinfo_acronym): Likewise.
4776         (sc_prohibit_cvs_keyword): Likewise.
4777         (sc_prohibit_stat_st_blocks): Likewise.
4778         (sc_prohibit_S_IS_definition): Likewise.
4779         (sc_redundant_const): Likewise.
4780         (sc_makefile_TAB_only_indentation): Likewise.
4781         (sc_m4_quote_check): Likewise.
4782         (sc_makefile_path_separator_check): Likewise.
4783         (sc_copyright_check): Likewise.
4784         (sc_Wundef_boolean): Likewise.
4785         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4786
4787         maint.mk: match 0 or more whitespace-before-function-call '('
4788         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
4789         that have zero or two-and-more spaces between the function name
4790         and the open parenthesis.
4791         (sc_error_message_warn_fatal): Likewise.
4792         (sc_error_message_uppercase): Likewise.
4793         (sc_error_message_period): Likewise.
4794
4795 2010-03-31  Eric Blake  <eblake@redhat.com>
4796
4797         maint.mk: check for [ as well as test
4798         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
4799         Based on a libvirt report by Matthias Bolte.
4800
4801         gnumakefile: don't squelch _version output
4802         * top/GNUmakefile (_version): Create one-shot dependency rather
4803         than using $(shell) when version must be regenerated.
4804         (_autoreconf): Run verbosely, by default.
4805
4806         sys_time: avoid compiler warnings
4807         * lib/sys_time.in.h (includes): Ensure gcc pragma is
4808         unconditional, fixing regression from 2010-03-29.
4809         Reported by Simon Josefsson.
4810
4811 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
4812
4813         maint.mk: s/_header_without_use/_sc_header_without_use/
4814         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
4815         (sc_prohibit_assert_without_use): Use the new name.
4816         (sc_prohibit_close_stream_without_use): Likewise.
4817         (sc_prohibit_getopt_without_use): Likewise.
4818         (sc_prohibit_quotearg_without_use): Likewise.
4819         (sc_prohibit_quote_without_use): Likewise.
4820         (sc_prohibit_long_options_without_use): Likewise.
4821         (sc_prohibit_inttostr_without_use): Likewise.
4822         (sc_prohibit_ignore_value_without_use): Likewise.
4823         (sc_prohibit_error_without_use): Likewise.
4824         (sc_prohibit_xalloc_without_use): Likewise.
4825         (sc_prohibit_hash_without_use): Likewise.
4826         (sc_prohibit_hash_pjw_without_use): Likewise.
4827         (sc_prohibit_safe_read_without_use): Likewise.
4828         (sc_prohibit_argmatch_without_use): Likewise.
4829         (sc_prohibit_canonicalize_without_use): Likewise.
4830         (sc_prohibit_root_dev_ino_without_use): Likewise.
4831         (sc_prohibit_openat_without_use): Likewise.
4832         (sc_prohibit_c_ctype_without_use): Likewise.
4833         (sc_prohibit_signal_without_use): Likewise.
4834         (sc_prohibit_intprops_without_use): Likewise.
4835
4836 2010-03-30  Eric Blake  <eblake@redhat.com>
4837
4838         maint: improve module indicators
4839         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
4840         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
4841         columns, and avoid extra macro expansion.
4842
4843         fdopendir: work around FreeBSD bug
4844         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
4845         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
4846         * modules/dirent (Makefile.am): Substitute it.
4847         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
4848         declaration.
4849         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
4850         fix.
4851         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4852
4853 2010-03-29  Bruno Haible  <bruno@clisp.org>
4854
4855         Emit #pragma system_header after the inclusion guard, not before.
4856         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
4857         guard that spans the entire file, not before. This enables an
4858         optimization in GCC's preprocessor.
4859         * lib/ctype.in.h: Likewise.
4860         * lib/dirent.in.h: Likewise.
4861         * lib/errno.in.h: Likewise.
4862         * lib/float.in.h: Likewise.
4863         * lib/getopt.in.h: Likewise.
4864         * lib/iconv.in.h: Likewise.
4865         * lib/langinfo.in.h: Likewise.
4866         * lib/locale.in.h: Likewise.
4867         * lib/math.in.h: Likewise.
4868         * lib/netdb.in.h: Likewise.
4869         * lib/netinet_in.in.h: Likewise.
4870         * lib/pty.in.h: Likewise.
4871         * lib/sched.in.h: Likewise.
4872         * lib/se-selinux.in.h: Likewise.
4873         * lib/search.in.h: Likewise.
4874         * lib/spawn.in.h: Likewise.
4875         * lib/stdarg.in.h: Likewise.
4876         * lib/stdint.in.h: Likewise.
4877         * lib/string.in.h: Likewise.
4878         * lib/strings.in.h: Likewise.
4879         * lib/sys_file.in.h: Likewise.
4880         * lib/sys_ioctl.in.h: Likewise.
4881         * lib/sys_time.in.h: Likewise.
4882         * lib/sys_times.in.h: Likewise.
4883         * lib/sys_utsname.in.h: Likewise.
4884         * lib/sys_wait.in.h: Likewise.
4885         * lib/sysexits.in.h: Likewise.
4886         * lib/wctype.in.h: Likewise.
4887
4888 2010-03-28  James Youngman  <jay@gnu.org>
4889
4890         save-cwd: don't leak a file descriptor when the caller execs.
4891         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
4892         saved file descriptor.
4893         * modules/save-cwd (Depends-on): Depend on cloexec.
4894
4895 2010-03-29  Bruno Haible  <bruno@clisp.org>
4896
4897         Remove vestiges of fts-lgpl module.
4898         * lib/fts_.h: Assume GNULIB_FTS is 1.
4899         * lib/fts.c: Likewise.
4900         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4901
4902 2010-03-28  Bruno Haible  <bruno@clisp.org>
4903
4904         Fix definition of tests witness macro.
4905         * gnulib-tool (func_import): Fix definition of witness macro.
4906
4907 2010-03-28  Bruno Haible  <bruno@clisp.org>
4908
4909         Fix ioctl's protoype on glibc systems.
4910         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
4911         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
4912         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
4913         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
4914         signature. If not, arrange to replace the ioctl function.
4915         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
4916         REPLACE_IOCTL.
4917         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
4918         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
4919         Reported by Ludovic Courtès <ludo@gnu.org>.
4920
4921 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
4922
4923         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
4924         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
4925         made it so grep -r --include=GLOB* ... did not work.
4926
4927 2010-03-26  Jim Meyering  <meyering@redhat.com>
4928             Eric Blake  <eblake@redhat.com>
4929
4930         maint.mk: prohibit use of test's -o and -a operators
4931         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
4932
4933 2010-03-28  Bruno Haible  <bruno@clisp.org>
4934
4935         Remove unused GNULIB_XYZ macro definitions.
4936         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
4937         invocation.
4938
4939 2010-03-28  Bruno Haible  <bruno@clisp.org>
4940
4941         Mark privileged tests modules.
4942         * modules/idpriv-drop-tests (Status): New section.
4943         * modules/idpriv-droptemp-tests (Status): New section.
4944
4945 2010-03-28  Bruno Haible  <bruno@clisp.org>
4946
4947         Split C++ tests into separate tests modules.
4948         * modules/dirent-c++-tests: New file, extracted from
4949         modules/dirent-tests.
4950         * modules/dirent-tests: Depend on it.
4951         * modules/fcntl-h-c++-tests: New file, extracted from
4952         modules/fcntl-h-tests.
4953         * modules/fcntl-h-tests: Depend on it.
4954         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
4955         * modules/glob-tests: Depend on it.
4956         * modules/iconv-h-c++-tests: New file, extracted from
4957         modules/iconv-h-tests.
4958         * modules/iconv-h-tests: Depend on it.
4959         * modules/langinfo-c++-tests: New file, extracted from
4960         modules/langinfo-tests.
4961         * modules/langinfo-tests: Depend on it.
4962         * modules/locale-c++-tests: New file, extracted from
4963         modules/locale-tests.
4964         * modules/locale-tests: Depend on it.
4965         * modules/math-c++-tests: New file, extracted from modules/math-tests.
4966         * modules/math-tests: Depend on it.
4967         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
4968         * modules/pty-tests: Depend on it.
4969         * modules/search-c++-tests: New file, extracted from
4970         modules/search-tests.
4971         * modules/search-tests: Depend on it.
4972         * modules/signal-c++-tests: New file, extracted from
4973         modules/signal-tests.
4974         * modules/signal-tests: Depend on it.
4975         * modules/spawn-c++-tests: New file, extracted from
4976         modules/spawn-tests.
4977         * modules/spawn-tests: Depend on it.
4978         * modules/stdio-c++-tests: New file, extracted from
4979         modules/stdio-tests.
4980         * modules/stdio-tests: Depend on it.
4981         * modules/stdlib-c++-tests: New file, extracted from
4982         modules/stdlib-tests.
4983         * modules/stdlib-tests: Depend on it.
4984         * modules/string-c++-tests: New file, extracted from
4985         modules/string-tests.
4986         * modules/string-tests: Depend on it.
4987         * modules/sys_ioctl-c++-tests: New file, extracted from
4988         modules/sys_ioctl-tests.
4989         * modules/sys_ioctl-tests: Depend on it.
4990         * modules/sys_select-c++-tests: New file, extracted from
4991         modules/sys_select-tests.
4992         * modules/sys_select-tests: Depend on it.
4993         * modules/sys_socket-c++-tests: New file, extracted from
4994         modules/sys_socket-tests.
4995         * modules/sys_socket-tests: Depend on it.
4996         * modules/sys_stat-c++-tests: New file, extracted from
4997         modules/sys_stat-tests.
4998         * modules/sys_stat-tests: Depend on it.
4999         * modules/sys_time-c++-tests: New file, extracted from
5000         modules/sys_time-tests.
5001         * modules/sys_time-tests: Depend on it.
5002         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5003         * modules/time-tests: Depend on it.
5004         * modules/unistd-c++-tests: New file, extracted from
5005         modules/unistd-tests.
5006         * modules/unistd-tests: Depend on it.
5007         * modules/wchar-c++-tests: New file, extracted from
5008         modules/wchar-tests.
5009         * modules/wchar-tests: Depend on it.
5010         * modules/wctype-c++-tests: New file, extracted from
5011         modules/wctype-tests.
5012         * modules/wctype-tests: Depend on it.
5013         Reported by Simon Josefsson.
5014
5015 2010-03-28  Bruno Haible  <bruno@clisp.org>
5016
5017         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5018         * gnulib-tool (func_exists_module): New function, extracted from
5019         func_verify_module.
5020         (func_verify_module): Use it.
5021         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5022         'foo' only if 'foo' exists.
5023         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5024         module.
5025
5026 2010-03-28  Bruno Haible  <bruno@clisp.org>
5027
5028         gnulib-tool: Add support for special categories of tests.
5029         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5030         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5031         (func_usage): Document them.
5032         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5033         inc_unportable_tests, inc_all_tests): New variables.
5034         (func_acceptable): Consider these variables.
5035         (func_modules_transitive_closure): Make it work when the 'Status' field
5036         consists of multiple words.
5037         (func_import): Store and restore the values of inc_cxx_tests,
5038         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5039         inc_all_tests in gnulib-comp.m4.
5040         (func_create_testdir): Set inc_all_tests to true.
5041         * doc/gnulib.texi (Extra tests modules): New section.
5042         Suggested by Jim Meyering.
5043
5044 2010-03-28  Bruno Haible  <bruno@clisp.org>
5045
5046         ansi-c++-opt: Allow turning off the C++ build by default.
5047         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5048         gl_CXX_CHOICE_DEFAULT_NO is defined.
5049         Requested by Eric Blake.
5050
5051 2010-03-28  Bruno Haible  <bruno@clisp.org>
5052
5053         unistd: Avoid #define replacements in C++ mode.
5054         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5055         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5056         setsockopt, shutdown, select): In C++, attach a warning to the function
5057         if possible, rather than #defining the symbol to a dysfunctional alias.
5058         Reported by John W. Eaton <jwe@gnu.org>.
5059
5060 2010-03-28  Bruno Haible  <bruno@clisp.org>
5061
5062         Fix link errors on mingw.
5063         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5064         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5065         $(LIBSOCKET).
5066         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5067         $(LIBSOCKET).
5068
5069 2010-03-28  Bruno Haible  <bruno@clisp.org>
5070             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5071
5072         lib-ignore: Determine different options for different compilers.
5073         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5074         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5075         Add comments.
5076         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5077         * NEWS: Mention the change.
5078
5079 2010-03-27  Bruno Haible  <bruno@clisp.org>
5080
5081         Remove unused GNULIB_XYZ macro definitions.
5082         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5083         * modules/fseek (configure.ac): Likewise.
5084         * modules/ioctl (configure.ac): Likewise.
5085         * modules/open (configure.ac): Likewise.
5086         * modules/stdlib-safer (configure.ac): Likewise.
5087
5088 2010-03-27  Bruno Haible  <bruno@clisp.org>
5089
5090         Add a remark about certain modules.
5091         * modules/malloc (Comment): New section.
5092         * modules/realloc (Comment): Likewise.
5093         * modules/sigpipe (Comment): Likewise.
5094
5095 2010-03-27  Bruno Haible  <bruno@clisp.org>
5096
5097         Resolve conflict between the two kinds of module indicators.
5098         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5099         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5100         * modules/canonicalize (configure.ac): Invoke
5101         gl_MODULE_INDICATOR_FOR_TESTS.
5102         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5103         GNULIB_XYZ.
5104         * tests/test-dirent-c++.cc: Likewise.
5105         * tests/test-dirent-safer.c: Likewise.
5106         * tests/test-dup2.c: Likewise.
5107         * tests/test-fchdir.c: Likewise.
5108         * tests/test-fcntl-h-c++.cc: Likewise.
5109         * tests/test-getopt.c: Likewise.
5110         * tests/test-getopt.h: Likewise.
5111         * tests/test-langinfo-c++.cc: Likewise.
5112         * tests/test-locale-c++.cc: Likewise.
5113         * tests/test-math-c++.cc: Likewise.
5114         * tests/test-pty-c++.cc: Likewise.
5115         * tests/test-search-c++.cc: Likewise.
5116         * tests/test-signal-c++.cc: Likewise.
5117         * tests/test-spawn-c++.cc: Likewise.
5118         * tests/test-stdio-c++.cc: Likewise.
5119         * tests/test-stdlib-c++.cc: Likewise.
5120         * tests/test-string-c++.cc: Likewise.
5121         * tests/test-sys_ioctl-c++.cc: Likewise.
5122         * tests/test-sys_select-c++.cc: Likewise.
5123         * tests/test-sys_socket-c++.cc: Likewise.
5124         * tests/test-sys_stat-c++.cc: Likewise.
5125         * tests/test-sys_time-c++.cc: Likewise.
5126         * tests/test-time-c++.cc: Likewise.
5127         * tests/test-unistd-c++.cc: Likewise.
5128         * tests/test-wchar-c++.cc: Likewise.
5129         * tests/uninorm/test-u8-nfc.c: Likewise.
5130         * tests/uninorm/test-u8-nfd.c: Likewise.
5131         * tests/uninorm/test-u8-nfkc.c: Likewise.
5132         * tests/uninorm/test-u8-nfkd.c: Likewise.
5133         * tests/uninorm/test-u16-nfc.c: Likewise.
5134         * tests/uninorm/test-u16-nfd.c: Likewise.
5135         * tests/uninorm/test-u16-nfkc.c: Likewise.
5136         * tests/uninorm/test-u16-nfkd.c: Likewise.
5137         * tests/uninorm/test-u32-nfc.c: Likewise.
5138         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5139         * tests/uninorm/test-u32-nfd.c: Likewise.
5140         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5141         * tests/uninorm/test-u32-nfkc.c: Likewise.
5142         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5143         * tests/uninorm/test-u32-nfkd.c: Likewise.
5144         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5145         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5146
5147 2010-03-27  Bruno Haible  <bruno@clisp.org>
5148
5149         Distinguish two kinds of module indicators.
5150         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5151         gl_MODULE_INDICATOR.
5152         (gl_MODULE_INDICATOR): New macro.
5153         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5154         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5155         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5156         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5157         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5158         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5159         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5160         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5161         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5162         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5163         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5164         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5166         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5167         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5169         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5170         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5171         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5172         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5173         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5174         * modules/cloexec (configure.ac): Likewise.
5175         * modules/getopt-gnu (configure.ac): Likewise.
5176         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5177         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5178         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5179         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5180
5181 2010-03-27  Bruno Haible  <bruno@clisp.org>
5182
5183         New module description field 'Comment'.
5184         * gnulib-tool: New option --extract-comment.
5185         (func_usage): Document it.
5186         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5187         (func_get_comment): New function.
5188         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5189
5190 2010-03-27  Bruno Haible  <bruno@clisp.org>
5191
5192         Addendum to 2010-02-07 commit.
5193         * gnulib-tool (func_usage): Document --extract-applicability option.
5194
5195 2010-03-27  Bruno Haible  <bruno@clisp.org>
5196
5197         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5198         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5199         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5200         rather than link errors.
5201
5202 2010-03-27  Bruno Haible  <bruno@clisp.org>
5203
5204         Avoid side effects from tests-related modules on the compilation of lib.
5205         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5206         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5207         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5208         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5209         macro.
5210         (func_import): Define a witness macro. Assign it a value that depends
5211         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5212         tests-related modules.
5213         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5214         Reported by Jim Meyering.
5215
5216 2010-03-27  Bruno Haible  <bruno@clisp.org>
5217
5218         Factorize common .m4 code.
5219         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5220         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5221         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5222         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5223         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5224         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5225         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5226         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5227         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5228         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5229         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5230         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5231         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5232         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5233         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5234         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5235         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5236         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5238         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5239         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5240         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5241         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5242         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5243         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5244         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5245         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5246         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5247         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5248         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5249         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5250         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5251
5252 2010-03-27  Bruno Haible  <bruno@clisp.org>
5253
5254         Fix a compilation error on Cygwin with g++ >= 4.3.
5255         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5256         if it is undefined or if we alias it to chmod.
5257         (lstat): Don't warn about the use of this function if it is undefined
5258         or if we alias it to stat.
5259         Reported by Simon Josefsson.
5260
5261 2010-03-27  Bruno Haible  <bruno@clisp.org>
5262
5263         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5264         * modules/getlogin (configure.ac): Update.
5265
5266         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5267         * modules/getlogin_r (configure.ac): Update.
5268
5269         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5271         * modules/inet_ntop (configure.ac): Update.
5272
5273         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5274         * modules/inet_pton (configure.ac): Update.
5275
5276         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5277         * modules/mbslen (configure.ac): Update.
5278
5279         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5280         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5281         * modules/forkpty (configure.ac): Update.
5282         * modules/openpty (configure.ac): Update.
5283
5284 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5285
5286         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5287         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5288
5289 2010-03-25  Eric Blake  <eblake@redhat.com>
5290
5291         maint: use pragma consistently across replacement headers
5292         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5293         * lib/dirent.in.h (system_header): Likewise.
5294         * lib/errno.in.h (system_header): Likewise.
5295         * lib/float.in.h (system_header): Likewise.
5296         * lib/getopt.in.h (system_header): Likewise.
5297         * lib/iconv.in.h (system_header): Likewise.
5298         * lib/inttypes.in.h (system_header): Likewise.
5299         * lib/langinfo.in.h (system_header): Likewise.
5300         * lib/locale.in.h (system_header): Likewise.
5301         * lib/math.in.h (system_header): Likewise.
5302         * lib/netdb.in.h (system_header): Likewise.
5303         * lib/netinet_in.in.h (system_header): Likewise.
5304         * lib/pty.in.h (system_header): Likewise.
5305         * lib/sched.in.h (system_header): Likewise.
5306         * lib/se-selinux.in.h (system_header): Likewise.
5307         * lib/search.in.h (system_header): Likewise.
5308         * lib/spawn.in.h (system_header): Likewise.
5309         * lib/stdarg.in.h (system_header): Likewise.
5310         * lib/stdint.in.h (system_header): Likewise.
5311         * lib/string.in.h (system_header): Likewise.
5312         * lib/strings.in.h (system_header): Likewise.
5313         * lib/sys_file.in.h (system_header): Likewise.
5314         * lib/sys_ioctl.in.h (system_header): Likewise.
5315         * lib/sys_socket.in.h (system_header): Likewise.
5316         * lib/sys_times.in.h (system_header): Likewise.
5317         * lib/sys_utsname.in.h (system_header): Likewise.
5318         * lib/sys_wait.in.h (system_header): Likewise.
5319         * lib/sysexits.in.h (system_header): Likewise.
5320         * lib/unistd.in.h (system_header): Likewise.
5321         * lib/wctype.in.h (system_header): Likewise.
5322
5323         arpa/inet: fix mingw compilation warning
5324         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5325         Reported by Matthew Bolte.
5326
5327 2010-03-25  Bruno Haible  <bruno@clisp.org>
5328
5329         Avoid collision between gnulib wrapper and libintl wrapper.
5330         * lib/printf.c (printf): Don't define if a printf wrapper is already
5331         defined in intl/printf.c.
5332         Reported by Michel Boaventura <michel@michelboaventura.com>.
5333
5334 2010-03-25  Bruno Haible  <bruno@clisp.org>
5335
5336         Use ANSI C.
5337         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5338
5339 2010-03-25  Bruno Haible  <bruno@clisp.org>
5340
5341         Minor formatting changes.
5342         * lib/acosl.c: Insert space before function argument list.
5343         * lib/argz.c: Likewise.
5344         * lib/asinl.c: Likewise.
5345         * lib/expl.c: Likewise.
5346         * lib/gen-uni-tables.c: Likewise.
5347         * lib/gettext.h: Likewise.
5348         * lib/glthread/lock.h: Likewise.
5349         * lib/tanl.c: Likewise.
5350         * lib/uniname/uniname.c: Likewise.
5351         * tests/test-idpriv-drop.c: Likewise.
5352         * tests/test-idpriv-droptemp.c: Likewise.
5353         * tests/test-lock.c: Likewise.
5354         * tests/test-tls.c: Likewise.
5355         * lib/argp-help.c: Insert space before function-like macro argument
5356         list.
5357         * lib/memcmp.c: Likewise.
5358         * tests/test-base64.c: Likewise.
5359         * lib/localename.c: Insert space before sizeof's argument list.
5360         * lib/safe-alloc.h: Likewise.
5361         * lib/file-set.h: Insert space before macro argument list.
5362         * tests/test-argp.c: Likewise.
5363         * lib/argp-namefrob.h: Insert space before function parameter list.
5364         * lib/getaddrinfo.c: Likewise.
5365         * lib/netdb.in.h: Likewise.
5366         * lib/parse-duration.h: Likewise.
5367         * lib/parse-duration.c: Likewise.
5368         * lib/poll.c: Likewise.
5369         * lib/select.c: Likewise.
5370         * lib/trim.h: Likewise.
5371         * tests/test-usleep.c: Likewise.
5372         * lib/ldexpl.c: Insert space before function parameter list and before
5373         function argument list.
5374         * lib/logl.c: Likewise.
5375         * lib/sqrtl.c: Likewise.
5376         * lib/trim.c: Likewise.
5377         * lib/cosl.c: Use GNU style indentation. Insert space before function
5378         argument list.
5379         * lib/sinl.c: Likewise.
5380         * lib/tsearch.c: Insert space after 'for'.
5381         Reported by Jim Meyering.
5382
5383 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5384
5385         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5386         config header before grepping, as it's not present before
5387         autoreconf/configure are run.  Reported by Simon Josefsson.
5388
5389 2010-03-23  Bruno Haible  <bruno@clisp.org>
5390
5391         pt_chown: Make it work with automake < 1.11.
5392         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5393         Reported by Simon Josefsson.
5394
5395 2010-03-23  Bruno Haible  <bruno@clisp.org>
5396
5397         pt_chown: Don't depend on GPLed modules.
5398         * lib/pt_chown.c: Don't include idpriv.h.
5399         (main): Don't drop privileges.
5400         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5401         Reported by Simon Josefsson.
5402
5403 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5404
5405         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5406         suggestions from karl@freefriends.org (Karl Berry).
5407
5408 2010-03-22  Eric Blake  <eblake@redhat.com>
5409
5410         gethostname: further tweaks
5411         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5412         are overriding gethostname.
5413         Suggested by Bruno Haible.
5414
5415 2010-03-21  Bruno Haible  <bruno@clisp.org>
5416
5417         Fix comments.
5418         * lib/forkpty.c (rpl_forkpty): Fix comment.
5419         * lib/openpty.c (rpl_openpty): Likewise.
5420         Reported by Eric Blake.
5421
5422 2010-03-22  Eric Blake  <eblake@redhat.com>
5423
5424         gethostname: fix build on mingw
5425         * lib/unistd.in.h (includes): Work around fact that mingw
5426         <winsock2.h> re-includes <unistd.h>, by avoiding any
5427         redeclarations if we are being included by <winsock2.h>.
5428         Reported by Matthias Bolte.
5429
5430 2010-03-21  Bruno Haible  <bruno@clisp.org>
5431
5432         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5433         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5434         modifications.
5435         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5436         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5437         provide the replacement.
5438         * modules/forkpty (Depends-on): Add openpty, login_tty.
5439         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5440         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5441         * doc/glibc-functions/forkpty.texi: More supported platforms.
5442         * config/srclist.txt: Add forkpty.c (commented).
5443
5444 2010-03-21  Bruno Haible  <bruno@clisp.org>
5445
5446         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5447         (Makefile.am): Verify that PTY_LIB is defined.
5448
5449         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5450
5451 2010-03-21  Bruno Haible  <bruno@clisp.org>
5452
5453         Tests for module 'login_tty'.
5454         * modules/login_tty-tests: New file.
5455         * tests/test-login_tty.c: New file.
5456
5457         New module 'login_tty'.
5458         * lib/login_tty.c: New file.
5459         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5460         * modules/login_tty: New file.
5461         * doc/glibc-functions/login_tty.texi: Mention the new module.
5462
5463 2010-03-21  Bruno Haible  <bruno@clisp.org>
5464
5465         login_tty: Documentation.
5466         * doc/glibc-functions/login_tty.texi: New file.
5467         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5468
5469 2010-03-21  Bruno Haible  <bruno@clisp.org>
5470
5471         pty: Consistent macro naming.
5472         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5473         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5474         * modules/pty (configure.ac): Update.
5475
5476 2010-03-21  Bruno Haible  <bruno@clisp.org>
5477
5478         Tests for openpty: Make stricter.
5479         * tests/test-openpty.c (main): Add test of canonical processing and
5480         erase.
5481         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5482
5483         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5484         * lib/openpty.c (openpty): New replacement function.
5485         * lib/pty.in.h: Include <termios.h>.
5486         (openpty): Update declaration. Add comments.
5487         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5488         is not declared, arrange to provide the replacement. Check for _getpty
5489         and posix_openpt.
5490         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5491         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5492         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5493         * modules/pty-tests (test_pty_c___LDADD): New variable.
5494         * doc/glibc-functions/openpty.texi: More supported platforms.
5495
5496 2010-03-21  Bruno Haible  <bruno@clisp.org>
5497
5498         setenv: Tweaks.
5499         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5500         the test program.
5501         * doc/posix-functions/setenv.texi: Update platforms list.
5502
5503 2010-03-21  Bruno Haible  <bruno@clisp.org>
5504
5505         New module 'unlockpt'.
5506         * lib/unlockpt.c: New file, from glibc with modifications.
5507         * m4/unlockpt.m4: New file.
5508         * modules/unlockpt: New file.
5509         * lib/stdlib.in.h (unlockpt): New declaration.
5510         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5511         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5512         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5513         HAVE_UNLOCKPT.
5514         * doc/posix-functions/unlockpt.texi: Mention the new module.
5515         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5516         * config/srclist.txt: Add unlockpt.c (commented).
5517
5518 2010-03-21  Jim Meyering  <meyering@redhat.com>
5519
5520         maint.mk: prohibit inclusion of "intprops.h" without use
5521         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5522
5523 2010-03-21  Bruno Haible  <bruno@clisp.org>
5524
5525         New module 'grantpt'.
5526         * lib/grantpt.c: New file, from glibc with modifications.
5527         * m4/grantpt.m4: New file.
5528         * modules/grantpt: New file.
5529         * lib/stdlib.in.h (grantpt): New declaration.
5530         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5531         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5532         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5533         HAVE_GRANTPT.
5534         * doc/posix-functions/grantpt.texi: Mention the new module.
5535         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5536         * config/srclist.txt: Add grantpt.c (commented).
5537
5538 2010-03-21  Bruno Haible  <bruno@clisp.org>
5539
5540         New module 'pt_chown'.
5541         * lib/pt_chown.c: New file, from glibc with modifications.
5542         * lib/pty-private.h: New file, from glibc with modifications.
5543         * modules/pt_chown: New file.
5544         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5545
5546 2010-03-21  Bruno Haible  <bruno@clisp.org>
5547
5548         Tests for module 'ptsname'.
5549         * modules/ptsname-tests: New file.
5550         * tests/test-ptsname.c: New file.
5551
5552         New module 'ptsname'.
5553         * lib/ptsname.c: New file, from glibc with modifications.
5554         * m4/ptsname.m4: New file.
5555         * modules/ptsname: New file.
5556         * lib/stdlib.in.h (ptsname): New declaration.
5557         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
5558         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
5559         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
5560         HAVE_PTSNAME.
5561         * doc/posix-functions/ptsname.texi: Mention the new module.
5562         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
5563         * config/srclist.txt: Add ptsname.c (commented).
5564
5565 2010-03-21  Bruno Haible  <bruno@clisp.org>
5566
5567         Tests for module 'ttyname_r'.
5568         * modules/ttyname_r-tests: New file.
5569         * tests/test-ttyname_r.c: New file.
5570
5571         New module 'ttyname_r'.
5572         * lib/ttyname_r.c: New file.
5573         * m4/ttyname_r.m4: New file.
5574         * modules/ttyname_r: New file.
5575         * lib/unistd.in.h (ttyname_r): New declaration.
5576         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
5577         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
5578         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
5579         HAVE_TTYNAME_R.
5580         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
5581         * doc/posix-functions/ttyname_r.texi: Mention the new module.
5582
5583 2010-03-20  Bruno Haible  <bruno@clisp.org>
5584
5585         signal: Undefine macro definitions in C++ mode.
5586         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
5587         sigfillset): Undefine macro definitions from the system header in C++
5588         mode.
5589         Reported by John W. Eaton <jwe@gnu.org>.
5590
5591 2010-03-20  Bruno Haible  <bruno@clisp.org>
5592
5593         Ensure no #include statements inside extern "C" { ... }.
5594         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
5595         contain #include statements.
5596         * lib/time.in.h: Likewise.
5597
5598 2010-03-20  Bruno Haible  <bruno@clisp.org>
5599
5600         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
5601         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
5602         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
5603         Reported by John W. Eaton <jwe@gnu.org>.
5604
5605 2010-03-20  Bruno Haible  <bruno@clisp.org>
5606
5607         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
5608         Reported by Jim Meyering.
5609
5610 2010-03-20  Bruno Haible  <bruno@clisp.org>
5611
5612         pipe: Set errno upon failure.
5613         * lib/pipe.h: Specify that when -1 is returned, errno is set.
5614         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
5615         errno value in error message.
5616
5617 2010-03-20  Bruno Haible  <bruno@clisp.org>
5618             Jim Meyering  <meyering@redhat.com>
5619
5620         lchown: Avoid "unused variable" warning.
5621         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
5622
5623 2010-03-20  Bruno Haible  <bruno@clisp.org>
5624
5625         Work around unlink() bug on MacOS X 10.5.6.
5626         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
5627         attempting to unlink a parent directory.
5628         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
5629         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
5630         activate for the replacement function.
5631         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
5632
5633 2010-03-20  Bruno Haible  <bruno@clisp.org>
5634
5635         Fix link errors on Solaris 8.
5636         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
5637         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
5638
5639 2010-03-19  Jim Meyering  <meyering@redhat.com>
5640
5641         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
5642         The _LIBC implementation of build_range_exp correctly honors the
5643         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
5644         However, the non-_LIBC implementation would ignore that syntax-bit
5645         flag and return REG_ERANGE unconditionally.
5646         This change makes it honor that flag.
5647         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
5648         Make two pointer parameters "const".
5649         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
5650         (parse_bracket_exp): Update caller.
5651
5652         regex.m4: correct the reversed range endpoint ([b-a]) test
5653         * m4/regex.m4: When requiring that [b-a] evoke failure,
5654         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
5655         test pass once again for x86-based systems.
5656
5657 2010-03-19  Bruno Haible  <bruno@clisp.org>
5658
5659         scandir: Fix link error on Solaris 8.
5660         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
5661         macros.
5662
5663 2010-03-19  Bruno Haible  <bruno@clisp.org>
5664
5665         getusershell: Fix documentation.
5666         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
5667         module.
5668         * doc/glibc-functions/setusershell.texi: Likewise.
5669
5670         getusershell: Provide declaration, missing on Solaris 9.
5671         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
5672         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
5673         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
5674         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
5675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5676         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
5677         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
5678         HAVE_GETUSERSHELL.
5679         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
5680
5681 2010-03-19  Bruno Haible  <bruno@clisp.org>
5682
5683         wctype: Provide iswblank function.
5684         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
5685         exists and is fine.
5686         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
5687         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
5688         * tests/test-wctype.c (main): Re-enable the iswblank tests.
5689         * doc/posix-functions/iswblank.texi: Update.
5690
5691 2010-03-19  Bruno Haible  <bruno@clisp.org>
5692
5693         Tests of module 'pty' in C++ mode.
5694         * modules/pty-tests: New file.
5695         * tests/test-pty-c++.cc: New file.
5696         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5697
5698 2010-03-19  Eric Blake  <eblake@redhat.com>
5699
5700         logb: fix documentation
5701         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
5702         1.5 declaration bug.
5703
5704         forkpty, openpty: prefer glibc's const-safe prototype
5705         * lib/forkpty.c (rpl_forkpty): New file.
5706         * lib/openpty.c (rpl_openpty): Likewise.
5707         * modules/forkpty (Files): Distribute it.
5708         * modules/openpty (Files): Likewise.
5709         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
5710         check...
5711         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
5712         replacement for for non-const BSD signature.
5713         * modules/pty (Makefile.am): Substitute witnesses.
5714         * lib/pty.in.h (forkpty, openpty): Declare replacements.
5715         * tests/test-forkpty.c: Update signature check.
5716         * tests/test-openpty.c: Likewise.
5717         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
5718         * doc/glibc-functions/openpty.texi (openpty): Likewise.
5719
5720         forkpty, openpty: split functions into new modules
5721         * modules/pty (Makefile.am): Substitute new witnesses.
5722         (Libraries): Move library detection...
5723         * modules/forkpty: ...into new module.
5724         * modules/openpty: Another new module.
5725         * modules/pty-tests: Rename and split...
5726         * modules/forkpty-tests: ...to this...
5727         * modules/openpty-tests: ...and this.
5728         * tests/test-pty.c: Rename and split...
5729         * tests/test-forkpty.c: ...to this...
5730         * tests/test-openpty.c: ...and this.
5731         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
5732         (gl_PTY): Split library searching...
5733         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
5734         (gl_FORKPTY, gl_OPENPTY): New macros.
5735         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
5736         * NEWS: Mention the split.
5737         * MODULES.html.sh (Misc): Document the modules.
5738         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
5739         * doc/glibc-functions/openpty.texi (openpty): Likewise.
5740
5741         pty: improve replacement header
5742         * lib/pty.in.h: New file.
5743         * modules/pty (Files): Ship it.
5744         (Makefile.am): Always build replacement.
5745         * m4/pty.m4: Rename...
5746         * m4/pty_h.m4: ...to this.
5747         (gl_PTY): Modernize setting of witness macros; update check of
5748         forkpty to take proper advantage of cache.
5749         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
5750
5751         getopt: avoid compiler warning
5752         * lib/getopt.c (attribute_hidden): Remove unused macro.
5753
5754 2010-03-18  Bruno Haible  <bruno@clisp.org>
5755
5756         Fix link errors on Solaris 8.
5757         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
5758         * modules/search-tests (test_search_c___LDADD): Likewise.
5759         * modules/signal-tests (test_signal_c___LDADD): Likewise.
5760         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
5761         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
5762         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
5763         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
5764         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
5765         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
5766
5767 2010-03-18  Bruno Haible  <bruno@clisp.org>
5768
5769         Fix bug introduced on 2010-03-14.
5770         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
5771         (gl_SPAWN_H): Require it.
5772         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
5773         Reported by Simon Josefsson.
5774
5775 2010-03-18  Bruno Haible  <bruno@clisp.org>
5776
5777         Fix typo introduced on 2009-12-31.
5778         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
5779         posix_spawn_file_actions_adddup2.
5780
5781 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
5782         and Eric Blake  <eblake@redhat.com>
5783
5784         test-vc-list-files-git: make more robust
5785         * tests/test-vc-list-files-git.sh: Unset problematic environment
5786         variables.  Chain commands together.
5787
5788 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
5789
5790         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
5791         `AC_CHECK_DECL' invocation.
5792
5793 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
5794
5795         * lib/inttostr.c (inttostr): Make sure the invocation of verify
5796         appears before executable statements. Suggested by Petr Sumbera
5797         <Petr.Sumbera@Sun.COM>.
5798
5799 2010-03-14  Bruno Haible  <bruno@clisp.org>
5800
5801         * tests/test-flock.c (test_exclusive): Comment out a test that causes
5802         portability problems. Instead use a simpler test.
5803         (main): Check that invalid arguments are rejected only on Linux.
5804
5805 2010-03-14  Bruno Haible  <bruno@clisp.org>
5806
5807         Fix bug introduced on 2009-12-31.
5808         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5809         gl_PREREQ_SYS_H_WINSOCK2 always.
5810         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
5811         SYS_SOCKET_H variable.
5812         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
5813         Update comments.
5814         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
5815         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5816         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5817         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5818         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5819
5820 2010-03-14  Bruno Haible  <bruno@clisp.org>
5821
5822         Fix values returned by sinl, cosl.
5823         * lib/trigl.h: Add specification comments.
5824         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
5825         that combines the values from the precomputed table with the values of
5826         the Chebyshev polynomials.
5827
5828 2010-03-14  Bruno Haible  <bruno@clisp.org>
5829
5830         Fix compilation error when modules 'posix_spawn[p]' are not used.
5831         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
5832         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
5833
5834 2010-03-14  Bruno Haible  <bruno@clisp.org>
5835
5836         Fix compilation error on mingw when module 'time_r' is not used.
5837         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
5838         is 1.
5839         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
5840         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5841         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
5842         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
5843
5844 2010-03-14  Bruno Haible  <bruno@clisp.org>
5845
5846         Fix compilation error with Sun C.
5847         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
5848         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
5849         instead of GCC specific ULONG_LONG_MAX.
5850         * lib/xstrtoll.c: Likewise.
5851         * lib/xstrtoull.c: Likewise.
5852
5853 2010-03-13  Bruno Haible  <bruno@clisp.org>
5854
5855         Allow the user to disable C++ code and tests.
5856         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
5857         (gl_PROG_ANSI_CXX): Require it.
5858
5859 2010-03-13  Bruno Haible  <bruno@clisp.org>
5860
5861         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
5862         cases.
5863
5864 2010-03-13  Bruno Haible  <bruno@clisp.org>
5865
5866         Test that gnulib does not break the standard C++ headers.
5867         * tests/test-locale-c++2.cc: New file.
5868         * modules/locale-tests (Files): Add it.
5869         (Makefile.am): Compile it for test-locale-c++.
5870         * tests/test-math-c++2.cc: New file.
5871         * modules/math-tests (Files): Add it.
5872         (Makefile.am): Compile it for test-math-c++.
5873         * tests/test-signal-c++2.cc: New file.
5874         * modules/signal-tests (Files): Add it.
5875         (Makefile.am): Compile it for test-signal-c++.
5876         * tests/test-stdio-c++2.cc: New file.
5877         * modules/stdio-tests (Files): Add it.
5878         (Makefile.am): Compile it for test-stdio-c++.
5879         * tests/test-stdlib-c++2.cc: New file.
5880         * modules/stdlib-tests (Files): Add it.
5881         (Makefile.am): Compile it for test-stdlib-c++.
5882         * tests/test-string-c++2.cc: New file.
5883         * modules/string-tests (Files): Add it.
5884         (Makefile.am): Compile it for test-string-c++.
5885         * tests/test-time-c++2.cc: New file.
5886         * modules/time-tests (Files): Add it.
5887         (Makefile.am): Compile it for test-time-c++.
5888         Reported by John W. Eaton <jwe@gnu.org>.
5889
5890 2010-03-13  Bruno Haible  <bruno@clisp.org>
5891
5892         * gnulib-tool (func_usage): Clarify which options are available for
5893         --create-testdir and --create-megatestdir.
5894
5895 2010-03-13  Bruno Haible  <bruno@clisp.org>
5896
5897         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
5898         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
5899         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
5900         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5901         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
5902         when appropriate.
5903         Reported by Jim Meyering.
5904
5905 2010-03-12  Simon Josefsson  <simon@josefsson.org>
5906
5907         * gnulib-tool (func_import): Explain origin of code.
5908
5909 2010-03-12  Bruno Haible  <bruno@clisp.org>
5910
5911         Fix problem with automake's definition of CXXLINK.
5912         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
5913         Reported by Simon Josefsson and Ludovic Courtès.
5914
5915 2010-03-12  Bruno Haible  <bruno@clisp.org>
5916
5917         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
5918         stable releases.
5919
5920 2010-03-11  Bruno Haible  <bruno@clisp.org>
5921
5922         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
5923         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
5924         whether the system provides one variant or multiple variants of the
5925         function.
5926         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
5927         C++ compilers.
5928         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
5929         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
5930         Reported by Jim Meyering.
5931
5932 2010-03-09  Simon Josefsson  <simon@josefsson.org>
5933
5934         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
5935
5936 2010-03-08  Bruno Haible  <bruno@clisp.org>
5937
5938         gnulib-tool: Add support for --libtool in --create-testdir.
5939         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
5940         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
5941
5942 2010-03-08  Eric Blake  <eblake@redhat.com>
5943
5944         gnulib-tool.texi: mention possibility of git submodule
5945         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
5946         submodules.
5947         * doc/.gitignore: Ignore another generated file.
5948
5949 2010-03-08  Karl Berry  <karl@gnu.org>
5950
5951         * doc/gnulib-tool.texi (VCS Issues): Mention third option
5952         of committing gnulib files while skipping others.
5953
5954 2010-03-07  Bruno Haible  <bruno@clisp.org>
5955
5956         Tests of module 'wctype' in C++ mode.
5957         * tests/test-wctype-c++.cc: New file.
5958         * modules/wctype-tests (Files): Add it and tests/signature.h.
5959         (Depends-on): Add ansi-c++-opt.
5960         (Makefile.am): Arrange to compile and run test-wctype-c++.
5961
5962         Tests of module 'wchar' in C++ mode.
5963         * tests/test-wchar-c++.cc: New file.
5964         * modules/wchar-tests (Files): Add it and tests/signature.h.
5965         (Depends-on): Add ansi-c++-opt.
5966         (Makefile.am): Arrange to compile and run test-wchar-c++.
5967         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
5968         gl_MODULE_INDICATOR.
5969
5970         Tests of module 'unistd' in C++ mode.
5971         * tests/test-unistd-c++.cc: New file.
5972         * modules/unistd-tests (Files): Add it and tests/signature.h.
5973         (Depends-on): Add ansi-c++-opt.
5974         (Makefile.am): Arrange to compile and run test-unistd-c++.
5975         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
5976         gl_MODULE_INDICATOR.
5977
5978         Tests of module 'time' in C++ mode.
5979         * tests/test-time-c++.cc: New file.
5980         * modules/time-tests (Files): Add it and tests/signature.h.
5981         (Depends-on): Add ansi-c++-opt.
5982         (Makefile.am): Arrange to compile and run test-time-c++.
5983         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5984
5985         Tests of module 'sys_time' in C++ mode.
5986         * tests/test-sys_time-c++.cc: New file.
5987         * modules/sys_time-tests (Files): Add it and tests/signature.h.
5988         (Depends-on): Add ansi-c++-opt.
5989         (Makefile.am): Arrange to compile and run test-sys_time-c++.
5990         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
5991         gl_MODULE_INDICATOR.
5992
5993         Tests of module 'sys_stat' in C++ mode.
5994         * tests/test-sys_stat-c++.cc: New file.
5995         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
5996         (Depends-on): Add ansi-c++-opt.
5997         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
5998         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
5999         gl_MODULE_INDICATOR.
6000
6001         Tests of module 'sys_socket' in C++ mode.
6002         * tests/test-sys_socket-c++.cc: New file.
6003         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6004         (Depends-on): Add ansi-c++-opt.
6005         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6006         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6007         gl_MODULE_INDICATOR.
6008
6009         Tests of module 'sys_select' in C++ mode.
6010         * tests/test-sys_select-c++.cc: New file.
6011         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6012         (Depends-on): Add ansi-c++-opt.
6013         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6014         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6015         gl_MODULE_INDICATOR.
6016
6017         Tests of module 'sys_ioctl' in C++ mode.
6018         * tests/test-sys_ioctl-c++.cc: New file.
6019         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6020         (Depends-on): Add ansi-c++-opt.
6021         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6022         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6023         gl_MODULE_INDICATOR.
6024
6025         Tests of module 'string' in C++ mode.
6026         * tests/test-string-c++.cc: New file.
6027         * modules/string-tests (Files): Add it and tests/signature.h.
6028         (Depends-on): Add ansi-c++-opt.
6029         (Makefile.am): Arrange to compile and run test-string-c++.
6030         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6031         gl_MODULE_INDICATOR.
6032
6033         Tests of module 'stdlib' in C++ mode.
6034         * tests/test-stdlib-c++.cc: New file.
6035         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6036         (Depends-on): Add ansi-c++-opt.
6037         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6038         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6039         gl_MODULE_INDICATOR.
6040
6041         Tests of module 'stdio' in C++ mode.
6042         * tests/test-stdio-c++.cc: New file.
6043         * modules/stdio-tests (Files): Add it and tests/signature.h.
6044         (Depends-on): Add ansi-c++-opt.
6045         (Makefile.am): Arrange to compile and run test-stdio-c++.
6046         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6047         gl_MODULE_INDICATOR.
6048
6049         Tests of module 'spawn' in C++ mode.
6050         * tests/test-spawn-c++.cc: New file.
6051         * modules/spawn-tests (Files): Add it and tests/signature.h.
6052         (Depends-on): Add ansi-c++-opt.
6053         (Makefile.am): Arrange to compile and run test-spawn-c++.
6054         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6055         gl_MODULE_INDICATOR.
6056
6057         Tests of module 'signal' in C++ mode.
6058         * tests/test-signal-c++.cc: New file.
6059         * modules/signal-tests (Files): Add it and tests/signature.h.
6060         (Depends-on): Add ansi-c++-opt.
6061         (Makefile.am): Arrange to compile and run test-signal-c++.
6062         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6063         gl_MODULE_INDICATOR.
6064
6065         Tests of module 'search' in C++ mode.
6066         * tests/test-search-c++.cc: New file.
6067         * modules/search-tests (Files): Add it and tests/signature.h.
6068         (Depends-on): Add ansi-c++-opt.
6069         (Makefile.am): Arrange to compile and run test-search-c++.
6070         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6071         gl_MODULE_INDICATOR.
6072
6073         Tests of module 'math' in C++ mode.
6074         * tests/test-math-c++.cc: New file.
6075         * modules/math-tests (Files): Add it and tests/signature.h.
6076         (Depends-on): Add ansi-c++-opt.
6077         (Makefile.am): Arrange to compile and run test-math-c++.
6078         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6079
6080         Tests of module 'locale' in C++ mode.
6081         * tests/test-locale-c++.cc: New file.
6082         * modules/locale-tests (Files): Add it and tests/signature.h.
6083         (Depends-on): Add ansi-c++-opt.
6084         (Makefile.am): Arrange to compile and run test-locale-c++.
6085         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6086         gl_MODULE_INDICATOR.
6087
6088         Tests of module 'langinfo' in C++ mode.
6089         * tests/test-langinfo-c++.cc: New file.
6090         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6091         (Depends-on): Add ansi-c++-opt.
6092         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6093         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6094         gl_MODULE_INDICATOR.
6095
6096         Tests of module 'iconv-h' in C++ mode.
6097         * tests/test-iconv-h-c++.cc: New file.
6098         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6099         (Depends-on): Add ansi-c++-opt.
6100         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6101
6102         Tests of module 'glob' in C++ mode.
6103         * tests/test-glob-c++.cc: New file.
6104         * modules/glob-tests (Files): Add it.
6105         (Depends-on): Add ansi-c++-opt.
6106         (Makefile.am): Arrange to compile and run test-glob-c++.
6107
6108         Tests of module 'fcntl-h' in C++ mode.
6109         * tests/test-fcntl-h-c++.cc: New file.
6110         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6111         (Depends-on): Add ansi-c++-opt.
6112         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6113         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6114         gl_MODULE_INDICATOR.
6115
6116         Tests of module 'dirent' in C++ mode.
6117         * tests/test-dirent-c++.cc: New file.
6118         * modules/dirent-tests (Files): Add it and tests/signature.h.
6119         (Depends-on): Add ansi-c++-opt.
6120         (Makefile.am): Arrange to compile and run test-dirent-c++.
6121         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6122         gl_MODULE_INDICATOR.
6123
6124         New module 'ansi-c++-opt'.
6125         * modules/ansi-c++-opt: New file.
6126         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6127
6128         Document C++ namespace mode.
6129         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6130
6131         wctype: Avoid #define replacements in C++ mode.
6132         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6133         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6134         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6135         In C++, define a namespaced alias symbol.
6136         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6137         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6138         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6139         rule.
6140
6141         wchar: Avoid #define replacements in C++ mode.
6142         * lib/wchar.in.h: Include c++defs.h.
6143         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6144         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6145         symbol.
6146         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6147         * modules/wchar (Depends-on): Add c++defs.
6148         (Makefile.am): Update wchar.h rule.
6149
6150         unistd: Avoid #define replacements in C++ mode.
6151         * lib/unistd.in.h: Include c++defs.h.
6152         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6153         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6154         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6155         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6156         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6157         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6158         symbol.
6159         (environ): Update.
6160         * modules/unistd (Depends-on): Add c++defs.
6161         (Makefile.am): Update unistd.h rule.
6162
6163         time: Avoid #define replacements in C++ mode.
6164         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6165         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6166         define a namespaced alias symbol.
6167         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6168         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6169         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6170         * modules/time (Depends-on): Add c++defs, warn-on-use.
6171         (Makefile.am): Update time.h rule.
6172         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6173         * modules/nanosleep (configure.ac): Likewise.
6174         * modules/strptime (configure.ac): Likewise.
6175         * modules/timegm (configure.ac): Likewise.
6176
6177         sys_time: Avoid #define replacements in C++ mode.
6178         * lib/sys_time.in.h: Include c++defs.h.
6179         (gettimeofday): In C++, define a namespaced alias symbol.
6180         * modules/sys_time (Depends-on): Add c++defs.
6181         (Makefile.am): Update sys/time.h rule.
6182
6183         sys_stat: Avoid #define replacements in C++ mode.
6184         * lib/sys_stat.in.h: Include c++defs.h.
6185         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6186         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6187         namespaced alias symbol.
6188         In C++, define a namespaced alias symbol.
6189         * modules/sys_stat (Depends-on): Add c++defs.
6190         (Makefile.am): Update sys/stat.h rule.
6191
6192         sys_socket: Avoid #define replacements in C++ mode.
6193         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6194         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6195         definitions also when the system has a <sys/socket.h>.
6196         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6197         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6198         In C++, define a namespaced alias symbol.
6199         * modules/sys_socket (Depends-on): Add c++defs.
6200         (Makefile.am): Update sys/socket.h rule.
6201
6202         sys_select: Avoid #define replacements in C++ mode.
6203         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6204         definitions also when the system has a <sys/select.h>.
6205         (select): In C++, define a namespaced alias symbol.
6206         * modules/sys_select (Depends-on): Add c++defs.
6207         (Makefile.am): Update sys/select.h rule.
6208
6209         sys_ioctl: Avoid #define replacements in C++ mode.
6210         * lib/sys_ioctl.in.h: Include c++defs.h.
6211         (ioctl): In C++, define a namespaced alias symbol.
6212         * modules/sys_ioctl (Depends-on): Add c++defs.
6213         (Makefile.am): Update sys/ioctl.h rule.
6214
6215         string: Avoid #define replacements in C++ mode.
6216         * lib/string.in.h: Include c++defs.h.
6217         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6218         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6219         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6220         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6221         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6222         * modules/string (Depends-on): Add c++defs.
6223         (Makefile.am): Update string.h rule.
6224
6225         stdlib: Avoid #define replacements in C++ mode.
6226         * lib/stdlib.in.h: Include c++defs.h.
6227         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6228         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6229         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6230         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6231         symbol.
6232         * modules/stdlib (Depends-on): Add c++defs.
6233         (Makefile.am): Update stdlib.h rule.
6234
6235         stdio: Avoid #define replacements in C++ mode.
6236         * lib/stdio.in.h: Include c++defs.h.
6237         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6238         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6239         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6240         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6241         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6242         namespaced alias symbol.
6243         * modules/stdio (Depends-on): Add c++defs.
6244         (Makefile.am): Update stdio.h rule.
6245
6246         spawn: Avoid #define replacements in C++ mode.
6247         * lib/spawn.in.h: Include c++defs.h.
6248         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6249         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6250         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6251         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6252         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6253         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6254         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6255         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6256         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6257         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6258         In C++, define a namespaced alias symbol.
6259         * modules/spawn (Depends-on): Add c++defs.
6260         (Makefile.am): Update spawn.h rule.
6261
6262         signal: Avoid #define replacements in C++ mode.
6263         * lib/signal.in.h: Include c++defs.h.
6264         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6265         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6266         namespaced alias symbol.
6267         * modules/signal (Depends-on): Add c++defs.
6268         (Makefile.am): Update signal.h rule.
6269
6270         search: Avoid #define replacements in C++ mode.
6271         * lib/search.in.h: Include c++defs.h.
6272         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6273         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6274         symbol.
6275         * modules/search (Depends-on): Add c++defs.
6276         (Makefile.am): Update search.h rule.
6277
6278         math: Avoid #define replacements in C++ mode.
6279         * lib/math.in.h: Include c++defs.h.
6280         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6281         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6282         trunc, truncl): In C++, define a namespaced alias symbol.
6283         * modules/math (Depends-on): Add c++defs.
6284         (Makefile.am): Update math.h rule.
6285
6286         locale: Avoid #define replacements in C++ mode.
6287         * lib/locale.in.h: Include c++defs.h.
6288         (duplocale): In C++, define a namespaced alias symbol.
6289         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6290         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6291         * modules/locale (Depends-on): Add c++defs.
6292         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6293
6294         langinfo: Avoid #define replacements in C++ mode.
6295         * lib/langinfo.in.h: Include c++defs.h.
6296         (nl_langinfo): In C++, define a namespaced alias symbol.
6297         * modules/langinfo (Depends-on): Add c++defs.
6298         (Makefile.am): Update langinfo.h rule.
6299
6300         iconv-h: Avoid #define replacements in C++ mode.
6301         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6302         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6303         symbol.
6304         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6305         whenever iconv is present.
6306         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6307         (Makefile.am): Update iconv.h rule.
6308
6309         glob: Avoid #define replacements in C++ mode.
6310         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6311         (_gl_glob_errfunc_fn): New type.
6312         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6313         symbol.
6314         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6315         (Makefile.am): Update glob.h rule.
6316
6317         fcntl-h: Avoid #define replacements in C++ mode.
6318         * lib/fcntl.in.h: Include c++defs.h.
6319         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6320         * modules/fcntl-h (Depends-on): Add c++defs.
6321         (Makefile.am): Update fcntl.h rule.
6322
6323         dirent: Avoid #define replacements in C++ mode.
6324         * lib/dirent.in.h: Include c++defs.h.
6325         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6326         namespaced alias symbol.
6327         (dirfd): Update declaration.
6328         * modules/dirent (Depends-on): Add c++defs.
6329         (Makefile.am): Update dirent.h rule.
6330
6331         ctype: Make it usable in C++ code.
6332         * lib/ctype.in.h: Include c++defs.h.
6333         (isblank): Declare as extern "C".
6334         * modules/ctype (Depends-on): Add c++defs.
6335         (Makefile.am): Update ctype.h rule.
6336
6337         New module 'c++defs'.
6338         * modules/c++defs: New file.
6339         * build-aux/c++defs.h: New file.
6340         Reported by John W. Eaton <jwe@gnu.org>.
6341
6342 2010-03-07  Bruno Haible  <bruno@clisp.org>
6343
6344         logb: Provide missing declaration for Cygwin.
6345         * lib/math.in.h (logb): New declaration.
6346         * m4/logb.m4: New file.
6347         * modules/logb (Files): Add m4/logb.m4.
6348         (Depends-on): Add math.
6349         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6350         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6352         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6353         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6354
6355 2010-03-07  Bruno Haible  <bruno@clisp.org>
6356
6357         Fix test-cond link error.
6358         * tests/test-cond.c: Include <stdio.h>.
6359
6360 2010-03-07  Bruno Haible  <bruno@clisp.org>
6361
6362         Fix test-dirent-safer link error.
6363         * modules/dirent-safer-tests (Makefile.am): Define
6364         test_dirent_safer_LDADD.
6365
6366 2010-03-07  Bruno Haible  <bruno@clisp.org>
6367
6368         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6369         among default module list.
6370
6371 2010-03-07  Bruno Haible  <bruno@clisp.org>
6372
6373         Fix link error on platforms with GNU libiconv.
6374         * modules/unistr/u8-strcoll-tests (Makefile): Define
6375         test_u8_strcoll_LDADD.
6376         * modules/unistr/u16-strcoll-tests (Makefile): Define
6377         test_u16_strcoll_LDADD.
6378         * modules/unistr/u32-strcoll-tests (Makefile): Define
6379         test_u32_strcoll_LDADD.
6380
6381 2010-03-07  Bruno Haible  <bruno@clisp.org>
6382
6383         Use POSIX declarations for socket functions.
6384         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6385         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6386         rpl_sendto): Change declaration to match POSIX.
6387         * lib/connect.c (rpl_connect): Likewise.
6388         * lib/accept.c (rpl_accept): Likewise.
6389         * lib/bind.c (rpl_bind): Likewise.
6390         * lib/getpeername.c (rpl_getpeername): Likewise.
6391         * lib/getsockname.c (rpl_getsockname): Likewise.
6392         * lib/recv.c (rpl_recv): Likewise.
6393         * lib/send.c (rpl_send): Likewise.
6394         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6395         * lib/sendto.c (rpl_sendto): Likewise.
6396
6397 2010-03-06  Bruno Haible  <bruno@clisp.org>
6398
6399         Clarify access, euidaccess, faccessat.
6400         * doc/posix-functions/faccessat.texi: Mention security problem under
6401         "Other problems", not "Portability problems".
6402         * doc/posix-functions/access.texi: Likewise. Mention a related security
6403         problem.
6404         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6405         * lib/euidaccess.c: Add comments about platforms.
6406         * lib/unistd.in.h (access, euidaccess): Add warnings.
6407
6408 2010-03-07  Bruno Haible  <bruno@clisp.org>
6409
6410         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6411         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6412         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6413         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6414         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6415         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6416         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6417         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6418         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6419         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6420         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6421         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6422         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6423         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6424         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6425         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6426         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6427         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6428         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6429         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6430         Likewise.
6431         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6432         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6433         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6434         Likewise.
6435         * tests/test-spawn.c (main): Make it work when
6436         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6437
6438 2010-03-07  Bruno Haible  <bruno@clisp.org>
6439
6440         Fix incorrect Makefile.am generation in German locale.
6441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6442         Execute sed command with character range in C locale.
6443
6444 2010-03-06  Bruno Haible  <bruno@clisp.org>
6445
6446         Tests for module 'iconv-h'.
6447         * modules/iconv-h-tests: New file.
6448         * tests/test-iconv-h.c: New file.
6449
6450         New module 'iconv-h'.
6451         * modules/iconv-h: New file.
6452         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6453         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6454         (configure.ac): Remove gl_ICONV_H.
6455         (Makefile.am): Remove rule for iconv.h.
6456
6457 2010-03-06  Bruno Haible  <bruno@clisp.org>
6458
6459         More consistent naming of *.m4 files.
6460         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6461         * modules/wctype (Files): Update.
6462
6463         More consistent naming of *.m4 files.
6464         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6465         * modules/wchar (Files): Update.
6466
6467 2010-03-06  Jim Meyering  <meyering@redhat.com>
6468
6469         euidaccess: relax license to LGPLv2+
6470         * modules/euidaccess (License): Relax to LGPLv2+.
6471
6472 2010-03-06  Bruno Haible  <bruno@clisp.org>
6473
6474         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6475         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6476         (Makefile.am): Augment lib_SOURCES instead.
6477
6478 2010-03-04  Jim Meyering  <meyering@redhat.com>
6479
6480         utime: remove obsolete module
6481         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6482         unnecessary for years, and has been marked as obsolete for 10 months.
6483         * modules/utime: Remove file.
6484         * lib/utime.c: Remove file.
6485         * m4/utime.m4: Remove file.
6486         * m4/utimes-null.m4: Remove file.
6487         * doc/posix-functions/utime.texi (utime): Remove reference to
6488         the module.  Move the sole "fixed by gnulib" item into the
6489         "problems not fixed by Gnulib" list.
6490         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6491
6492 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6493
6494         * modules/exit (License): Relax license to LGPLv2+.
6495         (Status): Mark as obsolete.
6496         * NEWS: Mention deprecated 'exit' module.
6497         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6498         of now obsolete 'exit'.
6499
6500 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6501
6502         fts-lgpl: remove unused module
6503         * modules/fts-lgpl: Remove.
6504         * MODULES.html.sh (func_all_modules): Adjust.
6505         * check-module (find_included_lib_files): Adjust.
6506         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6507
6508 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6509
6510         copy-acl: enhance Solaris ACL error handling
6511         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6512         * lib/set-mode-acl.c (qset_acl): Likewise.
6513
6514 2010-03-02  Bruno Haible  <bruno@clisp.org>
6515
6516         spawn: Don't override the system defined values on FreeBSD 8.
6517         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6518         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6519         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6520         if HAVE_POSIX_SPAWN is 1.
6521         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6522
6523 2010-03-01  Bruno Haible  <bruno@clisp.org>
6524
6525         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6526         regarding Automake.
6527
6528 2010-02-25  Bruno Haible  <bruno@clisp.org>
6529
6530         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6531         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6532         setting, not afterwards.
6533         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6534
6535 2010-02-24  Eric Blake  <eblake@redhat.com>
6536
6537         bootstrap, git-version-gen: use timestamp
6538         * build-aux/git-version-gen (scriptversion): Force UTC.
6539         * build-aux/bootstrap (scriptversion): New variable.
6540
6541         bootstrap: allow older git
6542         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6543         older than 1.6.4.  Requested by the libvirt project.
6544
6545 2010-02-23  Eric Blake  <eblake@redhat.com>
6546
6547         warn-on-use: work with old autoconf
6548         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
6549         AS_VAR semantics of autoconf 2.60.
6550         Reported by Bruno Haible.
6551
6552         bootstrap: improve some comments
6553         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
6554         clarification comments.
6555
6556         gettimeofday: provide correct function
6557         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
6558         when replacement is declared, otherwise provide gettimeofday.
6559         Reported by Michael Goffioul.
6560
6561 2010-02-23  Jim Meyering  <meyering@redhat.com>
6562
6563         lib-ignore: relax license to "unlimited", not LGPLv2+
6564         * modules/lib-ignore (License): Relax to "unlimited".
6565
6566 2010-02-23  Jim Meyering  <meyering@redhat.com>
6567
6568         lib-ignore: relax license to LGPLv2+
6569         * modules/lib-ignore (License): Relax to LGPLv2+.
6570
6571 2010-02-22  Eric Blake  <eblake@redhat.com>
6572
6573         lseek: avoid bash 3.2 broken pipe bug
6574         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
6575         warning from bash 3.2.
6576         Reported by Ben Pfaff, with analysis from Bruno Haible.
6577
6578         bootstrap: support non-FSF copyright holder
6579         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
6580         bootstrap.conf override of COPYRIGHT_HOLDER.
6581         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
6582
6583         bootstrap: interoperate with gettext 0.14.1
6584         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
6585
6586         bootstrap: allow for alternate submodule location
6587         * build-aux/bootstrap (gnulib_path): New variable; use instead of
6588         hardcoding submodule location.
6589         (gnulib_mk): Allow direct use of Makefile.am.
6590
6591         bootstrap: use GNULIB_SRCDIR to reduce disk usage
6592         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
6593         rather than reconfiguring where the submodule points.
6594
6595         gettimeofday: restore support for platforms that lack function
6596         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
6597         replacement if function is missing.
6598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
6599         * modules/sys_time (Makefile.am): Substitute it.
6600         * lib/sys_time.in.h (gettimeofday): Check it.
6601         Reported by Michael Goffioul.
6602
6603 2010-02-21  Bruno Haible  <bruno@clisp.org>
6604
6605         * lib/stdio.in.h (obstack_printf): Fix typo.
6606
6607 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
6608
6609         vc-list-files: use bzr ls's -R option
6610         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
6611         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
6612
6613 2010-02-21  Jim Meyering  <meyering@redhat.com>
6614
6615         init.sh: fix EXEEXT shims to work also for names like test-prog
6616         * tests/init.sh: Re-exec a better shell, when needed.
6617         If the current shell lacks support for posix $(...), an init.sh-using
6618         test will now try to find a shell that supports that.  If EXEEXT is
6619         nonempty, we also require support for hyphen-in-alias-name and shell
6620         substitutions like ${var#glob}.  Failure to find such a shell results
6621         in a skipped test.
6622
6623 2010-02-21  Bruno Haible  <bruno@clisp.org>
6624
6625         Really work around around "broken pipe" error message from bash 3.2.
6626         * gnulib-tool (func_reset_sigpipe): Remove function.
6627         (echo): In bash 3.2, define to a function that uses printf.
6628         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
6629
6630 2010-02-20  Bruno Haible  <bruno@clisp.org>
6631
6632         Restore support for automake 1.9.6 with autoconf 2.61.
6633         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
6634         Reported by James Youngman <jay@gnu.org>.
6635
6636 2010-02-20  Bruno Haible  <bruno@clisp.org>
6637
6638         Improve *printf warning condition.
6639         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
6640         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
6641         and the function is overridden due to SIGPIPE emulation.
6642
6643 2010-02-20  Bruno Haible  <bruno@clisp.org>
6644
6645         * lib/stdio.in.h: Tweak comments.
6646
6647 2010-02-19  Bruno Haible  <bruno@clisp.org>
6648
6649         Make it easier to find modules. New gnulib-tool option '--find'.
6650         * gnulib-tool: New option --find.
6651         (func_usage): Document it.
6652         (func_sanitize_modulelist): New function, extracted from
6653         func_all_modules.
6654         (func_all_modules): Invoke it.
6655         * doc/gnulib-tool.texi (Which modules?): New node.
6656
6657 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
6658
6659         * lib/sys_select.in.h: Provide select replacement even if
6660         sys/select.h exists on a system, for Interix.
6661
6662 2010-02-18  Jim Meyering  <meyering@redhat.com>
6663
6664         init.sh: don't use $(...) just yet
6665         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
6666         to accommodate e.g., Solaris' /bin/sh.
6667
6668 2010-02-17  Bruno Haible  <bruno@clisp.org>
6669
6670         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
6671         Reported by Ludovic Courtès <ludo@gnu.org>.
6672
6673 2010-02-16  Simon Josefsson  <simon@josefsson.org>
6674
6675         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
6676         linking with -lintl.
6677
6678 2010-02-17  Simon Josefsson  <simon@josefsson.org>
6679
6680         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
6681         if not provided by the system's netdb.h.  Reported by
6682         ludo@gnu.org (Ludovic Courtès).
6683
6684 2010-02-15  Jim Meyering  <meyering@redhat.com>
6685
6686         init.sh: improve portability and efficiency
6687         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
6688         "dummy" in a for loop.
6689         Use '!', not '^' to select the complement of a character set used
6690         in a "case" statement.
6691         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
6692         Suggestions from Eric Blake.
6693
6694         init.sh: automatically accommodate programs with the .exe suffix
6695         Automatically arrange for an invocation of "prog" to execute the
6696         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
6697         may use the simpler "prog", yet still work when built on a system
6698         that requires specifying the added suffix.
6699         Do this by constructing a function named "prog" that invokes
6700         "prog.exe" for each .exe file in selected directories.
6701         * tests/init.sh (find_exe_basenames_): New function.
6702         (create_exe_shim_functions_): New function.
6703         (path_prepend_): Use it.
6704
6705         maint.mk: mark syntax-check sc_*.m rules as .PHONY
6706         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
6707         "make -t syntax-check" doesn't create a ton of sc_*.m files.
6708
6709 2010-02-14  Jim Meyering  <meyering@redhat.com>
6710
6711         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
6712         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
6713         (sc_prohibit_hash_pjw_without_use): New rule.
6714
6715         maint.mk: allow the default upload destination dir to be overridden
6716         * top/maint.mk (upload_dest_dir_): Define with a default that
6717         preserves the status quo.
6718         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
6719         Reported by Peter Simons.
6720
6721         maint.mk: prohibit inclusion of "hash.h" without_use
6722         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
6723
6724 2010-02-10  Jim Meyering  <meyering@redhat.com>
6725
6726         maint.mk: prohibit inclusion of "ignore-value.h" without_use
6727         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
6728
6729 2010-02-09  Eric Blake  <ebb9@byu.net>
6730         and Bruno Haible  <bruno@clisp.org>
6731
6732         obstack-printf-posix: ensure declaration
6733         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
6734         extracted from gl_FUNC_OBSTACK_PRINTF.
6735         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
6736         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
6737         Likewise.
6738         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
6739         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
6740         0.
6741
6742 2010-02-08  Bruno Haible  <bruno@clisp.org>
6743
6744         gnulib-tool: Fix typo in 2010-02-07 commit.
6745         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
6746         Reported by Eric Blake.
6747
6748 2010-02-07  Bruno Haible  <bruno@clisp.org>
6749
6750         gnulib-tool: Fix up caching patches.
6751         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
6752         option --no-cache. Use associative arrays when supported by the shell.
6753         (sed_comments): New variable.
6754         (modcache): Renamed from do_cache.
6755         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
6756         abbreviate unnecessarily.
6757         (have_associative): New variable.
6758         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
6759         way also for ksh and zsh.
6760         (func_init_sed_convert_to_cache_statements): New function, extracted
6761         from func_cache_lookup_module. Add support for associative arrays.
6762         Don't set the c_MODULE_cached variable here. Ignore all lines before
6763         the first field header. Remove only the final newline, not all trailing
6764         newlines. Support empty fields correctly. Limit the use of 'eval' to
6765         assignments.
6766         (func_get_description, func_get_status, func_get_notice,
6767         func_get_applicability, func_get_filelist, func_get_dependencies,
6768         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
6769         func_get_automake_snippet, func_get_include_directive,
6770         func_get_link_directive, func_get_license, func_get_maintainer):
6771         Update documentation. List the unoptimized code first. Add support for
6772         associative arrays. Limit the use of 'eval' to assignments.
6773         (func_get_applicability): Undo stylistic pessimisations.
6774         (func_get_automake_snippet, func_get_include_directive): Reduce code
6775         duplication.
6776         (func_modules_transitive_closure, func_modules_add_dummy,
6777         func_modules_notice, func_modules_to_filelist, func_add_file,
6778         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
6779         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
6780         func_create_testdir, func_create_megatestdir): Update documentation.
6781
6782 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6783
6784         * gnulib-tool (func_cache_lookup_module): Store the module name
6785         belonging to the cache variable; error out if two different
6786         module names map to the same cache variable name.
6787
6788 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6789
6790         gnulib-tool: Make caching optional.
6791         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
6792         Update matching short versions of --no-changelog.
6793         (func_usage): Update.
6794         (sed_extract_cache_prog): Renamed from ...
6795         (sed_extract_prog): ... this; revert to old extraction script.
6796         (func_get_description, func_get_status)
6797         (func_get_notice, func_get_applicability, func_get_filelist)
6798         (func_get_dependencies, func_get_autoconf_early_snippet)
6799         (func_get_autoconf_snippet, func_get_automake_snippet)
6800         (func_get_include_directive, func_get_link_directive)
6801         (func_get_license, func_get_maintainer): If $do_cache is false,
6802         use old, non-caching extraction scripts.
6803         Suggestion by Bruno Haible.
6804
6805 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6806
6807         gnulib-tool: cache module metainformation.
6808         * gnulib-tool (sed_extract_prog): Match newline before each
6809         header, and rewrite header to a shell variable suffix.
6810         (func_cache_var, func_cache_lookup_module): New functions,
6811         to turn a module name into a cache variable prefix, and to
6812         look up and cache module metainformation.
6813         (func_get_description, func_get_status)
6814         (func_get_notice, func_get_applicability, func_get_filelist)
6815         (func_get_dependencies, func_get_autoconf_early_snippet)
6816         (func_get_autoconf_snippet, func_get_automake_snippet)
6817         (func_get_include_directive, func_get_link_directive)
6818         (func_get_license, func_get_maintainer): Use
6819         func_cache_lookup_module.
6820
6821 2010-02-07  Bruno Haible  <bruno@clisp.org>
6822
6823         fnctl: Fix missing dependency.
6824         * modules/fcntl (Depends-on): Add getdtablesize.
6825         Reported by John W. Eaton <jwe@gnu.org>.
6826
6827 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6828
6829         Argp: fix recognition of short alias options.
6830
6831         * lib/argp-parse.c (convert_options): Fix improper use of
6832         `|' between character values.
6833         * tests/test-argp.c (group1_option): New alias option
6834         --read (-r).
6835         (group1_parser): Special handling for 'r'.
6836         (test15): New test case.
6837         (test_fun): Add test15.
6838         * tests/test-argp-2.sh: Update expected --help and --usage
6839         outputs.
6840
6841 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6842
6843         * tests/test-argp.c: Fix indentation.
6844
6845 2010-02-04  Eric Blake  <ebb9@byu.net>
6846
6847         gettimeofday: expose type of second argument
6848         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
6849         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
6850         * tests/test-gettimeofday.c: Use it to silence warning.
6851         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
6852         the issue.
6853
6854 2010-02-03  Jim Meyering  <meyering@redhat.com>
6855
6856         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
6857         * lib/regcomp.c (TYPE_SIGNED): Define.
6858         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
6859
6860         regcomp.c: avoid a new -Wshadow warning
6861         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
6862
6863 2010-02-01  Jim Meyering  <meyering@redhat.com>
6864
6865         removing useless parentheses in cpp #define directives
6866         For motivation, see commit c0221df4, "define STREQ(a,b)
6867         consistently, removing useless parentheses"
6868         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
6869         * lib/mountlist.c (MNT_IGNORE): Likewise.
6870         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
6871
6872 2010-02-01  Eric Blake  <ebb9@byu.net>
6873
6874         sys_time: use link-warning
6875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
6876         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
6877         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
6878         * modules/sys_time (Depends-on): Add warn-on-use.
6879         (Makefile.am): Always build replacement.
6880         (configure.ac): Update substitutions.
6881         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
6882         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
6883         bother with SYS_TIME_H.
6884         * modules/gettimeofday (configure.ac): Declare indicator.
6885         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
6886         in use.
6887
6888         closein-tests: silence compiler warning
6889         * tests/test-closein.c (main): Ignore fread result.
6890         * modules/closein-tests (Depends-on): Add ignore-value.
6891
6892         tests: silence warning about system return
6893         * tests/test-areadlink-with-size.c (main): Ignore system result.
6894         * tests/test-areadlink.c (main): Likewise.
6895         * tests/test-areadlinkat-with-size.c (main): Likewise.
6896         * tests/test-areadlinkat.c (main): Likewise.
6897         * tests/test-canonicalize-lgpl.c (main): Likewise.
6898         * tests/test-canonicalize.c (main): Likewise.
6899         * tests/test-chown.c (main): Likewise.
6900         * tests/test-fchownat.c (main): Likewise.
6901         * tests/test-fdutimensat.c (main): Likewise.
6902         * tests/test-fstatat.c (main): Likewise.
6903         * tests/test-futimens.c (main): Likewise.
6904         * tests/test-lchown.c (main): Likewise.
6905         * tests/test-link.c (main): Likewise.
6906         * tests/test-linkat.c (main): Likewise.
6907         * tests/test-lstat.c (main): Likewise.
6908         * tests/test-mkdir.c (main): Likewise.
6909         * tests/test-mkdirat.c (main): Likewise.
6910         * tests/test-mkfifo.c (main): Likewise.
6911         * tests/test-mkfifoat.c (main): Likewise.
6912         * tests/test-mknod.c (main): Likewise.
6913         * tests/test-readlink.c (main): Likewise.
6914         * tests/test-remove.c (main): Likewise.
6915         * tests/test-rename.c (main): Likewise.
6916         * tests/test-renameat.c (main): Likewise.
6917         * tests/test-rmdir.c (main): Likewise.
6918         * tests/test-symlink.c (main): Likewise.
6919         * tests/test-symlinkat.c (main): Likewise.
6920         * tests/test-unlink.c (main): Likewise.
6921         * tests/test-unlinkat.c (main): Likewise.
6922         * tests/test-utimens.c (main): Likewise.
6923         * tests/test-utimensat.c (main): Likewise.
6924         * modules/areadlink-tests (Depends-on): Add ignore-value.
6925         * modules/areadlink-with-size-tests (Depends-on): Likewise.
6926         * modules/areadlinkat-tests (Depends-on): Likewise.
6927         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
6928         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6929         * modules/canonicalize-tests (Depends-on): Likewise.
6930         * modules/chown-tests (Depends-on): Likewise.
6931         * modules/fdutimensat-tests (Depends-on): Likewise.
6932         * modules/futimens-tests (Depends-on): Likewise.
6933         * modules/lchown-tests (Depends-on): Likewise.
6934         * modules/link-tests (Depends-on): Likewise.
6935         * modules/linkat-tests (Depends-on): Likewise.
6936         * modules/lstat-tests (Depends-on): Likewise.
6937         * modules/mkdir-tests (Depends-on): Likewise.
6938         * modules/mkfifo-tests (Depends-on): Likewise.
6939         * modules/mkfifoat-tests (Depends-on): Likewise.
6940         * modules/mknod-tests (Depends-on): Likewise.
6941         * modules/openat-tests (Depends-on): Likewise.
6942         * modules/readlink-tests (Depends-on): Likewise.
6943         * modules/remove-tests (Depends-on): Likewise.
6944         * modules/rename-tests (Depends-on): Likewise.
6945         * modules/renameat-tests (Depends-on): Likewise.
6946         * modules/rmdir-tests (Depends-on): Likewise.
6947         * modules/symlink-tests (Depends-on): Likewise.
6948         * modules/symlinkat-tests (Depends-on): Likewise.
6949         * modules/unlink-tests (Depends-on): Likewise.
6950         * modules/utimens-tests (Depends-on): Likewise.
6951         * modules/utimensat-tests (Depends-on): Likewise.
6952
6953 2010-01-31  Bruno Haible  <bruno@clisp.org>
6954
6955         Perform the same test for many <math.h> functions.
6956         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
6957         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
6958         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
6959         of gl_MATHFUNC.
6960         * modules/acos (configure.ac): Likewise.
6961         * modules/asin (configure.ac): Likewise.
6962         * modules/atan (configure.ac): Likewise.
6963         * modules/atan2 (configure.ac): Likewise.
6964         * modules/cbrt (configure.ac): Likewise.
6965         * modules/copysign (configure.ac): Likewise.
6966         * modules/cos (configure.ac): Likewise.
6967         * modules/cosh (configure.ac): Likewise.
6968         * modules/erf (configure.ac): Likewise.
6969         * modules/erfc (configure.ac): Likewise.
6970         * modules/exp (configure.ac): Likewise.
6971         * modules/fmod (configure.ac): Likewise.
6972         * modules/hypot (configure.ac): Likewise.
6973         * modules/j0 (configure.ac): Likewise.
6974         * modules/j1 (configure.ac): Likewise.
6975         * modules/jn (configure.ac): Likewise.
6976         * modules/lgamma (configure.ac): Likewise.
6977         * modules/log (configure.ac): Likewise.
6978         * modules/log10 (configure.ac): Likewise.
6979         * modules/log1p (configure.ac): Likewise.
6980         * modules/pow (configure.ac): Likewise.
6981         * modules/remainder (configure.ac): Likewise.
6982         * modules/sin (configure.ac): Likewise.
6983         * modules/sinh (configure.ac): Likewise.
6984         * modules/tan (configure.ac): Likewise.
6985         * modules/tanh (configure.ac): Likewise.
6986         * modules/y0 (configure.ac): Likewise.
6987         * modules/y1 (configure.ac): Likewise.
6988         * modules/yn (configure.ac): Likewise.
6989         Suggested by Paolo Bonzini.
6990
6991 2010-01-31  Bruno Haible  <bruno@clisp.org>
6992
6993         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
6994
6995 2010-01-31  Bruno Haible  <bruno@clisp.org>
6996
6997         Work around getdelim() bug on FreeBSD 8.0.
6998         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
6999         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7000         not work.
7001         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7002         is 1.
7003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7004         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7005         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7006         a non-zero size.
7007         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7008
7009 2010-01-31  Bruno Haible  <bruno@clisp.org>
7010
7011         Work around getline() bug on FreeBSD 8.0.
7012         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7013         and a non-zero size.
7014         * tests/test-getline.c (main): Likewise.
7015         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7016         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7017
7018 2010-01-28  Eric Blake  <ebb9@byu.net>
7019
7020         regex: fix build failure
7021         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7022         platforms.
7023
7024 2010-01-28  Jim Meyering  <meyering@redhat.com>
7025
7026         regex: do not ignore memory allocation failure
7027         * lib/regex_internal.c (create_cd_newstate): Detect
7028         re_node_set_init_copy failure.   Extracted from glibc commit
7029         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7030
7031         regex: sync more white-space changes from libc
7032         * lib/regex_internal.c: White-space only changes.
7033         * lib/regexec.c: Likewise.
7034
7035         regex: add many uses of __attribute_warn_unused_result__
7036         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7037         * lib/regexec.c: Likewise.
7038         Extracted from a messy glibc commit.
7039
7040         regcomp.c: spelling and merge-artifact from glibc
7041         * lib/regcomp.c: Merge remainder of glibc's
7042         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7043
7044         regcomp.c: sync white-space changes from glibc
7045         * lib/regcomp.c: Merge to accommodate white space
7046         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7047
7048         regcomp.c: do not ignore internal return values
7049         * lib/regcomp.c: Do not ignore internal return values.
7050         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7051         but without its white-space changes and spelling fixes.
7052
7053         regex_internal.h: define __attribute_warn_unused_result__
7054         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7055
7056         maint: add a syntax-check rule to check for vulnerable Makefile.in
7057         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7058
7059 2010-01-27  Jim Meyering  <meyering@redhat.com>
7060
7061         ncftpput-ftp: clean up spaces
7062         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7063         Remove trailing blanks.
7064
7065 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7066
7067         * build-aux/git-version-gen: Fix copyright statement.
7068         * build-aux/gnupload: Likewise.
7069         * tests/test-arcfour.c: Likewise.
7070         * tests/test-arctwo.c: Likewise.
7071         * tests/test-count-one-bits.c: Likewise.
7072         * tests/test-crc.c: Likewise.
7073         * tests/test-des.c: Likewise.
7074         * tests/test-gc-arcfour.c: Likewise.
7075         * tests/test-gc-arctwo.c: Likewise.
7076         * tests/test-gc-des.c: Likewise.
7077         * tests/test-gc-hmac-md5.c: Likewise.
7078         * tests/test-gc-hmac-sha1.c: Likewise.
7079         * tests/test-gc-md2.c: Likewise.
7080         * tests/test-gc-md4.c: Likewise.
7081         * tests/test-gc-md5.c: Likewise.
7082         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7083         * tests/test-gc-rijndael.c: Likewise.
7084         * tests/test-gc-sha1.c: Likewise.
7085         * tests/test-gc.c: Likewise.
7086         * tests/test-gethostname.c: Likewise.
7087         * tests/test-gettimeofday.c: Likewise.
7088         * tests/test-hash.c: Likewise.
7089         * tests/test-hmac-md5.c: Likewise.
7090         * tests/test-hmac-sha1.c: Likewise.
7091         * tests/test-md2.c: Likewise.
7092         * tests/test-md4.c: Likewise.
7093         * tests/test-md5.c: Likewise.
7094         * tests/test-memchr.c: Likewise.
7095         * tests/test-memchr2.c: Likewise.
7096         * tests/test-memcmp.c: Likewise.
7097         * tests/test-memmem.c: Likewise.
7098         * tests/test-memrchr.c: Likewise.
7099         * tests/test-rawmemchr.c: Likewise.
7100         * tests/test-read-file.c: Likewise.
7101         * tests/test-rijndael.c: Likewise.
7102         * tests/test-sockets.c: Likewise.
7103         * tests/test-strchrnul.c: Likewise.
7104         * tests/test-strstr.c: Likewise.
7105         * tests/test-strtod.c: Likewise.
7106         * build-aux/ncftpput-ftp: Likewise.
7107
7108 2010-01-26  Eric Blake  <ebb9@byu.net>
7109
7110         ignore-value: update recommended header name
7111         * modules/ignore-value (Include): Only use <> for headers that
7112         exist in glibc.
7113
7114 2010-01-26  Jim Meyering  <meyering@redhat.com>
7115
7116         test-userspec.c: avoid compiler warnings
7117         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7118         and "initialization discards qualifiers..." warnings.
7119         Put the first "uid" in its own scope, and make char* members "const".
7120
7121 2010-01-25  Bruno Haible  <bruno@clisp.org>
7122
7123         gnulib-tool: Make warning diagnostics consistent.
7124         * gnulib-tool (func_warning): New function.
7125         Use it everywhere where gnulib-tool produces output to stderr and it is
7126         not a fatal error.
7127
7128 2010-01-25  Bruno Haible  <bruno@clisp.org>
7129
7130         Fix test dependencies.
7131         * modules/xstrtol-tests (Depends-on): Add inttypes.
7132         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7133
7134 2010-01-25 Pádraig Brady <P@draigBrady.com>
7135
7136         syntax-check: detect incorrect boolean macro values in config.h
7137         * modules/maintainer-makefile (configure.ac): Parameterize the location
7138         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7139         The logic is from Eric Blake and the location indicated by Jim Meyering.
7140         Note the more natural CONFIG_HEADER name is prohibited by automake
7141         for backwards compatibility reasons.
7142         * top/maint.mk (sc_Wundef_boolean): New rule.
7143
7144 2010-01-25  Jim Meyering  <meyering@redhat.com>
7145
7146         bootstrap: detect MacOS 10.6's shasum, too
7147         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7148         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7149
7150 2010-01-23  Jim Meyering  <meyering@redhat.com>
7151
7152         xstrtoll: new module
7153         * modules/xstrtoll: New file.
7154         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7155         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7156         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7157         ./configure fails if you use this module and lack "long long".
7158         * modules/xstrtoll-tests: New module.
7159         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7160         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7161         new init.sh-based test framework.
7162
7163 2010-01-24  Bruno Haible  <bruno@clisp.org>
7164
7165         Tests for module 'yn'.
7166         * modules/yn-tests: New file.
7167         * tests/test-yn.c: New file.
7168
7169         Tests for module 'y1'.
7170         * modules/y1-tests: New file.
7171         * tests/test-y1.c: New file.
7172
7173         Tests for module 'y0'.
7174         * modules/y0-tests: New file.
7175         * tests/test-y0.c: New file.
7176
7177         Tests for module 'tanh'.
7178         * modules/tanh-tests: New file.
7179         * tests/test-tanh.c: New file.
7180
7181         Tests for module 'tan'.
7182         * modules/tan-tests: New file.
7183         * tests/test-tan.c: New file.
7184
7185         Tests for module 'sqrt'.
7186         * modules/sqrt-tests: New file.
7187         * tests/test-sqrt.c: New file.
7188
7189         Tests for module 'sinh'.
7190         * modules/sinh-tests: New file.
7191         * tests/test-sinh.c: New file.
7192
7193         Tests for module 'sin'.
7194         * modules/sin-tests: New file.
7195         * tests/test-sin.c: New file.
7196
7197         Tests for module 'rint'.
7198         * modules/rint-tests: New file.
7199         * tests/test-rint.c: New file.
7200
7201         Tests for module 'remainder'.
7202         * modules/remainder-tests: New file.
7203         * tests/test-remainder.c: New file.
7204
7205         Tests for module 'pow'.
7206         * modules/pow-tests: New file.
7207         * tests/test-pow.c: New file.
7208
7209         Tests for module 'nextafter'.
7210         * modules/nextafter-tests: New file.
7211         * tests/test-nextafter.c: New file.
7212
7213         Tests for module 'modf'.
7214         * modules/modf-tests: New file.
7215         * tests/test-modf.c: New file.
7216
7217         Tests for module 'logb'.
7218         * modules/logb-tests: New file.
7219         * tests/test-logb.c: New file.
7220
7221         Tests for module 'log1p'.
7222         * modules/log1p-tests: New file.
7223         * tests/test-log1p.c: New file.
7224
7225         Tests for module 'log10'.
7226         * modules/log10-tests: New file.
7227         * tests/test-log10.c: New file.
7228
7229         Tests for module 'log'.
7230         * modules/log-tests: New file.
7231         * tests/test-log.c: New file.
7232
7233         Tests for module 'lgamma'.
7234         * modules/lgamma-tests: New file.
7235         * tests/test-lgamma.c: New file.
7236
7237         Tests for module 'ldexp'.
7238         * modules/ldexp-tests: New file.
7239         * tests/test-ldexp.c: New file.
7240
7241         Tests for module 'jn'.
7242         * modules/jn-tests: New file.
7243         * tests/test-jn.c: New file.
7244
7245         Tests for module 'j1'.
7246         * modules/j1-tests: New file.
7247         * tests/test-j1.c: New file.
7248
7249         Tests for module 'j0'.
7250         * modules/j0-tests: New file.
7251         * tests/test-j0.c: New file.
7252
7253         Tests for module 'hypot'.
7254         * modules/hypot-tests: New file.
7255         * tests/test-hypot.c: New file.
7256
7257         Tests for module 'fmod'.
7258         * modules/fmod-tests: New file.
7259         * tests/test-fmod.c: New file.
7260
7261         Tests for module 'fabs'.
7262         * modules/fabs-tests: New file.
7263         * tests/test-fabs.c: New file.
7264
7265         Tests for module 'exp'.
7266         * modules/exp-tests: New file.
7267         * tests/test-exp.c: New file.
7268
7269         Tests for module 'erfc'.
7270         * modules/erfc-tests: New file.
7271         * tests/test-erfc.c: New file.
7272
7273         Tests for module 'erf'.
7274         * modules/erf-tests: New file.
7275         * tests/test-erf.c: New file.
7276
7277         Tests for module 'cosh'.
7278         * modules/cosh-tests: New file.
7279         * tests/test-cosh.c: New file.
7280
7281         Tests for module 'cos'.
7282         * modules/cos-tests: New file.
7283         * tests/test-cos.c: New file.
7284
7285         Tests for module 'copysign'.
7286         * modules/copysign-tests: New file.
7287         * tests/test-copysign.c: New file.
7288
7289         Tests for module 'cbrt'.
7290         * modules/cbrt-tests: New file.
7291         * tests/test-cbrt.c: New file.
7292
7293         Tests for module 'atan2'.
7294         * modules/atan2-tests: New file.
7295         * tests/test-atan2.c: New file.
7296
7297         Tests for module 'atan'.
7298         * modules/atan-tests: New file.
7299         * tests/test-atan.c: New file.
7300
7301         Tests for module 'asin'.
7302         * modules/asin-tests: New file.
7303         * tests/test-asin.c: New file.
7304
7305         Tests for module 'acos'.
7306         * modules/acos-tests: New file.
7307         * tests/test-acos.c: New file.
7308
7309 2010-01-24  Bruno Haible  <bruno@clisp.org>
7310
7311         Fix tests for common <math.h> functions.
7312         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7313         code snippet that references the function pointer, rather than merely
7314         calling the function. Substitute the FUNC_LIBM variable.
7315         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7316         * modules/acos (configure.ac): Likewise.
7317         * modules/asin (configure.ac): Likewise.
7318         * modules/atan (configure.ac): Likewise.
7319         * modules/atan2 (configure.ac): Likewise.
7320         * modules/cbrt (configure.ac): Likewise.
7321         * modules/copysign (configure.ac): Likewise.
7322         * modules/cos (configure.ac): Likewise.
7323         * modules/cosh (configure.ac): Likewise.
7324         * modules/erf (configure.ac): Likewise.
7325         * modules/erfc (configure.ac): Likewise.
7326         * modules/exp (configure.ac): Likewise.
7327         * modules/fabs (configure.ac): Likewise.
7328         * modules/fmod (configure.ac): Likewise.
7329         * modules/hypot (configure.ac): Likewise.
7330         * modules/j0 (configure.ac): Likewise.
7331         * modules/j1 (configure.ac): Likewise.
7332         * modules/jn (configure.ac): Likewise.
7333         * modules/ldexp (configure.ac): Likewise.
7334         * modules/lgamma (configure.ac): Likewise.
7335         * modules/log (configure.ac): Likewise.
7336         * modules/log10 (configure.ac): Likewise.
7337         * modules/log1p (configure.ac): Likewise.
7338         * modules/logb (configure.ac): Likewise.
7339         * modules/modf (configure.ac): Likewise.
7340         * modules/nextafter (configure.ac): Likewise.
7341         * modules/pow (configure.ac): Likewise.
7342         * modules/remainder (configure.ac): Likewise.
7343         * modules/rint (configure.ac): Likewise.
7344         * modules/sin (configure.ac): Likewise.
7345         * modules/sinh (configure.ac): Likewise.
7346         * modules/tan (configure.ac): Likewise.
7347         * modules/tanh (configure.ac): Likewise.
7348         * modules/y0 (configure.ac): Likewise.
7349         * modules/y1 (configure.ac): Likewise.
7350         * modules/yn (configure.ac): Likewise.
7351
7352 2010-01-24  Bruno Haible  <bruno@clisp.org>
7353
7354         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7355         * tests/test-acosl.c (x): New variable.
7356         (main): Store argument in x and fetch it from x.
7357         * tests/test-asinl.c (x): New variable.
7358         (main): Store argument in x and fetch it from x.
7359         * tests/test-atanl.c (x): New variable.
7360         (main): Store argument in x and fetch it from x.
7361         * tests/test-cosl.c (x): New variable.
7362         (main): Store argument in x and fetch it from x.
7363         * tests/test-expl.c (x): New variable.
7364         (main): Store argument in x and fetch it from x.
7365         * tests/test-logl.c (x): New variable.
7366         (main): Store argument in x and fetch it from x.
7367         * tests/test-sinl.c (x): New variable.
7368         (main): Store argument in x and fetch it from x.
7369         * tests/test-sqrtl.c (x): New variable.
7370         (main): Store argument in x and fetch it from x.
7371         * tests/test-tanl.c (x): New variable.
7372         (main): Store argument in x and fetch it from x.
7373
7374 2010-01-24  Bruno Haible  <bruno@clisp.org>
7375
7376         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7377         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7378         assignments to the initial TESTS_ENVIRONMENT.
7379         * doc/gnulib.texi (Unit test modules): Document it.
7380         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7381         TESTS_ENVIRONMENT.
7382         * modules/btowc-tests (Makefile.am): Likewise.
7383         * modules/c-stack-tests (Makefile.am): Likewise.
7384         * modules/c-strcase-tests (Makefile.am): Likewise.
7385         * modules/copy-file-tests (Makefile.am): Likewise.
7386         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7387         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7388         * modules/mbrtowc-tests (Makefile.am): Likewise.
7389         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7390         * modules/mbscasestr-tests (Makefile.am): Likewise.
7391         * modules/mbschr-tests (Makefile.am): Likewise.
7392         * modules/mbscspn-tests (Makefile.am): Likewise.
7393         * modules/mbsinit-tests (Makefile.am): Likewise.
7394         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7395         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7396         * modules/mbspbrk-tests (Makefile.am): Likewise.
7397         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7398         * modules/mbsrchr-tests (Makefile.am): Likewise.
7399         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7400         * modules/mbsspn-tests (Makefile.am): Likewise.
7401         * modules/mbsstr-tests (Makefile.am): Likewise.
7402         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7403         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7404         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7405         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7406         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7407         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7408         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7409         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7410         * modules/wcrtomb-tests (Makefile.am): Likewise.
7411         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7412         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7413         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7414         assignments from TESTS_ENVIRONMENT.
7415         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7416         augmentation.
7417         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7418         * modules/atexit-tests (Makefile.am): Likewise.
7419         * modules/binary-io-tests (Makefile.am): Likewise.
7420         * modules/closein-tests (Makefile.am): Likewise.
7421         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7422         * modules/exclude-tests (Makefile.am): Likewise.
7423         * modules/fflush-tests (Makefile.am): Likewise.
7424         * modules/fpending-tests (Makefile.am): Likewise.
7425         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7426         * modules/freadahead-tests (Makefile.am): Likewise.
7427         * modules/freadptr-tests (Makefile.am): Likewise.
7428         * modules/freadseek-tests (Makefile.am): Likewise.
7429         * modules/fseek-tests (Makefile.am): Likewise.
7430         * modules/fseeko-tests (Makefile.am): Likewise.
7431         * modules/ftell-tests (Makefile.am): Likewise.
7432         * modules/ftello-tests (Makefile.am): Likewise.
7433         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7434         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7435         * modules/lseek-tests (Makefile.am): Likewise.
7436         * modules/parse-duration-tests (Makefile.am): Likewise.
7437         * modules/perror-tests (Makefile.am): Likewise.
7438         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7439         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7440         * modules/pipe-tests (Makefile.am): Likewise.
7441         * modules/pread-tests (Makefile.am): Likewise.
7442         * modules/printf-posix-tests (Makefile.am): Likewise.
7443         * modules/select-tests (Makefile.am): Likewise.
7444         * modules/sigpipe-tests (Makefile.am): Likewise.
7445         * modules/tsearch-tests (Makefile.am): Likewise.
7446         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7447         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7448         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7449         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7450         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7451         * modules/version-etc-tests (Makefile.am): Likewise.
7452         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7453         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7454         * modules/xalloc-die-tests (Makefile.am): Likewise.
7455         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7456         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7457         * modules/xstrtol-tests (Makefile.am): Likewise.
7458         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7459         * modules/yesno-tests (Makefile.am): Likewise.
7460         Suggested by Jim Meyering.
7461
7462 2010-01-24  Bruno Haible  <bruno@clisp.org>
7463
7464         More documentation.
7465         * doc/gnulib.texi (Writing modules): New chapter.
7466         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7467         the new chapter.
7468
7469 2010-01-24  Jim Meyering  <meyering@redhat.com>
7470
7471         maint.mk: do not prepend "./" after filtering
7472         * top/maint.mk (_prepend_srcdir_prefix): New variable
7473         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7474         "./" when $(srcdir) is ".".
7475
7476         define STREQ(a,b) consistently, removing useless parentheses
7477         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7478         since the only risk is that "a" or "b" contains an unparenthesized
7479         comma, but if either did that, STREQ would have 3 or more arguments.
7480         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7481         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7482         * lib/hash-triple.c (STREQ): Likewise.
7483         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7484         * lib/getugroups.c (STREQ): Likewise.
7485
7486 2010-01-23  Jim Meyering  <meyering@redhat.com>
7487
7488         maint.mk: fix syntax-check in a non-srcdir build directory
7489         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7490         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7491
7492 2010-01-22  Jim Meyering  <meyering@redhat.com>
7493
7494         userspec: add unit tests
7495         * tests/test-userspec.c: New file.
7496         * modules/userspec-tests: Likewise.
7497
7498 2010-01-21  Jim Meyering  <meyering@redhat.com>
7499
7500         maint.mk: handle source file names containing "." robustly
7501         * top/maint.mk (_dot_escaped_srcdir): Define.
7502         (VC_LIST): Use it in LHS of sed substitution.
7503
7504 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7505
7506         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7507         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7508         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7509         from a non-srcdir build.
7510
7511 2010-01-20  Eric Blake  <ebb9@byu.net>
7512
7513         warn-on-use: use instead of link-warning
7514         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7515         * modules/unistd (Depends-on, Makefile.am): Likewise.
7516         * modules/arpa_inet (Depends-on): Replace link-warning with
7517         warn-on-use.
7518         (Makefile.am): Update rules accordingly.
7519         * modules/ctype (Depends-on, Makefile.am): Likewise.
7520         * modules/dirent (Depends-on, Makefile.am): Likewise.
7521         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7522         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7523         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7524         * modules/locale (Depends-on, Makefile.am): Likewise.
7525         * modules/math (Depends-on, Makefile.am): Likewise.
7526         * modules/search (Depends-on, Makefile.am): Likewise.
7527         * modules/signal (Depends-on, Makefile.am): Likewise.
7528         * modules/spawn (Depends-on, Makefile.am): Likewise.
7529         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7530         * modules/string (Depends-on, Makefile.am): Likewise.
7531         * modules/strings (Depends-on, Makefile.am): Likewise.
7532         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7533         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7534         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7535         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7536         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7537         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7538         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7539         * modules/wchar (Depends-on, Makefile.am): Likewise.
7540         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7541         should be poisoned.
7542         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7543         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7544         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7545         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7546         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7547         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7548         * m4/math_h.m4 (gl_MATH_H): Likewise.
7549         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7550         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7551         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7552         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7553         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7555         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7556         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
7557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7561         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7562         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7563         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7564         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7565         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
7566         GL_LINK_WARNING.
7567         * lib/ctype.in.h: Likewise.
7568         * lib/dirent.in.h: Likewise.
7569         * lib/fcntl.in.h: Likewise.
7570         * lib/inttypes.in.h: Likewise.
7571         * lib/langinfo.in.h: Likewise.
7572         * lib/locale.in.h: Likewise.
7573         * lib/math.in.h: Likewise.
7574         * lib/search.in.h: Likewise.
7575         * lib/signal.in.h: Likewise.
7576         * lib/spawn.in.h: Likewise.
7577         * lib/stdio.in.h: Likewise.
7578         * lib/stdlib.in.h: Likewise.
7579         * lib/string.in.h: Likewise.
7580         * lib/strings.in.h: Likewise.
7581         * lib/sys_file.in.h: Likewise.
7582         * lib/sys_ioctl.in.h: Likewise.
7583         * lib/sys_select.in.h: Likewise.
7584         * lib/sys_socket.in.h: Likewise.
7585         * lib/sys_stat.in.h: Likewise.
7586         * lib/sys_times.in.h: Likewise.
7587         * lib/sys_utsname.in.h: Likewise.
7588         * lib/unistd.in.h: Likewise.
7589         * lib/wchar.in.h: Likewise.
7590
7591 2010-01-20  Bruno Haible  <bruno@clisp.org>
7592
7593         Avoid duplicate -lm.
7594         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
7595         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
7596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
7597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
7598         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
7599         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
7600         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
7601         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
7602         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
7603         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
7604         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
7605         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7606         Reported by Paolo Bonzini.
7607
7608 2010-01-19  Bruno Haible  <bruno@clisp.org>
7609
7610         langinfo, nl_langinfo: Relicense under LGPLv2+.
7611         * modules/langinfo (License): Change to LGPLv2+.
7612         * modules/nl_langinfo (License): Likewise.
7613         Patch by David Lutterkort <lutter@redhat.com>.
7614
7615 2010-01-19  Bruno Haible  <bruno@clisp.org>
7616
7617         Avoid compilation error with cc on OSF/1 5.1.
7618         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
7619         statement, not before.
7620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7621
7622 2010-01-18  Bruno Haible  <bruno@clisp.org>
7623
7624         Avoid a link error due to the __printf__ symbol.
7625         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
7626         and 2.6.x.
7627         (__format__, __printf__): Remove definitions.
7628         * lib/argp-fmtstream.h: Likewise.
7629         * lib/argp.h: Likewise.
7630         * lib/error.h: Likewise.
7631         * lib/vasnprintf.h: Likewise.
7632         * lib/xprintf.h: Likewise.
7633         * lib/xvasprintf.h: Likewise.
7634         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7635
7636 2010-01-18  Bruno Haible  <bruno@clisp.org>
7637
7638         Tests for module 'tanl'.
7639         * modules/tanl-tests: New file.
7640         * tests/test-tanl.c: New file.
7641
7642         Tests for module 'sqrtl'.
7643         * modules/sqrtl-tests: New file.
7644         * tests/test-sqrtl.c: New file.
7645
7646         Tests for module 'sinl'.
7647         * modules/sinl-tests: New file.
7648         * tests/test-sinl.c: New file.
7649
7650         Tests for module 'logl'.
7651         * modules/logl-tests: New file.
7652         * tests/test-logl.c: New file.
7653
7654         Tests for module 'expl'.
7655         * modules/expl-tests: New file.
7656         * tests/test-expl.c: New file.
7657
7658         Tests for module 'cosl'.
7659         * modules/cosl-tests: New file.
7660         * tests/test-cosl.c: New file.
7661
7662         Tests for module 'atanl'.
7663         * modules/atanl-tests: New file.
7664         * tests/test-atanl.c: New file.
7665
7666         Tests for module 'asinl'.
7667         * modules/asinl-tests: New file.
7668         * tests/test-asinl.c: New file.
7669
7670         Tests for module 'acosl'.
7671         * modules/acosl-tests: New file.
7672         * tests/test-acosl.c: New file.
7673
7674         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
7675         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7676         tanl): Use the standard gnulib idiom.
7677         * lib/cosl.c: Don't include trigl.c and sincosl.c.
7678         * lib/sinl.c: Likewise.
7679         * lib/tanl.c: Don't include trigl.c.
7680         (kernel_tanl): Make static.
7681         * lib/sincosl.c: Include trigl.h first.
7682         * lib/trigl.c: Likewise.
7683         * m4/acosl.m4: New file.
7684         * m4/asinl.m4: New file.
7685         * m4/atanl.m4: New file.
7686         * m4/cosl.m4: New file.
7687         * m4/expl.m4: New file.
7688         * m4/logl.m4: New file.
7689         * m4/sinl.m4: New file.
7690         * m4/sqrtl.m4: New file.
7691         * m4/tanl.m4: New file.
7692         * m4/mathl.m4: Remove file.
7693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
7694         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
7695         Don't initialize GNULIB_MATHL.
7696         * modules/acosl: New file.
7697         * modules/asinl: New file.
7698         * modules/atanl: New file.
7699         * modules/cosl: New file.
7700         * modules/expl: New file.
7701         * modules/logl: New file.
7702         * modules/sinl: New file.
7703         * modules/sqrtl: New file.
7704         * modules/tanl: New file.
7705         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
7706         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
7707         substitute GNULIB_MATHL.
7708         * modules/mathl: Rewritten.
7709         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
7710         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
7711         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
7712         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
7713         * doc/posix-functions/expl.texi: Mention the 'expl' module.
7714         * doc/posix-functions/logl.texi: Mention the 'logl' module.
7715         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
7716         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
7717         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
7718
7719 2010-01-18  Bruno Haible  <bruno@clisp.org>
7720
7721         sqrt: Make gl_FUNC_SQRT requirable.
7722         * m4/sqrt.m4: New file.
7723         * modules/sqrt (Files): Add it.
7724         (configure.ac): Invoke gl_FUNC_SQRT.
7725
7726 2010-01-18  Bruno Haible  <bruno@clisp.org>
7727
7728         New modules for common <math.h> functions.
7729         * m4/mathfunc.m4: New file.
7730         * modules/acos: New file.
7731         * modules/asin: New file.
7732         * modules/atan: New file.
7733         * modules/atan2: New file.
7734         * modules/cbrt: New file.
7735         * modules/copysign: New file.
7736         * modules/cos: New file.
7737         * modules/cosh: New file.
7738         * modules/erf: New file.
7739         * modules/erfc: New file.
7740         * modules/exp: New file.
7741         * modules/fabs: New file.
7742         * modules/fmod: New file.
7743         * modules/hypot: New file.
7744         * modules/j0: New file.
7745         * modules/j1: New file.
7746         * modules/jn: New file.
7747         * modules/ldexp: New file.
7748         * modules/lgamma: New file.
7749         * modules/log: New file.
7750         * modules/log10: New file.
7751         * modules/log1p: New file.
7752         * modules/logb: New file.
7753         * modules/modf: New file.
7754         * modules/nextafter: New file.
7755         * modules/pow: New file.
7756         * modules/remainder: New file.
7757         * modules/rint: New file.
7758         * modules/sin: New file.
7759         * modules/sinh: New file.
7760         * modules/sqrt: New file.
7761         * modules/tan: New file.
7762         * modules/tanh: New file.
7763         * modules/y0: New file.
7764         * modules/y1: New file.
7765         * modules/yn: New file.
7766         * doc/posix-functions/acos.texi: Mention the 'acos' module.
7767         * doc/posix-functions/asin.texi: Mention the 'asin' module.
7768         * doc/posix-functions/atan.texi: Mention the 'atan' module.
7769         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
7770         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
7771         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
7772         * doc/posix-functions/cos.texi: Mention the 'cos' module.
7773         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
7774         * doc/posix-functions/erf.texi: Mention the 'erf' module.
7775         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
7776         * doc/posix-functions/exp.texi: Mention the 'exp' module.
7777         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
7778         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
7779         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
7780         * doc/posix-functions/j0.texi: Mention the 'j0' module.
7781         * doc/posix-functions/j1.texi: Mention the 'j1' module.
7782         * doc/posix-functions/jn.texi: Mention the 'jn' module.
7783         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
7784         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
7785         * doc/posix-functions/log.texi: Mention the 'log' module.
7786         * doc/posix-functions/log10.texi: Mention the 'log10' module.
7787         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
7788         * doc/posix-functions/logb.texi: Mention the 'logb' module.
7789         * doc/posix-functions/modf.texi: Mention the 'modf' module.
7790         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
7791         * doc/posix-functions/pow.texi: Mention the 'pow' module.
7792         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
7793         * doc/posix-functions/rint.texi: Mention the 'rint' module.
7794         * doc/posix-functions/sin.texi: Mention the 'sin' module.
7795         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
7796         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
7797         * doc/posix-functions/tan.texi: Mention the 'tan' module.
7798         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
7799         * doc/posix-functions/y0.texi: Mention the 'y0' module.
7800         * doc/posix-functions/y1.texi: Mention the 'y1' module.
7801         * doc/posix-functions/yn.texi: Mention the 'yn' module.
7802
7803 2010-01-18  Jim Meyering  <meyering@redhat.com>
7804
7805         ignore-value: relax license to LGPLv2+
7806         * modules/ignore-value (License): Relax to LGPLv2+.
7807
7808         getdate: don't leak when TZ contains two or more '"'s
7809         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
7810         double quote in TZ after the first one.
7811
7812         readtokens: do not leak internal token_lengths buffer
7813         * lib/readtokens.c (readtokens): Free the local, lengths,
7814         when the supplied "token_lengths" parameter is NULL.
7815
7816 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7817
7818         Fix a couple of missing LIBTHREAD link failures on AIX.
7819         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
7820         $(LIBTHREAD).
7821         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
7822
7823         Link test-poll against INET_PTON_LIB.
7824         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
7825         for inet_pton on Solaris 10.
7826
7827 2010-01-17  Bruno Haible  <bruno@clisp.org>
7828
7829         unistdio/*-sprintf: Fix typo in module description.
7830         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
7831         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
7832         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
7833         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
7834         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
7835         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
7836         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
7837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7838
7839 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7840
7841         gnulib-tool: fix filelist for AIX, HP-UX ksh.
7842         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
7843         variables in shell case patterns, for AIX and HP-UX ksh.
7844
7845         Split large sed scripts, for HP-UX sed.
7846         * modules/stdio: Split sed scripts around 50 sed commands,
7847         to avoid HP-UX limit of 99 commands, in the near future.
7848         * modules/string: Likewise.
7849         * modules/unistd: Likewise.
7850
7851         gnulib-tool: avoid writing in the current directory.
7852         * gnulib-tool (func_emit_lib_Makefile_am)
7853         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
7854         not in the current directory, so concurrent gnulib-tool
7855         instances do not interfere.
7856
7857 2010-01-16  Jim Meyering  <meyering@redhat.com>
7858
7859         doc: update users.txt
7860         * users.txt: Add grep.
7861         (diffutils, gzip): Update URLs.
7862
7863 2010-01-12  Bruno Haible  <bruno@clisp.org>
7864
7865         posix_spawn: Avoid test failure on Cygwin.
7866         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
7867         characters.
7868         Reported by Simon Josefsson.
7869
7870 2010-01-12  Bruno Haible  <bruno@clisp.org>
7871
7872         * tests/test-cond.c (main): When skipping the test, show the reason.
7873
7874 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7875
7876         * lib/striconv.c (str_cd_iconv): Avoid if before free.
7877
7878 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7879
7880         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
7881         VC_LIST_ALWAYS_EXCLUDE_REGEX.
7882
7883 2010-01-12  Eric Blake  <ebb9@byu.net>
7884
7885         build: guarantee AS_VAR_IF
7886         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
7887         (gl_AS_VAR_IF): Move...
7888         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
7889         Reported by Simon Josefsson.
7890
7891 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7892
7893         * lib/stdio.in.h: Fix typo.
7894
7895 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7896
7897         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
7898         libgpg-error.
7899
7900 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7901
7902         * tests/test-xalloc-die.sh: Use $EXEEXT.
7903
7904 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7905             Bruno Haible  <bruno@clisp.org>
7906
7907         getlogin, getlogin_r: Avoid test failure.
7908         * tests/test-getlogin.c: Include <stdio.h>.
7909         (main): Skip the test when the function fails because stdin is not a
7910         tty.
7911         * tests/test-getlogin_r.c: Include <stdio.h>.
7912         (main): Skip the test when the function fails because stdin is not a
7913         tty.
7914
7915 2010-01-11  Eric Blake  <ebb9@byu.net>
7916
7917         tests: avoid more large file warnings
7918         * tests/test-fflush.c: Avoid warning about ftell use.
7919         * tests/test-fseek.c: Avoid warning about fseek use.
7920
7921 2010-01-10  Bruno Haible  <bruno@clisp.org>
7922
7923         nproc: Work better on Linux when /proc and /sys are not mounted.
7924         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
7925         as lower bound when, on glibc/Linux systems,
7926         sysconf (_SC_NPROCESSORS_CONF) returns 1.
7927         Suggested by Pádraig Brady <P@draigbrady.com>.
7928         Reported by Dmitry V. Levin <ldv@altlinux.org>.
7929
7930         nproc: Refactor.
7931         * lib/nproc.c (num_processors_via_affinity_mask): New function,
7932         extracted from num_processors.
7933         (num_processors): Call it.
7934
7935 2010-01-11  Jim Meyering  <meyering@redhat.com>
7936
7937         utimecmp: avoid new warning from upcoming gcc-4.5.0
7938         * lib/utimecmp.c (BILLION): Define using #define rather than an
7939         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
7940
7941 2010-01-11  Eric Blake  <ebb9@byu.net>
7942
7943         math: add portability warnings for classification macros
7944         * modules/math (Depends-on): Add warn-on-use.
7945         (Makefile.am): Provide new substitutions.
7946         * m4/math_h.m4 (gl_MATH_H): Require inline.
7947         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
7948         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
7949         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
7950         implement warnings.
7951
7952         unistd: warn on use of environ without module
7953         * modules/unistd (Depends-on): Add warn-on-use.
7954         (Makefile.am): Provide new substitutions.
7955         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
7956         * lib/unistd.in.h (environ): Wrap with a warning helper function.
7957
7958         stdio: warn on suspicious uses
7959         * modules/stdio (Depends-on): Add warn-on-use.
7960         (Makefile.am): Provide new substitutions.
7961         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
7962         fseeko.
7963         * lib/stdio.in.h (gets): Always warn on use.
7964         (fseek, ftell): Adjust when warnings are issued, and honor
7965         _GL_NO_LARGE_FILES as a way to silence the warning.
7966         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
7967         any warning about large file offsets.
7968         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
7969         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
7970         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
7971         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
7972         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
7973         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
7974         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
7975         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
7976
7977         warn-on-use: new module
7978         * modules/warn-on-use: New file.
7979         * build-aux/warn-on-use.h: Likewise.
7980         * m4/warn-on-use.m4: Likewise.
7981         * MODULES.html.sh (Support for building): Mention it.
7982
7983 2010-01-10  Bruno Haible  <bruno@clisp.org>
7984
7985         Tests for module 'unistr/u32-strdup'.
7986         * modules/unistr/u32-strdup-tests: New file.
7987         * tests/unistr/test-u32-strdup.c: New file.
7988
7989         Tests for module 'unistr/u16-strdup'.
7990         * modules/unistr/u16-strdup-tests: New file.
7991         * tests/unistr/test-u16-strdup.c: New file.
7992
7993         Tests for module 'unistr/u8-strdup'.
7994         * modules/unistr/u8-strdup-tests: New file.
7995         * tests/unistr/test-u8-strdup.c: New file.
7996         * tests/unistr/test-strdup.h: New file.
7997
7998         Tests for module 'unistr/u32-strncmp'.
7999         * modules/unistr/u32-strncmp-tests: New file.
8000         * tests/unistr/test-u32-strncmp.c: New file.
8001
8002         Tests for module 'unistr/u16-strncmp'.
8003         * modules/unistr/u16-strncmp-tests: New file.
8004         * tests/unistr/test-u16-strncmp.c: New file.
8005
8006         Tests for module 'unistr/u8-strncmp'.
8007         * modules/unistr/u8-strncmp-tests: New file.
8008         * tests/unistr/test-u8-strncmp.c: New file.
8009         * tests/unistr/test-strncmp.h: New file.
8010
8011         Tests for module 'unistr/u32-strcoll'.
8012         * modules/unistr/u32-strcoll-tests: New file.
8013         * tests/unistr/test-u32-strcoll.c: New file.
8014
8015         Tests for module 'unistr/u16-strcoll'.
8016         * modules/unistr/u16-strcoll-tests: New file.
8017         * tests/unistr/test-u16-strcoll.c: New file.
8018
8019         Tests for module 'unistr/u8-strcoll'.
8020         * modules/unistr/u8-strcoll-tests: New file.
8021         * tests/unistr/test-u8-strcoll.c: New file.
8022
8023         Tests for module 'unistr/u32-strcmp'.
8024         * modules/unistr/u32-strcmp-tests: New file.
8025         * tests/unistr/test-u32-strcmp.c: New file.
8026         * tests/unistr/test-u32-strcmp.h: New file.
8027
8028         Tests for module 'unistr/u16-strcmp'.
8029         * modules/unistr/u16-strcmp-tests: New file.
8030         * tests/unistr/test-u16-strcmp.c: New file.
8031         * tests/unistr/test-u16-strcmp.h: New file.
8032
8033         Tests for module 'unistr/u8-strcmp'.
8034         * modules/unistr/u8-strcmp-tests: New file.
8035         * tests/unistr/test-u8-strcmp.c: New file.
8036         * tests/unistr/test-u8-strcmp.h: New file.
8037         * tests/unistr/test-strcmp.h: New file.
8038
8039         Tests for module 'unistr/u32-strncat'.
8040         * modules/unistr/u32-strncat-tests: New file.
8041         * tests/unistr/test-u32-strncat.c: New file.
8042
8043         Tests for module 'unistr/u16-strncat'.
8044         * modules/unistr/u16-strncat-tests: New file.
8045         * tests/unistr/test-u16-strncat.c: New file.
8046
8047         Tests for module 'unistr/u8-strncat'.
8048         * modules/unistr/u8-strncat-tests: New file.
8049         * tests/unistr/test-u8-strncat.c: New file.
8050         * tests/unistr/test-strncat.h: New file.
8051
8052         Tests for module 'unistr/u32-strcat'.
8053         * modules/unistr/u32-strcat-tests: New file.
8054         * tests/unistr/test-u32-strcat.c: New file.
8055
8056         Tests for module 'unistr/u16-strcat'.
8057         * modules/unistr/u16-strcat-tests: New file.
8058         * tests/unistr/test-u16-strcat.c: New file.
8059
8060         Tests for module 'unistr/u8-strcat'.
8061         * modules/unistr/u8-strcat-tests: New file.
8062         * tests/unistr/test-u8-strcat.c: New file.
8063         * tests/unistr/test-strcat.h: New file.
8064
8065         Tests for module 'unistr/u32-stpncpy'.
8066         * modules/unistr/u32-stpncpy-tests: New file.
8067         * tests/unistr/test-u32-stpncpy.c: New file.
8068
8069         Tests for module 'unistr/u16-stpncpy'.
8070         * modules/unistr/u16-stpncpy-tests: New file.
8071         * tests/unistr/test-u16-stpncpy.c: New file.
8072
8073         Tests for module 'unistr/u8-stpncpy'.
8074         * modules/unistr/u8-stpncpy-tests: New file.
8075         * tests/unistr/test-u8-stpncpy.c: New file.
8076         * tests/unistr/test-stpncpy.h: New file.
8077
8078         Tests for module 'unistr/u32-strncpy'.
8079         * modules/unistr/u32-strncpy-tests: New file.
8080         * tests/unistr/test-u32-strncpy.c: New file.
8081
8082         Tests for module 'unistr/u16-strncpy'.
8083         * modules/unistr/u16-strncpy-tests: New file.
8084         * tests/unistr/test-u16-strncpy.c: New file.
8085
8086         Tests for module 'unistr/u8-strncpy'.
8087         * modules/unistr/u8-strncpy-tests: New file.
8088         * tests/unistr/test-u8-strncpy.c: New file.
8089         * tests/unistr/test-strncpy.h: New file.
8090
8091         Tests for module 'unistr/u32-stpcpy'.
8092         * modules/unistr/u32-stpcpy-tests: New file.
8093         * tests/unistr/test-u32-stpcpy.c: New file.
8094
8095         Tests for module 'unistr/u16-stpcpy'.
8096         * modules/unistr/u16-stpcpy-tests: New file.
8097         * tests/unistr/test-u16-stpcpy.c: New file.
8098
8099         Tests for module 'unistr/u8-stpcpy'.
8100         * modules/unistr/u8-stpcpy-tests: New file.
8101         * tests/unistr/test-u8-stpcpy.c: New file.
8102         * tests/unistr/test-stpcpy.h: New file.
8103
8104         Tests for module 'unistr/u32-strcpy'.
8105         * modules/unistr/u32-strcpy-tests: New file.
8106         * tests/unistr/test-u32-strcpy.c: New file.
8107
8108         Tests for module 'unistr/u16-strcpy'.
8109         * modules/unistr/u16-strcpy-tests: New file.
8110         * tests/unistr/test-u16-strcpy.c: New file.
8111
8112         Tests for module 'unistr/u8-strcpy'.
8113         * modules/unistr/u8-strcpy-tests: New file.
8114         * tests/unistr/test-u8-strcpy.c: New file.
8115         * tests/unistr/test-strcpy.h: New file.
8116
8117         Tests for module 'unistr/u32-strnlen'.
8118         * modules/unistr/u32-strnlen-tests: New file.
8119         * tests/unistr/test-u32-strnlen.c: New file.
8120
8121         Tests for module 'unistr/u16-strnlen'.
8122         * modules/unistr/u16-strnlen-tests: New file.
8123         * tests/unistr/test-u16-strnlen.c: New file.
8124
8125         Tests for module 'unistr/u8-strnlen'.
8126         * modules/unistr/u8-strnlen-tests: New file.
8127         * tests/unistr/test-u8-strnlen.c: New file.
8128         * tests/unistr/test-strnlen.h: New file.
8129
8130         Tests for module 'unistr/u32-strlen'.
8131         * modules/unistr/u32-strlen-tests: New file.
8132         * tests/unistr/test-u32-strlen.c: New file.
8133
8134         Tests for module 'unistr/u16-strlen'.
8135         * modules/unistr/u16-strlen-tests: New file.
8136         * tests/unistr/test-u16-strlen.c: New file.
8137
8138         Tests for module 'unistr/u8-strlen'.
8139         * modules/unistr/u8-strlen-tests: New file.
8140         * tests/unistr/test-u8-strlen.c: New file.
8141
8142         Tests for module 'unistr/u32-prev'.
8143         * modules/unistr/u32-prev-tests: New file.
8144         * tests/unistr/test-u32-prev.c: New file.
8145
8146         Tests for module 'unistr/u16-prev'.
8147         * modules/unistr/u16-prev-tests: New file.
8148         * tests/unistr/test-u16-prev.c: New file.
8149
8150         Tests for module 'unistr/u8-prev'.
8151         * modules/unistr/u8-prev-tests: New file.
8152         * tests/unistr/test-u8-prev.c: New file.
8153
8154         Tests for module 'unistr/u32-next'.
8155         * modules/unistr/u32-next-tests: New file.
8156         * tests/unistr/test-u32-next.c: New file.
8157
8158         Tests for module 'unistr/u16-next'.
8159         * modules/unistr/u16-next-tests: New file.
8160         * tests/unistr/test-u16-next.c: New file.
8161
8162         Tests for module 'unistr/u8-next'.
8163         * modules/unistr/u8-next-tests: New file.
8164         * tests/unistr/test-u8-next.c: New file.
8165
8166         Tests for module 'unistr/u32-strmbtouc'.
8167         * modules/unistr/u32-strmbtouc-tests: New file.
8168         * tests/unistr/test-u32-strmbtouc.c: New file.
8169
8170         Tests for module 'unistr/u16-strmbtouc'.
8171         * modules/unistr/u16-strmbtouc-tests: New file.
8172         * tests/unistr/test-u16-strmbtouc.c: New file.
8173
8174         Tests for module 'unistr/u8-strmbtouc'.
8175         * modules/unistr/u8-strmbtouc-tests: New file.
8176         * tests/unistr/test-u8-strmbtouc.c: New file.
8177
8178         Tests for module 'unistr/u32-strmblen'.
8179         * modules/unistr/u32-strmblen-tests: New file.
8180         * tests/unistr/test-u32-strmblen.c: New file.
8181
8182         Tests for module 'unistr/u16-strmblen'.
8183         * modules/unistr/u16-strmblen-tests: New file.
8184         * tests/unistr/test-u16-strmblen.c: New file.
8185
8186         Tests for module 'unistr/u8-strmblen'.
8187         * modules/unistr/u8-strmblen-tests: New file.
8188         * tests/unistr/test-u8-strmblen.c: New file.
8189
8190         Tests for module 'unistr/u32-cpy-alloc'.
8191         * modules/unistr/u32-cpy-alloc-tests: New file.
8192         * tests/unistr/test-u32-cpy-alloc.c: New file.
8193
8194         Tests for module 'unistr/u16-cpy-alloc'.
8195         * modules/unistr/u16-cpy-alloc-tests: New file.
8196         * tests/unistr/test-u16-cpy-alloc.c: New file.
8197
8198         Tests for module 'unistr/u8-cpy-alloc'.
8199         * modules/unistr/u8-cpy-alloc-tests: New file.
8200         * tests/unistr/test-u8-cpy-alloc.c: New file.
8201         * tests/unistr/test-cpy-alloc.h: New file.
8202
8203         Tests for module 'unistr/u32-mbsnlen'.
8204         * modules/unistr/u32-mbsnlen-tests: New file.
8205         * tests/unistr/test-u32-mbsnlen.c: New file.
8206
8207         Tests for module 'unistr/u16-mbsnlen'.
8208         * modules/unistr/u16-mbsnlen-tests: New file.
8209         * tests/unistr/test-u16-mbsnlen.c: New file.
8210
8211         Tests for module 'unistr/u8-mbsnlen'.
8212         * modules/unistr/u8-mbsnlen-tests: New file.
8213         * tests/unistr/test-u8-mbsnlen.c: New file.
8214
8215         Tests for module 'unistr/u32-chr'.
8216         * modules/unistr/u32-chr-tests: New file.
8217         * tests/unistr/test-u32-chr.c: New file.
8218
8219         Tests for module 'unistr/u16-chr'.
8220         * modules/unistr/u16-chr-tests: New file.
8221         * tests/unistr/test-u16-chr.c: New file.
8222
8223         Tests for module 'unistr/u8-chr'.
8224         * modules/unistr/u8-chr-tests: New file.
8225         * tests/unistr/test-u8-chr.c: New file.
8226         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8227
8228         Tests for module 'unistr/u32-cmp2'.
8229         * modules/unistr/u32-cmp2-tests: New file.
8230         * tests/unistr/test-u32-cmp2.c: New file.
8231
8232         Tests for module 'unistr/u16-cmp2'.
8233         * modules/unistr/u16-cmp2-tests: New file.
8234         * tests/unistr/test-u16-cmp2.c: New file.
8235
8236         Tests for module 'unistr/u8-cmp2'.
8237         * modules/unistr/u8-cmp2-tests: New file.
8238         * tests/unistr/test-u8-cmp2.c: New file.
8239         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8240
8241         Tests for module 'unistr/u32-cmp'.
8242         * modules/unistr/u32-cmp-tests: New file.
8243         * tests/unistr/test-u32-cmp.c: New file.
8244
8245         Tests for module 'unistr/u16-cmp'.
8246         * modules/unistr/u16-cmp-tests: New file.
8247         * tests/unistr/test-u16-cmp.c: New file.
8248
8249         Tests for module 'unistr/u8-cmp'.
8250         * modules/unistr/u8-cmp-tests: New file.
8251         * tests/unistr/test-u8-cmp.c: New file.
8252         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8253
8254         Tests for module 'unistr/u32-set'.
8255         * modules/unistr/u32-set-tests: New file.
8256         * tests/unistr/test-u32-set.c: New file.
8257
8258         Tests for module 'unistr/u16-set'.
8259         * modules/unistr/u16-set-tests: New file.
8260         * tests/unistr/test-u16-set.c: New file.
8261
8262         Tests for module 'unistr/u8-set'.
8263         * modules/unistr/u8-set-tests: New file.
8264         * tests/unistr/test-u8-set.c: New file.
8265         * tests/unistr/test-set.h: New file.
8266
8267         Tests for module 'unistr/u32-move'.
8268         * modules/unistr/u32-move-tests: New file.
8269         * tests/unistr/test-u32-move.c: New file.
8270
8271         Tests for module 'unistr/u16-move'.
8272         * modules/unistr/u16-move-tests: New file.
8273         * tests/unistr/test-u16-move.c: New file.
8274
8275         Tests for module 'unistr/u8-move'.
8276         * modules/unistr/u8-move-tests: New file.
8277         * tests/unistr/test-u8-move.c: New file.
8278         * tests/unistr/test-move.h: New file.
8279
8280         Tests for module 'unistr/u32-cpy'.
8281         * modules/unistr/u32-cpy-tests: New file.
8282         * tests/unistr/test-u32-cpy.c: New file.
8283
8284         Tests for module 'unistr/u16-cpy'.
8285         * modules/unistr/u16-cpy-tests: New file.
8286         * tests/unistr/test-u16-cpy.c: New file.
8287
8288         Tests for module 'unistr/u8-cpy'.
8289         * modules/unistr/u8-cpy-tests: New file.
8290         * tests/unistr/test-u8-cpy.c: New file.
8291         * tests/unistr/test-cpy.h: New file.
8292
8293 2010-01-09  Bruno Haible  <bruno@clisp.org>
8294
8295         Tests for module 'unistr/u32-uctomb'.
8296         * modules/unistr/u32-uctomb-tests: New file.
8297         * tests/unistr/test-u32-uctomb.c: New file.
8298
8299         Tests for module 'unistr/u16-uctomb'.
8300         * modules/unistr/u16-uctomb-tests: New file.
8301         * tests/unistr/test-u16-uctomb.c: New file.
8302
8303         Tests for module 'unistr/u8-uctomb'.
8304         * modules/unistr/u8-uctomb-tests: New file.
8305         * tests/unistr/test-u8-uctomb.c: New file.
8306
8307         Tests for module 'unistr/u32-mbtoucr'.
8308         * modules/unistr/u32-mbtoucr-tests: New file.
8309         * tests/unistr/test-u32-mbtoucr.c: New file.
8310
8311         Tests for module 'unistr/u16-mbtoucr'.
8312         * modules/unistr/u16-mbtoucr-tests: New file.
8313         * tests/unistr/test-u16-mbtoucr.c: New file.
8314
8315         Tests for module 'unistr/u8-mbtoucr'.
8316         * modules/unistr/u8-mbtoucr-tests: New file.
8317         * tests/unistr/test-u8-mbtoucr.c: New file.
8318
8319         Tests for module 'unistr/u32-mbtouc'.
8320         * modules/unistr/u32-mbtouc-tests: New file.
8321         * tests/unistr/test-u32-mbtouc.c: New file.
8322
8323         Tests for module 'unistr/u16-mbtouc'.
8324         * modules/unistr/u16-mbtouc-tests: New file.
8325         * tests/unistr/test-u16-mbtouc.c: New file.
8326
8327         Tests for module 'unistr/u8-mbtouc'.
8328         * modules/unistr/u8-mbtouc-tests: New file.
8329         * tests/unistr/test-u8-mbtouc.c: New file.
8330
8331         Tests for module 'unistr/u32-mbtouc-unsafe'.
8332         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8333         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8334         * tests/unistr/test-u32-mbtouc.h: New file.
8335
8336         Tests for module 'unistr/u16-mbtouc-unsafe'.
8337         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8338         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8339         * tests/unistr/test-u16-mbtouc.h: New file.
8340
8341         Tests for module 'unistr/u8-mbtouc-unsafe'.
8342         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8343         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8344         * tests/unistr/test-u8-mbtouc.h: New file.
8345
8346         Tests for module 'unistr/u32-mblen'.
8347         * modules/unistr/u32-mblen-tests: New file.
8348         * tests/unistr/test-u32-mblen.c: New file.
8349
8350         Tests for module 'unistr/u16-mblen'.
8351         * modules/unistr/u16-mblen-tests: New file.
8352         * tests/unistr/test-u16-mblen.c: New file.
8353
8354         Tests for module 'unistr/u8-mblen'.
8355         * modules/unistr/u8-mblen-tests: New file.
8356         * tests/unistr/test-u8-mblen.c: New file.
8357
8358         Tests for module 'unistr/u32-to-u16'.
8359         * modules/unistr/u32-to-u16-tests: New file.
8360         * tests/unistr/test-u32-to-u16.c: New file.
8361
8362         Tests for module 'unistr/u32-to-u8'.
8363         * modules/unistr/u32-to-u8-tests: New file.
8364         * tests/unistr/test-u32-to-u8.c: New file.
8365
8366         Tests for module 'unistr/u16-to-u32'.
8367         * modules/unistr/u16-to-u32-tests: New file.
8368         * tests/unistr/test-u16-to-u32.c: New file.
8369
8370         Tests for module 'unistr/u16-to-u8'.
8371         * modules/unistr/u16-to-u8-tests: New file.
8372         * tests/unistr/test-u16-to-u8.c: New file.
8373
8374         Tests for module 'unistr/u8-to-u32'.
8375         * modules/unistr/u8-to-u32-tests: New file.
8376         * tests/unistr/test-u8-to-u32.c: New file.
8377
8378         Tests for module 'unistr/u8-to-u16'.
8379         * modules/unistr/u8-to-u16-tests: New file.
8380         * tests/unistr/test-u8-to-u16.c: New file.
8381
8382         Tests for module 'unistr/u32-check'.
8383         * modules/unistr/u32-check-tests: New file.
8384         * tests/unistr/test-u32-check.c: New file.
8385
8386         Tests for module 'unistr/u16-check'.
8387         * modules/unistr/u16-check-tests: New file.
8388         * tests/unistr/test-u16-check.c: New file.
8389
8390         Tests for module 'unistr/u8-check'.
8391         * modules/unistr/u8-check-tests: New file.
8392         * tests/unistr/test-u8-check.c: New file.
8393
8394         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8395         (category_equals): New function.
8396         (main): Add more tests.
8397         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8398
8399         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8400
8401 2010-01-10  Bruno Haible  <bruno@clisp.org>
8402
8403         unistr/u*-strcoll: Try harder to distinguish different strings.
8404         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8405         compare s1 and s2 to see if they are different.
8406
8407 2010-01-10  Bruno Haible  <bruno@clisp.org>
8408
8409         unistr/u*-stpncpy: Fix the return value.
8410         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8411         description of the return value consistent with stpncpy in glibc.
8412         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8413         written non-NUL unit.
8414
8415 2010-01-10  Bruno Haible  <bruno@clisp.org>
8416
8417         unistr/u*-next: Add missing dependencies.
8418         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8419         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8420         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8421
8422 2010-01-10  Bruno Haible  <bruno@clisp.org>
8423
8424         unistr/u8-mbsnlen: Fix return value for incomplete character.
8425         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8426         u8_mblen.
8427         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8428         Remove unistr/u8-mblen.
8429         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8430         u16_mblen.
8431         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8432         Remove unistr/u16-mblen.
8433
8434 2010-01-10  Bruno Haible  <bruno@clisp.org>
8435
8436         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8437         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8438         Reported by Brian Gough <bjg@gnu.org> and
8439         Chris Clayton <chris2553@googlemail.com> via
8440         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8441
8442 2010-01-09  Bruno Haible  <bruno@clisp.org>
8443
8444         unistr/u16-to-u32: Reject invalid input.
8445         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8446         u16_mbtouc.
8447         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8448         Remove unistr/u16-mbtouc.
8449
8450         unistr/u16-to-u8: Reject invalid input.
8451         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8452         u16_mbtouc.
8453         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8454         Remove unistr/u16-mbtouc.
8455
8456         unistr/u8-to-u32: Reject invalid input.
8457         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8458         u8_mbtouc.
8459         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8460         Remove unistr/u8-mbtouc.
8461
8462         unistr/u8-to-u16: Reject invalid input.
8463         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8464         u8_mbtouc.
8465         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8466         Remove unistr/u8-mbtouc.
8467
8468 2010-01-09  Bruno Haible  <bruno@clisp.org>
8469
8470         Tests for module 'getlogin'.
8471         * modules/getlogin-tests: New file.
8472         * tests/test-getlogin.c: New file.
8473
8474         New module 'getlogin'.
8475         * lib/unistd.in.h (getlogin): New declaration.
8476         * lib/getlogin.c: New file.
8477         * m4/getlogin.m4: New file.
8478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8479         HAVE_GETLOGIN.
8480         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8481         HAVE_GETLOGIN.
8482         * modules/getlogin: New file.
8483         * doc/posix-functions/getlogin.texi: Mention the new module.
8484         Reported by John W. Eaton <jwe@gnu.org>.
8485
8486 2010-01-09  Bruno Haible  <bruno@clisp.org>
8487
8488         getlogin_r: Support for native Windows.
8489         * lib/getlogin_r.c: Include <windows.h>
8490         (getlogin_r): Implement for native Windows.
8491         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8492         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8493         via John W. Eaton <jwe@gnu.org>.
8494
8495 2010-01-09  Bruno Haible  <bruno@clisp.org>
8496
8497         getlogin_r: Small fixes.
8498         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8499         succeeds.
8500         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8501         before testing whether getlogin_r is declared. No need to set
8502         HAVE_DECL_GETLOGIN_R to 1.
8503         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8504
8505 2010-01-09  Bruno Haible  <bruno@clisp.org>
8506
8507         * lib/unistd.in.h (getlogin_r): Add comment.
8508
8509 2010-01-09  Bruno Haible  <bruno@clisp.org>
8510
8511         Tests for module 'getlogin_r'.
8512         * modules/getlogin_r-tests: New file.
8513         * tests/test-getlogin_r.c: New file.
8514
8515 2010-01-09  Jim Meyering  <meyering@redhat.com>
8516
8517         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8518         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8519         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8520
8521 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8522
8523         * lib/dup2.c (rpl_dup2): Improve comment.
8524
8525 2010-01-08  Eric Blake  <ebb9@byu.net>
8526
8527         maint.mk: allow packages to add makefile @@ exceptions
8528         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8529         (sc_makefile_check): Rename...
8530         (sc_makefile_at_at_check): ...to this, and use hook.
8531
8532         dup2: work around mingw bug
8533         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8534         Reported by Simon Josefsson.
8535
8536 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8537
8538         glob: Fix C++ compilation.
8539         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8540         C++.
8541
8542 2010-01-07  Bruno Haible  <bruno@clisp.org>
8543
8544         Fix indentation of wctype.in.h, broken since 2007-01-06.
8545         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8546
8547 2010-01-07  Bruno Haible  <bruno@clisp.org>
8548
8549         mbslen: Avoid collision with system function.
8550         * lib/string.in.h [MirBSD]: Include <wchar.h>.
8551         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
8552         * m4/mbslen.m4: New file.
8553         * modules/mbslen (Files): Add it.
8554         (configure.ac): Invoke gl_MBSLEN.
8555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
8556         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
8557         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
8558         via Ian Beckwith <ianb@erislabs.net>.
8559
8560 2010-01-07  Bruno Haible  <bruno@clisp.org>
8561
8562         dirent: Document the last fix.
8563         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
8564
8565 2010-01-07  Bruno Haible  <bruno@clisp.org>
8566
8567         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
8568         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
8569         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
8570         va_list are defined.
8571         * doc/posix-headers/stdio.texi: Document the bug of missing types.
8572         Reported by Eric Blake.
8573
8574 2010-01-07  Bruno Haible  <bruno@clisp.org>
8575
8576         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
8577         * modules/xlist (Depends-on): Add 'list',
8578         * modules/xoset (Depends-on): Add 'oset'.
8579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8580
8581 2010-01-07  Bruno Haible  <bruno@clisp.org>
8582
8583         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
8584         * doc/posix-functions/strncasecmp.texi: Likewise.
8585
8586 2010-01-07  Bruno Haible  <bruno@clisp.org>
8587
8588         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
8589
8590 2010-01-07  John W. Eaton  <jwe@octave.org>
8591
8592         wctype: allow C++ use
8593         * lib/wctype.in.h: Add extern "C" block for C++.
8594
8595 2010-01-06  Eric Blake  <ebb9@byu.net>
8596
8597         maint.mk: detect incorrect GFDL usage
8598         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
8599
8600 2010-01-06  Jim Meyering  <meyering@redhat.com>
8601         and Eric Blake  <ebb9@byu.net>
8602
8603         maint.mk: ignore multi-line copyright in NEWS
8604         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
8605
8606 2010-01-06  Eric Blake  <ebb9@byu.net>
8607
8608         select: add missing dependency
8609         * modules/select-tests (Depends-on): Move sockets dependency...
8610         * modules/select (Depends-on): ...here.
8611         Reported by Ian Beckwith.
8612
8613         doc: regenerate INSTALL
8614         * doc/INSTALL: Reflect recent autoconf update.
8615         * doc/INSTALL.ISO: Likewise.
8616         * doc/INSTALL.UTF-8: Likewise.
8617
8618         pread: fix compilation on glibc
8619         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
8620         Reported by Ralf Wildenhues.
8621
8622         dirent: fix test failure
8623         * lib/dirent.in.h (includes): Guarantee ino_t.
8624         Reported by Ralf Wildenhues.
8625
8626 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
8627
8628         linkat, renameat: avoid bad free
8629         * lib/at-func2.c (at_func2): Fix typo.
8630         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
8631
8632 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8633
8634         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
8635         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
8636         to avoid failure of symlink test later.
8637
8638 2010-01-06  Eric Blake  <ebb9@byu.net>
8639
8640         stdio, unistd: guarantee ssize_t
8641         * lib/unistd.in.h (includes): Ensure that types required by POSIX
8642         2008 are exposed when needed.
8643         * lib/stdio.in.h (includes): Likewise.
8644         Reported by Ralf Wildenhues.
8645
8646 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
8647
8648         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
8649         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
8650         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
8651
8652 2010-01-06  Jim Meyering  <meyering@redhat.com>
8653
8654         readtokens: this module *does* require xalloc.h
8655         It uses only functions that were omitted by the old syntax-check rule.
8656         * lib/readtokens.c: Include "xalloc.h" once again.
8657         * modules/readtokens (Depends-on): Add xalloc.
8658         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
8659
8660 2010-01-05  Eric Blake  <ebb9@byu.net>
8661
8662         maint: support 'make announcement' from a VPATH build
8663         * top/maint.mk (announcement): Look for correct NEWS file.
8664
8665 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
8666
8667         utimens (fdutimens): ignore a negative FD, per contract
8668         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
8669         when we have a valid file descriptor.  Otherwise, using a brand
8670         new glibc (with just-patched futimens that now fails with EBADF)
8671         would cause this function to fail with ENOSYS.
8672         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
8673         See also http://bugzilla.redhat.com/552320.
8674
8675 2010-01-05  Eric Blake  <ebb9@byu.net>
8676
8677         strcase: document what it provides
8678         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
8679         gnulib module.
8680         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
8681         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
8682
8683 2010-01-05  Jim Meyering  <meyering@redhat.com>
8684
8685         maint: remove useless inclusions of "xalloc.h"
8686         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
8687         * lib/readtokens.c: Likewise.
8688         * lib/same.c: Likewise.
8689         * modules/getloadavg (Depends-on): Remove xalloc.
8690         * modules/readtokens: Likewise.
8691         * modules/same: Likewise.
8692
8693         maint.mk: include 4 more function names in alloca.h-checking regexp
8694         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
8695         regexp.  Before, we would give a false-positive (saying alloca.h
8696         is included unnecessarily) when the only uses involved omitted symbols.
8697
8698         xalloc.h: use consistent formatting
8699         * lib/xalloc.h: Move declarations to start in the first column.
8700
8701 2010-01-05  Eric Blake  <ebb9@byu.net>
8702
8703         mkdir: avoid xalloc
8704         * lib/mkdir.c (includes): Drop unused header.
8705         Reported by John W. Eaton.
8706
8707 2010-01-04  Jim Meyering  <meyering@redhat.com>
8708
8709         nl_langinfo: avoid configure-time syntax error
8710         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
8711         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
8712         the empty string.  Don't let that provoke a shell syntax error.
8713
8714         regcomp, regexec, fnmatch: avoid array bounds read error
8715         * lib/regcomp.c (build_equiv_class): From glibc:
8716         Use only the low 24 bits of a findidx return value as an index
8717         into the weights array.  Patch by Ulrich Drepper:
8718         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
8719         * lib/regexec.c (check_node_accept_bytes): Likewise.
8720         * lib/fnmatch_loop.c (FCT): Likewise.
8721
8722         regcomp: skip collseq lookup when there are no rules
8723         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
8724         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
8725
8726         regcomp: recognize ill-formed { } expressions
8727         * lib/regcomp.c (parse_dup_op): From glibc:
8728         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
8729
8730         regcomp: fix typo in comment
8731         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
8732         s/satisfy/satisfies/.
8733
8734         regcomp: sync from glibc: remove dead store
8735         * lib/regcomp.c (duplicate_node_closure): Remove useless
8736         search_duplicated_node call and dead store.
8737
8738         regcomp: sync from glibc; always use nl_langinfo
8739         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
8740         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
8741         * modules/regex (Depends-on): Add nl_langinfo.
8742
8743 2010-01-04  Eric Blake  <ebb9@byu.net>
8744
8745         fdopendir: fix configure test
8746         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
8747
8748 2010-01-01  Bruno Haible  <bruno@clisp.org>
8749
8750         wchar: Remove unused configure check.
8751         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
8752
8753 2010-01-01  Eric Blake  <ebb9@byu.net>
8754
8755         headers: make check of system header explicit
8756         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
8757         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
8758         ourselves.
8759         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8760         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8761         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
8762         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
8763         internals.
8764         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
8765         missing.
8766         Suggested by Bruno Haible.
8767
8768 2010-01-01  Jim Meyering  <meyering@redhat.com>
8769
8770         ChangeLog: tweak to eliminate unnecessary copyright line
8771         * ChangeLog: Remove a copyright line that was mistakenly updated
8772         by today's update-copyright run.  Reported by Eric Blake.
8773
8774         test-update-copyright: don't let envvar setting cause test failure
8775         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8776
8777 2010-01-01  Bruno Haible  <bruno@clisp.org>
8778
8779         localename: Avoid gcc warning.
8780         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
8781         function if it is not used.
8782
8783 2010-01-01  Jim Meyering  <meyering@redhat.com>
8784
8785         update nearly all FSF copyright year lists to include 2010
8786         Use the same procedure as for 2009, outlined in
8787         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
8788
8789         version-etc: set COPYRIGHT_YEAR to 2010
8790         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
8791
8792 2009-12-31  Eric Blake  <ebb9@byu.net>
8793
8794         doc: correct availability of cygwin 1.5.x getopt
8795         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
8796         variables.
8797         * doc/posix-functions/opterr.texi (opterr): Likewise.
8798         * doc/posix-functions/optind.texi (optind): Likewise.
8799         * doc/posix-functions/optopt.texi (optopt): Likewise.
8800         * doc/posix-functions/tzname.texi (tzname): Likewise.
8801
8802         openat: update maintainer
8803         * modules/openat (Maintainer): Add myself.
8804
8805         utimens: avoid shadowing warning
8806         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
8807         buffers into one, to avoid shadowing, as well as avoiding a
8808         redundant stat.
8809         Reported by Jim Meyering.
8810
8811         test-dup2: avoid compiler warning
8812         * tests/test-dup2.c (is_inheritable): Only define if used.
8813
8814 2010-01-01  Bruno Haible  <bruno@clisp.org>
8815
8816         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
8817         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
8818         defined, use wctomb instead of wcrtomb.
8819
8820 2010-01-01  Bruno Haible  <bruno@clisp.org>
8821
8822         iconv: Reject native Solaris iconv.
8823         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
8824         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
8825
8826 2009-12-31  Bruno Haible  <bruno@clisp.org>
8827
8828         * tests/test-signal.c (main): Remove test of 'SIG'.
8829
8830 2009-12-31  Bruno Haible  <bruno@clisp.org>
8831
8832         spawn: Fix incomplete fix.
8833         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8834         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8835         warnings for GNULIB_POSIXCHECK again.
8836         Reported by Eric Blake.
8837
8838 2009-12-31  Bruno Haible  <bruno@clisp.org>
8839
8840         Avoid namespace pollution on glibc systems.
8841         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
8842         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
8843         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
8844         glibc systems.
8845
8846 2009-12-31  Bruno Haible  <bruno@clisp.org>
8847
8848         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
8849         (gl_REPLACE_WCHAR_H): Turn into a no-op.
8850         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
8851         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8852         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8853         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8854         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8855
8856 2009-12-31  Bruno Haible  <bruno@clisp.org>
8857
8858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8859         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
8860         afterwards.
8861
8862 2009-12-31  Bruno Haible  <bruno@clisp.org>
8863
8864         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
8865         SYS_UTSNAME_H.
8866
8867 2009-12-31  Bruno Haible  <bruno@clisp.org>
8868
8869         spawn: Fix misapplied patch.
8870         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8871         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8872         warnings for GNULIB_POSIXCHECK.
8873
8874 2009-12-31  Bruno Haible  <bruno@clisp.org>
8875
8876         times: Update after sys_times changed.
8877         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
8878         * modules/times (Files): Add it.
8879         (configure.ac): Invoke gl_FUNC_TIMES.
8880
8881 2009-12-31  Bruno Haible  <bruno@clisp.org>
8882
8883         Use AC_C_INLINE where necessary.
8884         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
8885         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8887         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8888         * m4/mbfile.m4 (gl_MBFILE): Likewise.
8889         * m4/mbiter.m4 (gl_MBITER): Likewise.
8890         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8891         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8892         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
8893         * modules/u64 (configure.ac): Likewise.
8894
8895 2009-12-31  Bruno Haible  <bruno@clisp.org>
8896
8897         Use AC_C_INLINE instead of module 'inline' where possible.
8898         * modules/inline (Description): Clarify purpose.
8899         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
8900         * modules/count-one-bits (Depends-on): Remove inline.
8901         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
8902         * modules/openat (Depends-on): Remove inline.
8903         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
8904         instead of depending on module 'inline'.
8905         * modules/filevercmp (Depends-on, configure.ac): Likewise.
8906         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
8907         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
8908         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
8909         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
8910         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
8911         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
8912         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
8913         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
8914         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
8915         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
8916         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
8917         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
8918         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
8919         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
8920         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
8921         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
8922         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
8923         Likewise.
8924         * modules/unictype/property-ascii-hex-digit (Depends-on,
8925         configure.ac): Likewise.
8926         * modules/unictype/property-bidi-arabic-digit (Depends-on,
8927         configure.ac): Likewise.
8928         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
8929         configure.ac): Likewise.
8930         * modules/unictype/property-bidi-block-separator (Depends-on,
8931         configure.ac): Likewise.
8932         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
8933         configure.ac): Likewise.
8934         * modules/unictype/property-bidi-common-separator (Depends-on,
8935         configure.ac): Likewise.
8936         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
8937         Likewise.
8938         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
8939         configure.ac): Likewise.
8940         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
8941         configure.ac): Likewise.
8942         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
8943         configure.ac): Likewise.
8944         * modules/unictype/property-bidi-european-digit (Depends-on,
8945         configure.ac): Likewise.
8946         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
8947         configure.ac): Likewise.
8948         * modules/unictype/property-bidi-left-to-right (Depends-on,
8949         configure.ac): Likewise.
8950         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
8951         configure.ac): Likewise.
8952         * modules/unictype/property-bidi-other-neutral (Depends-on,
8953         configure.ac): Likewise.
8954         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
8955         Likewise.
8956         * modules/unictype/property-bidi-segment-separator (Depends-on,
8957         configure.ac): Likewise.
8958         * modules/unictype/property-bidi-whitespace (Depends-on,
8959         configure.ac): Likewise.
8960         * modules/unictype/property-combining (Depends-on, configure.ac):
8961         Likewise.
8962         * modules/unictype/property-composite (Depends-on, configure.ac):
8963         Likewise.
8964         * modules/unictype/property-currency-symbol (Depends-on,
8965         configure.ac): Likewise.
8966         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
8967         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
8968         Likewise.
8969         * modules/unictype/property-default-ignorable-code-point (Depends-on,
8970         configure.ac): Likewise.
8971         * modules/unictype/property-deprecated (Depends-on, configure.ac):
8972         Likewise.
8973         * modules/unictype/property-diacritic (Depends-on, configure.ac):
8974         Likewise.
8975         * modules/unictype/property-extender (Depends-on, configure.ac):
8976         Likewise.
8977         * modules/unictype/property-format-control (Depends-on, configure.ac):
8978         Likewise.
8979         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
8980         Likewise.
8981         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
8982         Likewise.
8983         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
8984         Likewise.
8985         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
8986         Likewise.
8987         * modules/unictype/property-hyphen (Depends-on, configure.ac):
8988         Likewise.
8989         * modules/unictype/property-id-continue (Depends-on, configure.ac):
8990         Likewise.
8991         * modules/unictype/property-id-start (Depends-on, configure.ac):
8992         Likewise.
8993         * modules/unictype/property-ideographic (Depends-on, configure.ac):
8994         Likewise.
8995         * modules/unictype/property-ids-binary-operator (Depends-on,
8996         configure.ac): Likewise.
8997         * modules/unictype/property-ids-trinary-operator (Depends-on,
8998         configure.ac): Likewise.
8999         * modules/unictype/property-ignorable-control (Depends-on,
9000         configure.ac): Likewise.
9001         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9002         Likewise.
9003         * modules/unictype/property-join-control (Depends-on, configure.ac):
9004         Likewise.
9005         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9006         Likewise.
9007         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9008         Likewise.
9009         * modules/unictype/property-logical-order-exception (Depends-on,
9010         configure.ac): Likewise.
9011         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9012         Likewise.
9013         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9014         * modules/unictype/property-non-break (Depends-on, configure.ac):
9015         Likewise.
9016         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9017         Likewise.
9018         * modules/unictype/property-numeric (Depends-on, configure.ac):
9019         Likewise.
9020         * modules/unictype/property-other-alphabetic (Depends-on,
9021         configure.ac): Likewise.
9022         * modules/unictype/property-other-default-ignorable-code-point
9023         (Depends-on, configure.ac): Likewise.
9024         * modules/unictype/property-other-grapheme-extend (Depends-on,
9025         configure.ac): Likewise.
9026         * modules/unictype/property-other-id-continue (Depends-on,
9027         configure.ac): Likewise.
9028         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9029         Likewise.
9030         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9031         Likewise.
9032         * modules/unictype/property-other-math (Depends-on, configure.ac):
9033         Likewise.
9034         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9035         Likewise.
9036         * modules/unictype/property-paired-punctuation (Depends-on,
9037         configure.ac): Likewise.
9038         * modules/unictype/property-paragraph-separator (Depends-on,
9039         configure.ac): Likewise.
9040         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9041         Likewise.
9042         * modules/unictype/property-pattern-white-space (Depends-on,
9043         configure.ac): Likewise.
9044         * modules/unictype/property-private-use (Depends-on, configure.ac):
9045         Likewise.
9046         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9047         Likewise.
9048         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9049         Likewise.
9050         * modules/unictype/property-radical (Depends-on, configure.ac):
9051         Likewise.
9052         * modules/unictype/property-sentence-terminal (Depends-on,
9053         configure.ac): Likewise.
9054         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9055         Likewise.
9056         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9057         * modules/unictype/property-terminal-punctuation (Depends-on,
9058         configure.ac): Likewise.
9059         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9060         Likewise.
9061         * modules/unictype/property-unassigned-code-value (Depends-on,
9062         configure.ac): Likewise.
9063         * modules/unictype/property-unified-ideograph (Depends-on,
9064         configure.ac): Likewise.
9065         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9066         Likewise.
9067         * modules/unictype/property-variation-selector (Depends-on,
9068         configure.ac): Likewise.
9069         * modules/unictype/property-white-space (Depends-on, configure.ac):
9070         Likewise.
9071         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9072         Likewise.
9073         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9074         Likewise.
9075         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9076         Likewise.
9077         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9078         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9079         Likewise.
9080
9081 2009-12-31  Bruno Haible  <bruno@clisp.org>
9082
9083         Remove unnecessary AC_C_INLINE invocation.
9084         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9085         since 2009-08-21.
9086
9087 2009-12-31  Jim Meyering  <meyering@redhat.com>
9088
9089         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9090         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9091         With this change, we can all remove the gpg_key_ID = ... definition
9092         from our respective cfg.mk files.
9093
9094         maint.mk: create announcement template in ~/, not in /tmp
9095         * top/maint.mk (emit_upload_commands): Adjust.
9096         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9097         Remove temporary file, .ci-msg.
9098
9099 2009-12-31  Eric Blake  <ebb9@byu.net>
9100
9101         link-warning: always build headers with link warnings
9102         * modules/arpa_inet (Makefile.am): Always build replacement
9103         header.
9104         * modules/ctype (Makefile.am): Likewise.
9105         * modules/dirent (Makefile.am): Likewise.
9106         * modules/inttypes (Makefile.am): Likewise.
9107         * modules/langinfo (Makefile.am): Likewise.
9108         * modules/locale (Makefile.am): Likewise.
9109         * modules/spawn (Makefile.am): Likewise.
9110         * modules/sys_file (Makefile.am): Likewise.
9111         * modules/sys_ioctl (Makefile.am): Likewise.
9112         * modules/sys_select (Makefile.am): Likewise.
9113         * modules/sys_socket (Makefile.am): Likewise.
9114         * modules/sys_times (Makefile.am): Likewise.
9115         * modules/sys_utsname (Makefile.am): Likewise.
9116         * modules/sys_wait (Makefile.am): Likewise.
9117         * modules/wchar (Makefile.am): Likewise.
9118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9119         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9120         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9121         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9122         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9123         Likewise.
9124         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9125         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9126         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9127         Likewise.
9128         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9129         Likewise.
9130         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9131         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9132         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9134         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9136         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9137         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9138         (gl_WCHAR_H_DEFAULTS): Likewise.
9139
9140 2009-12-31  Eric Blake  <ebb9@byu.net>
9141
9142         signal, spawn: use link warnings
9143         * lib/signal.in.h (sigset_t): Make unconditional.
9144         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9145         (sigpending, sigprocmask, sigaction): Add link warnings.
9146         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9147         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9148         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9149         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9150         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9151         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9152         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9153         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9154         (posix_spawn_file_actions_destroy)
9155         (posix_spawn_file_actions_addopen)
9156         (posix_spawn_file_actions_addclose)
9157         (posix_spawn_file_actions_adddup2): Likewise.
9158         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9159         * tests/test-signal.c (main): Enhance test.
9160
9161         spawn: improve wrapper support
9162         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9163         (gl_SPAWN_H_DEFAULTS): New defaults.
9164         * modules/spawn (Makefile.am): Substitute them.
9165         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9166         Only declare if missing or broken.
9167
9168         sys_times, sys_utsname: use include_next
9169         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9170         header.
9171         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9172         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9173         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9174         * modules/sys_times (Depends-on): Add include_next.
9175         (Makefile.am): Substitute additional values.
9176         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9177         * lib/sys_times.in.h (includes): Include native header, if
9178         available.
9179         * lib/sys_utsname.in.h (includes): Likewise.
9180         * tests/test-sys_times.c (main): Enhance test.
9181
9182         fdutimensat: revert prior patch
9183         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9184         utimens.h.
9185         Reported by Bruno Haible.
9186
9187 2009-12-30  Eric Blake  <ebb9@byu.net>
9188
9189         sys_wait: drop link-warning dependency
9190         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9191         link-warning efforts.
9192         * lib/sys_wait.in.h: Likewise.
9193
9194         fdutimensat: remove bogus dependency
9195         * modules/fdutimensat (Depends-on): Drop inline.
9196
9197         unistd: fix typo
9198         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9199
9200 2009-12-30  Bruno Haible  <bruno@clisp.org>
9201
9202         Fix compilation error with Solaris cc.
9203         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9204         * lib/unicase/u16-is-invariant.c: Likewise.
9205         * lib/unicase/u32-is-invariant.c: Likewise.
9206         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9207
9208 2009-12-30  Bruno Haible  <bruno@clisp.org>
9209
9210         Fix test crash.
9211         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9212         locales.
9213         Reported by Simon Josefsson <simon@josefsson.org>.
9214
9215 2009-12-30  Bruno Haible  <bruno@clisp.org>
9216
9217         Fix compilation error on most platforms.
9218         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9219         Reported by Simon Josefsson <simon@josefsson.org>
9220         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9221
9222 2009-12-30  Eric Blake  <ebb9@byu.net>
9223
9224         futimens, utimensat: work around ntfs-3g bug
9225         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9226         a ctime bug is present, and expand workaround to cover ntfs-3g.
9227         * lib/utimens.c (fdutimens, lutimens): Likewise.
9228         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9229         (validate_timespec): Adjust return value.
9230         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9231         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9232         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9233
9234 2009-12-29  Eric Blake  <ebb9@byu.net>
9235
9236         link-warning: make usage consistent
9237         * modules/ctype (Depends-on): Add link-warning.
9238         (Makefile.am): Update rules accordingly.
9239         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9240         * modules/locale (Depends-on, Makefile.am): Likewise.
9241         * modules/sys_file (Makefile.am): Likewise.
9242         * modules/getopt-posix (Makefile.am): Delete unused link warning
9243         efforts.
9244         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9245         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9246         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9247         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9248
9249         stdio: remove unused variables
9250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9251         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9252         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9253
9254         tests: test more substitute headers
9255         * modules/ctype-tests: New file.
9256         * modules/dirent-tests: Likewise.
9257         * modules/spawn-tests: Likewise.
9258         * modules/sys_file-tests: Likewise.
9259         * modules/sys_ioctl-tests: Likewise.
9260         * modules/sys_wait-tests: Likewise.
9261         * tests/test-ctype.c: Likewise.
9262         * tests/test-dirent.c: Likewise.
9263         * tests/test-spawn.c: Likewise.
9264         * tests/test-sys_file.c: Likewise.
9265         * tests/test-sys_ioctl.c: Likewise.
9266         * tests/test-sys_wait.c: Likewise.
9267         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9268         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9269         whether or not flock is in use.
9270
9271         tests: remove License section from module
9272         * modules/arpa_inet-tests: Remove unneeded section.
9273         * modules/byteswap-tests: Likewise.
9274         * modules/ceilf-tests: Likewise.
9275         * modules/ceill-tests: Likewise.
9276         * modules/crypto/des-tests: Likewise.
9277         * modules/crypto/gc-arcfour-tests: Likewise.
9278         * modules/crypto/gc-arctwo-tests: Likewise.
9279         * modules/crypto/gc-des-tests: Likewise.
9280         * modules/crypto/gc-hmac-md5-tests: Likewise.
9281         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9282         * modules/crypto/gc-md2-tests: Likewise.
9283         * modules/crypto/gc-md4-tests: Likewise.
9284         * modules/crypto/gc-md5-tests: Likewise.
9285         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9286         * modules/crypto/gc-rijndael-tests: Likewise.
9287         * modules/crypto/gc-sha1-tests: Likewise.
9288         * modules/crypto/gc-tests: Likewise.
9289         * modules/crypto/md2-tests: Likewise.
9290         * modules/crypto/md4-tests: Likewise.
9291         * modules/fcntl-h-tests: Likewise.
9292         * modules/floorf-tests: Likewise.
9293         * modules/floorl-tests: Likewise.
9294         * modules/frexp-nolibm-tests: Likewise.
9295         * modules/frexp-tests: Likewise.
9296         * modules/frexpl-nolibm-tests: Likewise.
9297         * modules/frexpl-tests: Likewise.
9298         * modules/getaddrinfo-tests: Likewise.
9299         * modules/inttypes-tests: Likewise.
9300         * modules/isfinite-tests: Likewise.
9301         * modules/isinf-tests: Likewise.
9302         * modules/ldexpl-tests: Likewise.
9303         * modules/locale-tests: Likewise.
9304         * modules/math-tests: Likewise.
9305         * modules/netdb-tests: Likewise.
9306         * modules/netinet_in-tests: Likewise.
9307         * modules/printf-frexp-tests: Likewise.
9308         * modules/printf-frexpl-tests: Likewise.
9309         * modules/priv-set-tests: Likewise.
9310         * modules/random_r-tests: Likewise.
9311         * modules/round-tests: Likewise.
9312         * modules/roundf-tests: Likewise.
9313         * modules/roundl-tests: Likewise.
9314         * modules/search-tests: Likewise.
9315         * modules/select-tests: Likewise.
9316         * modules/signal-tests: Likewise.
9317         * modules/stdbool-tests: Likewise.
9318         * modules/stddef-tests: Likewise.
9319         * modules/stdint-tests: Likewise.
9320         * modules/stdio-tests: Likewise.
9321         * modules/stdlib-tests: Likewise.
9322         * modules/string-tests: Likewise.
9323         * modules/strings-tests: Likewise.
9324         * modules/sys_select-tests: Likewise.
9325         * modules/sys_socket-tests: Likewise.
9326         * modules/sys_stat-tests: Likewise.
9327         * modules/sys_time-tests: Likewise.
9328         * modules/sys_utsname-tests: Likewise.
9329         * modules/sysexits-tests: Likewise.
9330         * modules/time-tests: Likewise.
9331         * modules/trunc-tests: Likewise.
9332         * modules/truncf-tests: Likewise.
9333         * modules/truncl-tests: Likewise.
9334         * modules/tsearch-tests: Likewise.
9335         * modules/unistd-tests: Likewise.
9336         * modules/wchar-tests: Likewise.
9337         * modules/wctype-tests: Likewise.
9338
9339         tests: fix license on several tests
9340         * tests/test-des.c: Update to GPLv3+.
9341         * tests/test-flock.c: Likewise.
9342         * tests/test-fsync.c: Likewise.
9343         * tests/test-futimens.h: Likewise.
9344         * tests/test-gc-arcfour.c: Likewise.
9345         * tests/test-gc-arctwo.c: Likewise.
9346         * tests/test-gc-des.c: Likewise.
9347         * tests/test-gc-hmac-md5.c: Likewise.
9348         * tests/test-gc-hmac-sha1.c: Likewise.
9349         * tests/test-gc-md2.c: Likewise.
9350         * tests/test-gc-md4.c: Likewise.
9351         * tests/test-gc-md5.c: Likewise.
9352         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9353         * tests/test-gc-rijndael.c: Likewise.
9354         * tests/test-gc-sha1.c: Likewise.
9355         * tests/test-gc.c: Likewise.
9356         * tests/test-getcwd.c: Likewise.
9357         * tests/test-link.c: Likewise.
9358         * tests/test-link.h: Likewise.
9359         * tests/test-lutimens.h: Likewise.
9360         * tests/test-md2.c: Likewise.
9361         * tests/test-md4.c: Likewise.
9362         * tests/test-mkdir.h: Likewise.
9363         * tests/test-rename.c: Likewise.
9364         * tests/test-rename.h: Likewise.
9365         * tests/test-safe-alloc.c: Likewise.
9366         * tests/test-utimens-common.h: Likewise.
9367         * tests/test-utimens.h: Likewise.
9368
9369         maint: sync license texts
9370         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9371         * doc/gpl-3.0.texi: Revert copyright year update.
9372         * doc/lgpl-3.0.texi: Likewise.
9373
9374 2009-12-29  Jim Meyering  <meyering@redhat.com>
9375
9376         update nearly all FSF copyright year lists to include 2009
9377         The files named by the following are exempted:
9378             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9379               test -f "$dst" && { echo "$dst"; continue; }
9380               test -d "$dst" || continue
9381               echo "$dst"/$(basename "$src")
9382             done > exempt
9383             git ls-files tests/unictype >> exempt
9384         In the remaining files, convert to all-interval notation if
9385         - there is already at least one year interval like 2000-2003
9386         - the file is maintained by me
9387         - the file is in lib/uni*/, where that style already prevails
9388         Otherwise, use update-copyright's default.
9389
9390 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9391         and Eric Blake  <ebb9@byu.net>
9392
9393         tests: don't require debug system() to pass
9394         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9395         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9396         * tests/test-unlink.h (test_unlink_func): Likewise.
9397         * tests/test-fstatat.c (main): ...into callers.
9398         * tests/test-lstat.c (main): Likewise.
9399         * tests/test-rmdir.c (main): Likewise.
9400         * tests/test-unlink.c (main): Likewise.
9401         * tests/test-unlinkat.c (main): Likewise.
9402         * tests/test-areadlink-with-size.c (main): Don't require a
9403         debug-only system call to pass, aiding cross-testing to mingw.
9404         * tests/test-areadlink.c (main): Likewise.
9405         * tests/test-areadlinkat-with-size.c (main): Likewise.
9406         * tests/test-areadlinkat.c (main): Likewise.
9407         * tests/test-canonicalize-lgpl.c (main): Likewise.
9408         * tests/test-canonicalize.c (main): Likewise.
9409         * tests/test-chown.c (main): Likewise.
9410         * tests/test-fchownat.c (main): Likewise.
9411         * tests/test-lchown.c (main): Likewise.
9412         * tests/test-fdutimensat.c (main): Likewise.
9413         * tests/test-futimens.c (main): Likewise.
9414         * tests/test-link.c (main): Likewise.
9415         * tests/test-linkat.c (main): Likewise.
9416         * tests/test-mkdir.c (main): Likewise.
9417         * tests/test-mkdirat.c (main): Likewise.
9418         * tests/test-mkfifo.c (main): Likewise.
9419         * tests/test-mkfifoat.c (main): Likewise.
9420         * tests/test-mknod.c (main): Likewise.
9421         * tests/test-readlink.c (main): Likewise.
9422         * tests/test-remove.c (main): Likewise.
9423         * tests/test-rename.c (main): Likewise.
9424         * tests/test-renameat.c (main): Likewise.
9425         * tests/test-symlink.c (main): Likewise.
9426         * tests/test-symlinkat.c (main): Likewise.
9427         * tests/test-utimens.c (main): Likewise.
9428         * tests/test-utimensat.c (main): Likewise.
9429
9430 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9431
9432         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9433         on $(UNUSED_PARAMETER_H) to avoid build failure.
9434
9435 2009-12-28  Jim Meyering  <meyering@redhat.com>
9436
9437         update-copyright: you may specify a max. line length other than 72
9438         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9439
9440         maint: use consistent FSF copyright line syntax
9441         * lib/posixtm.c: Add missing comma in FSF copyright line.
9442         * lib/posixtm.h: Likewise.
9443         * lib/getugroups.c: Add missing ", Inc.".
9444
9445         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9446         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9447         FSF copyright line.  Remove trailing blanks.
9448
9449 2009-12-28  Eric Blake  <ebb9@byu.net>
9450
9451         test-dup2: reduce dependencies
9452         * modules/cloexec (Configure.ac): Set witness.
9453         * modules/dup2-tests (Depends-on): Drop cloexec.
9454         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9455         not present.
9456         Suggested by Bruno Haible.
9457
9458 2009-12-26  Bruno Haible  <bruno@clisp.org>
9459
9460         Remove an unneeded dependency.
9461         * modules/fseterr (Depends-on): Remove dup2.
9462
9463 2009-12-26  Eric Blake  <ebb9@byu.net>
9464
9465         tests: use macros.h in more places
9466         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9467         (ASSERT_STREAM): Provide default of stderr.
9468         * tests/test-dirent-safer.c: Include macros.h, using alternate
9469         stream for assertions.
9470         * tests/test-dup-safer.c: Likewise.
9471         * tests/test-freopen-safer.c: Likewise.
9472         * tests/test-getopt.c: Likewise.
9473         * tests/test-openat-safer.c: Likewise.
9474         * tests/test-pipe.c: Likewise.
9475         * tests/test-popen-safer.c: Likewise.
9476         * modules/dirent-safer-tests (Files): Include macros.h.
9477         * modules/unistd-safer-tests (Files): Likewise.
9478         * modules/freopen-safer-tests (Files): Likewise.
9479         * modules/getopt-posix-tests (Files): Likewise.
9480         * modules/openat-safer-tests (Files): Likewise.
9481         * modules/pipe-tests (Files): Likewise.
9482
9483 2009-12-26  Bruno Haible  <bruno@clisp.org>
9484
9485         javacomp: Portability fix.
9486         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9487         that it also works on Solaris.
9488
9489 2009-12-26  Bruno Haible  <bruno@clisp.org>
9490
9491         localename: Fix storage allocation of gl_locale_name_thread's result.
9492         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9493         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9494         all platforms that have 'uselocale'.
9495         (gl_locale_name_thread_unsafe): New function, extracted from
9496         gl_locale_name_thread.
9497         (gl_locale_name_thread): Call struniq on all platforms that have
9498         'uselocale'.
9499         * tests/test-localename.c (test_locale_name_thread): Check that the
9500         resulting strings are permanently allocated.
9501         * modules/localename-tests (Depends-on): Add strdup.
9502
9503 2009-12-26  Bruno Haible  <bruno@clisp.org>
9504
9505         * tests/test-localename.c (categories): Fill in the strings.
9506
9507 2009-12-26  Jim Meyering  <meyering@redhat.com>
9508
9509         isdir: complete the removal of m4/isdir.m4
9510         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9511
9512         isdir: clean up, since at least grep still uses it
9513         * lib/isdir.c: Include "isdir.h".
9514         (S_ISDIR): Remove now-unneeded definition.
9515         * modules/isdir (Files): Add lib/isdir.h.
9516         * lib/isdir.h: New file, with declaration.
9517         * m4/isdir.m4: Remove file -- unneeded.
9518
9519 2009-12-25  Bruno Haible  <bruno@clisp.org>
9520
9521         selinux-h: Make generated .h files standalone.
9522         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9523         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9524         * lib/se-selinux.in.h: Likewise.
9525         * modules/selinux-h (Depends-on): Add unused-parameter.
9526         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9527         selinux/selinux.h and selinux/context.h.
9528         Suggested by Eric Blake.
9529
9530 2009-12-25  Bruno Haible  <bruno@clisp.org>
9531
9532         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9533         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9534         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9535         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9536         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9537
9538 2009-12-24  Bruno Haible  <bruno@clisp.org>
9539
9540         openat: Fix warning.
9541         * lib/openat-proc.c: Include <unistd.h>.
9542
9543 2009-12-24  Bruno Haible  <bruno@clisp.org>
9544
9545         New module 'unused-parameter'.
9546         * build-aux/unused-parameter.h: New file, extracted from earlier
9547         gnulib-common.m4.
9548         * modules/unused-parameter: New file.
9549         * lib/unistr.h: Include unused-parameter.h.
9550         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
9551         _GL_UNUSED.
9552         * modules/unistr/base (Depends-on): Add unused-parameter.
9553
9554 2009-12-24  Bruno Haible  <bruno@clisp.org>
9555
9556         Add missing dependencies to 'extensions' module.
9557         * m4/extensions.m4: Add comment.
9558         * modules/accept4 (Depends-on): Add extensions.
9559         * modules/dup3 (Depends-on): Likewise.
9560         * modules/fcntl (Depends-on): Likewise.
9561         * modules/futimens (Depends-on): Likewise.
9562         * modules/mknod (Depends-on): Likewise.
9563         * modules/pipe2 (Depends-on): Likewise.
9564         * modules/stat-time (Depends-on): Likewise.
9565         * modules/strcasestr-simple (Depends-on): Likewise.
9566         * modules/strsignal (Depends-on): Likewise.
9567         * modules/utimensat (Depends-on): Likewise.
9568         * modules/localcharset (Depends-on): Likewise. Needed because of
9569         gl_FCNTL_O_FLAGS.
9570         * modules/wcrtomb (Depends-on): Likewise. Needed because of
9571         AC_TYPE_MBSTATE_T.
9572         * modules/wcsnrtombs (Depends-on): Likewise.
9573         * modules/wcsrtombs (Depends-on): Likewise.
9574
9575 2009-12-24  Bruno Haible  <bruno@clisp.org>
9576
9577         binary-io: Avoid gcc warning due to SET_BINARY.
9578         * lib/binary-io.h (SET_BINARY): Cast the result to void.
9579         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
9580
9581 2009-12-24  Bruno Haible  <bruno@clisp.org>
9582
9583         Avoid future namespace pollution on glibc systems.
9584         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
9585         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
9586         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
9587         glibc systems.
9588
9589 2009-12-24  Bruno Haible  <bruno@clisp.org>
9590
9591         Refactor common macros used in tests.
9592         * tests/macros.h: New file.
9593         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
9594         and/or <stdlib.h>, if appropriate.
9595         (ASSERT, SIZEOF): Remove macros.
9596         * tests/test-areadlink-with-size.c: Likewise.
9597         * tests/test-areadlinkat.c: Likewise.
9598         * tests/test-areadlinkat-with-size.c: Likewise.
9599         * tests/test-argmatch.c: Likewise.
9600         * tests/test-argv-iter.c: Likewise.
9601         * tests/test-array-mergesort.c: Likewise.
9602         * tests/test-array_list.c: Likewise.
9603         * tests/test-array_oset.c: Likewise.
9604         * tests/test-avltree_list.c: Likewise.
9605         * tests/test-avltree_oset.c: Likewise.
9606         * tests/test-avltreehash_list.c: Likewise.
9607         * tests/test-base64.c: Likewise.
9608         * tests/test-binary-io.c: Likewise.
9609         * tests/test-bitrotate.c: Likewise.
9610         * tests/test-btowc.c: Likewise.
9611         * tests/test-byteswap.c: Likewise.
9612         * tests/test-c-ctype.c: Likewise.
9613         * tests/test-c-stack.c: Likewise.
9614         * tests/test-c-strcasecmp.c: Likewise.
9615         * tests/test-c-strcasestr.c: Likewise.
9616         * tests/test-c-strncasecmp.c: Likewise.
9617         * tests/test-c-strstr.c: Likewise.
9618         * tests/test-canonicalize-lgpl.c: Likewise.
9619         * tests/test-canonicalize.c: Likewise.
9620         * tests/test-carray_list.c: Likewise.
9621         * tests/test-ceilf1.c: Likewise.
9622         * tests/test-ceilf2.c: Likewise.
9623         * tests/test-ceill.c: Likewise.
9624         * tests/test-chown.c: Likewise.
9625         * tests/test-cloexec.c: Likewise.
9626         * tests/test-copy-acl.c: Likewise.
9627         * tests/test-copy-file.c: Likewise.
9628         * tests/test-count-one-bits.c: Likewise.
9629         * tests/test-dprintf-posix.c: Likewise.
9630         * tests/test-dup2.c: Likewise.
9631         * tests/test-dup3.c: Likewise.
9632         * tests/test-duplocale.c: Likewise.
9633         * tests/test-fbufmode.c: Likewise.
9634         * tests/test-fchdir.c: Likewise.
9635         * tests/test-fchownat.c: Likewise.
9636         * tests/test-fcntl-safer.c: Likewise.
9637         * tests/test-fcntl.c: Likewise.
9638         * tests/test-fdopendir.c: Likewise.
9639         * tests/test-fdutimensat.c: Likewise.
9640         * tests/test-fflush2.c: Likewise.
9641         * tests/test-file-has-acl.c: Likewise.
9642         * tests/test-filevercmp.c: Likewise.
9643         * tests/test-flock.c: Likewise.
9644         * tests/test-floorf1.c: Likewise.
9645         * tests/test-floorf2.c: Likewise.
9646         * tests/test-floorl.c: Likewise.
9647         * tests/test-fnmatch.c: Likewise.
9648         * tests/test-fopen.h: Likewise.
9649         * tests/test-fpending.c: Likewise.
9650         * tests/test-fprintf-posix.c: Likewise.
9651         * tests/test-fpurge.c: Likewise.
9652         * tests/test-freadable.c: Likewise.
9653         * tests/test-freadahead.c: Likewise.
9654         * tests/test-freading.c: Likewise.
9655         * tests/test-freadptr.c: Likewise.
9656         * tests/test-freadptr2.c: Likewise.
9657         * tests/test-freadseek.c: Likewise.
9658         * tests/test-freopen.c: Likewise.
9659         * tests/test-frexp.c: Likewise.
9660         * tests/test-frexpl.c: Likewise.
9661         * tests/test-fseek.c: Likewise.
9662         * tests/test-fseeko.c: Likewise.
9663         * tests/test-fstatat.c: Likewise.
9664         * tests/test-fstrcmp.c: Likewise.
9665         * tests/test-fsync.c: Likewise.
9666         * tests/test-ftell.c: Likewise.
9667         * tests/test-ftello.c: Likewise.
9668         * tests/test-func.c: Likewise.
9669         * tests/test-futimens.c: Likewise.
9670         * tests/test-fwritable.c: Likewise.
9671         * tests/test-fwriting.c: Likewise.
9672         * tests/test-getcwd.c: Likewise.
9673         * tests/test-getdate.c: Likewise.
9674         * tests/test-getdelim.c: Likewise.
9675         * tests/test-getdtablesize.c: Likewise.
9676         * tests/test-getgroups.c: Likewise.
9677         * tests/test-getline.c: Likewise.
9678         * tests/test-getndelim2.c: Likewise.
9679         * tests/test-glob.c: Likewise.
9680         * tests/test-hash.c: Likewise.
9681         * tests/test-i-ring.c: Likewise.
9682         * tests/test-iconv-utf.c: Likewise.
9683         * tests/test-iconv.c: Likewise.
9684         * tests/test-idpriv-drop.c: Likewise.
9685         * tests/test-idpriv-droptemp.c: Likewise.
9686         * tests/test-inet_ntop.c: Likewise.
9687         * tests/test-inet_pton.c: Likewise.
9688         * tests/test-isblank.c: Likewise.
9689         * tests/test-isfinite.c: Likewise.
9690         * tests/test-isinf.c: Likewise.
9691         * tests/test-isnan.c: Likewise.
9692         * tests/test-isnand.h: Likewise.
9693         * tests/test-isnanf.h: Likewise.
9694         * tests/test-isnanl.h: Likewise.
9695         * tests/test-lchown.c: Likewise.
9696         * tests/test-ldexpl.c: Likewise.
9697         * tests/test-link.c: Likewise.
9698         * tests/test-linkat.c: Likewise.
9699         * tests/test-linked_list.c: Likewise.
9700         * tests/test-linkedhash_list.c: Likewise.
9701         * tests/test-localename.c: Likewise.
9702         * tests/test-lseek.c: Likewise.
9703         * tests/test-lstat.c: Likewise.
9704         * tests/test-mbmemcasecmp.c: Likewise.
9705         * tests/test-mbmemcasecoll.c: Likewise.
9706         * tests/test-mbrtowc.c: Likewise.
9707         * tests/test-mbscasecmp.c: Likewise.
9708         * tests/test-mbscasestr1.c: Likewise.
9709         * tests/test-mbscasestr2.c: Likewise.
9710         * tests/test-mbscasestr3.c: Likewise.
9711         * tests/test-mbscasestr4.c: Likewise.
9712         * tests/test-mbschr.c: Likewise.
9713         * tests/test-mbscspn.c: Likewise.
9714         * tests/test-mbsinit.c: Likewise.
9715         * tests/test-mbsncasecmp.c: Likewise.
9716         * tests/test-mbsnrtowcs.c: Likewise.
9717         * tests/test-mbspbrk.c: Likewise.
9718         * tests/test-mbspcasecmp.c: Likewise.
9719         * tests/test-mbsrchr.c: Likewise.
9720         * tests/test-mbsrtowcs.c: Likewise.
9721         * tests/test-mbsspn.c: Likewise.
9722         * tests/test-mbsstr1.c: Likewise.
9723         * tests/test-mbsstr2.c: Likewise.
9724         * tests/test-mbsstr3.c: Likewise.
9725         * tests/test-memchr.c: Likewise.
9726         * tests/test-memchr2.c: Likewise.
9727         * tests/test-memcmp.c: Likewise.
9728         * tests/test-memmem.c: Likewise.
9729         * tests/test-memrchr.c: Likewise.
9730         * tests/test-mkdir.c: Likewise.
9731         * tests/test-mkdirat.c: Likewise.
9732         * tests/test-mkfifo.c: Likewise.
9733         * tests/test-mkfifoat.c: Likewise.
9734         * tests/test-mknod.c: Likewise.
9735         * tests/test-nanosleep.c: Likewise.
9736         * tests/test-nl_langinfo.c: Likewise.
9737         * tests/test-obstack-printf.c: Likewise.
9738         * tests/test-open.c: Likewise.
9739         * tests/test-openat.c: Likewise.
9740         * tests/test-pipe-filter-gi1.c: Likewise.
9741         * tests/test-pipe-filter-gi2-main.c: Likewise.
9742         * tests/test-pipe-filter-ii1.c: Likewise.
9743         * tests/test-pipe-filter-ii2-main.c: Likewise.
9744         * tests/test-pipe2.c: Likewise.
9745         * tests/test-popen.h: Likewise.
9746         * tests/test-posixtm.c: Likewise.
9747         * tests/test-pread.c: Likewise.
9748         * tests/test-printf-frexp.c: Likewise.
9749         * tests/test-printf-frexpl.c: Likewise.
9750         * tests/test-printf-posix.c: Likewise.
9751         * tests/test-priv-set.c: Likewise.
9752         * tests/test-quotearg.c: Likewise.
9753         * tests/test-random_r.c: Likewise.
9754         * tests/test-rawmemchr.c: Likewise.
9755         * tests/test-rbtree_list.c: Likewise.
9756         * tests/test-rbtree_oset.c: Likewise.
9757         * tests/test-rbtreehash_list.c: Likewise.
9758         * tests/test-readlink.c: Likewise.
9759         * tests/test-remove.c: Likewise.
9760         * tests/test-rename.c: Likewise.
9761         * tests/test-renameat.c: Likewise.
9762         * tests/test-rmdir.c: Likewise.
9763         * tests/test-round1.c: Likewise.
9764         * tests/test-roundf1.c: Likewise.
9765         * tests/test-roundl.c: Likewise.
9766         * tests/test-safe-alloc.c: Likewise.
9767         * tests/test-sameacls.c: Likewise.
9768         * tests/test-set-mode-acl.c: Likewise.
9769         * tests/test-setenv.c: Likewise.
9770         * tests/test-sigaction.c: Likewise.
9771         * tests/test-signbit.c: Likewise.
9772         * tests/test-sleep.c: Likewise.
9773         * tests/test-snprintf-posix.c: Likewise.
9774         * tests/test-snprintf.c: Likewise.
9775         * tests/test-sprintf-posix.c: Likewise.
9776         * tests/test-stat-time.c: Likewise.
9777         * tests/test-stat.c: Likewise.
9778         * tests/test-strcasestr.c: Likewise.
9779         * tests/test-strchrnul.c: Likewise.
9780         * tests/test-strerror.c: Likewise.
9781         * tests/test-striconv.c: Likewise.
9782         * tests/test-striconveh.c: Likewise.
9783         * tests/test-striconveha.c: Likewise.
9784         * tests/test-strsignal.c: Likewise.
9785         * tests/test-strstr.c: Likewise.
9786         * tests/test-strtod.c: Likewise.
9787         * tests/test-strverscmp.c: Likewise.
9788         * tests/test-symlink.c: Likewise.
9789         * tests/test-symlinkat.c: Likewise.
9790         * tests/test-trunc1.c: Likewise.
9791         * tests/test-trunc2.c: Likewise.
9792         * tests/test-truncf1.c: Likewise.
9793         * tests/test-truncf2.c: Likewise.
9794         * tests/test-truncl.c: Likewise.
9795         * tests/test-uname.c: Likewise.
9796         * tests/test-unlink.c: Likewise.
9797         * tests/test-unlinkat.c: Likewise.
9798         * tests/test-unsetenv.c: Likewise.
9799         * tests/test-usleep.c: Likewise.
9800         * tests/test-utimens.c: Likewise.
9801         * tests/test-utimensat.c: Likewise.
9802         * tests/test-vasnprintf-posix.c: Likewise.
9803         * tests/test-vasnprintf-posix2.c: Likewise.
9804         * tests/test-vasnprintf.c: Likewise.
9805         * tests/test-vasprintf-posix.c: Likewise.
9806         * tests/test-vasprintf.c: Likewise.
9807         * tests/test-vdprintf-posix.c: Likewise.
9808         * tests/test-vfprintf-posix.c: Likewise.
9809         * tests/test-vprintf-posix.c: Likewise.
9810         * tests/test-vsnprintf-posix.c: Likewise.
9811         * tests/test-vsnprintf.c: Likewise.
9812         * tests/test-vsprintf-posix.c: Likewise.
9813         * tests/test-wcrtomb.c: Likewise.
9814         * tests/test-wcsnrtombs.c: Likewise.
9815         * tests/test-wcsrtombs.c: Likewise.
9816         * tests/test-wctype.c: Likewise.
9817         * tests/test-wcwidth.c: Likewise.
9818         * tests/test-xfprintf-posix.c: Likewise.
9819         * tests/test-xmemdup0.c: Likewise.
9820         * tests/test-xprintf-posix.c: Likewise.
9821         * tests/test-xvasprintf.c: Likewise.
9822         * tests/unicase/test-locale-language.c: Likewise.
9823         * tests/unicase/test-mapping-part1.h: Likewise.
9824         * tests/unicase/test-predicate-part1.h: Likewise.
9825         * tests/unicase/test-u8-casecmp.c: Likewise.
9826         * tests/unicase/test-u8-casecoll.c: Likewise.
9827         * tests/unicase/test-u8-casefold.c: Likewise.
9828         * tests/unicase/test-u8-is-cased.c: Likewise.
9829         * tests/unicase/test-u8-is-casefolded.c: Likewise.
9830         * tests/unicase/test-u8-is-lowercase.c: Likewise.
9831         * tests/unicase/test-u8-is-titlecase.c: Likewise.
9832         * tests/unicase/test-u8-is-uppercase.c: Likewise.
9833         * tests/unicase/test-u8-tolower.c: Likewise.
9834         * tests/unicase/test-u8-totitle.c: Likewise.
9835         * tests/unicase/test-u8-toupper.c: Likewise.
9836         * tests/unicase/test-u16-casecmp.c: Likewise.
9837         * tests/unicase/test-u16-casecoll.c: Likewise.
9838         * tests/unicase/test-u16-casefold.c: Likewise.
9839         * tests/unicase/test-u16-is-cased.c: Likewise.
9840         * tests/unicase/test-u16-is-casefolded.c: Likewise.
9841         * tests/unicase/test-u16-is-lowercase.c: Likewise.
9842         * tests/unicase/test-u16-is-titlecase.c: Likewise.
9843         * tests/unicase/test-u16-is-uppercase.c: Likewise.
9844         * tests/unicase/test-u16-tolower.c: Likewise.
9845         * tests/unicase/test-u16-totitle.c: Likewise.
9846         * tests/unicase/test-u16-toupper.c: Likewise.
9847         * tests/unicase/test-u32-casecmp.c: Likewise.
9848         * tests/unicase/test-u32-casecoll.c: Likewise.
9849         * tests/unicase/test-u32-casefold.c: Likewise.
9850         * tests/unicase/test-u32-is-cased.c: Likewise.
9851         * tests/unicase/test-u32-is-casefolded.c: Likewise.
9852         * tests/unicase/test-u32-is-lowercase.c: Likewise.
9853         * tests/unicase/test-u32-is-titlecase.c: Likewise.
9854         * tests/unicase/test-u32-is-uppercase.c: Likewise.
9855         * tests/unicase/test-u32-tolower.c: Likewise.
9856         * tests/unicase/test-u32-totitle.c: Likewise.
9857         * tests/unicase/test-u32-toupper.c: Likewise.
9858         * tests/unicase/test-ulc-casecmp.c: Likewise.
9859         * tests/unicase/test-ulc-casecoll.c: Likewise.
9860         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9861         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9862         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9863         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9864         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9865         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9866         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9867         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9868         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9869         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9870         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9871         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9872         * tests/unictype/test-bidi_byname.c: Likewise.
9873         * tests/unictype/test-bidi_name.c: Likewise.
9874         * tests/unictype/test-bidi_of.c: Likewise.
9875         * tests/unictype/test-bidi_test.c: Likewise.
9876         * tests/unictype/test-block_list.c: Likewise.
9877         * tests/unictype/test-block_of.c: Likewise.
9878         * tests/unictype/test-block_test.c: Likewise.
9879         * tests/unictype/test-categ_and.c: Likewise.
9880         * tests/unictype/test-categ_and_not.c: Likewise.
9881         * tests/unictype/test-categ_byname.c: Likewise.
9882         * tests/unictype/test-categ_name.c: Likewise.
9883         * tests/unictype/test-categ_none.c: Likewise.
9884         * tests/unictype/test-categ_of.c: Likewise.
9885         * tests/unictype/test-categ_or.c: Likewise.
9886         * tests/unictype/test-categ_test_withtable.c: Likewise.
9887         * tests/unictype/test-combining.c: Likewise.
9888         * tests/unictype/test-decdigit.c: Likewise.
9889         * tests/unictype/test-digit.c: Likewise.
9890         * tests/unictype/test-mirror.c: Likewise.
9891         * tests/unictype/test-numeric.c: Likewise.
9892         * tests/unictype/test-pr_byname.c: Likewise.
9893         * tests/unictype/test-pr_test.c: Likewise.
9894         * tests/unictype/test-predicate-part1.h: Likewise.
9895         * tests/unictype/test-scripts.c: Likewise.
9896         * tests/unictype/test-sy_c_ident.c: Likewise.
9897         * tests/unictype/test-sy_java_ident.c: Likewise.
9898         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
9899         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
9900         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
9901         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
9902         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
9903         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
9904         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
9905         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
9906         * tests/uninorm/test-canonical-decomposition.c: Likewise.
9907         * tests/uninorm/test-compat-decomposition.c: Likewise.
9908         * tests/uninorm/test-composition.c: Likewise.
9909         * tests/uninorm/test-decomposing-form.c: Likewise.
9910         * tests/uninorm/test-decomposition.c: Likewise.
9911         * tests/uninorm/test-u8-nfc.c: Likewise.
9912         * tests/uninorm/test-u8-nfd.c: Likewise.
9913         * tests/uninorm/test-u8-nfkc.c: Likewise.
9914         * tests/uninorm/test-u8-nfkd.c: Likewise.
9915         * tests/uninorm/test-u8-normcmp.c: Likewise.
9916         * tests/uninorm/test-u8-normcoll.c: Likewise.
9917         * tests/uninorm/test-u16-nfc.c: Likewise.
9918         * tests/uninorm/test-u16-nfd.c: Likewise.
9919         * tests/uninorm/test-u16-nfkc.c: Likewise.
9920         * tests/uninorm/test-u16-nfkd.c: Likewise.
9921         * tests/uninorm/test-u16-normcmp.c: Likewise.
9922         * tests/uninorm/test-u16-normcoll.c: Likewise.
9923         * tests/uninorm/test-u32-nfc.c: Likewise.
9924         * tests/uninorm/test-u32-nfd.c: Likewise.
9925         * tests/uninorm/test-u32-nfkc.c: Likewise.
9926         * tests/uninorm/test-u32-nfkd.c: Likewise.
9927         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9928         * tests/uninorm/test-u32-normcmp.c: Likewise.
9929         * tests/uninorm/test-u32-normcoll.c: Likewise.
9930         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
9931         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9932         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9933         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9934         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9935         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9936         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9937         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9938         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9939         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9940         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9941         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9942         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9943         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9944         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9945         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9946         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9947         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9948         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9949         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9950         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9951         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9952         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9953         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9954         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9955         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9956         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9957         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9958         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9959         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
9960         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
9961         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
9962         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
9963         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9964         * tests/uniwidth/test-u8-width.c: Likewise.
9965         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9966         * tests/uniwidth/test-u16-width.c: Likewise.
9967         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9968         * tests/uniwidth/test-u32-width.c: Likewise.
9969         * tests/uniwidth/test-uc_width.c: Likewise.
9970         * tests/uniwidth/test-uc_width2.c: Likewise.
9971         * modules/acl-tests (Files): Add tests/macros.h.
9972         * modules/areadlink-tests (Files): Likewise.
9973         * modules/areadlink-with-size-tests (Files): Likewise.
9974         * modules/areadlinkat-tests (Files): Likewise.
9975         * modules/areadlinkat-with-size-tests (Files): Likewise.
9976         * modules/argmatch-tests (Files): Likewise.
9977         * modules/argv-iter-tests (Files): Likewise.
9978         * modules/array-list-tests (Files): Likewise.
9979         * modules/array-mergesort-tests (Files): Likewise.
9980         * modules/array-oset-tests (Files): Likewise.
9981         * modules/avltree-list-tests (Files): Likewise.
9982         * modules/avltree-oset-tests (Files): Likewise.
9983         * modules/avltreehash-list-tests (Files): Likewise.
9984         * modules/base64-tests (Files): Likewise.
9985         * modules/binary-io-tests (Files): Likewise.
9986         * modules/bitrotate-tests (Files): Likewise.
9987         * modules/btowc-tests (Files): Likewise.
9988         * modules/byteswap-tests (Files): Likewise.
9989         * modules/c-ctype-tests (Files): Likewise.
9990         * modules/c-stack-tests (Files): Likewise.
9991         * modules/c-strcase-tests (Files): Likewise.
9992         * modules/c-strcasestr-tests (Files): Likewise.
9993         * modules/c-strstr-tests (Files): Likewise.
9994         * modules/canonicalize-lgpl-tests (Files): Likewise.
9995         * modules/canonicalize-tests (Files): Likewise.
9996         * modules/carray-list-tests (Files): Likewise.
9997         * modules/ceilf-tests (Files): Likewise.
9998         * modules/ceill-tests (Files): Likewise.
9999         * modules/chown-tests (Files): Likewise.
10000         * modules/cloexec-tests (Files): Likewise.
10001         * modules/copy-file-tests (Files): Likewise.
10002         * modules/count-one-bits-tests (Files): Likewise.
10003         * modules/dprintf-posix-tests (Files): Likewise.
10004         * modules/dup2-tests (Files): Likewise.
10005         * modules/dup3-tests (Files): Likewise.
10006         * modules/duplocale-tests (Files): Likewise.
10007         * modules/fbufmode-tests (Files): Likewise.
10008         * modules/fchdir-tests (Files): Likewise.
10009         * modules/fcntl-safer-tests (Files): Likewise.
10010         * modules/fcntl-tests (Files): Likewise.
10011         * modules/fdopendir-tests (Files): Likewise.
10012         * modules/fdutimensat-tests (Files): Likewise.
10013         * modules/fflush-tests (Files): Likewise.
10014         * modules/filevercmp-tests (Files): Likewise.
10015         * modules/flock-tests (Files): Likewise.
10016         * modules/floorf-tests (Files): Likewise.
10017         * modules/floorl-tests (Files): Likewise.
10018         * modules/fnmatch-tests (Files): Likewise.
10019         * modules/fopen-safer-tests (Files): Likewise.
10020         * modules/fopen-tests (Files): Likewise.
10021         * modules/fpending-tests (Files): Likewise.
10022         * modules/fprintf-posix-tests (Files): Likewise.
10023         * modules/fpurge-tests (Files): Likewise.
10024         * modules/freadable-tests (Files): Likewise.
10025         * modules/freadahead-tests (Files): Likewise.
10026         * modules/freading-tests (Files): Likewise.
10027         * modules/freadptr-tests (Files): Likewise.
10028         * modules/freadseek-tests (Files): Likewise.
10029         * modules/freopen-tests (Files): Likewise.
10030         * modules/frexp-nolibm-tests (Files): Likewise.
10031         * modules/frexp-tests (Files): Likewise.
10032         * modules/frexpl-nolibm-tests (Files): Likewise.
10033         * modules/frexpl-tests (Files): Likewise.
10034         * modules/fseek-tests (Files): Likewise.
10035         * modules/fseeko-tests (Files): Likewise.
10036         * modules/fstrcmp-tests (Files): Likewise.
10037         * modules/fsync-tests (Files): Likewise.
10038         * modules/ftell-tests (Files): Likewise.
10039         * modules/ftello-tests (Files): Likewise.
10040         * modules/func-tests (Files): Likewise.
10041         * modules/futimens-tests (Files): Likewise.
10042         * modules/fwritable-tests (Files): Likewise.
10043         * modules/fwriting-tests (Files): Likewise.
10044         * modules/getcwd-tests (Files): Likewise.
10045         * modules/getdate-tests (Files): Likewise.
10046         * modules/getdelim-tests (Files): Likewise.
10047         * modules/getdtablesize-tests (Files): Likewise.
10048         * modules/getgroups-tests (Files): Likewise.
10049         * modules/getline-tests (Files): Likewise.
10050         * modules/getndelim2-tests (Files): Likewise.
10051         * modules/glob-tests (Files): Likewise.
10052         * modules/hash-tests (Files): Likewise.
10053         * modules/i-ring-tests (Files): Likewise.
10054         * modules/iconv-tests (Files): Likewise.
10055         * modules/iconv_open-utf-tests (Files): Likewise.
10056         * modules/idpriv-drop-tests (Files): Likewise.
10057         * modules/idpriv-droptemp-tests (Files): Likewise.
10058         * modules/inet_ntop-tests (Files): Likewise.
10059         * modules/inet_pton-tests (Files): Likewise.
10060         * modules/isblank-tests (Files): Likewise.
10061         * modules/isfinite-tests (Files): Likewise.
10062         * modules/isinf-tests (Files): Likewise.
10063         * modules/isnan-tests (Files): Likewise.
10064         * modules/isnand-nolibm-tests (Files): Likewise.
10065         * modules/isnand-tests (Files): Likewise.
10066         * modules/isnanf-nolibm-tests (Files): Likewise.
10067         * modules/isnanf-tests (Files): Likewise.
10068         * modules/isnanl-nolibm-tests (Files): Likewise.
10069         * modules/isnanl-tests (Files): Likewise.
10070         * modules/lchown-tests (Files): Likewise.
10071         * modules/ldexpl-tests (Files): Likewise.
10072         * modules/link-tests (Files): Likewise.
10073         * modules/linkat-tests (Files): Likewise.
10074         * modules/linked-list-tests (Files): Likewise.
10075         * modules/linkedhash-list-tests (Files): Likewise.
10076         * modules/localename-tests (Files): Likewise.
10077         * modules/lseek-tests (Files): Likewise.
10078         * modules/lstat-tests (Files): Likewise.
10079         * modules/mbmemcasecmp-tests (Files): Likewise.
10080         * modules/mbmemcasecoll-tests (Files): Likewise.
10081         * modules/mbrtowc-tests (Files): Likewise.
10082         * modules/mbscasecmp-tests (Files): Likewise.
10083         * modules/mbscasestr-tests (Files): Likewise.
10084         * modules/mbschr-tests (Files): Likewise.
10085         * modules/mbscspn-tests (Files): Likewise.
10086         * modules/mbsinit-tests (Files): Likewise.
10087         * modules/mbsncasecmp-tests (Files): Likewise.
10088         * modules/mbsnrtowcs-tests (Files): Likewise.
10089         * modules/mbspbrk-tests (Files): Likewise.
10090         * modules/mbspcasecmp-tests (Files): Likewise.
10091         * modules/mbsrchr-tests (Files): Likewise.
10092         * modules/mbsrtowcs-tests (Files): Likewise.
10093         * modules/mbsspn-tests (Files): Likewise.
10094         * modules/mbsstr-tests (Files): Likewise.
10095         * modules/memchr-tests (Files): Likewise.
10096         * modules/memchr2-tests (Files): Likewise.
10097         * modules/memcmp-tests (Files): Likewise.
10098         * modules/memmem-tests (Files): Likewise.
10099         * modules/memrchr-tests (Files): Likewise.
10100         * modules/mkdir-tests (Files): Likewise.
10101         * modules/mkfifo-tests (Files): Likewise.
10102         * modules/mkfifoat-tests (Files): Likewise.
10103         * modules/mknod-tests (Files): Likewise.
10104         * modules/nanosleep-tests (Files): Likewise.
10105         * modules/nl_langinfo-tests (Files): Likewise.
10106         * modules/obstack-printf-tests (Files): Likewise.
10107         * modules/open-tests (Files): Likewise.
10108         * modules/openat-tests (Files): Likewise.
10109         * modules/pipe-filter-gi-tests (Files): Likewise.
10110         * modules/pipe-filter-ii-tests (Files): Likewise.
10111         * modules/pipe2-tests (Files): Likewise.
10112         * modules/popen-safer-tests (Files): Likewise.
10113         * modules/popen-tests (Files): Likewise.
10114         * modules/posixtm-tests (Files): Likewise.
10115         * modules/pread-tests (Files): Likewise.
10116         * modules/printf-frexp-tests (Files): Likewise.
10117         * modules/printf-frexpl-tests (Files): Likewise.
10118         * modules/printf-posix-tests (Files): Likewise.
10119         * modules/priv-set-tests (Files): Likewise.
10120         * modules/quotearg-tests (Files): Likewise.
10121         * modules/random_r-tests (Files): Likewise.
10122         * modules/rawmemchr-tests (Files): Likewise.
10123         * modules/rbtree-list-tests (Files): Likewise.
10124         * modules/rbtree-oset-tests (Files): Likewise.
10125         * modules/rbtreehash-list-tests (Files): Likewise.
10126         * modules/readlink-tests (Files): Likewise.
10127         * modules/remove-tests (Files): Likewise.
10128         * modules/rename-tests (Files): Likewise.
10129         * modules/renameat-tests (Files): Likewise.
10130         * modules/rmdir-tests (Files): Likewise.
10131         * modules/round-tests (Files): Likewise.
10132         * modules/roundf-tests (Files): Likewise.
10133         * modules/roundl-tests (Files): Likewise.
10134         * modules/safe-alloc-tests (Files): Likewise.
10135         * modules/setenv-tests (Files): Likewise.
10136         * modules/sigaction-tests (Files): Likewise.
10137         * modules/signbit-tests (Files): Likewise.
10138         * modules/sleep-tests (Files): Likewise.
10139         * modules/snprintf-posix-tests (Files): Likewise.
10140         * modules/snprintf-tests (Files): Likewise.
10141         * modules/sprintf-posix-tests (Files): Likewise.
10142         * modules/stat-tests (Files): Likewise.
10143         * modules/stat-time-tests (Files): Likewise.
10144         * modules/strcasestr-tests (Files): Likewise.
10145         * modules/strchrnul-tests (Files): Likewise.
10146         * modules/strerror-tests (Files): Likewise.
10147         * modules/striconv-tests (Files): Likewise.
10148         * modules/striconveh-tests (Files): Likewise.
10149         * modules/striconveha-tests (Files): Likewise.
10150         * modules/strsignal-tests (Files): Likewise.
10151         * modules/strstr-tests (Files): Likewise.
10152         * modules/strtod-tests (Files): Likewise.
10153         * modules/strverscmp-tests (Files): Likewise.
10154         * modules/symlink-tests (Files): Likewise.
10155         * modules/symlinkat-tests (Files): Likewise.
10156         * modules/trunc-tests (Files): Likewise.
10157         * modules/truncf-tests (Files): Likewise.
10158         * modules/truncl-tests (Files): Likewise.
10159         * modules/uname-tests (Files): Likewise.
10160         * modules/unicase/cased-tests (Files): Likewise.
10161         * modules/unicase/ignorable-tests (Files): Likewise.
10162         * modules/unicase/locale-language-tests (Files): Likewise.
10163         * modules/unicase/tolower-tests (Files): Likewise.
10164         * modules/unicase/totitle-tests (Files): Likewise.
10165         * modules/unicase/toupper-tests (Files): Likewise.
10166         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10167         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10168         * modules/unicase/u8-casefold-tests (Files): Likewise.
10169         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10170         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10171         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10172         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10173         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10174         * modules/unicase/u8-tolower-tests (Files): Likewise.
10175         * modules/unicase/u8-totitle-tests (Files): Likewise.
10176         * modules/unicase/u8-toupper-tests (Files): Likewise.
10177         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10178         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10179         * modules/unicase/u16-casefold-tests (Files): Likewise.
10180         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10181         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10182         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10183         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10184         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10185         * modules/unicase/u16-tolower-tests (Files): Likewise.
10186         * modules/unicase/u16-totitle-tests (Files): Likewise.
10187         * modules/unicase/u16-toupper-tests (Files): Likewise.
10188         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10189         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10190         * modules/unicase/u32-casefold-tests (Files): Likewise.
10191         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10192         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10193         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10194         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10195         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10196         * modules/unicase/u32-tolower-tests (Files): Likewise.
10197         * modules/unicase/u32-totitle-tests (Files): Likewise.
10198         * modules/unicase/u32-toupper-tests (Files): Likewise.
10199         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10200         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10201         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10202         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10203         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10204         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10205         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10206         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10207         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10208         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10209         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10210         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10211         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10212         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10213         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10214         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10215         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10216         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10217         * modules/unictype/block-list-tests (Files): Likewise.
10218         * modules/unictype/block-of-tests (Files): Likewise.
10219         * modules/unictype/block-test-tests (Files): Likewise.
10220         * modules/unictype/category-C-tests (Files): Likewise.
10221         * modules/unictype/category-Cc-tests (Files): Likewise.
10222         * modules/unictype/category-Cf-tests (Files): Likewise.
10223         * modules/unictype/category-Cn-tests (Files): Likewise.
10224         * modules/unictype/category-Co-tests (Files): Likewise.
10225         * modules/unictype/category-Cs-tests (Files): Likewise.
10226         * modules/unictype/category-L-tests (Files): Likewise.
10227         * modules/unictype/category-Ll-tests (Files): Likewise.
10228         * modules/unictype/category-Lm-tests (Files): Likewise.
10229         * modules/unictype/category-Lo-tests (Files): Likewise.
10230         * modules/unictype/category-Lt-tests (Files): Likewise.
10231         * modules/unictype/category-Lu-tests (Files): Likewise.
10232         * modules/unictype/category-M-tests (Files): Likewise.
10233         * modules/unictype/category-Mc-tests (Files): Likewise.
10234         * modules/unictype/category-Me-tests (Files): Likewise.
10235         * modules/unictype/category-Mn-tests (Files): Likewise.
10236         * modules/unictype/category-N-tests (Files): Likewise.
10237         * modules/unictype/category-Nd-tests (Files): Likewise.
10238         * modules/unictype/category-Nl-tests (Files): Likewise.
10239         * modules/unictype/category-No-tests (Files): Likewise.
10240         * modules/unictype/category-P-tests (Files): Likewise.
10241         * modules/unictype/category-Pc-tests (Files): Likewise.
10242         * modules/unictype/category-Pd-tests (Files): Likewise.
10243         * modules/unictype/category-Pe-tests (Files): Likewise.
10244         * modules/unictype/category-Pf-tests (Files): Likewise.
10245         * modules/unictype/category-Pi-tests (Files): Likewise.
10246         * modules/unictype/category-Po-tests (Files): Likewise.
10247         * modules/unictype/category-Ps-tests (Files): Likewise.
10248         * modules/unictype/category-S-tests (Files): Likewise.
10249         * modules/unictype/category-Sc-tests (Files): Likewise.
10250         * modules/unictype/category-Sk-tests (Files): Likewise.
10251         * modules/unictype/category-Sm-tests (Files): Likewise.
10252         * modules/unictype/category-So-tests (Files): Likewise.
10253         * modules/unictype/category-Z-tests (Files): Likewise.
10254         * modules/unictype/category-Zl-tests (Files): Likewise.
10255         * modules/unictype/category-Zp-tests (Files): Likewise.
10256         * modules/unictype/category-Zs-tests (Files): Likewise.
10257         * modules/unictype/category-and-not-tests (Files): Likewise.
10258         * modules/unictype/category-and-tests (Files): Likewise.
10259         * modules/unictype/category-byname-tests (Files): Likewise.
10260         * modules/unictype/category-name-tests (Files): Likewise.
10261         * modules/unictype/category-none-tests (Files): Likewise.
10262         * modules/unictype/category-of-tests (Files): Likewise.
10263         * modules/unictype/category-or-tests (Files): Likewise.
10264         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10265         * modules/unictype/combining-class-tests (Files): Likewise.
10266         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10267         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10268         * modules/unictype/ctype-blank-tests (Files): Likewise.
10269         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10270         * modules/unictype/ctype-digit-tests (Files): Likewise.
10271         * modules/unictype/ctype-graph-tests (Files): Likewise.
10272         * modules/unictype/ctype-lower-tests (Files): Likewise.
10273         * modules/unictype/ctype-print-tests (Files): Likewise.
10274         * modules/unictype/ctype-punct-tests (Files): Likewise.
10275         * modules/unictype/ctype-space-tests (Files): Likewise.
10276         * modules/unictype/ctype-upper-tests (Files): Likewise.
10277         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10278         * modules/unictype/decimal-digit-tests (Files): Likewise.
10279         * modules/unictype/digit-tests (Files): Likewise.
10280         * modules/unictype/mirror-tests (Files): Likewise.
10281         * modules/unictype/numeric-tests (Files): Likewise.
10282         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10283         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10284         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10285         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10286         Likewise.
10287         * modules/unictype/property-bidi-block-separator-tests (Files):
10288         Likewise.
10289         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10290         Likewise.
10291         * modules/unictype/property-bidi-common-separator-tests (Files):
10292         Likewise.
10293         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10294         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10295         Likewise.
10296         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10297         Likewise.
10298         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10299         Likewise.
10300         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10301         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10302         Likewise.
10303         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10304         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10305         Likewise.
10306         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10307         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10308         * modules/unictype/property-bidi-segment-separator-tests (Files):
10309         Likewise.
10310         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10311         * modules/unictype/property-byname-tests (Files): Likewise.
10312         * modules/unictype/property-combining-tests (Files): Likewise.
10313         * modules/unictype/property-composite-tests (Files): Likewise.
10314         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10315         * modules/unictype/property-dash-tests (Files): Likewise.
10316         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10317         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10318         Likewise.
10319         * modules/unictype/property-deprecated-tests (Files): Likewise.
10320         * modules/unictype/property-diacritic-tests (Files): Likewise.
10321         * modules/unictype/property-extender-tests (Files): Likewise.
10322         * modules/unictype/property-format-control-tests (Files): Likewise.
10323         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10324         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10325         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10326         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10327         * modules/unictype/property-hyphen-tests (Files): Likewise.
10328         * modules/unictype/property-id-continue-tests (Files): Likewise.
10329         * modules/unictype/property-id-start-tests (Files): Likewise.
10330         * modules/unictype/property-ideographic-tests (Files): Likewise.
10331         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10332         * modules/unictype/property-ids-trinary-operator-tests (Files):
10333         Likewise.
10334         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10335         * modules/unictype/property-iso-control-tests (Files): Likewise.
10336         * modules/unictype/property-join-control-tests (Files): Likewise.
10337         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10338         * modules/unictype/property-line-separator-tests (Files): Likewise.
10339         * modules/unictype/property-logical-order-exception-tests (Files):
10340         Likewise.
10341         * modules/unictype/property-lowercase-tests (Files): Likewise.
10342         * modules/unictype/property-math-tests (Files): Likewise.
10343         * modules/unictype/property-non-break-tests (Files): Likewise.
10344         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10345         * modules/unictype/property-numeric-tests (Files): Likewise.
10346         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10347         * modules/unictype/property-other-default-ignorable-code-point-tests
10348         (Files): Likewise.
10349         * modules/unictype/property-other-grapheme-extend-tests (Files):
10350         Likewise.
10351         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10352         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10353         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10354         * modules/unictype/property-other-math-tests (Files): Likewise.
10355         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10356         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10357         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10358         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10359         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10360         * modules/unictype/property-private-use-tests (Files): Likewise.
10361         * modules/unictype/property-punctuation-tests (Files): Likewise.
10362         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10363         * modules/unictype/property-radical-tests (Files): Likewise.
10364         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10365         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10366         * modules/unictype/property-space-tests (Files): Likewise.
10367         * modules/unictype/property-terminal-punctuation-tests (Files):
10368         Likewise.
10369         * modules/unictype/property-test-tests (Files): Likewise.
10370         * modules/unictype/property-titlecase-tests (Files): Likewise.
10371         * modules/unictype/property-unassigned-code-value-tests (Files):
10372         Likewise.
10373         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10374         * modules/unictype/property-uppercase-tests (Files): Likewise.
10375         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10376         * modules/unictype/property-white-space-tests (Files): Likewise.
10377         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10378         * modules/unictype/property-xid-start-tests (Files): Likewise.
10379         * modules/unictype/property-zero-width-tests (Files): Likewise.
10380         * modules/unictype/scripts-tests (Files): Likewise.
10381         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10382         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10383         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10384         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10385         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10386         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10387         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10388         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10389         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10390         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10391         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10392         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10393         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10394         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10395         * modules/uninorm/composition-tests (Files): Likewise.
10396         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10397         * modules/uninorm/decomposition-tests (Files): Likewise.
10398         * modules/uninorm/filter-tests (Files): Likewise.
10399         * modules/uninorm/nfc-tests (Files): Likewise.
10400         * modules/uninorm/nfd-tests (Files): Likewise.
10401         * modules/uninorm/nfkc-tests (Files): Likewise.
10402         * modules/uninorm/nfkd-tests (Files): Likewise.
10403         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10404         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10405         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10406         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10407         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10408         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10409         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10410         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10411         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10412         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10413         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10414         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10415         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10416         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10417         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10418         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10419         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10420         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10421         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10422         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10423         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10424         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10425         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10426         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10427         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10428         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10429         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10430         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10431         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10432         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10433         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10434         * modules/uniwidth/u8-width-tests (Files): Likewise.
10435         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10436         * modules/uniwidth/u16-width-tests (Files): Likewise.
10437         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10438         * modules/uniwidth/u32-width-tests (Files): Likewise.
10439         * modules/uniwidth/width-tests (Files): Likewise.
10440         * modules/unlink-tests (Files): Likewise.
10441         * modules/unsetenv-tests (Files): Likewise.
10442         * modules/usleep-tests (Files): Likewise.
10443         * modules/utimens-tests (Files): Likewise.
10444         * modules/utimensat-tests (Files): Likewise.
10445         * modules/vasnprintf-posix-tests (Files): Likewise.
10446         * modules/vasnprintf-tests (Files): Likewise.
10447         * modules/vasprintf-posix-tests (Files): Likewise.
10448         * modules/vasprintf-tests (Files): Likewise.
10449         * modules/vdprintf-posix-tests (Files): Likewise.
10450         * modules/vfprintf-posix-tests (Files): Likewise.
10451         * modules/vprintf-posix-tests (Files): Likewise.
10452         * modules/vsnprintf-posix-tests (Files): Likewise.
10453         * modules/vsnprintf-tests (Files): Likewise.
10454         * modules/vsprintf-posix-tests (Files): Likewise.
10455         * modules/wcrtomb-tests (Files): Likewise.
10456         * modules/wcsnrtombs-tests (Files): Likewise.
10457         * modules/wcsrtombs-tests (Files): Likewise.
10458         * modules/wctype-tests (Files): Likewise.
10459         * modules/wcwidth-tests (Files): Likewise.
10460         * modules/xmemdup0-tests (Files): Likewise.
10461         * modules/xprintf-posix-tests (Files): Likewise.
10462         * modules/xvasprintf-tests (Files): Likewise.
10463
10464 2009-12-24  Eric Blake  <ebb9@byu.net>
10465
10466         test-nanosleep: fix typo
10467         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10468         patch.
10469         Reported by Bruno Haible.
10470
10471 2009-12-24  Bruno Haible  <bruno@clisp.org>
10472
10473         Reduce namespace pollution on glibc systems.
10474         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10475         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10476         systems.
10477         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10478         <getopt.h> on glibc systems.
10479         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10480         systems.
10481         * lib/fcntl.c: Include <unistd.h> here instead.
10482
10483 2009-12-24  Bruno Haible  <bruno@clisp.org>
10484
10485         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10486
10487 2009-12-24  Eric Blake  <ebb9@byu.net>
10488
10489         tests: add signature checks
10490         * tests/signature.h (SIGNATURE_CHECK): New file.
10491         * modules/atexit-tests (Files): Use it.
10492         * modules/btowc-tests (Files): Likewise.
10493         * modules/canonicalize-lgpl-tests (Files): Likewise.
10494         * modules/ceilf-tests (Files): Likewise.
10495         * modules/ceill-tests (Files): Likewise.
10496         * modules/chown-tests (Files): Likewise.
10497         * modules/dprintf-posix-tests (Files): Likewise.
10498         * modules/dup2-tests (Files): Likewise.
10499         * modules/dup3-tests (Files): Likewise.
10500         * modules/duplocale-tests (Files): Likewise.
10501         * modules/fchdir-tests (Files): Likewise.
10502         * modules/fcntl-tests (Files): Likewise.
10503         * modules/fdopendir-tests (Files): Likewise.
10504         * modules/fflush-tests (Files): Likewise.
10505         * modules/flock-tests (Files): Likewise.
10506         * modules/floorf-tests (Files): Likewise.
10507         * modules/floorl-tests (Files): Likewise.
10508         * modules/fnmatch-tests (Files): Likewise.
10509         * modules/fopen-tests (Files): Likewise.
10510         * modules/fprintf-posix-tests (Files): Likewise.
10511         * modules/freopen-tests (Files): Likewise.
10512         * modules/frexp-nolibm-tests (Files): Likewise.
10513         * modules/frexp-tests (Files): Likewise.
10514         * modules/frexpl-nolibm-tests (Files): Likewise.
10515         * modules/frexpl-tests (Files): Likewise.
10516         * modules/fseek-tests (Files): Likewise.
10517         * modules/fseeko-tests (Files): Likewise.
10518         * modules/fsync-tests (Files): Likewise.
10519         * modules/ftell-tests (Files): Likewise.
10520         * modules/ftello-tests (Files): Likewise.
10521         * modules/futimens-tests (Files): Likewise.
10522         * modules/getaddrinfo-tests (Files): Likewise.
10523         * modules/getcwd-tests (Files): Likewise.
10524         * modules/getdelim-tests (Files): Likewise.
10525         * modules/getdtablesize-tests (Files): Likewise.
10526         * modules/getgroups-tests (Files): Likewise.
10527         * modules/gethostname-tests (Files): Likewise.
10528         * modules/getline-tests (Files): Likewise.
10529         * modules/getopt-posix-tests (Files): Likewise.
10530         * modules/gettimeofday-tests (Files): Likewise.
10531         * modules/glob-tests (Files): Likewise.
10532         * modules/iconv-tests (Files): Likewise.
10533         * modules/inet_ntop-tests (Files): Likewise.
10534         * modules/inet_pton-tests (Files): Likewise.
10535         * modules/isblank-tests (Files): Likewise.
10536         * modules/lchown-tests (Files): Likewise.
10537         * modules/ldexpl-tests (Files): Likewise.
10538         * modules/link-tests (Files): Likewise.
10539         * modules/linkat-tests (Files): Likewise.
10540         * modules/lseek-tests (Files): Likewise.
10541         * modules/lstat-tests (Files): Likewise.
10542         * modules/mbrtowc-tests (Files): Likewise.
10543         * modules/mbsinit-tests (Files): Likewise.
10544         * modules/mbsnrtowcs-tests (Files): Likewise.
10545         * modules/mbsrtowcs-tests (Files): Likewise.
10546         * modules/memchr-tests (Files): Likewise.
10547         * modules/memcmp-tests (Files): Likewise.
10548         * modules/memmem-tests (Files): Likewise.
10549         * modules/memrchr-tests (Files): Likewise.
10550         * modules/mkdir-tests (Files): Likewise.
10551         * modules/mkfifo-tests (Files): Likewise.
10552         * modules/mkfifoat-tests (Files): Likewise.
10553         * modules/mknod-tests (Files): Likewise.
10554         * modules/nanosleep-tests (Files): Likewise.
10555         * modules/nl_langinfo-tests (Files): Likewise.
10556         * modules/obstack-printf-tests (Files): Likewise.
10557         * modules/open-tests (Files): Likewise.
10558         * modules/openat-tests (Files): Likewise.
10559         * modules/perror-tests (Files): Likewise.
10560         * modules/pipe2-tests (Files): Likewise.
10561         * modules/poll-tests (Files): Likewise.
10562         * modules/popen-tests (Files): Likewise.
10563         * modules/posix_spawn-tests (Files): Likewise.
10564         * modules/posix_spawnp-tests (Files): Likewise.
10565         * modules/pread-tests (Files): Likewise.
10566         * modules/printf-posix-tests (Files): Likewise.
10567         * modules/pty-tests (Files): Likewise.
10568         * modules/random_r-tests (Files): Likewise.
10569         * modules/rawmemchr-tests (Files): Likewise.
10570         * modules/readlink-tests (Files): Likewise.
10571         * modules/remove-tests (Files): Likewise.
10572         * modules/rename-tests (Files): Likewise.
10573         * modules/renameat-tests (Files): Likewise.
10574         * modules/rmdir-tests (Files): Likewise.
10575         * modules/round-tests (Files): Likewise.
10576         * modules/roundf-tests (Files): Likewise.
10577         * modules/roundl-tests (Files): Likewise.
10578         * modules/select-tests (Files): Likewise.
10579         * modules/setenv-tests (Files): Likewise.
10580         * modules/sigaction-tests (Files): Likewise.
10581         * modules/sleep-tests (Files): Likewise.
10582         * modules/snprintf-posix-tests (Files): Likewise.
10583         * modules/snprintf-tests (Files): Likewise.
10584         * modules/sprintf-posix-tests (Files): Likewise.
10585         * modules/stat-tests (Files): Likewise.
10586         * modules/strcasestr-tests (Files): Likewise.
10587         * modules/strchrnul-tests (Files): Likewise.
10588         * modules/strerror-tests (Files): Likewise.
10589         * modules/strsignal-tests (Files): Likewise.
10590         * modules/strstr-tests (Files): Likewise.
10591         * modules/strtod-tests (Files): Likewise.
10592         * modules/strverscmp-tests (Files): Likewise.
10593         * modules/symlink-tests (Files): Likewise.
10594         * modules/symlinkat-tests (Files): Likewise.
10595         * modules/times-tests (Files): Likewise.
10596         * modules/trunc-tests (Files): Likewise.
10597         * modules/truncf-tests (Files): Likewise.
10598         * modules/truncl-tests (Files): Likewise.
10599         * modules/tsearch-tests (Files): Likewise.
10600         * modules/uname-tests (Files): Likewise.
10601         * modules/unlink-tests (Files): Likewise.
10602         * modules/unsetenv-tests (Files): Likewise.
10603         * modules/usleep-tests (Files): Likewise.
10604         * modules/utimensat-tests (Files): Likewise.
10605         * modules/vasprintf-tests (Files): Likewise.
10606         * modules/vdprintf-posix-tests (Files): Likewise.
10607         * modules/vfprintf-posix-tests (Files): Likewise.
10608         * modules/vprintf-posix-tests (Files): Likewise.
10609         * modules/vsnprintf-posix-tests (Files): Likewise.
10610         * modules/vsnprintf-tests (Files): Likewise.
10611         * modules/vsprintf-posix-tests (Files): Likewise.
10612         * modules/wcrtomb-tests (Files): Likewise.
10613         * modules/wcsnrtombs-tests (Files): Likewise.
10614         * modules/wcsrtombs-tests (Files): Likewise.
10615         * modules/wcwidth-tests (Files): Likewise.
10616         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
10617         * tests/test-isinf.c (isinf): Likewise.
10618         * tests/test-isnan.c (isnan): Likewise.
10619         * tests/test-signbit.c (signbit): Likewise.
10620         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
10621         declaration, either as macro or with correct signature.
10622         (select): Ensure function under test is declared with correct
10623         signature in correct header.
10624         * tests/test-atexit.c (atexit): Likewise.
10625         * tests/test-btowc.c (btowc): Likewise.
10626         * tests/test-canonicalize-lgpl.c (realpath)
10627         (canonicalize_file_name): Likewise.
10628         * tests/test-ceilf1.c (ceilf): Likewise.
10629         * tests/test-ceill.c (ceill): Likewise.
10630         * tests/test-chown.c (chown): Likewise.
10631         * tests/test-dprintf-posix.c (dprintf): Likewise.
10632         * tests/test-dup2.c (dup2): Likewise.
10633         * tests/test-dup3.c (dup3): Likewise.
10634         * tests/test-duplocale.c (duplocale): Likewise.
10635         * tests/test-fchdir.c (fchdir): Likewise.
10636         * tests/test-fchownat.c (fchownat): Likewise.
10637         * tests/test-fcntl.c (fcntl): Likewise.
10638         * tests/test-fdopendir.c (fdopendir): Likewise.
10639         * tests/test-fflush.c (fflush): Likewise.
10640         * tests/test-flock.c (flock): Likewise.
10641         * tests/test-floorf1.c (floorf): Likewise.
10642         * tests/test-floorl.c (floorl): Likewise.
10643         * tests/test-fnmatch.c (fnmatch): Likewise.
10644         * tests/test-fopen.c (fopen): Likewise.
10645         * tests/test-fprintf-posix.c (fprintf): Likewise.
10646         * tests/test-freopen.c (freopen): Likewise.
10647         * tests/test-frexp.c (frexp): Likewise.
10648         * tests/test-frexpl.c (frexpl): Likewise.
10649         * tests/test-fseek.c (fseek): Likewise.
10650         * tests/test-fseeko.c (fseeko): Likewise.
10651         * tests/test-fstatat.c (fstatat): Likewise.
10652         * tests/test-fsync.c (fsync): Likewise.
10653         * tests/test-ftell.c (ftell): Likewise.
10654         * tests/test-ftello.c (ftello): Likewise.
10655         * tests/test-futimens.c (futimens): Likewise.
10656         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
10657         (gai_strerror): Likewise.
10658         * tests/test-getcwd.c (getcwd): Likewise.
10659         * tests/test-getdelim.c (getdelim): Likewise.
10660         * tests/test-getdtablesize.c (getdtablesize): Likewise.
10661         * tests/test-getgroups.c (getgroups): Likewise.
10662         * tests/test-gethostname.c (gethostname): Likewise.
10663         * tests/test-getline.c (getline): Likewise.
10664         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
10665         Likewise.
10666         * tests/test-gettimeofday.c (gettimeofday): Likewise.
10667         * tests/test-glob.c (glob, globfree): Likewise.
10668         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
10669         * tests/test-inet_ntop.c (inet_ntop): Likewise.
10670         * tests/test-inet_pton.c (inet_pton): Likewise.
10671         * tests/test-isblank.c (isblank): Likewise.
10672         * tests/test-lchown.c (lchown): Likewise.
10673         * tests/test-ldexpl.c (ldexpl): Likewise.
10674         * tests/test-link.c (link): Likewise.
10675         * tests/test-linkat.c (linkat): Likewise.
10676         * tests/test-lseek.c (lseek): Likewise.
10677         * tests/test-lstat.c (lstat): Likewise.
10678         * tests/test-mbrtowc.c (mbrtowc): Likewise.
10679         * tests/test-mbsinit.c (mbsinit): Likewise.
10680         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
10681         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
10682         * tests/test-memchr.c (memchr): Likewise.
10683         * tests/test-memcmp.c (memcmp): Likewise.
10684         * tests/test-memmem.c (memmem): Likewise.
10685         * tests/test-memrchr.c (memrchr): Likewise.
10686         * tests/test-mkdir.c (mkdir): Likewise.
10687         * tests/test-mkdirat.c (mkdirat): Likewise.
10688         * tests/test-mkfifo.c (mkfifo): Likewise.
10689         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
10690         * tests/test-mknod.c (mknod): Likewise.
10691         * tests/test-nanosleep.c (nanosleep): Likewise.
10692         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
10693         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
10694         Likewise.
10695         * tests/test-open.c (open): Likewise.
10696         * tests/test-openat.c (openat): Likewise.
10697         * tests/test-perror.c (perror): Likewise.
10698         * tests/test-pipe2.c (pipe2): Likewise.
10699         * tests/test-poll.c (poll): Likewise.
10700         * tests/test-popen.c (popen, pclose): Likewise.
10701         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
10702         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
10703         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
10704         (posix_spawn_file_actions_destroy)
10705         (posix_spawn_file_actions_addclose)
10706         (posix_spawn_file_actions_addopen)
10707         (posix_spawn_file_actions_adddup2): Likewise.
10708         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
10709         * tests/test-pread.c (pread): Likewise.
10710         * tests/test-printf-posix.c (printf): Likewise.
10711         * tests/test-pty.c (openpty, forkpty): Likewise.
10712         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
10713         (random_r): Likewise.
10714         * tests/test-rawmemchr.c (rawmemchr): Likewise.
10715         * tests/test-readlink.c (readlink): Likewise.
10716         * tests/test-remove.c (remove): Likewise.
10717         * tests/test-rename.c (rename): Likewise.
10718         * tests/test-renameat.c (renameat): Likewise.
10719         * tests/test-rmdir.c (rmdir): Likewise.
10720         * tests/test-round1.c (round): Likewise.
10721         * tests/test-roundf1.c (roundf): Likewise.
10722         * tests/test-roundl.c (roundl): Likewise.
10723         * tests/test-setenv.c (setenv): Likewise.
10724         * tests/test-sigaction.c (sigaction): Likewise.
10725         * tests/test-sleep.c (sleep): Likewise.
10726         * tests/test-snprintf.c (snprintf): Likewise.
10727         * tests/test-sprintf-posix.c (sprintf): Likewise.
10728         * tests/test-stat.c (stat): Likewise.
10729         * tests/test-stpncpy.c (stpncpy): Likewise.
10730         * tests/test-strcasestr.c (strcasestr): Likewise.
10731         * tests/test-strchrnul.c (strchrnul): Likewise.
10732         * tests/test-strerror.c (strerror): Likewise.
10733         * tests/test-strsignal.c (strsignal): Likewise.
10734         * tests/test-strstr.c (strstr): Likewise.
10735         * tests/test-strtod.c (strtod): Likewise.
10736         * tests/test-strverscmp.c (strverscmp): Likewise.
10737         * tests/test-symlink.c (symlink): Likewise.
10738         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
10739         * tests/test-times.c (times): Likewise.
10740         * tests/test-trunc1.c (trunc): Likewise.
10741         * tests/test-truncf1.c (truncf): Likewise.
10742         * tests/test-truncl.c (truncl): Likewise.
10743         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
10744         Likewise.
10745         * tests/test-uname.c (uname): Likewise.
10746         * tests/test-unlink.c (unlink): Likewise.
10747         * tests/test-unlinkat.c (unlinkat): Likewise.
10748         * tests/test-unsetenv.c (unsetenv): Likewise.
10749         * tests/test-usleep.c (usleep): Likewise.
10750         * tests/test-utimensat.c (utimensat): Likewise.
10751         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
10752         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
10753         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
10754         * tests/test-vprintf-posix.c (vprintf): Likewise.
10755         * tests/test-vsnprintf.c (vsnprintf): Likewise.
10756         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
10757         * tests/test-wcrtomb.c (wcrtomb): Likewise.
10758         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
10759         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
10760         * tests/test-wcwidth.c (wcwidth): Likewise.
10761
10762         build: pull in conditional headers during GNULIB_POSIXCHECK
10763         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
10764         definitions from any conditionally-included headers.
10765         * lib/stdlib.in.h (includes): Likewise.
10766         * lib/unistd.in.h (includes): Likewise.
10767
10768 2009-12-24  Bruno Haible  <bruno@clisp.org>
10769
10770         * tests/test-argv-iter.c: Include header file being tested immediately
10771         after config.h.
10772         * tests/test-base64.c: Likewise.
10773         * tests/test-flock.c: Likewise.
10774         * tests/test-fsync.c: Likewise.
10775         * tests/test-getdate.c: Likewise.
10776         * tests/test-getndelim2.c: Likewise.
10777         * tests/test-isfinite.c: Likewise.
10778         * tests/test-isinf.c: Likewise.
10779         * tests/test-strerror.c: Likewise.
10780         * tests/test-strsignal.c: Likewise.
10781
10782 2009-12-23  Eric Blake  <ebb9@byu.net>
10783
10784         unistd: work around cygwin bug
10785         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
10786         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
10787         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10788
10789 2009-12-23  Bruno Haible  <bruno@clisp.org>
10790
10791         localename: More tests.
10792         * tests/test-localename.c (SIZEOF): New macro.
10793         (categories): New variable.
10794         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
10795         test_locale_name_default): Add test w.r.t. thread locale.
10796         (test_locale_name_thread): New function.
10797         (main): Invoke it.
10798
10799         localename: Make aware of thread locale.
10800         * lib/localename.h (gl_locale_name_thread): New declaration.
10801         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
10802         behaviour with respect to thread locale.
10803         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
10804         <langinfo.h>, glthread/lock.h.
10805         (SIZE_BITS): New macro.
10806         (string_hash): New function.
10807         (struct hash_node): New type.
10808         (HASH_TABLE_SIZE): New macro.
10809         (struniq_hash_table, struniq_lock): New variables.
10810         (struniq): New function.
10811         (gl_locale_name_thread): New function.
10812         (gl_locale_name): Invoke it.
10813         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
10814         * modules/localename (Depends-on): Add lock.
10815         Reported by Mike Gran <spk121@yahoo.com>.
10816
10817 2009-12-23  Eric Blake  <ebb9@byu.net>
10818
10819         va-args: new module
10820         * modules/va-args: New file.
10821         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
10822         * MODULES.html.sh (Core language properties): Mention it.
10823
10824         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
10825         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
10826         named alias for __attribute__((__unused__)).
10827         * lib/chown.c: Update client.
10828         * lib/fchmodat.c: Likewise.
10829         * lib/fts.c: Likewise.
10830         * lib/getdate.y: Likewise.
10831         * lib/getgroups.c: Likewise.
10832         * lib/getopt.c: Likewise.
10833         * lib/getugroups.c: Likewise.
10834         * lib/mkdir.c: Likewise.
10835         * lib/mkfifo.c: Likewise.
10836         * lib/mkfifoat.c: Likewise.
10837         * lib/mknod.c: Likewise.
10838         * lib/mknodat.c: Likewise.
10839         * lib/readlink.c: Likewise.
10840         * lib/se-context.in.h: Likewise.
10841         * lib/se-selinux.in.h: Likewise.
10842         * lib/sockets.c: Likewise.
10843         * lib/symlink.c: Likewise.
10844         * lib/symlinkat.c: Likewise.
10845         * lib/unicodeio.c: Likewise.
10846         * lib/unistr.h: Likewise.
10847         * tests/test-areadlink.c: Likewise.
10848         * tests/test-areadlinkat.c: Likewise.
10849         * tests/test-filenamecat.c: Likewise.
10850         * tests/test-fseeko.c: Likewise.
10851         * tests/test-ftello.c: Likewise.
10852         * tests/test-getdate.c: Likewise.
10853         * tests/test-getgroups.c: Likewise.
10854         * tests/test-gethostname.c: Likewise.
10855         * tests/test-quotearg.c: Likewise.
10856         * tests/test-version-etc.c: Likewise.
10857         * tests/test-xalloc-die.c: Likewise.
10858         * tests/test-xfprintf-posix.c: Likewise.
10859         * tests/test-xprintf-posix.c: Likewise.
10860         * tests/test-xvasprintf.c: Likewise.
10861
10862         tests: avoid compiler warnings
10863         * tests/test-fcntl.c (main): Delete unused parameters.
10864         * tests/test-freopen-safer.c (main): Likewise.
10865         * tests/test-xalloc-die.c (main): Mark unused parameters.
10866         * tests/test-fseeko.c (main): Likewise.
10867         * tests/test-ftello.c (main): Likewise.
10868         * tests/test-nanosleep.c (main): Avoid declaration warning.
10869         * tests/test-sleep.c (main): Likewise.
10870         * tests/test-unsetenv.c (main): Silence warning about string
10871         literal.
10872         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10873
10874 2009-12-23  Bruno Haible  <bruno@clisp.org>
10875
10876         * tests/test-localename.c (test_locale_name): New function, extracted
10877         from main. Also test mixed situations.
10878         (test_locale_name_posix, test_locale_name_environ,
10879         test_locale_name_default): New functions.
10880         (main): Invoke them all.
10881         * modules/localename-tests (configure.ac): Test for newlocale.
10882
10883 2009-12-23  Bruno Haible  <bruno@clisp.org>
10884
10885         unistd: Ensure getcwd gets declared before being overridden.
10886         * lib/unistd.in.h: Conditionally include <io.h>.
10887
10888 2009-12-22  Bruno Haible  <bruno@clisp.org>
10889
10890         wchar: Diagnose broken combination of glibc and gcc versions and flags.
10891         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
10892         (gl_WCHAR_H): Invoke it.
10893         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
10894         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
10895         Reported by Karl Berry <karl@freefriends.org>.
10896
10897 2009-12-22  Eric Blake  <ebb9@byu.net>
10898
10899         math, unistd: avoid redundant includes
10900         * lib/math.in.h (isnan): No need to re-include <math.h>.
10901         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
10902
10903         getsubopt: work around cygwin bug
10904         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
10905         avoid conflicting with system getsubopt.
10906         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
10907         bug.
10908
10909         getopt: synchronize from glibc
10910         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
10911         parameter order.  Adjust all callers.
10912         (_getopt_internal_r, main): Adjust quoting in error messages.
10913         Drop considerations for outdated POSIX 1003.2 error message.
10914         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
10915         callers.
10916         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
10917
10918         test-getopt: test stderr behavior
10919         * modules/getopt-posix-tests (Depends-on): Add dup2.
10920         * tests/test-getopt.c (ASSERT): Avoid stderr.
10921         (main): Move stderr to a temporary file.
10922         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
10923         Instead, add parameter to inform caller if output occurred.
10924         (test_getopt): Adjust all existing tests to expect silence, and
10925         add new tests of leading ":".
10926         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10927         glibc shortcomings with leading "-:" or "+:" in optstring.
10928         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10929         Likewise.
10930         * doc/posix-functions/getopt.texi (getopt): Likewise.
10931
10932         test-getopt: enhance test
10933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
10934         supports optind=0.
10935         * tests/test-getopt.c (OPTIND_MIN): Move...
10936         * tests/test-getopt.h (OPTIND_MIN): ...here.
10937         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
10938         Require that optind=0 works, since modern BSD supports it in
10939         addition to optreset, and since coreutils expects it.
10940         (test_getopt_long_only): New test.
10941         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10942         glibc shortcomings with 'W;', and enforcement of optind=0.
10943         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10944         Likewise.
10945
10946 2009-12-21  Bruno Haible  <bruno@clisp.org>
10947
10948         localename: Improvements for MacOS X and Cygwin.
10949         * lib/localename.h (gl_locale_name_environ): New declaration.
10950         * lib/localename.c (gl_locale_name_environ): New function, extracted from
10951         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
10952         (gl_locale_name_posix): Invoke it.
10953         (gl_locale_name_default): Add comments. Use Windows native API also on
10954         Cygwin.
10955
10956 2009-12-21  Bruno Haible  <bruno@clisp.org>
10957
10958         Update list of Win32 locale ids.
10959         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
10960         (LANG_SAMI): Renamed from LANG_SAAMI.
10961         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
10962         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
10963         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
10964         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
10965         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
10966         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
10967         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
10968         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
10969         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
10970         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
10971         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
10972         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
10973         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
10974         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
10975         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
10976         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
10977         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
10978         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
10979         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
10980         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
10981         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
10982         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
10983         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
10984         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
10985         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
10986         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
10987         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
10988         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
10989         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
10990         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
10991         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
10992         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
10993         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
10994         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
10995         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
10996         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
10997         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
10998         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
10999         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11000         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11001         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11002         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11003         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11004         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11005         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11006         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11007         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11008         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11009         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11010         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11011         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11012         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11013         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11014         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11015         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11016         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11017         Add more languages and countries for Sami, Sorbian. Add more countries
11018         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11019         for Pashto. Change country for Syriac, Tswana.
11020
11021 2009-12-21  Eric Blake  <ebb9@byu.net>
11022
11023         test-utimens: avoid spurious failure
11024         * tests/test-chown.h (nap): Factor...
11025         * tests/nap.h: ...into new file.
11026         * tests/test-lchown.h (nap): Avoid duplication.
11027         * tests/test-utimens-common.h (nap): Use shared implementation,
11028         necessary on file systems with 1-second resolution.
11029         * modules/chown-tests (Files): Include new file.
11030         * modules/fdutimensat-tests (Files): Likewise.
11031         * modules/futimens-tests (Files): Likewise.
11032         * modules/lchown-tests (Files): Likewise.
11033         * modules/openat-tests (Files): Likewise.
11034         * modules/utimens-tests (Files): Likewise.
11035         * modules/utimensat-tests (Files): Likewise.
11036
11037 2009-12-19  Eric Blake  <ebb9@byu.net>
11038
11039         futimens, utimensat: work around Linux bug
11040         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11041         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11042         * lib/utimensat.c (rpl_utimensat): Work around it.
11043         * lib/futimens.c (rpl_futimens): Adjust comment.
11044
11045         utimens: work around Linux ctime bug
11046         * lib/utimens.c (detect_ctime_bug): New helper function.
11047         (update_timespec): Differentiate between workaround needed for
11048         this bug vs. what is needed for systems that lack utimensat.
11049         (fdutimens, lutimens): Work around bug.
11050
11051         utimens: check for ctime update
11052         * tests/test-utimens-common.h (check_ctime): Define.
11053         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11054         * tests/test-futimens.h (test_futimens): Likewise.
11055         * tests/test-lutimens.h (test_lutimens): Likewise.
11056         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11057         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11058
11059 2009-12-19  Bruno Haible  <bruno@clisp.org>
11060
11061         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11062         * tests/test-dprintf-posix2.sh: New file.
11063         * tests/test-dprintf-posix2.c: New file.
11064         * modules/dprintf-posix-tests (Files): Add them.
11065         (configure.ac): Check for getrlimit and setrlimit.
11066         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11067
11068 2009-12-19  Bruno Haible  <bruno@clisp.org>
11069
11070         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11071         * tests/test-fprintf-posix3.sh: New file.
11072         * tests/test-fprintf-posix3.c: New file.
11073         * modules/fprintf-posix-tests (Files): Add them.
11074         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11075
11076 2009-12-19  Eric Blake  <ebb9@byu.net>
11077
11078         dirfd: fix prototype
11079         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11080         * lib/dirfd.c (dirfd): Likewise.
11081
11082         canonicalize: reduce memory usage
11083         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11084         allocation to size.
11085         Reported by Solar Designer <solar@openwall.com>.
11086
11087 2009-12-19  Bruno Haible  <bruno@clisp.org>
11088
11089         New module attribute 'Applicability'.
11090         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11091         * gnulib-tool: New option --extract-applicability.
11092         (func_usage): Document it.
11093         (sed_extract_prog): Recognize it.
11094         (func_get_applicability): New function.
11095         (func_import): Generalize handling of 'link-warning' module.
11096         * modules/link-warning (Applicability): New section.
11097         * modules/arg-nonnull (Applicability): New section.
11098         Repoted by Simon Josefsson <simon@josefsson.org>.
11099
11100 2009-12-19  Bruno Haible  <bruno@clisp.org>
11101
11102         fflush: tweak
11103         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11104         * lib/fseeko.c (rpl_fseeko): Likewise.
11105
11106 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11107
11108         * lib/gl_list.h: Fix typo in comment.
11109
11110 2009-12-16  Eric Blake  <ebb9@byu.net>
11111
11112         fcntl: use to simplify other modules
11113         * modules/cloexec (Depends-on): Add fcntl.
11114         * modules/fchdir (Depends-on): Likewise.
11115         * modules/fd-safer-flag (Depends-on): Likewise.
11116         * modules/unistd-safer (Depends-on): Likewise.
11117         * modules/dup3 (configure.ac): Set module indicator.
11118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11119         missing.
11120         * lib/fchdir.c (_gl_register_dup): Fix comment.
11121         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11122         * lib/dup-safer.c (dup_safer): Likewise.
11123         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11124         * lib/dup3.c (dup3): Likewise.
11125         * tests/test-fchdir.c (main): Enhance test.
11126         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11127
11128         fcntl: port portions of fcntl to mingw
11129         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11130         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11131         replacement for mingw.
11132         * modules/fcntl (Description): Update.
11133         (Depends-on): Add dup2.
11134         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11135         * modules/fcntl-h (Makefile.am): Substitute it.
11136         * lib/fcntl.in.h (fcntl): Update declaration.
11137         (F_DUPFD, F_GETFD): New macros, when needed.
11138         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11139         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11140         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11141         we now guarantee.
11142
11143         fcntl: work around cygwin bug in F_DUPFD
11144         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11145         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11146         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11147         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11148         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11149
11150         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11151         * modules/fcntl (Files): List new files.
11152         (configure.ac): Run a test.
11153         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11154         * lib/fcntl.c (rpl_fcntl): Likewise.
11155         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11156         (gl_FCNTL_H): Always replace fcntl.h.
11157         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11158         * lib/fcntl.in.h (fcntl): Declare replacement.
11159         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11160         needed, plus a witness.
11161         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11162         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11163         * tests/test-fcntl.c: New file.
11164         * modules/fcntl-tests: Likewise.
11165
11166         binary-io: avoid potential compilation warning
11167         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11168         directives.
11169
11170         fflush: avoid compilation error on NetBSD
11171         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11172         between off_t and fpos_t, since the latter is sometimes a struct.
11173         * lib/fseeko.c (rpl_fseeko): Likewise.
11174         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11175
11176 2009-12-15  Eric Blake  <ebb9@byu.net>
11177
11178         fcntl-h, stdio, sys_ioctl: fix declarations
11179         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11180         function must not take arguments.
11181         * lib/sys_ioctl.in.h (ioctl): Likewise.
11182         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11183         (open): Add a link warning.
11184
11185 2009-12-15  Jim Meyering  <meyering@redhat.com>
11186
11187         areadlink, areadlink-with-size: relax license to LGPLv2+
11188         * modules/areadlink (License): Relax to LGPLv2+.
11189         * modules/areadlink-with-size (License): Likewise.
11190
11191 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11192             Bruno Haible  <bruno@clisp.org>
11193
11194         *printf: Fix memory leak.
11195         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11196         * lib/vfprintf.c (vfprintf): Likewise.
11197         * lib/dprintf.c (dprintf): Likewise.
11198         * lib/vdprintf.c (vdprintf): Likewise.
11199
11200 2009-12-14  Eric Blake  <ebb9@byu.net>
11201
11202         accept4: adjust module dependencies
11203         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11204
11205         utimens: one more try at avoiding compiler warning
11206         * lib/utimens.c (lutimens): Lower scope of result.
11207
11208 2009-12-13  Bruno Haible  <bruno@clisp.org>
11209
11210         Move the malloc checking from module 'list' to new module 'xlist'.
11211         * modules/xlist: New file.
11212         * lib/gl_xlist.h: New file.
11213         * lib/gl_xlist.c: New file.
11214         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11215         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11216         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11217         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11218         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11219         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11220         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11221         gl_sortedlist_nx_add): New declarations.
11222         (struct gl_list_implementation): Rename and change methods accordingly.
11223         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11224         (gl_list_nx_create): Renamed from gl_list_create.
11225         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11226         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11227         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11228         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11229         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11230         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11231         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11232         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11233         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11234         gl_list_create_empty.
11235         (gl_list_nx_create): Renamed from gl_list_create.
11236         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11237         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11238         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11239         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11240         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11241         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11242         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11243         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11244         * lib/gl_array_list.c: Don't include xalloc.h.
11245         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11246         NULL upon out-of-memory.
11247         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11248         out-of-memory.
11249         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11250         Change return type to 'int'.
11251         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11252         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11253         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11254         upon out-of-memory.
11255         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11256         upon out-of-memory.
11257         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11258         upon out-of-memory.
11259         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11260         upon out-of-memory.
11261         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11262         out-of-memory.
11263         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11264         Update.
11265         (gl_array_list_implementation): Update.
11266         * lib/gl_carray_list.c: Don't include xalloc.h.
11267         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11268         Return NULL upon out-of-memory.
11269         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11270         out-of-memory.
11271         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11272         Change return type to 'int'.
11273         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11274         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11275         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11276         upon out-of-memory.
11277         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11278         upon out-of-memory.
11279         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11280         out-of-memory.
11281         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11282         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11283         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11284         Update.
11285         (gl_carray_list_implementation): Update.
11286         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11287         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11288         gl_linked_create_empty. Return NULL upon out-of-memory.
11289         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11290         out-of-memory.
11291         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11292         Change return type to 'int'. Return -1 upon out-of-memory.
11293         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11294         out-of-memory.
11295         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11296         upon out-of-memory.
11297         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11298         upon out-of-memory.
11299         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11300         NULL upon out-of-memory.
11301         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11302         upon out-of-memory.
11303         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11304         out-of-memory.
11305         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11306         Update.
11307         * lib/gl_linked_list.c: Don't include xalloc.h.
11308         (gl_linked_list_implementation): Update.
11309         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11310         (add_to_bucket): Change return type to 'int'.
11311         (gl_linkedhash_list_implementation): Update.
11312         * lib/gl_anytree_list1.h (free_subtree): New function.
11313         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11314         gl_tree_create_empty. Return NULL upon out-of-memory.
11315         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11316         Change return type to 'int'. Return -1 upon out-of-memory.
11317         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11318         out-of-memory.
11319         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11320         (gl_tree_remove_node): New function, moved here from
11321         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11322         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11323         Update.
11324         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11325         malloc, not xmalloc. Return NULL upon out-of-memory.
11326         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11327         out-of-memory.
11328         (gl_tree_remove_node_from_tree): New function, extracted from
11329         gl_tree_remove_node.
11330         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11331         upon out-of-memory.
11332         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11333         out-of-memory.
11334         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11335         upon out-of-memory.
11336         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11337         upon out-of-memory.
11338         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11339         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11340         not xmalloc. Return NULL upon out-of-memory.
11341         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11342         out-of-memory.
11343         (gl_tree_remove_node_from_tree): New function, extracted from
11344         gl_tree_remove_node.
11345         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11346         upon out-of-memory.
11347         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11348         out-of-memory.
11349         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11350         upon out-of-memory.
11351         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11352         upon out-of-memory.
11353         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11354         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11355         gl_anytree_list1.h before gl_anyavltree_list2.h.
11356         (gl_avltree_list_implementation): Update.
11357         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11358         gl_anytree_list1.h before gl_anyavltree_list2.h.
11359         (gl_rbtree_list_implementation): Update.
11360         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11361         Change return type to 'int'. Return -1 upon out-of-memory. Use
11362         __builtin_expect.
11363         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11364         (gl_avltreehash_list_implementation): Update.
11365         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11366         (gl_rbtreehash_list_implementation): Update.
11367         * modules/array-list (Depends-on): Remove xalloc.
11368         * modules/carray-list (Depends-on): Likewise.
11369         * modules/linked-list (Depends-on): Likewise.
11370         * modules/linkedhash-list (Depends-on): Likewise.
11371         * modules/avltree-list (Depends-on): Likewise.
11372         * modules/rbtree-list (Depends-on): Likewise.
11373         * modules/avltreehash-list (Depends-on): Likewise.
11374         * modules/rbtreehash-list (Depends-on): Likewise.
11375
11376         * modules/xsublist: New file.
11377         * lib/gl_xsublist.h: New file.
11378         * lib/gl_xsublist.c: New file.
11379         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11380         (gl_sublist_nx_create): New declaration.
11381         * lib/gl_sublist.c: Don't include xalloc.h.
11382         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11383         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11384         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11385         Change return type to 'int'. Return -1 upon out-of-memory.
11386         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11387         upon out-of-memory.
11388         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11389         NULL upon out-of-memory.
11390         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11391         upon out-of-memory.
11392         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11393         NULL upon out-of-memory.
11394         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11395         NULL upon out-of-memory.
11396         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11397         upon out-of-memory.
11398         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11399         (gl_sublist_list_implementation): Update.
11400         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11401         upon out-of-memory.
11402         * modules/sublist (Depends-on): Remove xalloc.
11403
11404         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11405         * tests/test-carray_list.c: Likewise.
11406         * tests/test-linked_list.c: Likewise.
11407         * tests/test-linkedhash_list.c: Likewise.
11408         * tests/test-avltree_list.c: Likewise.
11409         * tests/test-rbtree_list.c: Likewise.
11410         * tests/test-avltreehash_list.c: Likewise.
11411         * tests/test-rbtreehash_list.c: Likewise.
11412         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11413         * modules/carray-list-tests (Makefile.am): Likewise.
11414         * modules/linked-list-tests (Makefile.am): Likewise.
11415         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11416         * modules/avltree-list-tests (Makefile.am): Likewise.
11417         * modules/rbtree-list-tests (Makefile.am): Likewise.
11418         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11419         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11420
11421         * NEWS: Mention the changes.
11422
11423         * lib/clean-temp.c: Include gl_xlist.h.
11424         * modules/clean-temp (Depends-on): Add xlist.
11425
11426         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11427         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11428
11429         * tests/test-array_oset.c: Include gl_xlist.h.
11430         * modules/array-oset-tests (Depends-on): Add xlist.
11431
11432         Reported by José E. Marchesi <jemarch@gnu.org>.
11433
11434 2009-12-13  Bruno Haible  <bruno@clisp.org>
11435
11436         Move the malloc checking from module 'oset' to new module 'xoset'.
11437         * modules/xoset: New file.
11438         * lib/gl_xoset.h: New file.
11439         * lib/gl_xoset.c: New file.
11440         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11441         declarations.
11442         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11443         (struct gl_oset_implementation): Rename and change methods accordingly.
11444         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11445         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11446         'int'. Mark as __warn_unused_result__.
11447         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11448         gl_oset_create_empty.
11449         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11450         'int'.
11451         * lib/gl_array_oset.c: Don't include xalloc.h.
11452         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11453         malloc, not xmalloc.
11454         (grow): Change return type to 'int'. Don't call xalloc_die.
11455         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11456         to 'int'.
11457         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11458         'int'.
11459         (gl_array_oset_implementation): Update.
11460         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11461         gl_tree_create_empty.
11462         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11463         'int'.
11464         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11465         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11466         xmalloc.
11467         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11468         not xmalloc.
11469         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11470         xmalloc.
11471         (gl_avltree_oset_implementation): Update.
11472         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11473         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11474         xmalloc.
11475         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11476         not xmalloc.
11477         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11478         xmalloc.
11479         (gl_rbtree_oset_implementation): Update.
11480         * modules/array-oset (Depends-on): Remove xalloc.
11481         * modules/avltree-oset (Depends-on): Likewise.
11482         * modules/rbtree-oset (Depends-on): Likewise.
11483         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11484         * tests/test-avltree_oset.c: Likewise.
11485         * tests/test-rbtree_oset.c: Likewise.
11486         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11487         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11488         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11489         * NEWS: Mention the change.
11490
11491 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11492
11493         maint.mk: allow a project to override release-prep commands
11494         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11495         commands into a new rule.
11496         (release-prep): New rule.
11497         (release-prep-hook): New overridable variable.
11498
11499 2009-12-13  Bruno Haible  <bruno@clisp.org>
11500
11501         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11502
11503 2009-12-13  Jim Meyering  <meyering@redhat.com>
11504
11505         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11506         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11507
11508 2009-12-12  Bruno Haible  <bruno@clisp.org>
11509
11510         duplocale: Tweak.
11511         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11512
11513 2009-12-12  Karl Berry  <karl@gnu.org>
11514
11515         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11516
11517 2009-12-12  Bruno Haible  <bruno@clisp.org>
11518
11519         * m4/po.m4: Undo incorrect untabification.
11520
11521 2009-12-12  Bruno Haible  <bruno@clisp.org>
11522
11523         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11524         * modules/c-strtod (Depends-on): Add locale.
11525         * modules/c-strtold (Depends-on): Likewise.
11526
11527 2009-12-12  Bruno Haible  <bruno@clisp.org>
11528
11529         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11530
11531 2009-12-11  Eric Blake  <ebb9@byu.net>
11532
11533         setenv: relax requirement in light of POSIX ruling
11534         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11535         not NULL.
11536         * tests/test-setenv.c (main): Relax test.
11537         * tests/test-unsetenv.c (main): Likewise.
11538         * doc/posix-functions/setenv.texi (setenv): Document this.
11539         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11540
11541 2009-12-11  Bruno Haible  <bruno@clisp.org>
11542
11543         New module 'fd-safer-flag'.
11544         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11545         * lib/dup-safer.c (dup_safer_flag): Remove function.
11546         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11547         * lib/fd-safer.c (fd_safer_flag): Remove function.
11548         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
11549         * modules/cloexec (configure.ac): Drop indicator macro.
11550         * modules/fd-safer-flag: New file.
11551         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
11552         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
11553         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
11554
11555 2009-12-11  Bruno Haible  <bruno@clisp.org>
11556
11557         Tests for module 'nl_langinfo'.
11558         * modules/nl_langinfo-tests: New file.
11559         * tests/test-nl_langinfo.sh: New file.
11560         * tests/test-nl_langinfo.c: New file.
11561
11562         New module 'nl_langinfo'.
11563         * lib/nl_langinfo.c: New file.
11564         * m4/nl_langinfo.m4: New file.
11565         * modules/nl_langinfo: New file.
11566         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
11567
11568 2009-12-11  Bruno Haible  <bruno@clisp.org>
11569
11570         Tests for module 'langinfo'.
11571         * modules/langinfo-tests: New file.
11572         * tests/test-langinfo.c: New file.
11573
11574         New module 'langinfo'.
11575         * lib/langinfo.in.h: New file.
11576         * m4/langinfo_h.m4: New file.
11577         * modules/langinfo: New file.
11578         * doc/posix-headers/langinfo.texi: Mention the new module.
11579
11580 2009-12-11  Bruno Haible  <bruno@clisp.org>
11581
11582         * lib/config.charset: Untabify.
11583
11584 2009-12-11  Bruno Haible  <bruno@clisp.org>
11585
11586         * modules/unistd-safer (configure.ac): Drop indicator macro.
11587
11588 2009-12-11  Bruno Haible  <bruno@clisp.org>
11589
11590         Move pipe2-safer code to its own file.
11591         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
11592         * lib/pipe-safer.c (pipe2_safer): Remove function.
11593         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
11594         (Makefile.am): Add it to lib_SOURCES.
11595
11596 2009-12-10  Bruno Haible  <bruno@clisp.org>
11597
11598         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
11599
11600 2009-12-10  Bruno Haible  <bruno@clisp.org>
11601
11602         Declare which arguments expect non-NULL values, for GCC and clang.
11603         * build-aux/arg-nonnull.h: New file.
11604         * modules/arg-nonnull: New file.
11605         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
11606         (inet_ntop, inet_pton): Use it.
11607         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
11608         (closedir, dirfd, opendir, scandir, alphasort): Use it.
11609         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
11610         (open, openat): Use it.
11611         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
11612         (fnmatch): Use it.
11613         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
11614         (getopt, getopt_long, getopt_long_only): Use it.
11615         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
11616         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
11617         Use it.
11618         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
11619         (iconv_open): Use it.
11620         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
11621         (strtoimax, strtoumax): Use it.
11622         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
11623         (duplocale): Use it.
11624         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
11625         (frexp, frexpl): Use it.
11626         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
11627         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
11628         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
11629         (tsearch, tfind, tdelete, twalk): Use it.
11630         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
11631         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11632         sigpending): Use it.
11633         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
11634         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11635         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11636         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11637         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11638         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11639         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11640         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11641         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11642         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11643         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11644         Use it.
11645         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
11646         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
11647         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
11648         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
11649         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
11650         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
11651         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
11652         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
11653         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
11654         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
11655         strtoull, unsetenv): Use it.
11656         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
11657         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11658         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11659         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
11660         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
11661         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
11662         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
11663         (strcasecmp, strncasecmp): Use it.
11664         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
11665         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
11666         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
11667         rpl_setsockopt): Use it.
11668         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
11669         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
11670         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
11671         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
11672         (gettimeofday): Use it.
11673         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
11674         (times): Use it.
11675         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
11676         (uname): Use it.
11677         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
11678         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
11679         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
11680         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
11681         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
11682         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
11683         unlinkat, write): Use it.
11684         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
11685         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
11686         * lib/argv-iter.h: Include arg-nonnull.h.
11687         (_ATTRIBUTE_NONNULL_): Remove macro.
11688         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
11689         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
11690         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
11691         optimization.
11692         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
11693         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
11694         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
11695         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
11696         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
11697         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
11698         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
11699         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
11700         * modules/arpa_inet (Depends-on): Add arg-nonnull.
11701         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
11702         * modules/dirent (Depends-on): Add arg-nonnull.
11703         (Makefile.am): Insert arg-nonnull.h into dirent.h.
11704         * modules/fcntl-h (Depends-on): Add arg-nonnull.
11705         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
11706         * modules/fnmatch (Depends-on): Add arg-nonnull.
11707         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
11708         * modules/getopt-posix (Depends-on): Add arg-nonnull.
11709         (Makefile.am): Insert arg-nonnull.h into getopt.h.
11710         * modules/glob (Depends-on): Add arg-nonnull.
11711         (Makefile.am): Insert arg-nonnull.h into glob.h.
11712         * modules/iconv_open (Depends-on): Add arg-nonnull.
11713         (Makefile.am): Insert arg-nonnull.h into iconv.h.
11714         * modules/inttypes (Depends-on): Add arg-nonnull.
11715         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
11716         * modules/locale (Depends-on): Add arg-nonnull.
11717         (Makefile.am): Insert arg-nonnull.h into locale.h.
11718         * modules/math (Depends-on): Add arg-nonnull.
11719         (Makefile.am): Insert arg-nonnull.h into math.h.
11720         * modules/netdb (Depends-on): Add arg-nonnull.
11721         (Makefile.am): Insert arg-nonnull.h into netdb.h.
11722         * modules/search (Depends-on): Add arg-nonnull.
11723         (Makefile.am): Insert arg-nonnull.h into search.h.
11724         * modules/signal (Depends-on): Add arg-nonnull.
11725         (Makefile.am): Insert arg-nonnull.h into signal.h.
11726         * modules/spawn (Depends-on): Add arg-nonnull.
11727         (Makefile.am): Insert arg-nonnull.h into spawn.h.
11728         * modules/stdio (Depends-on): Add arg-nonnull.
11729         (Makefile.am): Insert arg-nonnull.h into stdio.h.
11730         * modules/stdlib (Depends-on): Add arg-nonnull.
11731         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
11732         * modules/string (Depends-on): Add arg-nonnull.
11733         (Makefile.am): Insert arg-nonnull.h into string.h.
11734         * modules/strings (Depends-on): Add arg-nonnull.
11735         (Makefile.am): Insert arg-nonnull.h into strings.h.
11736         * modules/sys_socket (Depends-on): Add arg-nonnull.
11737         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
11738         * modules/sys_stat (Depends-on): Add arg-nonnull.
11739         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
11740         * modules/sys_time (Depends-on): Add arg-nonnull.
11741         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
11742         * modules/sys_times (Depends-on): Add arg-nonnull.
11743         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
11744         * modules/sys_utsname (Depends-on): Add arg-nonnull.
11745         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
11746         * modules/time (Depends-on): Add arg-nonnull.
11747         (Makefile.am): Insert arg-nonnull.h into time.h.
11748         * modules/unistd (Depends-on): Add arg-nonnull.
11749         (Makefile.am): Insert arg-nonnull.h into unistd.h.
11750         * modules/wchar (Depends-on): Add arg-nonnull.
11751         (Makefile.am): Insert arg-nonnull.h into wchar.h.
11752         * modules/argv-iter (Depends-on): Add arg-nonnull.
11753         * tests/test-canonicalize.c (null_ptr): New function.
11754         (main): Use it.
11755         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
11756         (main): Use it.
11757         * tests/test-memmem.c (null_ptr): New function.
11758         (main): Use it.
11759         Reported by Jim Meyering.
11760
11761 2009-12-10  Bruno Haible  <bruno@clisp.org>
11762
11763         Use spaces for indentation, not tabs.
11764         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11765         * m4/*.m4: Untabify.
11766         * build-aux/*.h: Untabify.
11767         * tests/**/*.[hc]: Untabify.
11768         * README: New section "Indent with spaces, not TABs", based on
11769         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
11770         * NEWS: Mention the change.
11771
11772 2009-12-10  Bruno Haible  <bruno@clisp.org>
11773
11774         pty test: Fix link error.
11775         * modules/pty-tests (Makefile.am): Add the default LDADD value to
11776         test_pty_LDADD.
11777
11778 2009-12-07  Simon Josefsson  <simon@josefsson.org>
11779
11780         * modules/pty: New file.
11781         * modules/pty-tests: New file.
11782         * m4/pty.m4: New file.
11783         * tests/test-pty.c: New file.
11784         * doc/glibc-headers/pty.texi: Modified.
11785         * doc/glibc-functions/forkpty.texi: Modified.
11786         * doc/glibc-functions/openpty.texi: Modified.
11787
11788 2009-12-10  Bruno Haible  <bruno@clisp.org>
11789
11790         Avoid syntax error in C++ mode.
11791         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
11792
11793 2009-12-10  Bruno Haible  <bruno@clisp.org>
11794
11795         Use sed with option -e.
11796         * gnulib-tool (func_version, func_emit_copyright_notice,
11797         func_emit_initmacro_end, func_import, func_create_testdir): Pass
11798         option -e to sed.
11799         * modules/link-warning (Makefile.am): Likewise.
11800
11801 2009-12-10  Jim Meyering  <meyering@redhat.com>
11802
11803         mgetgroups: do not write bytes beyond end of malloc'd buffer
11804         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
11805         username, we call getgroups with a one-element-shorter buffer,
11806         but still told it the length was original, max_n_groups.
11807
11808 2009-12-09  Eric Blake  <ebb9@byu.net>
11809
11810         cloexec: relax license
11811         * modules/cloexec (Maintainer): Add myself.
11812         (License): Use LGPL, not GPL.
11813
11814         link-warning: optimize generation
11815         * modules/link-warning (Makefile.am): Reduce process usage.
11816
11817 2009-12-09  Bruno Haible  <bruno@clisp.org>
11818
11819         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
11820         workaround was added on 2009-11-17.
11821
11822 2009-12-09  Jim Meyering  <meyering@redhat.com>
11823             Bruno Haible  <bruno@clisp.org>
11824
11825         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
11826         * modules/link-warning (Makefile.am): Make the comment-removing sed
11827         command more robust in the face of bootstrap-prepended comment lines.
11828
11829 2009-12-09  Bruno Haible  <bruno@clisp.org>
11830
11831         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
11832         most one group.
11833
11834 2009-12-09  Simon Josefsson <simon@josefsson.org>
11835             Bruno Haible  <bruno@clisp.org>
11836
11837         * build-aux/link-warning.h: Add copyright notice.
11838         * modules/link-warning (Makefile.am): Generate link-warning.h from
11839         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
11840         * NEWS: Mention change in link-warning module.
11841         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
11842         * modules/dirent (Makefile.am): Add dependency to dirent.h.
11843         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
11844         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
11845         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
11846         * modules/math (Makefile.am): Add dependency to math.h.
11847         * modules/search (Makefile.am): Add dependency to search.h.
11848         * modules/signal (Makefile.am): Add dependency to signal.h.
11849         * modules/spawn (Makefile.am): Add dependency to spawn.h.
11850         * modules/stdio (Makefile.am): Add dependency to stdio.h.
11851         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
11852         * modules/string (Makefile.am): Add dependency to string.h.
11853         * modules/strings (Makefile.am): Add dependency to strings.h.
11854         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
11855         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
11856         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
11857         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
11858         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
11859         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
11860         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
11861         * modules/unistd (Makefile.am): Add dependency to unistd.h.
11862         * modules/wchar (Makefile.am): Add dependency to wchar.h.
11863
11864 2009-12-09  Bruno Haible  <bruno@clisp.org>
11865
11866         fchdir: Optimize away rpl_fstat when possible.
11867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
11868         REPLACE_OPEN_DIRECTORY.
11869         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
11870
11871 2009-12-09  Bruno Haible  <bruno@clisp.org>
11872
11873         * lib/fchdir.c: Update comment.
11874
11875 2009-12-09  Bruno Haible  <bruno@clisp.org>
11876
11877         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
11878
11879 2009-12-08  Eric Blake  <ebb9@byu.net>
11880
11881         fchdir: avoid memory leak on re-registration.
11882         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
11883
11884 2009-12-08  Jim Meyering  <meyering@redhat.com>
11885
11886         init.sh: avoid Solaris 10 /bin/sh portability problem
11887         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
11888         sourced script:
11889           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
11890           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
11891           bar
11892         tests/init.sh relied on that, accepting a --set-path=DIR argument,
11893         and two tests used that idiom.
11894         * tests/init.sh: Update suggested usage comments.
11895         (path_prepend_): New function, to be used in place
11896         of the --src-path=DIR option.
11897         (setup_): Move PATH-prepending code into path_prepend_.
11898         * tests/test-pread.sh: Adapt to new usage.
11899         * tests/test-xalloc-die.sh: Likewise.
11900
11901 2009-12-08  Simon Josefsson  <simon@josefsson.org>
11902
11903         * doc/gnulib.texi (Glibc pty.h): Add.
11904         * doc/glibc-functions/forkpty.texi: Add.
11905         * doc/glibc-functions/openpty.texi: Add.
11906         Suggested by Bruno Haible.
11907
11908 2009-12-08  Eric Blake  <ebb9@byu.net>
11909
11910         fchdir: fix logic bugs
11911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
11912         * tests/test-fchdir.c (main): Enhance test.
11913         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
11914         is in use.
11915
11916         dup2: fix logic bugs
11917         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
11918         REPLACE_DUP2 to decide when rpl_dup2 is needed.
11919         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
11920         exists.
11921         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
11922
11923 2009-12-07  Eric Blake  <ebb9@byu.net>
11924
11925         unlink: fix m4 detection
11926         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
11927
11928         unistd-safer: add unit test
11929         * modules/unistd-safer-tests: New file.
11930         * tests/test-dup-safer.c: Likewise.
11931         * tests/test-cloexec.c (setmode): Avoid compiler warning.
11932         * tests/test-dup2.c (setmode): Likewise.
11933         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
11934
11935         cloexec: preserve text vs. binary across dup_cloexec
11936         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
11937         mode.
11938         * modules/dup2-tests (Depends-on): Add binary-io.
11939         * modules/cloexec-tests (Depends-on): Likewise.
11940         * tests/test-dup2.c (setmode, is_mode): New helpers.
11941         (main): Add tests that translation mode is preserved.
11942         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
11943         Reported by Bruno Haible.
11944
11945         mgetgroups: reduce duplicate listings
11946         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
11947         resulting array.
11948         * tests/test-chown.h (test_chown): Simplify client.
11949         * tests/test-lchown.h (test_lchown): Likewise.
11950
11951 2009-12-06  Bruno Haible  <bruno@clisp.org>
11952
11953         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
11954         value.
11955
11956 2009-12-06  Bruno Haible  <bruno@clisp.org>
11957
11958         * lib/progname.c: Include stdio.h, stdlib.h.
11959         (set_program_name): Reject a NULL argument.
11960
11961 2009-12-05  Eric Blake  <ebb9@byu.net>
11962
11963         pipe2-safer: new module
11964         * modules/pipe2-safer: New file.
11965         * lib/unistd-safer.h (pipe2_safer): New prototype.
11966         * lib/unistd--.h (pipe2): New wrapper.
11967         * lib/pipe-safer.c (pipe2_safer): New function.
11968         * modules/pipe (Depends-on): Add pipe2-safer.
11969         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
11970
11971         stdlib-safer: preserve cloexec flag for mkostemp[s]
11972         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
11973         fd_safer_flag.
11974
11975         unistd-safer: allow preservation of cloexec status via flag
11976         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
11977         prototypes.
11978         * lib/dup-safer.c (dup_safer_flag): New function.
11979         * lib/fd-safer.c (fd_safer_flag): Likewise.
11980         * modules/cloexec (configure.ac): Set witness.
11981
11982         test-dup2: enhance test
11983         * modules/dup2-tests (Depends-on): Add cloexec.
11984         * tests/test-dup2.c (main): Enhance test.
11985
11986         cloexec: add dup_cloexec
11987         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
11988         header and comments.
11989         * lib/cloexec.c (set_cloexec_flag): Add comments.
11990         (dup_cloexec): New function, with mingw implementation borrowed
11991         from...
11992         * lib/w32spawn.h (dup_noinherit): ...here.
11993         * modules/execute (Depends-on): Add cloexec.
11994         * modules/pipe (Depends-on): Likewise.
11995         * modules/cloexec (Depends-on): Add dup2.
11996         * modules/cloexec-tests (Files): New file.
11997         * tests/test-cloexec.c: Likewise.
11998
11999         test-xalloc-die: fix test for mingw
12000         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12001         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12002         directory and .exe suffix off argv[0] output.
12003
12004         test-fseeko: fix test for mingw
12005         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12006         than undefining fseek, so test will pass on mingw.
12007
12008 2009-12-05  Bruno Haible  <bruno@clisp.org>
12009
12010         * lib/progname.h (set_program_name): Clarify specification.
12011         * lib/progname.c (set_program_name): Likewise.
12012         Reported by Jim Meyering.
12013
12014 2009-12-05  Jim Meyering  <meyering@redhat.com>
12015
12016         maint.mk: backslash-escape parens in default regexp
12017         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12018         backslash-escape the literal parentheses.
12019
12020         maint.mk: news-date-check: use grep -E
12021         * top/maint.mk (today): Define a Make variable, not a...
12022         (news-date-check): ...shell variable.
12023         (news-date-regexp): Use the Make variable.
12024         Use grep's -E option.  Change the failing diagnostic to mention
12025         the variable, $(news-date-regexp).
12026
12027 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12028
12029         maintainer-makefile: allow customization of NEWS entry format
12030         * top/maint.mk (news-date-regexp): New overridable variable.
12031         (news-date-check): Use it.
12032
12033 2009-12-04  Eric Blake  <ebb9@byu.net>
12034
12035         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12036         * lib/mgetgroups.h (xgetgroups): New prototype.
12037         * lib/mgetgroups.c (xgetgroups): New wrapper.
12038         (mgetgroups): Handle ENOSYS.
12039         * modules/mgetgroups (Depends-on): Add realloc.
12040         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12041
12042         mgetgroups: avoid argument promotion issues with -1
12043         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12044         for invalid gid_t.
12045         * tests/test-chown.h (getegid, test_chown): Likewise.
12046         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12047
12048 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12049
12050         exclude: Fix header file problems.
12051         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12052
12053 2009-12-01  Jim Meyering  <meyering@redhat.com>
12054
12055         fts: fts_open: do not let an empty string cause immediate failure
12056         This is required in support of GNU rm, for which the command
12057         "rm A '' B" must process and remove both A and B, in spite of
12058         the empty string argument.
12059         * lib/fts.c (fts_open): Do not let the presence of an empty string
12060         cause fts_open to fail immediately.  Most fts-using tools must be
12061         able to process all arguments, in order, and can be expected to
12062         diagnose such arguments themselves.
12063
12064 2009-11-30  Eric Blake  <ebb9@byu.net>
12065
12066         utimens: fix compilation error
12067         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12068         Declare variable at right scope.
12069
12070 2009-11-29  Jim Meyering  <meyering@redhat.com>
12071
12072         bootstrap: handle perl-5.11's changed --version output
12073         * build-aux/bootstrap (get_version): Handle perl separately,
12074         since perl-5.11's --version output is different.
12075
12076 2009-11-28  Jim Meyering  <meyering@redhat.com>
12077
12078         userspec: depend on the inttostr module, too
12079         * modules/userspec (Depends-on): Add inttostr.
12080
12081         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12082         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12083         number of MAXUID when it evaluates to (uid_t) -1.
12084         Likewise for group ID.  Reported by Matt McCutchen in
12085         <http://savannah.gnu.org/bugs/?28113>
12086
12087         userspec: reformat to use spaces, not TABs
12088         * lib/userspec.c: Expand TABs to spaces.
12089         Add Emacs' "indent-tabs-mode: nil" hint.
12090
12091 2009-11-27  Eric Blake  <ebb9@byu.net>
12092
12093         getopt-gnu: flush out another BSD bug
12094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12095         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12096         flush out BSD bug.
12097         * tests/test-getopt.h (test_getopt): End lists with NULL.
12098         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12099         (test_getopt_long_posix): Enhance test.
12100         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12101         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12102         getopt-gnu.
12103         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12104         Likewise.
12105
12106 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12107
12108         * modules/idpriv-droptemp-tests (Notice): Fix text.
12109
12110 2009-11-27  Jim Meyering  <meyering@redhat.com>
12111
12112         test-xalloc-die: avoid spurious failure due to libtool argv difference
12113         In a libtool-enabled project, this test would fail due to a difference
12114         in the emitted program name, e.g.,
12115         -test-xalloc-die: memory exhausted
12116         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12117         Use program to avoid that.
12118         * modules/xalloc-die-tests (Depends-on): Add progname.
12119         * tests/test-xalloc-die.c: Include progname.h".
12120         (program_name): Remove decl.
12121         (main): Call set_program_name.
12122         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12123
12124 2009-11-26  Richard Jones  <rjones@redhat.com>
12125
12126         w32sock: leave win32 error in place.
12127         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12128
12129 2009-11-26  Eric Blake  <ebb9@byu.net>
12130
12131         init.sh: suggest to use skip_ and fail_ functions in comments
12132         * tests/init.sh: Add a sentence.
12133
12134 2009-11-25  Bruno Haible  <bruno@clisp.org>
12135
12136         init.sh: add documentation in comments
12137         * tests/init.sh: Add some developer and user documentation.
12138
12139 2009-11-26  Jim Meyering  <meyering@redhat.com>
12140
12141         init.sh: accommodate even those who specify bogus srcdir manually
12142         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12143         configure-time tests to be sanitized, so that there is no need to
12144         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12145         (with no double quotes) suffices.  However, since tests may be
12146         invoked manually, and since you may explicitly set srcdir to the
12147         name of a directory containing spaces, do quote its uses here.
12148         * tests/test-pread.sh: Likewise.
12149         Suggested by Bruno Haible.
12150
12151         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12152         * tests/test-pread.sh: Write no data into the pipe, because
12153         test-pread actually reads none.  This avoids a diagnostic,
12154         "bash: echo: write error: Broken pipe", that arises in the unusual
12155         event something is ignoring SIGPIPE, and might be interpreted
12156         as some sort of failure.  Reported by Bruno Haible.
12157
12158 2009-11-25  Jim Meyering  <meyering@redhat.com>
12159
12160         test-pread: cover failure with ESPIPE and EINVAL
12161         * tests/test-pread.c (main): Test for failure, too.
12162         * tests/test-pread.sh: Invoke with stdin on a pipe.
12163         Suggested by Eric Blake.
12164
12165         pread: improvement and fix
12166         * modules/pread (Depends-on): Depend on lseek, for portability to
12167         e.g., mingw.  Suggested by Eric Blake.
12168         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12169
12170         unistd.in.h: correct declaration of pread
12171         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12172         Reported by Richard W.M. Jones.
12173
12174         test-pread.sh: distribute the test script
12175         * modules/pread-tests (Files): Include test-pread.sh.
12176
12177         test-pread.sh: clean up
12178         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12179         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12180         That is unnecessary, since it's always ".".
12181         Suggestion from Eric Blake.
12182
12183         test-pread.sh: make executable
12184         * tests/test-pread.sh: Set executable bit.
12185         Reported by Eric Blake.
12186
12187         correct typo in test-pread.sh
12188         * tests/test-pread.sh: Add #! line.
12189
12190         test pread
12191         * tests/test-pread.c: New file.
12192         * tests/test-pread.sh: Likewise.
12193         * modules/pread-tests: Likewise.
12194
12195         pread: new module
12196         * modules/pread: New file.
12197         * lib/unistd.in.h (pread): Define/declare.
12198         * lib/pread.c (pread): New file.
12199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12200         * modules/unistd (Makefile.am): Substitute witnesses.
12201         * doc/posix-functions/pread.texi (pread): Update.
12202         * MODULES.html.sh: Add pread.
12203
12204 2009-11-25  Jim Meyering  <meyering@redhat.com>
12205
12206         tests/init.sh: new file to be used via most *.sh tests
12207         * tests/init.sh: New file.
12208
12209 2009-11-25  Eric Blake  <ebb9@byu.net>
12210
12211         utimens: work around older Linux failure with symlinks
12212         * lib/utimens.c (lutimensat_works_really): New variable.
12213         (fdutimens, lutimens): Use it to manage kernels that support
12214         nanosecond times on files, but not on symlinks.
12215         Reported by Ondřej Vašík.
12216
12217         utimes: fix configure grammar
12218         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12219
12220 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12221
12222         regex: Fix fastmap for multibyte character ranges.
12223         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12224         characters when a multibyte character range is included.
12225
12226 2009-11-22  Andy Wingo  <wingo@pobox.com>
12227
12228         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12229         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12230
12231 2009-11-24  Bruno Haible  <bruno@clisp.org>
12232
12233         doc: Most *_l functions exist in MacOS X 10.5.
12234         * doc/posix-functions/duplocale.texi: Update platforms list.
12235         * doc/posix-functions/freelocale.texi: Likewise.
12236         * doc/posix-functions/newlocale.texi: Likewise.
12237         * doc/posix-functions/uselocale.texi: Likewise.
12238         * doc/posix-functions/isalnum_l.texi: Likewise.
12239         * doc/posix-functions/isalpha_l.texi: Likewise.
12240         * doc/posix-functions/isblank_l.texi: Likewise.
12241         * doc/posix-functions/iscntrl_l.texi: Likewise.
12242         * doc/posix-functions/isdigit_l.texi: Likewise.
12243         * doc/posix-functions/isgraph_l.texi: Likewise.
12244         * doc/posix-functions/islower_l.texi: Likewise.
12245         * doc/posix-functions/isprint_l.texi: Likewise.
12246         * doc/posix-functions/ispunct_l.texi: Likewise.
12247         * doc/posix-functions/isspace_l.texi: Likewise.
12248         * doc/posix-functions/isupper_l.texi: Likewise.
12249         * doc/posix-functions/iswalnum_l.texi: Likewise.
12250         * doc/posix-functions/iswalpha_l.texi: Likewise.
12251         * doc/posix-functions/iswblank_l.texi: Likewise.
12252         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12253         * doc/posix-functions/iswctype_l.texi: Likewise.
12254         * doc/posix-functions/iswdigit_l.texi: Likewise.
12255         * doc/posix-functions/iswgraph_l.texi: Likewise.
12256         * doc/posix-functions/iswlower_l.texi: Likewise.
12257         * doc/posix-functions/iswprint_l.texi: Likewise.
12258         * doc/posix-functions/iswpunct_l.texi: Likewise.
12259         * doc/posix-functions/iswspace_l.texi: Likewise.
12260         * doc/posix-functions/iswupper_l.texi: Likewise.
12261         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12262         * doc/posix-functions/isxdigit_l.texi: Likewise.
12263         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12264         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12265         * doc/posix-functions/strcoll_l.texi: Likewise.
12266         * doc/posix-functions/strfmon_l.texi: Likewise.
12267         * doc/posix-functions/strftime_l.texi: Likewise.
12268         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12269         * doc/posix-functions/strxfrm_l.texi: Likewise.
12270         * doc/posix-functions/tolower_l.texi: Likewise.
12271         * doc/posix-functions/toupper_l.texi: Likewise.
12272         * doc/posix-functions/towctrans_l.texi: Likewise.
12273         * doc/posix-functions/towlower_l.texi: Likewise.
12274         * doc/posix-functions/towupper_l.texi: Likewise.
12275         * doc/posix-functions/wcscoll_l.texi: Likewise.
12276         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12277         * doc/posix-functions/wctrans_l.texi: Likewise.
12278         * doc/posix-functions/wctype_l.texi: Likewise.
12279         * doc/glibc-functions/strptime_l.texi: Likewise.
12280         * doc/glibc-functions/strtod_l.texi: Likewise.
12281         * doc/glibc-functions/strtof_l.texi: Likewise.
12282         * doc/glibc-functions/strtol_l.texi: Likewise.
12283         * doc/glibc-functions/strtold_l.texi: Likewise.
12284         * doc/glibc-functions/strtoll_l.texi: Likewise.
12285         * doc/glibc-functions/strtoul_l.texi: Likewise.
12286         * doc/glibc-functions/strtoull_l.texi: Likewise.
12287         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12288         * doc/glibc-functions/wcstod_l.texi: Likewise.
12289         * doc/glibc-functions/wcstof_l.texi: Likewise.
12290         * doc/glibc-functions/wcstol_l.texi: Likewise.
12291         * doc/glibc-functions/wcstold_l.texi: Likewise.
12292         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12293         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12294         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12295
12296 2009-11-24  Bruno Haible  <bruno@clisp.org>
12297
12298         duplocale: Fix logic bug.
12299         * lib/duplocale.c: Don't include <langinfo.h>.
12300         (_NL_LOCALE_NAME): Remove macro.
12301         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12302         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12303
12304 2009-11-23  Jim Meyering  <meyering@redhat.com>
12305
12306         test-update-copyright: don't hard-code /usr/bin/perl
12307         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12308         perl to print the current year.  Gilles Espinasse reported that
12309         the replaced use of perl was hard-coded as /usr/bin/perl.
12310
12311 2009-11-23  Bruno Haible  <bruno@clisp.org>
12312
12313         duplocale: Add support for glibc 2.3.x.
12314         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12315
12316 2009-11-22  Bruno Haible  <bruno@clisp.org>
12317
12318         vasnprintf: Tiny optimization.
12319         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12320         MacOS X.
12321
12322 2009-11-22  Bruno Haible  <bruno@clisp.org>
12323
12324         Tests for module 'duplocale'.
12325         * modules/duplocale-tests: New file.
12326         * tests/test-duplocale.c: New file.
12327
12328         New module 'duplocale'.
12329         * m4/duplocale.m4: New file.
12330         * lib/locale.in.h (duplocale): New declaration.
12331         * lib/duplocale.c: New file.
12332         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12333         gl_LOCALE_H_DEFAULTS): New macros.
12334         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12335         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12336         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12337         REPLACE_DUPLOCALE.
12338         * modules/duplocale: New file.
12339         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12340
12341 2009-11-22  Bruno Haible  <bruno@clisp.org>
12342
12343         * modules/locale-tests (configure.ac): Test for newlocale function.
12344         * tests/test-locale.c: When the system has extended locale functions,
12345         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12346
12347         locale: Make locale_t available when possible.
12348         * lib/locale.in.h: Include <xlocale.h> when it exists.
12349         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12350         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12351         * modules/locale (Depends-on): Add extensions.
12352         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12353         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12354
12355 2009-11-22  Bruno Haible  <bruno@clisp.org>
12356
12357         Add comments.
12358         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12359         invocation.
12360         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12361         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12362         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12363
12364 2009-11-22  Bruno Haible  <bruno@clisp.org>
12365
12366         error: account for the possibility of freopen (stdout).
12367         * lib/error.c: Include <unistd.h>.
12368         (flush_stdout): New function, extracted from error and error_at_line.
12369         Determine stdout's fd dynamically.
12370         (error, error_at_line): Invoke flush_stdout.
12371         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12372         * modules/error (Depends-on): Add unistd.
12373
12374 2009-11-22  Bruno Haible  <bruno@clisp.org>
12375
12376         diffseq: Add comment.
12377         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12378
12379 2009-11-22  Jim Meyering  <meyering@redhat.com>
12380
12381         c-stack: avoid defining an unused static function
12382         * lib/c-stack.c (find_stack_direction): Do not define this function
12383         when it will not be used.
12384
12385         diffseq: avoid spurious gcc warnings
12386         * lib/diffseq.h (IF_LINT2): Define.
12387         (compareseq): Use it to initialize two members of "part".
12388         This avoids two used-uninitialized warnings.
12389
12390 2009-11-21  Jim Meyering  <meyering@redhat.com>
12391
12392         c-stack: avoid "ignoring return value of `write'" warning
12393         * lib/c-stack.c: Include "ignore-value.h".
12394         (die): Explicitly ignore each write return value.
12395         * modules/c-stack (Depends-on): Add ignore-value.
12396
12397 2009-11-21  Bruno Haible  <bruno@clisp.org>
12398
12399         diffseq: reduce scope of variable 'best'.
12400         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12401         variable, earlier used for two different purposes.
12402
12403 2009-11-21  Jim Meyering  <meyering@redhat.com>
12404
12405         diffseq: remove useless assignment to "best"
12406         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12407         assignment.  At that point "best" is already guaranteed to be zero.
12408
12409 2009-11-20  Eric Blake  <ebb9@byu.net>
12410
12411         build: mention ftp redirector in release announcements
12412         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12413         values that used to come from cfg.mk; mention FTP redirect URL.
12414         * build-aux/announce-gen: Mention the mirror list.
12415         Suggested by Karl Berry.
12416
12417         nanosleep: improve port to mingw
12418         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12420         LIB_NANOSLEEP, but only when needed.
12421         * modules/select (Link): Document LIBSOCKET.
12422         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12423         enough.
12424
12425         nanosleep: work around cygwin bug
12426         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12427         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12428         bug.
12429         (getnow): Delete, not needed.
12430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12431         LIB_CLOCK_GETTIME.
12432         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12433         clock-time, gettime.
12434         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12435         bug.
12436         * modules/nanosleep-tests: New test.
12437         * tests/test-nanosleep.c: New file.
12438
12439         sleep: work around cygwin bug
12440         * lib/sleep.c (rpl_sleep): Work around the bug.
12441         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12442         (gl_PREREQ_SLEEP): Delete unused macro.
12443         * modules/sleep (Depends-on): Add verify.
12444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12445         * modules/unistd (Makefile.am): Substitute witness.
12446         * lib/unistd.in.h (sleep): Update prototype.
12447         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12448         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12449         * modules/sleep-tests (Depends-on): Check for alarm.
12450
12451 2009-11-20  Jim Meyering  <meyering@redhat.com>
12452
12453         maint.mk: improve sc_prohibit_magic_number_exit
12454         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12455         so it does not match uses like System.exit(1).
12456         Add comments showing how to correct all offenders.
12457
12458 2009-11-19  Eric Blake  <ebb9@byu.net>
12459
12460         xalloc-die-tests: add missing library
12461         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12462
12463         test-xvasprintf: silence compiler warnings
12464         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12465         empty string from gcc.
12466
12467 2009-11-19  Jim Meyering  <meyering@redhat.com>
12468
12469         xfreopen: new module, from coreutils
12470         * modules/xfreopen: New module.
12471         * lib/xfreopen.c: New file.
12472         * lib/xfreopen.h: New file.
12473         * MODULES.html.sh (File stream based Input/Output"): Add it.
12474
12475 2009-11-19  Eric Blake  <ebb9@byu.net>
12476
12477         manywarnings: depend on warnings
12478         * modules/manywarnings (Depends-on): Add warnings.
12479
12480         build: avoid compiler warnings
12481         * lib/select.c (rpl_select): Delete unused variable.
12482         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12483
12484 2009-11-18  Eric Blake  <ebb9@byu.net>
12485
12486         tests: avoid false negative with --with-packager
12487         * tests/test-version-etc.sh: Discard packager information.
12488         * tests/test-argp-version-etc-1.sh: Likewise.
12489         Reported by Mike Frysinger.
12490
12491         utimens: fix regression on Solaris
12492         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12493         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12494         can only change fd timestamps via futimesat.  Instead, use an
12495         additional witness macro to avoid BSD bug.
12496         Reported by Jim Meyering.
12497
12498 2009-11-17  Eric Blake  <ebb9@byu.net>
12499
12500         usleep: use it to simplify tests
12501         * modules/stat-time-tests (Depends-on): Add usleep.
12502         (configure.ac): Drop usleep check.
12503         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12504         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12505         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12506         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12507         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12508         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12509         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12510         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12511         Likewise.
12512         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12513         * tests/test-lchown.h (nap): Likewise.
12514         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12515         * tests/test-stat-time.c (nap): Likewise.
12516         * tests/test-utimens-common.h (nap): Update comments.
12517
12518         usleep: new module
12519         * modules/usleep: New file.
12520         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12521         * lib/usleep.c (usleep): Likewise.
12522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12523         * modules/unistd (Makefile.am): Substitute witnesses.
12524         * lib/unistd.in.h (usleep): Add declaration.
12525         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12526         * MODULES.html.sh (Date and time): Likewise.
12527         * modules/usleep-tests (Depends-on): New test.
12528         * tests/test-usleep.c: New file.
12529
12530         chown: work around OpenBSD bug
12531         * lib/chown.c (rpl_chown): Work around the bug.
12532         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12533         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12534         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12535         * modules/chown (Depends-on): Add stdbool.
12536         * modules/lchown (Depends-on): Likewise.
12537         * doc/posix-functions/chown.texi (chown): Document the bug.
12538         * doc/posix-functions/lchown.texi (lchown): Likewise.
12539         * tests/test-lchown.h (test_chown): Relax test.
12540
12541         mkstemp: avoid conflict with C++ keyword template
12542         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12543         * lib/mkostemp.c (mkostemp): Likewise.
12544         * lib/mkostemps.c (mkostemps): Likewise.
12545         * lib/mkstemp.c (mkstemp): Likewise.
12546         * lib/mkstemps.c (mkstemps): Likewise.
12547
12548         xalloc-die-tests: optimize
12549         * tests/test-xalloc-die.sh: Reduce number of processes.
12550
12551 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12552
12553         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
12554         patch from ludo@gnu.org (Ludovic Courtès).
12555
12556 2009-11-17  Jim Meyering  <meyering@redhat.com>
12557
12558         version-etc: use proper license string
12559         * modules/version-etc (License): Use LGPL, not LGPLv3+.
12560         * modules/version-etc-fsf: Likewise.
12561
12562 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12563
12564         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
12565         printed to stdout.  Deal with EOL differences.
12566
12567 2009-11-17  Eric Blake  <ebb9@byu.net>
12568
12569         unsetenv: work around Solaris bug
12570         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
12571         * lib/unsetenv.c (rpl_unsetenv): Work around it.
12572         Reported by Jim Meyering.
12573
12574         vasnprintf: avoid compiler warnings
12575         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
12576         variables.
12577         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
12578
12579 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12580
12581         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
12582         settings since xalloc-die is no longer the self test,
12583         xalloc-die.sh is.
12584
12585 2009-11-17  Jim Meyering  <meyering@redhat.com>
12586
12587         test-xalloc-die.sh: make the code agree with the commit log
12588         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
12589         at the end, just in case you happen to have a test-xalloc-die
12590         program in some other PATH directory.
12591
12592         test-xalloc-die.sh: fix a portability bug
12593         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
12594         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
12595         Otherwise, argv[0] (as often seen in diagnostics) would be too
12596         system-dependent, sometimes with, and sometimes without the leading "./".
12597
12598         version-etc-fsf: relax license to LGPLv3+
12599         * modules/version-etc-fsf (License): Relax license.
12600
12601 2009-11-16  Eric Blake  <ebb9@byu.net>
12602
12603         xalloc-die-tests: avoid printing null pointer
12604         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
12605         shell script.
12606         * tests/test-xalloc-die.c (program_name): Declare.
12607         * tests/test-xalloc-die.sh (tmpfiles): New file.
12608
12609         setenv, unsetenv: work around various bugs
12610         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
12611         (setenv) [HAVE_SETENV]: Work around bugs.
12612         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
12613         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
12614         for bugs.
12615         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
12616         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
12617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
12618         * modules/stdlib (Makefile.am): Update substitutions.
12619         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
12620         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
12621         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12622         * modules/setenv-tests: New test.
12623         * modules/unsetenv-tests: Likewise.
12624         * tests/test-setenv.c: New file.
12625         * tests/test-unsetenv.c: Likewise.
12626
12627 2009-11-16  Jim Meyering  <meyering@redhat.com>
12628
12629         version-etc: relax license to LGPLv3+
12630         * modules/version-etc (License): Relax license.
12631
12632         better AC_REQUIRE expanded-before-required-warning avoidance
12633         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
12634         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
12635         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
12636         which is no longer needed.
12637
12638 2009-11-16  Eric Blake  <ebb9@byu.net>
12639
12640         test-freading: clean up temporary file
12641         * tests/test-freading.c (main): Remove file on success, and use
12642         ASSERT more liberally.
12643         Reported by Jim Meyering.
12644
12645 2009-11-16  Jim Meyering  <meyering@redhat.com>
12646
12647         avoid new AC_REQUIRE expanded-before-required warnings
12648         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
12649         merely using it.
12650         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
12651         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
12652
12653 2009-11-15  Simon Josefsson  <simon@josefsson.org>
12654
12655         * tests/test-xalloc-die.c: New file.
12656         * modules/xalloc-die-tests: New file.
12657         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
12658         XFAIL_TESTS so it can be appended by modules.
12659
12660 2009-11-15  Simon Josefsson  <simon@josefsson.org>
12661
12662         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
12663         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
12664
12665 2009-11-14  Eric Blake  <ebb9@byu.net>
12666
12667         fnmatch: avoid compiler warning
12668         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
12669         to silence compiler warning about mismatch signedness in ?:.
12670         Reported by Robert Millan.
12671
12672         intprops: add double-inclusion guard
12673         * lib/intprops.h: Allow idempotent includes.
12674         Suggested by Bruce Korb.
12675
12676         openat: detect Solaris fchownat bug
12677         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
12678         penalizing glibc chownat when only lchownat is broken.
12679         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
12680         trailing slash bugs.
12681         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
12682         * modules/openat-tests (Files): Include more files.
12683         (Depends-on): Add mgetgroups, sleep, stat-time.
12684         (configure.ac): Add additional checks.
12685         (Makefile.am): Build new test.
12686         * tests/test-fchownat.c: New file.
12687
12688         lchown: detect Solaris and FreeBSD bug
12689         * lib/lchown.c (rpl_lchown): Work around bug.
12690         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
12691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12692         * modules/unistd (Makefile.am): Populate it.
12693         * lib/unistd.in.h (lchown): Update declaration.
12694         * doc/posix-functions/lchown.texi (lchown): Document the bug.
12695         * modules/lchown-tests: New file.
12696         * tests/test-lchown.h (test_lchown): Likewise.
12697         * tests/test-lchown.c (main): Likewise.
12698
12699         chown: detect Solaris and FreeBSD bug
12700         * lib/chown.c (rpl_chown): Work around bug.
12701         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
12702         (gl_PREREQ_CHOWN): Delete.
12703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12704         * modules/unistd (Makefile.am): Populate it.
12705         * lib/unistd.in.h (chown): Update declaration.
12706         * lib/lchown.c (chown): Update client.
12707         * modules/lchown (Depends-on): Add lstat.
12708         * doc/posix-functions/chown.texi (chown): Document the bug.
12709         * doc/posix-functions/getgroups.texi (getgroups): Document
12710         getgroups pitfall.
12711         * modules/chown-tests: New file.
12712         * tests/test-chown.h (test_chown): Likewise.
12713         * tests/test-chown.c (main): Likewise.
12714
12715 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
12716
12717         gnulib-tool: correctly detect absence of m4 directories
12718         * gnulib-tool: Avoid extra newline on data passed to wc -l.
12719
12720 2009-11-14  Jim Meyering  <meyering@redhat.com>
12721
12722         maint.mk: Prohibit inclusion of "xalloc.h" without use.
12723         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12724
12725 2009-11-14  John W. Eaton  <jwe@gnu.org>
12726
12727         strftime.h: wrap funtion declaration in extern "C" block
12728         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
12729
12730 2009-11-13  Eric Blake  <ebb9@byu.net>
12731
12732         getgroups: avoid compiler warning
12733         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
12734
12735         getgroups: work around FreeBSD bug
12736         * lib/getgroups.c (rpl_getgroups): Work around the bug.
12737         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
12738         * doc/posix-functions/getgroups.texi (getgroups): Document it.
12739         * tests/test-getgroups.c (main): Fix buffer overrun.
12740
12741         getgroups: avoid compilation failure
12742         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
12743         * modules/getgroups (Depends-on): Add stdint.
12744
12745 2009-11-13  Jim Meyering  <meyering@redhat.com>
12746
12747         test-getgroups: avoid compilation failure
12748         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
12749
12750 2009-11-13  Eric Blake  <ebb9@byu.net>
12751
12752         mgetgroups: new module, taken from coreutils
12753         * modules/mgetgroups: New file.
12754         * lib/mgetgroups.h: Likewise.
12755         * lib/mgetgroups.c (mgetgroups): Likewise.
12756         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
12757         * MODULES.html.sh (Users and groups): Mention it.
12758
12759         getgroups: don't expose GETGROUPS_T to user
12760         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
12761         an element at a time if GETGROUPS_T is wrong size.
12762         * lib/getugroups.h (getugroups): Change signature.
12763         * lib/unistd.in.h (getgroups): Likewise.
12764         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
12765         signature needs fixing.
12766         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
12767         AC_TYPE_GETGROUPS.
12768         * modules/group-member (Depends-on): Add getgroups.
12769         * lib/group-member.c (group_info, get_group_info): Use gid_t.
12770         (group_member): Rely on getgroups replacement.
12771         * lib/getugroups.c (getugroups): Use gid_t.
12772         * tests/test-getgroups.c (main): Likewise.
12773         * NEWS: Mention the signature change.
12774         * doc/posix-functions/getgroups.texi (getgroups): Mention the
12775         problem with signature.
12776         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
12777         GETGROUPS_T is still useful for setgroups.
12778
12779         getgroups, getugroups: provide stubs for mingw
12780         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
12781         * lib/getugroups.c (getugroups): Likewise.
12782         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
12783         function.  Modernize replacement scheme.
12784         (gl_PREREQ_GETGROUPS): Delete.
12785         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
12786         * modules/getgroups (configure.ac): Declare witness.
12787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12788         * modules/unistd (Depends-on): Substitute witness.
12789         * lib/unistd.in.h (getgroups): Declare replacement.
12790
12791         getgroups: avoid calling exit
12792         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
12793         drop xalloc.
12794         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
12795         dependencies.
12796         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
12797         exiting, in the rare case of malloc failure.
12798
12799         getgroups: fix logic error
12800         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
12801         has more than 20 groups.
12802         * modules/getgroups-tests: New test.
12803         * tests/test-getgroups.c: New file.
12804
12805 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12806
12807         * tests/test-base64.c: Improve.
12808
12809 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12810
12811         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
12812         Blake <ebb9@byu.net>.
12813
12814 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12815
12816         * tests/test-xvasprintf.c: Add %s%s related checks.
12817
12818 2009-11-12  Eric Blake  <ebb9@byu.net>
12819
12820         version-etc: match standards.texi style
12821         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
12822         and use <> only for URLs.
12823
12824 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
12825
12826         fts: do not fail on a submount during traversal
12827         * lib/fts.c (fts_build): Read the stat info again after opening
12828         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
12829         Original report at http://bugzilla.redhat.com/501848.
12830
12831 2009-11-12  Jim Meyering  <meyering@redhat.com>
12832
12833         bootstrap: sync from coreutils
12834         * build-aux/bootstrap (bootstrap_epilogue): New function.
12835         Use git_modules_config in one more place.  This make bootstrap's
12836         --gnulib-srcdir option more useful for testing.
12837
12838         bootstrap: generalize autoheader check
12839         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
12840         AC_CONFIG_HEADERS.
12841
12842 2009-11-11  Eric Blake  <ebb9@byu.net>
12843
12844         mkfifoat: use new modules for Solaris and BSD bugs
12845         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
12846         * lib/mkfifoat.c (mknodat): Split...
12847         * lib/mknodat.c (mknodat): ...into new file.
12848         * modules/mkfifoat (Files): Ship new file.
12849         (Depends-on): Add mkfifo, mknod.
12850         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
12851         (Depends-on): Add symlink.
12852         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
12853         redundant with test_mkfifo.h.
12854         (do_mkfifoat, do_mknodat): New helpers.
12855
12856         mknod: new module
12857         * modules/mknod: New file.
12858         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
12859         * lib/mknod.c (mknod): Likewise.
12860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12861         defaults.
12862         * modules/sys_stat (Makefile.am): Substitute them.
12863         * lib/sys_stat.in.h (mknod): Declare replacement.
12864         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12865         Document it.
12866         * doc/posix-functions/mknod.texi (mknod): Likewise.
12867         * modules/mknod-tests: New test.
12868         * tests/test-mknod.c: Likewise.
12869
12870         mkfifo: new module
12871         * modules/mkfifo: New file.
12872         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12873         * lib/mkfifo.c (mkfifo): Likewise.
12874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12875         defaults.
12876         * modules/sys_stat (Makefile.am): Substitute them.
12877         * lib/sys_stat.in.h (mkfifo): Declare replacement.
12878         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12879         Document it.
12880         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
12881         * modules/mkfifo-tests: New test.
12882         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
12883         from test-mkfifoat.c.
12884         * tests/test-mkfifo.c: New file.
12885
12886         readlink: detect FreeBSD bug
12887         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
12888         slash on symlink.
12889         * doc/posix-functions/readlink.texi (readlink): Document the bug.
12890         * tests/test-readlink.h (test_readlink): Enhance test.
12891
12892         symlink: detect FreeBSD bug
12893         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
12894         slash on symlink.
12895         * doc/posix-functions/symlink.texi (symlink): Document the bug.
12896         * tests/test-symlink.h (test_symlink): Enhance test.
12897
12898 2009-11-10  Eric Blake  <ebb9@byu.net>
12899
12900         link: detect FreeBSD bug
12901         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
12902         symlink.
12903         * doc/posix-functions/link.texi (link): Document the bug.
12904         * tests/test-link.h (test_link): Enhance test.
12905         * tests/test-linkat.c (main): Update caller.
12906
12907         unlink, remove: detect FreeBSD bug
12908         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
12909         slash on symlink.
12910         * doc/posix-functions/unlink.texi (unlink): Document the bug.
12911         * doc/posix-functions/remove.texi (remove): Likewise.
12912         * tests/test-unlink.h (test_unlink): Enhance test.
12913         * tests/test-remove.c (main): Likewise.
12914
12915 2009-11-09  Eric Blake  <ebb9@byu.net>
12916
12917         rename: detect FreeBSD bug
12918         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
12919         slash on symlink.
12920         * modules/renameat-tests (Depends-on): Add filenamecat.
12921         * tests/test-rename.h (test_rename): Allow one more errno.
12922         * tests/test-renameat.c (main): Likewise.
12923         * doc/posix-functions/rename.texi (rename): Document the bug.
12924
12925         open: detect FreeBSD bug
12926         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
12927         symlink.
12928         * doc/posix-functions/open.texi (open): Document the bug.
12929         * doc/posix-functions/utimes.texi (utimes): Likewise.
12930         * tests/test-open.h (test_open): Add parameters, and test symlink
12931         handling.
12932         * tests/test-open.c (main): Adjust caller.
12933         * tests/test-fcntl-safer.c (main): Likewise.
12934         * modules/open-tests (Depends-on): Add stdbool, symlink.
12935         * modules/fcntl-safer-tests (Depends-on): Likewise.
12936         * tests/test-openat.c (main): Add test-open tests.
12937
12938         stat: detect FreeBSD bug
12939         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
12940         symlink.
12941         * doc/posix-functions/stat.texi (stat): Document the bug.
12942         * tests/test-stat.h (test_stat_func): Add argument.
12943         * tests/test-stat.c (main): Adjust caller.
12944         * tests/test-fstatat.c (main): Likewise.
12945         * modules/stat-tests (Depends-on): Add stdbool, symlink.
12946         Reported by Jim Meyering.
12947
12948 2009-11-09  James Youngman  <jay@gnu.org>
12949
12950         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
12951         * lib/strftime.c: Correct placement of #include "ignore-value.h".
12952
12953 2009-11-08  Jim Meyering  <meyering@redhat.com>
12954
12955         utimens: remove invalid futimesat call
12956         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
12957         It used the file descriptor of the target file as the DIR_FD
12958         parameter and NULL as the file name.  That caused failure with
12959         errno == EFAULT on FreeBSD-8.0-rc2
12960
12961 2009-11-07  Eric Blake  <ebb9@byu.net>
12962
12963         fflush, freadseek: use fseeko, not fseek
12964         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12965         (clear_ungetc_buffer): Avoid potential problems on large files.
12966         * lib/freadseek.c (freadseek): Likewise.
12967         * modules/freadseek (Depends-on): Add fseeko.
12968         * modules/fseek (configure.ac): Set a witness.
12969         * tests/test-fflush.c (main): Use fseeko.
12970         * tests/test-fpurge.c (fseek): Disable link warning.
12971         * tests/test-freadable.c (fseek): Likewise.
12972         * tests/test-freading.c (fseek): Likewise.
12973         * tests/test-fseeko.c (fseek): Likewise.
12974         * tests/test-ftell.c (fseek): Likewise.
12975         * tests/test-ftello.c (fseek): Likewise.
12976         * tests/test-fwritable.c (fseek): Likewise.
12977         * tests/test-fwriting.c (fseek): Likewise.
12978
12979 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12980
12981         * modules/memchr (Depends-on): Drop getpagesize dependency.
12982
12983 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12984
12985         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
12986         Reported by Ludovic Courtès.
12987         * build-aux/pmccabe2html: Improve example usage.
12988         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
12989
12990 2009-11-06  Jim Meyering  <meyering@redhat.com>
12991
12992         do-release-commit-and-tag: New module.
12993         Automate the release-commit and tag process.
12994         * build-aux/do-release-commit-and-tag: New script, from coreutils.
12995         * modules/do-release-commit-and-tag: New file.
12996         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12997
12998 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12999
13000         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13001         because test-select.c uses inet_pton.
13002
13003 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13004
13005         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13006         GETADDRINFO_LIB.  Bump serial number.
13007         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13008         Suggested by Eric Blake <ebb9@byu.net>.
13009
13010 2009-11-05  Eric Blake  <ebb9@byu.net>
13011
13012         strtod: detect darwin bug
13013         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13014         Reported by Leo Davis.
13015
13016         freopen-safer: new module
13017         * modules/freopen-safer: New module.
13018         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13019         * lib/freopen-safer.c (freopen_safer): New file.
13020         * lib/stdio-safer.h (freopen_safer): New declaration.
13021         * lib/stdio--.h (freopen): New override.
13022         * MODULES.html.sh (File stream based Input/Output): Mention it.
13023         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13024         freopen-safer module.
13025         * doc/posix-functions/stderr.texi (stderr): Likewise.
13026         * doc/posix-functions/stdin.texi (stdin): Likewise.
13027         * doc/posix-functions/stdout.texi (stdout): Likewise.
13028         * modules/freopen-safer-tests: New test.
13029         * tests/test-reopen-safer.c: New file.
13030
13031 2009-11-05  Jim Meyering  <meyering@redhat.com>
13032
13033         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13034         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13035
13036 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13037
13038         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13039
13040 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13041
13042         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13043
13044 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13045
13046         Fix link error.
13047         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13048         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13049
13050 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13051
13052         * tests/test-func.c: Also test value of __func__.
13053
13054 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13055
13056         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13057         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13058
13059 2009-11-05  Bruno Haible  <bruno@clisp.org>
13060
13061         Fix link error.
13062         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13063         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13064         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13065
13066 2009-11-05  Bruno Haible  <bruno@clisp.org>
13067
13068         Tests for module 'inet_pton'.
13069         * modules/inet_pton-tests: New file.
13070         * tests/test-inet_pton.c: New file.
13071
13072 2009-11-05  Bruno Haible  <bruno@clisp.org>
13073
13074         Tests for module 'inet_ntop'.
13075         * modules/inet_ntop-tests: New file.
13076         * tests/test-inet_ntop.c: New file.
13077
13078 2009-11-04  Eric Blake  <ebb9@byu.net>
13079
13080         stdlib-safer: wrap all mkstemp variants
13081         * modules/mkostemp (configure.ac): Set witness.
13082         * modules/mkostemps (configure.ac): Likewise.
13083         * modules/mkstemps (configure.ac): Likewise.
13084         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13085         (mkstemps_safer): Wrap more functions.
13086         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13087         wrapping.
13088         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13089         (mkstemps_safer): Implement the wrappers.
13090
13091         mkstemps, mkostemps: new modules
13092         * modules/mkostemps: New module.
13093         * modules/mkstemps: Likewise.
13094         * lib/mkostemps.c (mkostemps): New file.
13095         * lib/mkstemps.c (mkstemps): Likewise.
13096         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13097         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13099         * modules/stdlib (Makefile.am): Substitute them.
13100         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13101         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13102         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13103         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13104         * MODULES.html.sh (File system functions): Mention them.
13105
13106         tempname: resync from glibc
13107         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13108         same values for __GT_FILE as glibc.  Abort even when assertions
13109         are disabled.
13110         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13111         match its value otherwise.  Allow idempotent inclusion.
13112         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13113         * lib/mkostemp.c (mkostemp): Likewise.
13114         * lib/mkstemp.c (mkstemp): Likewise.
13115         * lib/tmpfile.c (tmpfile): Likewise.
13116         * NEWS: Document this.
13117
13118         utimens: fix use of futimens on older Linux
13119         * lib/utimens.c (fdutimens): Use updated, rather than original,
13120         timespec to avoid bug in older Linux kernel.
13121         Reported by Simon Josefsson.
13122
13123 2009-11-04  Bruno Haible  <bruno@clisp.org>
13124
13125         Make num_processors more flexible and consistent.
13126         * lib/nproc.h (enum nproc_query): New type.
13127         (num_processors): Add a 'query' argument.
13128         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13129         (num_processors): Add a 'query' argument. Test the value of the
13130         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13131         mingw, count the number of CPUs available for the current process.
13132         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13133         Check for sched_getaffinity and sched_getaffinity_np.
13134         * modules/nproc (Depends-on): Add c-ctype, extensions.
13135         * NEWS: Mention the change.
13136
13137 2009-11-03  Bruno Haible  <bruno@clisp.org>
13138
13139         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13140
13141 2009-11-03  Jim Meyering  <meyering@redhat.com>
13142
13143         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13144         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13145         if it is defined.
13146
13147 2009-11-02  Eric Blake  <ebb9@byu.net>
13148
13149         mktime, timegm: share common declaration
13150         * lib/mktime-internal.h: New file.
13151         * lib/mktime.c: Use it rather than open-coding a declaration.
13152         * lib/timegm.c: Likewise.
13153         * modules/mktime (Files): Ship it.
13154         * modules/timegm (Files): Likewise.
13155         Suggested by Bruno Haible.
13156
13157         test-update-copyright: update test to match script changes
13158         * tests/test-update-copyright.sh: Avoid hard-coding perl
13159         location.  Don't update *.bak created by earlier runs.
13160
13161 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13162             Simon Josefsson  <simon@josefsson.org>
13163             Bruno Haible  <bruno@clisp.org>
13164
13165         Fix link error on Solaris 8.
13166         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13167         also in libnsl. Define also INET_PTON_LIB.
13168         * modules/inet_pton (Link): New section.
13169
13170 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13171             Bruno Haible  <bruno@clisp.org>
13172
13173         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13174         * modules/inet_ntop (Link): New section.
13175         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13176
13177 2009-11-02  Eric Blake  <ebb9@byu.net>
13178
13179         maint: avoid compiler warnings in m4 macros
13180         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13181         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13182
13183 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13184
13185         * m4/pmccabe2html.m4: Remove file.
13186         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13187         function.  Change maintainer.
13188         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13189         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13190         Courtès).
13191
13192 2009-10-31  Eric Blake  <ebb9@byu.net>
13193
13194         fseeko: fix m4 regression
13195         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13196         regression from 2009-10-27.
13197         Reported by Ralf Wildenhues.
13198
13199 2009-10-31  Jim Meyering  <meyering@redhat.com>
13200
13201         inttostr: aesthetics and improved (compile-time) safety
13202         Define inttype_is_signed rather than inttype_is_unsigned,
13203         since the sole use is via "#if inttype_is_signed".
13204         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13205         inttype_is_unsigned.
13206         * lib/offtostr.c (inttype_is_signed): Likewise.
13207         * lib/uinttostr.c (inttype_is_signed): Likewise.
13208         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13209         * lib/inttostr.c (inttostr): Use verify to cross-check the
13210         inttype_is_signed value and the signedness of the actual type.
13211         * modules/inttostr (Depends-on): Add verify.
13212
13213 2009-10-30  Eric Blake  <ebb9@byu.net>
13214
13215         build: avoid compiler warnings
13216         * lib/fchmodat.c (lchmod): Mark unused variables.
13217         * lib/getopt.c (_getopt_initialize): Likewise.
13218         * lib/mktime.c (__mktime_internal): Provide prototype.
13219         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13220         older gcc that do not understand #pragma GCC diagnostic.
13221         * lib/uinttostr.c (inttype_is_unsigned): Define.
13222         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13223
13224 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13225
13226         stat: fix compilation on AIX
13227         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13228         only see struct stat64.
13229
13230 2009-10-30  Eric Blake  <ebb9@byu.net>
13231
13232         exclude: make more robust
13233         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13234         rather than masking a coding bug.
13235         Suggested by Bruno Haible.
13236
13237 2009-10-30  Jim Meyering  <meyering@redhat.com>
13238
13239         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13240         Rather than putting #!/usr/bin/perl on the first line,
13241         start with a variant of what's recommended by "man perlrun" that
13242         invokes the first "perl" program from your shell's search path.
13243         * build-aux/gitlog-to-changelog: Replace #!... as above.
13244         Add a "Local Variables" perl mode setting.
13245         Prompted by a patch from Ludovic Courtès.
13246         Improved by Eric Blake.
13247         * build-aux/useless-if-before-free: Likewise.
13248         * build-aux/announce-gen: Likewise.
13249         * build-aux/update-copyright: Likewise.
13250
13251 2009-10-29  Eric Blake  <ebb9@byu.net>
13252
13253         filenamecat-lgpl: adjust clients
13254         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13255         filenamecat.
13256         * modules/renameat (Depends-on): Likewise.
13257
13258         filenamecat: split into filenamecat-lgpl
13259         * modules/filenamecat-lgpl: New module.
13260         * modules/filenamecat (Files): Move library-safe files into
13261         filenamecat-lgpl.
13262         (Depends-on): Add filenamecat-lgpl.
13263         (configure.ac): Declare witness.
13264         * lib/filenamecat.h (file_name_concat): Only declare when using
13265         GPL module.
13266         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13267         Move...
13268         * lib/filenamecat-lgpl.c: ...into new file.
13269         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13270         (gl_FILE_NAME_CONCAT): Use it.
13271         * MODULES.html.sh (File system functions): Mention new module.
13272
13273         argp: avoid memory leak
13274         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13275         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13276         base_name, since the latter malloc()s and can call exit().
13277         Leak introduced 2006-07-03.
13278
13279         dirname-lgpl: adjust clients that don't need full dirname
13280         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13281         * modules/filenamecat (Depends-on): Likewise.
13282         * modules/linkat (Depends-on): Likewise.
13283         * modules/mkancesdirs (Depends-on): Likewise.
13284         * modules/mkdir (Depends-on): Likewise.
13285         * modules/openat (Depends-on): Likewise.
13286         * modules/savewd (Depends-on): Likewise.
13287         * modules/rename (Depends-on): Likewise.
13288         (License): Relax license.
13289         * modules/mkdir-tests (Depends-on): Drop progname.
13290         (Makefile.am): Delete unneeded LDADD.
13291         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13292
13293         dirname: split into dirname-lgpl
13294         * modules/dirname-lgpl: New module.
13295         * modules/dirname (Files): Move library-safe files into
13296         dirname-lgpl.
13297         (Depends-on): Add dirname-lgpl.
13298         (configure.ac): Declare witness.
13299         * modules/double-slash-root (License): Relax license.
13300         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13301         module.
13302         * lib/dirname.c (dir_len, mdir_name): Move...
13303         * lib/dirname-lgpl.c: ...into new file.
13304         * lib/basename.c (last_component, base_len): Move...
13305         * lib/basename-lgpl.c: ...into new file.
13306         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13307         (gl_DIRNAME): Use it.
13308         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13309         Mention new module.
13310         * modules/dirname-tests (Depends-on): Add progname.
13311         * tests/test-dirname.c (program_name): Delete.
13312
13313         mkdir: make safe for libraries
13314         * modules/mkdir (Depends-on): Drop xalloc.
13315         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13316         exit.
13317
13318         tests: avoid some compiler warnings
13319         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13320         literals.
13321         * tests/test-memchr.c (main): Avoid type mismatch.
13322         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13323         * tests/test-base64.c (main): Likewise.
13324         * tests/test-getdelim.c (main): Likewise.
13325         * tests/test-gethostname.c (main): Likewise.
13326         * tests/test-getline.c (main): Likewise.
13327         * tests/test-netinet_in.c (main): Likewise.
13328         * tests/test-select.c (open_server_socket, main): Likewise.
13329         * tests/test-select-stdin.c (main): Likewise.
13330         * tests/test-sockets.c (main): Likewise.
13331         * tests/test-strsignal.c (main): Likewise.
13332         * tests/test-sys_select.c (main): Likewise.
13333         * tests/test-sys_socket.c (main): Likewise.
13334         * tests/test-u64.c (main): Likewise.
13335         * tests/test-xfprintf-posix.c (main): Likewise.
13336         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13337
13338         sockets: avoid compiler warning
13339         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13340
13341         maint: detect usage(1) and other suspicious exits
13342         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13343
13344 2009-10-29  Jim Meyering  <meyering@redhat.com>
13345
13346         timespec: long-to-int truncation could make timespec_cmp malfunction
13347         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13348         a multiple of 2^32 nanoseconds as no difference.
13349
13350 2009-10-28  Jim Meyering  <meyering@redhat.com>
13351
13352         fprintftime: wrap macro code argument in "do {...} while(0)"
13353         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13354         cpy macro must be a statement that can be followed by a semicolon.
13355         Now that the else clause contains a comment and is hence longer
13356         than one line, I require curly braces.  That in turn requires
13357         that we wrap this code block in the standard do...while(0).
13358
13359         fprintftime: remove stray semicolon from previous change
13360         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13361
13362         fprintftime: avoid a warning about ignored fwrite return value
13363         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13364         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13365         that is unsafe.
13366         * modules/fprintftime (Depends-on): Add ignore-value.
13367
13368         exclude: avoid an unwarranted warning
13369         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13370
13371 2009-10-27  Eric Blake  <ebb9@byu.net>
13372
13373         fseek: avoid compilation failure when fflush is replaced
13374         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13375         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13376         module is in use.
13377         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13378         module is not in use; since REPLACE_FSEEK worked otherwise.
13379         (GNULIB_FTELLO): Likewise for ftell.
13380         Reported by Ian Beckwith and others.
13381
13382 2009-10-27  Bruno Haible  <bruno@clisp.org>
13383
13384         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13385         Reported by Jim Meyering.
13386
13387 2009-10-27  Jim Meyering  <jim@meyering.net>
13388             Bruno Haible  <bruno@clisp.org>
13389
13390         Avoid warning despite dropping the return value of fwrite.
13391         * lib/unicodeio.c: Include ignore-value.h.
13392         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13393         * modules/unicodeio (Depends-on): Add ignore-value.
13394
13395 2009-10-26  Eric Blake  <ebb9@byu.net>
13396
13397         areadlinkat: fix fallback path
13398         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13399         pointer and zero.
13400
13401 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13402
13403         Use a better IO block size for modern systems
13404         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13405         * lib/md2.c: Likewise.
13406         * lib/md4.c: Likewise.
13407         * lib/md5.c: Likewise.
13408         * lib/sha1.c: Likewise.
13409         * lib/sha256.c: Likewise.
13410         * lib/sha512.c: Likewise.
13411
13412 2009-10-22  Eric Blake  <ebb9@byu.net>
13413
13414         tests: avoid several compiler warnings
13415         * tests/test-getcwd.c (main): Avoid buffer underflow.
13416         * tests/test-getdate.c (main): String literals are not safe with
13417         putenv, so use setenv.  Declare unused argument.
13418         * modules/getdate-tests (Depends-on): Add setenv.
13419         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13420         problems with string literals in char *.
13421         * tests/test-hash.c (main): Avoid shadowing declaration.
13422         (insert_new): Treat string literals as char const *.
13423         * tests/test-getopt.h (test_getopt): Likewise.
13424         (getopt_loop): Alter types to minimize casting elsewhere.
13425         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13426         (test_getopt_long_posix): Likewise.
13427         (do_getopt_long): Add wrapper to minimize casting.
13428         * tests/test-atexit.c (clear_temp_file): Use void.
13429         * tests/test-areadlink-with-size.c (main): Declare unused
13430         arguments.
13431         * tests/test-areadlink.c (main): Likewise.
13432         * tests/test-areadlinkat-with-size.c (main): Likewise.
13433         * tests/test-areadlinkat.c (main): Likewise.
13434         * tests/test-canonicalize-lgpl.c (main): Likewise.
13435         * tests/test-canonicalize.c (main): Likewise.
13436         * tests/test-dirent-safer.c (main): Likewise.
13437         * tests/test-dirname.c (main): Likewise.
13438         * tests/test-dup2.c (main): Likewise.
13439         * tests/test-fchdir.c (main): Likewise.
13440         * tests/test-fcntl-h.c (main): Likewise.
13441         * tests/test-fcntl-safer.c (main): Likewise.
13442         * tests/test-fdopendir.c (main): Likewise.
13443         * tests/test-fdutimensat.c (main): Likewise.
13444         * tests/test-fflush.c (main): Likewise.
13445         * tests/test-filenamecat.c (main): Likewise.
13446         * tests/test-filevercmp.c (main): Likewise.
13447         * tests/test-fopen-safer.c (main): Likewise.
13448         * tests/test-fopen.c (main): Likewise.
13449         * tests/test-fpending.c (main): Likewise.
13450         * tests/test-fpurge.c (main): Likewise.
13451         * tests/test-freading.c (main): Likewise.
13452         * tests/test-fstatat.c (main): Likewise.
13453         * tests/test-fsync.c (main): Likewise.
13454         * tests/test-futimens.c (main): Likewise.
13455         * tests/test-getndelim2.c (main): Likewise.
13456         * tests/test-gettimeofday.c (main): Likewise.
13457         * tests/test-getopt.c (main): Likewise.
13458         * tests/test-i-ring.c (main): Likewise.
13459         * tests/test-inttypes.c (main): Likewise.
13460         * tests/test-link.c (main): Likewise.
13461         * tests/test-lstat.c (main): Likewise.
13462         * tests/test-math.c (main): Likewise.
13463         * tests/test-md5.c (main): Likewise.
13464         * tests/test-memchr2.c (main): Likewise.
13465         * tests/test-memrchr.c (main): Likewise.
13466         * tests/test-mkdir.c (main): Likewise.
13467         * tests/test-mkdirat.c (main): Likewise.
13468         * tests/test-mkfifoat.c (main): Likewise.
13469         * tests/test-open.c (main): Likewise.
13470         * tests/test-openat-safer.c (main): Likewise.
13471         * tests/test-openat.c (main): Likewise.
13472         * tests/test-quotearg.c (main): Likewise.
13473         * tests/test-rawmemchr.c (main): Likewise.
13474         * tests/test-readlink.c (main): Likewise.
13475         * tests/test-remove.c (main): Likewise.
13476         * tests/test-rename.c (main): Likewise.
13477         * tests/test-renameat.c (main): Likewise.
13478         * tests/test-rmdir.c (main): Likewise.
13479         * tests/test-sha1.c (main): Likewise.
13480         * tests/test-signal.c (main): Likewise.
13481         * tests/test-sigaction.c (main): Likewise.
13482         * tests/test-stat.c (main): Likewise.
13483         * tests/test-stat-time.c (main): Likewise.
13484         * tests/test-stddef.c (main): Likewise.
13485         * tests/test-stdint.c (main): Likewise.
13486         * tests/test-stdio.c (main): Likewise.
13487         * tests/test-stdlib.c (main): Likewise.
13488         * tests/test-strchrnul.c (main): Likewise.
13489         * tests/test-strerror.c (main): Likewise.
13490         * tests/test-string.c (main): Likewise.
13491         * tests/test-strtod.c (main): Likewise.
13492         * tests/test-strverscmp.c (main): Likewise.
13493         * tests/test-symlink.c (main): Likewise.
13494         * tests/test-symlinkat.c (main): Likewise.
13495         * tests/test-sys_stat.c (main): Likewise.
13496         * tests/test-sys_time.c (main): Likewise.
13497         * tests/test-time.c (main): Likewise.
13498         * tests/test-unistd.c (main): Likewise.
13499         * tests/test-unlink.c (main): Likewise.
13500         * tests/test-unlinkat.c (main): Likewise.
13501         * tests/test-utimens.c (main): Likewise.
13502         * tests/test-utimensat.c (main): Likewise.
13503         * tests/test-version-etc.c (main): Likewise.
13504         * tests/test-wchar.c (main): Likewise.
13505         * tests/test-wctype.c (main): Likewise.
13506         * tests/test-xprintf-posix.c (main): Likewise.
13507         * tests/test-posixtm.c (main): Likewise.
13508         (STREQ): Delete unused macro.
13509         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13510         shadowed variables.
13511         * tests/test-memchr.c (main): Likewise.
13512
13513 2009-10-21  Eric Blake  <ebb9@byu.net>
13514
13515         areadlinkat: avoid failure on older glibc
13516         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13517         rather than mis-comparing 0 against FUNC_RESULT of char*.
13518
13519 2009-10-21  Bruno Haible  <bruno@clisp.org>
13520
13521         * modules/stpncpy (License): Relicense under LGPLv2+.
13522         Reported by David Lutterkort <lutter@redhat.com>.
13523
13524 2009-10-20  Eric Blake  <ebb9@byu.net>
13525
13526         utimensat: work around Solaris 9 bug
13527         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13528         has trailing slash bugs.
13529         * tests/test-lutimens.h (test_lutimens): Enhance test.
13530         * tests/test-utimens.h (test_utimens): Likewise.
13531         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13532         * doc/posix-functions/utimes.texi (utimes): Likewise.
13533         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13534         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13535         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13536         * doc/posix-functions/futimens.texi (futimens): Likewise.
13537
13538         fdutimensat: new module
13539         * modules/fdutimensat: New file.
13540         * lib/fdutimensat.c (fdutimensat): Likewise.
13541         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13542         * MODULES.html.sh (File system functions): Mention module.
13543         * modules/fdutimensat-tests: New test.
13544         * tests/test-fdutimensat.c: Likewise.
13545
13546         doc: regenerate INSTALL
13547         * doc/INSTALL: Reflect recent autoconf update.
13548         * doc/INSTALL.ISO: Likewise.
13549         * doc/INSTALL.UTF-8: Likewise.
13550
13551 2009-10-20  Pádraig Brady  <P@draigBrady.com>
13552
13553         acl: warn if ACL support is not detected
13554         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
13555
13556 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
13557
13558         * lib/nproc.h: Add extern "C" block for C++.
13559
13560 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
13561             Bruno Haible  <bruno@clisp.org>
13562
13563         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
13564         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
13565         * doc/posix-functions/isalpha.texi: Likewise.
13566         * doc/posix-functions/isblank.texi: Likewise.
13567         * doc/posix-functions/iscntrl.texi: Likewise.
13568         * doc/posix-functions/isdigit.texi: Likewise.
13569         * doc/posix-functions/isgraph.texi: Likewise.
13570         * doc/posix-functions/islower.texi: Likewise.
13571         * doc/posix-functions/isprint.texi: Likewise.
13572         * doc/posix-functions/ispunct.texi: Likewise.
13573         * doc/posix-functions/isspace.texi: Likewise.
13574         * doc/posix-functions/isupper.texi: Likewise.
13575         * doc/posix-functions/isxdigit.texi: Likewise.
13576
13577 2009-10-18  Bruno Haible  <bruno@clisp.org>
13578
13579         Tests for module 'isblank'.
13580         * modules/isblank-tests: New file.
13581         * tests/test-isblank.c: New file.
13582
13583         New module 'isblank'.
13584         * lib/isblank.c: New file.
13585         * m4/isblank.m4: New file.
13586         * modules/isblank: New file.
13587         * doc/posix-functions/isblank.texi: Mention the new module.
13588
13589 2009-10-18  Bruno Haible  <bruno@clisp.org>
13590
13591         New module 'ctype'.
13592         * lib/ctype.in.h: New file.
13593         * m4/ctype.m4: New file.
13594         * modules/ctype: New file.
13595         * doc/posix-headers/ctype.texi: Mention the new module.
13596
13597 2009-10-18  Jim Meyering  <meyering@redhat.com>
13598
13599         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
13600         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
13601         right after its initialization, rather than farther down.
13602         Keeping these in close proximity makes it easier to ensure
13603         that each such variable is initialized.  E.g.,
13604
13605             LIB_CLOCK_GETTIME=
13606             AC_SUBST([LIB_CLOCK_GETTIME])
13607
13608         This change also increments these serial numbers.
13609         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
13610         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13612
13613 2009-10-18  Bruno Haible  <bruno@clisp.org>
13614
13615         Don't let environment variables perturb build.
13616         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
13617         (gl_PREREQ_GETHRXTIME): ... not here.
13618
13619 2009-10-18  Bruno Haible  <bruno@clisp.org>
13620
13621         Avoid symlink attack in localcharset module.
13622         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
13623         (O_NOFOLLOW): Define fallback.
13624         (get_charset_aliases): Don't open the file if it is a symbolic link.
13625         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
13626         gl_FCNTL_H.
13627         (gl_FCNTL_H): Require it.
13628         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
13629         * modules/localcharset (Files): Add m4/fcntl_h.m4.
13630         Reported by Fergal Glynn <fglynn@veracode.com>.
13631
13632 2009-10-18  Bruno Haible  <bruno@clisp.org>
13633
13634         Implement nproc for mingw.
13635         * lib/nproc.c: Include <windows.h>
13636         (num_processors): On native Windows platforms, try GetSystemInfo.
13637
13638 2009-10-18  Bruno Haible  <bruno@clisp.org>
13639
13640         Implement nproc for IRIX.
13641         * lib/nproc.c: Include <sys/sysmp.h>.
13642         (num_processors): On IRIX systems, try sysmp.
13643         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
13644
13645 2009-10-18  Bruno Haible  <bruno@clisp.org>
13646
13647         Implement nproc for HP-UX.
13648         * lib/nproc.c: Include <sys/pstat.h>
13649         (num_processors): On HP-UX systems, try pstat_getdynamic.
13650         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
13651         pstat_getdynamic.
13652
13653 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
13654             Bruno Haible  <bruno@clisp.org>
13655
13656         Implement nproc for NetBSD, OpenBSD.
13657         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
13658         (ARRAY_SIZE): New macro.
13659         (num_processors): On BSD systems, try sysctl of HW_NCPU.
13660         * m4/nproc.m4: New file.
13661         * modules/nproc (Files): Add m4/nproc.m4.
13662         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
13663         (Makefile.am): Instead, augment lib_SOURCES.
13664
13665 2009-10-18  Bruno Haible  <bruno@clisp.org>
13666
13667         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
13668         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
13669         sys/param.h.
13670
13671 2009-10-16  Eric Blake  <ebb9@byu.net>
13672
13673         utimensat: new module
13674         * modules/utimensat: New file.
13675         * lib/utimensat.c (utimensat): Likewise.
13676         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13677         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
13678         so we can work around Linux bugs.
13679         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13680         * modules/sys_stat (Makefile.am): Substitute them.
13681         * lib/sys_stat.in.h (utimensat): Declare it.
13682         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13683         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13684         * modules/utimensat-tests: New test.
13685         * tests/test-utimensat.c: Likewise.
13686
13687         utimens: let lutimens work on non-symlinks
13688         * lib/utimens.c (lutimens): Fall back to utimens rather than
13689         failing with ENOSYS, when file is not a symlink.
13690         (utimens): Reduce redirection.
13691         * tests/test-lutimens.h (test_lutimens): Update test to cover
13692         non-symlinks.
13693         * tests/test-utimens.h (test_utimens): Update test to cover
13694         symlinks.
13695         * tests/test-utimens.c (main): Update caller.
13696
13697         utimens: cache whether utimensat syscall works
13698         * lib/utimens.c (utimensat_works_really): New cache variable.
13699         (fdutimens, lutimens): Use it to avoid failing syscall.
13700
13701         test-stat-time, test-utimens: improve portability
13702         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
13703         ext4 on alpha, and for cygwin.
13704         * tests/test-utimens-common.h: New file.
13705         (nap): Factor delays into single function.
13706         * tests/test-lutimens.h (test_lutimens): Use new header.
13707         * tests/test-futimens.h (test_futimens): Likewise.
13708         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
13709         timestamps to occur from same machine, as was done previously for
13710         test_utimens.
13711         * modules/utimens-tests (Files): Ship new file.
13712         * modules/futimens-tests (Files): Likewise.
13713         Reported in part by Jim Meyering.
13714
13715         sys_stat: sort replacement declarations
13716         * lib/sys_stat.in.h: Sort declarations.
13717         * lib/futimens.c (futimens): Fix typo.
13718
13719 2009-10-15  Jim Meyering  <meyering@redhat.com>
13720
13721         don't let environment settings perturb build
13722         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
13723         could cause a configure-time and/or build-time malfunction.
13724         Typically, a configure-time function-in-library test is performed
13725         via code like this:
13726
13727           LIB_VAR=
13728           AC_SUBST([LIB_VAR])
13729           prefix_saved_LIBS=$LIBS
13730             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
13731                        [test "$ac_cv_search_FUNC" = "none required" ||
13732                         LIB_VAR=$ac_cv_search_FUNC])
13733           LIBS=$prefix_saved_LIBS
13734
13735         However, in each of the files affected by this change, the LIB_VAR=
13736         initialization was omitted.  Thus, when set in the environment, its
13737         value would propagate into generated Makefiles when FUNC is not found
13738         in LIB_NAME.
13739         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
13740         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13742
13743 2009-10-14  Eric Blake  <ebb9@byu.net>
13744
13745         fchdir: avoid infinite recursion in mingw
13746         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
13747         recursing.
13748
13749         test-stat-time: port to mingw
13750         * tests/test-stat-time.c (force_unlink): Return a value.
13751         (test_ctime) [W32]: Fix compilation error.
13752         (nap): Don't call usleep with too large an argument.  Use
13753         force_unlink.
13754         * doc/pastposix-functions/usleep.texi (usleep): Document the
13755         portability issue.
13756
13757 2009-10-13  Jim Meyering  <meyering@redhat.com>
13758
13759         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
13760         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
13761         * modules/pipe-filter-ii: Likewise.
13762         * modules/sys_socket-tests: Likewise.
13763         * modules/tsearch-tests: Likewise.
13764         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
13765         (check): Depend on it.
13766
13767 2009-10-12  Eric Blake  <ebb9@byu.net>
13768
13769         utimens-tests: port to NFS file systems
13770         * tests/test-utimens.h (test_utimens): Refactor utimecmp
13771         comparisons to avoid spurious failures from timestamp drift
13772         between NFS machines.
13773
13774 2009-10-12  Eric Blake  <ebb9@byu.net>
13775
13776         stat-time-tests: minor cleanups
13777         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
13778         * tests/test-stat-time.c (nap): Separate assignment from call.
13779         Suggested by Paolo Bonzini and Bruno Haible.
13780
13781         sys_stat: guarantee struct timespec
13782         * lib/sys_stat.in.h (includes): Always include <time.h>
13783         * modules/sys_stat (Depends-on): Add time.
13784         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
13785         mode_t permission values.
13786         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
13787         get at subsecond timestamps.
13788
13789 2009-10-10  Eric Blake  <ebb9@byu.net>
13790
13791         futimens: new module
13792         * modules/futimens: New file.
13793         * lib/futimens.c (futimens): Likewise.
13794         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
13795         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
13796         we can work around Linux bugs.
13797         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13798         * modules/sys_stat (Makefile.am): Substitute them.
13799         * lib/sys_stat.in.h (futimens): Declare it.
13800         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13801         * doc/posix-functions/futimens.texi (futimens): Likewise.
13802         * modules/futimens-tests: New test.
13803         * tests/test-futimens.c: Likewise.
13804
13805         utimens: introduce fdutimens
13806         * lib/utimens.h (fdutimens): New prototype.
13807         * lib/utimens.c (gl_futimens): Move guts...
13808         (fdutimens): ...to new interface.
13809         * tests/test-utimens.c (do_fdutimens): Use it.
13810
13811         utimens: add UTIME_NOW and UTIME_OMIT support
13812         * lib/utimens.c (validate_timespec, update_timespec): New helper
13813         functions.
13814         (gl_futimens, lutimens): Use them.
13815         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
13816         stdbool, sys_stat.
13817         (Link): Mention resulting library dependency.
13818         * modules/utimecmp (Link): Likewise.
13819         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
13820         (Makefile.am): Pick up library dependency.
13821         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
13822         definition.
13823         * tests/test-sys_stat.c: Test the definitions.
13824         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
13825         * NEWS: Document library dependency.
13826
13827         utimecmp: support symlink timestamps
13828         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
13829         hashing when possible.  Use pathconf when available.
13830         (SYSCALL_RESOLUTION): Recognize tighter resolution.
13831         * modules/utimecmp (Depends-on): Add lstat.
13832
13833         utimens: add lutimens interface
13834         * lib/utimens.c (lutimens): New function.
13835         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
13836         * lib/utimens.h (lutimens): Declare new interface.
13837         * tests/test-utimens.c (main): Enhance test.
13838         * tests/test-lutimens.h (test_lutimens): New file.
13839         * modules/utimens-tests (Files): Distribute it.
13840         (Depends-on): Add symlink.
13841         (configure.ac): Check for usleep.
13842
13843         utimens: validate futimens usage
13844         * lib/utimens.c (gl_futimens): Require valid fd up front, using
13845         fewer syscalls on failure later on.  Avoid compiler warning on
13846         mingw.
13847         * modules/utimens (Depends-on): Add dup2.
13848
13849         utimens: add test
13850         * modules/utimens-tests: New test.
13851         * tests/test-utimens.h: New file.
13852         * tests/test-futimens.h: Likewise.
13853         * tests/test-utimens.c: Likewise.
13854
13855         doc: mention timestamp portability issues
13856         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
13857         instead.
13858         * doc/posix-functions/utime.texi (utime): Likewise.
13859         * doc/posix-functions/utimes.texi (utimes): Likewise.
13860         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
13861         instead.
13862         * doc/posix-functions/futimens.texi (futimens): Mention utimens
13863         module.
13864         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13865         Mention weakness with symlink timestamps.
13866         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
13867         to utimensat/futimens instead.
13868         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
13869
13870         test-dup2: enhance test
13871         * tests/test-dup2.c (main): Also check AT_FDCWD.
13872
13873         test-stat-time: avoid more spurious failures
13874         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
13875         xfs; and avoid race if the two timestamps cross quantization edge.
13876
13877         relocatable: prefer 'file system' over 'filesystem'
13878         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
13879         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
13880         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
13881         * doc/relocatable.texi (Enabling Relocatability): Likewise.
13882         * lib/relocatable.c (compute_curr_prefix): Likewise.
13883
13884 2009-10-10  Jim Meyering  <meyering@redhat.com>
13885
13886         stat-time-tests: check for the usleep function
13887         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
13888
13889 2009-10-10  Bruno Haible  <bruno@clisp.org>
13890
13891         * modules/xnanosleep: Put the Link section after the Include section.
13892
13893 2009-10-09  Eric Blake  <ebb9@byu.net>
13894
13895         dup2: work around FreeBSD 6.1 bug
13896         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
13897         * doc/posix-functions/dup2.texi (dup2): Document it.
13898         Reported by Nelson H. F. Beebe and Jim Meyering.
13899
13900         test-stat-time: port to buggy NFS clients
13901         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
13902         (test_ctime): Also skip test if mtime and ctime are skewed.
13903
13904         maint: prefer 'file system' over 'filesystem'
13905         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13906         * doc/posix-functions/lstat.texi (lstat): Likewise.
13907         * lib/file-has-acl.c (file_has_acl): Likewise.
13908         * lib/fwriteerror.c [TEST]: Likewise.
13909         * tests/test-areadlink.h (test_areadlink): Likewise.
13910         * tests/test-areadlinkat-with-size.c (main): Likewise.
13911         * tests/test-areadlinkat.c (main): Likewise.
13912         * tests/test-canonicalize-lgpl.c (main): Likewise.
13913         * tests/test-canonicalize.c (main): Likewise.
13914         * tests/test-fstatat.c (main): Likewise.
13915         * tests/test-linkat.c (main): Likewise.
13916         * tests/test-lstat.h (test_lstat_func): Likewise.
13917         * tests/test-mkdir.h (test_mkdir): Likewise.
13918         * tests/test-readlink.h (test_readlink): Likewise.
13919         * tests/test-remove.c (main): Likewise.
13920         * tests/test-rename.h (test_rename): Likewise.
13921         * tests/test-renameat.c (main): Likewise.
13922         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13923         * tests/test-symlink.h (test_symlink): Likewise.
13924         * tests/test-symlinkat.c (main): Likewise.
13925         * tests/test-unlink.h (test_unlink_func): Likewise.
13926         * tests/test-unlinkat.c (main): Likewise.
13927
13928         maint: make realtime library usage explicit
13929         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
13930         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
13931         * modules/settime (Link): Likewise.
13932         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
13933
13934         test-stat-time: speed up execution
13935         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
13936         warning on mingw.
13937         (nap): New helper function.
13938         (prepare_test): Use it to reduce sleep time.
13939         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
13940         execution.
13941         * modules/stat-time-tests (configure.ac): Check for usleep.
13942
13943 2009-10-09  Jim Meyering  <meyering@redhat.com>
13944
13945         selinux-h: always use getfilecon wrappers
13946         * lib/getfilecon.c: New file.
13947         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
13948         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
13949         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
13950         (fgetfilecon): Provide a stub.
13951         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
13952         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
13953         file unconditionally.
13954         When <selinux/selinux.h> is found, arrange to use wrappers.
13955         * modules/selinux-h (Files): Add getfilecon.c.
13956         (Makefile.am): Substitute include-next-related bits
13957         into the now-always-generated selinux/selinux.h file.
13958         * doc/glibc-functions/lgetfilecon.texi: New file.
13959         * doc/glibc-functions/fgetfilecon.texi: New file.
13960         * doc/glibc-functions/getfilecon.texi: New file.
13961         * doc/glibc-functions/getfilecon-desc.texi: New file.
13962         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
13963         which to pull in the new files.
13964         * MODULES.html.sh (Misc): Add selinux-h.
13965
13966 2009-10-08  Jim Meyering  <meyering@redhat.com>
13967
13968         unistd: fix comment typo
13969         * lib/unistd.in.h (euidaccess): Fix a comment typo.
13970
13971 2009-10-08  Eric Blake  <ebb9@byu.net>
13972
13973         areadlink: use SIZE_MAX consistently
13974         * modules/areadlink (Depends-on): Add stdint.
13975         * modules/areadlink-with-size (Depends-on): Likewise.
13976         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
13977         gives NULL; drop sys/types, since unistd gives size_t; and add
13978         stdint for SIZE_MAX.
13979         (SIZE_MAX): Rely on headers.
13980         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
13981         and add stdint.
13982         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
13983         (SIZE_MAX): Likewise.
13984         (INITIAL_BUF_SIZE): Turn into enum.
13985         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
13986
13987 2009-10-08  Jim Meyering  <meyering@redhat.com>
13988
13989         areadlinkat: avoid compilation failure
13990         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
13991         Fix typo in comment.
13992
13993 2009-10-07  Eric Blake  <ebb9@byu.net>
13994
13995         areadlinkat-with-size: new module
13996         * modules/areadlinkat-with-size: New module.
13997         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
13998         * lib/areadlink.h (areadlinkat): Declare it.
13999         * MODULES.html.sh (File system functions): Mention it.
14000         * modules/areadlinkat-with-size-tests: New test.
14001         * tests/test-areadlinkat-with-size.c: New file.
14002
14003         xreadlinkat: new module
14004         * modules/xreadlinkat: New module.
14005         * lib/xreadlinkat.c (xreadlinkat): New file.
14006         * lib/xreadlink.h (xreadlinkat): Declare it.
14007         * MODULES.html.sh (File system functions): Mention it.
14008
14009         areadlinkat: new module
14010         * lib/at-func.c (FUNC_FAIL): New define.
14011         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14012         * modules/areadlinkat: New module.
14013         * lib/linkat.c (areadlinkat): Move...
14014         * lib/areadlinkat.c (areadlinkat): ...to new file.
14015         * lib/areadlink.h (areadlinkat): Declare it.
14016         * modules/linkat (Depends-on): Add areadlinkat.
14017         * MODULES.html.sh (File system functions): Mention it.
14018         * modules/areadlinkat-tests: New test.
14019         * tests/test-areadlinkat.c: New file.
14020
14021         areadlink, areadlink-with-size: add tests
14022         * modules/areadlink-tests: New test.
14023         * modules/areadlink-with-size-tests: Likewise.
14024         * tests/test-areadlink.h: New file.
14025         * tests/test-areadlink.c: Likewise.
14026         * tests/test-areadlink-with-size.c: Likewise.
14027
14028         maint: minor cleanups
14029         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14030         _UNUSED_PARAMETER_ instead.
14031         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14032         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14033         * modules/linkat-tests (Files): Distribute test-link.h.
14034
14035         openat, utimens: whitespace cleanup
14036         * lib/openat.c: Prefer space throughout, rather than mix of 8
14037         spaces vs. tabs.
14038         * lib/at-func.c: Likewise.
14039         * lib/utimens.c: Likewise.
14040
14041         openat: avoid using wrong fd
14042         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14043         working directory chooses same fd.
14044         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14045
14046         mkdir, mkdirat: fix cygwin 1.5.x bug
14047         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14048         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14049         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14050         bug.
14051         (gl_PREREQ_MKDIR): Delete unused macro.
14052         * modules/mkdir (Files): Track file rename.
14053         (configure.ac): Update macro name.
14054         * modules/openat (Depends-on): Add mkdir.
14055         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14056
14057         mkdir, mkdirat: add tests
14058         * modules/mkdir-tests: New test.
14059         * tests/test-mkdir.h: New file.
14060         * tests/test-mkdir.c: Likewise.
14061         * tests/test-mkdirat.c: Likewise.
14062         * modules/openat-tests (Files): Add new files.
14063         (Makefile.am): Run new test.
14064
14065 2009-10-06  Eric Blake  <ebb9@byu.net>
14066
14067         doc: tweak *at function documentation
14068         * doc/posix-functions/faccessat.texi (faccessat): Mention
14069         known issue with replacement.
14070         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14071         * doc/posix-functions/linkat.texi (linkat): Likewise.
14072         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14073         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14074         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14075         * doc/posix-functions/renameat.texi (renameat): Likewise.
14076         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14077
14078         openat: fix GNU/Hurd bug in unlinkat
14079         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14080         broken.
14081         * doc/posix-functions/unlink.texi (unlink): Document this.
14082         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14083
14084         fdopendir: fix GNU/Hurd bug
14085         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14086         allowing non-directory fds.
14087         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14088         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14089         * modules/dirent (Makefile.am): Substitute it.
14090         * lib/dirent.in.h (fdopendir): Declare replacement.
14091         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14092         * tests/test-fdopendir.c (main): Test something other than
14093         /dev/null, since on Hurd that behaves like a directory.
14094
14095         test-symlink: port to GNU/Hurd
14096         * tests/test-symlink.h (test_symlink): Relax expected errno.
14097
14098         doc: tweak more cygwin information
14099         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14100         now compatible with glibc.
14101         * doc/posix-functions/getopt.texi (getopt): Likewise.
14102
14103         getopt-gnu: add another test
14104         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14105         guarantee behavior relied on by m4.
14106         * tests/test-getopt.c (main): Use it.
14107         * modules/getopt-posix-tests (Depends-on): Add setenv.
14108         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14109
14110         getopt: fix compilation on darwin
14111         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14112         include.
14113         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14114         Reported by Ludovic Courtès.
14115
14116 2009-10-06  Bruno Haible  <bruno@clisp.org>
14117
14118         * modules/size_max (Description): Discourage its use.
14119         Reported by Simon Josefsson.
14120
14121 2009-10-06  Jim Meyering  <meyering@redhat.com>
14122
14123         linkat: avoid compilation failure
14124         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14125
14126 2009-10-05  Eric Blake  <ebb9@byu.net>
14127
14128         linkat: support Linux 2.6.17
14129         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14130         linkat on Linux, but allow cache variable override.
14131         * lib/linkat.c (rpl_linkat): Define override.
14132         * modules/linkat (Depends-on): Add symlinkat.
14133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14134         * modules/unistd (Makefile.am): Substitute it.
14135         * lib/unistd.in.h (linkat): Declare replacement.
14136         Reported by Pádraig Brady.
14137
14138         quotearg: port test to systems with C.UTF-8 locale
14139         * tests/test-quotearg.c (struct result_strings): Add another
14140         member, differentiating between C.ASCII and C.UTF-8 handling.
14141         (compare_strings): Add parameter.
14142         (main): Adjust all callers.
14143
14144         getopt: avoid clash with FreeBSD _getopt_internal
14145         * lib/getopt.in.h (_getopt_internal): Override the name.
14146         * lib/getopt_int.h (includes): Pick up any overrides.
14147         Reported by Reuben Thomas.
14148
14149         hash: allow C89 compilation
14150         * lib/hash.c (check_tuning): Move declaration before statement.
14151         Reported by Reuben Thomas.
14152
14153 2009-10-05  Karl Berry  <karl@gnu.org>
14154
14155         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14156
14157 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14158             Bruno Haible  <bruno@clisp.org>
14159
14160         * lib/uname.c (uname): Use a table-driven algorithm to compute
14161         Windows NT versions.
14162
14163 2009-10-04  Bruno Haible  <bruno@clisp.org>
14164
14165         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14166         program_invocation_short_name.
14167         * modules/progname (configure.ac): Test for presence of
14168         program_invocation_short_name.
14169         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14170
14171 2009-10-04  Bruno Haible  <bruno@clisp.org>
14172
14173         * lib/progname.c (set_program_name): Fix comment.
14174         Reported by Jim Meyering.
14175
14176 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14177             Bruno Haible  <bruno@clisp.org>
14178
14179         * lib/uname.c: Include <string.h>.
14180         (uname): Do only one call to GetVersionEx in the common case.
14181
14182 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14183             Bruno Haible  <bruno@clisp.org>
14184
14185         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14186         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14187         (uname): Add support for Windows CE and various non-x86 CPU types.
14188
14189 2009-10-03  Bruno Haible  <bruno@clisp.org>
14190
14191         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14192         invocation to tests/configure.ac.
14193         Reported by Ian Beckwith <ianb@erislabs.net>.
14194
14195 2009-10-02  Eric Blake  <ebb9@byu.net>
14196
14197         fchdir: avoid compiler warning
14198         * lib/fchdir.c (canonicalize_file_name)
14199         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14200
14201         test-open: support mingw errno values
14202         * tests/test-open.h (test_open): Relax test.
14203         * tests/test-fopen.h (test_fopen): Likewise.
14204         * tests/test-openat-safer.c (main): Likewise.
14205
14206         open: fix opening directory on mingw
14207         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14208
14209         test-open: on GNU/Hurd, /dev/null is a directory
14210         * tests/test-fopen.h (main): Rename...
14211         (test_fopen): ...to this.  Use a guaranteed non-directory when
14212         confirming open behavior on trailing slash.
14213         * tests/test-openat-safer.c (main): Likewise.
14214         * tests/test-open.h (main): Likewise....
14215         (test_open): ...to this.
14216         * tests/test-fopen.c (main): Adjust caller.
14217         * tests/test-fopen-safer.c (main): Likewise.
14218         * tests/test-open.c (main): Likewise.
14219         * tests/test-fcntl-safer.c (main): Likewise.
14220         Reported by Samuel Thibault.
14221
14222         rename, fchdir: don't ignore chdir failure
14223         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14224         * lib/rename.c (rpl_rename) [W32]: Likewise.
14225         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14226         an empty destination directory if source cannot be renamed,
14227         although there is still possibility for failure.
14228         * doc/posix-functions/rename.texi (rename): Document the race.
14229         Reported by Jim Meyering.
14230
14231         maint: cleanup whitespace in recent commits
14232         * lib/rename.c (rpl_rename): Remove tabs.
14233         * tests/test-link.h (test_link): Likewise.
14234         * lib/fchdir.c (get_name): Likewise.
14235         Reported by Jim Meyering.
14236
14237 2009-10-02  Ben Pfaff  <blp@gnu.org>
14238
14239         relocatable-prog-wrapper: Add missing dependency on
14240         double-slash-root.
14241         * modules/relocatable-prog-wrapper: Add dependency.
14242         Reported by Ian Beckwith <ianb@erislabs.net>.
14243
14244 2009-10-02  Eric Blake  <ebb9@byu.net>
14245
14246         renameat: fix Solaris bugs
14247         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14248         needed fixing.
14249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14250         * modules/stdio (Makefile.am): Substitute it.
14251         * lib/stdio.in.h (renameat): Declare replacement.
14252         * lib/renameat.c (rpl_renameat): Implement fix.
14253
14254         renameat: new module
14255         * modules/renameat: New file.
14256         * lib/renameat.c (renameat): Likewise.
14257         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14259         * modules/stdio (Makefile.am): Substitute them.
14260         * lib/stdio.in.h (renameat): Declare it.
14261         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14262         * doc/posix-functions/renameat.texi (renameat): Likewise.
14263         * modules/renameat-tests: New test.
14264         * tests/test-renameat.c: Likewise.
14265
14266         rename: fix mingw bugs
14267         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14268         directory overwrite bugs.
14269
14270         rename: fix another cygwin 1.5 bug
14271         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14272         checks.
14273         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14274         unnecessary cygwin workarounds.  Also work around bug with moving
14275         full directory onto an empty one.
14276         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14277
14278         rename-dest-slash: merge into rename module
14279         * modules/rename-dest-slash (Status): Mark obsolete.
14280         (Depends-on): Add rename.
14281         (Files): Let rename do it all.
14282         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14283         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14284         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14285         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14286         * lib/rename.c (rpl_rename): Update comments.
14287
14288         rename: fix cygwin 1.5.x bugs
14289         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14290         * lib/rename.c (rpl_rename): Work around them.
14291         * modules/rename (Depends-on): Add same-inode.
14292
14293         rename: fix Solaris 10 bug
14294         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14295         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14296         was the only bug.
14297
14298         rename: fix Solaris 9 bug
14299         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14300         on non-directory.  Avoid calling exit.
14301         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14302         strdup.
14303         * modules/rename-tests (Depends-on): Drop lstat.
14304         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14305         (gl_PREREQ_RENAME): Delete unused macro.
14306
14307         rename-dest-slash: fix NetBSD bug
14308         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14309         links.
14310         * modules/rename-dest-slash (Depends-on): Add same-inode.
14311
14312         rename-tests: new test, exposes several platform bugs
14313         * modules/rename-tests: New file.
14314         * tests/test-rename.h: Likewise.
14315         * tests/test-rename.c: Likewise.
14316         * doc/posix-functions/rename.texi (rename): Improve documentation,
14317         including bugs that will eventually be fixed in gnulib.
14318
14319 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14320
14321         * lib/uname.c: Include <stdlib.h>
14322         (uname): Assume version info is available.
14323
14324 2009-10-02  Jim Meyering  <meyering@redhat.com>
14325
14326         gnu-web-doc-update: correct --help output
14327         * build-aux/gnu-web-doc-update: Make --help output relevant.
14328
14329         gnu-web-doc-update: add standard options
14330         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14331
14332         gnu-web-doc-update: New module.
14333         Use this script to automatically update the on-line web documentation
14334         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14335         * modules/gnu-web-doc-update: New file, from coreutils.
14336         * build-aux/gnu-web-doc-update: New script.
14337
14338 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14339
14340         link: LoadLibrary is not needed.
14341         * lib/link.c: Use GetModuleHandle.
14342
14343 2009-10-01  Eric Blake  <ebb9@byu.net>
14344
14345         getopt: bump serial number
14346         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14347         change.
14348
14349         tests: tighten link, rmdir, and remove tests
14350         * tests/test-link.h (includes): No need to use <config.h> here.
14351         Clean up if directory hard link was created, otherwise test for
14352         trailing '.'.
14353         * tests/test-linkat.c (main): Simplify.
14354         * tests/test-remove.c (main): Enhance test for trailing '.'.
14355         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14356
14357 2009-10-01  Jim Meyering  <meyering@redhat.com>
14358
14359         maint.mk: requiring "make major" was annoying, for a "minor" release.
14360         What is intended is "stable", to contrast with alpha and beta,
14361         so require "make stable", not "make major".
14362         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14363         (get_tool_versions): Likewise.
14364         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14365
14366 2009-09-30  Ben Pfaff  <blp@gnu.org>
14367
14368         Fix broken build of replacement for Windows tmpfile().
14369         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14370         flags argument added along with the 'mkostemp' module.
14371
14372 2009-09-28  Bruno Haible  <bruno@clisp.org>
14373
14374         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14375         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14376         to 'remove_elt'.
14377         (gl_list_remove): Update.
14378         * lib/gl_list.c (gl_list_remove): Update.
14379         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14380         to 'remove_elt'.
14381         (gl_oset_remove): Update.
14382         * lib/gl_list.c (gl_oset_remove): Update.
14383         Reported by Eric Blake.
14384
14385 2009-09-28  Eric Blake  <ebb9@byu.net>
14386
14387         doc: mention yet more cygwin 1.7 status
14388         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14389         cygwin.
14390         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14391         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14392
14393         argp: fix test failure
14394         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14395         that are not upper-case.  Pass correct range to tolower.
14396
14397 2009-09-27  Jim Meyering  <meyering@redhat.com>
14398
14399         test-yesno: work around sparc-dash here-document infelicity
14400         Without this change, the literal \177 byte in a here document
14401         would make dash 0.5.5.1-3 access uninitialized memory.
14402         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14403         Instead, use a marker, "@", and filter through tr to create the desired
14404         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14405
14406 2009-09-27  Bruno Haible  <bruno@clisp.org>
14407
14408         Disable untested support for new flavours of ACLs on AIX.
14409         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14410         progress.
14411         * lib/set-mode-acl.c (qset_acl): Likewise.
14412
14413 2008-12-07  Bruno Haible  <bruno@clisp.org>
14414
14415         Add support for new flavours of ACLs on AIX. (Untested.)
14416         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14417         (file_has_acl): Add support for newer AIX.
14418         * lib/set-mode-acl.c (qset_acl): Likewise.
14419         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14420         Rainer Tammer <tammer@tammer.net>.
14421
14422 2009-09-26  Eric Blake  <ebb9@byu.net>
14423
14424         argp: fix compilation of getopt
14425         * lib/getopt.in.h (includes): Use different guard than glibc.
14426         Reported by Sergey Poznyakoff.
14427
14428         doc: mention more cygwin 1.7 status
14429         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14430         bug.
14431         * doc/posix-functions/execl.texi (execl): Likewise.
14432         * doc/posix-functions/execle.texi (execle): Likewise.
14433         * doc/posix-functions/execlp.texi (execlp): Likewise.
14434         * doc/posix-functions/execv.texi (execv): Likewise.
14435         * doc/posix-functions/execve.texi (execve): Likewise.
14436         * doc/posix-functions/execvp.texi (execvp): Likewise.
14437         * doc/glibc-functions/canonicalize_file_name.texi
14438         (canonicalize_file_name): Cygwin 1.7 now provides this.
14439         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14440         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14441         on AT_SYMLINK_NOFOLLOW.
14442
14443 2009-09-24  Eric Blake  <ebb9@byu.net>
14444
14445         test-linkat: make test more robust
14446         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14447
14448         getopt: fix inclusion guards for cygwin
14449         * modules/getopt-posix (Depends-on): Add include-next.
14450         (Makefile.am): Substitute more items in replacement header.
14451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14452         <getopt.h>.
14453         * lib/getopt.in.h (includes): Use split inclusion guard, and
14454         prefer <getopt.h> over include <unistd.h> when one is present.
14455         (option): Also override name of 'struct option'.
14456
14457         same-inode: revert prior change; it is not yet ready
14458         * NEWS: Undo mention of this change.
14459         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14460         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14461         * lib/cycle-check.c (cycle_check): Likewise.
14462         * lib/same.c (same_name): Likewise.
14463         * lib/at-func2.c (at_func2): Likewise.
14464
14465 2009-09-23  Eric Blake  <ebb9@byu.net>
14466
14467         linkat: new module
14468         * modules/linkat: New file.
14469         * lib/at-func2.c (at_func2): Likewise.
14470         * lib/linkat.c (linkat): Likewise.
14471         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14472         * lib/openat-priv.h (at_func2): Add declaration.
14473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14474         * modules/unistd (Makefile.am): Substitute them.
14475         * lib/unistd.in.h (linkat): Declare it.
14476         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14477         * doc/posix-functions/linkat.texi (linkat): Likewise.
14478         * doc/posix-functions/link.texi (link): Tweak wording.
14479         * tests/test-link.c (main): Move guts...
14480         * tests/test-link.h (test_link): ...into new file.
14481         * modules/linkat-tests: New test.
14482         * tests/test-linkat.c: Likewise.
14483         * modules/link-tests (Files): Ship new file.
14484         (Depends-on): Add stdbool.
14485
14486         dirname: add library-safe mdir_name
14487         * lib/dirname.h (mdir_name): New prototype.
14488         * lib/dirname.c (dir_name): Move guts...
14489         (mdir_name): ...to new function that avoids xalloc_die.
14490
14491         fchdir: another mingw fix
14492         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14493         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14494         on mingw (where it has not yet been ported), and make it optional
14495         elsewhere.
14496         (_gl_register_fd): Use it.
14497
14498         same-inode: make SAME_INODE tri-state, to port to mingw
14499         * NEWS: Mention this change.
14500         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14501         st_ino always being 0.
14502         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14503         * lib/cycle-check.c (cycle_check): Likewise.
14504         * lib/same.c (same_name): Likewise.
14505
14506         lstat: avoid mingw compilation error
14507         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14508         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14509         lstat ourselves.
14510         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14511         was adequate.
14512         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14513         the checks for lstat.
14514         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14515
14516         link: fix test failure on Solaris 9
14517         * lib/link.c (rpl_link): Don't assume link will catch bogus
14518         trailing slash on source.
14519
14520         test-symlinkat: enhance test
14521         * tests/test-readlink.c (main): Move guts...
14522         * tests/test-readlink.h (test_readlink): ...into new file.
14523         * tests/test-symlink.c (main): Move guts...
14524         * tests/test-symlink.h (test_symlink): ...into new file.
14525         * tests/test-symlinkat.c (main): Use new files for further
14526         coverage.
14527         (do_symlink, do_readlink): New helper functions.
14528         * modules/symlink-tests (Files): Ship new file.
14529         (Depends-on): Add stdbool.
14530         * modules/readlink-tests (Files): Ship new file.
14531         (Depends-on): Add stdbool.
14532         * modules/symlinkat-tests (Files): Use new files.
14533
14534 2009-09-23  Eric Blake  <ebb9@byu.net>
14535
14536         readlink: document portability issue with symlink length
14537         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14538         systems have bogus st_size on symlinks, and mention the
14539         areadlink-with-size module.
14540         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14541         * doc/posix-functions/readlink.texi (readlink): Mention the
14542         areadlink module, and ERANGE failure.
14543         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14544         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14545
14546         readlink: fix Solaris 9 bug with trailing slash
14547         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
14548         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
14549         * doc/posix-functions/readlink.texi (readlink): Document this.
14550         * modules/readlink-tests: New test.
14551         * tests/test-readlink.c: Likewise.
14552
14553         readlink: fix cygwin 1.5.x bug with return type
14554         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
14555         * lib/unistd.in.h (readlink): Use ssize_t.
14556         * lib/readlink.c (readlink): Likewise.
14557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14558         * modules/unistd (Makefile.am): Substitute it.
14559         * lib/unistd.in.h (readlink): Declare replacement.
14560         * doc/posix-functions/readlink.texi (readlink): Document this.
14561
14562         symlink: use throughout gnulib
14563         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
14564         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
14565         symlink is not used.
14566         * modules/symlinkat (Depends-on): Add symlink.
14567         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14568         * modules/canonicalize-tests (Depends-on): Likewise.
14569         * modules/lstat-tests (Depends-on): Likewise.
14570         * modules/openat-tests (Depends-on): Likewise.
14571         * modules/remove-tests (Depends-on): Likewise.
14572         * modules/rmdir-tests (Depends-on): Likewise.
14573         * modules/unlink-tests (Depends-on): Likewise.
14574         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
14575         * tests/test-canonicalize.c (symlink): Likewise.
14576         * tests/test-fstatat.c (symlink): Likewise.
14577         * tests/test-lstat.c (symlink): Likewise.
14578         * tests/test-remove.c (symlink): Likewise.
14579         * tests/test-rmdir.c (symlink): Likewise.
14580         * tests/test-unlink.c (symlink): Likewise.
14581         * tests/test-unlinkat.c (symlink): Likewise.
14582
14583         symlink: new module, for Solaris 9 bug
14584         * modules/symlink: New file.
14585         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14586         * lib/symlink.c: Likewise.
14587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14588         * modules/unistd (Makefile.am): Substitute them.
14589         * lib/unistd.in.h (symlink): Declare replacement.
14590         * MODULES.html.sh (File system functions): Mention it.
14591         * doc/posix-functions/symlink.texi (symlink): Likewise.
14592         * modules/symlink-tests: New test.
14593         * tests/test-symlink.c: Likewise.
14594
14595 2009-09-23  Bruno Haible  <bruno@clisp.org>
14596
14597         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
14598         when needed.
14599         Test case: gnulib-tool --import --with-tests atexit inttypes.
14600         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
14601
14602 2009-09-23  Bruno Haible  <bruno@clisp.org>
14603
14604         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
14605         subcommand, not in a subshell.
14606
14607 2009-09-22  Eric Blake  <ebb9@byu.net>
14608
14609         unistd: sort replacement declarations
14610         * lib/unistd.in.h: Sort declarations.
14611
14612         open, openat: minor optimization
14613         * lib/open.c (open): If open succeeded, len is non-zero.
14614         * lib/openat.c (rpl_openat): Likewise.
14615
14616         link-follow: ensure correct result
14617         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
14618         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
14619         distinguish between possible failures.
14620
14621 2009-09-21  Eric Blake  <ebb9@byu.net>
14622
14623         fts: avoid compiler warning
14624         * lib/fts.c (dirent_inode_sort_may_be_useful)
14625         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
14626
14627 2009-09-19  Bruno Haible  <bruno@clisp.org>
14628
14629         * lib/progreloc.c (canonicalize_file_name): New declaration.
14630
14631 2009-09-19  Eric Blake  <ebb9@byu.net>
14632
14633         link: fix quoting
14634         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
14635
14636         openat: fix openat bugs on Solaris 9
14637         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
14638         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
14639         * modules/openat (Depends-on): Add open.
14640         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
14641         * modules/fcntl-h (Makefile.am): Substitute it.
14642         * lib/fcntl.in.h (openat): Declare replacement.
14643         * doc/posix-functions/openat.texi (openat): Document this.
14644
14645         openat: move fstatat and unlinkat into correct files
14646         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
14647         compiled.
14648         * lib/openat.c (fstatat, unlinkat): Move...
14649         * lib/fstatat.c (fstatat): ...into correct files.
14650         * lib/unlinkat.c (unlinkat): Likewise.
14651
14652         openat: fix unlinkat bugs on Solaris 9
14653         * lib/unlinkat.c (unlinkat): New file.
14654         * modules/openat (Depends-on): Add unlink.
14655         (Files): Distribute it.
14656         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
14657         trailing slash behavior is broken.
14658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14659         * modules/unistd (Makefile.am): Substitute it.
14660         * lib/unistd.in.h (unlinkat): Declare replacement.
14661         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
14662
14663         openat: fix fstatat bugs on Solaris 9
14664         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
14665         stat.
14666         * doc/posix-functions/fstatat.texi (fstatat): Document this.
14667
14668         test-unlinkat: enhance test, to expose Solaris 9 bug
14669         * tests/test-unlink.c (main): Factor guts...
14670         * tests/test-unlink.h (test_rmdir_func): ...into new file.
14671         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
14672         * tests/test-rmdir.c (main): Adjust caller.
14673         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
14674         (unlinker): New helper function.
14675         (rmdirat): Enhance check.
14676         * modules/rmdir-tests (Depends-on): Add stdbool.
14677         * modules/unlink-tests (Depends-on): Likewise.
14678         (Files): Add test-unlink.h.
14679         * modules/openat-tests (Files): Likewise.
14680         (Depends-on): Add unlinkdir.
14681
14682         test-fstatat: new test, to expose Solaris 9 bugs
14683         * tests/test-stat.c (main): Factor guts...
14684         * tests/test-stat.h (test_stat_func): ...into new file.
14685         * tests/test-lstat.c (main): Factor guts...
14686         * tests/test-lstat.h (test_lstat_func): ...into new file.
14687         * tests/test-fstatat.c: New file.
14688         * modules/stat-tests (Files): Add test-stat.h.
14689         * modules/lstat-tests (Files): Add test-lstat.h.
14690         (Depends-on): Add stdbool.
14691         * modules/openat-tests (Depends-on): Add pathmax.
14692         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
14693         (Makefile.am): Run new test.
14694
14695         remove: new module, for mingw and Solaris 9 bugs
14696         * modules/remove: New file.
14697         * lib/remove.c: Likewise.
14698         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
14699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14700         * modules/stdio (Makefile.am): Use them.
14701         * lib/stdio.in.h (remove): Declare replacement.
14702         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14703         * doc/posix-functions/remove.texi (remove): Likewise.
14704         * modules/remove-tests: New test.
14705         * tests/test-remove.c: Likewise.
14706
14707         unlink: new module, for Solaris 9 bug
14708         * modules/unlink: New file.
14709         * lib/unlink.c: Likewise.
14710         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14712         * modules/unistd (Makefile.am): Use them.
14713         * lib/unistd.in.h (stat): Declare replacement.
14714         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14715         * doc/posix-functions/unlink.texi (unlink): Likewise.
14716         * modules/unlink-tests: New test.
14717         * tests/test-unlink.c: Likewise.
14718
14719         lstat: fix Solaris 9 bug
14720         * lib/lstat.c (lstat): Also check for trailing slash on
14721         non-symlink, non-directories.  Use stat module to simplify logic.
14722         * doc/posix-functions/lstat.texi (lstat): Document it.
14723         * modules/lstat-tests (Depends-on): Add errno, same-inode.
14724         (configure.ac): Check for symlink.
14725         * tests/test-lstat.c (main): Add more tests.
14726
14727         stat: add as dependency to other modules
14728         * modules/chown (Depends-on): Add stat.
14729         * modules/euidaccess (Depends-on): Likewise.
14730         * modules/fchdir (Depends-on): Likewise.
14731         * modules/isdir (Depends-on): Likewise.
14732         * modules/link (Depends-on): Likewise.
14733         * modules/lstat (Depends-on): Likewise.
14734         * modules/mkdir-p (Depends-on): Likewise.
14735         * modules/modechange (Depends-on): Likewise.
14736         * modules/open (Depends-on): Likewise.
14737         * modules/readlink (Depends-on): Likewise.
14738         * modules/same (Depends-on): Likewise.
14739
14740         stat: fix Solaris 9 bug
14741         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
14742         slash.
14743         * lib/stat.c (rpl_stat): Work around it.
14744         * doc/posix-functions/stat.texi (stat): Update documentation.
14745
14746         stat: new module, for mingw bug
14747         * modules/stat: New file.
14748         * lib/stat.c: Likewise.
14749         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14751         * modules/sys_stat (Makefile.am): Use them.
14752         * lib/sys_stat.in.h (stat): Declare replacement.
14753         * lib/openat.c (fstatat): Deal with lstat and stat being function
14754         macros.
14755         * modules/openat (Depends-on): Add inline.
14756         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14757         * doc/posix-functions/stat.texi (stat): Likewise.
14758         * modules/stat-tests: New test.
14759         * tests/test-stat.c: Likewise.
14760
14761 2009-09-19  Jim Meyering  <meyering@redhat.com>
14762
14763         syntax-check: detect unnecessary inclusion of canonicalize.h
14764         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
14765
14766 2009-09-19  Eric Blake  <ebb9@byu.net>
14767
14768         canonicalize-lgpl: adjust clients to use correct header
14769         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14770         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
14771         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
14772         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
14773         * lib/progreloc.c (includes): Likewise.
14774
14775 2009-09-19  Jim Meyering  <meyering@redhat.com>
14776
14777         test-posixtm.c: correct a comment
14778         * tests/test-posixtm.c: Correct first-line comment.
14779         Spotted by Eric Blake.
14780
14781 2009-09-16  Jim Meyering  <meyering@redhat.com>
14782
14783         posixtm-tests: make T const-correct; add a test case
14784         * tests/test-posixtm.c (T): Declare const.
14785         Add a test for -(2^31+1).
14786         Remove useless can-succeed-only-in-2002 test.
14787
14788         posixtm-tests: adjust the sole failing test
14789         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
14790         expected output matches what mktime now produces.  Cross-checked via
14791         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
14792
14793         posixtm: move #ifdef'd tests into a new module
14794         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
14795         * tests/test-posixtm.c: ... this new file.
14796         * modules/posixtm-tests: New module.
14797
14798 2009-09-19  Eric Blake  <ebb9@byu.net>
14799
14800         openat: simplify use of at-func.c
14801         * lib/at-func.c (includes): Include prerequisites here, to
14802         simplify requirements on client files.
14803         * lib/openat-priv.h: Add double-inclusion guard.
14804         * lib/faccessat.c (includes): Simplify.
14805         * lib/fchmodat.c (includes): Likewise.
14806         * lib/fchownat.c (includes): Likewise.
14807         * lib/mkdirat.c (includes): Likewise.
14808         * lib/mkfifoat.c (includes): Likewise.
14809         * lib/symlinkat.c (includes): Likewise.
14810
14811         openat: allow return of fd 0
14812         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
14813         * modules/save-cwd (Depends-on): Replace fcntl-safer with
14814         unistd-safer.
14815         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
14816         <fcntl.h>; this module does not leak fds.
14817         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
14818         must be allowed to return 0, leaving openat_safer to add the
14819         safety.
14820         (openat_permissive): Avoid writing to just-opened fd 2 if
14821         restoring the current directory fails.
14822         * lib/openat-die.c (openat_restore_fail): Add comment.
14823         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
14824         (save_cwd): Guarantee safe fd, but without use of open_safer.
14825         * tests/test-openat.c: New test.
14826         * modules/openat-tests (Files, Makefile.am): Distribute and build
14827         new file.
14828
14829         relocatable-prog-wrapper: fix build
14830         * modules/relocatable-prog-wrapper (Files): Update name of
14831         canonicalize m4 file, broken on 2009-09-17.
14832         Reported by emad hajjar <aleppos@hotmail.com>.
14833
14834 2009-09-19  Bruno Haible  <bruno@clisp.org>
14835
14836         * lib/safe-alloc.h: Use the standard header with GPL copyright.
14837         * lib/safe-alloc.c: Likewise.
14838         Reported by Ian Beckwith <ianb@erislabs.net>.
14839
14840 2009-09-18  Bruno Haible  <bruno@clisp.org>
14841
14842         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
14843         Reported by <erobles@sensacd.com.mx>.
14844
14845 2009-09-17  Eric Blake  <ebb9@byu.net>
14846
14847         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
14848         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
14849         slashes when checking if last component is missing.
14850         * tests/test-canonicalize.c (main): Test this.
14851
14852         canonicalize, canonicalize-lgpl: honor // if distinct from /
14853         * modules/canonicalize (Files): Add double-slash-root.m4.
14854         * modules/canonicalize-lgpl (Files): Likewise.
14855         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14856         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
14857         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
14858         fallback definition.
14859         (canonicalize_filename_mode): Use it to protect //.
14860         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
14861         (__realpath): Likewise.
14862         * tests/test-canonicalize.c (main): Test this.
14863         * tests/test-canonicalize-lgpl.c (main): Likewise.
14864         * modules/canonicalize-tests (Depends-on): Add same-inode.
14865         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14866
14867         canonicalize-lgpl: fix glibc bug with trailing slash
14868         * m4/canonicalize-lgpl.m4: Move contents...
14869         * m4/canonicalize.m4: ...here.
14870         (gl_CANONICALIZE_LGPL): Factor realpath check...
14871         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
14872         glibc 2.3.5 bug, fixed 2005-04-27.
14873         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
14874         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
14875         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
14876         * modules/canonicalize-lgpl (Files): Manage file rename.
14877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14878         * modules/stdlib (Makefile.am): Substitute witness.
14879         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
14880         is needed.
14881         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
14882         replacement is required.
14883         * lib/canonicalize.c (canonicalize_file_name): Likewise.
14884         * doc/glibc-functions/canonicalize_file_name.texi
14885         (canonicalize_file_name): Document this.
14886         * doc/posix-functions/realpath.texi (realpath): Likewise.
14887
14888         canonicalize-lgpl: reject non-directory with trailing slash
14889         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
14890         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
14891         catches failures in glibc 2.3.5.
14892         * tests/test-canonicalize.c (main): Likewise.
14893
14894         canonicalize-lgpl: use native realpath if it works
14895         * lib/canonicalize-lgpl.c (realpath): Guard with
14896         FUNC_REALPATH_WORKS.
14897         * lib/stdlib.in.h (realpath): Make declaration optional based on
14898         HAVE_REALPATH.
14899         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
14900         native realpath works.
14901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14902         * modules/stdlib (Makefile.am): Substitute witness.
14903
14904         canonicalize, canonicalize-lgpl: use <stdlib.h>
14905         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
14906         (Include): Mention <stdlib.h>.
14907         (configure.ac): Mention functions we provide.
14908         * modules/canonicalize (configure.ac): Likewise.
14909         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
14910         realpath if canonicalize_file_name is missing.
14911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
14912         * modules/stdlib (Makefile.am): Substitute witnesses.
14913         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
14914         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
14915         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
14916         * NEWS: Document this.
14917         * doc/glibc-functions/canonicalize_file_name.texi
14918         (canonicalize_file_name): Likewise.
14919         * doc/posix-functions/realpath.texi (realpath): Likewise.
14920         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
14921
14922         test-canonicalize: consolidate into single C program
14923         * tests/test-canonicalize.sh: Delete; move setup into...
14924         * tests/test-canonicalize.c (main): ...the program, making it
14925         easier to run in debugger.  Add some tests.
14926         * modules/canonicalize-tests (Files): Remove unused file.
14927         (Depends-on): Add progname.
14928         (configure.ac, Makefile.am): Simplify.
14929
14930         test-canonicalize-lgpl: consolidate into single C program
14931         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
14932         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
14933         easier to run in debugger.  Add some tests.
14934         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
14935         (configure.ac, Makefile.am): Simplify.
14936
14937         canonicalize: avoid resolvepath
14938         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
14939         unnecessary checks.
14940         * lib/canonicalize.c (includes): Simplify.
14941         (canonicalize_file_name): Drop resolvepath implementation.
14942         * modules/canonicalize (Depends-on): Drop filenamecat.
14943
14944         canonicalize: don't lose errno
14945         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
14946         over calls to free.
14947
14948         canonicalize: simplify errno handling
14949         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
14950         assignment.
14951
14952         canonicalize, canonicalize-lgpl: update module dependencies
14953         * modules/canonicalize (Depends-on): Add extensions, lstat,
14954         pathmax, stdlib.
14955         (Files): Drop pathmax.h.
14956         (configure.ac): Adjust macro name.
14957         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
14958         lstat, stdlib, sys_stat.
14959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
14960         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
14961         extensions.
14962         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
14963         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
14964         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
14965         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
14966         declaration, if available.
14967         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
14968         we can rely on the readlink module.
14969         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
14970         (includes): Use <unistd.h> unconditionally.
14971
14972 2009-09-17  Eric Blake  <ebb9@byu.net>
14973
14974         maint: make Include sections of modules consistent
14975         * modules/alloca: Use only header name; no need to list #include.
14976         * modules/alloca-opt: Likewise.
14977         * modules/arpa_inet: Likewise.
14978         * modules/canon-host: Likewise.
14979         * modules/configmake: Likewise.
14980         * modules/dirent: Likewise.
14981         * modules/eealloc: Likewise.
14982         * modules/environ: Likewise.
14983         * modules/fchdir: Likewise.
14984         * modules/fcntl: Likewise.
14985         * modules/fcntl-h: Likewise.
14986         * modules/gethrxtime: Likewise.
14987         * modules/gettime: Likewise.
14988         * modules/ignore-value: Likewise.
14989         * modules/inet_ntop: Likewise.
14990         * modules/inet_pton: Likewise.
14991         * modules/inttypes: Likewise.
14992         * modules/isnand-nolibm: Likewise.
14993         * modules/isnanf-nolibm: Likewise.
14994         * modules/mbchar: Likewise.
14995         * modules/mbfile: Likewise.
14996         * modules/mbiter: Likewise.
14997         * modules/mbuiter: Likewise.
14998         * modules/netdb: Likewise.
14999         * modules/netinet_in: Likewise.
15000         * modules/nproc: Likewise.
15001         * modules/pagealign_alloc: Likewise.
15002         * modules/poll: Likewise.
15003         * modules/printf-frexp: Likewise.
15004         * modules/pthread: Likewise.
15005         * modules/putenv: Likewise.
15006         * modules/random_r: Likewise.
15007         * modules/relocatable-prog: Likewise.
15008         * modules/search: Likewise.
15009         * modules/select: Likewise.
15010         * modules/selinux-h: Likewise.
15011         * modules/settime: Likewise.
15012         * modules/signal: Likewise.
15013         * modules/size_max: Likewise.
15014         * modules/socklen: Likewise.
15015         * modules/ssize_t: Likewise.
15016         * modules/stdarg: Likewise.
15017         * modules/stdbool: Likewise.
15018         * modules/stddef: Likewise.
15019         * modules/stdint: Likewise.
15020         * modules/stdio: Likewise.
15021         * modules/stdlib: Likewise.
15022         * modules/string: Likewise.
15023         * modules/strings: Likewise.
15024         * modules/sys_file: Likewise.
15025         * modules/sys_ioctl: Likewise.
15026         * modules/sys_select: Likewise.
15027         * modules/sys_socket: Likewise.
15028         * modules/sys_stat: Likewise.
15029         * modules/sys_time: Likewise.
15030         * modules/sys_times: Likewise.
15031         * modules/sys_utsname: Likewise.
15032         * modules/sys_wait: Likewise.
15033         * modules/sysexits: Likewise.
15034         * modules/time: Likewise.
15035         * modules/times: Likewise.
15036         * modules/tmpfile: Likewise.
15037         * modules/trim: Likewise.
15038         * modules/unistd: Likewise.
15039         * modules/wchar: Likewise.
15040         * modules/wctype: Likewise.
15041
15042 2009-09-17  Bruno Haible  <bruno@clisp.org>
15043
15044         Make getdate.y compile on QNX and NetBSD 5 / i386.
15045         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15046         TIME_T_FITS_IN_LONG_INT.
15047         * lib/getdate.y (long_time_t): New type.
15048         (relative_time): Change type of 'seconds' field to long_time_t.
15049         (get_date): Update types of local variables. Check against overflow
15050         during conversion from long_time_t to time_t.
15051         Reported by Matt Kraai <kraai@ftbfs.org>
15052         and Hasso Tepper <hasso@netbsd.org>.
15053
15054 2009-09-17  Bruno Haible  <bruno@clisp.org>
15055
15056         * modules/COPYING: Update copyright years.
15057         * modules/README: Likeiwse.
15058         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15059         Reported by Ian Beckwith <ianb@erislabs.net>.
15060
15061 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15062
15063         * users.txt: Update references for gnuit package.
15064
15065 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15066
15067         * m4/getdelim.m4: Fix typo in copyright line.
15068
15069 2009-09-17  Bruno Haible  <bruno@clisp.org>
15070
15071         * lib/atoll.c: Use the standard header with GPL copyright.
15072         * lib/argz.in.h: Likewise.
15073         * lib/glob.c: Likewise.
15074         * lib/glob-libc.h: Likewise.
15075         * lib/random_r.c: Likewise.
15076         * lib/siglist.h: Likewise.
15077         * lib/strsignal.c: Likewise.
15078         Reported by Ian Beckwith <ianb@erislabs.net>.
15079
15080 2009-09-17  Eric Blake  <ebb9@byu.net>
15081
15082         rmdir: ensure correct dependency order
15083         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15084
15085 2009-09-17  Bruno Haible  <bruno@clisp.org>
15086
15087         Disable assertion that fails on NetBSD 5 / i386.
15088         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15089         Reported by Sam Steingold <sds@gnu.org>
15090         and Hasso Tepper <hasso@netbsd.org>.
15091
15092 2009-09-16  Eric Blake  <ebb9@byu.net>
15093
15094         unlinkdir: port to mingw
15095         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15096         on which no one can unlink a directory.
15097
15098         stdlib: sort witness names
15099         * modules/stdlib (Makefile.am): Sort replacements.
15100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15101         * lib/stdlib.in.h: Likewise.
15102
15103         parse-duration-tests: avoid link failure
15104         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15105         LIBINTL.
15106         Reported by Tom G. Christensen.
15107
15108         openat-tests: ensure unlinkat behaves like rmdir
15109         * tests/test-rmdir.c (main): Factor guts...
15110         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15111         * modules/rmdir-tests (Files): Ship new file.
15112         * modules/openat-tests: New test.
15113         * tests/test-unlinkat.c: Likewise.
15114
15115         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15116         * modules/rmdir-errno (Status, Notice): Now obsolete.
15117
15118         rmdir: work around cygwin 1.5.x and mingw bugs
15119         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15120         * lib/rmdir.c (rmdir): Work around it.
15121         * modules/rmdir (Status, Notice): No longer obsolete.
15122         (Files): Add dos.m4.
15123         (Depends-on): Add unistd.
15124         (configure.ac): Set witnesses.
15125         (License): Relax to LGPLv2+.
15126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15127         * modules/unistd (Makefile.am): Substitute witnesses.
15128         * lib/unistd.in.h (rmdir): Declare replacement.
15129         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15130         * modules/rmdir-tests: New tests.
15131         * tests/test-rmdir.c: Likewise.
15132
15133 2009-09-15  Eric Blake  <ebb9@byu.net>
15134
15135         fchdir: improve use of replacement functions
15136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15137         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15138         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15139         REPLACE_CLOSEDIR.
15140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15141         * modules/sys_stat (Makefile.am): Substitute correct witness.
15142         * modules/dirent (Makefile.am): Likewise.
15143         * modules/unistd (Makefile.am): Likewise.
15144         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15145         * lib/unistd.in.h (dup): Likewise.
15146         * lib/sys_stat.in.h (fstat): Likewise.
15147
15148         maint: ignore gnulib-tool temp files
15149         * .gitignore: Ignore files created during gnulib-tool --test.
15150
15151 2009-09-13  Jim Meyering  <meyering@redhat.com>
15152
15153         posixtm: don't reject a time that specify "60" as the number of seconds
15154         * lib/posixtm.c (posixtime): The code to reject invalid dates
15155         would also reject a time specified with the .60 suffix.
15156         But POSIX allows that, in order to accommodate leap seconds.
15157         So don't reject it.
15158         (main): Adjust tests accordingly.
15159         * modules/posixtm (Depends-on): Add stpcpy.
15160
15161 2009-09-11  Jim Meyering  <meyering@redhat.com>
15162
15163         announce-gen: include [$release_type] in emitted Subject:
15164         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15165         e.g., [stable] in the emitted Subject: line.
15166
15167 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15168
15169         Remove obsolete macros from several modules.
15170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15171         obsolete Autoconf macros with their modern counterparts.
15172         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15173         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15175         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15176         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15177         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15179         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15180         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15181         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15182         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15183         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15184         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15185         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15186         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15187         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15188         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15189         * m4/time_r.m4 (gl_TIME_R): Likewise.
15190         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15191         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15192         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15193
15194         Fix copyright header in build-aux scripts.
15195         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15196         recommendation.
15197         * build-aux/ncftpput-ftp: Likewise.
15198         * build-aux/update-copyright: Likewise.
15199
15200 2009-09-09  Eric Blake  <ebb9@byu.net>
15201
15202         test-link: allow Linux choice of errno
15203         * tests/test-link.c (main): Relax test for alternate error.
15204
15205         strndup: fix improper m4 caching
15206         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15207         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15208         (gl_PREREQ_STRNDUP): Delete.
15209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15210         * modules/string (Makefile.am): Substitute it.
15211         * lib/string.in.h (strndup): Modernize prototype.
15212
15213         getcwd: port to mingw
15214         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15215         different from the POSIX assumptions made throughout the getcwd
15216         module; fortunately, the mingw getcwd does not need replacement.
15217         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15218         * modules/getcwd-tests: New test.
15219         * tests/test-getcwd.c: Likewise.
15220
15221         link: fix platform bugs
15222         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15223         * lib/link.c (link): Work around them.  Fix related mingw bug.
15224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15225         * modules/unistd (Makefile.am): Substitute it.
15226         * lib/unistd.in.h (link): Declare replacement.
15227         * doc/posix-functions/link.texi (link): Document this.
15228         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15229
15230         test-link: consolidate into single C program, test more cases
15231         * tests/test-link.sh: Delete.
15232         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15233         at least Cygwin and Solaris.
15234         * modules/link-tests (Files): Remove unused file.
15235         (Depends-on): Add errno, sys_stat.
15236         (Makefile.am): Simplify.
15237
15238 2009-09-08  Bruno Haible  <bruno@clisp.org>
15239
15240         Work around towlower, towupper bug on mingw.
15241         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15242         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15243         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15244         * doc/posix-functions/towupper.texi: Likewise.
15245         Reported by Eric Blake.
15246
15247 2009-09-08  Jim Meyering  <meyering@redhat.com>
15248
15249         build: don't try to run autoheader if we don't use it
15250         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15251         is not used in configure.ac.
15252
15253 2009-09-08  Eric Blake  <ebb9@byu.net>
15254
15255         euidaccess: fix compilation error
15256         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15257
15258         rawmemchr: relax license
15259         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15260         okay.
15261         Reported by Jim Meyering.
15262
15263         mkfifoat: new module
15264         * modules/mkfifoat: New file.
15265         * lib/mkfifoat.c: Likewise.
15266         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15267         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15268         * modules/sys_stat (Makefile.am): Use them.
15269         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15270         * MODULES.html.sh (File system functions): Mention module.
15271         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15272         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15273         * modules/mkfifoat-tests: New test.
15274         * tests/test-mkfifoat.c: Likewise.
15275
15276         strchrnul: relax license
15277         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15278         okay.
15279         Reported by Jim Meyering.
15280
15281 2009-09-08  Eric Blake  <ebb9@byu.net>
15282
15283         fstatat: fix compilation on Solaris
15284         * lib/fstatat.c (includes): Add fcntl.h.
15285         Reported by Pádraig Brady.
15286
15287 2009-09-07  Eric Blake  <ebb9@byu.net>
15288
15289         rename: modernize replacement
15290         * modules/rename (Depends-on): Add stdio.
15291         (configure.ac): Declare witness.
15292         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15293         stdio take care of replacement.
15294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15295         * modules/stdio (Makefile.am): Substitute them.
15296         * lib/stdio.in.h (rename): Declare replacement.
15297         * lib/rename.c (includes): Allow cross-compilation to non-windows
15298         machines.
15299         * doc/posix-functions/rename.texi (rename): Improve
15300         documentation.
15301
15302         stdio: sort witness names
15303         * modules/stdio (Makefile.am): Sort replacements.
15304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15305         * lib/stdio.in.h: Likewise.
15306
15307         getcwd: minor cleanups
15308         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15309         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15310
15311         openat: provide more convenience names
15312         * modules/faccessat (configure.ac): Add C witness.
15313         * lib/unistd.in.h (readlinkat): Fix typo.
15314         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15315         convenience wrappers.
15316         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15317         wrappers in syntax checks.
15318
15319 2009-09-06  Eric Blake  <ebb9@byu.net>
15320
15321         doc: fix comments in recent patches
15322         * lib/faccessat.c: Mention correct function.
15323         * lib/fchmodat.c: Likewise.
15324         * lib/fchownat.c: Likewise.
15325         * lib/symlinkat.c: Likewise.
15326         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15327         constants.
15328
15329         faccessat, symlinkat: continue cleanup of previous patch
15330         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15331         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15332         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15334         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15335         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15336         set.
15337
15338 2009-09-06  Bruno Haible  <bruno@clisp.org>
15339
15340         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15341         (fstatat): Declare if GNULIB_FSTATAT is set.
15342         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15343         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15344         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15345         * modules/fcntl-h (Files): Remove m4/openat.m4.
15346         * modules/sys_stat (Files): Remove m4/openat.m4.
15347         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15348         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15349         * modules/unistd (Files): Remove m4/openat.m4.
15350         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15351         GNULIB_OPENAT.
15352         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15353         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15355         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15356         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15357         gl_OPENAT_DEFAULTS.
15358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15359         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15360         Don't require gl_OPENAT_DEFAULTS.
15361         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15362         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15363         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15364         (gl_OPENAT_DEFAULTS): Remove macro.
15365
15366 2009-09-06  Bruno Haible  <bruno@clisp.org>
15367
15368         * modules/openat (configure.ac): Remove unneeded witness.
15369
15370 2009-09-06  Bruno Haible  <bruno@clisp.org>
15371
15372         Set errno to ENOSYS when a function is entirely unsupported.
15373         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15374         EOPNOTSUPP.
15375         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15376         * modules/chown (Depends-on): Remove errno.
15377
15378 2009-09-06  Bruno Haible  <bruno@clisp.org>
15379
15380         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15381
15382 2009-09-06  Bruno Haible  <bruno@clisp.org>
15383
15384         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15385
15386 2009-09-06  Ben Pfaff  <blp@gnu.org>
15387             Bruno Haible  <bruno@clisp.org>
15388
15389         Work around a glibc bug in strtok_r.
15390         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15391         Undefine if UNDEFINE_STRTOK_R is set.
15392         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15394         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15395         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15396         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15397         UNDEFINE_STRTOK_R.
15398         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15399
15400 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15401
15402         exclude: minor fix
15403         * lib/exclude.c: Include wctype.h
15404
15405 2009-09-06  Akim Demaille  <demaille@gostai.com>
15406
15407         bootstrap: improve error message
15408         * build-aux/bootstrap (find_tool): Upon failure, report the list
15409         of candidates.
15410         Honor the initial value of the envvar.
15411
15412 2009-09-05  Eric Blake  <ebb9@byu.net>
15413
15414         symlinkat: new module
15415         * modules/symlinkat: New file.
15416         * lib/symlinkat.c: Likewise.
15417         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15419         * modules/unistd (Makefile.am): Use them.
15420         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15421         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15422         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15423         * MODULES.html.sh (File system functions): Mention module.
15424         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15425         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15426         * modules/symlinkat-tests: New test.
15427         * tests/test-symlinkat.c: Likewise.
15428
15429         test-openat-safer: add more checks
15430         * tests/test-openat-safer.c (main): Check more code paths.
15431
15432 2009-09-05  Jim Meyering  <meyering@redhat.com>
15433
15434         syntax-check: detect unnecessary inclusion of openat.h
15435         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15436
15437 2009-09-05  Bruno Haible  <bruno@clisp.org>
15438
15439         Support towlower, towupper.
15440         * doc/posix-functions/towlower.texi: Mention module wctype.
15441         * doc/posix-functions/towupper.texi: Likewise.
15442         * lib/wctype.in.h (towlower, towupper): New functions.
15443         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15444         (ASSERT): New macro.
15445         (e): New variable.
15446         (main): Test also towlower, towupper. Test WEOF argument.
15447         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15448
15449 2009-09-05  Bruno Haible  <bruno@clisp.org>
15450
15451         Fix conversion behaviour when the input is invalid.
15452         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15453         mark occurring in first pass of indirect conversion.
15454         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15455         input.
15456         Found by clang's static analyzer.
15457
15458 2009-09-05  Bruno Haible  <bruno@clisp.org>
15459
15460         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15461         where direct conversion is possible.
15462
15463 2009-09-04  Eric Blake  <ebb9@byu.net>
15464
15465         openat: fail with ENOENT on empty name
15466         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15467         buffer.
15468
15469         link-follow: fix logic bug in prior patch
15470         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15471         reversed sense of yes and no in prior patch.  Avoid confusing
15472         compilation failure with desired semantics.
15473
15474         link-follow: accomodate mingw and cross-compilation
15475         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15476         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15477         cross-compilation results to -1, to make linkat easier to
15478         implement when cross-compiling.  Trivially support mingw.
15479         * modules/link-follow (configure.ac): Call new name.
15480         * NEWS: Mention this.
15481
15482 2009-09-03  Eric Blake  <ebb9@byu.net>
15483
15484         faccessat: compile replacement
15485         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15486         needed.
15487
15488         fts: fix compilation error
15489         * lib/fts.c (includes): Re-add "openat.h", for
15490         openat_needs_fchdir.
15491
15492         faccessat: new module
15493         * modules/faccessat: New file.
15494         * lib/faccessat.c: Likewise.
15495         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15497         * modules/unistd (Makefile.am): Use it.
15498         * lib/unistd.in.h (faccessat): Declare it.
15499         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15500         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15501         * MODULES.html.sh (File system functions): Mention it.
15502         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15503         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15504
15505         euidaccess: prefer POSIX over non-standard implementation
15506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15507         * lib/euidaccess.c (euidaccess): Use it if available.
15508
15509         openat: make template easier to use
15510         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15511         AT_FUNC_F2 to be undefined.
15512         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15513         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15514         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15515         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15516         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15517         Likewise.
15518         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15519         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15520         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15521         Likewise.
15522
15523         openat: declare in POSIX headers
15524         * NEWS: Mention this.
15525         * modules/openat (configure.ac): Declare witnesses.
15526         (Depends-on): Add fcntl-h, sys_stat, unistd.
15527         (Include): Mention correct headers.
15528         * modules/fcntl-h (Depends-on): Add link-warning.
15529         (Files): Add openat.m4.
15530         (Makefile.am): Substitute witnesses.
15531         * modules/sys_stat (Files, Makefile.am): Likewise.
15532         * modules/unistd (Files, Makefile.am): Likewise.
15533         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15534         (gl_OPENAT_DEFAULTS): New macro.
15535         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15537         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15538         (SYS_STAT_H): Remove unused variable.
15539         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15540         * lib/fcntl--.h (includes): Remove unneeded header.
15541         * lib/openat-safer.c (includes): Likewise.
15542         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15543         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15544         appropriate headers.
15545         (__OPENAT_PREFIX): Delete.
15546         * lib/fcntl.in.h (openat): Provide declaration.
15547         (AT_FDCWD): Fix Solaris bug.
15548         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
15549         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
15550         * lib/fchmodat.c (includes):  Adjust to find declaration.
15551         * lib/fchownat.c (includes): Likewise.
15552         * lib/mkdirat.c (includes): Likewise.
15553         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
15554         still visible.
15555
15556 2009-09-02  Eric Blake  <ebb9@byu.net>
15557
15558         errno: use consistently
15559         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
15560         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
15561         * lib/canonicalize.c (ELOOP): Likewise.
15562         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
15563         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
15564         * lib/lchown.c (EOPNOTSUPP): Likewise.
15565         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
15566         * lib/savewd.c (ESTALE): Likewise.
15567         * lib/settime.c (ENOSYS): Likewise.
15568         * lib/utimens.c (ENOSYS): Likewise.
15569         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
15570         * lib/chdir-safer.c (ELOOP): Likewise.
15571         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
15572         * modules/c-stack (Depends-on): Add errno.
15573         * modules/canonicalize (Depends-on): Likewise.
15574         * modules/chdir-safer (Depends-on): Likewise.
15575         * modules/fdopendir (Depends-on): Likewise.
15576         * modules/inet_ntop (Depends-on): Likewise.
15577         * modules/inet_pton (Depends-on): Likewise.
15578         * modules/lchown (Depends-on): Likewise.
15579         * modules/openat (Depends-on): Likewise.
15580         * modules/savewd (Depends-on): Likewise.
15581         * modules/settime (Depends-on): Likewise.
15582         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
15583
15584         fts: avoid leaking fds
15585         * modules/fts (Depends-on): Add cloexec.
15586         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
15587         flag.
15588
15589         fts: make directory fds more robust
15590         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
15591         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
15592
15593         backupfile, chdir-long, fts, savedir: make safer
15594         * lib/backupfile.c (includes): Use "dirent--.h", since
15595         numbered_backup can write to stderr during readdir.
15596         * lib/savedir.c (includes): Likewise.
15597         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
15598         emulation can write to stderr on failure.
15599         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
15600         * lib/getcwd.c: Document why opendir_safer is unused.
15601         * lib/glob.c: Likewise.
15602         * lib/scandir.c: Likewise.
15603         * lib/openat-proc.c: Likewise, for open_safer.
15604         * modules/backupfile (Depends-on): Add dirent-safer.
15605         * modules/savedir (Depends-on): Likewise.
15606         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
15607         * modules/chdir-long (Depends-on): Add openat-safer.
15608
15609         openat-safer: new module
15610         * modules/openat-safer: New file.
15611         * lib/openat-safer.c: Likewise.
15612         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
15613         * lib/fcntl-safer.h (openat_safer): Declare.
15614         * lib/fcntl--.h (openat): Override.
15615         * MODULES.html.sh (File descriptor based I/O): Mention it.
15616         * lib/openat.h: Add double-inclusion guards.
15617         * lib/openat.c (includes): Only include "fcntl-safer.h", not
15618         "fcntl--.h", so we can implement openat.
15619         * modules/openat-safer-tests: New test.
15620         * tests/test-openat-safer.c: New file.
15621
15622         dirent-safer: new module
15623         * modules/dirent-safer: New file.
15624         * lib/dirent--.h: Likewise.
15625         * lib/dirent-safer.h: Likewise.
15626         * lib/opendir-safer.c: Likewise.
15627         * m4/dirent-safer.m4: Likewise.
15628         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
15629         * modules/dirent-safer-tests: New test.
15630         * tests/test-dirent-safer.c: New file.
15631         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
15632
15633         fdopendir: optimize on mingw
15634         * lib/unistd.in.h (_gl_directory_name): New prototype.
15635         * lib/fchdir.c (_gl_directory_name): Implement it.
15636         (fchdir): Use it to simplify implementation.
15637         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
15638         fchdir, when available, to avoid calling [f]chdir().
15639
15640         fdopendir: split into its own module
15641         * lib/openat.c (fdopendir): Move...
15642         * lib/fdopendir.c: ...into new file.
15643         * modules/fdopendir: New module.
15644         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
15645         * modules/openat (Depends-on): Add fdopendir.
15646         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
15647         fdopendir here.
15648         * modules/savedir (Depends-on): Only need fdopendir, not full
15649         openat.
15650         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
15651         * lib/openat.h (fdopendir): Drop prototype.
15652         * lib/dirent.in.h (fdopendir): Provide prototype.
15653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
15654         * modules/dirent (Makefile.am): Substitute them.
15655         * MODULES.html.sh (File system functions): Mention it.
15656         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
15657         * modules/fdopendir-tests: New file.
15658         * tests/test-fdopendir.c: Likewise.
15659
15660         fchdir: use more consistent macro convention
15661         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
15662         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
15663         REPLACE_FCHDIR, rather than relying on config.h macros.
15664         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
15665         inside a single make-time REPLACE_FCHDIR block, rather than using
15666         the config.h FCHDIR_REPLACEMENT.
15667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
15668         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
15669         Manage fstat replacement.
15670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
15671         REPLACE_FCHDIR.
15672         * modules/sys_stat (Files): Add m4/unistd_h.m4.
15673         (Makefile.am): Substitute REPLACE_FCHDIR.
15674         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
15675         FCHDIR_REPLACEMENT.
15676         * lib/dup-safer.c (dup_safer): Likewise.
15677         * lib/dup2.c (rpl_dup2): Likewise.
15678         * lib/dup3.c (rpl_dup3): Likewise.
15679         * lib/open.c (rpl_open): Likewise.
15680
15681         fchdir: simplify error handling, and support dup3
15682         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
15683         stdbool, malloc-posix, realloc-posix.
15684         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
15685         (ensure_dirs_slot): Return false on allocation failure.
15686         (rpl_dup2): Delete.
15687         (_gl_register_dup): New function.
15688         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
15689         (_gl_register_fd): Close fd on allocation failure.
15690         * lib/fcntl.in.h (_gl_register_fd): Update signature.
15691         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
15692         prototype.
15693         (rpl_dup2_fchdir): Delete prototype.
15694         * lib/open.c (open): Update caller.
15695         * lib/dup2.c (dup2): Track fchdir metadata.
15696         * lib/dup3.c (dup3): Likewise.
15697         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
15698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
15699
15700 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15701
15702         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
15703         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
15704         don't pass arguments to AC_OUTPUT.
15705
15706 2009-09-02  Bruno Haible  <bruno@clisp.org>
15707
15708         * modules/mkdtemp (License): Relicense under LGPLv2+.
15709         Reported by Paolo Bonzini.
15710
15711 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15712
15713         Replace uses of obsolete autoconf macros in Jim's modules.
15714         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
15715         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
15716         can evoke a warning from autoconf when run with -Wobsolete
15717         enabled.  They were declared obsolete for good reasons (see
15718         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
15719         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
15720         should not continue using the deprecated macros.
15721         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
15722         obsolete Autoconf macros with modern counterparts.
15723         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15724         * m4/dos.m4 (gl_AC_DOS): Likewise.
15725         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
15726         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15727         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
15728         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
15729         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
15731         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
15732         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
15733         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
15734         Likewise.
15735         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15736         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15737         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
15738         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
15739         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15740         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15741
15742 2009-09-01  Eric Blake  <ebb9@byu.net>
15743
15744         fchdir: fix off-by-one bug in previous patch
15745         * lib/fchdir.c (rpl_fstat): Use correct bounds.
15746         (_gl_unregister_fd): Delete useless if.
15747
15748 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
15749
15750         maint.mk: sort the list of syntax-check rules
15751         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
15752         easier to get a sense of progress when the rules are run sequentially
15753         and take a long time.
15754
15755 2009-09-01  Simon Josefsson  <simon@josefsson.org>
15756
15757         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
15758         * modules/netinet_in: Likewise.
15759         * modules/sys_file: Likewise.
15760         * modules/sys_ioctl: Likewise.
15761         * modules/sys_select: Likewise.
15762         * modules/sys_socket: Likewise.
15763         * modules/sys_stat: Likewise.
15764         * modules/sys_time: Likewise.
15765         * modules/sys_times: Likewise.
15766         * modules/sys_utsname: Likewise.
15767         * modules/sys_wait: Likewise.
15768
15769 2009-09-01  Jim Meyering  <meyering@redhat.com>
15770
15771         fts: help ensure that return values are not ignored
15772         * lib/fts_.h (__GNUC_PREREQ): Define.
15773         (__attribute_warn_unused_result__): Define.
15774         (fts_children, fts_close, fts_open, fts_read): Declare with
15775         __attribute_warn_unused_result__.
15776
15777         fts: fts_close now fails also when closing a dir file descriptor fails
15778         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
15779         and propagate to caller, along with errno.
15780
15781         announce-gen: correct formatting in --help output
15782         * build-aux/announce-gen (usage): Move the one-line description in
15783         --help output "up", to where it belongs, just after Usage:.
15784
15785 2009-08-31  Eric Blake  <ebb9@byu.net>
15786
15787         fchdir: port to mingw
15788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
15789         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
15790         opened, then use a substitute.
15791         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
15792         replacement.
15793         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
15794         (_gl_register_fd): No need to check stat if open already filters
15795         all directories.
15796         (fchdir): Fix error condition to match POSIX.
15797         * modules/fchdir (Depends-on): Add sys_stat.
15798         * doc/posix-functions/open.texi (open): Document the limitation.
15799         * modules/fchdir-tests: New file.
15800         * tests/test-fchdir.c: Likewise.
15801
15802         canonicalize: allow cross-testing from cygwin to mingw
15803         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
15804         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
15805         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
15806         Likewise.
15807         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
15808         target does not support symlinks.
15809         * tests/test-canonicalize-lgpl.sh: Likewise.
15810
15811         chown: avoid compilation warning on mingw
15812         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
15813         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
15814         mingw.
15815         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15816         * modules/chown (Depends-on): Add errno.
15817
15818 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15819
15820         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
15821         command.
15822
15823 2009-08-31  Jim Meyering  <meyering@redhat.com>
15824
15825         canonicalize: remove useless initialization
15826         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
15827         initialization of local, "end".
15828
15829 2009-08-30  Bruno Haible  <bruno@clisp.org>
15830
15831         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
15832         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
15833         ENOSYS.
15834
15835 2009-08-30  Bruno Haible  <bruno@clisp.org>
15836
15837         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
15838         /usr/xpg4/bin/tr when it exists.
15839         * tests/test-pipe-filter-gi1.sh: Likewise.
15840
15841 2009-08-30  Bruno Haible  <bruno@clisp.org>
15842
15843         Work around deficient /usr/bin/id program on Solaris.
15844         * tests/test-file-has-acl.sh (ID): New variable.
15845         * tests/test-set-mode-acl.sh (ID): Likewise.
15846         * tests/test-copy-acl.sh (ID): Likewise.
15847         * tests/test-copy-file.sh (ID): Likewise.
15848
15849 2009-08-30  Bruno Haible  <bruno@clisp.org>
15850
15851         New module 'xstriconveh'.
15852         * lib/xstriconveh.h: New file.
15853         * lib/xstriconveh.c: New file.
15854         * modules/xstriconveh: New file.
15855
15856 2009-08-30  Bruno Haible  <bruno@clisp.org>
15857
15858         Make it easier to use mem_cd_iconveh.
15859         * lib/striconveh.h (iconveh_t): New type.
15860         (iconveh_open, iconveh_close): New declarations.
15861         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15862         with a single 'const iconveh_t *' argument.
15863         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
15864         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15865         with a single 'const iconveh_t *' argument.
15866         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
15867         * tests/test-striconveh.c (main): Update.
15868         * NEWS: Mention the change.
15869
15870 2009-08-30  Bruno Haible  <bruno@clisp.org>
15871
15872         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
15873         problem.
15874
15875 2009-08-30  Bruno Haible  <bruno@clisp.org>
15876
15877         Work around iconv_open problem on Solaris.
15878         * lib/iconv_open-solaris.gperf: New file.
15879         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
15880         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
15881         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
15882         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
15883         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
15884         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
15885
15886 2009-08-29  Jim Meyering  <meyering@redhat.com>
15887
15888         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
15889         * top/maint.mk (cvs-check): Remove target; it was just an alias
15890         to the better-named vc-diff-check.
15891         (maintainer-distcheck): Remove rule.  It was used only from
15892         the (alpha/beta/major) target, and all of its commands but one
15893         were coreutils-specific.
15894         (vc-dist): Remove rule.
15895         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
15896         Run vc-diff-check, not vc-dist.
15897         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
15898
15899 2009-08-27  Bruno Haible  <bruno@clisp.org>
15900
15901         * tests/test-bitrotate.c (main): Remove test that uses a shift count
15902         of 0.
15903
15904 2009-08-27  Bruno Haible  <bruno@clisp.org>
15905
15906         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
15907         compilers.
15908         * doc/func.texi: Document the SunPRO C bug.
15909
15910 2009-08-27  Bruno Haible  <bruno@clisp.org>
15911
15912         Fix link error on Solaris.
15913         * tests/test-parse-duration.c (xstrdup): Remove function.
15914
15915 2009-08-26  Pádraig Brady  <P@draigbrady.com>
15916
15917         ignore-value: handle pointer types, too
15918         * lib/ignore-value.h (__attribute__): Remove definition.
15919         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
15920         of a more concise and more-often effective "(void) i" statement.
15921         (ignore_ptr): New function to suppress warnings from functions that
15922         return pointers, and to make it explicit that one function doesn't
15923         handle all cases.
15924
15925 2009-08-25  Bruno Haible  <bruno@clisp.org>
15926
15927         dup2: work around a Linux bug.
15928         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
15929         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
15930         * doc/posix-functions/dup2.texi: Mention the Linux bug.
15931         Reported by Simon Josefsson.
15932
15933 2009-08-25  Jim Meyering  <meyering@redhat.com>
15934
15935         libguestfs uses gnulib
15936         * users.txt: Add libguestfs.
15937
15938 2009-08-24  Eric Blake  <ebb9@byu.net>
15939
15940         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
15941         * lib/pipe2.c (includes): Add binary-io.h.
15942         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
15943
15944 2009-08-24  Bruno Haible  <bruno@clisp.org>
15945
15946         Tolerate declared but missing accept4 syscall.
15947         * lib/accept4.c (accept4): Invoke original accept4 function first, if
15948         available.
15949         * lib/sys_socket.in.h (accept4): If the function is already present,
15950         override it.
15951         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
15952         * modules/accept4 (Makefile.am): Compile accept4.c always.
15953         Reported by Paolo Bonzini and Eric Blake.
15954
15955 2009-08-23  Bruno Haible  <bruno@clisp.org>
15956
15957         New module 'accept4'.
15958         * lib/sys_socket.in.h (accept4): New declaration.
15959         * lib/accept4.c: New file.
15960         * m4/accept4.m4: New file.
15961         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15962         GNULIB_ACCEPT4, HAVE_ACCEPT4.
15963         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
15964         HAVE_ACCEPT4.
15965         * modules/accept4: New file.
15966         * doc/glibc-functions/accept4.texi: Mention the new module.
15967
15968 2009-08-24  Jim Meyering  <meyering@redhat.com>
15969
15970         progname: also set global program_invocation_name, when possible
15971         Before this change, a libtool-enabled program that calls glibc's
15972         error function would report the program name as
15973         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
15974         * modules/progname (configure.ac): Check for a declaration of
15975         program_invocation_name.
15976         * lib/progname.c:  Include <errno.h>.
15977         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
15978         Set program_invocation_name.
15979
15980 2009-08-23  Bruno Haible  <bruno@clisp.org>
15981
15982         * lib/dup3.c: Include <string.h>.
15983
15984 2009-08-23  Bruno Haible  <bruno@clisp.org>
15985
15986         * lib/dup3.c (dup3): Test only once whether the system actually exists.
15987         * lib/pipe2.c (pipe2): Likewise.
15988         Suggested by Eric Blake.
15989
15990 2009-08-23  Bruno Haible  <bruno@clisp.org>
15991
15992         Tolerate declared but missing dup3 syscall.
15993         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
15994         * lib/unistd.in.h (dup3): If the function is already present,
15995         override it.
15996         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
15997         * modules/dup3 (Makefile.am): Compile dup3.c always.
15998         Reported by Paolo Bonzini.
15999
16000 2009-08-23  Bruno Haible  <bruno@clisp.org>
16001
16002         Tolerate declared but missing pipe2 syscall.
16003         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16004         available.
16005         * lib/unistd.in.h (pipe2): If the function is already present,
16006         override it.
16007         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16008         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16009         Reported by Paolo Bonzini.
16010
16011 2009-08-23  Bruno Haible  <bruno@clisp.org>
16012
16013         * lib/pipe2.c (pipe2): Move #ifs inside function.
16014
16015 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16016
16017         quotearg: document limitations of quote_these_too
16018         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16019         those limitations are created.
16020         * lib/quotearg.h (set_char_quoting): Document that digits and
16021         letters that are special after backslash are not permitted.
16022         (quotearg_char): Cross-reference set_char_quoting documentation.
16023
16024 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16025
16026         quotearg: implement custom_quoting_style
16027         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16028         right_quote fields.
16029         (set_custom_quoting): New public function.
16030         (quotearg_buffer_restyled): Add left_quote and right_quote
16031         arguments, handle them very much like locale quoting, and update
16032         all uses.
16033         (quotearg_n_custom): New public function.
16034         (quotearg_n_custom_mem): New public function.
16035         (quotearg_custom): New public function.
16036         (quotearg_custom_mem): New public function.
16037         * lib/quotearg.h: Prototype and document new public functions.
16038         (enum quoting_style): For escape_quoting_style and
16039         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16040         ignored even though they're otherwise like c_quoting_style.
16041         Add custom_quoting_style member and document with comparison to
16042         clocale_quoting_style.
16043         * tests/test-quotearg.c (custom_quotes): New array.
16044         (custom_results): New array.
16045         (main): Extend to test custom quoting.
16046
16047 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16048
16049         quotearg: fix right quote escaping when it's in quote_these_too
16050         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16051         quote, be sure to prepend only one backslash.
16052         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16053         (main): Test it.
16054
16055 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16056
16057         quotearg-tests: test escaping of embedded locale quotes
16058         * tests/test-quotearg.c (struct result_strings): Add member for
16059         new input.
16060         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16061         (inputs): Add new input.
16062         (results_g): Add expected results.
16063         (flag_results): Likewise.
16064         (locale_results): Likewise.
16065         (compare_strings): Check those.
16066
16067 2009-08-23  Bruno Haible  <bruno@clisp.org>
16068
16069         Tests for module 'dup3'.
16070         * modules/dup3-tests: New file.
16071         * tests/test-dup3.c: New file.
16072
16073         New module 'dup3'.
16074         * lib/unistd.in.h (dup3): New declaration.
16075         * lib/dup3.c: New file.
16076         * m4/dup3.m4: New file.
16077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16078         HAVE_DUP3.
16079         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16080         * modules/dup3: New file.
16081         * doc/glibc-functions/dup3.texi: Mention the new module.
16082
16083 2009-08-23  Bruno Haible  <bruno@clisp.org>
16084
16085         Tweak the dup2 test.
16086         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16087         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16088         the test file is still empty. Fix argument order of lseek.
16089
16090 2009-08-23  Bruno Haible  <bruno@clisp.org>
16091
16092         Avoid test link errors when the modules getopt-gnu, gettext are used.
16093         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16095
16096 2009-08-23  Bruno Haible  <bruno@clisp.org>
16097
16098         Fix getdtablesize() on mingw.
16099         * lib/getdtablesize.c (getdtablesize): Implement differently.
16100         * lib/unistd.in.h (getdtablesize): Improve comment.
16101
16102 2009-08-23  Bruno Haible  <bruno@clisp.org>
16103
16104         New module 'mkostemp'.
16105         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16106         * lib/stdlib.in.h (mksotemp): New declaration.
16107         * lib/mkostemp.c: New file, from glibc with modifications.
16108         * lib/tempname.h (GT_FILE): Remove outdated comment.
16109         (gen_tempname): Add flags argument.
16110         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16111         (__GT_FILE): Map to 1.
16112         (small_open, large_open): Remove macros.
16113         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16114         * lib/mkstemp.c (mkstemp): Update.
16115         * lib/mkdtemp.c (mkdtemp): Likewise.
16116         * m4/mkostemp.m4: New file.
16117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16118         HAVE_MKOSTEMP.
16119         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16120         HAVE_MKOSTEMP.
16121         * modules/mkostemp: New file, based on modules/mkstemp.
16122         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16123         * NEWS: Mention the change.
16124
16125 2009-08-23  Bruno Haible  <bruno@clisp.org>
16126
16127         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16128         Reported by Eric Blake.
16129
16130 2009-08-23  Bruno Haible  <bruno@clisp.org>
16131
16132         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16133         Reported by Eric Blake.
16134
16135 2009-08-23  Bruno Haible  <bruno@clisp.org>
16136
16137         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16138         * modules/pipe2 (Depends-on): Likewise.
16139
16140 2009-08-23  Eric Blake  <ebb9@byu.net>
16141
16142         fcntl-h: add O_TTY_INIT support
16143         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16144         * tests/test-fcntl-h.c (o): Test it.
16145         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16146
16147         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16148         * modules/fcntl: Move <fcntl.h> header replacement...
16149         * modules/fcntl-h: ...to new name, so as not to collide with
16150         like-named function.
16151         * tests/test-fcntl.c: Rename...
16152         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16153         * modules/fcntl-tests: Rename...
16154         * modules/fcntl-h-tests: ...to this.  Update test file name.
16155         * modules/chdir-long (Depends-on): Update clients.
16156         * modules/chdir-safer (Depends-on): Likewise.
16157         * modules/fcntl-safer (Depends-on): Likewise.
16158         * modules/fts (Depends-on): Likewise.
16159         * modules/mkancesdirs (Depends-on): Likewise.
16160         * modules/mkdir-p (Depends-on): Likewise.
16161         * modules/open (Depends-on): Likewise.
16162         * modules/savewd (Depends-on): Likewise.
16163         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16164         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16165
16166 2009-08-22  Bruno Haible  <bruno@clisp.org>
16167
16168         * modules/binary-io (License): Relicense under LGPL.
16169         * modules/pipe2 (License): Likewise.
16170
16171 2009-08-22  Bruno Haible  <bruno@clisp.org>
16172
16173         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16174         return value.
16175         * lib/pipe-filter-gi.c (filter_init): Likewise.
16176         Reported by Eric Blake.
16177
16178 2009-08-22  Bruno Haible  <bruno@clisp.org>
16179
16180         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16181         * modules/pipe (Depends-on): Add pipe2.
16182
16183 2009-08-22  Bruno Haible  <bruno@clisp.org>
16184
16185         Tests for module 'pipe2'.
16186         * modules/pipe2-tests: New file.
16187         * tests/test-pipe2.c: New file.
16188
16189         New module 'pipe2'.
16190         * lib/unistd.in.h (pipe2): New declaration.
16191         * lib/pipe2.c: New file.
16192         * m4/pipe2.m4: New file.
16193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16194         HAVE_PIPE2.
16195         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16196         * modules/pipe2: New file.
16197         * doc/glibc-functions/pipe2.texi: Mention the new module.
16198
16199 2009-08-22  Bruno Haible  <bruno@clisp.org>
16200
16201         Reference some new glibc functions.
16202         * doc/glibc-functions/accept4.texi: New file.
16203         * doc/glibc-functions/dup3.texi: New file.
16204         * doc/glibc-functions/mkostemp.texi: New file.
16205         * doc/glibc-functions/pipe2.texi: New file.
16206         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16207         (Glibc sys/socket.h): Refer to accept4.
16208         (Glibc unistd.h): Refer to dup3, pipe2.
16209         Reported by Eric Blake.
16210
16211 2009-08-22  Jim Meyering  <meyering@redhat.com>
16212             Bruno Haible  <bruno@clisp.org>
16213
16214         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16215         This makes it so packages using automake-1.11's silent-rules option
16216         can print e.g., a single "GEN    configmake.h" line, rather than
16217         the 30+ statements that perform the job.  If you want to see the
16218         actual commands, you can still run "make V=1".
16219         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16220         so that make output is abbreviated when those variables are defined
16221         appropriately.
16222         * modules/argz: Likewise.
16223         * modules/arpa_inet: Likewise.
16224         * modules/byteswap: Likewise.
16225         * modules/configmake: Likewise.
16226         * modules/dirent: Likewise.
16227         * modules/errno: Likewise.
16228         * modules/fcntl: Likewise.
16229         * modules/float: Likewise.
16230         * modules/fnmatch: Likewise.
16231         * modules/getopt-posix: Likewise.
16232         * modules/glob: Likewise.
16233         * modules/iconv_open: Likewise.
16234         * modules/inttypes: Likewise.
16235         * modules/localcharset: Likewise.
16236         * modules/locale: Likewise.
16237         * modules/math: Likewise.
16238         * modules/netdb: Likewise.
16239         * modules/netinet_in: Likewise.
16240         * modules/poll: Likewise.
16241         * modules/posix_spawnp-tests: Likewise.
16242         * modules/sched: Likewise.
16243         * modules/search: Likewise.
16244         * modules/selinux-h: Likewise.
16245         * modules/signal: Likewise.
16246         * modules/spawn: Likewise.
16247         * modules/stdarg: Likewise.
16248         * modules/stdbool: Likewise.
16249         * modules/stddef: Likewise.
16250         * modules/stdint: Likewise.
16251         * modules/stdio: Likewise.
16252         * modules/stdlib: Likewise.
16253         * modules/string: Likewise.
16254         * modules/strings: Likewise.
16255         * modules/sys_file: Likewise.
16256         * modules/sys_ioctl: Likewise.
16257         * modules/sys_select: Likewise.
16258         * modules/sys_socket: Likewise.
16259         * modules/sys_stat: Likewise.
16260         * modules/sys_time: Likewise.
16261         * modules/sys_times: Likewise.
16262         * modules/sys_utsname: Likewise.
16263         * modules/sys_wait: Likewise.
16264         * modules/sysexits: Likewise.
16265         * modules/time: Likewise.
16266         * modules/unistd: Likewise.
16267         * modules/wchar: Likewise.
16268         * modules/wctype: Likewise.
16269
16270 2009-08-22  Jim Meyering  <meyering@redhat.com>
16271
16272         announce-gen: detect write failure
16273         * build-aux/announce-gen: Add Coda at end.
16274         Remove equivalent-but-more-verbose block at top.
16275
16276 2009-08-19  Akim Demaille  <demaille@gostai.com>
16277
16278         bootstrap: --help to stdout.
16279         * bootstrap (usage): Don't send --help to stderr.
16280         Use a here doc instead of a long string.
16281
16282 2009-08-21  Eric Blake  <ebb9@byu.net>
16283
16284         test-popen-safer: split from test-popen
16285         * tests/test-popen.c (main): Move...
16286         * tests/test-popen.h: ...into new file.
16287         * tests/test-popen-safer2.c: New file.
16288         * modules/popen-tests (Files): Add test-popen.h.
16289         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16290         Suggested by Bruno Haible.
16291
16292         test-fcntl-safer: split from test-open
16293         * tests/test-open.c (main): Move...
16294         * tests/test-open.h: ...into new file.
16295         * tests/test-fcntl-safer.c: New file.
16296         * modules/open-tests (Files): Add test-open.h.
16297         * modules/fcntl-safer-tests: New file.
16298         Suggested by Bruno Haible.
16299
16300         test-fopen-safer: split from test-fopen
16301         * tests/test-fopen.c (main): Move...
16302         * tests/test-fopen.h: ...into new file.
16303         * tests/test-fopen-safer.c: New file.
16304         * modules/fopen-tests (Files): Add test-fopen.h.
16305         * modules/fopen-safer-tests: New file.
16306         Suggested by Bruno Haible.
16307
16308 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16309
16310         popen-safer: test O_CLOEXEC at run-time.
16311         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16312
16313 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16314
16315         fcntl: move more flags to the header
16316         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16317         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16318         * lib/fcntl.in.h: Do both things here.
16319
16320 2009-08-21  Jim Meyering  <meyering@redhat.com>
16321
16322         consistently remove $@-t before redirecting to it
16323         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16324         * modules/alloca-opt: Likewise.
16325         * modules/byteswap: Likewise.
16326         * modules/fnmatch: Likewise.
16327         * modules/getopt-posix: Likewise.
16328         * modules/glob: Likewise.
16329         * modules/poll: Likewise.
16330         * modules/posix_spawnp-tests: Likewise.
16331         * modules/sys_socket: Likewise.
16332         * modules/sysexits: Likewise.
16333
16334 2009-08-21  Eric Blake  <ebb9@byu.net>
16335
16336         popen: simplify access to original popen
16337         * lib/popen.c (rpl_popen): No need to worry about popen being a
16338         macro.
16339         Reported by Bruno Haible.
16340
16341 2009-08-20  Eric Blake  <ebb9@byu.net>
16342
16343         build: avoid some compiler warnings
16344         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16345         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16346         type.
16347         (new_exclude_segment, excluded_file_pattern_p)
16348         (excluded_file_name_p): Reduce scope.
16349         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16350         old-style declaration.
16351
16352 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16353
16354         * tests/test-exclude1.sh: Handle Windows EOL.
16355         * tests/test-exclude2.sh: Likewise.
16356         * tests/test-exclude3.sh: Likewise.
16357         * tests/test-exclude4.sh: Likewise.
16358         * tests/test-exclude5.sh: Likewise.
16359         * tests/test-exclude6.sh: Likewise.
16360         * tests/test-exclude7.sh: Likewise.
16361
16362 2009-08-19  Akim Demaille  <demaille@gostai.com>
16363
16364         bootstrap: find sha1sum when named gsha1sum.
16365         * bootstrap (find_tool): New.
16366         ($SHA1SUM): New.
16367         Use it.
16368
16369 2009-08-20  Jim Meyering  <meyering@redhat.com>
16370
16371         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16372         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16373         expression that converts "." in a file name to "\." in the resulting
16374         regexp.  Start with a dummy statement, so that prior shell variable
16375         definitions are expanded portably.  Reported by Simon Josefsson.
16376
16377 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16378
16379         Fix polling for writeability of a screen buffer.
16380         * lib/poll.c: Distinguish input and screen buffers for the
16381         Win32 implementation.
16382         * lib/select.c: Likewise.
16383
16384 2009-08-19  Eric Blake  <ebb9@byu.net>
16385
16386         popen-safer: prevent popen from clobbering std descriptors
16387         * modules/popen-safer: New file.
16388         * lib/popen-safer.c: Likewise.
16389         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16390         * lib/stdio--.h (popen): Provide override.
16391         * lib/stdio-safer.h (popen_safer): Provide declaration.
16392         * tests/test-popen.c (includes): Partially test this.
16393         * modules/popen-safer-tests: New file, for more tests.
16394         * tests/test-popen-safer.c: Likewise.
16395         * MODULES.html.sh (file stream based Input/Output): Mention it.
16396
16397         tests: test some of the *-safer modules
16398         * modules/fopen-safer (Depends-on): Add fopen.
16399         * modules/fcntl-safer (Depends-on): Add fcntl.
16400         * modules/stdlib-safer (Depends-on): Add stdlib.
16401         (configure.ac): Set indicator.
16402         * modules/unistd-safer (configure.ac): Likewise.
16403         * modules/tmpfile-safer (configure.ac): Likewise.
16404         (Depends-on): Add tmpfile.
16405         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16406         active.
16407         * tests/test-fopen.c (includes): Test safer versions when they are
16408         in use.
16409         * tests/test-open.c (includes): Likewise.
16410
16411         popen: fix cygwin 1.5 bug when stdin closed
16412         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16413         * modules/popen: New file.
16414         * modules/popen-tests: Likewise.
16415         * tests/test-popen.c: Likewise.
16416         * m4/popen.m4: Likewise.
16417         * lib/popen.c: Likewise.
16418         * lib/stdio.in.h (popen): New declaration.
16419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16420         * modules/stdio (Makefile.am): Likewise.
16421         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16422
16423 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16424
16425         maint.mk: give full control over update-copyright exclusions
16426         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16427         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16428         (update-copyright): Don't force inclusion of top-level
16429         ChangeLog.  Don't force exclusion of all COPYING files, but make
16430         them the default exclusion instead.
16431
16432 2009-08-16  Bruno Haible  <bruno@clisp.org>
16433
16434         Fix test failures on Solaris 10.
16435         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16436         tests when Solaris iconv() is used.
16437         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16438         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16439         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16440         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16441         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16442
16443 2009-08-16  Bruno Haible  <bruno@clisp.org>
16444
16445         Fix test failures on Solaris 10.
16446         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16447         'tr' program and pass it as first argument.
16448         * tests/test-pipe-filter-gi1.sh: Likewise.
16449         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16450         program as first argument.
16451         * tests/test-pipe-filter-gi1.c (main): Likewise.
16452
16453 2009-08-16  Eric Blake  <ebb9@byu.net>
16454
16455         fpurge: fix previous commits
16456         * modules/fpurge (Makefile.am): Make replacement conditional,
16457         partially reverting 2007-04-29 change; missed in previous
16458         attempt.
16459         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16460         is missing.
16461
16462 2009-08-16  Bruno Haible  <bruno@clisp.org>
16463
16464         Clarify fpurge's effect on the file position.
16465         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16466         * tests/test-fpurge.c (main): Make a second pass for checking the file
16467         position.
16468
16469 2009-08-16  Bruno Haible  <bruno@clisp.org>
16470
16471         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16472         declaration of fpurge is missing.
16473         * tests/test-fpurge.c (main): Check that the file has not more contents
16474         than expected. Close the file before removing it.
16475
16476 2009-08-15  Eric Blake  <ebb9@byu.net>
16477
16478         fpurge: don't wrap working cygwin implementation
16479         * lib/fpurge.c (fpurge): Fix comment typo.
16480         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16481         1.7 to avoid replacement.
16482         * tests/test-fpurge.c (main): Enhance test.
16483
16484 2009-08-15  Eric Blake  <ebb9@byu.net>
16485         and Jim Meyering  <meyering@redhat.com>
16486
16487         test-update-copyright: skip if perl is insufficient
16488         * tests/test-update-copyright.sh: Failure to run maintainer tool
16489         should not cause testsuite failure on cygwin 1.5.
16490
16491 2009-08-14  Eric Blake  <ebb9@byu.net>
16492
16493         doc: mention more functions added in cygwin 1.7.0
16494         * doc/posix-headers/limits.texi (limits.h): Update for recent
16495         cygwin additions.
16496         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16497         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16498         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16499         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16500         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16501
16502 2009-08-14  Eric Blake  <ebb9@byu.net>
16503
16504         maint.mk: simplify update-copyright rule
16505         * top/maint.mk (update-copyright-local): Delete, and document how
16506         to do it in cfg.mk instead.
16507         (update-copyright-exclude-regexp): Delete, and document how to do
16508         it in .x-update-copyright instead.
16509         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16510         exclude ChangeLog.
16511
16512 2009-08-14  Bruno Haible  <bruno@clisp.org>
16513
16514         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16515
16516 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16517
16518         maint.mk: support update-copyright-env
16519         * top/maint.mk (update-copyright-env): Define place-holder.
16520         (update-copyright): Expand $(update-copyright-env) before
16521         invoking update-copyright.
16522
16523 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16524
16525         update-copyright: implement forced reformatting
16526         * build-aux/update-copyright: Implement and document
16527         UPDATE_COPYRIGHT_FORCE.
16528         * tests/test-update-copyright.sh: Test it.
16529
16530 2009-08-14  Eric Blake  <ebb9@byu.net>
16531         and Bruno Haible  <bruno@clisp.org>
16532
16533         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16534         * tests/test-locale.c: Revert previous patch related to NULL.
16535         * tests/test-stdio.c: Likewise.
16536         * tests/test-stdlib.c: Likewise.
16537         * tests/test-string.c: Likewise.
16538         * tests/test-unistd.c: Likewise.
16539         * modules/time-tests (Depends-on): Add verify.
16540         * modules/wchar-tests (Depends-on): Likewise.
16541         * tests/test-time.c: Test for NULL compliance.
16542         * tests/test-wchar.c: Likewise.
16543         * modules/locale (Depends-on): Add stddef.
16544         * modules/stdio (Depends-on): Likewise.
16545         * modules/stdlib (Depends-on): Likewise.
16546         * modules/string (Depends-on): Likewise.
16547         * modules/time (Depends-on): Likewise.
16548         * modules/unistd (Depends-on): Likewise.
16549         * modules/wchar (Depends-on): Likewise.
16550         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
16551         * lib/stdlib.in.h (includes): Likewise.
16552         * lib/string.in.h (includes): Likewise.
16553         * lib/time.in.h (includes): Likewise.
16554         * lib/unistd.in.h (includes): Likewise.
16555         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
16556         replaced.
16557         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16558         * m4/stddef_h.m4: New file.
16559         * modules/stddef: Likewise.
16560         * lib/stddef.in.h: Likewise.
16561         * modules/stddef-tests: Likewise.
16562         * tests/test-stddef.c: Likewise.
16563         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
16564         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
16565         * doc/posix-headers/locale.texi (locale.h): Likewise.
16566         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
16567         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16568         * doc/posix-headers/string.texi (string.h): Likewise.
16569         * doc/posix-headers/time.texi (time.h): Likewise.
16570         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
16571         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
16572
16573 2009-08-14  Eric Blake  <ebb9@byu.net>
16574
16575         doc: improve git diff of texinfo files
16576         * .gitattributes: Add rule for *.texi files, with hint on how to
16577         use it.
16578         Copied from m4, and based on a report by Bruno Haible.
16579
16580 2009-08-14  Bruno Haible  <bruno@clisp.org>
16581
16582         Disable multithread support by default on Cygwin 1.5.x for real.
16583         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
16584
16585 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16586
16587         update-copyright: much ado about intervals
16588         * build-aux/update-copyright: Implement and document
16589         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
16590         of copyright year intervals.
16591         Also, document UPDATE_COPYRIGHT_YEAR.
16592         * tests/test-update-copyright.sh: Test it.
16593
16594         update-copyright: convert 2-digit to 4-digit years
16595         * build-aux/update-copyright: Implement and document.
16596         * tests/test-update-copyright.sh: Update.
16597
16598 2009-08-14  Jim Meyering  <meyering@redhat.com>
16599
16600         test-exclude: avoid coreutils "make check" failure
16601         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
16602         just as in test-argmatch.c.
16603
16604 2009-08-13  Eric Blake  <ebb9@byu.net>
16605
16606         test-dup2: fix bad assumption
16607         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
16608         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
16609
16610         test-version-etc: fix CRLF portability issue
16611         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
16612         recognize \r.
16613         * tests/test-argp-version-etc-1.sh: Likewise.
16614
16615         getopt: update client modules
16616         * modules/argp (Depends-on): Use getopt-gnu.
16617         * modules/git-merge-changelog (Depends-on): Likewise.
16618         * modules/long-options (Depends-on): Likewise.
16619         * modules/xstrtol (Depends-on): Likewise.
16620
16621 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16622
16623         * tests/test-version-etc.sh: Don't fail on different
16624         project/version.  Don't fail on CRLF differences.  Rewrite to use
16625         multiple -e instead of multiple sed forks, suggested by Eric Blake
16626         <ebb9@byu.net>.
16627         * tests/test-argp-version-etc-1.sh: Likewise.
16628
16629 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16630
16631         * tests/test-version-etc.sh: Don't fail on different
16632         project/version.
16633
16634 2009-08-12  Bruno Haible  <bruno@clisp.org>
16635
16636         Tests for modules 'getopt-posix', 'getopt-gnu'.
16637         * modules/getopt-posix-tests: New file.
16638         * tests/test-getopt.c: New file.
16639         * tests/test-getopt.h: New file.
16640         * tests/test-getopt_long.h: New file.
16641
16642         New modules 'getopt-posix', 'getopt-gnu'.
16643         * modules/getopt-gnu: New file, renamed from modules/getopt.
16644         * modules/getopt-posix: New file.
16645         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
16646         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
16647         (gl_GETOPT): Remove macro.
16648         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
16649         Disable the test against BSD systems that declare optreset. Test
16650         against mingw bug. Test against lack of support of optional arguments
16651         on many platforms.
16652         * doc/glibc-headers/getopt.texi: Update module name and list of
16653         relevant platforms.
16654         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
16655         'getopt-gnu' and more portability problems.
16656         * NEWS: Mention the changes.
16657
16658 2009-08-12  Bruno Haible  <bruno@clisp.org>
16659
16660         Ensure that optarg etc. get declared by <unistd.h>.
16661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
16662         AC_USE_SYSTEM_EXTENSIONS.
16663         * modules/getopt (Depends-on): Add 'extensions'.
16664
16665 2009-08-12  Bruno Haible  <bruno@clisp.org>
16666
16667         Avoid test link errors.
16668         * modules/pipe-filter-ii-tests (Makefile.am): Define
16669         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
16670         * modules/pipe-filter-gi-tests (Makefile.am): Define
16671         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
16672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16673
16674 2009-08-12  Bruno Haible  <bruno@clisp.org>
16675
16676         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
16677         gl_GETOPT_SUBSTITUTE before.
16678         (gl_GETOPT): Use it.
16679         * m4/argp.m4 (gl_ARGP): Update.
16680         Reported by Sergey Poznyakoff.
16681
16682         * m4/getopt.m4: Reorder macros.
16683         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
16684         (gl_GETOPT_SUBSTITUTE): Remove macro.
16685
16686 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16687
16688         Minor improvement in gitlog-to-changelog
16689
16690         * build-aux/gitlog-to-changelog: New option `--format' makes
16691         output format string configurable.
16692
16693 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16694
16695         Optimize exclude: use hash tables for non-wildcard patterns.
16696
16697         * lib/exclude.c: Include hash.h and mbuiter.h
16698         (struct exclude_pattern, exclude_segment): New data types.
16699         (struct exclude): Rewrite.
16700         (fnmatch_pattern_has_wildcards): New function.
16701         (new_exclude_segment, free_exclude_segment): New functions.
16702         (excluded_file_pattern_p, excluded_file_name_p): New functions.
16703         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
16704         * lib/exclude.h (is_fnmatch_pattern): New prototype.
16705         * modules/exclude: Depend on hash and mbuiter.
16706
16707         * modules/exclude-tests: New file.
16708         * tests/test-exclude.c: New file.
16709         * tests/test-exclude1.sh: New file.
16710         * tests/test-exclude2.sh: New file.
16711         * tests/test-exclude3.sh: New file.
16712         * tests/test-exclude4.sh: New file.
16713         * tests/test-exclude5.sh: New file.
16714         * tests/test-exclude6.sh: New file.
16715         * tests/test-exclude7.sh: New file.
16716
16717 2009-08-12  Bruno Haible  <bruno@clisp.org>
16718
16719         Ensure that getopt() gets declared by <unistd.h>.
16720         * lib/unistd.in.h: Conditionally include getopt.h.
16721         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
16722         Set GNULIB_UNISTD_H_GETOPT.
16723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16724         GNULIB_UNISTD_H_GETOPT.
16725         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
16726
16727 2009-08-12  Bruno Haible  <bruno@clisp.org>
16728
16729         Clarify logic.
16730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
16731         gl_replace_getopt instead of GETOPT_H.
16732
16733 2009-08-12  Bruno Haible  <bruno@clisp.org>
16734
16735         * m4/getopt.m4: Add comments.
16736
16737 2009-08-12  Bruno Haible  <bruno@clisp.org>
16738
16739         Disable multithread support by default on Cygwin 1.5.x.
16740         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
16741         set gl_use_threads=no if not specified otherwise.
16742
16743 2009-08-11  Bruno Haible  <bruno@clisp.org>
16744
16745         Avoid compilation error on NetBSD 5.0.
16746         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
16747         * tests/test-stdio.c: Likewise.
16748         * tests/test-stdlib.c: Likewise.
16749         * tests/test-string.c: Likewise.
16750         * tests/test-unistd.c: Likewise.
16751         Reported by Greg Troxel <gdt@ir.bbn.com>
16752         at <https://savannah.gnu.org/support/?106973>.
16753
16754 2009-08-11  Bruno Haible  <bruno@clisp.org>
16755
16756         * modules/dup2-tests (Depends-on): Remove close.
16757
16758         Undo 2009-07-19 commit.
16759         * modules/acl-tests (Depends-on): Remove close.
16760         * modules/binary-io-tests (Depends-on): Likewise.
16761         * modules/closein-tests (Depends-on): Likewise.
16762         * modules/flock-tests (Depends-on): Likewise.
16763         * modules/fsync-tests (Depends-on): Likewise.
16764         * modules/lseek-tests (Depends-on): Likewise.
16765         * modules/pipe-tests (Depends-on): Likewise.
16766         * modules/posix_spawn-tests (Depends-on): Likewise.
16767         * modules/posix_spawnp-tests (Depends-on): Likewise.
16768         * modules/stat-time-tests (Depends-on): Likewise.
16769         * modules/yesno-tests (Depends-on): Likewise.
16770
16771 2009-08-10  Bruno Haible  <bruno@clisp.org>
16772
16773         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
16774
16775 2009-08-10  Bruno Haible  <bruno@clisp.org>
16776
16777         Fix a gcc warning.
16778         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
16779
16780 2009-08-10  Bruno Haible  <bruno@clisp.org>
16781
16782         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
16783         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
16784         not only the first time.
16785         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
16786         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
16787         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
16788         is 1, not only the the first time.
16789
16790 2009-08-10  Bruno Haible  <bruno@clisp.org>
16791
16792         Make it possible to use module 'gethostname' without module 'close'.
16793         * lib/unistd.in.h (close): Evoke a link error only if
16794         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16796         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16797         * modules/unistd (Makefile.am): Substitute
16798         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16799         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
16800         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16801         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16802         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16803         * modules/sys_ioctl (Makefile.am): Substitute
16804         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16805         * modules/socket (configure.ac): On native Windows, set
16806         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
16807         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16808         Reported by Sam Steingold <sds@gnu.org>.
16809
16810 2009-08-10  Bruno Haible  <bruno@clisp.org>
16811
16812         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
16813         * modules/ioctl (configure.ac): Likewise.
16814
16815 2009-08-10  Bruno Haible  <bruno@clisp.org>
16816
16817         Avoid collision between gnulib wrapper and libintl wrapper.
16818         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
16819         already defined in intl/printf.c.
16820         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
16821         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
16822
16823 2009-08-09  Bruno Haible  <bruno@clisp.org>
16824
16825         Make <sys/select.h> really self-contained, also on Solaris 10.
16826         * lib/sys_select.in.h: Include <string.h>.
16827         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
16828         Solaris 10 problem.
16829         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
16830         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
16831         Reported by Jim Meyering.
16832
16833 2009-08-09  Bruno Haible  <bruno@clisp.org>
16834
16835         Avoid warnings from 'aclocal' that are due to a use of macro name
16836         AM_XGETTEXT_OPTION that is not defined in automake.
16837         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
16838         automake.
16839         * modules/error (configure.ac): Likewise.
16840         * modules/propername (configure.ac): Likewise.
16841         * modules/vasprintf (configure.ac): Likewise.
16842         * modules/verror (configure.ac): Likewise.
16843         * modules/xprintf (configure.ac): Likewise.
16844         * modules/xvasprintf (configure.ac): Likewise.
16845
16846 2009-08-08  Bruno Haible  <bruno@clisp.org>
16847
16848         Avoid compilation error in C++ mode.
16849         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
16850         Reported by Sam Steingold <sds@gnu.org>.
16851
16852 2009-08-08  Bruno Haible  <bruno@clisp.org>
16853
16854         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
16855         for the various Unix platforms.
16856         * doc/posix-headers/limits.texi: Update platforms list regarding
16857         HOST_NAME_MAX.
16858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16859
16860 2009-08-07  Jim Meyering  <meyering@redhat.com>
16861
16862         selinux-at: fix typo in a comment
16863         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
16864         Spotted by Paolo Bonzini.
16865
16866         selinux-at: remove redundant m4 code, add documentation
16867         * modules/selinux-at (configure.ac): Remove redundant code.
16868         LIB_SELINUX is already set via the dependent module, selinux-h.
16869         (Include): Add quotes around selinux-at.h.
16870         * lib/selinux-at.h: Add documentation.
16871         Reported by Bruno Haible in
16872         http://marc.info/?l=gnulib-bug&m=124958988300749
16873
16874 2009-08-07  Bruno Haible  <bruno@clisp.org>
16875
16876         Avoid link error on MacOS X 10.3 and 10.4.
16877         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
16878         on non-ELF systems.
16879         * lib/argp-pv.c (argp_program_version): Likewise.
16880         Reported by Simon Josefsson.
16881
16882 2009-08-07  Simon Josefsson  <simon@josefsson.org>
16883
16884         * tests/test-version-etc.sh: Use $EXEEXT.
16885
16886 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
16887
16888         update-copyright: update documentation to point to maint.mk
16889         * build-aux/update-copyright: Here.
16890
16891 2009-08-06  Jim Meyering  <meyering@redhat.com>
16892
16893         maint.mk: support update-copyright-local
16894         * top/maint.mk (update-copyright-local): Define place-holder.
16895         (update-copyright): Depend on $(update-copyright-local).
16896
16897 2009-08-06  Jim Meyering  <meyering@redhat.com>
16898
16899         selinux-at: new module
16900         Initially written for coreutils, this module will soon be
16901         used by findutils, too.
16902         * MODULES.html.sh [Misc]: Add selinux-at.
16903         * lib/selinux-at.h: New file, from coreutils.
16904         * lib/selinux-at.c: Likewise.
16905         * modules/selinux-at: Likewise.
16906         (License): Change from LGPL to GPL, since it depends
16907         on the GPL'd openat module.
16908
16909         doc: update README
16910         * README: Remove references to cogito.
16911         Remove cvs-repo-updating instructions from 2007.
16912         Don't imply that CVS is better if you have limited disk space.
16913
16914 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16915
16916         update-copyright: support C-style comments
16917         * build-aux/update-copyright: Implement and document.
16918         * tests/test-update-copyright.sh: Test.
16919
16920 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16921
16922         update-copyright: support omitted "(C)"
16923         * build-aux/update-copyright: Implement and document.  Also,
16924         allow variable whitespace before "(C)".
16925         * tests/test-update-copyright.sh: Test.
16926
16927 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16928
16929         update-copyright: don't trip on non-FSF copyright statements
16930         * build-aux/update-copyright: Fix so that the first correctly
16931         formatted FSF copyright statement is recognized no matter what
16932         appears before it.  Update documentation.
16933         * tests/test-update-copyright.sh: Test that.
16934
16935 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16936
16937         update-copyright: clean up code a little
16938         * build-aux/update-copyright: Append "_re" to the name of any
16939         variable holding a regular expression.
16940         Replace "old" and "new" with "stmt" in variable names.
16941         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
16942         handled correctly.
16943         Format code more consistently.
16944
16945 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16946
16947         update-copyright-tests: improve portability
16948         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
16949         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
16950
16951 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16952
16953         update-copyright: support @copyright{} and &copy;
16954         * build-aux/update-copyright: Implement and document.
16955         * tests/test-update-copyright.sh: Test.
16956
16957 2009-08-04  Jim Meyering  <meyering@redhat.com>
16958
16959         update-copyright-tests: correctly test EOL=\r\n handling
16960         * tests/test-update-copyright.sh: Put \r at the end of some lines
16961         for the dos-eol tests.  Based on a patch by Joel E. Denny.
16962
16963         maint.mk: make update-copyright exclusion list more configurable
16964         * top/maint.mk (update-copyright): Default to excluding COPYING,
16965         but allow an override, in case someone does want to update that file.
16966
16967         maint.mk: don't update copyright date in COPYING
16968         * top/maint.mk (update-copyright): Exclude COPYING.
16969
16970         maint.mk: add a copyright-updating rule
16971         * top/maint.mk (update-copyright): New rule.
16972         Derived from coreutils/Makefile.am.
16973
16974         update-copyright: rename some variables
16975         * build-aux/update-copyright: Rename a few variables for clarity.
16976         Tweak syntax.  List Joel E. Denny as coauthor.
16977
16978 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16979
16980         update-copyright: fix bug for 2-digit last year and add tests
16981         * build-aux/update-copyright: Fix bug.
16982         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
16983         specified.
16984         * modules/update-copyright-tests: New
16985         * tests/test-update-copyright.sh: New.
16986
16987 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16988
16989         update-copyright: handle leading tabs in line prefix
16990         * build-aux/update-copyright: Count leading tabs as 8 spaces
16991         when computing margin.  This helps with the formatting of
16992         ChangeLogs, for example.
16993         Fix documentation a little.
16994
16995 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16996
16997         update-copyright: support EOL=\r\n
16998         * build-aux/update-copyright: Implement that.
16999
17000 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17001
17002         update-copyright: automatically format copyright statements
17003         * build-aux/update-copyright: Implement that.
17004         Also, be a little more predictable and safer by always failing
17005         when the full copyright format is not perfectly recognized as an
17006         unbroken whole.  Discussed at
17007         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17008         Rewrite documentation.
17009
17010 2009-08-03  Bruno Haible  <bruno@clisp.org>
17011
17012         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17013
17014 2009-08-02  Bruno Haible  <bruno@clisp.org>
17015
17016         Tests for module 'uname'.
17017         * modules/uname-tests: New file.
17018         * tests/test-uname.c: New file.
17019
17020         New module 'uname'.
17021         * lib/uname.c: New file.
17022         * m4/uname.m4: New file.
17023         * modules/uname: New file.
17024         * doc/posix-functions/uname.texi: Mention the new module.
17025
17026 2009-08-02  Bruno Haible  <bruno@clisp.org>
17027
17028         Tests for module 'sys_utsname'.
17029         * modules/sys_utsname-tests: New file.
17030         * tests/test-sys_utsname.c: New file.
17031
17032         New module 'sys_utsname'.
17033         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17034         * m4/sys_utsname_h.m4: New file.
17035         * modules/sys_utsname: New file.
17036         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17037
17038 2009-08-02  Bruno Haible  <bruno@clisp.org>
17039
17040         Implicitly initialize the sockets library.
17041         * lib/gethostname.c: Include sockets.h.
17042         (rpl_gethostname): Invoke gl_sockets_startup.
17043         * lib/socket.c: Include sockets.h.
17044         (rpl_socket): Invoke gl_sockets_startup.
17045         * modules/gethostname (Depends-on): Add sockets.
17046         * modules/socket (Depends-on): Likewise.
17047         * tests/test-poll.c: Don't include sockets.h.
17048         (main): Don't invoke gl_sockets_startup.
17049         * tests/test-select.c: Don't include sockets.h.
17050         (main): Don't invoke gl_sockets_startup.
17051
17052 2009-08-02  Bruno Haible  <bruno@clisp.org>
17053
17054         Allow multiple calls to gl_sockets_startup.
17055         * lib/sockets.c (initialized_sockets_version): New variable.
17056         (gl_sockets_startup): Do nothing if already called for this or a higher
17057         version.
17058         (gl_sockets_cleanup): Reset initialized_sockets_version.
17059
17060 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17061
17062         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17063         different project/version.
17064
17065 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17066             Bruno Haible  <bruno@clisp.org>
17067
17068         Tests for module 'pipe-filter-gi'.
17069         * modules/pipe-filter-gi-tests: New file.
17070         * tests/test-pipe-filter-gi1.sh: New file.
17071         * tests/test-pipe-filter-gi1.c: New file.
17072         * tests/test-pipe-filter-gi2.sh: New file.
17073         * tests/test-pipe-filter-gi2-main.c: New file.
17074         * tests/test-pipe-filter-gi2-child.c: New file.
17075
17076         New module 'pipe-filter-gi'.
17077         * lib/pipe-filter-gi.c: New file.
17078         * modules/pipe-filter-gi: New file.
17079
17080 2009-08-02  Bruno Haible  <bruno@clisp.org>
17081             Paolo Bonzini  <bonzini@gnu.org>
17082
17083         Tests for module 'pipe-filter-ii'.
17084         * modules/pipe-filter-ii-tests: New file.
17085         * tests/test-pipe-filter-ii1.sh: New file.
17086         * tests/test-pipe-filter-ii1.c: New file.
17087         * tests/test-pipe-filter-ii2.sh: New file.
17088         * tests/test-pipe-filter-ii2-main.c: New file.
17089         * tests/test-pipe-filter-ii2-child.c: New file.
17090
17091         New module 'pipe-filter-ii'.
17092         * lib/pipe-filter.h: New file.
17093         * lib/pipe-filter-ii.c: New file.
17094         * lib/pipe-filter-aux.h: New file.
17095         * modules/pipe-filter-ii: New file.
17096
17097 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17098
17099         * lib/gc-libgcrypt.c: Change copyright to FSF.
17100         * lib/gc-gnulib.c: Likewise.
17101
17102 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17103
17104         * lib/gethostname.c: Include limits.h.
17105
17106 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17107             Bruno Haible  <bruno@clisp.org>
17108
17109         Ensure HOST_NAME_MAX as part of the gethostname module.
17110         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17111         define also HOST_NAME_MAX.
17112         * tests/test-gethostname.c: Include <limits.h>.
17113         (main): Check also HOST_NAME_MAX.
17114         * doc/posix-headers/limits.texi: Document the mingw problem.
17115
17116 2009-08-02  Bruno Haible  <bruno@clisp.org>
17117
17118         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17119         Add comments.
17120
17121 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17122
17123         * lib/gethostname.c: Add Windows wrapper.
17124         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17125         * modules/gethostname: Depend on sys_socket & errno, for also
17126         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17127         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17128
17129 2009-07-31  Jim Meyering  <meyering@redhat.com>
17130
17131         getloadavg: fix symbol name in comment
17132         * lib/getloadavg.c: Correct a typo I introduced when adding
17133         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17134         Matt Kraai spotted the problem.
17135
17136 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17137
17138         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17139         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17140         code also if ! defined N_NAME_POINTER.
17141         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17142         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17143         but the n_name member is a 12-byte array.
17144
17145 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17146
17147         update-copyright: generalize comment handling
17148         * build-aux/update-copyright: Handle copyright statements
17149         within more comment styles.
17150         Document usage.
17151         Report any file with an external copyright holder or parse failure.
17152
17153 2009-07-29  Jim Meyering  <meyering@redhat.com>
17154
17155         mktime: correct setting of REPLACE_MKTIME
17156         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17157
17158         update-copyright: new module
17159         * modules/update-copyright: New file.
17160         * build-aux/update-copyright: New file.
17161         * MODULES.html.sh (maint+release support): Add update-copyright.
17162
17163 2009-07-27  Bruno Haible  <bruno@clisp.org>
17164
17165         Fix compilation error when <ctime> is used and mktime is replaced.
17166         * lib/time.in.h (mktime): New declaration.
17167         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17168         REPLACE_MKTIME instead of defining mktime in config.h.
17169         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17170         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17171         Reported by Ross McFarland <rwmcfa1@neces.com>.
17172
17173 2009-07-27  Bruno Haible  <bruno@clisp.org>
17174
17175         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17176         Reported by Matt Kraai <mkraai@beckman.com>.
17177
17178 2009-07-25  Jim Meyering  <meyering@redhat.com>
17179
17180         maint.mk: avoid warnings about missing files
17181         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17182         diagnostic when .prev-version does not exist.
17183         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17184         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17185         nonexistent cfg.mk.
17186         Suggestions from Simon Josefsson.
17187
17188 2009-07-25  Bruno Haible  <bruno@clisp.org>
17189
17190         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17191         defined as macros. Needed on QNX 6.4.1.
17192         Reported by Matt Kraai <mkraai@beckman.com>.
17193
17194 2009-07-23  Jim Meyering  <meyering@redhat.com>
17195
17196         maint.mk: invoke "make dist" with a working value of XZ_OPT
17197         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17198
17199 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17200
17201         Make fseeko.c compile on QNX.
17202         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17203
17204 2009-07-22  Peter Simons  <simons@cryp.to>
17205
17206         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17207         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17208         * lib/md4.h: Likewise.
17209         * lib/md5.h: Likewise.
17210         * lib/sha1.h: Likewise.
17211         * lib/sha256.h: Likewise.
17212         * lib/sha512.h: Likewise.
17213
17214         tests-sha1: don't assign literal string to 'char *' variable
17215         * tests/test-sha1.c (main): Declare locals with "const" to match
17216         attributes of the right hand side.
17217
17218 2009-07-21  Eric Blake  <ebb9@byu.net>
17219
17220         dup2: fix more mingw problems
17221         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17222         fd to itself.
17223         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17224         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17225         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17226         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17227         care of mingw bugs.
17228
17229 2009-07-21  Jim Meyering  <meyering@redhat.com>
17230
17231         vc-list-files: avoid failure when /bin/sh is dash
17232         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17233         On some Debian based systems, /bin/sh is a symlink to dash, and running
17234         this command would omit the "/" following each 'tests' prefix:
17235           dash -x build-aux/vc-list-files -C . tests
17236         That is because bash and dash work differently:
17237           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17238           bash ok
17239           dash odd
17240
17241 2009-07-21  Eric Blake  <ebb9@byu.net>
17242
17243         dup2-tests: test previous patch
17244         * modules/dup2-tests: New file.
17245         * tests/test-dup2.c: Likewise.
17246         * tests/test-open.c (main): Avoid unspecified behavior.
17247         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17248         test.
17249
17250         dup2: work around mingw and cygwin 1.5 bug
17251         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17253         * modules/unistd (Makefile.am): Substitute it.
17254         * lib/unistd.in.h (dup2): Declare the replacement.
17255         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17256         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17257         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17258         * modules/execute (Depends-on): Add dup2.
17259         * modules/fseterr (Depends-on): Likewise.
17260         * modules/pipe (Depends-on): Likewise.
17261         * modules/posix_spawn-internal (Depends-on): Likewise.
17262
17263 2009-07-21  Bruno Haible  <bruno@clisp.org>
17264
17265         * modules/.gitattributes: New file.
17266
17267 2009-07-20  Bruno Haible  <bruno@clisp.org>
17268
17269         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17270         (main): Use it.
17271
17272 2009-07-20  Eric Blake  <ebb9@byu.net>
17273
17274         test-pipe: make a bit more robust.
17275         * tests/test-pipe.c (myerr): Allow error messages regardless of
17276         what we do to stderr.
17277         (test_pipe): Rearrange to avoid deadlock.
17278         (child_main): Try a larger read, to ensure we avoided deadlock.
17279         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17280         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17281         if misused.
17282
17283 2009-07-19  Jim Meyering  <meyering@redhat.com>
17284
17285         fts: avoid false-positive cycle-detection
17286         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17287         for each new command line argument.
17288
17289 2009-07-19  Bruno Haible  <bruno@clisp.org>
17290
17291         Fix build error on mingw with the modules sys_select and unistd.
17292         * modules/acl-tests (Depends-on): Add close.
17293         * modules/binary-io-tests (Depends-on): Likewise.
17294         * modules/closein-tests (Depends-on): Likewise.
17295         * modules/flock-tests (Depends-on): Likewise.
17296         * modules/fsync-tests (Depends-on): Likewise.
17297         * modules/lseek-tests (Depends-on): Likewise.
17298         * modules/pipe-tests (Depends-on): Likewise.
17299         * modules/posix_spawn-tests (Depends-on): Likewise.
17300         * modules/posix_spawnp-tests (Depends-on): Likewise.
17301         * modules/stat-time-tests (Depends-on): Likewise.
17302         * modules/yesno-tests (Depends-on): Likewise.
17303
17304 2009-07-19  Bruno Haible  <bruno@clisp.org>
17305
17306         Unify conditionals.
17307         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17308         macros, not at the compiler macros.
17309         * lib/pipe.c: Likewise.
17310         * lib/execute.c: Likewise.
17311         * lib/spawni.c: Likewise.
17312
17313 2009-07-19  Bruno Haible  <bruno@clisp.org>
17314
17315         Fix handling of closed stdin/stdout/stderr on mingw.
17316         * lib/w32spawn.h: Include unistd.h.
17317         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17318         file descriptor with O_NOINHERIT flag.
17319         (fd_safer_noinherit): New function, based on fd-safer.c.
17320         (dup_safer_noinherit): New function, based on dup-safer.c.
17321         (undup_safer_noinherit): New function.
17322         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17323         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17324         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17325         instead of fd_safer.
17326         * tests/test-pipe.c: Include <windows.h>.
17327         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17328
17329         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17330         from main.
17331         (test_pipe): Pass an extra argument for disambiguation.
17332         (main): Invoke parent_main or child_main.
17333
17334         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17335         consistently.
17336
17337 2009-07-18  Eric Blake  <ebb9@byu.net>
17338
17339         test-pipe: fix mingw build
17340         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17341
17342 2009-07-18  Bruno Haible  <bruno@clisp.org>
17343
17344         * modules/pipe-tests (Makefile.am): Fix typo.
17345
17346 2009-07-18  Eric Blake  <ebb9@byu.net>
17347
17348         error: fix mingw build
17349         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17350         Reported by Bruno Haible.
17351
17352         error: avoid undefined use of stdout
17353         * lib/error.c (error, error_at_line): Check that fd 1 is open
17354         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17355         is handling faults and the close_stdout module wants to report the
17356         detection of closed stdout as an error.
17357
17358 2009-07-17  Eric Blake  <ebb9@byu.net>
17359
17360         pipe: be robust in face of closed fds
17361         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17362         should cause child to misbehave.
17363         * modules/pipe-tests: New module.
17364         * tests/test-pipe.c: New file.
17365         * tests/test-pipe.sh: New file.
17366         Reported by Akim Demaille.
17367
17368 2009-07-14  Bruno Haible  <bruno@clisp.org>
17369
17370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17371         Reported by anonymous kc.
17372
17373 2009-07-07  Jim Meyering  <meyering@redhat.com>
17374
17375         maint.mk: don't look for translatable strings in *.m4 or *.mk
17376         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17377         when searching for translatable strings.
17378
17379 2009-07-05  Jim Meyering  <meyering@redhat.com>
17380
17381         remove superfluous parentheses in STREQ definition
17382         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17383         * lib/getugroups.c (STREQ): Likewise.
17384         * lib/fnmatch.c (STREQ): Likewise.
17385         Spotted by Bruno Haible.
17386
17387 2009-07-04  Jim Meyering  <meyering@redhat.com>
17388
17389         argv-iter: new module
17390         * MODULES.html.sh: Add argv-iter.
17391         * lib/argv-iter.c, lib/argv-iter.h: New files.
17392         * modules/argv-iter: New file.
17393         * modules/argv-iter-tests: New file.
17394         * tests/test-argv-iter.c: Test it.
17395
17396 2009-07-04  Bruno Haible  <bruno@clisp.org>
17397
17398         Fix assertion.
17399         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17400         contains more exact copies of a given entry than file2, leave the extra
17401         copies unpaired rather than aborting.
17402         Reported by Eric Blake.
17403
17404 2009-07-02  Bruno Haible  <bruno@clisp.org>
17405
17406         Speedup git-merge-changelog for git cherry-pick.
17407         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17408         (entries_mapping_get): New function, extracted from compute_mapping.
17409         (entries_mapping_reverse_get): New function.
17410         (compute_mapping): Add a 'full' argument. Return the result in a
17411         'struct entries_mapping'.
17412         (main): Update. Access the mappings through entries_mapping_get.
17413         Reported by Eric Blake.
17414
17415 2009-07-02  Bruno Haible  <bruno@clisp.org>
17416
17417         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17418         best_i.
17419
17420 2009-07-02  Bruno Haible  <bruno@clisp.org>
17421
17422         Speed up approximate search for matching ChangeLog entries.
17423         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17424         argument. Call fstrcmp_bounded instead of fstrcmp.
17425         (compute_mapping, try_split_merged_entry, main): Update callers.
17426
17427 2009-07-02  Bruno Haible  <bruno@clisp.org>
17428
17429         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17430
17431 2009-06-30  Bruno Haible  <bruno@clisp.org>
17432
17433         Reduce the number of uc_is_cased calls.
17434         * lib/unicase.h (casing_suffix_context_t): Add
17435         'first_char_except_ignorable' field.
17436         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17437         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17438         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17439         Update initializer.
17440         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17441         case-ignorable characters.
17442         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17443         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17444         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17445         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17446         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17447
17448 2009-06-30  Bruno Haible  <bruno@clisp.org>
17449
17450         Tests for module 'unicase/ignorable'.
17451         * modules/unicase/ignorable-tests: New file.
17452         * tests/unicase/test-ignorable.c: New file, generated by
17453         gen-uni-tables.
17454
17455         Tests for module 'unicase/cased'.
17456         * modules/unicase/cased-tests: New file.
17457         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17458         * tests/unicase/test-predicate-part1.h: New file, derived from
17459         tests/unictype/test-predicate-part1.h.
17460         * tests/unicase/test-predicate-part2.h: New file, same as
17461         tests/unictype/test-predicate-part2.h.
17462
17463         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17464         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17465         (output_casing_properties): New function.
17466         (main): Call it.
17467         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17468         * lib/unicase/cased.c: Include unictype/bitmap.h.
17469         (uc_is_cased): Define through a bitmap lookup.
17470         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17471         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17472         (uc_is_case_ignorable): Define through a bitmap lookup.
17473         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17474         lib/unictype/bitmap.h.
17475         (Depends-on): Add inline. Clean up.
17476         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17477         lib/unictype/bitmap.h.
17478         (Depends-on): Add inline. Clean up.
17479         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17480         recognition.
17481         * tests/unicase/test-u16-tolower.c (main): Likewise.
17482         * tests/unicase/test-u32-tolower.c (main): Likewise.
17483
17484 2009-06-30  Bruno Haible  <bruno@clisp.org>
17485
17486         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17487         * lib/unicase/u16-casemap.c: Likewise.
17488         * lib/unicase/u32-casemap.c: Likewise.
17489
17490 2009-06-29  Bruno Haible  <bruno@clisp.org>
17491
17492         Define u32_casefold as a wrapper around u32_ct_casefold.
17493         * lib/unicase/u32-casefold.c: Update.
17494         * modules/unicase/u32-casefold (Depends-on): Add
17495         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17496         unicase/empty-suffix-context. Clean up.
17497
17498         Define u16_casefold as a wrapper around u16_ct_casefold.
17499         * lib/unicase/u16-casefold.c: Update.
17500         * modules/unicase/u16-casefold (Depends-on): Add
17501         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17502         unicase/empty-suffix-context. Clean up.
17503
17504         Define u8_casefold as a wrapper around u8_ct_casefold.
17505         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17506         * lib/unicase/u8-casefold.c: Update.
17507         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17508         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17509
17510         Define u32_totitle as a wrapper around u32_ct_totitle.
17511         * lib/unicase/u32-totitle.c: Update.
17512         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17513         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17514
17515         Define u16_totitle as a wrapper around u16_ct_totitle.
17516         * lib/unicase/u16-totitle.c: Update.
17517         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17518         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17519
17520         Define u8_totitle as a wrapper around u8_ct_totitle.
17521         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17522         functions.
17523         (FUNC): Delegate to U_CT_TOTITLE.
17524         * lib/unicase/u8-totitle.c: Update.
17525         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17526         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17527
17528         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17529         invocation.
17530         * modules/unicase/u32-tolower (Depends-on): Add
17531         unicase/empty-prefix-context, unicase/empty-suffix-context.
17532
17533         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17534         invocation.
17535         * modules/unicase/u16-tolower (Depends-on): Add
17536         unicase/empty-prefix-context, unicase/empty-suffix-context.
17537
17538         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17539         * modules/unicase/u8-tolower (Depends-on): Add
17540         unicase/empty-prefix-context, unicase/empty-suffix-context.
17541
17542         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17543         invocation.
17544         * modules/unicase/u32-toupper (Depends-on): Add
17545         unicase/empty-prefix-context, unicase/empty-suffix-context.
17546
17547         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
17548         invocation.
17549         * modules/unicase/u16-toupper (Depends-on): Add
17550         unicase/empty-prefix-context, unicase/empty-suffix-context.
17551
17552         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
17553         * modules/unicase/u8-toupper (Depends-on): Add
17554         unicase/empty-prefix-context, unicase/empty-suffix-context.
17555
17556         New module 'unicase/u32-ct-casefold'.
17557         * lib/unicase/u32-ct-casefold.c: New file.
17558         * modules/unicase/u32-ct-casefold: New file.
17559
17560         New module 'unicase/u16-ct-casefold'.
17561         * lib/unicase/u16-ct-casefold.c: New file.
17562         * modules/unicase/u16-ct-casefold: New file.
17563
17564         New module 'unicase/u8-ct-casefold'.
17565         * lib/unicase/u8-ct-casefold.c: New file.
17566         * lib/unicase/u-ct-casefold.h: New file, derived from
17567         lib/unicase/u-casefold.h.
17568         * modules/unicase/u8-ct-casefold: New file.
17569
17570         New module 'unicase/u32-ct-totitle'.
17571         * lib/unicase/u32-ct-totitle.c: New file.
17572         * modules/unicase/u32-ct-totitle: New file.
17573
17574         New module 'unicase/u16-ct-totitle'.
17575         * lib/unicase/u16-ct-totitle.c: New file.
17576         * modules/unicase/u16-ct-totitle: New file.
17577
17578         New module 'unicase/u8-ct-totitle'.
17579         * lib/unicase/u8-ct-totitle.c: New file.
17580         * lib/unicase/u-ct-totitle.h: New file, derived from
17581         lib/unicase/u-totitle.h.
17582         * modules/unicase/u8-ct-totitle: New file.
17583
17584         New module 'unicase/u32-ct-tolower'.
17585         * lib/unicase/u32-ct-tolower.c: New file.
17586         * modules/unicase/u32-ct-tolower: New file.
17587
17588         New module 'unicase/u16-ct-tolower'.
17589         * lib/unicase/u16-ct-tolower.c: New file.
17590         * modules/unicase/u16-ct-tolower: New file.
17591
17592         New module 'unicase/u8-ct-tolower'.
17593         * lib/unicase/u8-ct-tolower.c: New file.
17594         * modules/unicase/u8-ct-tolower: New file.
17595
17596         New module 'unicase/u32-ct-toupper'.
17597         * lib/unicase/u32-ct-toupper.c: New file.
17598         * modules/unicase/u32-ct-toupper: New file.
17599
17600         New module 'unicase/u16-ct-toupper'.
17601         * lib/unicase/u16-ct-toupper.c: New file.
17602         * modules/unicase/u16-ct-toupper: New file.
17603
17604         New module 'unicase/u8-ct-toupper'.
17605         * lib/unicase/u8-ct-toupper.c: New file.
17606         * modules/unicase/u8-ct-toupper: New file.
17607
17608         Add context arguments to u*_casemap functions.
17609         * lib/unicase/unicasemap.h: Include unicase.h.
17610         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
17611         suffix_context arguments.
17612         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
17613         functions.
17614         (FUNC): Add prefix_context and suffix_context arguments. Use
17615         uc_is_cased and uc_is_case_ignorable.
17616         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
17617         * lib/unicase/u16-casemap.c: Likewise.
17618         * lib/unicase/u32-casemap.c: Likewise.
17619         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
17620         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17621         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
17622         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17623         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
17624         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17625
17626         New module 'unicase/u32-suffix-context'.
17627         * lib/unicase/u32-suffix-context.c: New file.
17628         * modules/unicase/u32-suffix-context: New file.
17629
17630         New module 'unicase/u16-suffix-context'.
17631         * lib/unicase/u16-suffix-context.c: New file.
17632         * modules/unicase/u16-suffix-context: New file.
17633
17634         New module 'unicase/u8-suffix-context'.
17635         * lib/unicase/u8-suffix-context.c: New file.
17636         * lib/unicase/u-suffix-context.h: New file.
17637         * modules/unicase/u8-suffix-context: New file.
17638
17639         New module 'unicase/empty-suffix-context'.
17640         * lib/unicase/empty-suffix-context.c: New file.
17641         * modules/unicase/empty-suffix-context: New file.
17642
17643         New module 'unicase/u32-prefix-context'.
17644         * lib/unicase/u32-prefix-context.c: New file.
17645         * modules/unicase/u32-prefix-context: New file.
17646
17647         New module 'unicase/u16-prefix-context'.
17648         * lib/unicase/u16-prefix-context.c: New file.
17649         * modules/unicase/u16-prefix-context: New file.
17650
17651         New module 'unicase/u8-prefix-context'.
17652         * lib/unicase/u8-prefix-context.c: New file.
17653         * lib/unicase/u-prefix-context.h: New file.
17654         * lib/unicase/context.h: New file.
17655         * modules/unicase/u8-prefix-context: New file.
17656
17657         New module 'unicase/empty-prefix-context'.
17658         * lib/unicase/empty-prefix-context.c: New file.
17659         * modules/unicase/empty-prefix-context: New file.
17660
17661         New module 'unicase/ignorable'.
17662         * lib/unicase/ignorable.c: New file.
17663         * modules/unicase/ignorable: New file.
17664
17665         New module 'unicase/cased'.
17666         * lib/unicase/caseprop.h: New file.
17667         * lib/unicase/cased.c: New file.
17668         * modules/unicase/cased: New file.
17669
17670         New functions for case mapping of substrings.
17671         * lib/unicase.h (casing_prefix_context_t): New type.
17672         (unicase_empty_prefix_context): New variable.
17673         (u8_casing_prefix_context, u16_casing_prefix_context,
17674         u32_casing_prefix_context, u8_casing_prefixes_context,
17675         u16_casing_prefixes_context, u32_casing_prefixes_context): New
17676         declarations.
17677         (casing_suffix_context_t): New type.
17678         (unicase_empty_suffix_context): New variable.
17679         (u8_casing_suffix_context, u16_casing_suffix_context,
17680         u32_casing_suffix_context, u8_casing_suffixes_context,
17681         u16_casing_suffixes_context, u32_casing_suffixes_context,
17682         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
17683         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
17684         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
17685         declarations.
17686
17687 2009-06-28  Jim Meyering  <meyering@redhat.com>
17688
17689         boostrap: indent only with spaces
17690         * build-aux/bootstrap: Indent only with spaces, never TABs.
17691
17692         bootstrap: split long lines
17693         * build-aux/bootstrap: Keep line length < 80.
17694
17695         bootstrap: sync from coreutils
17696         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
17697         just as autoreconf does.  Verify a list of prerequisite
17698         package-name,version-number pairs if defined in bootstrap.conf.
17699         Refer to README-prereq, if prerequisites are not satisfied.
17700
17701 2009-06-27  Eric Blake  <ebb9@byu.net>
17702
17703         tests: add test for bogus NULL definition
17704         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
17705         * tests/test-stdlib.c: Likewise.
17706         * tests/test-string.c: Likewise.
17707         * tests/test-locale.c: Likewise.
17708         * tests/test-unistd.c: Likewise.
17709         * modules/stdio-tests (Depends-on): Add verify.
17710         * modules/stdlib-tests (Depends-on): Likewise.
17711         * modules/string-tests (Depends-on): Likewise.
17712         * modules/locale-tests (Depends-on): Likewise.
17713         * modules/unistd-tests (Depends-on): Likewise.
17714
17715 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17716
17717         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
17718         self-explaining comment.
17719         * m4/selinux-selinux-h: Update serial.
17720         (gl_LIBSELINUX): New macro, adding a warning for missing development
17721         packages to code extracted from...
17722         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
17723         Add warning for missing development packages here, too.
17724
17725 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
17726
17727         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
17728
17729 2009-06-25  Eric Blake  <ebb9@byu.net>
17730
17731         version-etc: fix regression
17732         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
17733         gcc.
17734         (version_etc): Use it, to catch bugs with trailing NULL.
17735         * lib/version-etc.c (version_etc_arn): Delete unused argument.
17736         (version_etc_va): Fix logic bug.
17737         * modules/version-etc-tests: Add test.
17738         * tests/test-version-etc.c: New file.
17739         * tests/test-version-etc.sh: Likewise.
17740
17741 2009-06-25  Sam Steingold  <sds@gnu.org>
17742
17743         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
17744         mbtowc declaration.
17745
17746 2009-06-25  Eric Blake  <ebb9@byu.net>
17747
17748         fpurge: migrate into <stdio.h>
17749         * lib/fpurge.h: Delete...
17750         * lib/stdio.in.h (fpurge): ...and declare here, instead.
17751         * lib/fpurge.c (fpurge): Change declaring header.
17752         * modules/fpurge (Files): Drop deleted file.
17753         (Depends-on): Add stdio.
17754         (configure.ac): Set witness.
17755         * modules/stdio (Makefile.am): Support fpurge macros.
17756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17757         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
17758         * lib/fflush.c: Update client.
17759         * tests/test-fpurge.c: Likewise.
17760         * NEWS: Mention the change.
17761
17762 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17763
17764         * lib/argp-version-etc.c (program_authors): Add const
17765         qualifier.
17766         * lib/version-etc.c: Fix typos in the comments.
17767         * modules/argp-version-etc: Depends on version-etc.
17768
17769 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17770
17771         argp-version-etc: new module.
17772
17773         * lib/argp-version-etc.c: New file.
17774         * lib/argp-version-etc.h: New file.
17775         * modules/argp-version-etc: New file.
17776         * modules/argp-version-etc-tests: New file.
17777         * tests/test-argp-version-etc.c: New test.
17778         * tests/test-argp-version-etc-1.sh: New test.
17779
17780 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17781
17782         Provide additional interfaces and documentation for version-etc
17783         module.
17784
17785         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
17786         interfaces.
17787         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
17788         prototypes.
17789
17790 2009-06-24  Bruno Haible  <bruno@clisp.org>
17791
17792         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
17793         HAVE_LIB${NAME} macro.
17794         Reported by Sam Steingold <sds@gnu.org>.
17795
17796 2009-06-23  Simon Josefsson  <simon@josefsson.org>
17797
17798         * modules/hash-tests (test_hash_LDADD): Link to libintl when
17799         needed.
17800
17801 2009-06-21  Bruno Haible  <bruno@clisp.org>
17802
17803         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
17804         work.
17805         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
17806         together with LIB${NAME}, LTLIB${NAME}.
17807         Reported by Sam Steingold <sds@gnu.org>.
17808
17809 2009-06-20  Jim Meyering  <meyering@redhat.com>
17810
17811         tests: make sc_require_test_exit_idiom more generic
17812         * top/maint.mk (Exit_witness_file): New overridable variable.
17813         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
17814         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
17815
17816 2009-06-19  Jim Meyering  <meyering@redhat.com>
17817
17818         hash: reverse order of src/dst parameters in an internal interface
17819         * lib/hash.c (transfer_entries): Reverse order of parameters to
17820         put DST before SRC.  Adjust callers.
17821
17822         tests: test-hash: avoid wholesale duplication
17823         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
17824         Instead, use a loop and add a single conditional.
17825
17826         tests: test-hash: allow seed selection via a command line argument
17827         * tests/test-hash.c (get_seed): New function.
17828         (main): Use it.
17829
17830 2009-06-19  Eric Blake  <ebb9@byu.net>
17831
17832         hash: avoid memory leak on allocation failure
17833         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
17834         failure.  Factor repeated algorithm...
17835         (transfer_entries): ...into new helper routine.
17836         (hash_delete): React to hash_rehash return value.
17837
17838         hash: reduce memory pressure in hash_rehash no-op case
17839         * lib/hash.c (next_prime): Avoid overflow.
17840         (hash_initialize): Factor bucket size computation...
17841         (compute_bucket_size): ...into new helper function.
17842         (hash_rehash): Use new function and open coding to reduce memory
17843         pressure, and avoid a memory leak in USE_OBSTACK code.
17844         Reported by Jim Meyering.
17845
17846 2009-06-18  Eric Blake  <ebb9@byu.net>
17847
17848         hash: make rotation more obvious
17849         * modules/hash (Depends-on): Add bitrotate and stdint.
17850         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
17851         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
17852         (SIZE_MAX): Rely on headers for definition.
17853         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
17854         (raw_hasher): Use rotr_sz.
17855         Suggested by Jim Meyering.
17856
17857         hash: fix memory leak in last patch
17858         * lib/hash.c (hash_rehash): Avoid memory leak.
17859
17860         hash: avoid no-op rehashing
17861         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
17862
17863         hash: provide default callback functions
17864         * lib/hash.c (raw_hasher, raw_comparator): New functions.
17865         (hash_initialize): Use them as defaults.
17866         * tests/test-hash.c (main): Test this.
17867
17868         hash: minor optimization
17869         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
17870         when possible.
17871         (hash_initialize): Document this promise.
17872         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
17873         * tests/test-hash.c (hash_compare_strings): Test this.
17874
17875 2009-06-18  Bruno Haible  <bruno@clisp.org>
17876
17877         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
17878         going to be replaced anyway.
17879
17880 2009-06-18  Bruno Haible  <bruno@clisp.org>
17881
17882         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
17883         in one place.
17884         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
17885         be replaced anyway.
17886
17887 2009-06-18  Eric Blake  <ebb9@byu.net>
17888
17889         hash: check for resize before insertion
17890         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
17891         threshold before insertion, so that a pathological hash_rehash
17892         that fills every bucket can still trigger another rehash.
17893
17894 2009-06-18  Jim Meyering  <meyering@redhat.com>
17895
17896         hash-tests: add a loop around the small tests
17897         * tests/test-hash.c (main): Repeat small tests with selected
17898         small initial table sizes.
17899
17900 2009-06-17  Eric Blake  <ebb9@byu.net>
17901
17902         hash: minor cleanups
17903         * lib/hash.h (hash_entry): Make opaque, by moving...
17904         * lib/hash.c (hash_entry): ...here.
17905         (hash_insert): Clarify restrictions on what can be inserted.
17906         (hash_get_next): Clarify when it is safe to remove an element
17907         during traversal.
17908         (check_tuning): Skip verification when tuning is known safe.
17909         (hash_initialize): Clarify restrictions on tuning.
17910
17911 2009-06-17  Jim Meyering  <jim@meyering.net>
17912         and Eric Blake  <ebb9@byu.net>
17913
17914         hash-tests: new module
17915         * modules/hash-tests: New file.
17916         * tests/test-hash.c: New file.
17917
17918 2009-06-17  Eric Blake  <ebb9@byu.net>
17919
17920         strstr-simple: document new module
17921         * MODULES.html.sh: Document new module.
17922
17923         strstr, strcasestr: replace on platforms with broken memchr
17924         * modules/strstr: Split into...
17925         * modules/strstr-simple: ...new module that does not care about
17926         performance, but does care about glibc bug.
17927         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
17928         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
17929         if platform memchr is broken, per Debian bug 521737.
17930         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
17931         memchr.
17932         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
17933         * doc/posix-functions/strstr.texi (strstr): Document the fix.
17934         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17935         * modules/mountlist (Depends-on): Add strstr-simple.
17936         * modules/gen-uni-tables (Depends-on): Likewise.
17937         * modules/argz (Depends-on): Add strstr.
17938
17939 2009-06-17  Bruno Haible  <bruno@clisp.org>
17940
17941         * modules/posix_spawn-internal (Depends-on): Add errno.
17942
17943 2009-06-17  Bruno Haible  <bruno@clisp.org>
17944
17945         Define missing ESTALE on Interix 3.5.
17946         * lib/errno.in.h (ESTALE): Assign a value if missing.
17947         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
17948         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
17949         missing.
17950         * doc/posix-headers/errno.texi: Mention the Interix bug.
17951         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
17952
17953 2009-06-15  Eric Blake  <ebb9@byu.net>
17954
17955         memchr, memchr2: add valgrind exception
17956         * lib/memchr.valgrind: New file.
17957         * lib/memchr2.valgrind: New file.
17958         * modules/memchr (Files): Distribute valgrind file.
17959         * modules/memchr2 (Files): Likewise.
17960
17961         docs: memchr is no longer obsolete
17962         * MODULES.html.sh: Move memchr from obsolete to string.h section.
17963         * lib/string.in.h (memchr): Simplify logic.
17964
17965 2009-06-14  Jim Meyering  <meyering@redhat.com>
17966
17967         link-follow: fix the "checking..." message to not mention trailing slash
17968         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
17969         never considered trailing slashes.
17970
17971 2009-06-14  Bruno Haible  <bruno@clisp.org>
17972
17973         * m4/memchr.m4: Mention also the bug on IA-64.
17974         * doc/posix-functions/memchr.texi: Likewise.
17975
17976 2009-06-12  Eric Blake  <ebb9@byu.net>
17977
17978         memchr: detect broken x86_64 and alpha implementations
17979         * modules/memchr-tests (Depends-on): Move mmap detection...
17980         * modules/memchr (Depends-on): ...here.
17981         (configure.ac): Set indicator.
17982         * lib/string.in.h (memchr): Declare replacement.
17983         * modules/string (Makefile.am): Trigger replacement.
17984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17985         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
17986         bugs.
17987         * doc/posix-functions/memchr.texi (memchr): Document the bug.
17988         * modules/getpagesize (License): Relax license.
17989
17990 2009-06-11  Bruno Haible  <bruno@clisp.org>
17991
17992         * lib/idpriv.h: Add more references.
17993
17994 2009-06-08  Bruno Haible  <bruno@clisp.org>
17995
17996         Tests for module 'idpriv-droptemp'.
17997         * modules/idpriv-droptemp-tests: New file.
17998         * tests/test-idpriv-droptemp.sh: New file.
17999         * tests/test-idpriv-droptemp.su.sh: New file.
18000         * tests/test-idpriv-droptemp.c: New file.
18001
18002         New module 'idpriv-droptemp'.
18003         * lib/idpriv-droptemp.c: New file.
18004         * modules/idpriv-droptemp: New file.
18005
18006 2009-06-08  Bruno Haible  <bruno@clisp.org>
18007
18008         Tests for module 'idpriv-drop'.
18009         * modules/idpriv-drop-tests: New file.
18010         * tests/test-idpriv-drop.sh: New file.
18011         * tests/test-idpriv-drop.su.sh: New file.
18012         * tests/test-idpriv-drop.c: New file.
18013
18014         New module 'idpriv-drop'.
18015         * lib/idpriv.h: New file.
18016         * lib-idpriv-drop.c: New file.
18017         * m4/idpriv.m4: New file.
18018         * modules/idpriv-drop: New file.
18019
18020 2009-06-08  Bruno Haible  <bruno@clisp.org>
18021
18022         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18023         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18024         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18025         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18026         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18027         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18028         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18029
18030 2009-06-08  Eric Blake  <ebb9@byu.net>
18031
18032         test-strstr: use memory fence, when possible
18033         * tests/test-strstr.c (main): Use memory fence, in order to be
18034         more likely to trigger Debian bug 521737.
18035         * modules/strstr-tests (Files): Pull in additional files.
18036
18037         memchr: no longer obsolete, for wider field testing
18038         * modules/memchr (Status, Notice): Delete, this module is no
18039         longer obsolete.
18040         * modules/vasnprintf (Depends-on): Add memchr.
18041
18042 2009-06-07  Jim Meyering  <meyering@redhat.com>
18043
18044         hash: declare some functions with the warn_unused_result attribute
18045         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18046
18047 2009-06-07  Bruno Haible  <bruno@clisp.org>
18048
18049         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18050         Reported by Eric Blake.
18051
18052 2009-06-06  Eric Blake  <ebb9@byu.net>
18053
18054         test-alignof: fix typo with long double
18055         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18056         compiler error.
18057
18058 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18059
18060         Escape non-texinfo { and }s.
18061         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18062         markup error.
18063
18064 2009-06-04  Jim Meyering  <meyering@redhat.com>
18065
18066         gitlog-to-changelog: don't infloop on an empty commit log
18067         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18068         Reported by Boris Petersen <transacid@centerim.org>.
18069
18070 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18071
18072         version-etc: extend for packagers
18073         Add three new configure options, intended for packagers:
18074           --with-packager="packager name"
18075           --with-packager-version="packager-specific version"
18076           --with-packager-bug-reports="packager bug reporting"
18077         An example with coreutils:
18078           $ ./configure \
18079             --with-packager=Gentoo \
18080             --with-packager-bug-report=http://bugs.gentoo.org/ \
18081             --with-packager-version="patchset 1.6"
18082           $ ./src/ls --version | head -n2
18083           ls (GNU coreutils) 7.1-dirty
18084           Packaged by Gentoo (patchset 1.6)
18085         Note that the bug reporting info via --help doesn't show up because
18086         coreutils uses its own custom emit_bug_reporting_address() implementation
18087         in src/system.h.  If it didn't, it'd look like:
18088           $ ./src/ls --help | tail -n4
18089           Report bugs to <bug-coreutils@gnu.org>.
18090           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18091           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18092           General help using GNU software: <http://www.gnu.org/gethelp/>.
18093         * lib/version-etc.c: Print new information, if provided.
18094         * m4/version-etc.m4: New file.
18095         * modules/version-etc (Files): Add m4/version-etc.m4.
18096         (configure.ac): Add gl_VERSION_ETC.
18097
18098 2009-05-31  Bruno Haible  <bruno@clisp.org>
18099
18100         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18101         and 'int64_t'.
18102         * modules/alignof-tests (Dependencies): Add stdint.
18103         Reported by Eric Blake.
18104
18105 2009-05-31  Bruno Haible  <bruno@clisp.org>
18106
18107         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18108         restriction due to compiler bugs.
18109         Reported by Eric Blake.
18110
18111 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18112             Bruno Haible  <bruno@clisp.org>
18113
18114         Fix test-alignof failure.
18115         * lib/alignof.h (alignof_slot): New macro.
18116         (alignof_type): New macro, with the same semantics as the previous
18117         'alignof'.
18118         (alignof): Alias to alignof_slot.
18119         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18120         check that the results are usable as constant expressions.
18121
18122 2009-05-31  Bruno Haible  <bruno@clisp.org>
18123
18124         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18125         * tests/test-memchr.c (main): Check that memchr does not read past the
18126         first occurrence of the byte.
18127         * tests/test-strstr.c (main): Update comment.
18128         Suggested by Eric Blake.
18129
18130 2009-05-30  Bruno Haible  <bruno@clisp.org>
18131
18132         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18133         detail how to use dumpbin.
18134         Reported by David Byron <dbyron@dbyron.com>.
18135
18136 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18137
18138         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18139
18140 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18141
18142         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18143
18144 2009-05-28  Bruno Haible  <bruno@clisp.org>
18145
18146         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18147         build-aux/ files.
18148
18149 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18150
18151         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18152
18153 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18154
18155         * gnulib-tool (sed_transform_main_lib_file)
18156         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18157         regexps.
18158
18159 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18160
18161         * tests/test-strstr.c: Add another self-test.
18162         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18163         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18164
18165 2009-05-23  Bruno Haible  <bruno@clisp.org>
18166
18167         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18168         change.
18169
18170 2009-05-21  Bruno Haible  <bruno@clisp.org>
18171
18172         Simplify use of mode_t varargs.
18173         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18174         uses 'mode_t' or 'int'.
18175         * lib/openat.c (openat): Likewise.
18176         * lib/open-safer.c (open_safer): Likewise.
18177         * m4/mode_t.m4: New file.
18178         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18179         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18180         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18181         * modules/open (Files): Add m4/mode_t.m4.
18182         * modules/openat (Files): Likewise.
18183         * modules/fcntl-safer (Files): Likewise.
18184         Suggested by Eric Blake.
18185
18186 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18187
18188         * doc/glibc-functions/fallocate.texi: New file.
18189         * doc/gnulib.texi: Include it.
18190
18191 2009-05-21  Eric Blake  <ebb9@byu.net>
18192             Bruno Haible  <bruno@clisp.org>
18193
18194         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18195         invocations.
18196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18197
18198 2009-05-21  Eric Blake  <ebb9@byu.net>
18199             Bruno Haible  <bruno@clisp.org>
18200
18201         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18202         include_next. Fix of 2008-11-20 commit.
18203         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18204         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18205         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18206         NEXT_MATH_H.
18207         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18208         instead of NEXT_MATH_H.
18209
18210 2009-05-21  Bruno Haible  <bruno@clisp.org>
18211
18212         Avoid redefinition warnings for SIZE_MAX.
18213         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18214         Reported by Simon Josefsson.
18215
18216 2009-05-21  Bruno Haible  <bruno@clisp.org>
18217
18218         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18219         AC_CACHE_VAL.
18220
18221 2009-05-20  Bruno Haible  <bruno@clisp.org>
18222
18223         Make zeroptr.h work on mingw.
18224         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18225         mprotect.
18226         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18227         * modules/memchr2-tests (configure.ac): Likewise.
18228         * modules/memcmp-tests (configure.ac): Likewise.
18229         * modules/memmem-tests (configure.ac): Likewise.
18230         * modules/memrchr-tests (configure.ac): Likewise.
18231         Reported by Simon Josefsson.
18232
18233 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18234
18235         * tests/test-glob.c: Include string.h for strcmp prototype.
18236
18237 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18238
18239         * modules/getdelim (Depends-on): Add explicit stdint, although it
18240         was implicitly already pulled in via realloc-posix.
18241         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18242
18243 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18244
18245         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18246         G. Christensen" <tgc@jupiterrise.com>.
18247         * m4/sys_socket_h.m4: Check for sa_family_t.
18248         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18249         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18250         * tests/test-sys_socket.c: Check that sa_family_t works.
18251
18252 2009-05-18  Eric Blake  <ebb9@byu.net>
18253
18254         maint.mk: allow gnulib_dir in VPATH build
18255         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18256
18257 2009-05-15  Jim Meyering  <meyering@redhat.com>
18258
18259         maint.mk: Give gnulib_dir a default definition.
18260         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18261         Thus, most packages no longer need to specify this variable in cfg.mk
18262
18263 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18264
18265         rename.m4: fix typos that would make non-mingw cross-configure fail
18266         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18267
18268 2009-05-13  Eric Blake  <ebb9@byu.net>
18269
18270         mmap-anon: avoid out-of-order autoconf expansion
18271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18272         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18273         * modules/memchr-tests (Depends-on): Add extensions.
18274         * modules/memchr2-tests (Depends-on): Add extensions.
18275         * modules/memcmp-tests (Depends-on): Add extensions.
18276         * modules/memmem-tests (Depends-on): Add extensions.
18277         * modules/memrchr-tests (Depends-on): Add extensions.
18278
18279 2009-05-13  Bruno Haible  <bruno@clisp.org>
18280
18281         Make some tests ISO C 99 compliant.
18282         * tests/zerosize-ptr.h: New file.
18283         * tests/test-memchr.c: Include zerosize-ptr.h.
18284         (main): Use a zero-size object pointer instead of NULL.
18285         * tests/test-memchr2.c: Include zerosize-ptr.h.
18286         (main): Use a zero-size object pointer instead of NULL.
18287         * tests/test-memcmp.c: Include zerosize-ptr.h.
18288         (main): Use a zero-size object pointer instead of NULL.
18289         * tests/test-memmem.c: Include zerosize-ptr.h.
18290         (main): Use a zero-size object pointer instead of NULL.
18291         * tests/test-memrchr.c: Include zerosize-ptr.h.
18292         (main): Use a zero-size object pointer instead of NULL.
18293         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18294         m4/mmap-anon.m4.
18295         (Depends-on): Add getpagesize.
18296         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18297         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18298         m4/mmap-anon.m4.
18299         (Depends-on): Add getpagesize.
18300         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18301         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18302         m4/mmap-anon.m4.
18303         (Depends-on): Add getpagesize.
18304         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18305         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18306         m4/mmap-anon.m4.
18307         (Depends-on): Add getpagesize.
18308         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18309         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18310         m4/mmap-anon.m4.
18311         (Depends-on): Add getpagesize.
18312         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18313
18314 2009-05-12  Bruno Haible  <bruno@clisp.org>
18315
18316         Tests for module 'alignof'.
18317         * modules/alignof-tests: New file.
18318         * tests/test-alignof.c: New file.
18319
18320 2009-05-12  Bruno Haible  <bruno@clisp.org>
18321
18322         Fix alignof macro.
18323         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18324         vendor compilers that are always correct.
18325
18326 2009-05-12  Bruno Haible  <bruno@clisp.org>
18327
18328         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18329         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18330         not whether its fully works.
18331
18332 2009-05-12  Bruno Haible  <bruno@clisp.org>
18333
18334         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18335
18336 2009-05-12  Jim Meyering  <meyering@redhat.com>
18337
18338         * top/maint.mk: Adjust backslash alignment.
18339
18340 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18341
18342         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18343
18344 2009-05-11  Eric Blake  <ebb9@byu.net>
18345
18346         argp: avoid undefined behavior
18347         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18348         macros.
18349
18350 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18351
18352         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18353         user.name to prevent git commit from complaining.
18354
18355 2009-05-10  Bruno Haible  <bruno@clisp.org>
18356
18357         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18358         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18359         it rewrites every file name only once.
18360         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18361
18362 2009-05-08  Bruno Haible  <bruno@clisp.org>
18363
18364         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18365         instead of 'max'.
18366
18367 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18368
18369         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18370         sockaddr_storage test.
18371
18372 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18373
18374         * modules/sys_socket (Makefile.am): Substitute
18375         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18376         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18377         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18378         * tests/test-sys_socket.c: Check sockaddr_storage.
18379
18380 2009-05-08  Bruno Haible  <bruno@clisp.org>
18381
18382         New module 'alignof'.
18383         * lib/alignof.h: New file.
18384         * modules/alignof: New file.
18385
18386 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18387             Bruno Haible  <bruno@clisp.org>
18388
18389         Fix test-file-has-acl on FreeBSD.
18390         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18391         mask is implicitly added.
18392         * tests/test-file-has-acl.c: Include <signal.h>.
18393         (main): Terminate the test after 5 seconds.
18394         * modules/acl-tests (configure.ac): Check for alarm function.
18395
18396 2009-05-04  Bruno Haible  <bruno@clisp.org>
18397
18398         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18400         * modules/errno (configure.ac): Drop AC_REQUIRE.
18401         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18402         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18403
18404 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18405
18406         * modules/glob-tests: New module.
18407         * tests/test-glob.c: Add.
18408
18409 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18410
18411         * modules/fnmatch-tests: New module.
18412         * tests/test-fnmatch.c: Add.
18413
18414 2009-05-04  Eric Blake  <ebb9@byu.net>
18415
18416         maint: make the new no-submodule-changes rule VPATH-safe
18417         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18418
18419 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18420             Bruno Haible  <bruno@clisp.org>
18421
18422         acl: Fix infinite loop on FreeBSD.
18423         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18424         of return value from acl_get_entry.
18425         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18426         Likewise.
18427
18428 2009-05-03  Bruno Haible  <bruno@clisp.org>
18429
18430         * lib/acl-internal.h (acl_entries): Clarify return value.
18431         * lib/acl_entries.c (acl_entries): Likewise.
18432
18433 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18434
18435         Bug fix in acl module.
18436         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18437
18438 2009-05-03  Bruno Haible  <bruno@clisp.org>
18439
18440         Create gperf-generated file in the source dir, not in the build dir.
18441         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18442         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18443         * modules/unicase/locale-language (unicase/locale-languages.h):
18444         Likewise.
18445         * modules/unicase/special-casing (unicase/special-casing-table.h):
18446         Likewise.
18447         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18448         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18449         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18450         Reported by Ralf Wildenhues.
18451
18452 2009-05-03  Bruno Haible  <bruno@clisp.org>
18453
18454         * modules/fnmatch (Description, configure.ac): Taken from
18455         fnmatch-posix.
18456         * modules/fnmatch-posix: Turn into a symbolic reference to the
18457         'fnmatch' module, and deprecate.
18458         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18459
18460 2009-05-03  Bruno Haible  <bruno@clisp.org>
18461
18462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18463         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18464         Reported by Ralf Wildenhues.
18465
18466 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18467
18468         * m4/fnmatch.m4: Fix fnmatch re-define.
18469
18470 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18471
18472         priv-set: new module and tests; adapt write-any-file
18473         * lib/priv-set.c: New file.
18474         * lib/priv-set.h: New file.
18475         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18476         * lib/write-any-file.c: Simplify by using priv-set module.
18477         * m4/priv-set.m4: New file.
18478         * modules/priv-set: New file.
18479         * modules/unlinkdir: Add dependency on priv-set module.
18480         * modules/write-any-file: Likewise.
18481
18482         Tests for module 'priv-set'.
18483         * modules/priv-set-tests: New file.
18484         * tests/test-priv-set.c: New file.
18485
18486 2009-05-03  Jim Meyering  <meyering@redhat.com>
18487             Bruno Haible  <bruno@clisp.org>
18488
18489         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18490         use the converted UTF-8 variant of the name instead.
18491
18492 2009-05-03  Jim Meyering  <meyering@redhat.com>
18493
18494         tests: tighten some getdate tests
18495         * tests/test-getdate.c (main): Tighten tests: require equality,
18496         not just greater than.  Set TZ envvar to UTC0.
18497
18498 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18499
18500         getdate: correctly interpret "next monday" when run on a Monday
18501         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18502         that e.g., "next tues" (when run on a tuesday) results in a date
18503         that is one week in the future, and not today's date.
18504         I.e., add a week when the wday is the same as the current one.
18505         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18506         and earlier by Martin Bernreuther and Jan Minář.
18507         * tests/test-getdate.c (main): Check that "next DAY" is always in
18508         the future and that "last DAY" is always in the past.
18509
18510 2009-05-02  Jim Meyering  <meyering@redhat.com>
18511
18512         build: ensure that a release build fails when a submodule is unclean
18513         * top/maint.mk (no-submodule-changes): New rule.
18514         (alpha beta major): Depend on it.
18515
18516 2009-05-02  Bruno Haible  <bruno@clisp.org>
18517
18518         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18519         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18520         shell variable gl_fnmatch_required to detect which variant is
18521         requested.
18522         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18523         gl_FUNC_FNMATCH_POSIX.
18524         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18525         exclude fnmatch-posix.
18526
18527 2009-05-02  Bruno Haible  <bruno@clisp.org>
18528
18529         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18530         * modules/mbsrtowcs (License): Change to LGPLv2+.
18531         * modules/strnlen1 (License): Likewise.
18532         Reported by Simon Josefsson.
18533
18534 2009-05-02  Bruno Haible  <bruno@clisp.org>
18535
18536         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18537         "cross".
18538         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18539         gnulib-tool was called with option --source-base=lib.
18540
18541 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18542
18543         Use automake *-local hooks without commands, for extensibility.
18544         * modules/localcharset (Makefile.am): Rename install-exec-local
18545         rule to install-exec-localcharset, and make it a prerequisite of
18546         install-exec-local.  Likewise, rename the uninstall-local rule to
18547         uninstall-localcharset, and make it a prerequisite of the former.
18548
18549 2009-05-01  Bruno Haible  <bruno@clisp.org>
18550
18551         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
18552         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18553         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
18554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
18555         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
18556         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18557         m4/locale-zh.m4, m4/codeset.m4.
18558
18559         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18560         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
18561         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18562         m4/locale-zh.m4.
18563
18564         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
18565         REPLACE_WCRTOMB if mbstate_t must be replaced.
18566         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
18567         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
18568
18569 2009-05-01  Bruno Haible  <bruno@clisp.org>
18570
18571         Avoid compiler warnings when redefining macros defined by <libintl.h>.
18572         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
18573         dngettext, dcngettext, textdomain, bindtextdomain,
18574         bind_textdomain_codeset): Undefine before redefining.
18575
18576 2009-04-30  Bruno Haible  <bruno@clisp.org>
18577
18578         Fix bug introduced on 2009-04-25.
18579         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
18580         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
18581         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
18582         is defined.
18583         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
18584         is defined.
18585         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
18586         is defined.
18587         Reported by Elbert_Pol <elbert.pol@gmail.com>.
18588
18589 2009-04-28  Bruno Haible  <bruno@clisp.org>
18590
18591         Comment tweaks.
18592         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
18593         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
18594         * lib/unicase.h (u*_casexfrm): Likewise.
18595         Reported by Paolo Bonzini.
18596
18597 2009-04-28  Bruno Haible  <bruno@clisp.org>
18598
18599         Fix a compilation error.
18600         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
18601         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
18602         Reported by Jim Meyering.
18603
18604 2009-04-27  Bruno Haible  <bruno@clisp.org>
18605
18606         New module 'libunistring'.
18607         * modules/libunistring: New file.
18608         * m4/libunistring.m4: New file.
18609         * MODULES.html.sh (Unicode string functions): Add it.
18610
18611 2009-04-27  Eric Blake  <ebb9@byu.net>
18612
18613         maint.mk: allow package-specific header to provide <config.h>
18614         * top/maint.mk (sc_require_config_h): New variable.
18615         (sc_require_config_h, sc_require_config_h_first): Use it.
18616
18617 2009-04-27  Simon Josefsson  <simon@josefsson.org>
18618
18619         * top/maint.mk (sc_avoid_if_before_free): Except
18620         useless-if-before-free script.
18621
18622 2009-04-27  Eric Blake  <ebb9@byu.net>
18623
18624         maintainer-makefile: depend on all required helper scripts
18625         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
18626         useless-if-before-free.
18627         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
18628         version, rather than assuming gnulib checkout is available.
18629         Reported by Simen Josefsson.
18630
18631 2009-04-26  Bruno Haible  <bruno@clisp.org>
18632
18633         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
18634         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
18635         "../" or "..".
18636
18637 2009-04-26  Bruno Haible  <bruno@clisp.org>
18638
18639         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
18640         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
18641         AC_LIB_HAVE_LINKFLAGS.
18642
18643 2009-04-26  Bruno Haible  <bruno@clisp.org>
18644
18645         Simplify calling convention of u*_conv_from_encoding.
18646         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
18647         u32_conv_from_encoding): Expect a resultbuf argument and return the
18648         result directly as a pointer.
18649         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
18650         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
18651         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
18652         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
18653         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
18654         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
18655         Update.
18656         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
18657         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
18658         * lib/vasnprintf.c (VASNPRINTF): Update.
18659         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
18660         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
18661         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
18662         * NEWS: Mention the change.
18663
18664 2009-04-26  Bruno Haible  <bruno@clisp.org>
18665
18666         Simplify calling convention of u*_conv_to_encoding.
18667         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
18668         u32_conv_to_encoding): Expect a resultbuf argument and return the
18669         result directly as a pointer.
18670         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18671         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
18672         freeing scaled_offsets if mem_iconveha failed.
18673         * lib/unicase/u-casexfrm.h (FUNC): Update.
18674         * lib/uninorm/u-normxfrm.h (FUNC): Update.
18675         * lib/vasnprintf.c (VASNPRINTF): Update.
18676         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
18677         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
18678         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
18679         * NEWS: Mention the change.
18680
18681 2009-04-26  Bruno Haible  <bruno@clisp.org>
18682
18683         Avoid test failures on AIX and OSF/1.
18684         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
18685         malloc(0).
18686         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18687         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
18688         Likewise.
18689         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
18690         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
18691         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
18692         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
18693         * doc/posix-functions/malloc.texi: Document the portability problem
18694         related to malloc(0).
18695
18696 2009-04-26  Bruno Haible  <bruno@clisp.org>
18697
18698         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
18699         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
18700         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
18701
18702 2009-04-25  Bruno Haible  <bruno@clisp.org>
18703
18704         Avoid link error when creating a namespace clean library.
18705         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
18706         as macro with arguments if already defined as an alias.
18707         * lib/signbitf.c (gl_signbitf): Don't undefine.
18708         * lib/signbitd.c (gl_signbitd): Don't undefine.
18709         * lib/signbitl.c (gl_signbitl): Don't undefine.
18710
18711 2009-04-25  Jim Meyering  <meyering@redhat.com>
18712
18713         vc-list-files: fix another quoting bug
18714         * build-aux/vc-list-files: Avoid sed backslash expansion
18715         of pathological directory names.
18716
18717 2009-04-25  Eric Blake  <ebb9@byu.net>
18718
18719         vc-list-files: fix shell quoting error
18720         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
18721         timestamp.
18722
18723 2009-04-25  Jim Meyering  <meyering@redhat.com>
18724
18725         vc-list-files: restore lost functionality with subdir argument
18726         * build-aux/vc-list-files: When given a non-"." sub-directory
18727         argument, substitute the $dir/ prefix back onto each resulting name.
18728         Otherwise, coreutils' root_tests check would fail.
18729
18730 2009-04-24  Eric Blake  <ebb9@byu.net>
18731
18732         vc-list-files: ignore git symlinks
18733         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
18734         than ls-files, to ignore git symlinks.
18735
18736         maint.mk: import improvements from m4
18737         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
18738         (move_if_change): Delete unused macro.
18739         (news-date-check, vc-diff-check): Support VPATH builds.
18740         (announcement): Likewise.  Split --bootstrap-tools list...
18741         (boostrap-tools): ...into separate list, which can be overridden
18742         in cfg.mk.
18743         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
18744         requiring dependency on useless-if-before-free module.
18745         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
18746         Support VPATH builds.
18747
18748 2009-04-24  Jim Meyering  <meyering@redhat.com>
18749
18750         maint.mk: remove coreutils-specific rules and variables
18751         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
18752         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
18753         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
18754
18755         maint.mk: remove obsolete rule
18756         * top/maint.mk (rel-check): Remove rule.
18757         (WGET, WGETFLAGS): Remove now-unused variables.
18758
18759 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18760
18761         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
18762         consistency.
18763
18764         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
18765         '$(PATH_SEPARATOR)' instead of ':'.
18766
18767 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18768
18769         * lib/getopt1.c (main): Use 'const' for static array.
18770
18771 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18772
18773         * top/maint.mk: Sync with coreutils.
18774         * NEWS: Explain incompatibilities.
18775
18776 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18777             Bruno Haible  <bruno@clisp.org>
18778
18779         Fix cross-compilation results.
18780         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
18781         statement, as third argument of AC_TRY_RUN.
18782         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18783         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18784         Likewise.
18785         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18786         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18787         Likewise.
18788         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18789         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
18790         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
18791
18792 2009-04-20  Bruno Haible  <bruno@clisp.org>
18793
18794         Avoid test failure on mingw.
18795         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
18796
18797 2009-04-20  Bruno Haible  <bruno@clisp.org>
18798
18799         Avoid compilation error on mingw.
18800         * modules/localename-tests (Depends-on): Add locale.
18801
18802 2009-04-19  Bruno Haible  <bruno@clisp.org>
18803
18804         Support for building a shared library on Windows platforms.
18805         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
18806         (main): Test the presence of UNINORM_NFC here.
18807         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
18808         (main): Test the presence of UNINORM_NFD here.
18809         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
18810         (main): Test the presence of UNINORM_NFKC here.
18811         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
18812         (main): Test the presence of UNINORM_NFKD here.
18813
18814 2009-04-19  Bruno Haible  <bruno@clisp.org>
18815
18816         Avoid a compiler warning.
18817         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
18818         Change type of variable 'sequence'.
18819
18820 2009-04-19  Bruno Haible  <bruno@clisp.org>
18821
18822         * modules/configmake (Makefile.am): When the contents of configmake.h
18823         does not change, arrange to preserve its modification time.
18824
18825 2009-04-17  Simon Josefsson  <simon@josefsson.org>
18826
18827         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
18828         gettext domain.
18829
18830 2009-04-16  Jim Meyering  <meyering@redhat.com>
18831
18832         useless-if-before-free: improve conversion code
18833         * build-aux/useless-if-before-free: Adjust code-in-comment to match
18834         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
18835
18836 2009-04-14  Bruno Haible  <bruno@clisp.org>
18837
18838         * modules/fcntl (Depends-on): Add extensions.
18839         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
18840
18841 2009-04-12  Ben Pfaff  <blp@gnu.org>
18842
18843         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
18844         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
18845
18846 2009-03-20  Ben Pfaff  <blp@gnu.org>
18847
18848         Make rename replace existing destinations on Windows.
18849         * m4/rename.m4: Add test for Mingw.
18850         * lib/rename.c: Add rename replacement that uses MoveFileEx with
18851         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
18852         * doc/posix-functions/rename.texi: Document.
18853
18854 2009-04-10  Bruno Haible  <bruno@clisp.org>
18855
18856         New include file "iconveh.h".
18857         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
18858         * lib/striconveh.h: Include it.
18859         (enum iconv_ilseq_handler): Remove definition.
18860         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
18861         striconveh.h.
18862         * lib/striconveha.c: Include striconveh.h.
18863         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
18864         * modules/striconveh (Files): Add lib/iconveh.h.
18865         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
18866         lib/striconveh.h.
18867
18868 2009-04-10  Bruno Haible  <bruno@clisp.org>
18869
18870         * lib/uniconv.h: Update comment.
18871
18872 2009-04-10  Bruno Haible  <bruno@clisp.org>
18873
18874         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
18875         always.
18876         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
18877         * lib/unistr/u16-mbtouc-aux.c: Likewise.
18878         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
18879         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
18880         "unistring-notinline.h", so that the function gets defined always.
18881         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
18882         * lib/unistr/u8-uctomb.c: Likewise.
18883         * lib/unistr/u16-mbtouc.c: Likewise.
18884         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
18885         * lib/unistr/u16-uctomb.c: Likewise.
18886         * lib/unistr/u32-mbtouc.c: Likewise.
18887         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
18888         * lib/unistr/u32-uctomb.c: Likewise.
18889
18890 2009-04-10  Bruno Haible  <bruno@clisp.org>
18891
18892         Mark 'utime' obsolete.
18893         * modules/utime (Status, Notice): New sections.
18894         Suggested by Jim Meyering.
18895
18896         Fix cross-compile guess for utime test.
18897         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
18898         autoconf.
18899         * doc/posix-functions/utime.texi: Give more precisions.
18900         Reported by Jan <ipif@ymail.com>.
18901
18902 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
18903
18904         filevercmp: correct today's change
18905         * lib/filevercmp.c: Also handle coreutils' test inputs.
18906         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
18907
18908         Fix regression in 'filevercmp' module. Thanks Sven Joachim
18909         for reporting it.
18910         * lib/filevercmp.c: Special handle for "", "." and "..".
18911         * tests/test-filevercmp.c: Enlarge the set suite.
18912
18913 2009-04-07  Jim Meyering  <meyering@redhat.com>
18914
18915         useless-if-before-free: show how to remove braced useless free, too
18916         * build-aux/useless-if-before-free: still only in a comment, though.
18917
18918 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
18919
18920         maint.mk: import changes to syntax-check macros from coreutils
18921         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
18922         Use them in the relevant macros.
18923
18924 2009-04-06  Bruno Haible  <bruno@clisp.org>
18925
18926         Fix unportable use of bit-fields.
18927         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
18928         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
18929         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
18930
18931 2009-04-06  Bruno Haible  <bruno@clisp.org>
18932
18933         Avoid test failures on AIX and OSF/1.
18934         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
18935         that malloc(0) = NULL.
18936         * tests/unicase/test-u8-tolower.c (check): Likewise.
18937         * tests/unicase/test-u8-totitle.c (check): Likewise.
18938         * tests/unicase/test-u8-toupper.c (check): Likewise.
18939         * tests/unicase/test-u16-casefold.c (check): Likewise.
18940         * tests/unicase/test-u16-tolower.c (check): Likewise.
18941         * tests/unicase/test-u16-totitle.c (check): Likewise.
18942         * tests/unicase/test-u16-toupper.c (check): Likewise.
18943         * tests/unicase/test-u32-casefold.c (check): Likewise.
18944         * tests/unicase/test-u32-tolower.c (check): Likewise.
18945         * tests/unicase/test-u32-totitle.c (check): Likewise.
18946         * tests/unicase/test-u32-toupper.c (check): Likewise.
18947         * tests/uninorm/test-u8-nfc.c (check): Likewise.
18948         * tests/uninorm/test-u8-nfd.c (check): Likewise.
18949         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
18950         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
18951         * tests/uninorm/test-u16-nfc.c (check): Likewise.
18952         * tests/uninorm/test-u16-nfd.c (check): Likewise.
18953         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
18954         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
18955         * tests/uninorm/test-u32-nfc.c (check): Likewise.
18956         * tests/uninorm/test-u32-nfd.c (check): Likewise.
18957         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
18958         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
18959
18960 2009-04-05  Bruno Haible  <bruno@clisp.org>
18961
18962         Work around an autoconf limitation.
18963         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
18964         comment line if it would be longer than 3 KB.
18965
18966 2009-04-05  Bruno Haible  <bruno@clisp.org>
18967
18968         Avoid test failure with libiconv-1.13.
18969         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
18970         of the expected test results.
18971
18972 2009-04-05  Bruno Haible  <bruno@clisp.org>
18973
18974         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
18975         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
18976         that it should be installed.
18977
18978 2009-04-05  Bruno Haible  <bruno@clisp.org>
18979
18980         * gnulib-tool: New option --copy-file.
18981         (func_usage): Document it.
18982         (func_dest_tmpfilename): Moved out of func_import.
18983         (func_add_file, func_update_file): New functions, extracted from
18984         func_import.
18985         (func_import): Update.
18986
18987 2009-04-05  Karl Berry  <karl@gnu.org>
18988
18989         * README: prominently mention gnulib-tool.
18990         Rearrange sections so getting the code is near the top.
18991
18992 2009-04-05  Bruno Haible  <bruno@clisp.org>
18993
18994         * lib/unicase.h: Mention u*_cmp2.
18995         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18996         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
18997         * lib/unicase/ulc-casecmp.c: Likewise.
18998         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
18999         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19000         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19001         unistr/u8-cmp.
19002         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19003         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19004         unistr/u16-cmp.
19005         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19006         unistr/u32-cmp.
19007
19008         * lib/uninorm.h: Mention u*_cmp2.
19009         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19010         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19011         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19012         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19013         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19014         unistr/u8-cmp.
19015         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19016         unistr/u16-cmp.
19017         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19018         unistr/u32-cmp.
19019
19020         New module 'unistr/u32-cmp2'.
19021         * lib/unistr/u32-cmp2.c: New file.
19022         * modules/unistr/u32-cmp2: New file.
19023
19024         New module 'unistr/u16-cmp2'.
19025         * lib/unistr/u16-cmp2.c: New file.
19026         * modules/unistr/u16-cmp2: New file.
19027
19028         New module 'unistr/u8-cmp2'.
19029         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19030         * lib/unistr/u8-cmp2.c: New file.
19031         * lib/unistr/u-cmp2.h: New file.
19032         * modules/unistr/u8-cmp2: New file.
19033
19034 2009-04-05  Bruno Haible  <bruno@clisp.org>
19035
19036         * lib/unictype.h (uc_property_is_valid): New macro.
19037         * tests/unictype/test-pr_byname.c (main): Use it.
19038
19039         * lib/unistr.h: Doc fixes.
19040         * lib/uniconv.h: Doc fixes.
19041         * lib/unictype.h: Doc fixes.
19042
19043 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19044
19045         Port coreutils 7.2 to Solaris 8.
19046
19047         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19048         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19049         for Solaris 8.  This is a bit of a hack, as it means it's the
19050         caller's responsibility to add -lnsl if needed, but most likely it
19051         won't be needed since only getaddrinfo uses this and getaddrinfo
19052         isn't needed on Solaris 8.
19053
19054         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19055         problem to Solaris 8 encountered with coreutils 7.2, which
19056         resulted in a message "fnmatch.c:292: warning: passing argument 4
19057         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19058         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19059
19060 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19061
19062         * m4/ld-version-script.m4: Add FIXME comment.
19063
19064 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19065
19066         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19067         SOVERSION variable.
19068
19069 2009-04-02  Bruno Haible  <bruno@clisp.org>
19070
19071         * Makefile (info, html, dvi, pdf): Combine the rules.
19072         Suggested by Jim Meyering.
19073
19074 2009-04-01  Bruno Haible  <bruno@clisp.org>
19075
19076         * Makefile (info, html, dvi, pdf): New targets.
19077         Reported by Reuben Thomas <rrt@sc3d.org>.
19078
19079 2009-04-01  Bruno Haible  <bruno@clisp.org>
19080
19081         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19082         can be put into PATH.
19083         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19084
19085 2009-04-01  Bruno Haible  <bruno@clisp.org>
19086
19087         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19088
19089 2009-04-01  Bruno Haible  <bruno@clisp.org>
19090
19091         Rename module 'visibility'.
19092         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19093         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19094         * doc/gnulib.texi: Update.
19095         * MODULES.html.sh (Misc): Update.
19096         * NEWS: Mention the change.
19097
19098 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19099
19100         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19101         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19102         Eric Blake <ebb9@byu.net> for review.
19103         * MODULES.html.sh: Add lib-msvc-compat.
19104         * doc/gnulib.texi: Link to new section.
19105         * m4/ld-output-def.m4: New file.
19106         * doc/ld-output-def.texi: New file.
19107
19108 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19109
19110         Rename ld-version-script to lib-symbol-versions.  Suggested by
19111         Bruno Haible <bruno@clisp.org>.
19112         * modules/ld-version-script: Renamed to lib-symbol-versions.
19113         * doc/ld-version-script.texi: Fix module name.
19114         * MODULES.html.sh: Add lib-symbol-versions.
19115
19116 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19117
19118         * modules/u64-tests: New file.
19119         * tests/test-u64.c: New file.
19120
19121 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19122
19123         * MODULES.html.sh: Mention u64.
19124         * modules/u64: New module.
19125         * modules/crypto/sha512: Depend on u64 module instead of providing
19126         u64.h.
19127
19128 2009-03-27  Eric Blake  <ebb9@byu.net>
19129
19130         test-strerror: make debugging EAI_SYSTEM easier
19131         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19132         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19133         failure was EAI_SYSTEM.
19134
19135 2009-03-25  Bruno Haible  <bruno@clisp.org>
19136
19137         Fix a problem with --enable-relocatable on Solaris 7.
19138         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19139         since 2008-02-24.
19140
19141 2009-03-25  Eric Blake  <ebb9@byu.net>
19142
19143         test-sockets: avoid gcc warning
19144         * tests/test-sockets.c (main): Silence compiler warning.
19145
19146 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19147
19148         New modules nproc, pthread, contributed by Glen Lenker.
19149
19150         * MODULES.html.sh: Add pthread, nproc.
19151         * lib/nproc.c: New file.
19152         * lib/nproc.h: New file.
19153         * lib/pthread.in.h: New file.
19154         * m4/pthread.m4: New file.
19155         * modules/nproc: New file.
19156         * modules/pthread: New file.
19157
19158 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19159
19160         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19161         New variable.
19162
19163 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19164
19165         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19166         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19167         * tests/test-filevercmp.c: Add tests for backup suffixes.
19168
19169 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19170
19171         * modules/stdlib (Depends-on): Add stdint, needed when defining
19172         struct random_data on, for example, HP-UX 10.20.  Reported by
19173         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19174
19175 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19176
19177         * lib/readline.c (readline): Call fflush on stdout after printing
19178         prompt.
19179
19180 2009-03-20  Bruno Haible  <bruno@clisp.org>
19181
19182         Remove dependency from 'close' module to -lws2_32 on native Windows.
19183         * lib/close-hook.h: New file.
19184         * lib/close-hook.c: New file.
19185         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19186         w32sock.h.
19187         (_gl_close_fd_maybe_socket): Remove function.
19188         (rpl_close): Invoke execute_all_close_hooks instead of
19189         _gl_close_fd_maybe_socket.
19190         * lib/sockets.c: Include close-hook.h, w32sock.h.
19191         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19192         (close_sockets_hook): New variable.
19193         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19194         (gl_sockets_cleanup): Unregister it.
19195         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19196         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19197         * modules/close-hook: New file.
19198         * modules/close (Files): Remove lib/w32sock.h.
19199         (Depends-on): Add close-hook.
19200         (Link): Remove section.
19201         * modules/sockets (Files): Add lib/w32sock.h.
19202         (Depends-on): Add close-hook.
19203         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19204         invocation.
19205         * NEWS: Mention that LIB_CLOSE is gone.
19206
19207 2009-03-23  Eric Blake  <ebb9@byu.net>
19208
19209         signal-tests: test previous patch
19210         * tests/test-signal.c: New file.
19211         * modules/signal-tests: Likewise.
19212
19213         signal.h: always support 'volatile sig_atomic_t'
19214         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19215         (gl_SIGNAL_H_DEFAULTS): Add a default.
19216         * modules/signal (Makefile.am): Substitute if needed.
19217         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19218         users can blindly add volatile.
19219         * doc/posix-headers/signal.texi (signal.h): Document it.
19220         Reported by Matthew Woehlke.
19221
19222 2009-03-23  Jim Meyering  <meyering@redhat.com>
19223
19224         pathmax: PATH_MAX: use pathconf only when available
19225         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19226         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19227         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19228         This avoids a link failure in a PSP cross-compilation environment
19229         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19230
19231         * lib/vasnprintf.c (divide): Fix typo in comment.
19232
19233 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19234
19235         * gnulib-tool (func_filter_filelist): Fix comment.
19236
19237 2009-03-20  Bruno Haible  <bruno@clisp.org>
19238
19239         Make sockets.h self-contained.
19240         * lib/sockets.c: Include sockets.h first.
19241         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19242
19243 2009-03-19  Eric Blake  <ebb9@byu.net>
19244
19245         doc: mention more functions added in cygwin 1.7.0
19246         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19247         addition.
19248         * doc/posix-functions/log2f.texi: Likewise.
19249
19250 2009-03-19  Jim Meyering  <meyering@redhat.com>
19251
19252         fsusage: avoid syntax error due to statement-before-declaration
19253         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19254         after all declarations.  Reported by Matthew Woehlke in
19255         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19256
19257 2009-03-18  Eric Blake  <ebb9@byu.net>
19258
19259         build-aux/compile: sync from automake
19260         * build-aux/compile: New file, from automake.
19261         * config/srclist.txt: Mention build-aux/compile.
19262
19263 2009-03-17  Bruno Haible  <bruno@clisp.org>
19264
19265         * lib/git-merge-changelog.c: Fix typo in comment.
19266         Reported by Reuben Thomas <rrt@sc3d.org>.
19267
19268 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19269
19270         * m4/regex.m4: update and improve help for
19271         --without-included-regex.
19272
19273 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19274
19275         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19276         failure on missing include files.
19277
19278 2009-03-17  Eric Blake  <ebb9@byu.net>
19279
19280         doc: mention more functions added in cygwin 1.7.0
19281         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19282         addition.
19283         * doc/posix-functions/fwscanf.texi: Likewise.
19284         * doc/posix-functions/swprintf.texi: Likewise.
19285         * doc/posix-functions/swscanf.texi: Likewise.
19286         * doc/posix-functions/vfwprintf.texi: Likewise.
19287         * doc/posix-functions/vfwscanf.texi: Likewise.
19288         * doc/posix-functions/vswprintf.texi: Likewise.
19289         * doc/posix-functions/vswscanf.texi: Likewise.
19290         * doc/posix-functions/vwprintf.texi: Likewise.
19291         * doc/posix-functions/vwscanf.texi: Likewise.
19292         * doc/posix-functions/wcscasecmp.texi: Likewise.
19293         * doc/posix-functions/wcsdup.texi: Likewise.
19294         * doc/posix-functions/wcsftime.texi: Likewise.
19295         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19296         * doc/posix-functions/wprintf.texi: Likewise.
19297         * doc/posix-functions/wscanf.texi: Likewise.
19298         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19299
19300 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19301
19302         maint.mk: really add $(AM_MAKEFLAGS)
19303         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19304         was inadvertently omitted in the last commit.
19305         Spotted by Bruno Haible.
19306
19307         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19308         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19309         $(AM_MAKEFLAGS)' rather than plain `make'.
19310
19311         gnulib-tool: execute $MAKE not make
19312         * gnulib-tool: Default $MAKE to 'make'.
19313         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19314         than make.  Initialize $MAKE in the do-autobuild script.
19315
19316         gnulib-tool: use $MAKE not make in generated files
19317         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19318         make, in generated files.  Initialize $MAKE in the do-autobuild
19319         script.
19320
19321         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19322
19323         GNUmakefile: disable parallelism only for multiple, recursive targets
19324         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19325         additions in the Makefile.
19326         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19327         by Automake.
19328         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19329         are listed on the command line and at least one of them is
19330         listed in $(ALL_RECURSIVE_TARGETS).
19331
19332 2009-03-14  Bruno Haible  <bruno@clisp.org>
19333
19334         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19335         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19336         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19337         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19338         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19339         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19340         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19341         unistr/u8-uctomb.
19342         * modules/unistr/u8-strchr (Depends-on): Likewise.
19343         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19344         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19345         unistr/u16-uctomb.
19346         * modules/unistr/u16-strchr (Depends-on): Likewise.
19347         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19348
19349 2009-03-12  Bruno Haible  <bruno@clisp.org>
19350
19351         Work around select() bug on Interix 3.5.
19352         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19353         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19354         * m4/select.m4: New file.
19355         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19356         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19357         * modules/select (Files): Add m4/select.m4.
19358         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19359         * modules/nanosleep (Depends-on): Add select.
19360         * modules/poll (Depends-on): Likewise.
19361         * doc/posix-functions/select.texi: Mention the Interix bug.
19362         Reported by Markus Duft <mduft@gentoo.org>.
19363
19364         * lib/select.c: Renamed from lib/winsock-select.c.
19365         * modules/select (Files): Add lib/select.c, remove
19366         lib/winsock-select.c.
19367         (configure.ac): Update.
19368
19369 2009-03-12  Jim Meyering  <meyering@redhat.com>
19370
19371         avoid gcc warnings about unused macro definitions
19372         * lib/readtokens.c (STREQ): Remove unused definition.
19373         * lib/xmalloc.c (SIZE_MAX): Likewise.
19374         * lib/openat-die.c (N_): Likewise.
19375         * lib/mountlist.c (SIZE_MAX): Remove definition.
19376         Instead, include <stdint.h>.
19377         * lib/readutmp.c: Likewise.
19378         * modules/readutmp (Depends-on): Add stdint.
19379         * modules/mountlist (Depends-on): Add stdint.
19380         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19381
19382 2009-03-10  Bruno Haible  <bruno@clisp.org>
19383
19384         Tests for module 'mbmemcasecoll'.
19385         * modules/mbmemcasecoll-tests: New file.
19386         * tests/test-mbmemcasecoll1.sh: New file.
19387         * tests/test-mbmemcasecoll2.sh: New file.
19388         * tests/test-mbmemcasecoll3.sh: New file.
19389         * tests/test-mbmemcasecoll.c: New file.
19390
19391         New module 'mbmemcasecoll'.
19392         * lib/mbmemcasecoll.h: New file.
19393         * lib/mbmemcasecoll.c: New file.
19394         * modules/mbmemcasecoll: New file.
19395
19396         * tests/test-mbmemcasecmp.h: New file, extracted from
19397         tests/test-mbmemcasecmp.c.
19398         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19399         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19400         (main): Update.
19401         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19402
19403 2009-03-09  Bruno Haible  <bruno@clisp.org>
19404
19405         Tests for module 'mbmemcasecmp'.
19406         * modules/mbmemcasecmp-tests: New file.
19407         * tests/test-mbmemcasecmp1.sh: New file.
19408         * tests/test-mbmemcasecmp2.sh: New file.
19409         * tests/test-mbmemcasecmp3.sh: New file.
19410         * tests/test-mbmemcasecmp.c: New file.
19411
19412         New module 'mbmemcasecmp'.
19413         * lib/mbmemcasecmp.h: New file.
19414         * lib/mbmemcasecmp.c: New file.
19415         * modules/mbmemcasecmp: New file.
19416
19417 2009-03-09  Bruno Haible  <bruno@clisp.org>
19418
19419         Tests for module 'unicase/ulc-casecoll'.
19420         * modules/unicase/ulc-casecoll-tests: New file.
19421         * tests/unicase/test-ulc-casecoll1.sh: New file.
19422         * tests/unicase/test-ulc-casecoll2.sh: New file.
19423         * tests/unicase/test-ulc-casecoll.c: New file.
19424
19425         New module 'unicase/ulc-casecoll'.
19426         * lib/unicase.h (ulc_casecoll): New declaration.
19427         * lib/unicase/ulc-casecoll.c: New file.
19428         * modules/unicase/ulc-casecoll: New file.
19429
19430         New module 'unicase/ulc-casexfrm'.
19431         * lib/unicase.h (ulc_casexfrm): New declaration.
19432         * lib/unicase/ulc-casexfrm.c: New file.
19433         * modules/unicase/ulc-casexfrm: New file.
19434
19435 2009-03-09  Bruno Haible  <bruno@clisp.org>
19436
19437         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19438         invocations.
19439
19440         * m4/mbscasecmp.m4: Remove file.
19441         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19442         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19443
19444         * m4/mbscasestr.m4: Remove file.
19445         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19446         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19447
19448         * m4/mbschr.m4: Remove file.
19449         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19450         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19451
19452         * m4/mbscspn.m4: Remove file.
19453         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19454         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19455
19456         * m4/mbslen.m4: Remove file.
19457         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19458         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19459
19460         * m4/mbsncasecmp.m4: Remove file.
19461         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19462         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19463
19464         * m4/mbsnlen.m4: Remove file.
19465         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19466         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19467
19468         * m4/mbspbrk.m4: Remove file.
19469         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19470         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19471
19472         * m4/mbspcasecmp.m4: Remove file.
19473         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19474         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19475
19476         * m4/mbsrchr.m4: Remove file.
19477         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19478         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19479
19480         * m4/mbssep.m4: Remove file.
19481         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19482         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19483
19484         * m4/mbsspn.m4: Remove file.
19485         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19486         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19487
19488         * m4/mbsstr.m4: Remove file.
19489         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19490         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19491
19492         * m4/mbstok_r.m4: Remove file.
19493         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19494         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19495
19496         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19497
19498         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19499         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19500
19501         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19502
19503 2009-03-08  Bruno Haible  <bruno@clisp.org>
19504
19505         Tests for module 'unicase/ulc-casecmp'.
19506         * modules/unicase/ulc-casecmp-tests: New file.
19507         * tests/unicase/test-ulc-casecmp1.sh: New file.
19508         * tests/unicase/test-ulc-casecmp2.sh: New file.
19509         * tests/unicase/test-ulc-casecmp.c: New file.
19510
19511         New module 'unicase/ulc-casecmp'.
19512         * lib/unicase.h (ulc_casecmp): New declaration.
19513         * lib/unicase/ulc-casecmp.c: New file.
19514         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19515         'const SRC_UNIT *'.
19516         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19517         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19518         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19519         * modules/unicase/ulc-casecmp: New file.
19520
19521         Tests for module 'unicase/u32-is-cased'.
19522         * modules/unicase/u32-is-cased-tests: New file.
19523         * tests/unicase/test-u32-is-cased.c: New file.
19524
19525         Tests for module 'unicase/u16-is-cased'.
19526         * modules/unicase/u16-is-cased-tests: New file.
19527         * tests/unicase/test-u16-is-cased.c: New file.
19528
19529         Tests for module 'unicase/u8-is-cased'.
19530         * modules/unicase/u8-is-cased-tests: New file.
19531         * tests/unicase/test-u8-is-cased.c: New file.
19532         * tests/unicase/test-is-cased.h: New file.
19533
19534         New module 'unicase/u32-is-cased'.
19535         * lib/unicase/u32-is-cased.c: New file.
19536         * modules/unicase/u32-is-cased: New file.
19537
19538         New module 'unicase/u16-is-cased'.
19539         * lib/unicase/u16-is-cased.c: New file.
19540         * modules/unicase/u16-is-cased: New file.
19541
19542         New module 'unicase/u8-is-cased'.
19543         * lib/unicase/u8-is-cased.c: New file.
19544         * lib/unicase/u-is-cased.h: New file.
19545         * modules/unicase/u8-is-cased: New file.
19546
19547         Tests for module 'unicase/u32-is-casefolded'.
19548         * modules/unicase/u32-is-casefolded-tests: New file.
19549         * tests/unicase/test-u32-is-casefolded.c: New file.
19550
19551         Tests for module 'unicase/u16-is-casefolded'.
19552         * modules/unicase/u16-is-casefolded-tests: New file.
19553         * tests/unicase/test-u16-is-casefolded.c: New file.
19554
19555         Tests for module 'unicase/u8-is-casefolded'.
19556         * modules/unicase/u8-is-casefolded-tests: New file.
19557         * tests/unicase/test-u8-is-casefolded.c: New file.
19558         * tests/unicase/test-is-casefolded.h: New file.
19559
19560         New module 'unicase/u32-is-casefolded'.
19561         * lib/unicase/u32-is-casefolded.c: New file.
19562         * modules/unicase/u32-is-casefolded: New file.
19563
19564         New module 'unicase/u16-is-casefolded'.
19565         * lib/unicase/u16-is-casefolded.c: New file.
19566         * modules/unicase/u16-is-casefolded: New file.
19567
19568         New module 'unicase/u8-is-casefolded'.
19569         * lib/unicase/u8-is-casefolded.c: New file.
19570         * modules/unicase/u8-is-casefolded: New file.
19571
19572         Tests for module 'unicase/u32-is-titlecase'.
19573         * modules/unicase/u32-is-titlecase-tests: New file.
19574         * tests/unicase/test-u32-is-titlecase.c: New file.
19575
19576         Tests for module 'unicase/u16-is-titlecase'.
19577         * modules/unicase/u16-is-titlecase-tests: New file.
19578         * tests/unicase/test-u16-is-titlecase.c: New file.
19579
19580         Tests for module 'unicase/u8-is-titlecase'.
19581         * modules/unicase/u8-is-titlecase-tests: New file.
19582         * tests/unicase/test-u8-is-titlecase.c: New file.
19583         * tests/unicase/test-is-titlecase.h: New file.
19584
19585         New module 'unicase/u32-is-titlecase'.
19586         * lib/unicase/u32-is-titlecase.c: New file.
19587         * modules/unicase/u32-is-titlecase: New file.
19588
19589         New module 'unicase/u16-is-titlecase'.
19590         * lib/unicase/u16-is-titlecase.c: New file.
19591         * modules/unicase/u16-is-titlecase: New file.
19592
19593         New module 'unicase/u8-is-titlecase'.
19594         * lib/unicase/u8-is-titlecase.c: New file.
19595         * modules/unicase/u8-is-titlecase: New file.
19596
19597         Tests for module 'unicase/u32-is-lowercase'.
19598         * modules/unicase/u32-is-lowercase-tests: New file.
19599         * tests/unicase/test-u32-is-lowercase.c: New file.
19600
19601         Tests for module 'unicase/u16-is-lowercase'.
19602         * modules/unicase/u16-is-lowercase-tests: New file.
19603         * tests/unicase/test-u16-is-lowercase.c: New file.
19604
19605         Tests for module 'unicase/u8-is-lowercase'.
19606         * modules/unicase/u8-is-lowercase-tests: New file.
19607         * tests/unicase/test-u8-is-lowercase.c: New file.
19608         * tests/unicase/test-is-lowercase.h: New file.
19609
19610         New module 'unicase/u32-is-lowercase'.
19611         * lib/unicase/u32-is-lowercase.c: New file.
19612         * modules/unicase/u32-is-lowercase: New file.
19613
19614         New module 'unicase/u16-is-lowercase'.
19615         * lib/unicase/u16-is-lowercase.c: New file.
19616         * modules/unicase/u16-is-lowercase: New file.
19617
19618         New module 'unicase/u8-is-lowercase'.
19619         * lib/unicase/u8-is-lowercase.c: New file.
19620         * modules/unicase/u8-is-lowercase: New file.
19621
19622         Tests for module 'unicase/u32-is-uppercase'.
19623         * modules/unicase/u32-is-uppercase-tests: New file.
19624         * tests/unicase/test-u32-is-uppercase.c: New file.
19625
19626         Tests for module 'unicase/u16-is-uppercase'.
19627         * modules/unicase/u16-is-uppercase-tests: New file.
19628         * tests/unicase/test-u16-is-uppercase.c: New file.
19629
19630         Tests for module 'unicase/u8-is-uppercase'.
19631         * modules/unicase/u8-is-uppercase-tests: New file.
19632         * tests/unicase/test-u8-is-uppercase.c: New file.
19633         * tests/unicase/test-is-uppercase.h: New file.
19634
19635         New module 'unicase/u32-is-uppercase'.
19636         * lib/unicase/u32-is-uppercase.c: New file.
19637         * modules/unicase/u32-is-uppercase: New file.
19638
19639         New module 'unicase/u16-is-uppercase'.
19640         * lib/unicase/u16-is-uppercase.c: New file.
19641         * modules/unicase/u16-is-uppercase: New file.
19642
19643         New module 'unicase/u8-is-uppercase'.
19644         * lib/unicase/u8-is-uppercase.c: New file.
19645         * modules/unicase/u8-is-uppercase: New file.
19646
19647         New module 'unicase/u32-is-invariant'.
19648         * lib/unicase/u32-is-invariant.c: New file.
19649         * modules/unicase/u32-is-invariant: New file.
19650
19651         New module 'unicase/u16-is-invariant'.
19652         * lib/unicase/u16-is-invariant.c: New file.
19653         * modules/unicase/u16-is-invariant: New file.
19654
19655         New module 'unicase/u8-is-invariant'.
19656         * lib/unicase/u8-is-invariant.c: New file.
19657         * lib/unicase/invariant.h: New file.
19658         * lib/unicase/u-is-invariant.h: New file.
19659         * modules/unicase/u8-is-invariant: New file.
19660
19661         Tests for module 'unicase/u32-casecoll'.
19662         * modules/unicase/u32-casecoll-tests: New file.
19663         * tests/unicase/test-u32-casecoll.c: New file.
19664
19665         Tests for module 'unicase/u16-casecoll'.
19666         * modules/unicase/u16-casecoll-tests: New file.
19667         * tests/unicase/test-u16-casecoll.c: New file.
19668
19669         Tests for module 'unicase/u8-casecoll'.
19670         * modules/unicase/u8-casecoll-tests: New file.
19671         * tests/unicase/test-u8-casecoll.c: New file.
19672
19673         New module 'unicase/u32-casecoll'.
19674         * lib/unicase/u32-casecoll.c: New file.
19675         * modules/unicase/u32-casecoll: New file.
19676
19677         New module 'unicase/u16-casecoll'.
19678         * lib/unicase/u16-casecoll.c: New file.
19679         * modules/unicase/u16-casecoll: New file.
19680
19681         New module 'unicase/u8-casecoll'.
19682         * lib/unicase/u8-casecoll.c: New file.
19683         * lib/unicase/u-casecoll.h: New file.
19684         * modules/unicase/u8-casecoll: New file.
19685
19686         New module 'unicase/u32-casexfrm'.
19687         * lib/unicase/u32-casexfrm.c: New file.
19688         * modules/unicase/u32-casexfrm: New file.
19689
19690         New module 'unicase/u16-casexfrm'.
19691         * lib/unicase/u16-casexfrm.c: New file.
19692         * modules/unicase/u16-casexfrm: New file.
19693
19694         New module 'unicase/u8-casexfrm'.
19695         * lib/unicase/u8-casexfrm.c: New file.
19696         * lib/unicase/u-casexfrm.h: New file.
19697         * modules/unicase/u8-casexfrm: New file.
19698
19699         Tests for module 'unicase/u32-casecmp'.
19700         * modules/unicase/u32-casecmp-tests: New file.
19701         * tests/unicase/test-u32-casecmp.c: New file.
19702
19703         Tests for module 'unicase/u16-casecmp'.
19704         * modules/unicase/u16-casecmp-tests: New file.
19705         * tests/unicase/test-u16-casecmp.c: New file.
19706
19707         Tests for module 'unicase/u8-casecmp'.
19708         * modules/unicase/u8-casecmp-tests: New file.
19709         * tests/unicase/test-u8-casecmp.c: New file.
19710         * tests/unicase/test-casecmp.h: New file.
19711
19712         New module 'unicase/u32-casecmp'.
19713         * lib/unicase/u32-casecmp.c: New file.
19714         * modules/unicase/u32-casecmp: New file.
19715
19716         New module 'unicase/u16-casecmp'.
19717         * lib/unicase/u16-casecmp.c: New file.
19718         * modules/unicase/u16-casecmp: New file.
19719
19720         New module 'unicase/u8-casecmp'.
19721         * lib/unicase/u8-casecmp.c: New file.
19722         * lib/unicase/u-casecmp.h: New file.
19723         * modules/unicase/u8-casecmp: New file.
19724
19725         Tests for module 'unicase/u32-casefold'.
19726         * modules/unicase/u32-casefold-tests: New file.
19727         * tests/unicase/test-u32-casefold.c: New file.
19728
19729         Tests for module 'unicase/u16-casefold'.
19730         * modules/unicase/u16-casefold-tests: New file.
19731         * tests/unicase/test-u16-casefold.c: New file.
19732
19733         Tests for module 'unicase/u8-casefold'.
19734         * modules/unicase/u8-casefold-tests: New file.
19735         * tests/unicase/test-u8-casefold.c: New file.
19736
19737         New module 'unicase/u32-casefold'.
19738         * lib/unicase/u32-casefold.c: New file.
19739         * modules/unicase/u32-casefold: New file.
19740
19741         New module 'unicase/u16-casefold'.
19742         * lib/unicase/u16-casefold.c: New file.
19743         * modules/unicase/u16-casefold: New file.
19744
19745         New module 'unicase/u8-casefold'.
19746         * lib/unicase/u8-casefold.c: New file.
19747         * lib/unicase/u-casefold.h: New file.
19748         * modules/unicase/u8-casefold: New file.
19749
19750         New module 'unicase/tocasefold'.
19751         * lib/unicase/casefold.h: New file.
19752         * lib/unicase/tocasefold.c: New file.
19753         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
19754         * modules/unicase/tocasefold: New file.
19755
19756         Tests for module 'unicase/u32-totitle'.
19757         * modules/unicase/u32-totitle-tests: New file.
19758         * tests/unicase/test-u32-totitle.c: New file.
19759
19760         Tests for module 'unicase/u16-totitle'.
19761         * modules/unicase/u16-totitle-tests: New file.
19762         * tests/unicase/test-u16-totitle.c: New file.
19763
19764         Tests for module 'unicase/u8-totitle'.
19765         * modules/unicase/u8-totitle-tests: New file.
19766         * tests/unicase/test-u8-totitle.c: New file.
19767
19768         New module 'unicase/u32-totitle'.
19769         * lib/unicase/u32-totitle.c: New file.
19770         * modules/unicase/u32-totitle: New file.
19771
19772         New module 'unicase/u16-totitle'.
19773         * lib/unicase/u16-totitle.c: New file.
19774         * modules/unicase/u16-totitle: New file.
19775
19776         New module 'unicase/u8-totitle'.
19777         * lib/unicase/u8-totitle.c: New file.
19778         * lib/unicase/u-totitle.h: New file.
19779         * modules/unicase/u8-totitle: New file.
19780
19781         Tests for module 'unicase/u32-tolower'.
19782         * modules/unicase/u32-tolower-tests: New file.
19783         * tests/unicase/test-u32-tolower.c: New file.
19784
19785         Tests for module 'unicase/u16-tolower'.
19786         * modules/unicase/u16-tolower-tests: New file.
19787         * tests/unicase/test-u16-tolower.c: New file.
19788
19789         Tests for module 'unicase/u8-tolower'.
19790         * modules/unicase/u8-tolower-tests: New file.
19791         * tests/unicase/test-u8-tolower.c: New file.
19792
19793         New module 'unicase/u32-tolower'.
19794         * lib/unicase/u32-tolower.c: New file.
19795         * modules/unicase/u32-tolower: New file.
19796
19797         New module 'unicase/u16-tolower'.
19798         * lib/unicase/u16-tolower.c: New file.
19799         * modules/unicase/u16-tolower: New file.
19800
19801         New module 'unicase/u8-tolower'.
19802         * lib/unicase/u8-tolower.c: New file.
19803         * modules/unicase/u8-tolower: New file.
19804
19805         Tests for module 'unicase/u32-toupper'.
19806         * modules/unicase/u32-toupper-tests: New file.
19807         * tests/unicase/test-u32-toupper.c: New file.
19808
19809         Tests for module 'unicase/u16-toupper'.
19810         * modules/unicase/u16-toupper-tests: New file.
19811         * tests/unicase/test-u16-toupper.c: New file.
19812
19813         Tests for module 'unicase/u8-toupper'.
19814         * modules/unicase/u8-toupper-tests: New file.
19815         * tests/unicase/test-u8-toupper.c: New file.
19816
19817         New module 'unicase/u32-toupper'.
19818         * lib/unicase/u32-toupper.c: New file.
19819         * modules/unicase/u32-toupper: New file.
19820
19821         New module 'unicase/u16-toupper'.
19822         * lib/unicase/u16-toupper.c: New file.
19823         * modules/unicase/u16-toupper: New file.
19824
19825         New module 'unicase/u8-toupper'.
19826         * lib/unicase/u8-toupper.c: New file.
19827         * modules/unicase/u8-toupper: New file.
19828
19829         New module 'unicase/u32-casemap'.
19830         * lib/unicase/u32-casemap.c: New file.
19831         * modules/unicase/u32-casemap: New file.
19832
19833         New module 'unicase/u16-casemap'.
19834         * lib/unicase/u16-casemap.c: New file.
19835         * modules/unicase/u16-casemap: New file.
19836
19837         New module 'unicase/u8-casemap'.
19838         * lib/unicase/unicasemap.h: New file.
19839         * lib/unicase/u8-casemap.c: New file.
19840         * lib/unicase/u-casemap.h: New file.
19841         * modules/unicase/u8-casemap: New file.
19842
19843         New module 'unicase/special-casing'.
19844         * lib/unicase/special-casing.h: New file.
19845         * lib/unicase/special-casing.c: New file.
19846         * lib/unicase/special-casing-table.gperf: New file, generated by
19847         gen-uni-tables.c.
19848         * modules/unicase/special-casing: New file.
19849
19850         Tests for module 'unicase/locale-language'.
19851         * modules/unicase/locale-language-tests: New file.
19852         * tests/unicase/test-locale-language.sh: New file.
19853         * tests/unicase/test-locale-language.c: New file.
19854
19855         New module 'unicase/locale-language'.
19856         * lib/unicase/locale-language.c: New file.
19857         * lib/unicase/locale-languages.gperf: New file.
19858         * modules/unicase/locale-language: New file.
19859
19860         Generate more tables for case conversion and case folding.
19861         * lib/gen-uni-tables.c (SCC_*): New enum items.
19862         (struct special_casing_rule): New type.
19863         (casing_rules, num_casing_rules, allocated_casing_rules): New
19864         variables.
19865         (add_casing_rule, fill_casing_rules): New functions.
19866         (struct casefold_rule): New type.
19867         (casefolding_rules, num_casefolding_rules,
19868         allocated_casefolding_rules): New variables.
19869         (fill_casefolding_rules): New function.
19870         (unicode_casefold): New variable.
19871         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
19872         sort_casing_rules, output_casing_rules): New functions.
19873         (main): Accept to more arguments: SpecialCasing.txt and
19874         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
19875         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
19876         Output mapping for casefolding.
19877
19878         * lib/unicase.h: Include stdbool.h, uninorm.h.
19879         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
19880         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
19881         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
19882         arguments.
19883         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
19884         resultp arguments.
19885         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
19886         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
19887         resultp arguments.
19888         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
19889         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
19890         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
19891         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
19892         declarations.
19893         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
19894
19895 2009-03-08  Bruno Haible  <bruno@clisp.org>
19896
19897         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19898         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
19899         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
19900         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19901
19902 2009-03-07  Bruno Haible  <bruno@clisp.org>
19903
19904         Adjust u*_normcmp, u*_normcoll API.
19905         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19906         u16_normcoll, u32_normcoll): Change failure conventions.
19907         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
19908         errno and return -1.
19909         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19910
19911 2009-03-07  Bruno Haible  <bruno@clisp.org>
19912
19913         Tests for module 'uninorm/u32-normcoll'.
19914         * modules/uninorm/u32-normcoll-tests: New file.
19915         * tests/uninorm/test-u32-normcoll.c: New file.
19916
19917         Tests for module 'uninorm/u16-normcoll'.
19918         * modules/uninorm/u16-normcoll-tests: New file.
19919         * tests/uninorm/test-u16-normcoll.c: New file.
19920
19921         Tests for module 'uninorm/u8-normcoll'.
19922         * modules/uninorm/u8-normcoll-tests: New file.
19923         * tests/uninorm/test-u8-normcoll.c: New file.
19924
19925 2009-03-07  Bruno Haible  <bruno@clisp.org>
19926
19927         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
19928         tests/uninorm/test-u32-normcmp.c.
19929         * tests/uninorm/test-u32-normcmp.c: Include it.
19930         (test_nonascii): New function, extracted from main. Add some more
19931         tests.
19932         (main): Invoke test_ascii and test_nonascii.
19933         * modules/uninorm/u32-normcmp-tests (Files): Add
19934         tests/uninorm/test-u32-normcmp.h.
19935         (Depends-on): Remove uninorm/u32-normcmp.
19936
19937         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
19938         tests/uninorm/test-u16-normcmp.c.
19939         * tests/uninorm/test-u16-normcmp.c: Include it.
19940         (test_nonascii): New function, extracted from main. Add some more
19941         tests.
19942         (main): Invoke test_ascii and test_nonascii.
19943         * modules/uninorm/u16-normcmp-tests (Files): Add
19944         tests/uninorm/test-u16-normcmp.h.
19945         (Depends-on): Remove uninorm/u16-normcmp.
19946
19947         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
19948         tests/uninorm/test-u8-normcmp.c.
19949         * tests/uninorm/test-u8-normcmp.c: Include it.
19950         (test_nonascii): New function, extracted from main. Add some more
19951         tests.
19952         (main): Invoke test_ascii and test_nonascii.
19953         * modules/uninorm/u8-normcmp-tests (Files): Add
19954         tests/uninorm/test-u8-normcmp.h.
19955         (Depends-on): Remove uninorm/u8-normcmp.
19956
19957 2009-03-07  Bruno Haible  <bruno@clisp.org>
19958
19959         New module 'uninorm/u32-normcoll'.
19960         * lib/uninorm/u32-normcoll.c: New file.
19961         * modules/uninorm/u32-normcoll: New file.
19962
19963         New module 'uninorm/u16-normcoll'.
19964         * lib/uninorm/u16-normcoll.c: New file.
19965         * modules/uninorm/u16-normcoll: New file.
19966
19967         New module 'uninorm/u8-normcoll'.
19968         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
19969         declarations.
19970         * lib/uninorm/u8-normcoll.c: New file.
19971         * lib/uninorm/u-normcoll.h: New file.
19972         * modules/uninorm/u8-normcoll: New file.
19973
19974         New module 'uninorm/u32-normxfrm'.
19975         * lib/uninorm/u32-normxfrm.c: New file.
19976         * modules/uninorm/u32-normxfrm: New file.
19977
19978         New module 'uninorm/u16-normxfrm'.
19979         * lib/uninorm/u16-normxfrm.c: New file.
19980         * modules/uninorm/u16-normxfrm: New file.
19981
19982         New module 'uninorm/u8-normxfrm'.
19983         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
19984         declarations.
19985         * lib/uninorm/u8-normxfrm.c: New file.
19986         * lib/uninorm/u-normxfrm.h: New file.
19987         * modules/uninorm/u8-normxfrm: New file.
19988
19989 2009-03-07  Bruno Haible  <bruno@clisp.org>
19990
19991         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
19992         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
19993         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
19994
19995 2009-03-07  Bruno Haible  <bruno@clisp.org>
19996
19997         New module 'memxfrm'.
19998         * lib/memxfrm.h: New file.
19999         * lib/memxfrm.c: New file.
20000         * modules/memxfrm: New file.
20001
20002 2009-03-07  Bruno Haible  <bruno@clisp.org>
20003
20004         New module 'memcmp2'.
20005         * lib/memcmp2.h: New file.
20006         * lib/memcmp2.c: New file.
20007         * modules/memcmp2: New file.
20008
20009 2009-03-07  Bruno Haible  <bruno@clisp.org>
20010
20011         Tests for module 'uninorm/decomposing-form'.
20012         * modules/uninorm/decomposing-form-tests: New file.
20013         * tests/uninorm/test-decomposing-form.c: New file.
20014
20015         New module 'uninorm/decomposing-form'.
20016         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20017         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20018         Add 'decomposing_variant' field.
20019         * lib/uninorm/decomposing-form.c: New file.
20020         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20021         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20022         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20023         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20024         * modules/uninorm/decomposing-form: New file.
20025         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20026         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20027
20028 2009-03-07  Bruno Haible  <bruno@clisp.org>
20029
20030         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20031         strings.
20032
20033 2009-03-06  Bruno Haible  <bruno@clisp.org>
20034
20035         Tests for module 'uninorm/u32-normcmp'.
20036         * tests/uninorm/test-u32-normcmp.c: New file.
20037         * modules/uninorm/u32-normcmp-tests: New file.
20038
20039         Tests for module 'uninorm/u16-normcmp'.
20040         * tests/uninorm/test-u16-normcmp.c: New file.
20041         * modules/uninorm/u16-normcmp-tests: New file.
20042
20043         Tests for module 'uninorm/u8-normcmp'.
20044         * tests/uninorm/test-u8-normcmp.c: New file.
20045         * modules/uninorm/u8-normcmp-tests: New file.
20046
20047         New module 'uninorm/u32-normcmp'.
20048         * lib/uninorm/u32-normcmp.c: New file.
20049         * modules/uninorm/u32-normcmp: New file.
20050
20051         New module 'uninorm/u16-normcmp'.
20052         * lib/uninorm/u16-normcmp.c: New file.
20053         * modules/uninorm/u16-normcmp: New file.
20054
20055         New module 'uninorm/u8-normcmp'.
20056         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20057         declarations.
20058         * lib/uninorm/u8-normcmp.c: New file.
20059         * lib/uninorm/u-normcmp.h: New file.
20060         * modules/uninorm/u8-normcmp: New file.
20061
20062 2009-03-06  Bruno Haible  <bruno@clisp.org>
20063
20064         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20065         Reported by Eric Blake.
20066
20067 2009-03-06  Eric Blake  <ebb9@byu.net>
20068             Bruno Haible  <bruno@clisp.org>
20069
20070         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20071         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20072         condition.
20073         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20074         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20075         condition.
20076         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20077
20078 2009-03-06  Eric Blake  <ebb9@byu.net>
20079
20080         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20081         to avoid compiler warnings.
20082         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20083
20084 2009-03-05  Bruno Haible  <bruno@clisp.org>
20085
20086         * tests/test-ftell.c (main): Disable test beyond end of file on
20087         FreeMiNT.
20088         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20089
20090 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20091
20092         * lib/filevercmp.c: Move hidden files up in ordering.
20093         * tests/test-filevercmp.c: Add tests for hidden files.
20094
20095 2009-03-04  Bruno Haible  <bruno@clisp.org>
20096
20097         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20098         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20099         AM_CFLAGS.
20100         Reported by Simon Josefsson.
20101
20102 2009-03-03  Bruno Haible  <bruno@clisp.org>
20103
20104         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20105         Reported by Simon Josefsson.
20106
20107         * doc/ld-version-script.texi: Update node reference.
20108
20109 2009-03-03  Bruno Haible  <bruno@clisp.org>
20110
20111         * modules/visibility (License): Change to 'unlimited'.
20112         Suggested by Simon Josefsson.
20113
20114 2009-03-03  Jim Meyering  <meyering@redhat.com>
20115
20116         unlinkdir: cannot_unlink_dir may modify process state
20117         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20118         it's neither thread-safe nor appropriate for use in a library.
20119
20120 2009-03-03  Eric Blake  <ebb9@byu.net>
20121
20122         test-closein: silence test under Darwin
20123         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20124         care if it dies from EPIPE or EBADF.
20125
20126 2009-03-03  Bruno Haible  <bruno@clisp.org>
20127
20128         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20129         earlier.
20130         * doc/visibility.texi: Fix @node and @section.
20131
20132 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20133
20134         * doc/gnulib.texi: Link to sections for ld version script and
20135         visibility.
20136         * doc/visibility.texi: Add @node and @section.
20137         * modules/ld-version-script: New module.
20138         * m4/ld-version-script.m4: New file.
20139         * doc/ld-version-script.texi: New file.
20140
20141 2009-03-02  David Lutterkort  <lutter@redhat.com>
20142
20143         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20145
20146 2009-03-02  Bruno Haible  <bruno@clisp.org>
20147
20148         * doc/visibility.texi: Mention libtool's -export-symbols option.
20149
20150 2009-03-02  Jim Meyering  <meyering@redhat.com>
20151
20152         announce-gen: new option: --no-print-checksums
20153         * build-aux/announce-gen (usage): Describe it.
20154         (print_checksums): Print a newline here, not in the [*] footnote.
20155         (main): Honor it.
20156
20157 2009-03-01  Bruno Haible  <bruno@clisp.org>
20158
20159         Use socklen_t in the native Windows replacements prototypes.
20160         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20161         instead of 'int'.
20162         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20163         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20164         * modules/getsockopt (Depends-on): Add socklen.
20165         * modules/setsockopt (Depends-on): Add socklen.
20166
20167 2009-03-01  Bruno Haible  <bruno@clisp.org>
20168
20169         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20170         least 4.2.
20171
20172 2009-03-01  Eric Blake  <ebb9@byu.net>
20173             Bruno Haible  <bruno@clisp.org>
20174
20175         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20176         error messages.
20177         * lib/wait-process.c (wait_subprocess): Omit error message about
20178         deadly signal sent to the child of termsigp != NULL.
20179
20180 2009-03-01  Eric Blake  <ebb9@byu.net>
20181
20182         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20183
20184 2009-03-01  Bruno Haible  <bruno@clisp.org>
20185
20186         Avoid a gcc warning.
20187         * tests/test-sched.c (b): Make global.
20188         Reported by Eric Blake.
20189
20190 2009-01-19  Martin Lambers  <marlam@marlam.de>
20191
20192         Provide POSIX semantics for socket timeout options on W32.
20193         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20194         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20195         * modules/setsockopt: Depend on sys_time module for struct timeval.
20196         * modules/getsockopt: Depend on sys_time module for struct timeval.
20197
20198 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20199
20200         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20201         __USE_GNU, for consistency with netdb.in.h.
20202         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20203
20204 2009-03-01  Bruno Haible  <bruno@clisp.org>
20205
20206         More support for FreeMiNT.
20207         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20208         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20209
20210 2009-03-01  Bruno Haible  <bruno@clisp.org>
20211
20212         More support for FreeMiNT.
20213         * lib/fpurge.c (fpurge): Correct last commit.
20214         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20215
20216 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20217
20218         Fix unportable awk script in vc-list-files.
20219         * build-aux/vc-list-files: In the replacement awk script, use
20220         substr with a second argument of 1, not zero.
20221         Report by Simon Josefsson.
20222
20223 2009-02-28  Bruno Haible  <bruno@clisp.org>
20224
20225         More support for FreeMiNT.
20226         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20227         to FreeMiNT today.
20228         * lib/fwriting.c (fwriting): Likewise.
20229         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20230
20231 2009-02-28  Bruno Haible  <bruno@clisp.org>
20232
20233         * tests/test-freadseek.c (main): Disable test beyond end of file on
20234         FreeMiNT.
20235         * tests/test-ftello.c (main): Likewise.
20236         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20237
20238 2009-02-28  Bruno Haible  <bruno@clisp.org>
20239
20240         Add tentative support for FreeMiNT.
20241         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20242         * lib/fpurge.c (fpurge): Likewise.
20243         * lib/freadable.c (freadable): Likewise.
20244         * lib/freading.c (freading): Likewise.
20245         * lib/freadptr.c (freadptr): Likewise.
20246         * lib/freadseek.c (freadptrinc): Likewise.
20247         * lib/fseeko.c (rpl_fseeko): Likewise.
20248         * lib/fseterr.c (fseterr): Likewise.
20249         * lib/fwritable.c (fwritable): Likewise.
20250         * lib/fwriting.c (fwriting): Likewise.
20251         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20252         Hourihane.
20253         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20254
20255 2009-02-28  Bruno Haible  <bruno@clisp.org>
20256
20257         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20258         SIGCHLD.
20259         Reported by Jim Meyering.
20260
20261 2009-02-28  Bruno Haible  <bruno@clisp.org>
20262
20263         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20264         Mention the results of these tests on various platforms.
20265         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20266         order.
20267         * doc/posix-functions/printf.texi: Likewise.
20268         * doc/posix-functions/snprintf.texi: Likewise.
20269         * doc/posix-functions/sprintf.texi: Likewise.
20270         * doc/posix-functions/vfprintf.texi: Likewise.
20271         * doc/posix-functions/vprintf.texi: Likewise.
20272         * doc/posix-functions/vsnprintf.texi: Likewise.
20273         * doc/posix-functions/vsprintf.texi: Likewise.
20274         * doc/glibc-functions/obstack_printf.texi: Likewise.
20275         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20276
20277 2009-02-28  Bruno Haible  <bruno@clisp.org>
20278
20279         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20280         Reported by Loïc Minier <lool@dooz.org>.
20281
20282 2009-02-27  Bruno Haible  <bruno@clisp.org>
20283
20284         * gnulib-tool (func_import): Make the sed expression used to create the
20285         sed script for updating the .gitignore file POSIX compliant.
20286         Reported by Eric Blake.
20287
20288 2009-02-27  Bruno Haible  <bruno@clisp.org>
20289
20290         * gnulib-tool (sed): Don't alias as "sed --posix".
20291         Reported by Eric Blake.
20292
20293 2009-02-27  Bruno Haible  <bruno@clisp.org>
20294
20295         Avoid test link errors.
20296         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20297         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20298         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20299         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20301
20302 2009-02-27  Bruno Haible  <bruno@clisp.org>
20303
20304         Avoid spurious "(cached)" in configure output.
20305         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20306         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20307         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20308         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20309         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20310         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20311         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20312         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20313         Reported by Eric Blake.
20314
20315 2009-02-27  Eric Blake  <ebb9@byu.net>
20316
20317         printf: fix regression in previous patch
20318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20319
20320 2009-02-27  Bruno Haible  <bruno@clisp.org>
20321
20322         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20323         value.
20324         * lib/stdint.in.h: Likewise.
20325         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20326
20327 2009-02-27  Eric Blake  <ebb9@byu.net>
20328
20329         doc: mention more functions added in cygwin 1.7.0
20330         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20331         addition.
20332         * doc/posix-functions/open_wmemstream.texi: Likewise.
20333         * doc/posix-functions/wcsnlen.texi: Likewise.
20334         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20335         * doc/posix-functions/wcstod.texi: Likewise.
20336         * doc/posix-functions/wcstof.texi: Likewise.
20337         * doc/posix-functions/wcstoimax.texi: Likewise.
20338         * doc/posix-functions/wcstok.texi: Likewise.
20339         * doc/posix-functions/wcstoumax.texi: Likewise.
20340
20341         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20343         * doc/posix-functions/fprintf.texi: Update.
20344         * doc/posix-functions/printf.texi: Update.
20345         * doc/posix-functions/snprintf.texi: Update.
20346         * doc/posix-functions/sprintf.texi: Update.
20347         * doc/posix-functions/vfprintf.texi: Update.
20348         * doc/posix-functions/vprintf.texi: Update.
20349         * doc/posix-functions/vsnprintf.texi: Update.
20350         * doc/posix-functions/vsprintf.texi: Update.
20351         * doc/glibc-functions/obstack_printf.texi: Update.
20352         * doc/glibc-functions/obstack_vprintf.texi: Update.
20353
20354 2009-02-26  Eric Blake  <ebb9@byu.net>
20355
20356         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20357         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20358         compilation bug by using runtime conversion.
20359         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20360         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20361         * modules/ceill-tests (Files): Use nan.h.
20362         * modules/floorl-tests (Files): Likewise.
20363         * modules/frexpl-tests (Files): Likewise.
20364         * modules/isnanl-tests (Files): Likewise.
20365         * modules/ldexpl-tests (Files): Likewise.
20366         * modules/roundl-tests (Files): Likewise.
20367         * modules/truncl-tests (Files): Likewise.
20368         * tests/test-ceill.c (main): Use a working NaN.
20369         * tests/test-floorl.c (main): Likewise.
20370         * tests/test-frexpl.c (main): Likewise.
20371         * tests/test-isnan.c (test_long_double): Likewise.
20372         * tests/test-isnanl.h (main): Likewise.
20373         * tests/test-ldexpl.h (main): Likewise.
20374         * tests/test-roundl.h (main): Likewise.
20375         * tests/test-truncl.h (main): Likewise.
20376         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20377
20378 2009-02-26  Eric Blake  <ebb9@byu.net>
20379             Bruno Haible  <bruno@clisp.org>
20380
20381         Work around a *printf bug with %ls on Solaris.
20382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20383         precision is specified, sprintf stops converting the wide string
20384         argument when the number of bytes that have been produced by this
20385         conversion equals or exceeds the precision.
20386         * doc/posix-functions/fprintf.texi: Update.
20387         * doc/posix-functions/printf.texi: Update.
20388         * doc/posix-functions/snprintf.texi: Update.
20389         * doc/posix-functions/sprintf.texi: Update.
20390         * doc/posix-functions/vfprintf.texi: Update.
20391         * doc/posix-functions/vprintf.texi: Update.
20392         * doc/posix-functions/vsnprintf.texi: Update.
20393         * doc/posix-functions/vsprintf.texi: Update.
20394         * doc/glibc-functions/obstack_printf.texi: Update.
20395         * doc/glibc-functions/obstack_vprintf.texi: Update.
20396
20397 2009-02-26  Eric Blake  <ebb9@byu.net>
20398
20399         stdlib: favor compiler check of random.h
20400         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20401         to avoid an ObjC random.h installed by Swarm.
20402
20403 2009-02-26  Bruno Haible  <bruno@clisp.org>
20404
20405         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20406         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20407         Reported by Gary V. Vaughan <gary@gnu.org>.
20408
20409 2009-02-26  Bruno Haible  <bruno@clisp.org>
20410
20411         Fix *printf behaviour regarding the %ls directive.
20412         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20413         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20414         NEED_PRINTF_DIRECTIVE_LS.
20415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20416         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20417         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20418         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20419         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20420         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20421         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20423         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20424         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20425         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20426         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20430         * doc/posix-functions/fprintf.texi: Update.
20431         * doc/posix-functions/printf.texi: Update.
20432         * doc/posix-functions/snprintf.texi: Update.
20433         * doc/posix-functions/sprintf.texi: Update.
20434         * doc/posix-functions/vfprintf.texi: Update.
20435         * doc/posix-functions/vprintf.texi: Update.
20436         * doc/posix-functions/vsnprintf.texi: Update.
20437         * doc/posix-functions/vsprintf.texi: Update.
20438         * doc/glibc-functions/obstack_printf.texi: Update.
20439         * doc/glibc-functions/obstack_vprintf.texi: Update.
20440         Reported by Eric Blake.
20441
20442 2009-02-25  Bruno Haible  <bruno@clisp.org>
20443
20444         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20445         with known value.
20446         Reported by Gary V. Vaughan <gary@gnu.org>.
20447
20448 2009-02-25  Bruno Haible  <bruno@clisp.org>
20449
20450         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20451         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20452         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20453         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20454         Reported by Gary V. Vaughan <gary@gnu.org>.
20455
20456 2009-02-25  Bruno Haible  <bruno@clisp.org>
20457
20458         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20459         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20460         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20461         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20462         Reported by Gary V. Vaughan <gary@gnu.org>.
20463
20464 2009-02-25  Eric Blake  <ebb9@byu.net>
20465
20466         tests: skip fseek/ftell tests if ungetc is broken
20467         * m4/ungetc.m4: New file.
20468         * modules/fseek-tests: Split test, so ungetc dependency is
20469         separate from rest of test.
20470         * modules/fseeko-tests: Likewise.
20471         * modules/ftell-tests: Likewise.
20472         * modules/ftello-tests: Likewise.
20473         * tests/test-fseek.c (main): Isolate ungetc dependency.
20474         * tests/test-fseeko.c (main): Likewise.
20475         * tests/test-ftell.c (main): Likewise.
20476         * tests/test-ftello.c (main): Likewise.
20477         * tests/test-fseek2.sh: New file.
20478         * tests/test-fseeko2.sh: Likewise.
20479         * tests/test-ftell2.sh: Likewise.
20480         * tests/test-ftello2.sh: Likewise.
20481
20482 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20483
20484         test-getaddrinfo: fix usage of skip return code 77
20485         * tests/test-gettaddrinfo.c: Return skip code 77 only
20486         for first occurance of skip (4x77 is not 77)
20487
20488 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20489
20490         strtod: avoid C99 decl-after-statement
20491         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20492
20493 2009-02-24  Eric Blake  <ebb9@byu.net>
20494
20495         strtod: detect HP-UX 11.31 bug
20496         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20497         Reported by Gary V. Vaughan.
20498
20499 2009-02-23  Bruno Haible  <bruno@clisp.org>
20500
20501         Fix invalid read past end of memory block.
20502         * lib/vasnprintf.c (DCHAR_SET): Define.
20503         (local_wcslen): Define only when needed.
20504         (local_strnlen, local_wcsnlen): New functions.
20505         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20506         directives that involve a conversion ourselves.
20507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20508         wcsnlen, mbrtowc, wcrtomb.
20509         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20510         * tests/test-vasprintf-posix.c (test_function): Likewise.
20511         * tests/test-snprintf-posix.h (test_function): Likewise.
20512         * tests/test-sprintf-posix.h (test_function): Likewise.
20513         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20514
20515 2009-02-22  Bruno Haible  <bruno@clisp.org>
20516
20517         Implement new clarified decomposition of Hangul syllables.
20518         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20519         of type LTV, return only a pairwise decomposition.
20520         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20521         Likewise.
20522         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20523         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20524         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20525
20526 2009-02-22  Bruno Haible  <bruno@clisp.org>
20527
20528         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20529         zero-length results and shrink excess allocated memory.
20530         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20531         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20532         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20533         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20534         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20535         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20536         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20537         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20538         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20539         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20540         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20541         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20542
20543 2009-02-21  Bruno Haible  <bruno@clisp.org>
20544
20545         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20546         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20547         spaces after a period. Put a space between a macro name and its
20548         argument list. Trivial rewordings.
20549         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
20550         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
20551         (main): Return 0 explicitly.
20552
20553 2009-02-21  Bruno Haible  <bruno@clisp.org>
20554
20555         Tests for module 'uninorm/filter'.
20556         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
20557         * modules/uninorm/filter-tests: New file.
20558
20559         New module 'uninorm/filter'.
20560         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
20561         uninorm_filter_flush, uninorm_filter_free): New declarations.
20562         * lib/uninorm/uninorm-filter.c: New file.
20563         * modules/uninorm/filter: New file.
20564
20565 2009-02-21  Bruno Haible  <bruno@clisp.org>
20566
20567         Tests for module 'uninorm/nfkc'.
20568         * tests/uninorm/test-nfkc.c: New file.
20569         * tests/uninorm/test-u8-nfkc.c: New file.
20570         * tests/uninorm/test-u16-nfkc.c: New file.
20571         * tests/uninorm/test-u32-nfkc.c: New file.
20572         * tests/uninorm/test-u32-nfkc-big.sh: New file.
20573         * tests/uninorm/test-u32-nfkc-big.c: New file.
20574         * modules/uninorm/nfkc-tests: New file.
20575
20576         New module 'uninorm/nfkc'.
20577         * lib/uninorm/nfkc.c: New file.
20578         * modules/uninorm/nfkc: New file.
20579
20580         Tests for module 'uninorm/nfkd'.
20581         * tests/uninorm/test-nfkd.c: New file.
20582         * tests/uninorm/test-u8-nfkd.c: New file.
20583         * tests/uninorm/test-u16-nfkd.c: New file.
20584         * tests/uninorm/test-u32-nfkd.c: New file.
20585         * tests/uninorm/test-u32-nfkd-big.sh: New file.
20586         * tests/uninorm/test-u32-nfkd-big.c: New file.
20587         * modules/uninorm/nfkd-tests: New file.
20588
20589         New module 'uninorm/nfkd'.
20590         * lib/uninorm/nfkd.c: New file.
20591         * modules/uninorm/nfkd: New file.
20592
20593         Tests for module 'uninorm/nfc'.
20594         * tests/uninorm/test-nfc.c: New file.
20595         * tests/uninorm/test-u8-nfc.c: New file.
20596         * tests/uninorm/test-u16-nfc.c: New file.
20597         * tests/uninorm/test-u32-nfc.c: New file.
20598         * tests/uninorm/test-u32-nfc-big.sh: New file.
20599         * tests/uninorm/test-u32-nfc-big.c: New file.
20600         * modules/uninorm/nfc-tests: New file.
20601
20602         New module 'uninorm/nfc'.
20603         * lib/uninorm/nfc.c: New file.
20604         * modules/uninorm/nfc: New file.
20605
20606         Tests for module 'uninorm/nfd'.
20607         * tests/uninorm/test-nfd.c: New file.
20608         * tests/uninorm/test-u8-nfd.c: New file.
20609         * tests/uninorm/test-u16-nfd.c: New file.
20610         * tests/uninorm/test-u32-nfd.c: New file.
20611         * tests/uninorm/test-u32-nfd-big.sh: New file.
20612         * tests/uninorm/test-u32-nfd-big.c: New file.
20613         * tests/uninorm/test-u32-normalize-big.h: New file.
20614         * tests/uninorm/test-u32-normalize-big.c: New file.
20615         * tests/uninorm/NormalizationTest.txt: New file, created from
20616         Unicode 5.1.0 NormalizationTest.txt.
20617         * modules/uninorm/nfd-tests: New file.
20618
20619         New module 'uninorm/nfd'.
20620         * lib/uninorm/nfd.c: New file.
20621         * modules/uninorm/nfd: New file.
20622
20623         New module 'uninorm/u32-normalize'.
20624         * lib/uninorm/u32-normalize.c: New file.
20625         * modules/uninorm/u32-normalize: New file.
20626
20627         New module 'uninorm/u16-normalize'.
20628         * lib/uninorm/u16-normalize.c: New file.
20629         * modules/uninorm/u16-normalize: New file.
20630
20631         New module 'uninorm/u8-normalize'.
20632         * lib/uninorm/u8-normalize.c: New file.
20633         * lib/uninorm/normalize-internal.h: New file.
20634         * lib/uninorm/u-normalize-internal.h: New file.
20635         * modules/uninorm/u8-normalize: New file.
20636
20637         New module 'uninorm/decompose-internal'.
20638         * lib/uninorm/decompose-internal.c: New file.
20639         * modules/uninorm/decompose-internal: New file.
20640
20641         Tests for module 'uninorm/composition'.
20642         * tests/uninorm/test-composition.c: New file.
20643         * modules/uninorm/composition-tests: New file.
20644
20645         New module 'uninorm/composition'.
20646         * lib/uninorm/composition.c: New file.
20647         * lib/uninorm/composition-table.gperf: New file, generated by
20648         gen-uni-tables.
20649         * modules/uninorm/composition: New file.
20650
20651         Tests for module 'uninorm/compat-decomposition'.
20652         * tests/uninorm/test-compat-decomposition.c: New file.
20653         * modules/uninorm/compat-decomposition-tests: New file.
20654
20655         New module 'uninorm/compat-decomposition'.
20656         * lib/uninorm/decompose-internal.h: New file.
20657         * lib/uninorm/compat-decomposition.c: New file.
20658         * modules/uninorm/compat-decomposition: New file.
20659
20660         Tests for module 'uninorm/canonical-decomposition'.
20661         * tests/uninorm/test-canonical-decomposition.c: New file.
20662         * modules/uninorm/canonical-decomposition-tests: New file.
20663
20664         New module 'uninorm/canonical-decomposition'.
20665         * lib/uninorm/canonical-decomposition.c: New file.
20666         * modules/uninorm/canonical-decomposition: New file.
20667
20668         Tests for module 'uninorm/decomposition'.
20669         * tests/uninorm/test-decomposition.c: New file.
20670         * modules/uninorm/decomposition-tests: New file.
20671
20672         New module 'uninorm/decomposition'.
20673         * lib/uninorm/decomposition.c: New file.
20674         * modules/uninorm/decomposition: New file.
20675
20676         New module 'uninorm/decomposition-table'.
20677         * lib/uninorm/decomposition-table.h: New file.
20678         * lib/uninorm/decomposition-table.c: New file.
20679         * lib/uninorm/decomposition-table1.h: New file, generated by
20680         gen-uni-tables.
20681         * lib/uninorm/decomposition-table2.h: New file, generated by
20682         gen-uni-tables.
20683         * modules/uninorm/decomposition-table: New file.
20684
20685         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
20686         (UC_DECOMP_*): New enumeration items.
20687         (get_decomposition): New function.
20688         (struct decomp_table): New type.
20689         (output_decomposition, output_decomposition_tables): New functions.
20690         (unicode_composition_exclusions): New variable.
20691         (fill_composition_exclusions, debug_output_composition_tables): New
20692         functions.
20693         (main): Accept one more argument. Invoke fill_composition_exclusions.
20694         Output decomposition and composition tables.
20695
20696         New module 'uninorm/base'.
20697         * lib/uninorm.h: New file.
20698         * lib/unictype.h: Update comment.
20699         * modules/uninorm/base: New file.
20700
20701 2009-02-21  David Lutterkort  <lutter@redhat.com>
20702
20703         Tests for module 'safe-alloc'.
20704         * tests/test-safe-alloc.c: New file.
20705         * modules/safe-alloc-tests: New file.
20706
20707         New module 'safe-alloc'.
20708         * lib/safe-alloc.h: New file.
20709         * lib/safe-alloc.c: New file.
20710         * m4/safe-alloc.m4: New file.
20711         * modules/safe-alloc: New file.
20712         * doc/safe-alloc.texi: New file.
20713         * doc/gnulib.texi: Include it.
20714         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20715         safe-alloc.
20716
20717 2009-02-18  Bruno Haible  <bruno@clisp.org>
20718
20719         Fix link error on non-glibc systems.
20720         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
20721         variable.
20722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20723
20724 2009-02-18  Jim Meyering  <meyering@redhat.com>
20725
20726         fts: avoid used-uninitialized error due to recent change
20727         * lib/fts.c (fts_read): Guard uses of the new member,
20728         parent->fts_n_dirs_remaining, since it's not relevant for
20729         the parent of a directory specified on the command-line.
20730
20731 2009-02-17  James Youngman  <jay@gnu.org>
20732             Bruno Haible  <bruno@clisp.org>
20733
20734         * m4/include_next.m4: Reformulate comment.
20735
20736 2009-02-16  Jim Meyering  <meyering@redhat.com>
20737
20738         fts: add #if guards so that the fts_lgpl module still builds
20739         * lib/fts.c: Guard just-added hash-table-using parts with
20740         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
20741         Reported by Simon Josefsson.
20742
20743 2009-02-15  Bruno Haible  <bruno@clisp.org>
20744
20745         * modules/array-mergesort-tests: New file.
20746         * tests/test-array-mergesort.c: New file.
20747
20748         New module 'array-mergesort'.
20749         * modules/array-mergesort: New file.
20750         * lib/array-mergesort.h: New file.
20751
20752 2009-02-15  Bruno Haible  <bruno@clisp.org>
20753
20754         Fix 2009-02-07 commit.
20755         * lib/gen-uni-tables.c (output_predicate, output_category,
20756         output_combclass, output_bidi_category, output_decimal_digit,
20757         output_digit, output_numeric, output_mirror, output_scripts,
20758         output_ident_category, output_simple_mapping): Fix format directives.
20759         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
20760
20761 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
20762
20763         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
20764         fixes are available from IBM.
20765
20766 2009-02-13  Jim Meyering  <meyering@redhat.com>
20767
20768         fts: arrange not to stat non-directories in more cases
20769         This makes GNU find (when it doesn't need to stat each file)
20770         *much* more efficient at traversing reiserfs file systems.
20771         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
20772         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
20773         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
20774         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
20775         (leaf_optimization_applies): New function.
20776         (LCO_hash, LCO_compare): New helper functions.
20777         (link_count_optimize_ok): New function.
20778         (fts_stat): Initialize new member (if dir).
20779         (fts_read): Decrement parent's fts_n_dirs_remaining count if
20780         we've just stat'ed a directory.  Skip the stat call when possible.
20781         ---
20782         Note this AFS-related exchange:
20783         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
20784         and note find's pioctl call in find/fstype.c.
20785         But that is necessary only if you want to enable the
20786         optimization for AFS, and for now, I don't.
20787
20788         fts: move a function definition "up" (no semantic change)
20789         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
20790         "up" to precede upcoming use of a related function.
20791
20792 2009-02-11  Jim Meyering  <meyering@redhat.com>
20793
20794         fts: correct internal computation of nlinks (optimization-related)
20795         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
20796         whether the current entry is a directory, so don't test it.
20797
20798 2009-02-10  Bruno Haible  <bruno@clisp.org>
20799
20800         Tests for module 'uniwbrk/ulc-wordbreaks'.
20801         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
20802         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
20803         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
20804
20805         Tests for module 'uniwbrk/u32-wordbreaks'.
20806         * modules/uniwbrk/u32-wordbreaks-tests: New file.
20807         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
20808
20809         Tests for module 'uniwbrk/u16-wordbreaks'.
20810         * modules/uniwbrk/u16-wordbreaks-tests: New file.
20811         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
20812
20813         Tests for module 'uniwbrk/u8-wordbreaks'.
20814         * modules/uniwbrk/u8-wordbreaks-tests: New file.
20815         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
20816
20817 2009-02-10  Bruno Haible  <bruno@clisp.org>
20818
20819         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
20820         property.
20821         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
20822         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
20823         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
20824
20825 2009-02-10  Simon Josefsson  <simon@josefsson.org>
20826
20827         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
20828         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
20829
20830 2009-02-10  Bruno Haible  <bruno@clisp.org>
20831
20832         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
20833         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
20834         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
20835         * lib/unilbrk/u8-possible-linebreaks.c: Update.
20836         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
20837         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
20838
20839 2009-02-09  Simon Josefsson  <simon@josefsson.org>
20840
20841         * lib/sockets.h (gl_fd_to_handle): New function.
20842
20843         * tests/test-sockets.c: Call gl_fd_to_handle.
20844
20845 2009-02-09  Bruno Haible  <bruno@clisp.org>
20846
20847         * doc/havelib.texi: Document the conventions on bi-arch systems.
20848
20849 2009-02-08  Bruno Haible  <bruno@clisp.org>
20850
20851         Document the AC_LIB_LINKFLAGS macro.
20852         * doc/havelib.texi: New file, mostly written on 2005-05-24.
20853         * doc/gnulib.texi: Include it.
20854
20855 2009-02-08  Bruno Haible  <bruno@clisp.org>
20856
20857         Fix wrong order of sections, compared to TOC.
20858         * doc/gnulib.texi: Include relocatable-maint.texi after the
20859         "Regular expressions" node, not before.
20860
20861 2009-02-08  Bruno Haible  <bruno@clisp.org>
20862
20863         Tests for module 'unicase/totitle'.
20864         * modules/unicase/totitle-tests: New file.
20865
20866         Tests for module 'unicase/tolower'.
20867         * modules/unicase/tolower-tests: New file.
20868
20869         Tests for module 'unicase/toupper'.
20870         * modules/unicase/toupper-tests: New file.
20871         * tests/unicase/test-mapping-part1.h: New file.
20872         * tests/unicase/test-mapping-part2.h: New file.
20873
20874         New module 'unicase/totitle'.
20875         * modules/unicase/totitle: New file.
20876         * lib/unicase/totitle.c: New file.
20877
20878         New module 'unicase/tolower'.
20879         * modules/unicase/tolower: New file.
20880         * lib/unicase/tolower.c: New file.
20881
20882         New module 'unicase/toupper'.
20883         * modules/unicase/toupper: New file.
20884         * lib/unicase/toupper.c: New file.
20885         * lib/unicase/simple-mapping.h: New file.
20886
20887         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
20888         (mapping_table): New structure.
20889         (output_simple_mapping): New function.
20890         (main): Invoke output_simple_mapping_test and output_simple_mapping.
20891         * modules/gen-uni-tables (Description): Update.
20892         * lib/unicase/toupper.h: New file, automatically generated by
20893         gen-uni-tables.
20894         * lib/unicase/tolower.h: New file, automatically generated by
20895         gen-uni-tables.
20896         * lib/unicase/totitle.h: New file, automatically generated by
20897         gen-uni-tables.
20898         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
20899         gen-uni-tables.
20900         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
20901         gen-uni-tables.
20902         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
20903         gen-uni-tables.
20904
20905         New module 'unicase/base'.
20906         * modules/unicase/base: New file.
20907         * lib/unicase.h: New file.
20908
20909 2009-02-08  Bruno Haible  <bruno@clisp.org>
20910
20911         New module 'uniwbrk/ulc-wordbreaks'.
20912         * modules/uniwbrk/ulc-wordbreaks: New file.
20913         * lib/uniwbrk/ulc-wordbreaks.c: New file.
20914
20915         New module 'uniwbrk/u32-wordbreaks'.
20916         * modules/uniwbrk/u32-wordbreaks: New file.
20917         * lib/uniwbrk/u32-wordbreaks.c: New file.
20918
20919         New module 'uniwbrk/u16-wordbreaks'.
20920         * modules/uniwbrk/u16-wordbreaks: New file.
20921         * lib/uniwbrk/u16-wordbreaks.c: New file.
20922
20923         New module 'uniwbrk/u8-wordbreaks'.
20924         * modules/uniwbrk/u8-wordbreaks: New file.
20925         * lib/uniwbrk/u8-wordbreaks.c: New file.
20926         * lib/uniwbrk/u-wordbreaks.h: New file.
20927
20928         New module 'uniwbrk/table'.
20929         * modules/uniwbrk/table: New file.
20930         * lib/uniwbrk/wbrktable.h: New file.
20931         * lib/uniwbrk/wbrktable.c: New file.
20932
20933         New module 'uniwbrk/wordbreak-property'.
20934         * modules/uniwbrk/wordbreak-property: New file.
20935         * lib/uniwbrk/wordbreak-property.c: New file.
20936
20937         * lib/gen-uni-tables.c (WBP_*): New enum items.
20938         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
20939         (unicode_org_wbp): New variable.
20940         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
20941         New functions.
20942         (wbp_table): New structure.
20943         (output_wbp, output_wbrk_tables): New functions.
20944         (main): Accept additional argument. Invoke fill_org_wbp,
20945         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
20946         output_wbrk_tables.
20947         * modules/gen-uni-tables (Description): Update.
20948         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
20949         gen-uni-tables.
20950
20951         New module 'uniwbrk/base'.
20952         * modules/uniwbrk/base: New file.
20953         * lib/uniwbrk.h: New file.
20954
20955 2009-02-08  Bruno Haible  <bruno@clisp.org>
20956
20957         Update to Unicode 5.1.0.
20958         * lib/gen-uni-tables.c (is_property_alphabetic): Include
20959         U+2185..U+2188.
20960         (is_property_default_ignorable_code_point): Don't include characters
20961         of category Cc or Cs and not-a-characters.
20962         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
20963         U+0D79, U+109E, U+109F, U+A60C.
20964         * lib/unictype/bidi_of.h: Regenerated.
20965         * lib/unictype/blocks.h: Regenerated.
20966         * lib/unictype/categ_C.h: Regenerated.
20967         * lib/unictype/categ_Cf.h: Regenerated.
20968         * lib/unictype/categ_Cn.h: Regenerated.
20969         * lib/unictype/categ_L.h: Regenerated.
20970         * lib/unictype/categ_Ll.h: Regenerated.
20971         * lib/unictype/categ_Lm.h: Regenerated.
20972         * lib/unictype/categ_Lo.h: Regenerated.
20973         * lib/unictype/categ_Lu.h: Regenerated.
20974         * lib/unictype/categ_M.h: Regenerated.
20975         * lib/unictype/categ_Mc.h: Regenerated.
20976         * lib/unictype/categ_Me.h: Regenerated.
20977         * lib/unictype/categ_Mn.h: Regenerated.
20978         * lib/unictype/categ_N.h: Regenerated.
20979         * lib/unictype/categ_Nd.h: Regenerated.
20980         * lib/unictype/categ_Nl.h: Regenerated.
20981         * lib/unictype/categ_No.h: Regenerated.
20982         * lib/unictype/categ_P.h: Regenerated.
20983         * lib/unictype/categ_Pd.h: Regenerated.
20984         * lib/unictype/categ_Pe.h: Regenerated.
20985         * lib/unictype/categ_Pf.h: Regenerated.
20986         * lib/unictype/categ_Pi.h: Regenerated.
20987         * lib/unictype/categ_Po.h: Regenerated.
20988         * lib/unictype/categ_Ps.h: Regenerated.
20989         * lib/unictype/categ_S.h: Regenerated.
20990         * lib/unictype/categ_Sk.h: Regenerated.
20991         * lib/unictype/categ_Sm.h: Regenerated.
20992         * lib/unictype/categ_So.h: Regenerated.
20993         * lib/unictype/categ_of.h: Regenerated.
20994         * lib/unictype/combining.h: Regenerated.
20995         * lib/unictype/ctype_alnum.h: Regenerated.
20996         * lib/unictype/ctype_alpha.h: Regenerated.
20997         * lib/unictype/ctype_graph.h: Regenerated.
20998         * lib/unictype/ctype_lower.h: Regenerated.
20999         * lib/unictype/ctype_print.h: Regenerated.
21000         * lib/unictype/ctype_punct.h: Regenerated.
21001         * lib/unictype/ctype_upper.h: Regenerated.
21002         * lib/unictype/decdigit.h: Regenerated.
21003         * lib/unictype/digit.h: Regenerated.
21004         * lib/unictype/mirror.h: Regenerated.
21005         * lib/unictype/numeric.h: Regenerated.
21006         * lib/unictype/pr_alphabetic.h: Regenerated.
21007         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21008         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21009         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21010         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21011         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21012         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21013         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21014         * lib/unictype/pr_combining.h: Regenerated.
21015         * lib/unictype/pr_dash.h: Regenerated.
21016         * lib/unictype/pr_decimal_digit.h: Regenerated.
21017         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21018         * lib/unictype/pr_deprecated.h: Regenerated.
21019         * lib/unictype/pr_diacritic.h: Regenerated.
21020         * lib/unictype/pr_extender.h: Regenerated.
21021         * lib/unictype/pr_format_control.h: Regenerated.
21022         * lib/unictype/pr_grapheme_base.h: Regenerated.
21023         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21024         * lib/unictype/pr_grapheme_link.h: Regenerated.
21025         * lib/unictype/pr_id_continue.h: Regenerated.
21026         * lib/unictype/pr_id_start.h: Regenerated.
21027         * lib/unictype/pr_ideographic.h: Regenerated.
21028         * lib/unictype/pr_ignorable_control.h: Regenerated.
21029         * lib/unictype/pr_lowercase.h: Regenerated.
21030         * lib/unictype/pr_math.h: Regenerated.
21031         * lib/unictype/pr_numeric.h: Regenerated.
21032         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21033         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21034         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21035         * lib/unictype/pr_other_id_continue.h: Regenerated.
21036         * lib/unictype/pr_other_lowercase.h: Regenerated.
21037         * lib/unictype/pr_other_math.h: Regenerated.
21038         * lib/unictype/pr_punctuation.h: Regenerated.
21039         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21040         * lib/unictype/pr_soft_dotted.h: Regenerated.
21041         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21042         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21043         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21044         * lib/unictype/pr_uppercase.h: Regenerated.
21045         * lib/unictype/pr_xid_continue.h: Regenerated.
21046         * lib/unictype/pr_xid_start.h: Regenerated.
21047         * lib/unictype/pr_zero_width.h: Regenerated.
21048         * lib/unictype/scripts.h: Regenerated.
21049         * lib/unictype/scripts_byname.gperf: Regenerated.
21050         * lib/unictype/sy_java_ident.h: Regenerated.
21051         * lib/unilbrk/lbrkprop1.h: Regenerated.
21052         * lib/unilbrk/lbrkprop2.h: Regenerated.
21053         * tests/unictype/test-categ_C.c: Regenerated.
21054         * tests/unictype/test-categ_Cf.c: Regenerated.
21055         * tests/unictype/test-categ_Cn.c: Regenerated.
21056         * tests/unictype/test-categ_L.c: Regenerated.
21057         * tests/unictype/test-categ_Ll.c: Regenerated.
21058         * tests/unictype/test-categ_Lm.c: Regenerated.
21059         * tests/unictype/test-categ_Lo.c: Regenerated.
21060         * tests/unictype/test-categ_Lu.c: Regenerated.
21061         * tests/unictype/test-categ_M.c: Regenerated.
21062         * tests/unictype/test-categ_Mc.c: Regenerated.
21063         * tests/unictype/test-categ_Me.c: Regenerated.
21064         * tests/unictype/test-categ_Mn.c: Regenerated.
21065         * tests/unictype/test-categ_N.c: Regenerated.
21066         * tests/unictype/test-categ_Nd.c: Regenerated.
21067         * tests/unictype/test-categ_Nl.c: Regenerated.
21068         * tests/unictype/test-categ_No.c: Regenerated.
21069         * tests/unictype/test-categ_P.c: Regenerated.
21070         * tests/unictype/test-categ_Pd.c: Regenerated.
21071         * tests/unictype/test-categ_Pe.c: Regenerated.
21072         * tests/unictype/test-categ_Pf.c: Regenerated.
21073         * tests/unictype/test-categ_Pi.c: Regenerated.
21074         * tests/unictype/test-categ_Po.c: Regenerated.
21075         * tests/unictype/test-categ_Ps.c: Regenerated.
21076         * tests/unictype/test-categ_S.c: Regenerated.
21077         * tests/unictype/test-categ_Sk.c: Regenerated.
21078         * tests/unictype/test-categ_Sm.c: Regenerated.
21079         * tests/unictype/test-categ_So.c: Regenerated.
21080         * tests/unictype/test-ctype_alnum.c: Regenerated.
21081         * tests/unictype/test-ctype_alpha.c: Regenerated.
21082         * tests/unictype/test-ctype_graph.c: Regenerated.
21083         * tests/unictype/test-ctype_lower.c: Regenerated.
21084         * tests/unictype/test-ctype_print.c: Regenerated.
21085         * tests/unictype/test-ctype_punct.c: Regenerated.
21086         * tests/unictype/test-ctype_upper.c: Regenerated.
21087         * tests/unictype/test-decdigit.h: Regenerated.
21088         * tests/unictype/test-digit.h: Regenerated.
21089         * tests/unictype/test-numeric.h: Regenerated.
21090         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21091         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21092         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21093         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21094         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21095         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21096         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21097         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21098         * tests/unictype/test-pr_combining.c: Regenerated.
21099         * tests/unictype/test-pr_dash.c: Regenerated.
21100         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21101         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21102         * tests/unictype/test-pr_deprecated.c: Regenerated.
21103         * tests/unictype/test-pr_diacritic.c: Regenerated.
21104         * tests/unictype/test-pr_extender.c: Regenerated.
21105         * tests/unictype/test-pr_format_control.c: Regenerated.
21106         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21107         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21108         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21109         * tests/unictype/test-pr_id_continue.c: Regenerated.
21110         * tests/unictype/test-pr_id_start.c: Regenerated.
21111         * tests/unictype/test-pr_ideographic.c: Regenerated.
21112         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21113         * tests/unictype/test-pr_lowercase.c: Regenerated.
21114         * tests/unictype/test-pr_math.c: Regenerated.
21115         * tests/unictype/test-pr_numeric.c: Regenerated.
21116         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21117         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21118         Regenerated.
21119         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21120         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21121         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21122         * tests/unictype/test-pr_other_math.c: Regenerated.
21123         * tests/unictype/test-pr_punctuation.c: Regenerated.
21124         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21125         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21126         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21127         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21128         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21129         * tests/unictype/test-pr_uppercase.c: Regenerated.
21130         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21131         * tests/unictype/test-pr_xid_start.c: Regenerated.
21132         * tests/unictype/test-pr_zero_width.c: Regenerated.
21133
21134         Update to Unicode 5.1.0.
21135         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21136         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21137         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21138         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21139         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21140         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21141         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21142         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21143         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21144         (nonspacing_table_ind): Update.
21145         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21146
21147         Update to Unicode 5.1.0.
21148         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21149         code transform.
21150         * lib/uniname/uniname.c (unicode_character_name,
21151         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21152         * lib/uniname/uninames.h: Regenerated.
21153         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21154
21155 2009-02-07  Bruno Haible  <bruno@clisp.org>
21156
21157         Merge gen-ctype and gen-lbrk into a single program.
21158         * lib/gen-uni-tables.c: New file, incorporating
21159         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21160         Add directory prefixes to the names of the generated files.
21161         * lib/unictype/gen-ctype.c: Remove file.
21162         * lib/unilbrk/gen-lbrk.c: Remove file.
21163         * modules/gen-uni-tables: New file.
21164         * modules/unictype/gen-ctype: Remove file.
21165         * modules/unilbrk/gen-lbrk: Remove file.
21166
21167 2009-02-07  Bruno Haible  <bruno@clisp.org>
21168
21169         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21170
21171         New module 'unistr/u32-strcoll'.
21172         * modules/unistr/u32-strcoll: New file.
21173         * lib/unistr/u32-strcoll.c: New file.
21174
21175         New module 'unistr/u16-strcoll'.
21176         * modules/unistr/u16-strcoll: New file.
21177         * lib/unistr/u16-strcoll.c: New file.
21178
21179         New module 'unistr/u8-strcoll'.
21180         * modules/unistr/u8-strcoll: New file.
21181         * lib/unistr/u8-strcoll.c: New file.
21182         * lib/unistr/u-strcoll.h: New file.
21183
21184 2009-02-07  Bruno Haible  <bruno@clisp.org>
21185
21186         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21187         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21188         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21189         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21190         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21191         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21192
21193 2009-02-07  Bruno Haible  <bruno@clisp.org>
21194
21195         Make 64-bit clean.
21196         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21197         output_combclass, output_bidi_category, output_decimal_digit,
21198         output_digit, output_numeric, output_mirror, output_scripts,
21199         output_ident_category): Use proper width specifier in format strings.
21200
21201 2009-02-07  Bruno Haible  <bruno@clisp.org>
21202
21203         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21204         failure behaviour.
21205
21206 2009-02-07  Jim Meyering  <meyering@redhat.com>
21207
21208         regex: avoid compilation failure with upcoming gcc-4.4
21209         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21210         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21211         "... error: integer overflow in preprocessor expression".
21212
21213 2009-02-05  Ben Pfaff  <blp@gnu.org>
21214
21215         Fix link errors on Windows when close module is used.
21216         * modules/close: Add $(LIB_CLOSE) to Link section.
21217         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21218         $(LIB_CLOSE) on Windows.
21219
21220 2009-02-05  Jim Meyering  <meyering@redhat.com>
21221
21222         still avoid unused-parameter warnings, but do it cleanly
21223         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21224         (get_fs_usage): Cast to void instead.
21225         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21226         (dev_from_mount_options, read_file_system_list): Cast to void.
21227         Prompted by Bruno Haible.
21228
21229 2009-02-04  Jim Meyering  <meyering@redhat.com>
21230
21231         fsusage.c: correct copyright year
21232         * lib/fsusage.c: Reflect year in which the change is pushed into
21233
21234         avoid misc. warnings
21235         * lib/fsusage.c (UNUSED_PARAM): Define.
21236         (get_fs_usage): Mark parameter "disk" as unused.
21237         * lib/getugroups.c (getgrent): Use "void" in prototype.
21238         * lib/mountlist.c: Mark unused parameters.
21239         (read_file_system_list): Declare a local with "const".
21240         * lib/nanosleep.c (getnow): Declare static.
21241         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21242
21243         dirfd: set errno upon failure
21244         * lib/dirfd.c: Include <errno.h>.
21245         Set errno to ENOTSUP when returning -1.
21246         * modules/dirfd (Depends-on): Add errno.
21247         Suggested by John Kodis <kodis@comcast.net>.
21248
21249 2009-02-01  Bruno Haible  <bruno@clisp.org>
21250
21251         Don't assume sizeof (long) >= sizeof (void *).
21252         * lib/memcmp.c: Include stdint.h.
21253         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21254         srcp2 to 'const byte *'.
21255         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21256         types to uintptr_t.
21257         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21258         * modules/memcmp (Depends-on): Add stdint.
21259         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21260
21261 2009-01-30  Eric Blake  <ebb9@byu.net>
21262
21263         fix more require-before-expand issues
21264         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21265         expand, AC_PROG_AWK.
21266         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21267
21268 2009-01-28  Eric Blake  <ebb9@byu.net>
21269
21270         version-etc: use consistent URL formatting
21271         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21272         Improve formatting.  Use fputs for string without %.
21273
21274 2009-01-28  Jim Meyering  <meyering@redhat.com>
21275
21276         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21277         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21278         "underquoted definition of NAME" from autoconf-2.59.
21279
21280 2009-01-28  Bruno Haible  <bruno@clisp.org>
21281
21282         * doc/gnulib.texi: Add "Obsolete modules" to index.
21283
21284 2009-01-28  Jim Meyering  <meyering@redhat.com>
21285
21286         useless-if-before-free: recognize more variants
21287         * build-aux/useless-if-before-free: Also recognize e.g.,
21288         if (NULL != p) free (p);
21289
21290 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21291
21292         test-getaddrinfo: skip (don't fail) this test when there's no network
21293         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21294         on the presumption that it means you lack network access.
21295
21296 2009-01-26  Jim Meyering  <meyering@redhat.com>
21297
21298         fflush: avoid warnings on modern systems
21299         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21300         pos and result, into scopes where they're used.
21301
21302 2009-01-26  Eric Blake  <ebb9@byu.net>
21303
21304         Silence warning reintroduced by recent extensions patch.
21305         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21306         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21307         autoconf.
21308
21309         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21310         * m4/00gnulib.m4: New file.
21311         * gnulib-tool (func_get_filelist): Always use it.
21312         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21313         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21314
21315 2009-01-25  Bruno Haible  <bruno@clisp.org>
21316
21317         Make test-quotearg work on MacOS X and AIX.
21318         * tests/test-quotearg.sh: New file.
21319         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21320         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21321         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21322         include <libintl.h>.
21323         (fake_locale): Remove variable.
21324         (gettext, dgettext, dcgettext): Remove functions.
21325         (main): Instead of setting a fake locale, set a real locale. Call
21326         textdomain and bindtextdomain.
21327         * modules/quotearg-tests (Files): Add the new files.
21328         (Depends-on): Add gettext, setenv, unsetenv.
21329         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21330         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21331         Augment TESTS_ENVIRONMENT.
21332
21333 2009-01-25  Bruno Haible  <bruno@clisp.org>
21334
21335         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21336         fr_FR.ISO8859-1 locale on MacOS X.
21337         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21338         ja_JP.eucJP locale on MacOS X.
21339         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21340         zh_CN.GB18030 locale on MacOS X.
21341
21342 2009-01-25  Bruno Haible  <bruno@clisp.org>
21343
21344         Avoid link errors on MacOS X 10.3.
21345         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21346         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21347
21348 2009-01-25  Bruno Haible  <bruno@clisp.org>
21349
21350         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21351         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21352         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21353         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21354         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21355         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21356         posix_spawnattr_init, posix_spawnattr_setsigmask,
21357         posix_spawnattr_setflags, posix_spawnattr_destroy.
21358
21359         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21360         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21361         * modules/execute (Files): Remove m4/posix_spawn.m4.
21362         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21363         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21364         posix_spawnattr_init, posix_spawnattr_setsigmask,
21365         posix_spawnattr_setflags, posix_spawnattr_destroy.
21366
21367 2009-01-25  Bruno Haible  <bruno@clisp.org>
21368
21369         * lib/glthread/threadlib.c: Include <stdlib.h>.
21370
21371 2009-01-25  Bruno Haible  <bruno@clisp.org>
21372
21373         * lib/glthread/threadlib.c (dummy): New declaration.
21374
21375 2009-01-25  Bruno Haible  <bruno@clisp.org>
21376
21377         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21378         multibyte characters also for the GB18030 encoding. Don't crash when
21379         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21380
21381 2009-01-25  Bruno Haible  <bruno@clisp.org>
21382
21383         Avoid redefining 'struct random_data' on OSF/1 5.1.
21384         * lib/stdlib.in.h: Include <random.h> if it exists.
21385         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21386         HAVE_RANDOM_H. Include <random.h> when testing whether
21387         'struct random_data' exists.
21388         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21389
21390 2009-01-25  Bruno Haible  <bruno@clisp.org>
21391
21392         Don't install charset.alias on MacOS X >= 10.3.
21393         * lib/localcharset.c (DARWIN7): New macro.
21394         (get_charset_aliases): Hardcode the result for Darwin7.
21395         * modules/localcharset (install-exec-local): Don't install
21396         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21397
21398 2009-01-25  Bruno Haible  <bruno@clisp.org>
21399
21400         Don't install charset.alias on mingw and Cygwin.
21401         * modules/localcharset (install-exec-local): Don't install
21402         charset.alias on mingw and Cygwin, if the file does not yet exist.
21403         The result for these platforms is hardcoded in localcharset.c.
21404
21405 2009-01-25  Bruno Haible  <bruno@clisp.org>
21406
21407         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21409         before requiring AC_USE_SYSTEM_EXTENSIONS.
21410
21411 2009-01-25  Jim Meyering  <meyering@redhat.com>
21412
21413         c-strtod: avoid warnings
21414         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21415         "assignment discards qualifiers from pointer target type" warnings.
21416
21417 2009-01-24  Bruno Haible  <bruno@clisp.org>
21418
21419         Add support for non-UTF-8 locales on MacOS X.
21420         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21421         canonical encodings. For Darwin 7 and newer, don't map traditional
21422         encodings to UTF-8.
21423         Reported by Vincent Lefevre <vincent@vinc17.org>
21424         at <http://savannah.gnu.org/bugs/?25235>.
21425
21426 2009-01-24  Bruno Haible  <bruno@clisp.org>
21427
21428         * doc/gnulib.texi (Obsolete modules): New section.
21429         Reported by Mike Frysinger <vapier@gentoo.org>.
21430
21431 2009-01-24  Bruno Haible  <bruno@clisp.org>
21432
21433         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21434         (%.dvi): New rule.
21435
21436 2009-01-24  Bruno Haible  <bruno@clisp.org>
21437
21438         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21439         Reported by Eric Blake.
21440
21441 2009-01-24  Bruno Haible  <bruno@clisp.org>
21442
21443         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21444         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21445         Reported by Gary V. Vaughan <gary@gnu.org>.
21446
21447 2009-01-24  Bruno Haible  <bruno@clisp.org>
21448
21449         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21450
21451 2009-01-23  Bruno Haible  <bruno@clisp.org>
21452
21453         Make c-strtod, c-strtold usable in libraries.
21454         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21455         (C_STRTOD): Call strdup instead of xstrdup.
21456         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21457         * modules/c-strtold (Depends-on): Likewise.
21458         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21459         * NEWS: Mention the change.
21460         Reported by Michael Gold <mgold@ncf.ca>.
21461
21462 2009-01-23  Jim Meyering  <meyering@redhat.com>
21463
21464         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21465         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21466         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21467
21468 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21469
21470         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21471         GNU CoreUtils.
21472         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21473         * modules/version-etc (Description): Update.
21474
21475 2009-01-22  Bruno Haible  <bruno@clisp.org>
21476
21477         Cache the C locale object.
21478         * lib/c-strtod.c (c_locale_cache): New variable.
21479         (c_locale): New function.
21480         (C_STRTOD): Use it, and don't call freelocale.
21481         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21482         Suggested by Paolo Bonzini.
21483
21484 2009-01-21  Bruno Haible  <bruno@clisp.org>
21485
21486         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21487         conditions other than overflow.
21488
21489 2009-01-21  Bruno Haible  <bruno@clisp.org>
21490
21491         * lib/c-strtod.c: Include errno.h.
21492         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21493         value from STRTOD_L and STRTOD.
21494
21495 2009-01-21  Bruno Haible  <bruno@clisp.org>
21496         and Jim Meyering  <meyering@redhat.com>
21497
21498         nanosleep: skip configure test (fail it) for apple universal builds
21499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21500         universal builds, assume that nanosleep does not work.
21501         * modules/nanosleep (Depends-on): Add multiarch.
21502
21503         mktime: skip configure test (fail it) for apple universal builds
21504         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21505         universal builds, assume that mktime does not work.
21506         * modules/mktime (Depends-on): Add multiarch.
21507
21508 2009-01-21  Eric Blake  <ebb9@byu.net>
21509
21510         multiarch: avoid expand-before-require warning
21511         * modules/multiarch (configure.ac): Require, rather than expand,
21512         gl_MULTIARCH.
21513         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21514         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21515         enforce that all clients require it.  Partial reversion of
21516         2008-12-29 patch.
21517
21518         error: avoid expand-before-require warning
21519         * modules/errno (configure.ac): Require, rather than expand,
21520         gl_HEADER_ERRNO_H.
21521         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21522         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21523         enforce that all clients require it.
21524
21525         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21526         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21527         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21528         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21529
21530 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21531
21532         Revert:
21533         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21534
21535         regex: do not depend on obsolete modules.
21536         * modules/regex: Remove memcmp and memmove.
21537
21538 2009-01-20  Bruno Haible  <bruno@clisp.org>
21539
21540         Make the 'link' module link on Windows NT 4.
21541         * lib/link.c (_WIN32_WINNT): Don't define.
21542         (CreateHardLinkFuncType): New type.
21543         (CreateHardLinkFunc, initialized): New variables.
21544         (initialize): New function.
21545         (link): Invoke CreateHardLink indirectly through the function pointer.
21546
21547 2009-01-20  Bruno Haible  <bruno@clisp.org>
21548
21549         Fix compilation failure on mingw.
21550         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
21551
21552 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
21553
21554         * doc/c-strtod.texi: Mention a couple of restrictions.
21555
21556 2009-01-20  Jim Meyering  <meyering@redhat.com>
21557
21558         gettimeofday: move more declarations out of functions
21559         * lib/gettimeofday.c: Move extern declarations of tzset and
21560         gmtime out of containing functions.  Prompted by Bruno Haible.
21561
21562 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21563
21564         regex: do not depend on obsolete modules.
21565         * modules/regex: Remove memcmp and memmove.
21566
21567 2009-01-19  Bruno Haible  <bruno@clisp.org>
21568
21569         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21570         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
21571         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21572         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
21573         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
21574
21575 2009-01-19  Bruno Haible  <bruno@clisp.org>
21576
21577         * tests/test-link.c: Include <errno.h>.
21578         (main): Exit with code 77 when a hard link cannot be created due to
21579         the file system.
21580         * tests/test-link.sh: Skip test when a hard link cannot be created due
21581         to the file system.
21582         Suggested by Eric Blake.
21583
21584 2009-01-19  Martin Lambers  <marlam@marlam.de>
21585
21586         * modules/link-tests: New file.
21587         * tests/test-link.sh: New file.
21588         * tests/test-link.c: New file.
21589
21590 2009-01-19  Eric Blake  <ebb9@byu.net>
21591
21592         doc: mention another function added in cygwin 1.7.0
21593         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
21594         Another new function in cygwin 1.7.
21595
21596 2009-01-19  Bruno Haible  <bruno@clisp.org>
21597
21598         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21599         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
21600         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
21601         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21602         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21603         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21604         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21605         * m4/md4.m4 (gl_MD4): Likewise.
21606         * m4/md5.m4 (gl_MD5): Likewise.
21607         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
21608         * m4/sha1.m4 (gl_SHA1): Likewise.
21609         * m4/sha256.m4 (gl_SHA256): Likewise.
21610         * m4/sha512.m4 (gl_SHA512): Likewise.
21611
21612 2009-01-19  Bruno Haible  <bruno@clisp.org>
21613
21614         * modules/uniname/uniname-tests (Depends-on): Add progname.
21615         * tests/uniname/test-uninames.c: Include progname.h.
21616         (main): Call set_program_name.
21617
21618         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
21619         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
21620         (main): Call set_program_name.
21621
21622         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
21623         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
21624         (main): Call set_program_name.
21625
21626         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
21627         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
21628         (main): Call set_program_name.
21629
21630         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
21631         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
21632         (main): Call set_program_name.
21633
21634         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
21635         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
21636         (main): Call set_program_name.
21637
21638         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
21639         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
21640         (main): Call set_program_name.
21641
21642         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
21643         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
21644         (main): Call set_program_name.
21645
21646         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
21647         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
21648         (main): Call set_program_name.
21649
21650 2009-01-19  Eric Blake  <ebb9@byu.net>
21651
21652         test-unistd: test previous patch
21653         * tests/test-unistd.c: Test *_FILENO macros.
21654
21655         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
21656         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21657         Guarantee a definition.
21658         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
21659         * modules/unistd-safer (Depends-on): Add dependency on unistd.
21660         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
21661         * lib/dup-safer.c (STDERR_FILENO): Likewise.
21662         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21663         Likewise.
21664         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
21665         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
21666         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21667         Likewise.
21668         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
21669         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
21670         (STDERR_FILENO): Likewise.
21671         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
21672         (STDERR_FILENO): Likewise.
21673         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
21674         (STDERR_FILENO): Likewise.
21675         Reported by Elbert Pol.
21676
21677 2009-01-19  Eric Blake  <ebb9@byu.net>
21678
21679         doc: mention more functions added in cygwin 1.7.0
21680         * doc/posix-functions/abort.texi (abort): Update wording related
21681         to cygwin.
21682         * doc/posix-functions/daylight.texi (daylight): Likewise.
21683         * doc/posix-functions/optarg.texi (optarg): Likewise.
21684         * doc/posix-functions/optarg.texi (opterr): Likewise.
21685         * doc/posix-functions/optarg.texi (optind): Likewise.
21686         * doc/posix-functions/optarg.texi (optopt): Likewise.
21687         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
21688         worked in 1.5.x, and was withdrawn in 1.7.
21689         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
21690         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
21691         cygwin versions.
21692         * doc/posix-functions/perror.texi (perror): Likewise.
21693         * doc/posix-functions/printf.texi (printf): Likewise.
21694         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
21695         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
21696         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21697         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21698         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21699         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
21700         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21701         Likewise.
21702         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21703         Likewise.
21704         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
21705         this function.
21706         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
21707         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
21708         Likewise.
21709         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
21710         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
21711         * doc/posix-functions/confstr.texi (confstr): Likewise.
21712         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
21713         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
21714         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
21715         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
21716         * doc/posix-functions/fputws.texi (fputws): Likewise.
21717         * doc/posix-functions/fwide.texi (fwide): Likewise.
21718         * doc/posix-functions/getwc.texi (getwc): Likewise.
21719         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
21720         * doc/posix-functions/putwc.texi (putwc): Likewise.
21721         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
21722         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
21723         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
21724         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
21725         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
21726         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
21727         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
21728         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
21729         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
21730         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
21731         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
21732
21733 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
21734
21735         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
21736         * lib/ioctl.c: Include <sys/ioctl.h>.
21737
21738 2009-01-19  Simon Josefsson  <simon@josefsson.org>
21739
21740         * modules/getdate-tests (Depends-on): Add progname.
21741         * tests/test-getdate.c: Use progname module, to avoid link errors
21742         on non-glibc systems.
21743
21744 2009-01-18  Simon Josefsson  <simon@josefsson.org>
21745
21746         * modules/filenamecat-tests (Depends-on): Add progname.
21747         * modules/fstrcmp-tests (Depends-on): Likewise.
21748
21749         * tests/test-filenamecat.c: Use progname module, to avoid link
21750         errors on non-glibc systems.
21751         * tests/test-fstrcmp.c: Likewise.
21752
21753 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
21754
21755         gettimeofday: avoid warning: nested extern declaration of 'localtime'
21756         * lib/gettimeofday.c: Move extern declaration out of function.
21757
21758 2009-01-18  Bruno Haible  <bruno@clisp.org>
21759
21760         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
21761         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
21762         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
21763
21764 2009-01-18  Bruno Haible  <bruno@clisp.org>
21765
21766         * lib/strftime.c (MEMPCPY): Remove unused macro.
21767         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
21768
21769 2009-01-18  Martin Lambers  <marlam@marlam.de>
21770
21771         New module 'link'.
21772         * lib/unistd.in.h (link): New declaration.
21773         * lib/link.c: New file.
21774         * m4/link.m4: New file.
21775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
21776         HAVE_LINK.
21777         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
21778         * modules/link: New file.
21779         * doc/posix-functions/link.texi: Mention the new module.
21780
21781 2009-01-18  Bruno Haible  <bruno@clisp.org>
21782
21783         * tests/test-avltree_list.c (main): Call set_program_name.
21784         * tests/test-avltree_oset.c (main): Likewise.
21785         * tests/test-obstack-printf.c: Include progname.h.
21786         (main): Call set_program_name.
21787         * tests/test-quotearg.c: Include progname.h.
21788         (main): Call set_program_name.
21789         * tests/test-xmemdup0.c: Include progname.h.
21790         (main): Call set_program_name.
21791
21792 2009-01-18  Bruno Haible  <bruno@clisp.org>
21793
21794         New module 'alphasort'.
21795         * lib/dirent.in.h (alphasort): New declaration.
21796         * lib/alphasort.c: New file, from glibc with modifications.
21797         * m4/alphasort.m4: New file.
21798         * modules/alphasort: New file.
21799         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
21800         HAVE_ALPHASORT.
21801         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
21802         HAVE_ALPHASORT.
21803         * doc/posix-functions/alphasort.texi: Mention the new module and the
21804         portability problems.
21805
21806 2009-01-18  Bruno Haible  <bruno@clisp.org>
21807
21808         New module 'scandir'.
21809         * lib/dirent.in.h (scandir): New declaration.
21810         * lib/scandir.c: New file, from glibc with modifications.
21811         * m4/scandir.m4: New file.
21812         * modules/scandir: New file.
21813         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
21814         HAVE_SCANDIR.
21815         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
21816         HAVE_SCANDIR.
21817         * doc/posix-functions/scandir.texi: Mention the new module and the
21818         portability problems.
21819
21820 2009-01-17  Bruno Haible  <bruno@clisp.org>
21821
21822         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
21823         Update documentation.
21824         (func_remove_suffix): Escape all dots in the suffix. Update
21825         documentation.
21826         (func_filter_filelist): Update documentation.
21827         Reported by Ralf Wildenhues.
21828
21829 2009-01-17  Bruno Haible  <bruno@clisp.org>
21830
21831         * modules/dprintf-posix-tests: New file.
21832         * tests/test-dprintf-posix.sh: New file.
21833         * tests/test-dprintf-posix.c: New file.
21834
21835         New modules 'dprintf', 'dprintf-posix'.
21836         * lib/stdio.in.h (dprintf): New declaration.
21837         * lib/dprintf.c: New file.
21838         * m4/dprintf.m4: New file.
21839         * m4/dprintf-posix.m4: New file.
21840         * modules/dprintf: New file.
21841         * modules/dprintf-posix: New file.
21842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
21843         HAVE_DPRINTF, REPLACE_DPRINTF.
21844         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
21845         HAVE_DPRINTF, REPLACE_DPRINTF.
21846         * doc/posix-functions/dprintf.texi: Mention the new modules.
21847
21848 2009-01-17  Bruno Haible  <bruno@clisp.org>
21849
21850         * modules/vdprintf-posix-tests: New file.
21851         * tests/test-vdprintf-posix.sh: New file.
21852         * tests/test-vdprintf-posix.c: New file.
21853
21854         New modules 'vdprintf', 'vdprintf-posix'.
21855         * lib/stdio.in.h (vdprintf): New declaration.
21856         * lib/vdprintf.c: New file.
21857         * m4/vdprintf.m4: New file.
21858         * m4/vdprintf-posix.m4: New file.
21859         * modules/vdprintf: New file.
21860         * modules/vdprintf-posix: New file.
21861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
21862         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21863         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
21864         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21865         * doc/posix-functions/vdprintf.texi: Mention the new modules.
21866
21867 2009-01-17  Bruno Haible  <bruno@clisp.org>
21868
21869         Fix replacement of fopen on mingw.
21870         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
21871         mingw.
21872
21873 2009-01-17  Bruno Haible  <bruno@clisp.org>
21874
21875         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
21876         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
21877
21878 2009-01-17  Bruno Haible  <bruno@clisp.org>
21879
21880         Avoid test-fflush2.sh failure on mingw.
21881         * tests/test-fflush2.c: Include binary-io.h.
21882         (main): Put standard input into binary mode.
21883         * modules/fflush-tests (Depends-on): Add binary-io.
21884
21885 2009-01-17  Bruno Haible  <bruno@clisp.org>
21886
21887         * lib/wchar.in.h: In another particular situation, include only the
21888         system's <wchar.h> file.
21889         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
21890         Reported by Albert Chin-A-Young <china@thewrittenword.com>
21891         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
21892
21893 2009-01-17  Bruno Haible  <bruno@clisp.org>
21894
21895         Support for stripping executables in --enable-relocatable.
21896         * build-aux/install-reloc: Expect one more argument, or an environment
21897         variable RELOC_STRIP_PROG. If set, strip the destination program and
21898         its wrapper.
21899         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
21900         RELOC_STRIP_PROG.
21901         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
21902         to set RELOCATABLE_STRIP.
21903         * NEWS: Mention the new Makefile requirement.
21904
21905 2009-01-17  Bruno Haible  <bruno@clisp.org>
21906
21907         * build-aux/install-reloc: Remove debugging information left over by
21908         C compiler on MacOS X.
21909
21910 2009-01-17  Bruno Haible  <bruno@clisp.org>
21911
21912         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
21913         * lib/progreloc.c (find_executable): Fix type of pointer passed to
21914         _NSGetExecutablePath.
21915
21916 2009-01-16  Jim Meyering  <meyering@redhat.com>
21917
21918         strerror: avoid warnings about discarding "const"
21919         * lib/strerror.c (rpl_strerror): Instead of returning a const
21920         string from each and every "case", use a variable, and add a single
21921         cast after the switch.
21922
21923 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
21924
21925         * lib/arpa_inet.in.h: Add extern "C" block for C++.
21926
21927 2009-01-16  Bruno Haible  <bruno@clisp.org>
21928
21929         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
21930         array initializer syntax that also works in C++ mode.
21931         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21932
21933 2009-01-16  Jim Meyering  <meyering@redhat.com>
21934
21935         poll: suppress a warning
21936         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
21937         to ignore "...unsigned expression < 0 is always false" warnings.
21938
21939 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
21940
21941         poll: remove declarations of unused variables
21942         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
21943         sockbuf and optlen.
21944
21945 2009-01-15  Bruno Haible  <bruno@clisp.org>
21946
21947         Make fflush-after-ungetc POSIX compliant on BSD systems.
21948         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
21949         (clear_ungetc_buffer): Implement also for other systems.
21950         (rpl_fflush): On glibc systems, invoke
21951         clear_ungetc_buffer_preserving_position. Otherwise, invoke
21952         clear_ungetc_buffer after fetching the stream's position, not before.
21953
21954 2009-01-15  Bruno Haible  <bruno@clisp.org>
21955
21956         Make fflush-after-ungetc POSIX compliant on glibc systems.
21957         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
21958         after ungetc.
21959         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
21960         (rpl_fflush): On glibc systems, simply call the system's fflush
21961         function after clearing the ungetc buffer.
21962         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
21963         Instead, lseek only to the end of file, then use the system's fseeko
21964         for the rest. On glibc systems, reset the EOF indicator bit.
21965
21966 2009-01-15  Jim Meyering  <meyering@redhat.com>
21967
21968         openmp.m4: revert quote-adding change, for portability to older autoconf
21969         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
21970         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
21971         Simon Josefsson noticed the problem when using autoconf-2.61.
21972
21973 2009-01-15  Bruno Haible  <bruno@clisp.org>
21974
21975         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
21976         * tests/test-fflush2.c (ASSERT): Always fail.
21977         (main): Add two tests for fflush() after ungetc(), taking into account
21978         the Austin Group's clarification.
21979         Suggested by Eric Blake.
21980
21981 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
21982
21983         mktime.m4: remove K&R-style function prototypes
21984         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
21985         for the Sun C++ compiler.
21986
21987 2009-01-14  Bruno Haible  <bruno@clisp.org>
21988
21989         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
21990         while including <wchar.h>.
21991         * lib/wchar.in.h: In two particular situations on HP-UX, include only
21992         the system's <wchar.h> file.
21993         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21994
21995 2009-01-14  Bruno Haible  <bruno@clisp.org>
21996
21997         * m4/csharp.m4: Don't mention gettext on the serial number line.
21998         * m4/csharpexec.m4: Likewise.
21999         * m4/eaccess.m4: Likewise.
22000         * m4/javaexec.m4: Likewise.
22001         * m4/sig_atomic_t.m4: Likewise.
22002         * m4/tmpdir.m4: Likewise.
22003         * m4/intldir.m4: Bump gettext version.
22004         * m4/lib-ld.m4: Likewise.
22005
22006 2009-01-14  Bruno Haible  <bruno@clisp.org>
22007
22008         * lib/progname.c (set_program_name): Add more comments.
22009         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22010
22011 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22012
22013         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22014         were sys/stat.h does not define it.
22015
22016 2009-01-14  Jim Meyering  <meyering@redhat.com>
22017
22018         many *.m4 files: improve m4 quoting
22019         99% of this change was performed by running the following commands:
22020         git ls-files | grep '\.m4$' | xargs perl -pi \
22021           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22022           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22023           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22024           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22025         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22026         The remainder were to add Copyright dates, increment serial numbers,
22027         undo some changes in comments, exclude m4/intl.m4, and add quotes
22028         around the "1" in ",1" where the unusual spacing prohibited the
22029         above regexps from doing the job.  For more details, see
22030         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22031         * m4/acl.m4: Modified.
22032         * m4/afs.m4: Likewise.
22033         * m4/alloca.m4: Likewise.
22034         * m4/argp.m4: Likewise.
22035         * m4/argz.m4: Likewise.
22036         * m4/atexit.m4: Likewise.
22037         * m4/bison-i18n.m4: Likewise.
22038         * m4/bison.m4: Likewise.
22039         * m4/byteswap.m4: Likewise.
22040         * m4/c-stack.m4: Likewise.
22041         * m4/c-strtod.m4: Likewise.
22042         * m4/calloc.m4: Likewise.
22043         * m4/canonicalize-lgpl.m4: Likewise.
22044         * m4/chown.m4: Likewise.
22045         * m4/clock_time.m4: Likewise.
22046         * m4/codeset.m4: Likewise.
22047         * m4/copy-file.m4: Likewise.
22048         * m4/csharp.m4: Likewise.
22049         * m4/csharpcomp.m4: Likewise.
22050         * m4/csharpexec.m4: Likewise.
22051         * m4/d-ino.m4: Likewise.
22052         * m4/d-type.m4: Likewise.
22053         * m4/dirfd.m4: Likewise.
22054         * m4/double-slash-root.m4: Likewise.
22055         * m4/eaccess.m4: Likewise.
22056         * m4/eealloc.m4: Likewise.
22057         * m4/environ.m4: Likewise.
22058         * m4/errno_h.m4: Likewise.
22059         * m4/euidaccess.m4: Likewise.
22060         * m4/execute.m4: Likewise.
22061         * m4/fatal-signal.m4: Likewise.
22062         * m4/fchdir.m4: Likewise.
22063         * m4/fcntl_h.m4: Likewise.
22064         * m4/fileblocks.m4: Likewise.
22065         * m4/filenamecat.m4: Likewise.
22066         * m4/findprog.m4: Likewise.
22067         * m4/flexmember.m4: Likewise.
22068         * m4/fnmatch.m4: Likewise.
22069         * m4/fopen.m4: Likewise.
22070         * m4/fpending.m4: Likewise.
22071         * m4/fprintf-posix.m4: Likewise.
22072         * m4/free.m4: Likewise.
22073         * m4/frexp.m4: Likewise.
22074         * m4/frexpl.m4: Likewise.
22075         * m4/fsusage.m4: Likewise.
22076         * m4/ftruncate.m4: Likewise.
22077         * m4/gc-camellia.m4: Likewise.
22078         * m4/gc-random.m4: Likewise.
22079         * m4/gc.m4: Likewise.
22080         * m4/getaddrinfo.m4: Likewise.
22081         * m4/getcwd-abort-bug.m4: Likewise.
22082         * m4/getcwd-path-max.m4: Likewise.
22083         * m4/getdate.m4: Likewise.
22084         * m4/getdomainname.m4: Likewise.
22085         * m4/getgroups.m4: Likewise.
22086         * m4/gethostname.m4: Likewise.
22087         * m4/gethrxtime.m4: Likewise.
22088         * m4/getline.m4: Likewise.
22089         * m4/getloadavg.m4: Likewise.
22090         * m4/getndelim2.m4: Likewise.
22091         * m4/getpass.m4: Likewise.
22092         * m4/gettext.m4: Likewise.
22093         * m4/gettime.m4: Likewise.
22094         * m4/gettimeofday.m4: Likewise.
22095         * m4/gnulib-common.m4: Likewise.
22096         * m4/group-member.m4: Likewise.
22097         * m4/host-os.m4: Likewise.
22098         * m4/iconv.m4: Likewise.
22099         * m4/iconv_open.m4: Likewise.
22100         * m4/inet_ntop.m4: Likewise.
22101         * m4/inet_pton.m4: Likewise.
22102         * m4/inline.m4: Likewise.
22103         * m4/intldir.m4: Likewise.
22104         * m4/intlmacosx.m4: Likewise.
22105         * m4/intmax.m4: Likewise.
22106         * m4/intmax_t.m4: Likewise.
22107         * m4/inttypes.m4: Likewise.
22108         * m4/inttypes_h.m4: Likewise.
22109         * m4/inttypes-pri.m4: Likewise.
22110         * m4/isapipe.m4: Likewise.
22111         * m4/isnand.m4: Likewise.
22112         * m4/isnanf.m4: Likewise.
22113         * m4/isnanl.m4: Likewise.
22114         * m4/javacomp.m4: Likewise.
22115         * m4/javaexec.m4: Likewise.
22116         * m4/jm-winsz1.m4: Likewise.
22117         * m4/jm-winsz2.m4: Likewise.
22118         * m4/lchown.m4: Likewise.
22119         * m4/lcmessage.m4: Likewise.
22120         * m4/ldexpl.m4: Likewise.
22121         * m4/lib-ld.m4: Likewise.
22122         * m4/lib-link.m4: Likewise.
22123         * m4/libsigsegv.m4: Likewise.
22124         * m4/link-follow.m4: Likewise.
22125         * m4/localcharset.m4: Likewise.
22126         * m4/locale-fr.m4: Likewise.
22127         * m4/locale-ja.m4: Likewise.
22128         * m4/locale-tr.m4: Likewise.
22129         * m4/locale-zh.m4: Likewise.
22130         * m4/lock.m4: Likewise.
22131         * m4/longlong.m4: Likewise.
22132         * m4/ls-mntd-fs.m4: Likewise.
22133         * m4/lstat.m4: Likewise.
22134         * m4/malloc.m4: Likewise.
22135         * m4/mathl.m4: Likewise.
22136         * m4/mbrtowc.m4: Likewise.
22137         * m4/mbstate_t.m4: Likewise.
22138         * m4/mbswidth.m4: Likewise.
22139         * m4/memchr.m4: Likewise.
22140         * m4/memcmp.m4: Likewise.
22141         * m4/memcpy.m4: Likewise.
22142         * m4/memmem.m4: Likewise.
22143         * m4/memmove.m4: Likewise.
22144         * m4/mempcpy.m4: Likewise.
22145         * m4/memrchr.m4: Likewise.
22146         * m4/memset.m4: Likewise.
22147         * m4/minmax.m4: Likewise.
22148         * m4/mkdir-slash.m4: Likewise.
22149         * m4/mkdtemp.m4: Likewise.
22150         * m4/mktime.m4: Likewise.
22151         * m4/mmap-anon.m4: Likewise.
22152         * m4/mountlist.m4: Likewise.
22153         * m4/nanosleep.m4: Likewise.
22154         * m4/nls.m4: Likewise.
22155         * m4/nocrash.m4: Likewise.
22156         * m4/open.m4: Likewise.
22157         * m4/openat.m4: Likewise.
22158         * m4/openmp.m4: Likewise.
22159         * m4/pathmax.m4: Likewise.
22160         * m4/perl.m4: Likewise.
22161         * m4/physmem.m4: Likewise.
22162         * m4/pipe.m4: Likewise.
22163         * m4/po.m4: Likewise.
22164         * m4/poll.m4: Likewise.
22165         * m4/posixtm.m4: Likewise.
22166         * m4/posixver.m4: Likewise.
22167         * m4/printf-frexp.m4: Likewise.
22168         * m4/printf-frexpl.m4: Likewise.
22169         * m4/printf-posix.m4: Likewise.
22170         * m4/printf-posix-rpl.m4: Likewise.
22171         * m4/printf.m4: Likewise.
22172         * m4/progtest.m4: Likewise.
22173         * m4/putenv.m4: Likewise.
22174         * m4/readline.m4: Likewise.
22175         * m4/readlink.m4: Likewise.
22176         * m4/readutmp.m4: Likewise.
22177         * m4/realloc.m4: Likewise.
22178         * m4/regex.m4: Likewise.
22179         * m4/relocatable.m4: Likewise.
22180         * m4/relocatable-lib.m4: Likewise.
22181         * m4/rename-dest-slash.m4: Likewise.
22182         * m4/rename.m4: Likewise.
22183         * m4/rmdir-errno.m4: Likewise.
22184         * m4/rmdir.m4: Likewise.
22185         * m4/roundf.m4: Likewise.
22186         * m4/roundl.m4: Likewise.
22187         * m4/rpmatch.m4: Likewise.
22188         * m4/save-cwd.m4: Likewise.
22189         * m4/selinux-selinux-h.m4: Likewise.
22190         * m4/setenv.m4: Likewise.
22191         * m4/settime.m4: Likewise.
22192         * m4/sig2str.m4: Likewise.
22193         * m4/sig_atomic_t.m4: Likewise.
22194         * m4/signalblocking.m4: Likewise.
22195         * m4/signbit.m4: Likewise.
22196         * m4/sigpipe.m4: Likewise.
22197         * m4/sockets.m4: Likewise.
22198         * m4/sockpfaf.m4: Likewise.
22199         * m4/st_dm_mode.m4: Likewise.
22200         * m4/stat-time.m4: Likewise.
22201         * m4/stdbool.m4: Likewise.
22202         * m4/stdint.m4: Likewise.
22203         * m4/stdint_h.m4: Likewise.
22204         * m4/stpcpy.m4: Likewise.
22205         * m4/stpncpy.m4: Likewise.
22206         * m4/strcase.m4: Likewise.
22207         * m4/strchrnul.m4: Likewise.
22208         * m4/strcspn.m4: Likewise.
22209         * m4/strdup.m4: Likewise.
22210         * m4/strftime.m4: Likewise.
22211         * m4/strndup.m4: Likewise.
22212         * m4/strnlen.m4: Likewise.
22213         * m4/strpbrk.m4: Likewise.
22214         * m4/strptime.m4: Likewise.
22215         * m4/strsep.m4: Likewise.
22216         * m4/strtod.m4: Likewise.
22217         * m4/strtoimax.m4: Likewise.
22218         * m4/strtok_r.m4: Likewise.
22219         * m4/strtol.m4: Likewise.
22220         * m4/strtoll.m4: Likewise.
22221         * m4/strtoul.m4: Likewise.
22222         * m4/strtoull.m4: Likewise.
22223         * m4/strtoumax.m4: Likewise.
22224         * m4/strverscmp.m4: Likewise.
22225         * m4/threadlib.m4: Likewise.
22226         * m4/timegm.m4: Likewise.
22227         * m4/tm_gmtoff.m4: Likewise.
22228         * m4/tmpdir.m4: Likewise.
22229         * m4/tmpfile.m4: Likewise.
22230         * m4/tzset.m4: Likewise.
22231         * m4/uintmax_t.m4: Likewise.
22232         * m4/unlinkdir.m4: Likewise.
22233         * m4/unlocked-io.m4: Likewise.
22234         * m4/uptime.m4: Likewise.
22235         * m4/userspec.m4: Likewise.
22236         * m4/utimbuf.m4: Likewise.
22237         * m4/utime.m4: Likewise.
22238         * m4/utimes-null.m4: Likewise.
22239         * m4/utimes.m4: Likewise.
22240         * m4/vararrays.m4: Likewise.
22241         * m4/vasnprintf.m4: Likewise.
22242         * m4/vfprintf-posix.m4: Likewise.
22243         * m4/vprintf-posix.m4: Likewise.
22244         * m4/wait-process.m4: Likewise.
22245         * m4/wchar_t.m4: Likewise.
22246         * m4/wint_t.m4: Likewise.
22247         * m4/write-any-file.m4: Likewise.
22248         * m4/yield.m4: Likewise.
22249
22250 2009-01-13  Bruno Haible  <bruno@clisp.org>
22251
22252         Avoid test-copy-file.sh failures when ACL support insufficient.
22253         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22254         TESTS_ENVIRONMENT.
22255         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22256         Reported by Jim Meyering.
22257
22258 2009-01-13  Bruno Haible  <bruno@clisp.org>
22259
22260         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22261         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22262         * modules/unistdio/u8-printf-parse (Files): Likewise.
22263         * modules/unistdio/u32-printf-parse (Files): Likewise.
22264         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22265
22266 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22267
22268         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22269         and m4/inttypes_h.m4 too.
22270
22271 2009-01-12  Eric Blake  <ebb9@byu.net>
22272
22273         tests: IRIX 6.2 cc can't compile -0.0 into .data
22274         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22275         rather than at compile-time.
22276         * tests/test-floorl.c (minus_zero): Likewise.
22277         * tests/test-frexpl.c (minus_zero): Likewise.
22278         * tests/test-isnan.c (minus_zerol): Likewise.
22279         * tests/test-isnanl.h (minus_zero): Likewise.
22280         * tests/test-ldexpl.c (minus_zero): Likewise.
22281         * tests/test-roundl.c (minus_zero): Likewise.
22282         * tests/test-signbit.c (minus_zerol): Likewise.
22283         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22284         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22285         * tests/test-truncl.c (minus_zero): Likewise.
22286         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22287         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22288         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22289
22290 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22291
22292         regex: fix glibc bug 9697
22293         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22294         handling.
22295
22296 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22297
22298         regex: fix glibc bug 697
22299         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22300         being NULL also if there are no backreferences.
22301
22302 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22303
22304         regex: merge glibc changes
22305         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22306         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22307         re_string_skip_chars, re_string_reconstruct): Likewise.
22308         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22309
22310 2009-01-07  Jim Meyering  <meyering@redhat.com>
22311
22312         poll: filter through cppi
22313         * lib/poll.c: Indent cpp directives to reflect nesting.
22314
22315 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22316
22317         poll: don't return uninitialized
22318         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22319
22320 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22321
22322         avoid compile failure on AIX 6.1
22323         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22324         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22325
22326 2009-01-04  Jim Meyering  <meyering@redhat.com>
22327
22328         remove duplicate inclusion of <stdio.h>
22329         * tests/test-fprintf-posix.c: Likewise.
22330         * tests/test-printf-posix.c: Likewise.
22331         * tests/test-snprintf-posix.c: Likewise.
22332         * tests/test-sprintf-posix.c: Likewise.
22333         * tests/test-vasprintf-posix.c: Likewise.
22334         * tests/test-vfprintf-posix.c: Likewise.
22335         * tests/test-vprintf-posix.c: Likewise.
22336         * tests/test-vsnprintf-posix.c: Likewise.
22337         * tests/test-vsprintf-posix.c: Likewise.
22338
22339 2009-01-03  Jim Meyering  <meyering@redhat.com>
22340
22341         gnulib-tool: fix sed-based filtering
22342         * gnulib-tool (func_filter_filelist): Remove extra backslash
22343         in sed_fff_filter definition.
22344
22345 2009-01-02  Jim Meyering  <meyering@redhat.com>
22346
22347         strftime: avoid compilation failure on Solaris 2.6
22348         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22349         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22350         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22351         be available.  Reported by Tom G. Christensen.  Details in
22352         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22353
22354 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22355             Bruno Haible  <bruno@clisp.org>
22356
22357         Speed up gnulib-tool by doing more string processing through shell
22358         built-ins.
22359         * gnulib-tool (fast_func_append): New variable.
22360         (func_remove_prefix, func_remove_suffix): New functions.
22361         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22362         (func_filter_filelist): New function.
22363         (func_get_dependencies): Use func_remove_suffix instead of sed.
22364         (func_get_automake_snippet): Use func_filter_filelist instead of a
22365         subshell and sed invocation.
22366
22367 2009-01-01  Bruno Haible  <bruno@clisp.org>
22368
22369         Fix a security bug.
22370         * gnulib-tool (func_import, import, update): Don't allow the characters
22371         '"', '$', '`', '\' in macro arguments that become part of commands that
22372         are evaluated.
22373
22374 2009-01-01  Bruno Haible  <bruno@clisp.org>
22375
22376         * gnulib-tool (func_reset_sigpipe): Add more comments.
22377
22378 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22379
22380         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22381         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22382         already know the answer.
22383
22384 2009-01-01  Jim Meyering  <meyering@redhat.com>
22385
22386         * lib/version-etc.c (version_etc_va): Update copyright year.
22387
22388 2008-12-30  Bruno Haible  <bruno@clisp.org>
22389
22390         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22391         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22392         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22393
22394 2008-12-29  Eric Blake  <ebb9@byu.net>
22395
22396         multiarch: avoid autoconf AC_REQUIRE bug
22397         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22398         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22399         2.63 and older.
22400         Reported by Bruno Haible, and analyzed in
22401         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22402
22403 2008-12-29  Bruno Haible  <bruno@clisp.org>
22404
22405         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22406         files in subdirectories correctly.
22407         Reported by Ralf Wildenhues.
22408
22409 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22410
22411         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22412         rather than 'join FILE -', for Solaris join.
22413
22414 2008-12-29  Bruno Haible  <bruno@clisp.org>
22415
22416         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22417         quoting.
22418         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22419         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22420         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22421         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22422         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22423         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22424         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22425         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22426         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22427         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22428         * m4/nls.m4 (AM_NLS): Likewise.
22429         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22430         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22431         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22432         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22433         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22434         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22435         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22436         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22437         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22438         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22439         * m4/xsize.m4 (gl_XSIZE): Likewise.
22440         Suggested by Jim Meyering.
22441
22442 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22443
22444         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22445         * lib/parse-duration.c: use a switch instead of cascading if's.
22446
22447 2008-12-29  Eric Blake  <ebb9@byu.net>
22448
22449         wchar.h: supply WEOF on Irix 5.3
22450         * lib/wchar.in.h (wint_t): Also supply WEOF.
22451         * lib/wctype.in.h (wint_t): Likewise.
22452         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22453         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22454         Reported by Tom G. Christensen.
22455
22456 2008-12-26  Bruno Haible  <bruno@clisp.org>
22457
22458         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22459         i486, i586, i686.
22460
22461 2008-12-26  Bruno Haible  <bruno@clisp.org>
22462
22463         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22464
22465 2008-12-26  Bruno Haible  <bruno@clisp.org>
22466
22467         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22468         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22469         not __STDC_CONSTANT_MACROS.
22470         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22471
22472 2008-12-25  Bruno Haible  <bruno@clisp.org>
22473
22474         Add support for universal builds to vasnprintf.
22475         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22476         universal builds, guess no.
22477         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22478         * modules/vasprintf-posix (Depends-on): Likewise.
22479         * modules/fprintf-posix (Depends-on): Likewise.
22480         * modules/vfprintf-posix (Depends-on): Likewise.
22481         * modules/snprintf-posix (Depends-on): Likewise.
22482         * modules/vsnprintf-posix (Depends-on): Likewise.
22483         * modules/sprintf-posix (Depends-on): Likewise.
22484         * modules/vsprintf-posix (Depends-on): Likewise.
22485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22487         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22489         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22492
22493         Add support for universal builds to <inttypes.h>.
22494         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22495         _SCNu64_PREFIX): In Apple
22496         universal builds, define directly, using _LP64.
22497         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22498         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22499         * modules/inttypes (Depends-on): Add multiarch.
22500         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22501
22502         Add support for universal builds to <stdint.h>.
22503         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22504         universal builds, define directly, using _LP64.
22505         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22506         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22507         and size_t.
22508         * modules/stdint (Depends-on): Add multiarch.
22509         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22510
22511         New module 'multiarch'.
22512         * modules/multiarch: New file.
22513         * m4/multiarch.m4: New file.
22514
22515 2008-12-25  Bruno Haible  <bruno@clisp.org>
22516
22517         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22518
22519 2008-12-25  Bruno Haible  <bruno@clisp.org>
22520
22521         * modules/btowc (License): Relicense under LGPLv2+.
22522         * modules/mbsinit (License): Likewise.
22523         * modules/mbrtowc (License): Likewise.
22524         * modules/wcrtomb (License): Likewise.
22525         * modules/streq (License): Likewise.
22526         Reported by David Lutterkort <lutter@redhat.com>.
22527
22528 2008-12-23  Bruno Haible  <bruno@clisp.org>
22529
22530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22531
22532 2008-12-23  Bruno Haible  <bruno@clisp.org>
22533
22534         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22535         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22536         GETADDRINFO_LIB, not in LIBS.
22537         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22538         * modules/canon-host (Link): Likewise.
22539         * NEWS: Mention the change.
22540         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22541         GETADDRINFO_LIB.
22542
22543 2008-12-22  Bruno Haible  <bruno@clisp.org>
22544
22545         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22546         * doc/posix-functions/iswalpha_l.texi: Likewise.
22547         * doc/posix-functions/iswblank_l.texi: Likewise.
22548         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22549         * doc/posix-functions/iswctype_l.texi: Likewise.
22550         * doc/posix-functions/iswdigit_l.texi: Likewise.
22551         * doc/posix-functions/iswgraph_l.texi: Likewise.
22552         * doc/posix-functions/iswlower_l.texi: Likewise.
22553         * doc/posix-functions/iswprint_l.texi: Likewise.
22554         * doc/posix-functions/iswpunct_l.texi: Likewise.
22555         * doc/posix-functions/iswspace_l.texi: Likewise.
22556         * doc/posix-functions/iswupper_l.texi: Likewise.
22557         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22558         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
22559         * doc/posix-functions/open_wmemstream.texi: Likewise.
22560         * doc/posix-functions/swscanf.texi: Likewise.
22561         * doc/posix-functions/towctrans_l.texi: Likewise.
22562         * doc/posix-functions/towlower.texi: Likewise.
22563         * doc/posix-functions/towlower_l.texi: Likewise.
22564         * doc/posix-functions/towupper.texi: Likewise.
22565         * doc/posix-functions/towupper_l.texi: Likewise.
22566         * doc/posix-functions/vfwprintf.texi: Likewise.
22567         * doc/posix-functions/vfwscanf.texi: Likewise.
22568         * doc/posix-functions/vswscanf.texi: Likewise.
22569         * doc/posix-functions/vwprintf.texi: Likewise.
22570         * doc/posix-functions/vwscanf.texi: Likewise.
22571         * doc/posix-functions/wcpcpy.texi: Likewise.
22572         * doc/posix-functions/wcpncpy.texi: Likewise.
22573         * doc/posix-functions/wcscasecmp.texi: Likewise.
22574         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
22575         * doc/posix-functions/wcscoll_l.texi: Likewise.
22576         * doc/posix-functions/wcsdup.texi: Likewise.
22577         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22578         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
22579         * doc/posix-functions/wcsnlen.texi: Likewise.
22580         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22581         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22582         * doc/posix-functions/wctrans_l.texi: Likewise.
22583         * doc/posix-functions/wctype_l.texi: Likewise.
22584         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
22585         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
22586         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
22587         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
22588         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
22589         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
22590         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
22591         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
22592         * doc/glibc-functions/wcschrnul.texi: Likewise.
22593         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22594         * doc/glibc-functions/wcstod_l.texi: Likewise.
22595         * doc/glibc-functions/wcstof_l.texi: Likewise.
22596         * doc/glibc-functions/wcstol_l.texi: Likewise.
22597         * doc/glibc-functions/wcstold_l.texi: Likewise.
22598         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22599         * doc/glibc-functions/wcstoq.texi: Likewise.
22600         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22601         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22602         * doc/glibc-functions/wcstouq.texi: Likewise.
22603         * doc/glibc-functions/wmempcpy.texi: Likewise.
22604
22605 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
22606             Eric Blake  <ebb9@byu.net>
22607             Paolo Bonzini  <bonzini@gnu.org>
22608             Bruno Haible  <bruno@clisp.org>
22609
22610         Make c-stack work on Haiku.
22611         * lib/c-stack.c (SA_ONSTACK): Define fallback.
22612         (c_stack_action): Use SA_ONSTACK flag.
22613
22614 2008-12-22  Bruno Haible  <bruno@clisp.org>
22615
22616         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
22617
22618 2008-12-22  Bruno Haible  <bruno@clisp.org>
22619
22620         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
22621         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
22622         being overridden.
22623         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
22624         New macros.
22625         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
22626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
22627         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
22628         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
22629
22630 2008-12-22  Bruno Haible  <bruno@clisp.org>
22631
22632         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
22633         from test code.
22634
22635 2008-12-22  Eric Blake  <ebb9@byu.net>
22636
22637         Avoid gcc warnings on cygwin.
22638         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
22639         Avoid unused variable.
22640         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
22641         Likewise.
22642
22643 2008-12-22  Bruno Haible  <bruno@clisp.org>
22644
22645         Remove HAVE_MBRTOWC conditionals.
22646         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
22647         (mbscasecmp): Assume mbrtowc function.
22648         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
22649         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
22650         * lib/mbschr.c: Include mbuiter.h unconditionally.
22651         (mbschr): Assume mbrtowc function.
22652         * lib/mbscspn.c: Include mbuiter.h unconditionally.
22653         (mbscspn): Assume mbrtowc function.
22654         * lib/mbslen.c: Include mbuiter.h unconditionally.
22655         (mbslen): Assume mbrtowc function.
22656         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
22657         (mbsncasecmp): Assume mbrtowc function.
22658         * lib/mbsnlen.c: Include mbiter.h unconditionally.
22659         (mbsnlen): Assume mbrtowc function.
22660         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
22661         (mbspbrk): Assume mbrtowc function.
22662         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
22663         (mbspcasecmp): Assume mbrtowc function.
22664         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
22665         (mbsrchr): Assume mbrtowc function.
22666         * lib/mbssep.c: Include mbuiter.h unconditionally.
22667         (mbssep): Assume mbrtowc function.
22668         * lib/mbsspn.c: Include mbuiter.h unconditionally.
22669         (mbsspn): Assume mbrtowc function.
22670         * lib/mbsstr.c: Include mbuiter.h unconditionally.
22671         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
22672         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
22673         (mbstok_r): Assume mbrtowc function.
22674         * lib/propername.c: Include mbuiter.h unconditionally.
22675         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
22676         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
22677         (trim2): Assume mbrtowc function.
22678         * lib/mbswidth.c (mbsinit): Remove fallback definition.
22679         (mbsnwidth): Assume mbrtowc function.
22680         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
22681         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
22682         fallback definitions.
22683         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
22684
22685 2008-12-22  Bruno Haible  <bruno@clisp.org>
22686
22687         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
22688
22689 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
22690
22691         * modules/regex: Request emulations for the mb*/wc* functions we need.
22692         * m4/regex.m4: Don't look for those functions here.
22693         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
22694
22695 2008-12-22  Bruno Haible  <bruno@clisp.org>
22696
22697         * modules/fnmatch (Depends-on): Remove duplicated dependency.
22698
22699 2008-12-21  Bruno Haible  <bruno@clisp.org>
22700
22701         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
22702         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
22703         (Include): Remove conditionalization.
22704         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
22705         (Include): Remove conditionalization.
22706         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
22707         (Include): Remove conditionalization.
22708         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
22709         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22710         * NEWS: Mention the change.
22711         Reported by Alan Hourihane <alanh@fairlite.co.uk>
22712         via Sergey Poznyakoff <gray@gnu.org.ua>.
22713
22714 2008-12-21  Bruno Haible  <bruno@clisp.org>
22715
22716         * MODULES.html.sh (Extended multibyte and wide character utilities
22717         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
22718         wcrtomb, wcsrtombs.
22719         (Support for systems lacking POSIX:2008): Add accept, bind, close,
22720         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
22721         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
22722         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
22723
22724 2008-12-21  Bruno Haible  <bruno@clisp.org>
22725
22726         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
22727
22728 2008-12-21  Bruno Haible  <bruno@clisp.org>
22729
22730         * modules/wcsnrtombs-tests: New file.
22731         * tests/test-wcsnrtombs1.sh: New file.
22732         * tests/test-wcsnrtombs2.sh: New file.
22733         * tests/test-wcsnrtombs3.sh: New file.
22734         * tests/test-wcsnrtombs4.sh: New file.
22735         * tests/test-wcsnrtombs.c: New file.
22736
22737         New module 'wcsnrtombs'.
22738         * lib/wchar.in.h (wcsnrtombs): New declaration.
22739         * lib/wcsnrtombs.c: New file.
22740         * lib/wcsrtombs-state.c: New file.
22741         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
22742         (internal_state): Remove variable.
22743         * m4/wcsnrtombs.m4: New file.
22744         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
22745         compilation units.
22746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
22747         HAVE_WCSNRTOMBS.
22748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
22749         HAVE_WCSNRTOMBS.
22750         * modules/wcsnrtombs: New file.
22751         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
22752         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
22753
22754 2008-12-21  Bruno Haible  <bruno@clisp.org>
22755
22756         * modules/wcsrtombs-tests: New file.
22757         * tests/test-wcsrtombs1.sh: New file.
22758         * tests/test-wcsrtombs2.sh: New file.
22759         * tests/test-wcsrtombs3.sh: New file.
22760         * tests/test-wcsrtombs4.sh: New file.
22761         * tests/test-wcsrtombs.c: New file.
22762
22763         New module 'wcsrtombs'.
22764         * lib/wchar.in.h (wcsrtombs): New declaration.
22765         * lib/wcsrtombs.c: New file.
22766         * m4/wcsrtombs.m4: New file.
22767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
22768         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
22769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
22770         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
22771         * modules/wcsrtombs: New file.
22772         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
22773         bugs.
22774
22775 2008-12-21  Bruno Haible  <bruno@clisp.org>
22776
22777         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
22778         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
22779         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
22780         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
22781         if not correct.
22782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
22783         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
22784         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22785         m4/locale-zh.m4, m4/codeset.m4.
22786         * doc/posix-functions/wcrtomb.texi: Document the bug.
22787
22788 2008-12-21  Bruno Haible  <bruno@clisp.org>
22789
22790         Work around a btowc() bug on IRIX 6.5.
22791         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
22792         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
22793         REPLACE_WTOBC if not.
22794         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
22795         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
22796         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
22797
22798 2008-12-21  Bruno Haible  <bruno@clisp.org>
22799
22800         * modules/wcrtomb-tests: New file.
22801         * tests/test-wcrtomb.sh: New file.
22802         * tests/test-wcrtomb.c: New file.
22803
22804         New module 'wcrtomb'.
22805         * lib/wchar.in.h (wcrtomb): New declaration.
22806         * lib/wcrtomb.c: New file.
22807         * m4/wcrtomb.m4: New file.
22808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
22809         HAVE_WCRTOMB.
22810         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
22811         HAVE_WCRTOMB.
22812         * modules/wcrtomb: New file.
22813         * doc/posix-functions/wcrtomb.texi: Mention the new module.
22814
22815 2008-12-21  Bruno Haible  <bruno@clisp.org>
22816
22817         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
22818         * modules/mbsrtowcs (Files): Likewise.
22819         * modules/wctob (Files): Likewise.
22820         * modules/c-strcase-tests (Files): Likewise.
22821         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22822         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22823         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22824         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22825         * modules/vasnprintf-posix-tests (Files): Likewise.
22826
22827 2008-12-21  William Pursell  <bill.pursell@gmail.com>
22828
22829         gitlog-to-changelog: pass all command-line arguments to git-log
22830         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
22831         it is sometimes convenient to filter the commits in various ways.
22832         gitlog-to-changelog only allows --since to specify a start date,
22833         but git-log itself supports many other filtering mechanisms.
22834         At the moment, I want to filter by branch name.  Rather than
22835         adding a --branch option to gitlog-to-changelog, it seems more
22836         flexible to simply pass all options directly to git-log and let
22837         git do the work.  Notice that this effectively makes --since a
22838         redundant option for gitlog-to-changelog, but removing it would
22839         require current usage to change since calls would then require
22840         an additional '--'.
22841
22842 2008-12-21  Bruno Haible  <bruno@clisp.org>
22843
22844         * modules/mbsnrtowcs-tests: New file.
22845         * tests/test-mbsnrtowcs1.sh: New file.
22846         * tests/test-mbsnrtowcs2.sh: New file.
22847         * tests/test-mbsnrtowcs3.sh: New file.
22848         * tests/test-mbsnrtowcs4.sh: New file.
22849         * tests/test-mbsnrtowcs.c: New file.
22850
22851         New module 'mbsnrtowcs'.
22852         * lib/wchar.in.h (mbsnrtowcs): New declaration.
22853         * lib/mbsnrtowcs.c: New file.
22854         * lib/mbsrtowcs-state.c: New file.
22855         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
22856         (internal_state): Remove variable.
22857         * m4/mbsnrtowcs.m4: New file.
22858         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
22859         compilation units.
22860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
22861         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22862         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
22863         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22864         * modules/mbsnrtowcs: New file.
22865         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
22866         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
22867         portability problem.
22868
22869 2008-12-21  Bruno Haible  <bruno@clisp.org>
22870
22871         Work around mbsrtowcs bug.
22872         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
22873         (gl_FUNC_MBSRTOWCS): Invoke it.
22874         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22875         m4/locale-zh.m4.
22876         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
22877
22878 2008-12-21  Bruno Haible  <bruno@clisp.org>
22879
22880         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
22881
22882 2008-12-21  Bruno Haible  <bruno@clisp.org>
22883
22884         Update doc for AIX.
22885         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
22886         16-bit wchar_t type.
22887         * doc/posix-functions/btowc.texi: Likewise.
22888         * doc/posix-functions/fgetwc.texi: Likewise.
22889         * doc/posix-functions/fgetws.texi: Likewise.
22890         * doc/posix-functions/fputwc.texi: Likewise.
22891         * doc/posix-functions/fputws.texi: Likewise.
22892         * doc/posix-functions/fwide.texi: Likewise.
22893         * doc/posix-functions/fwprintf.texi: Likewise.
22894         * doc/posix-functions/fwscanf.texi: Likewise.
22895         * doc/posix-functions/getwchar.texi: Likewise.
22896         * doc/posix-functions/getwc.texi: Likewise.
22897         * doc/posix-functions/iswalnum.texi: Likewise.
22898         * doc/posix-functions/iswalpha.texi: Likewise.
22899         * doc/posix-functions/iswblank.texi: Likewise.
22900         * doc/posix-functions/iswcntrl.texi: Likewise.
22901         * doc/posix-functions/iswctype.texi: Likewise.
22902         * doc/posix-functions/iswdigit.texi: Likewise.
22903         * doc/posix-functions/iswgraph.texi: Likewise.
22904         * doc/posix-functions/iswlower.texi: Likewise.
22905         * doc/posix-functions/iswprint.texi: Likewise.
22906         * doc/posix-functions/iswpunct.texi: Likewise.
22907         * doc/posix-functions/iswspace.texi: Likewise.
22908         * doc/posix-functions/iswupper.texi: Likewise.
22909         * doc/posix-functions/iswxdigit.texi: Likewise.
22910         * doc/posix-functions/mbrtowc.texi: Likewise.
22911         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22912         * doc/posix-functions/mbstowcs.texi: Likewise.
22913         * doc/posix-functions/mbtowc.texi: Likewise.
22914         * doc/posix-functions/putwchar.texi: Likewise.
22915         * doc/posix-functions/putwc.texi: Likewise.
22916         * doc/posix-functions/swprintf.texi: Likewise.
22917         * doc/posix-functions/tolower.texi: Likewise.
22918         * doc/posix-functions/toupper.texi: Likewise.
22919         * doc/posix-functions/towctrans.texi: Likewise.
22920         * doc/posix-functions/ungetwc.texi: Likewise.
22921         * doc/posix-functions/vswprintf.texi: Likewise.
22922         * doc/posix-functions/wcrtomb.texi: Likewise.
22923         * doc/posix-functions/wcscat.texi: Likewise.
22924         * doc/posix-functions/wcschr.texi: Likewise.
22925         * doc/posix-functions/wcscmp.texi: Likewise.
22926         * doc/posix-functions/wcscoll.texi: Likewise.
22927         * doc/posix-functions/wcscpy.texi: Likewise.
22928         * doc/posix-functions/wcscspn.texi: Likewise.
22929         * doc/posix-functions/wcsftime.texi: Likewise.
22930         * doc/posix-functions/wcslen.texi: Likewise.
22931         * doc/posix-functions/wcsncat.texi: Likewise.
22932         * doc/posix-functions/wcsncmp.texi: Likewise.
22933         * doc/posix-functions/wcsncpy.texi: Likewise.
22934         * doc/posix-functions/wcspbrk.texi: Likewise.
22935         * doc/posix-functions/wcsrchr.texi: Likewise.
22936         * doc/posix-functions/wcsrtombs.texi: Likewise.
22937         * doc/posix-functions/wcsspn.texi: Likewise.
22938         * doc/posix-functions/wcsstr.texi: Likewise.
22939         * doc/posix-functions/wcstod.texi: Likewise.
22940         * doc/posix-functions/wcstof.texi: Likewise.
22941         * doc/posix-functions/wcstoimax.texi: Likewise.
22942         * doc/posix-functions/wcstok.texi: Likewise.
22943         * doc/posix-functions/wcstold.texi: Likewise.
22944         * doc/posix-functions/wcstoll.texi: Likewise.
22945         * doc/posix-functions/wcstol.texi: Likewise.
22946         * doc/posix-functions/wcstombs.texi: Likewise.
22947         * doc/posix-functions/wcstoull.texi: Likewise.
22948         * doc/posix-functions/wcstoul.texi: Likewise.
22949         * doc/posix-functions/wcstoumax.texi: Likewise.
22950         * doc/posix-functions/wcswidth.texi: Likewise.
22951         * doc/posix-functions/wcsxfrm.texi: Likewise.
22952         * doc/posix-functions/wctob.texi: Likewise.
22953         * doc/posix-functions/wctomb.texi: Likewise.
22954         * doc/posix-functions/wctrans.texi: Likewise.
22955         * doc/posix-functions/wctype.texi: Likewise.
22956         * doc/posix-functions/wcwidth.texi: Likewise.
22957         * doc/posix-functions/wmemchr.texi: Likewise.
22958         * doc/posix-functions/wmemcmp.texi: Likewise.
22959         * doc/posix-functions/wmemcpy.texi: Likewise.
22960         * doc/posix-functions/wmemmove.texi: Likewise.
22961         * doc/posix-functions/wmemset.texi: Likewise.
22962         * doc/posix-functions/wprintf.texi: Likewise.
22963         * doc/posix-functions/wscanf.texi: Likewise.
22964
22965 2008-12-21  Bruno Haible  <bruno@clisp.org>
22966
22967         Update doc for HP-UX 11.11.
22968         * doc/posix-functions/btowc.texi: Clarify that the function is missing
22969         in HP-UX version 11.00, not in all versions of HP-UX 11.
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/inet_ntop.texi: Likewise.
22974         * doc/posix-functions/inet_pton.texi: Likewise.
22975         * doc/posix-functions/mbrlen.texi: Likewise.
22976         * doc/posix-functions/mbrtowc.texi: Likewise.
22977         * doc/posix-functions/mbsinit.texi: Likewise.
22978         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22979         * doc/posix-functions/swprintf.texi: Likewise.
22980         * doc/posix-functions/swscanf.texi: Likewise.
22981         * doc/posix-functions/towctrans.texi: Likewise.
22982         * doc/posix-functions/vfwprintf.texi: Likewise.
22983         * doc/posix-functions/vswprintf.texi: Likewise.
22984         * doc/posix-functions/vwprintf.texi: Likewise.
22985         * doc/posix-functions/wcrtomb.texi: Likewise.
22986         * doc/posix-functions/wcsrtombs.texi: Likewise.
22987         * doc/posix-functions/wcsstr.texi: Likewise.
22988         * doc/posix-functions/wctob.texi: Likewise.
22989         * doc/posix-functions/wctrans.texi: Likewise.
22990         * doc/posix-functions/wmemchr.texi: Likewise.
22991         * doc/posix-functions/wmemcmp.texi: Likewise.
22992         * doc/posix-functions/wmemcpy.texi: Likewise.
22993         * doc/posix-functions/wmemmove.texi: Likewise.
22994         * doc/posix-functions/wmemset.texi: Likewise.
22995         * doc/posix-functions/wprintf.texi: Likewise.
22996         * doc/posix-functions/wscanf.texi: Likewise.
22997
22998 2008-12-21  Bruno Haible  <bruno@clisp.org>
22999
23000         Work around a portability problem.
23001         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23002         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23003
23004 2008-12-20  Bruno Haible  <bruno@clisp.org>
23005
23006         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23007         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23008         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23010         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23011
23012         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23013         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23014         set.
23015         (GNULIB_defined_mbstate_t): New macro.
23016         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23017         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23018         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23019         reuses the system's mbrtowc function but works around the bugs.
23020         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23021         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23022         macros.
23023         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23024         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23025         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23026         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23027         REPLACE_MBSINIT if mbsinit needs to be overridden.
23028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23029         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23030         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23031         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23032         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23033         m4/locale-zh.m4.
23034         (Depends): Add mbsinit.
23035         * modules/mbsinit (Depends): Add mbrtowc.
23036         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23037
23038 2008-12-20  Bruno Haible  <bruno@clisp.org>
23039
23040         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23041         so that there are no conversion errors on AIX.
23042         * tests/test-mbsrtowcs.c (main): LIkewise.
23043
23044 2008-12-20  Bruno Haible  <bruno@clisp.org>
23045
23046         Work around wctob bug on Solaris <= 9.
23047         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23048         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23050         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23051         * modules/wctob (Files): Add m4/locale-fr.m4.
23052         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23053
23054 2008-12-20  Bruno Haible  <bruno@clisp.org>
23055
23056         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23057         /dev/null.
23058         * tests/test-select-in.sh: Likewise.
23059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23060
23061 2008-12-20  Bruno Haible  <bruno@clisp.org>
23062
23063         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23064         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23065         Cygwin 1.5.x.
23066
23067 2008-12-20  Bruno Haible  <bruno@clisp.org>
23068
23069         Ensure mbstate_t is defined on HP-UX 11.11.
23070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23071         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23072         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23073         AC_USE_SYSTEM_EXTENSIONS.
23074         * modules/fnmatch (Depends-on): Add extensions.
23075         * modules/mbrlen (Depends-on): Likewise.
23076         * modules/mbrtowc (Depends-on): Likewise.
23077         * modules/mbsinit (Depends-on): Likewise.
23078         * modules/mbsrtowcs (Depends-on): Likewise.
23079         * modules/mbswidth (Depends-on): Likewise.
23080         * modules/quotearg (Depends-on): Likewise.
23081         * modules/strftime (Depends-on): Likewise.
23082
23083 2008-12-20  Bruno Haible  <bruno@clisp.org>
23084
23085         Ensure wctob is declared on IRIX 6.5.
23086         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23087         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23088         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23090         of HAVE_WCTOB.
23091         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23092         HAVE_WCTOB.
23093         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23094
23095 2008-12-19  Bruno Haible  <bruno@clisp.org>
23096
23097         * modules/mbsrtowcs-tests: New file.
23098         * tests/test-mbsrtowcs1.sh: New file.
23099         * tests/test-mbsrtowcs2.sh: New file.
23100         * tests/test-mbsrtowcs3.sh: New file.
23101         * tests/test-mbsrtowcs4.sh: New file.
23102         * tests/test-mbsrtowcs.c: New file.
23103
23104         New module 'mbsrtowcs'.
23105         * lib/wchar.in.h (mbsrtowcs): New declaration.
23106         * lib/mbsrtowcs.c: New file.
23107         * m4/mbsrtowcs.m4: New file.
23108         * modules/mbsrtowcs: New file.
23109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23110         HAVE_MBSRTOWCS.
23111         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23112         HAVE_MBSRTOWCS.
23113         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23114
23115 2008-12-19  Bruno Haible  <bruno@clisp.org>
23116
23117         New module 'mbrlen'.
23118         * lib/wchar.in.h (mbrlen): New declaration.
23119         * lib/mbrlen.c: New file.
23120         * m4/mbrlen.m4: New file.
23121         * modules/mbrlen: New file.
23122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23123         HAVE_MBRLEN.
23124         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23125         HAVE_MBRLEN.
23126         * doc/posix-functions/mbrlen.texi: Document the new module.
23127
23128 2008-12-19  Bruno Haible  <bruno@clisp.org>
23129
23130         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23131         * modules/mbrtowc (Depends-on): Add verify.
23132         Suggested by Paul Eggert.
23133
23134 2008-12-18  Bruno Haible  <bruno@clisp.org>
23135
23136         * modules/mbsinit-tests: New file.
23137         * tests/test-mbsinit.sh: New file.
23138         * tests/test-mbsinit.c: New file.
23139
23140 2008-12-18  Bruno Haible  <bruno@clisp.org>
23141
23142         * modules/mbrtowc-tests: New file.
23143         * tests/test-mbrtowc1.sh: New file.
23144         * tests/test-mbrtowc2.sh: New file.
23145         * tests/test-mbrtowc3.sh: New file.
23146         * tests/test-mbrtowc4.sh: New file.
23147         * tests/test-mbrtowc.c: New file.
23148
23149         New module 'mbrtowc'.
23150         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23151         mbsinit and mbrtowc.
23152         (mbrtowc): New declaration.
23153         * lib/mbrtowc.c: New file.
23154         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23155         * modules/mbrtowc: New file.
23156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23157         HAVE_MBRTOWC.
23158         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23159         HAVE_MBRTOWC.
23160         * doc/posix-functions/mbrtowc.texi: Document the new module.
23161
23162 2008-12-18  Bruno Haible  <bruno@clisp.org>
23163
23164         New module 'wctob'.
23165         * lib/wchar.in.h (wctob): New declaration.
23166         * lib/wctob.c: New file.
23167         * m4/wctob.m4: New file.
23168         * modules/wctob: New file.
23169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23170         HAVE_WCTOB.
23171         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23172         * doc/posix-functions/wctob.texi: Document the new module.
23173
23174 2008-12-18  Bruno Haible  <bruno@clisp.org>
23175
23176         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23177         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23178
23179 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23180
23181         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23182         G. Christensen" <tgc@jupiterrise.com>.
23183
23184         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23185         G. Christensen" <tgc@jupiterrise.com>.
23186
23187         * lib/flock.c: Need to include string.h.  Reported by "Tom
23188         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23189         <ebb9@byu.net>.
23190
23191 2008-12-18  Bruno Haible  <bruno@clisp.org>
23192
23193         * m4/locale-ja.m4: New file, from GNU gettext.
23194
23195 2008-12-17  Bruno Haible  <bruno@clisp.org>
23196
23197         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23198         Suggested by Eric Blake.
23199
23200 2008-12-17  Bruno Haible  <bruno@clisp.org>
23201
23202         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23203
23204 2008-12-17  Bruno Haible  <bruno@clisp.org>
23205
23206         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23207         * modules/mbsinit (Depends-on): Add verify.
23208         Suggested by Paul Eggert.
23209
23210 2008-12-17  Bruno Haible  <bruno@clisp.org>
23211
23212         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23213         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23214         gl_FUNC_MBRTOWC.
23215         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23216         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23217         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23218         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23219         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23220         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23221         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23222         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23223         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23224         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23225         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23226         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23227         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23228         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23229         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23230         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23231         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23232         * modules/trim (configure.ac): Likewise.
23233
23234 2008-12-17  Bruno Haible  <bruno@clisp.org>
23235
23236         * modules/btowc-tests: New file.
23237         * tests/test-btowc1.sh: New file.
23238         * tests/test-btowc2.sh: New file.
23239         * tests/test-btowc.c: New file.
23240
23241         New module 'btowc'.
23242         * lib/wchar.in.h (btowc): New declaration.
23243         * lib/btowc.c: New file.
23244         * m4/btowc.m4: New file.
23245         * modules/btowc: New file.
23246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23247         HAVE_BTOWC.
23248         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23249         * doc/posix-functions/btowc.texi: Document the new module.
23250
23251 2008-12-17  Bruno Haible  <bruno@clisp.org>
23252
23253         New module 'mbsinit'.
23254         * lib/wchar.in.h (mbsinit): New declaration.
23255         * lib/mbsinit.c: New file.
23256         * m4/mbsinit.m4: New file.
23257         * modules/mbsinit: New file.
23258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23259         HAVE_MBSINIT.
23260         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23261         HAVE_MBSINIT.
23262         * doc/posix-functions/mbsinit.texi: Document the new module.
23263
23264 2008-12-16  Bruno Haible  <bruno@clisp.org>
23265
23266         * lib/unistd.in.h: Add comment.
23267         * tests/test-environ.c: Don't include <stdlib.h>.
23268
23269 2008-12-16  Bruno Haible  <bruno@clisp.org>
23270
23271         * lib/parse-duration.h (parse_duration): Document return value
23272         convention.
23273         * lib/parse-duration.c: Include specification header first. Add
23274         comments.
23275         (_): Remove macro.
23276         (parse_year_month_day, parse_hour_minute_second): Move side effects
23277         outside of strchr call.
23278         (parse_non_iso8601): Move side effects outside of isspace call.
23279         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23280         call.
23281
23282 2008-12-16  Bruno Haible  <bruno@clisp.org>
23283
23284         * tests/test-parse-duration.sh: Produce no output when the test
23285         succeeds.
23286
23287 2008-12-16  Bruno Haible  <bruno@clisp.org>
23288
23289         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23290         expressions.
23291
23292 2008-12-15  Bruno Haible  <bruno@clisp.org>
23293
23294         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23295         * doc/glibc-functions/flistxattr.texi: Likewise.
23296         * doc/glibc-functions/fopencookie.texi: Likewise.
23297         * doc/glibc-functions/fremovexattr.texi: Likewise.
23298         * doc/glibc-functions/fsetxattr.texi: Likewise.
23299         * doc/glibc-functions/getxattr.texi: Likewise.
23300         * doc/glibc-functions/lgetxattr.texi: Likewise.
23301         * doc/glibc-functions/listxattr.texi: Likewise.
23302         * doc/glibc-functions/llistxattr.texi: Likewise.
23303         * doc/glibc-functions/lremovexattr.texi: Likewise.
23304         * doc/glibc-functions/lsetxattr.texi: Likewise.
23305         * doc/glibc-functions/removexattr.texi: Likewise.
23306         * doc/glibc-functions/setxattr.texi: Likewise.
23307         * doc/posix-functions/open_memstream.texi: Likewise.
23308
23309 2008-12-15  Eric Blake  <ebb9@byu.net>
23310
23311         Update doc for cygwin 1.7.
23312         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23313         functions.
23314         * doc/posix-functions/fchmodat.texi: Likewise.
23315         * doc/posix-functions/fchownat.texi: Likewise.
23316         * doc/posix-functions/fdopendir.texi: Likewise.
23317         * doc/posix-functions/fmemopen.texi: Likewise.
23318         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23319         * doc/posix-functions/fstatat.texi: Likewise.
23320         * doc/posix-functions/futimens.texi: Likewise.
23321         * doc/posix-functions/gai_strerror.texi: Likewise.
23322         * doc/posix-functions/getaddrinfo.texi: Likewise.
23323         * doc/posix-functions/getnameinfo.texi: Likewise.
23324         * doc/posix-functions/if_freenameindex.texi: Likewise.
23325         * doc/posix-functions/if_indextoname.texi: Likewise.
23326         * doc/posix-functions/if_nameindex.texi: Likewise.
23327         * doc/posix-functions/if_nametoindex.texi: Likewise.
23328         * doc/posix-functions/insque.texi: Likewise.
23329         * doc/posix-functions/linkat.texi: Likewise.
23330         * doc/posix-functions/llrint.texi: Likewise.
23331         * doc/posix-functions/llrintf.texi: Likewise.
23332         * doc/posix-functions/llrintl.texi: Likewise.
23333         * doc/posix-functions/lockf.texi: Likewise.
23334         * doc/posix-functions/lrintl.texi: Likewise.
23335         * doc/posix-functions/mkdirat.texi: Likewise.
23336         * doc/posix-functions/mkfifoat.texi: Likewise.
23337         * doc/posix-functions/mknodat.texi: Likewise.
23338         * doc/posix-functions/mq_close.texi: Likewise.
23339         * doc/posix-functions/mq_getattr.texi: Likewise.
23340         * doc/posix-functions/mq_notify.texi: Likewise.
23341         * doc/posix-functions/mq_open.texi: Likewise.
23342         * doc/posix-functions/mq_receive.texi: Likewise.
23343         * doc/posix-functions/mq_send.texi: Likewise.
23344         * doc/posix-functions/mq_setattr.texi: Likewise.
23345         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23346         * doc/posix-functions/mq_timedsend.texi: Likewise.
23347         * doc/posix-functions/mq_unlink.texi: Likewise.
23348         * doc/posix-functions/open_memstream.texi: Likewise.
23349         * doc/posix-functions/openat.texi: Likewise.
23350         * doc/posix-functions/posix_fadvise.texi: Likewise.
23351         * doc/posix-functions/posix_fallocate.texi: Likewise.
23352         * doc/posix-functions/posix_madvise.texi: Likewise.
23353         * doc/posix-functions/posix_memalign.texi: Likewise.
23354         * doc/posix-functions/posix_openpt.texi: Likewise.
23355         * doc/posix-functions/readlinkat.texi: Likewise.
23356         * doc/posix-functions/remque.texi: Likewise.
23357         * doc/posix-functions/renameat.texi: Likewise.
23358         * doc/posix-functions/rintl.texi: Likewise.
23359         * doc/posix-functions/sem_unlink.texi: Likewise.
23360         * doc/posix-functions/shm_open.texi: Likewise.
23361         * doc/posix-functions/shm_unlink.texi: Likewise.
23362         * doc/posix-functions/signgam.texi: Likewise.
23363         * doc/posix-functions/sigset.texi: Likewise.
23364         * doc/posix-functions/stpcpy.texi: Likewise.
23365         * doc/posix-functions/stpncpy.texi: Likewise.
23366         * doc/posix-functions/strerror.texi: Likewise.
23367         * doc/posix-functions/strtod.texi: Likewise.
23368         * doc/posix-functions/symlinkat.texi: Likewise.
23369         * doc/posix-functions/unlinkat.texi: Likewise.
23370         * doc/posix-functions/utimensat.texi: Likewise.
23371         * doc/glibc-functions/bindresvport.texi: Likewise.
23372         * doc/glibc-functions/dn_expand.texi: Likewise.
23373         * doc/glibc-functions/exp10.texi: Likewise.
23374         * doc/glibc-functions/exp10f.texi: Likewise.
23375         * doc/glibc-functions/fgetxattr.texi: Likewise.
23376         * doc/glibc-functions/flistxattr.texi: Likewise.
23377         * doc/glibc-functions/fopencookie.texi: Likewise.
23378         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23379         * doc/glibc-functions/fremovexattr.texi: Likewise.
23380         * doc/glibc-functions/fsetxattr.texi: Likewise.
23381         * doc/glibc-functions/getifaddrs.texi: Likewise.
23382         * doc/glibc-functions/getxattr.texi: Likewise.
23383         * doc/glibc-functions/lgetxattr.texi: Likewise.
23384         * doc/glibc-functions/listxattr.texi: Likewise.
23385         * doc/glibc-functions/llistxattr.texi: Likewise.
23386         * doc/glibc-functions/lremovexattr.texi: Likewise.
23387         * doc/glibc-functions/lsetxattr.texi: Likewise.
23388         * doc/glibc-functions/pow10.texi: Likewise.
23389         * doc/glibc-functions/pow10f.texi: Likewise.
23390         * doc/glibc-functions/rcmd_af.texi: Likewise.
23391         * doc/glibc-functions/removexattr.texi: Likewise.
23392         * doc/glibc-functions/res_init.texi: Likewise.
23393         * doc/glibc-functions/res_mkquery.texi: Likewise.
23394         * doc/glibc-functions/res_query.texi: Likewise.
23395         * doc/glibc-functions/res_querydomain.texi: Likewise.
23396         * doc/glibc-functions/res_send.texi: Likewise.
23397         * doc/glibc-functions/rresvport_af.texi: Likewise.
23398         * doc/glibc-functions/setxattr.texi: Likewise.
23399         * doc/glibc-functions/strcasestr.texi: Likewise.
23400
23401 2008-12-15  Bruno Haible  <bruno@clisp.org>
23402
23403         Fix compilation error on OSF/1 4.0.
23404         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23405         <sys/time.h>, simply delegate to the system header.
23406         Reported by Daniel Richard G. <oss@teragram.com>.
23407
23408 2008-12-15  Bruno Haible  <bruno@clisp.org>
23409
23410         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23411         * doc/posix-functions/fchmodat.texi: Likewise.
23412         * doc/posix-functions/fchownat.texi: Likewise.
23413         * doc/posix-functions/fdopendir.texi: Likewise.
23414         * doc/posix-functions/fstatat.texi: Likewise.
23415         * doc/posix-functions/mkdirat.texi: Likewise.
23416         * doc/posix-functions/unlinkat.texi: Likewise.
23417
23418 2008-12-14  Bruno Haible  <bruno@clisp.org>
23419
23420         Update doc for POSIX:2008.
23421         * doc/posix-functions/faccessat.texi: New file.
23422         * doc/posix-functions/fchmodat.texi: New file.
23423         * doc/posix-functions/fchownat.texi: New file.
23424         * doc/posix-functions/fdopendir.texi: New file.
23425         * doc/posix-functions/fstatat.texi: New file.
23426         * doc/posix-functions/futimens.texi: New file.
23427         * doc/posix-functions/linkat.texi: New file.
23428         * doc/posix-functions/mkdirat.texi: New file.
23429         * doc/posix-functions/mkfifoat.texi: New file.
23430         * doc/posix-functions/mknodat.texi: New file.
23431         * doc/posix-functions/open_wmemstream.texi: New file.
23432         * doc/posix-functions/openat.texi: New file.
23433         * doc/posix-functions/psiginfo.texi: New file.
23434         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23435         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23436         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23437         * doc/posix-functions/readlinkat.texi: New file.
23438         * doc/posix-functions/renameat.texi: New file.
23439         * doc/posix-functions/strerror_l.texi: New file.
23440         * doc/posix-functions/symlinkat.texi: New file.
23441         * doc/posix-functions/unlinkat.texi: New file.
23442         * doc/posix-functions/utimensat.texi: New file.
23443         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23444
23445 2008-12-14  Bruno Haible  <bruno@clisp.org>
23446
23447         Update doc for POSIX:2008.
23448         * doc/posix-functions/alphasort.texi: Renamed from
23449         doc/glibc-functions/alphasort.texi.
23450         * doc/posix-functions/dirfd.texi: Renamed from
23451         doc/glibc-functions/dirfd.texi.
23452         * doc/posix-functions/dprintf.texi: Renamed from
23453         doc/glibc-functions/dprintf.texi.
23454         * doc/posix-functions/duplocale.texi: Renamed from
23455         doc/glibc-functions/duplocale.texi.
23456         * doc/posix-functions/fexecve.texi: Renamed from
23457         doc/glibc-functions/fexecve.texi.
23458         * doc/posix-functions/fmemopen.texi: Renamed from
23459         doc/glibc-functions/fmemopen.texi.
23460         * doc/posix-functions/freelocale.texi: Renamed from
23461         doc/glibc-functions/freelocale.texi.
23462         * doc/posix-functions/getdate_err.texi: Renamed from
23463         doc/glibc-functions/getdate_err.texi.
23464         * doc/posix-functions/isalnum_l.texi: Renamed from
23465         doc/glibc-functions/isalnum_l.texi.
23466         * doc/posix-functions/isalpha_l.texi: Renamed from
23467         doc/glibc-functions/isalpha_l.texi.
23468         * doc/posix-functions/isblank_l.texi: Renamed from
23469         doc/glibc-functions/isblank_l.texi.
23470         * doc/posix-functions/iscntrl_l.texi: Renamed from
23471         doc/glibc-functions/iscntrl_l.texi.
23472         * doc/posix-functions/isdigit_l.texi: Renamed from
23473         doc/glibc-functions/isdigit_l.texi.
23474         * doc/posix-functions/isgraph_l.texi: Renamed from
23475         doc/glibc-functions/isgraph_l.texi.
23476         * doc/posix-functions/islower_l.texi: Renamed from
23477         doc/glibc-functions/islower_l.texi.
23478         * doc/posix-functions/isprint_l.texi: Renamed from
23479         doc/glibc-functions/isprint_l.texi.
23480         * doc/posix-functions/ispunct_l.texi: Renamed from
23481         doc/glibc-functions/ispunct_l.texi.
23482         * doc/posix-functions/isspace_l.texi: Renamed from
23483         doc/glibc-functions/isspace_l.texi.
23484         * doc/posix-functions/isupper_l.texi: Renamed from
23485         doc/glibc-functions/isupper_l.texi.
23486         * doc/posix-functions/iswalnum_l.texi: Renamed from
23487         doc/glibc-functions/iswalnum_l.texi.
23488         * doc/posix-functions/iswalpha_l.texi: Renamed from
23489         doc/glibc-functions/iswalpha_l.texi.
23490         * doc/posix-functions/iswblank_l.texi: Renamed from
23491         doc/glibc-functions/iswblank_l.texi.
23492         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23493         doc/glibc-functions/iswcntrl_l.texi.
23494         * doc/posix-functions/iswctype_l.texi: Renamed from
23495         doc/glibc-functions/iswctype_l.texi.
23496         * doc/posix-functions/iswdigit_l.texi: Renamed from
23497         doc/glibc-functions/iswdigit_l.texi.
23498         * doc/posix-functions/iswgraph_l.texi: Renamed from
23499         doc/glibc-functions/iswgraph_l.texi.
23500         * doc/posix-functions/iswlower_l.texi: Renamed from
23501         doc/glibc-functions/iswlower_l.texi.
23502         * doc/posix-functions/iswprint_l.texi: Renamed from
23503         doc/glibc-functions/iswprint_l.texi.
23504         * doc/posix-functions/iswpunct_l.texi: Renamed from
23505         doc/glibc-functions/iswpunct_l.texi.
23506         * doc/posix-functions/iswspace_l.texi: Renamed from
23507         doc/glibc-functions/iswspace_l.texi.
23508         * doc/posix-functions/iswupper_l.texi: Renamed from
23509         doc/glibc-functions/iswupper_l.texi.
23510         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23511         doc/glibc-functions/iswxdigit_l.texi.
23512         * doc/posix-functions/isxdigit_l.texi: Renamed from
23513         doc/glibc-functions/isxdigit_l.texi.
23514         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23515         doc/glibc-functions/mbsnrtowcs.texi.
23516         * doc/posix-functions/mkdtemp.texi: Renamed from
23517         doc/glibc-functions/mkdtemp.texi.
23518         * doc/posix-functions/newlocale.texi: Renamed from
23519         doc/glibc-functions/newlocale.texi.
23520         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23521         doc/glibc-functions/nl_langinfo_l.texi.
23522         * doc/posix-functions/open_memstream.texi: Renamed from
23523         doc/glibc-functions/open_memstream.texi.
23524         * doc/posix-functions/opterr.texi: Renamed from
23525         doc/glibc-functions/opterr.texi.
23526         * doc/posix-functions/optind.texi: Renamed from
23527         doc/glibc-functions/optind.texi.
23528         * doc/posix-functions/optopt.texi: Renamed from
23529         doc/glibc-functions/optopt.texi.
23530         * doc/posix-functions/psignal.texi: Renamed from
23531         doc/glibc-functions/psignal.texi.
23532         * doc/posix-functions/scandir.texi: Renamed from
23533         doc/glibc-functions/scandir.texi.
23534         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23535         doc/glibc-functions/sched_get_priority_min.texi.
23536         * doc/posix-functions/signgam.texi: Renamed from
23537         doc/glibc-functions/signgam.texi.
23538         * doc/posix-functions/stpcpy.texi: Renamed from
23539         doc/glibc-functions/stpcpy.texi.
23540         * doc/posix-functions/stpncpy.texi: Renamed from
23541         doc/glibc-functions/stpncpy.texi.
23542         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23543         doc/glibc-functions/strcasecmp_l.texi.
23544         * doc/posix-functions/strcoll_l.texi: Renamed from
23545         doc/glibc-functions/strcoll_l.texi.
23546         * doc/posix-functions/strfmon_l.texi: Renamed from
23547         doc/glibc-functions/strfmon_l.texi.
23548         * doc/posix-functions/strftime_l.texi: Renamed from
23549         doc/glibc-functions/strftime_l.texi.
23550         * doc/posix-functions/strncasecmp_l.texi: Renamed from
23551         doc/glibc-functions/strncasecmp_l.texi.
23552         * doc/posix-functions/strndup.texi: Renamed from
23553         doc/glibc-functions/strndup.texi.
23554         * doc/posix-functions/strnlen.texi: Renamed from
23555         doc/glibc-functions/strnlen.texi.
23556         * doc/posix-functions/strsignal.texi: Renamed from
23557         doc/glibc-functions/strsignal.texi.
23558         * doc/posix-functions/strxfrm_l.texi: Renamed from
23559         doc/glibc-functions/strxfrm_l.texi.
23560         * doc/posix-functions/timer_gettime.texi: Renamed from
23561         doc/glibc-functions/timer_gettime.texi.
23562         * doc/posix-functions/tolower_l.texi: Renamed from
23563         doc/glibc-functions/tolower_l.texi.
23564         * doc/posix-functions/toupper_l.texi: Renamed from
23565         doc/glibc-functions/toupper_l.texi.
23566         * doc/posix-functions/towctrans_l.texi: Renamed from
23567         doc/glibc-functions/towctrans_l.texi.
23568         * doc/posix-functions/towlower_l.texi: Renamed from
23569         doc/glibc-functions/towlower_l.texi.
23570         * doc/posix-functions/towupper_l.texi: Renamed from
23571         doc/glibc-functions/towupper_l.texi.
23572         * doc/posix-functions/uselocale.texi: Renamed from
23573         doc/glibc-functions/uselocale.texi.
23574         * doc/posix-functions/vdprintf.texi: Renamed from
23575         doc/glibc-functions/vdprintf.texi.
23576         * doc/posix-functions/wcpcpy.texi:
23577         Renamed from doc/glibc-functions/wcpcpy.texi.
23578         * doc/posix-functions/wcpncpy.texi: Renamed from
23579         doc/glibc-functions/wcpncpy.texi.
23580         * doc/posix-functions/wcscasecmp.texi: Renamed from
23581         doc/glibc-functions/wcscasecmp.texi.
23582         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
23583         doc/glibc-functions/wcscasecmp_l.texi.
23584         * doc/posix-functions/wcscoll_l.texi: Renamed from
23585         doc/glibc-functions/wcscoll_l.texi.
23586         * doc/posix-functions/wcsdup.texi: Renamed from
23587         doc/glibc-functions/wcsdup.texi.
23588         * doc/posix-functions/wcsncasecmp.texi: Renamed from
23589         doc/glibc-functions/wcsncasecmp.texi.
23590         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
23591         doc/glibc-functions/wcsncasecmp_l.texi.
23592         * doc/posix-functions/wcsnlen.texi: Renamed from
23593         doc/glibc-functions/wcsnlen.texi.
23594         * doc/posix-functions/wcsnrtombs.texi: Renamed from
23595         doc/glibc-functions/wcsnrtombs.texi.
23596         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
23597         doc/glibc-functions/wcsxfrm_l.texi.
23598         * doc/posix-functions/wctrans_l.texi: Renamed from
23599         doc/glibc-functions/wctrans_l.texi.
23600         * doc/posix-functions/wctype_l.texi: Renamed from
23601         doc/glibc-functions/wctype_l.texi.
23602         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23603         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
23604         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
23605         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
23606         these subsections.
23607         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
23608         Remove sections.
23609
23610 2008-12-14  Bruno Haible  <bruno@clisp.org>
23611
23612         Update doc for POSIX:2008.
23613         * doc/posix-functions/*.texi: Update URL of POSIX specification.
23614
23615 2008-12-14  Bruno Haible  <bruno@clisp.org>
23616
23617         Update doc for POSIX:2008.
23618         * doc/pastposix-functions/bcmp.texi: Renamed from
23619         doc/posix-functions/bcmp.texi.
23620         * doc/pastposix-functions/bcopy.texi: Renamed from
23621         doc/posix-functions/bcopy.texi.
23622         * doc/pastposix-functions/bsd_signal.texi: Renamed from
23623         doc/posix-functions/bsd_signal.texi.
23624         * doc/pastposix-functions/bzero.texi: Renamed from
23625         doc/posix-functions/bzero.texi.
23626         * doc/pastposix-functions/ecvt.texi: Renamed from
23627         doc/posix-functions/ecvt.texi.
23628         * doc/pastposix-functions/fcvt.texi: Renamed from
23629         doc/posix-functions/fcvt.texi.
23630         * doc/pastposix-functions/ftime.texi: Renamed from
23631         doc/posix-functions/ftime.texi.
23632         * doc/pastposix-functions/gcvt.texi: Renamed from
23633         doc/posix-functions/gcvt.texi.
23634         * doc/pastposix-functions/getcontext.texi: Renamed from
23635         doc/posix-functions/getcontext.texi.
23636         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
23637         doc/posix-functions/gethostbyaddr.texi.
23638         * doc/pastposix-functions/gethostbyname.texi: Renamed from
23639         doc/posix-functions/gethostbyname.texi.
23640         * doc/pastposix-functions/getwd.texi: Renamed from
23641         doc/posix-functions/getwd.texi.
23642         * doc/pastposix-functions/h_errno.texi: Renamed from
23643         doc/posix-functions/h_errno.texi.
23644         * doc/pastposix-functions/index.texi: Renamed from
23645         doc/posix-functions/index.texi.
23646         * doc/pastposix-functions/makecontext.texi: Renamed from
23647         doc/posix-functions/makecontext.texi.
23648         * doc/pastposix-functions/mktemp.texi: Renamed from
23649         doc/posix-functions/mktemp.texi.
23650         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
23651         doc/posix-functions/pthread_attr_getstackaddr.texi.
23652         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
23653         doc/posix-functions/pthread_attr_setstackaddr.texi.
23654         * doc/pastposix-functions/rindex.texi: Renamed from
23655         doc/posix-functions/rindex.texi.
23656         * doc/pastposix-functions/scalb.texi: Renamed from
23657         doc/posix-functions/scalb.texi.
23658         * doc/pastposix-functions/setcontext.texi: Renamed from
23659         doc/posix-functions/setcontext.texi.
23660         * doc/pastposix-functions/swapcontext.texi: Renamed from
23661         doc/posix-functions/swapcontext.texi.
23662         * doc/pastposix-functions/ualarm.texi: Renamed from
23663         doc/posix-functions/ualarm.texi.
23664         * doc/pastposix-functions/usleep.texi: Renamed from
23665         doc/posix-functions/usleep.texi.
23666         * doc/pastposix-functions/vfork.texi: Renamed from
23667         doc/posix-functions/vfork.texi.
23668         * doc/pastposix-functions/wcswcs.texi: Renamed from
23669         doc/posix-functions/wcswcs.texi.
23670         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
23671         (Function Substitutes): Update.
23672
23673 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23674
23675         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
23676         m4/strerror.m4.
23677
23678 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23679             Bruno Haible  <bruno@clisp.org>
23680
23681         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
23682
23683 2008-12-13  Bruno Haible  <bruno@clisp.org>
23684
23685         * modules/strtoull (Depends-on): Remove unistd.
23686
23687 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23688
23689         * modules/strtoull (Depends-on): Add stdlib.
23690
23691 2008-12-11  Simon Josefsson  <simon@josefsson.org>
23692
23693         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
23694
23695 2008-12-10  Jim Meyering  <meyering@redhat.com>
23696
23697         gl_ASSERT: don't say assertions are disabled when they're not
23698         * m4/assert.m4 (gl_ASSERT): Do not make configure report
23699         "checking whether to enable assertions... no", when they are in
23700         fact enabled.  This is solely a bug in the output of configure.
23701         In spite of saying "no", NDEBUG was not defined in that case.
23702         Also, as noted by Eric Blake, leave assertions enabled upon
23703         --enable-assert=INVALID.
23704
23705 2008-12-10  Bruno Haible  <bruno@clisp.org>
23706
23707         Change MODULES.html to refer to POSIX:2008 where possible.
23708         * MODULES.html.sh (POSIX2008_URL): New variable.
23709         (posix_headers): Remove sys/timeb, ucontext.
23710         (posix2001_headers): New variable.
23711         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
23712         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
23713         index, makecontext, mktemp, pthread_attr_getstackaddr,
23714         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
23715         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
23716         (posix2001_functions): New variable.
23717         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
23718         otherwise.
23719
23720 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23721
23722         add missing include to parse-duration.c
23723         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
23724         * modules/parse-duration (Depends-on): Add xalloc.
23725
23726         fix sed script reading maint.mk
23727         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
23728         (syntax-check-rules): Use it.
23729
23730 2008-12-09  Bruno Haible  <bruno@clisp.org>
23731
23732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
23733         MacOS X 10.4/PowerPC.
23734         Reported by Simon Josefsson.
23735
23736 2008-12-08  Jim Meyering  <meyering@redhat.com>
23737
23738         work around mingw's lack of some S_IF definitions
23739         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
23740         Reported by Simon Josefsson.
23741
23742 2008-12-08  Bruno Haible  <bruno@clisp.org>
23743
23744         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
23745         applied to variables. Needed on MacOS X 10.4/PowerPC.
23746         Reported by Simon Josefsson.
23747
23748 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
23749         and Eric Blake  <ebb9@byu.net>
23750
23751         assert: honor --enable-assert
23752         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
23753         order to honor --enable-assert, rather than treating it as a
23754         synonym for --disable-assert.
23755
23756 2008-12-08  Jim Meyering  <meyering@redhat.com>
23757
23758         * lib/posixtm.c: Remove now-useless declaration of mktime.
23759
23760         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
23761
23762 2008-12-07  Bruno Haible  <bruno@clisp.org>
23763
23764         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
23765         test_once): Mark functions as static.
23766         * tests/test-tls.c (test_tls): Likewise.
23767
23768 2008-12-07  Bruno Haible  <bruno@clisp.org>
23769
23770         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
23771         iconv_register_autodetect.
23772
23773 2008-12-07  Jim Meyering  <meyering@redhat.com>
23774
23775         posixtm.c: avoid a warning
23776         * lib/posixtm.c (posixtime): Don't initialize tm0.
23777         It's no longer needed to placate gcc4's -Wuninitialized,
23778         and the attempt to placate would elicit a new warning.
23779
23780         unicodeio.c: mark unused parameters
23781         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
23782         (fallback_failure_callback): Likewise.
23783
23784 2008-12-07  Bruno Haible  <bruno@clisp.org>
23785
23786         * gnulib-tool (func_create_testdir): When building the tests
23787         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
23788         Reported by Simon Josefsson.
23789
23790 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23791
23792         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
23793
23794 2008-12-06  Bruno Haible  <bruno@clisp.org>
23795
23796         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
23797         Suggested by Eric Blake.
23798
23799 2008-12-06  Bruno Haible  <bruno@clisp.org>
23800
23801         Fix a c-stack test failure on MacOS X.
23802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
23803         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
23804         handler for SIGBUS as well.
23805         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
23806         install a signal handler for SIGBUS as well.
23807         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
23808
23809 2008-12-06  Bruno Haible  <bruno@clisp.org>
23810
23811         Advocacy documentation.
23812         * doc/gnulib-intro.texi (Benefits): New section.
23813         * doc/gnulib.texi: Update.
23814
23815 2008-12-06  Bruno Haible  <bruno@clisp.org>
23816
23817         Document the 'manywarnings' module.
23818         * doc/manywarnings.texi: New file.
23819         * doc/gnulib.texi: Include it.
23820
23821 2008-12-05  Eric Blake  <ebb9@byu.net>
23822
23823         tests: silence some gcc warnings
23824         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
23825         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
23826         type mismatches.
23827
23828 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23829             Bruno Haible  <bruno@clisp.org>
23830
23831         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
23832
23833 2008-11-29  Jim Meyering  <meyering@redhat.com>
23834
23835         unicodeio.c: mark unused parameters
23836         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
23837         (fallback_failure_callback): Likewise.
23838
23839         fts: fix a thinko
23840         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
23841         (set_stat_type): Return S_IF*-valued "type" directly.
23842         Prompted by James Youngman's spotting a related bug.
23843         Confirmed by further testing through find.
23844
23845         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
23846         * lib/fts.c (D_TYPE): Define.
23847         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
23848         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
23849         (s_ifmt_shift_bits): New function.
23850         (set_stat_type): New function.
23851         (fts_build): When not calling fts_stat, call set_stat_type
23852         to propagate dirent.d_type info to fts_read caller.
23853         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
23854         fts_statp->st_mode type information may be valid.
23855
23856 2008-11-28  Simon Josefsson  <simon@josefsson.org>
23857
23858         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
23859         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
23860         <sds@gnu.org>.
23861
23862 2008-11-20  Bruno Haible  <bruno@clisp.org>
23863
23864         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
23865         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
23866         INCLUDE_NEXT.
23867         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
23868         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
23869         * modules/math (Makefile.am): Substitute
23870         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
23871         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23872
23873 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
23874             Bruno Haible  <bruno@clisp.org>
23875
23876         * lib/stdint.in.h: Define all type macros so that their expansion is
23877         a single typedef'ed token. Fixes a compilation failure in Boost which
23878         does "using ::int8_t;".
23879
23880 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23881
23882         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
23883         gl_MANYWARN_ALL_GCC.
23884         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
23885         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
23886         * modules/manywarnings: New file.
23887         * MODULES.html.sh: Mention manywarnings module.
23888
23889 2008-11-18  Bruno Haible  <bruno@clisp.org>
23890
23891         * doc/gnulib-tool.texi (Unit tests): New section.
23892
23893 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23894
23895         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
23896         paths like 'lib/po/foo.po'.
23897
23898 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23899
23900         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
23901         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
23902
23903 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23904
23905         * m4/warnings.m4: Use CPPFLAGS to really check whether the
23906         parameter works.
23907
23908 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23909
23910         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
23911
23912 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23913
23914         * modules/parse-duration-tests: New file.
23915         * tests/test-parse-duration.sh: New file.
23916         * tests/test-parse-duration.c: New file.
23917
23918         New module 'parse-duration'.
23919         * lib/parse-duration.h: New file.
23920         * lib/parse-duration.c: New file.
23921         * modules/parse-duration: New file.
23922
23923 2008-11-17  Bruno Haible  <bruno@clisp.org>
23924
23925         * tests/test-select-out.sh: Comment out the first pipe test.
23926         Reported by Simon Josefsson.
23927
23928 2008-11-17  Bruno Haible  <bruno@clisp.org>
23929
23930         * modules/getaddrinfo (Depends-on): Add servent, hostent.
23931         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
23932         gl_HOSTENT.
23933
23934 2008-11-17  Bruno Haible  <bruno@clisp.org>
23935
23936         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
23937         -lnetwork and -lnet. Needed for Haiku and BeOS.
23938
23939 2008-11-16  Bruno Haible  <bruno@clisp.org>
23940
23941         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
23942
23943 2008-11-16  Bruno Haible  <bruno@clisp.org>
23944
23945         Avoid test failure on Haiku.
23946         * tests/test-fsync.c: Include <errno.h>.
23947         (main): Don't require that fsync (0) fails.
23948
23949 2008-11-15  Bruno Haible  <bruno@clisp.org>
23950
23951         New module 'hostent'.
23952         * modules/hostent: New file.
23953         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
23954
23955 2008-11-15  Bruno Haible  <bruno@clisp.org>
23956
23957         New module 'servent'.
23958         * modules/servent: New file.
23959         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
23960
23961 2008-11-15  Bruno Haible  <bruno@clisp.org>
23962
23963         Avoid generating same test program with two different rules.
23964         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
23965         test-frexp to test-frexp-nolibm.
23966         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
23967         test-frexpl to test-frexpl-nolibm.
23968
23969 2008-11-15  Bruno Haible  <bruno@clisp.org>
23970
23971         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
23972         $(FREXPL_LIBM).
23973
23974 2008-11-15  Bruno Haible  <bruno@clisp.org>
23975
23976         * lib/netdb.in.h: Activate the definitions also when the system's
23977         <netdb.h> has 'struct addrinfo'.
23978         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
23979         EAI_OVERFLOW or AI_NUMERICSERV.
23980         * doc/posix-headers/netdb.texi: Document the problem.
23981
23982 2008-11-15  Bruno Haible  <bruno@clisp.org>
23983
23984         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
23985
23986         Make the 'sched' module work on platforms where <sched.h> exists but
23987         is incomplete (such as Haiku).
23988         * lib/sched.in.h; Include the system's <sched.h> if it exists.
23989         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
23990         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
23991         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
23992         HAVE_STRUCT_SCHED_PARAM.
23993         * modules/sched (Depends-on): Add include_next.
23994         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
23995         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
23996         * doc/posix-headers/sched.texi: Document the issue.
23997
23998 2008-11-13  Jim Meyering  <meyering@redhat.com>
23999
24000         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24001         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24002         test would fail due to the difference in the Report bugs to ...
24003         line.  The expected address is empty, "<>", while the actual
24004         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24005
24006 2008-11-12  Bruno Haible  <bruno@clisp.org>
24007
24008         lstat: don't compile lstat.c on systems lacking lstat
24009         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24010         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24011         Reported by Daniel P. Berrange via Jim Meyering.
24012
24013 2008-11-12  Jim Meyering  <meyering@redhat.com>
24014
24015         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24016
24017 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24018
24019         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24020         instead.
24021
24022 2008-11-12  Bruno Haible  <bruno@clisp.org>
24023
24024         * lib/unicodeio.c: Include unistr.h.
24025         (utf8_wctomb): Remove function.
24026         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24027
24028 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24029
24030         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24031         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24032         <bruno@clisp.org>.
24033         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24034
24035 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24036
24037         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24038         * doc/gnulib.texi: Add section for warnings.
24039
24040 2008-11-11  Bruno Haible  <bruno@clisp.org>
24041
24042         * lib/sockets.h: Add a comment.
24043
24044 2008-11-11  Karl Berry  <karl@gnu.org>
24045
24046         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24047
24048 2008-11-11  Eric Blake  <ebb9@byu.net>
24049
24050         fdl.texi: avoid git symlinks
24051         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24052
24053 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24054
24055         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24056
24057 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24058
24059         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24060         (gl_WARN_ADD): Substitute $2 if literal.
24061
24062 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24063
24064         * m4/warning.m4: Remove.
24065
24066 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24067
24068         * m4/warnings.m4: Almost complete rewrite. :-)
24069
24070 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24071
24072         * modules/warnings: New module.
24073         * m4/warnings.m4: New file.
24074         * MODULES.html.sh: Mention warnings module.
24075         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24076         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24077
24078 2008-11-10  Eric Blake  <ebb9@byu.net>
24079
24080         fdl.texi: make a symlink to the latest version
24081         * doc/standards.texi: Revert today's earlier change.
24082         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24083         * doc/fdl.texi: ...and replace this with a symlink to the newer
24084         fdl-1.3.texi.
24085
24086 2008-11-10  Bruno Haible  <bruno@clisp.org>
24087
24088         * tests/test-select-fd.c (main): Accept the result file name as fourth
24089         argument.
24090         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24091         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24092
24093 2008-11-10  Bruno Haible  <bruno@clisp.org>
24094
24095         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24096         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24097         as autoconf-substituted macros.
24098         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24100         gl_NETDB_H_DEFAULTS. Set these variables.
24101         * modules/netdb (Makefile.am): Substitute these variables.
24102
24103 2008-11-10  Eric Blake  <ebb9@byu.net>
24104
24105         standards.texi: include correct file for FDL 1.3
24106         * doc/standards.texi (GNU Free Documentation License): Change
24107         include file to pull in FDL 1.3, not 1.2.
24108
24109         fdl.texi: revert accidental change to license
24110         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24111
24112 2008-11-10  Bruno Haible  <bruno@clisp.org>
24113
24114         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24115         cross-compiling guesses also when the native compile gives no result.
24116
24117 2008-11-10  Bruno Haible  <bruno@clisp.org>
24118
24119         * lib/spawni.c (__spawni): Force variable into the stack.
24120
24121 2008-11-10  Bruno Haible  <bruno@clisp.org>
24122
24123         Add support for Haiku.
24124         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24125         glibc and BeOS, but also on Haiku.
24126         * lib/fpurge.c (fpurge): Likewise.
24127         * lib/freadable.c (freadable): Likewise.
24128         * lib/freadahead.c (freadahead): Likewise.
24129         * lib/freading.c (freading): Likewise.
24130         * lib/freadptr.c (freadptr): Likewise.
24131         * lib/freadseek.c (freadptrinc): Likewise.
24132         * lib/fseeko.c (rpl_fseeko): Likewise.
24133         * lib/fseterr.c (fseterr): Likewise.
24134         * lib/fwritable.c (fwritable): Likewise.
24135         * lib/fwriting.c (fwriting): Likewise.
24136         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24137
24138 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24139
24140         * lib/config.charset: Treat Haiku like BeOS.
24141
24142 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24143
24144         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24145         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24146
24147 2008-11-08  Bruno Haible  <bruno@clisp.org>
24148
24149         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24150         AC_CACHE_CHECK.
24151
24152 2008-11-08  Bruno Haible  <bruno@clisp.org>
24153
24154         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24155
24156 2008-11-08  Bruno Haible  <bruno@clisp.org>
24157
24158         * tests/test-select-fd.c: New file.
24159         * tests/test-select-in.sh: New file.
24160         * tests/test-select-out.sh: New file.
24161         * tests/test-select-stdin.c: New file.
24162         * modules/select-tests (Files): Add the new files.
24163         (Depends-on): Add gettimeofday.
24164         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24165         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24166         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24167
24168 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24169             Bruno Haible  <bruno@clisp.org>
24170
24171         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24172
24173 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24174
24175         * build-aux/pmccabe2html: Added support for C++ source files.
24176
24177 2008-11-05  Ben Pfaff  <blp@gnu.org>
24178
24179         Fix lib/close.c build on Windows.
24180         * modules/close (Files): Add lib/w32sock.h.
24181
24182 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24183
24184         Accept Bison's NEWS format.
24185         * build-aux/announce-gen (print_news_deltas): Tweak
24186         $re_prefix.
24187
24188 2008-11-04  Bruno Haible  <bruno@clisp.org>
24189
24190         * modules/random_r (Maintainer): Add glibc.
24191
24192 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24193
24194         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24195         by karl@freefriends.org (Karl Berry).
24196         * doc/alloca.texi: Likewise.
24197         * doc/c-ctype.texi: Likewise.
24198         * doc/c-strcase.texi: Likewise.
24199         * doc/c-strcaseeq.texi: Likewise.
24200         * doc/c-strcasestr.texi: Likewise.
24201         * doc/c-strstr.texi: Likewise.
24202         * doc/c-strtod.texi: Likewise.
24203         * doc/c-strtold.texi: Likewise.
24204         * doc/ctime.texi: Likewise.
24205         * doc/error.texi: Likewise.
24206         * doc/fdl.texi: Likewise.
24207         * doc/gcd.texi: Likewise.
24208         * doc/getdate.texi: Likewise.
24209         * doc/gnulib-intro.texi: Likewise.
24210         * doc/gnulib-tool.texi: Likewise.
24211         * doc/gnulib.texi: Likewise.
24212         * doc/inet_ntoa.texi: Likewise.
24213         * doc/maintain.texi: Likewise.
24214         * doc/make-stds.texi: Likewise.
24215         * doc/quote.texi: Likewise.
24216         * doc/regexprops-generic.texi: Likewise.
24217         * doc/standards.texi: Likewise.
24218         * doc/verify.texi: Likewise.
24219         * doc/visibility.texi: Likewise.
24220         * doc/gnulib.texi (GNU Free Documentation License): Include
24221         fdl-1.3.texi instead of fdl.texi.
24222
24223 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24224
24225         * doc/fdl-1.3.texi: New file, from
24226         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24227         * modules/fdl-1.3: Add.
24228         * MODULES.html.sh: Add fdl-1.3.
24229
24230 2008-11-03  Bruno Haible  <bruno@clisp.org>
24231
24232         Make determination of absolute name of header file work with AIX xlc.
24233         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24234         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24235         preprocessing.
24236         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24237         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24238
24239 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24240
24241         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24242         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24243         <ludo@gnu.org>.
24244
24245 2008-11-02  Bruno Haible  <bruno@clisp.org>
24246
24247         Mark 'strpbrk' obsolete.
24248         * modules/strpbrk (Status, Notice): New sections.
24249         * modules/strtok_r (Depends-on): Add strpbrk.
24250
24251 2008-11-02  Bruno Haible  <bruno@clisp.org>
24252
24253         Mark 'strdup' obsolete.
24254         * modules/strdup (Status, Notice): New sections.
24255         * modules/findprog (Depends-on): Add strdup.
24256         * modules/getaddrinfo (Depends-on): Likewise.
24257         * modules/localename (Depends-on): Likewise.
24258         * modules/relocatable-lib (Depends-on): Likewise.
24259         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24260         * modules/relocatable-prog (Depends-on): Likewise.
24261         * modules/trim (Depends-on): Likewise.
24262         * modules/unictype/gen-ctype (Depends-on): Likewise.
24263         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24264
24265 2008-11-02  Bruno Haible  <bruno@clisp.org>
24266
24267         Mark 'strcspn' obsolete.
24268         * modules/strcspn (Status, Notice): New sections.
24269
24270 2008-11-02  Bruno Haible  <bruno@clisp.org>
24271
24272         Mark 'rmdir' obsolete.
24273         * modules/rmdir (Status, Notice): New sections.
24274         * modules/clean-temp (Depends-on): Add rmdir.
24275         * modules/openat (Depends-on): Likewise.
24276
24277 2008-11-02  Bruno Haible  <bruno@clisp.org>
24278
24279         Mark 'raise' obsolete.
24280         * modules/raise (Status, Notice): New sections.
24281         (Include): Specify <signal.h>.
24282         * modules/stdio (Depends-on): Add raise.
24283         * modules/write (Depends-on): Likewise.
24284
24285 2008-11-02  Bruno Haible  <bruno@clisp.org>
24286
24287         Mark 'memset' obsolete.
24288         * modules/memset (Status, Notice): New sections.
24289
24290 2008-11-02  Bruno Haible  <bruno@clisp.org>
24291
24292         Mark 'memmove' obsolete.
24293         * modules/memmove (Status, Notice): New sections.
24294         * modules/argp (Depends-on): Add memmove.
24295         * modules/argz (Depends-on): Likewise.
24296         * modules/canonicalize (Depends-on): Likewise.
24297         * modules/canonicalize-lgpl (Depends-on): Likewise.
24298         * modules/fts (Depends-on): Likewise.
24299         * modules/getcwd (Depends-on): Likewise.
24300         * modules/human (Depends-on): Likewise.
24301         * modules/regex (Depends-on): Likewise.
24302         * modules/striconveh (Depends-on): Likewise.
24303         * modules/trim (Depends-on): Likewise.
24304         * modules/unistr/u8-move (Depends-on): Likewise.
24305         * modules/unistr/u16-move (Depends-on): Likewise.
24306         * modules/unistr/u32-move (Depends-on): Likewise.
24307
24308 2008-11-02  Bruno Haible  <bruno@clisp.org>
24309
24310         Mark 'memcpy' obsolete.
24311         * modules/memcpy (Status, Notice): New sections.
24312
24313 2008-11-02  Bruno Haible  <bruno@clisp.org>
24314
24315         Mark 'memcmp' obsolete.
24316         * modules/memcmp (Status, Notice): New sections.
24317         * modules/argmatch (Depends-on): Add memchr.
24318         * modules/backupfile (Depends-on): Likewise.
24319         * modules/c-strcasestr (Depends-on): Likewise.
24320         * modules/crypto/des (Depends-on): Likewise.
24321         * modules/csharpcomp (Depends-on): Likewise.
24322         * modules/fnmatch (Depends-on): Likewise.
24323         * modules/git-merge-changelog (Depends-on): Likewise.
24324         * modules/isnand (Depends-on): Likewise.
24325         * modules/isnand-nolibm (Depends-on): Likewise.
24326         * modules/isnanf (Depends-on): Likewise.
24327         * modules/isnanf-nolibm (Depends-on): Likewise.
24328         * modules/isnanl (Depends-on): Likewise.
24329         * modules/isnanl-nolibm (Depends-on): Likewise.
24330         * modules/mbchar (Depends-on): Likewise.
24331         * modules/memcoll (Depends-on): Likewise.
24332         * modules/quotearg (Depends-on): Likewise.
24333         * modules/regex (Depends-on): Likewise.
24334         * modules/relocatable-prog (Depends-on): Likewise.
24335         * modules/same (Depends-on): Likewise.
24336         * modules/signbit (Depends-on): Likewise.
24337         * modules/strcasestr-simple (Depends-on): Likewise.
24338         * modules/unictype/gen-ctype (Depends-on): Likewise.
24339         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24340         * modules/uniname/uniname (Depends-on): Likewise.
24341         * modules/unistr/u8-cmp (Depends-on): Likewise.
24342
24343 2008-11-02  Bruno Haible  <bruno@clisp.org>
24344
24345         Mark 'memchr' obsolete.
24346         * modules/memchr (Status, Notice): New sections.
24347         * modules/argp (Depends-on): Add memchr.
24348         * modules/base64 (Depends-on): Likewise.
24349         * modules/c-strcasestr (Depends-on): Likewise.
24350         * modules/chdir-long (Depends-on): Likewise.
24351         * modules/fnmatch (Depends-on): Likewise.
24352         * modules/getsubopt (Depends-on): Likewise.
24353         * modules/git-merge-changelog (Depends-on): Likewise.
24354         * modules/glob (Depends-on): Likewise.
24355         * modules/strcasestr-simple (Depends-on): Likewise.
24356         * modules/strnlen (Depends-on): Likewise.
24357
24358 2008-11-02  Bruno Haible  <bruno@clisp.org>
24359
24360         Mark 'atexit' obsolete.
24361         * modules/atexit (Status, Notice): New sections.
24362         * modules/chdir-long (Depends-on): Add atexit.
24363         * modules/wait-process (Depends-on): Likewise.
24364
24365 2008-11-02  Bruno Haible  <bruno@clisp.org>
24366
24367         * gnulib-tool: New option --with-obsolete.
24368         (func_usage): Document it.
24369         (func_modules_transitive_closure): Drop obsolete dependencies if
24370         incobsolete is not true.
24371         (func_import): Read and save the incobsolete variable to the cache.
24372
24373 2008-11-02  Bruno Haible  <bruno@clisp.org>
24374
24375         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24376         * gnulib-tool: New option --extract-status.
24377         (func_usage): Document it.
24378         (sed_extract_prog): Recognize it.
24379         (func_get_status): New function.
24380
24381 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24382
24383         * modules/sockets (License): Change from LGPL to LGPLv2+.
24384
24385 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24386
24387         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24388
24389 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24390
24391         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24392         Mention times and sys_times.
24393         * modules/sys_times, modules/sys_times-tests: New modules.
24394         * modules/times, modules/times-tests: Likewise
24395         * m4/sys_times_h.m4: New file.
24396         * lib/sys_times.in.h: Likewise
24397         * lib/times.c: Likewise.
24398         * tests/test-sys_times.c: Likewise.
24399         * tests/test-times.c: Likewise.
24400         * doc/posix-headers/sys_times.texi: Update.
24401         * doc/posix-functions/times.texi: Update.
24402
24403 2008-10-28  Jim Meyering  <meyering@redhat.com>
24404
24405         * modules/tempname (Depends-on): Add lstat.
24406
24407         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24408
24409 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24410
24411         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24412         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24413         using idiom used elsewhere in gnulib.
24414
24415 2008-10-27  Jim Meyering  <meyering@redhat.com>
24416
24417         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24418
24419 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24420
24421         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24422         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24423         programs.
24424         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24425
24426 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24427
24428         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24429
24430 2008-10-27  Bruno Haible  <bruno@clisp.org>
24431
24432         * tests/test-lstat.c: Include <stdio.h>.
24433
24434 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24435
24436         * modules/lstat-tests: New module.
24437         * tests/test-lstat.c: New file.
24438
24439 2008-10-26  Jim Meyering  <meyering@redhat.com>
24440
24441         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24442
24443 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24444             Bruno Haible  <bruno@clisp.org>
24445
24446         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24447         * modules/configmake (Include): Add a note that the include must come
24448         after all system headers.
24449         * lib/javaversion.c: Include configmake.h after all other includes.
24450
24451 2008-10-26  Bruno Haible  <bruno@clisp.org>
24452
24453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24454         HAVE_STRUCT_RANDOM_DATA to 1.
24455         (gl_STDLIB_H): Simplify.
24456
24457 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24458
24459         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24460         substitute HAVE_STRUCT_RANDOM_DATA.
24461         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24462         random_data.
24463         * modules/stdlib (Makefile.am): Substitute
24464         HAVE_STRUCT_RANDOM_DATA.
24465
24466 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24467
24468         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24469         * doc/gnulib-intro.texi (Copyright): Likewise.
24470
24471 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24472
24473         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24474         findings.
24475
24476 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24477             Bruno Haible  <bruno@clisp.org>
24478
24479         * lib/unistd.in.h: Include <winsock2.h>.
24480         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24481         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24482         Provide dummy declarations.
24483         (gethostname): Override.
24484         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24485         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24486         gl_PREREQ_SYS_H_WINSOCK2.
24487         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24488         * doc/posix-functions/gethostname.texi: More details.
24489
24490 2008-10-25  Bruno Haible  <bruno@clisp.org>
24491
24492         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24493         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24494         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24495
24496         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24497         here ...
24498         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24500         gl_UNISTD_H_DEFAULTS.
24501
24502 2008-10-25  Eric Blake  <ebb9@byu.net>
24503
24504         signbit: avoid spurious compiler failure
24505         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24506         declarations inside function.
24507
24508 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24509             Bruno Haible  <bruno@clisp.org>
24510
24511         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24512         * modules/random_r (Depends-on): Add stdint.
24513
24514 2008-10-24  Bruno Haible  <bruno@clisp.org>
24515
24516         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24517         Eggert.
24518         * modules/strerror (License): Likewise.
24519
24520 2008-10-24  Jim Meyering  <meyering@redhat.com>
24521
24522         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24523         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24524
24525 2008-10-24  Eric Blake  <ebb9@byu.net>
24526
24527         getgroups: fix compilation when getgroups is available
24528         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24529         but with <config.h> override of getgroups disabled.
24530
24531 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24532
24533         * doc/gnulib.texi (Header files): Add note about C++ problems.
24534         Explained by Bruno Haible <bruno@clisp.org>.
24535
24536 2008-10-23  Bruno Haible  <bruno@clisp.org>
24537
24538         Define a dummy SA_NODEFER macro on Interix.
24539         * lib/signal.in.h (SA_NODEFER): Define fallback.
24540         Reported by Aleksey Cheusov <cheusov@tut.by> via
24541         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24542
24543 2008-10-23  Bruno Haible  <bruno@clisp.org>
24544
24545         * modules/freadahead (License): Change to LGPLv2+.
24546         Suggested by Simon Josefsson.
24547
24548 2008-10-23  Jim Meyering  <meyering@redhat.com>
24549
24550         random_r: new module
24551         * modules/random_r: New file.
24552         * m4/random_r.m4: New file.
24553         * lib/random_r.c: New file, from glibc.
24554         * modules/random_r-tests: New file.
24555         * tests/test-random_r.c: New file.
24556         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
24557          Declare.
24558         (RAND_MAX): Define.
24559         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
24560         * modules/stdlib: Substitute them, too.
24561         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
24562         * doc/glibc-functions/initstate_r.texi: Mention the new module.
24563         * doc/glibc-functions/random_r.texi: Likewise.
24564         * doc/glibc-functions/setstate_r.texi: Likewise.
24565         * doc/glibc-functions/srandom_r.texi: Likewise.
24566         * config/srclist.txt: Mention it.
24567
24568 2008-10-23  David Lutterkort  <lutter@redhat.com>
24569
24570         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
24571         link requirement
24572
24573 2008-10-23  Jim Meyering  <meyering@redhat.com>
24574
24575         selinux-h: mark parameters of stub functions as intentionally unused
24576         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
24577         * lib/se-context.in.h: Likewise.
24578
24579 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24580
24581         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
24582
24583 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24584
24585         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
24586
24587 2008-10-22  Eric Blake  <ebb9@byu.net>
24588
24589         glthread/thread: avoid compiler warning
24590         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
24591         Add unreachable abort to silence compiler.
24592
24593 2008-10-22  Eric Blake  <ebb9@byu.net>
24594
24595         netdb: also supply struct addrinfo for cygwin 1.5.x
24596         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
24597         older cygwin.
24598         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
24599         cygwin.
24600         * doc/posix-headers/netdb.texi (netdb.h): Document this.
24601
24602 2008-10-22  Bruno Haible  <bruno@clisp.org>
24603
24604         * users.txt: Update entry about pspp.
24605
24606 2008-10-21  Bruno Haible  <bruno@clisp.org>
24607
24608         Simplification.
24609         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
24610         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
24611
24612         Simplification.
24613         * lib/ioctl.c (ioctl): Don't undefine.
24614         * lib/socket.c (socket): Don't undefine.
24615
24616         Remove unused module indicator macros.
24617         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
24618         GNULIB_$1 as a C macro.
24619
24620         * doc/posix-functions/close.texi: Undo last change.
24621         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
24622         Windows platforms.
24623
24624 2008-10-21  Bruno Haible  <bruno@clisp.org>
24625
24626         Add gethostname() declaration to <unistd.h>.
24627         * lib/unistd.in.h (gethostname): New declaration.
24628         * lib/gethostname.c: Include <unistd.h>.
24629         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
24630         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
24631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
24632         and HAVE_GETHOSTNAME.
24633         * modules/gethostname (Depends-on): Add unistd.
24634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24635         (Include): Specify <unistd.h>.
24636         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
24637         HAVE_GETHOSTNAME.
24638         * tests/test-gethostname.c: Include <unistd.h> first.
24639
24640 2008-10-21  Bruno Haible  <bruno@clisp.org>
24641
24642         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
24643         * modules/select-tests (Depends-on): Likewise.
24644         Reported by Simon Josefsson.
24645
24646 2008-10-21  Simon Josefsson  <simon@josefsson.org>
24647
24648         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
24649         * lib/accept.c: New file, based on winsock.c.
24650         * lib/bind.c: New file, based on winsock.c.
24651         * lib/connect.c: New file, based on winsock.c.
24652         * lib/getpeername.c: New file, based on winsock.c.
24653         * lib/getsockname.c: New file, based on winsock.c.
24654         * lib/getsockopt.c: New file, based on winsock.c.
24655         * lib/ioctl.c: New file, based on winsock.c.
24656         * lib/listen.c: New file, based on winsock.c.
24657         * lib/recv.c: New file, based on winsock.c.
24658         * lib/recvfrom.c: New file, based on winsock.c.
24659         * lib/send.c: New file, based on winsock.c.
24660         * lib/sendto.c: New file, based on winsock.c.
24661         * lib/setsockopt.c: New file, based on winsock.c.
24662         * lib/shutdown.c: New file, based on winsock.c.
24663         * lib/socket.c: New file, based on winsock.c.
24664         * lib/w32sock.h: New file, based on winsock.c.
24665         * lib/winsock.c: Remove file.
24666         * modules/accept: Likewise.
24667         * modules/bind: Likewise.
24668         * modules/connect: Likewise.
24669         * modules/getpeername: Likewise.
24670         * modules/getsockname: Likewise.
24671         * modules/getsockopt: Likewise.
24672         * modules/ioctl: Likewise.
24673         * modules/listen: Likewise.
24674         * modules/recv: Likewise.
24675         * modules/recvfrom: Likewise.
24676         * modules/send: Likewise.
24677         * modules/sendto: Likewise.
24678         * modules/setsockopt: Likewise.
24679         * modules/shutdown: Likewise.
24680         * modules/socket: Use socket.c instead of winsock.c.
24681         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
24682         * doc/posix-functions/accept.texi: Doc fix.
24683         * doc/posix-functions/bind.texi: Doc fix.
24684         * doc/posix-functions/close.texi: Doc fix.
24685         * doc/posix-functions/connect.texi: Doc fix.
24686         * doc/posix-functions/getpeername.texi: Doc fix.
24687         * doc/posix-functions/getsockname.texi: Doc fix.
24688         * doc/posix-functions/getsockopt.texi: Doc fix.
24689         * doc/posix-functions/ioctl.texi: Doc fix.
24690         * doc/posix-functions/listen.texi: Doc fix.
24691         * doc/posix-functions/recv.texi: Doc fix.
24692         * doc/posix-functions/recvfrom.texi: Doc fix.
24693         * doc/posix-functions/send.texi: Doc fix.
24694         * doc/posix-functions/sendto.texi: Doc fix.
24695         * doc/posix-functions/setsockopt.texi: Doc fix.
24696         * doc/posix-functions/shutdown.texi: Doc fix.
24697         * doc/posix-functions/socket.texi: Doc fix.
24698
24699 2008-10-20  Bruno Haible  <bruno@clisp.org>
24700
24701         Take into account the role of SIGABRT_COMPAT on Windows 2008.
24702         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
24703         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
24704         as an alias for SIGABRT.
24705         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
24706         (sigaction): Map it to SIGABRT.
24707         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
24708
24709 2008-10-20  Bruno Haible  <bruno@clisp.org>
24710
24711         * lib/fts.c: Don't include lstat.h.
24712         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
24713
24714         Move the lstat() declaration to <sys/stat.h>.
24715         * lib/lstat.h: Remove file.
24716         * lib/sys_stat.in.h: Add special invocation convention.
24717         (lstat): New declaration.
24718         * lib/lstat.c (orig_lstat): New function.
24719         (rpl_lstat): Use orig_lstat instead of lstat.
24720         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
24721         AC_C_INLINE. Set REPLACE_LSTAT.
24722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
24723         and REPLACE_LSTAT.
24724         * modules/lstat (Files): Remove lib/lstat.h.
24725         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24726         (Include): Specify <sys/stat.h> instead of lstat.h.
24727         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
24728         REPLACE_LSTAT.
24729         * NEWS: Mention the change.
24730
24731 2008-10-20  Bruno Haible  <bruno@clisp.org>
24732
24733         * modules/posix_spawn-tests: New file.
24734         * tests/test-posix_spawn3.c: New file.
24735
24736 2008-10-20  Bruno Haible  <bruno@clisp.org>
24737
24738         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
24739         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
24740         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
24741         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
24742         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
24743
24744 2008-10-20  Bruno Haible  <bruno@clisp.org>
24745
24746         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
24747         of posix_spawn on AIX 5.3.
24748
24749 2008-10-20  Bruno Haible  <bruno@clisp.org>
24750
24751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
24752
24753 2008-10-20  Bruno Haible  <bruno@clisp.org>
24754
24755         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
24756         of AC_LANG_PROGRAM.
24757
24758 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24759
24760         * lib/netdb.in.h: Don't define GNU specific constants until they
24761         are supported or needed.  Reported by Bruno Haible
24762         <bruno@clisp.org>.
24763
24764 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24765
24766         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
24767
24768 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24769
24770         * lib/getaddrinfo.h: Remove file.
24771         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
24772         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
24773         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
24774         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
24775         * modules/netdb: Substitute GNULIB_GETADDRINFO.
24776         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
24777         * tests/test-getaddrinfo.c: Likewise.
24778         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
24779         * NEWS: Mention change.
24780
24781 2008-10-19  Bruno Haible  <bruno@clisp.org>
24782
24783         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
24784
24785 2008-10-19  Bruno Haible  <bruno@clisp.org>
24786
24787         * lib/wait-process.c: Include simply <sys/wait.h>.
24788         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
24789         WIFSTOPPED): Remove fallback definitions.
24790         * modules/wait-process (Depends-on): Add sys_wait.
24791
24792         New module 'sys_wait'.
24793         * modules/sys_wait: New file.
24794         * lib/sys_wait.in.h: New file, partially copied from
24795         lib/wait-process.c.
24796         * m4/sys_wait_h.m4: New file.
24797         * doc/posix-headers/sys_wait.texi: Mention the new module.
24798
24799 2008-10-19  Bruno Haible  <bruno@clisp.org>
24800
24801         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
24802
24803 2008-10-19  Bruno Haible  <bruno@clisp.org>
24804
24805         Assume that waitpid() fills an 'int' status, not a 'union wait'.
24806         * lib/wait-process.c (WAIT_T): Remove type.
24807         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
24808         (wait_subprocess): Update.
24809
24810 2008-10-19  Bruno Haible  <bruno@clisp.org>
24811
24812         New module 'atoll'.
24813         * modules/atoll: New file.
24814         * lib/stdlib.in.h (atoll): New declaration.
24815         * lib/atoll.c: New file, from glibc with modifications.
24816         * m4/atoll.m4: New file.
24817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
24818         HAVE_ATOLL.
24819         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
24820         * doc/posix-functions/atoll.texi: Mention the new module.
24821
24822 2008-10-19  Bruno Haible  <bruno@clisp.org>
24823
24824         Add strtoull() declaration to <stdlib.h>.
24825         * lib/stdlib.in.h (strtoull): New declaration.
24826         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24827         Set HAVE_STRTOULL.
24828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
24829         HAVE_STRTOULL.
24830         * modules/strtoull (Depends-on): Add stdlib.
24831         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24832         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
24833         HAVE_STRTOULL.
24834
24835 2008-10-19  Bruno Haible  <bruno@clisp.org>
24836
24837         Add strtoll() declaration to <stdlib.h>.
24838         * lib/stdlib.in.h (strtoll): New declaration.
24839         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24840         Set HAVE_STRTOLL.
24841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
24842         HAVE_STRTOLL.
24843         * modules/strtoll (Depends-on): Add stdlib.
24844         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24845         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
24846
24847 2008-10-19  Bruno Haible  <bruno@clisp.org>
24848
24849         * modules/bcopy (Depends-on): Add strings.
24850         (Include): Specify <strings.h>.
24851
24852 2008-10-19  Bruno Haible  <bruno@clisp.org>
24853
24854         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
24855
24856 2008-10-19  Bruno Haible  <bruno@clisp.org>
24857
24858         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
24859         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
24860         mingw.
24861
24862 2008-10-19  Bruno Haible  <bruno@clisp.org>
24863
24864         * lib/atanl.c: Don't include isnanl.h.
24865         * lib/cosl.c: Likewise.
24866         * lib/ldexpl.c: Likewise.
24867         * lib/logl.c: Likewise.
24868         * lib/sinl.c: Likewise.
24869         * lib/sqrtl.c: Likewise.
24870         * lib/tanl.c: Likewise.
24871
24872         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
24873         * lib/isnanf.h: Remove file.
24874         * lib/isnand.h: Remove file.
24875         * lib/isnanl.h: Remove file.
24876         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
24877         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
24878         macros.
24879         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
24880         HAVE_ISNANF, don't define it as a C macro.
24881         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
24882         HAVE_ISNAND, don't define it as a C macro.
24883         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
24884         HAVE_ISNANL, don't define it as a C macro.
24885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
24886         HAVE_ISNAN[FDL].
24887         * modules/isnanf (Files): Remove lib/isnanf.h.
24888         (Depends-on): Add math.
24889         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24890         (Include): Specify <math.h> instead of isnanf.h.
24891         * modules/isnand (Files): Remove lib/isnand.h.
24892         (Depends-on): Add math.
24893         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24894         (Include): Specify <math.h> instead of isnand.h.
24895         * modules/isnanl (Files): Remove lib/isnanl.h.
24896         (Depends-on): Add math.
24897         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24898         (Include): Specify <math.h> instead of isnanl.h.
24899         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
24900         HAVE_ISNAN[FDL].
24901         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
24902         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
24903         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
24904         * NEWS: Mention the change.
24905
24906 2008-10-18  Bruno Haible  <bruno@clisp.org>
24907
24908         Add getusershell(), setusershell(), endusershell() declarations to
24909         <unistd.h>.
24910         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
24911         declarations.
24912         * lib/getusershell.c: Include unistd.h.
24913         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
24914         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24915         HAVE_GETUSERSHELL.
24916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
24917         and HAVE_GETUSERSHELL.
24918         * modules/getusershell (Depends-on): Add unistd, extensions.
24919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24920         (Include): Specify <unistd.h>.
24921         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
24922         HAVE_GETUSERSHELL.
24923
24924 2008-10-18  Bruno Haible  <bruno@clisp.org>
24925
24926         Add a getloadavg() declaration to <stdlib.h>.
24927         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
24928         getloadavg declaration.
24929         (getloadavg): New declaration.
24930         * lib/getloadavg.c: Include <stdlib.h> first.
24931         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
24932         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
24933         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
24934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
24935         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24936         * modules/getloadavg (Depends-on): Add stdlib, extensions.
24937         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24938         (Include): Specify <stdlib.h>.
24939         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
24940         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24941
24942 2008-10-18  Bruno Haible  <bruno@clisp.org>
24943
24944         * lib/dirchownmod.c: Don't include lchmod.h.
24945
24946         Move the lchmod() declaration to <sys/stat.h>.
24947         * lib/lchmod.h: Remove file.
24948         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
24949         (lchmod): New declaration, moved here from lib/lchown.h.
24950         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
24951         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
24952         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
24953         and HAVE_LCHMOD.
24954         * modules/lchmod (Files): Remove lib/lchmod.h.
24955         (Depends-on): Add sys_stat, extensions.
24956         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24957         (Include): Specify <sys/stat.h> instead of lchmod.h.
24958         * modules/sys_stat (Depends-on): Add link-warning.
24959         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
24960         definition of GL_LINK_WARNING.
24961         * NEWS: Mention the change.
24962
24963 2008-10-18  Bruno Haible  <bruno@clisp.org>
24964
24965         * lib/fchdir.c: Don't include dirfd.h.
24966         * lib/fts.c: Likewise.
24967         * lib/getcwd.c: Likewise.
24968         * lib/glob.c: Likewise.
24969
24970         Move the dirfd() declaration to <dirent.h>.
24971         * lib/dirfd.h: Remove file.
24972         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
24973         (dirfd): New declaration.
24974         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
24975         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
24976         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
24977         HAVE_DECL_DIRFD.
24978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
24979         HAVE_DECL_DIRFD.
24980         * modules/dirfd (Files): Remove lib/dirfd.h.
24981         (Depends-on): Add dirent, extensions.
24982         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
24983         (Include): Specify <dirent.h> instead of dirfd.h.
24984         * modules/dirent (Depends-on): Add link-warning.
24985         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
24986         definition of GL_LINK_WARNING.
24987         * NEWS: Mention the change.
24988
24989 2008-10-18  Bruno Haible  <bruno@clisp.org>
24990
24991         Move the euidaccess() declaration to <unistd.h>.
24992         * lib/euidaccess.h: Remove file.
24993         * lib/unistd.in.h (euidaccess): New declaration.
24994         * lib/euidaccess.c: Don't include euidaccess.h.
24995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
24996         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
24997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
24998         and HAVE_EUIDACCESS.
24999         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25000         (Depends-on): Add unistd.
25001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25002         (Include): Specify <unistd.h> instead of euidaccess.h.
25003         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25004         HAVE_EUIDACCESS.
25005         * NEWS: Mention the change.
25006
25007 2008-10-18  Bruno Haible  <bruno@clisp.org>
25008
25009         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25010
25011         Move the getdomainname() declaration to <unistd.h>.
25012         * lib/getdomainname.h: Remove file.
25013         * lib/unistd.in.h (getdomainname): New declaration.
25014         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25015         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25016         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25017         HAVE_GETDOMAINNAME.
25018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25019         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25020         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25021         (Depends-on): Add unistd, extensions.
25022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25023         (Includes): Specify <unistd.h> instead of getdomainname.h.
25024         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25025         HAVE_GETDOMAINNAME.
25026         * NEWS: Mention the change.
25027
25028 2008-10-18  Bruno Haible  <bruno@clisp.org>
25029
25030         * modules/dirent: New file.
25031         * m4/dirent_h.m4: New file.
25032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25033         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25034         * modules/fchdir (Files): Remove lib/dirent.in.h.
25035         (Depends-on): Add dirent.
25036         (Makefile.am): Move rules to modules/dirent.
25037         * doc/posix-headers/dirent.texi: Mention the new module.
25038
25039 2008-10-18  Bruno Haible  <bruno@clisp.org>
25040
25041         Avoid -Wunused-parameter warnings in public gnulib header files.
25042         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25043         macro.
25044         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25045
25046 2008-10-18  Bruno Haible  <bruno@clisp.org>
25047
25048         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25049         * doc/glibc-functions/error.texi: Mention the module 'error'.
25050         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25051         * doc/glibc-functions/getdomainname.texi: Mention the module
25052         'getdomainname'.
25053         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25054         * doc/glibc-functions/getpagesize.texi: Mention the module
25055         'getpagesize'.
25056         * doc/glibc-functions/getusershell.texi: Mention the module
25057         'getusershell'.
25058         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25059         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25060         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25061         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25062         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25063         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25064         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25065         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25066         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25067         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25068         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25069         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25070         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25071         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25072
25073 2008-10-17  Bruno Haible  <bruno@clisp.org>
25074
25075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25076         HP-UX and IRIX, use -0.0L.
25077         * tests/test-ceill.c (minus_zero): Likewise.
25078         * tests/test-floorl.c (minus_zero): Likewise.
25079         * tests/test-frexpl.c (minus_zero): Likewise.
25080         * tests/test-isnan.c (minus_zerol): Likewise.
25081         * tests/test-isnanl.h (minus_zero): Likewise.
25082         * tests/test-ldexpl.c (minus_zero): Likewise.
25083         * tests/test-roundl.c (minus_zero): Likewise.
25084         * tests/test-signbit.c (minus_zerol): Likewise.
25085         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25086         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25087         * tests/test-truncl.c (minus_zero): Likewise.
25088         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25089         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25090         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25091         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25092
25093 2008-10-17  Bruno Haible  <bruno@clisp.org>
25094
25095         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25096         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25097         that it gets activated only for gcc >= 3.0.
25098         * lib/dirent.in.h: Likewise.
25099         * lib/errno.in.h: Likewise.
25100         * lib/fcntl.in.h: Likewise.
25101         * lib/float.in.h: Likewise.
25102         * lib/iconv.in.h: Likewise.
25103         * lib/inttypes.in.h: Likewise.
25104         * lib/locale.in.h: Likewise.
25105         * lib/math.in.h: Likewise.
25106         * lib/netdb.in.h: Likewise.
25107         * lib/netinet_in.in.h: Likewise.
25108         * lib/search.in.h: Likewise.
25109         * lib/signal.in.h: Likewise.
25110         * lib/spawn.in.h: Likewise.
25111         * lib/stdarg.in.h: Likewise.
25112         * lib/stdint.in.h: Likewise.
25113         * lib/stdio.in.h: Likewise.
25114         * lib/stdlib.in.h: Likewise.
25115         * lib/string.in.h: Likewise.
25116         * lib/strings.in.h: Likewise.
25117         * lib/sys_file.in.h: Likewise.
25118         * lib/sys_ioctl.in.h: Likewise.
25119         * lib/sys_select.in.h: Likewise.
25120         * lib/sys_socket.in.h: Likewise.
25121         * lib/sys_stat.in.h: Likewise.
25122         * lib/sys_time.in.h: Likewise.
25123         * lib/sysexits.in.h: Likewise.
25124         * lib/time.in.h: Likewise.
25125         * lib/unistd.in.h: Likewise.
25126         * lib/wchar.in.h: Likewise.
25127         * lib/wctype.in.h: Likewise.
25128         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25129
25130 2008-10-17  Jim Meyering  <meyering@redhat.com>
25131
25132         ignore-value: don't depend on inline module
25133         * modules/ignore-value (Depends-on): Remove 'inline'.
25134         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25135         Suggestion from Bruno Haible.
25136
25137 2008-10-17  Bruno Haible  <bruno@clisp.org>
25138
25139         New implementation of condition variables for Win32.
25140         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25141         (gl_linked_waitqueue_t): New type.
25142         (gl_cond_t): Use it.
25143         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25144         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25145         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25146         (glthread_cond_init_func, glthread_cond_wait_func,
25147         glthread_cond_timedwait_func, glthread_cond_signal_func,
25148         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25149         Reimplemented on the basis of gl_linked_waitqueue_t.
25150         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25151         gl_waitqueue_t.
25152         (gl_rwlock_t): Update.
25153         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25154
25155 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25156
25157         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25158         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25159
25160 2008-10-17  Jim Meyering  <meyering@redhat.com>
25161
25162         ignore-value: new module
25163         * modules/ignore-value: New file.
25164         * lib/ignore-value.h: New file.
25165         * MODULES.html.sh (Compiler warning management): New section,
25166         just for this module.  More to come.
25167
25168 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25169
25170         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25171         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25172         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25173
25174 2008-10-16  Jim Meyering  <meyering@redhat.com>
25175
25176         openat-die.c: avoid 'no previous prototype' warning
25177         * lib/openat-die.c: Include "openat.h".
25178         Reported by Reuben Thomas <rrt@sc3d.org>.
25179
25180 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25181
25182         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25183         * lib/netdb.in.h: Fix typo.
25184         Reported by Bruno Haible  <bruno@clisp.org>
25185
25186         * lib/netdb.in.h: Include sys/socket.h for platforms without
25187         netdb.h, to get structures like hostent on MinGW.
25188         * modules/netdb (Depends-on): Add sys_socket.
25189
25190 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25191
25192         * modules/netdb, modules/netdb-tests: New file.
25193         * m4/netdb_h.m4: New file.
25194         * lib/netdb.in.h: Add, currently just an empty file pending
25195         definitions.
25196         * tests/test-netdb.c: New file.
25197         * doc/posix-headers/netdb.texi: Mention that we replace it if
25198         needed.
25199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25200         netdb.
25201
25202 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25203
25204         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25205         with code.
25206
25207 2008-10-13  Bruno Haible  <bruno@clisp.org>
25208
25209         * lib/glthread/cond.c (glthread_cond_wait_func,
25210         glthread_cond_timedwait_func): Add a comment.
25211
25212 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25213
25214         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25215         * tests/test-select.c: Likewise,
25216
25217 2008-10-13  Bruno Haible  <bruno@clisp.org>
25218
25219         * lib/glthread/cond.c (glthread_cond_wait_func,
25220         glthread_cond_timedwait_func): Fix variable name.
25221         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25222
25223 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25224
25225         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25227         struct sockaddr.sa_len.
25228         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25229
25230 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25231
25232         * build-aux/pmccabe2html: Add css and css_url parameters.
25233
25234 2008-10-12  Bruno Haible  <bruno@clisp.org>
25235
25236         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25237         calling aclx_get.
25238         Reported by Rainer Tammer <tammer@tammer.net>.
25239
25240 2008-10-12  Bruno Haible  <bruno@clisp.org>
25241
25242         Use msvcrt aware primitives for creation/termination of Win32 threads.
25243         * lib/glthread/thread.c: Include <process.h>.
25244         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25245         (wrapper_func): Update signature.
25246         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25247
25248 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25249             Bruno Haible  <bruno@clisp.org>
25250
25251         Provide a Win32 implementation of the 'cond' module.
25252         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25253         * lib/glthread/cond.c (glthread_cond_init_func,
25254         glthread_cond_wait_func, glthread_cond_timedwait_func,
25255         glthread_cond_signal_func, glthread_cond_broadcast_func,
25256         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25257         * modules/cond (Dependencies): Add gettimeofday.
25258
25259 2008-10-11  Bruno Haible  <bruno@clisp.org>
25260
25261         Make sleep work on older versions of mingw.
25262         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25263         only whether it exists.
25264         * doc/posix-functions/sleep.texi: Mention the problem with older
25265         versions of mingw.
25266
25267 2008-10-11  Bruno Haible  <bruno@clisp.org>
25268
25269         New module 'shutdown'.
25270         * modules/shutdown: New file.
25271         * lib/sys_socket.in.h (shutdown): New declaration.
25272         * lib/winsock.c (shutdown): New function.
25273         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25274         GNULIB_SHUTDOWN.
25275         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25276         * doc/posix-functions/shutdown.texi: Document the new module.
25277
25278 2008-10-11  Jim Meyering  <meyering@redhat.com>
25279
25280         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25281
25282 2008-10-11  Bruno Haible  <bruno@clisp.org>
25283
25284         New module 'fclose'.
25285         * modules/fclose: New file.
25286         * lib/stdio.in.h (fclose): New declaration.
25287         * lib/fclose.c: New file.
25288         * m4/fclose.m4: New file.
25289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25290         REPLACE_FCLOSE.
25291         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25292         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25293         REPLACE_FCLOSE.
25294         * modules/close (Depends-on): fclose.
25295         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25296
25297 2008-10-11  Bruno Haible  <bruno@clisp.org>
25298
25299         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25300         set errno and don't call _close.
25301
25302 2008-10-10  Bruno Haible  <bruno@clisp.org>
25303
25304         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25305         ACL, not afterwards. Fixes test failure on Cygwin.
25306
25307 2008-10-09  Ben Pfaff  <blp@gnu.org>
25308
25309         * build-aux/announce-gen: Fix gnulib version related part of usage
25310         message.  Die with a useful error message if no tarballs are
25311         found.
25312
25313 2008-10-10  Jim Meyering  <meyering@redhat.com>
25314
25315         bootstrap: use git's --depth=N option only if it's supported
25316         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25317         recognize the --depth option.  Reported by Pádraig Brady.
25318
25319 2008-10-09  Bruno Haible  <bruno@clisp.org>
25320
25321         New module 'ioctl'.
25322         * modules/ioctl: New file.
25323         * lib/sys_socket.in.h (ioctl): Remove declaration.
25324         * lib/winsock.c: Include <sys/ioctl.h>.
25325         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25326         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25327         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25328         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25329         * doc/posix-functions/ioctl.texi: Mention the new module.
25330
25331 2008-10-09  Bruno Haible  <bruno@clisp.org>
25332
25333         New module 'sys_ioctl'.
25334         * lib/sys_ioctl.in.h: New file.
25335         * m4/sys_ioctl_h.m4: New file.
25336         * modules/sys_ioctl: New file.
25337         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25338
25339 2008-10-09  Bruno Haible  <bruno@clisp.org>
25340
25341         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25342         * lib/winsock.c: Include <stdarg.h>.
25343         (rpl_ioctl): Change to second argument 'int' and then varargs.
25344
25345 2008-10-09  Bruno Haible  <bruno@clisp.org>
25346
25347         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25348         when the sys_socket module is present and the system has <winsock2.h>.
25349
25350 2008-10-09  Bruno Haible  <bruno@clisp.org>
25351
25352         * doc/posix-functions/close.texi: Mention module 'close' instead of
25353         module 'sys_socket'.
25354
25355 2008-10-09  Bruno Haible  <bruno@clisp.org>
25356
25357         * doc/glibc-headers/sys_ioctl.texi: New file.
25358         * doc/gnulib.texi: Include it.
25359
25360 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25361             Bruno Haible  <bruno@clisp.org>
25362
25363         Combine the two replacements of 'close'.
25364         * lib/sys_socket.in.h (close): Define to a reminder to include
25365         <unistd.h>.
25366         (_gl_close_fd_maybe_socket): New declaration.
25367         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25368         * lib/winsock.c (close): Remove undefinition.
25369         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25370         needed for the gnulib module 'close'.
25371         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25372         define to an error symbol or to a warning, if suitable.
25373         * lib/close.c: Include <sys/socket.h>.
25374         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25375         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25376         UNISTD_H_HAVE_WINSOCK2_H.
25377         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25379         UNISTD_H_HAVE_WINSOCK2_H.
25380         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25381         (configure.ac): Set a module indicator.
25382         (Makefile.am): Substitute GNULIB_CLOSE.
25383         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25384         * modules/poll-tests (Depends-on): Add close.
25385         * modules/select-tests (Depends-on): Likewise.
25386
25387 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25388             Bruno Haible  <bruno@clisp.org>
25389
25390         New module 'close'.
25391         * modules/close: New file.
25392         * lib/unistd.in.h (close): Move declaration out of the
25393         FCHDIR_REPLACEMENT scope.
25394         (_gl_unregister_fd): New declaration.
25395         * lib/close.c: New file.
25396         * lib/fchdir.c (rpl_close): Remove function.
25397         * m4/close.m4: New file.
25398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25399         close.
25400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25401         REPLACE_CLOSE.
25402         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25403         REPLACE_CLOSE.
25404         * modules/fchdir (Depends-on): Add close.
25405
25406 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25407             Bruno Haible  <bruno@clisp.org>
25408
25409         * lib/fcntl.in.h (open): Simplify conditionals.
25410         (_gl_register_fd): New declaration.
25411         * lib/fchdir.c (rpl_open): Remove function.
25412         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25413         also.
25414         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25416         open.
25417
25418 2008-10-09  Jim Meyering  <meyering@redhat.com>
25419
25420         GNUmakefile: use the more name-space-friendly "_version"
25421         * top/GNUmakefile (_dummy): Update.
25422         (_version): Rename from "version".
25423
25424 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25425             Bruno Haible  <bruno@clisp.org>
25426
25427         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25428         rpl_close.
25429         (_gl_register_fd): New function, extracted from rpl_open.
25430         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25431         (rpl_open, rpl_opendir): Use _gl_register_fd.
25432
25433 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25434
25435         Fix organization of 'open' replacement.
25436         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25437         (gl_FUNC_OPEN): Use it.
25438         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25439
25440 2008-10-08  Bruno Haible  <bruno@clisp.org>
25441
25442         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25443
25444 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25445
25446         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25447         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25448         listen).
25449
25450 2008-10-08  Eric Blake  <ebb9@byu.net>
25451
25452         GNUmakefile: add 'make version' target
25453         * top/GNUmakefile (_curr-ver): Split version update rules...
25454         (version): ...into a target.
25455
25456 2008-10-07  Bruno Haible  <bruno@clisp.org>
25457
25458         Use a more portable replacement expression for -0.0L.
25459         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25460         instead of -0.0L. Fix m4 quotation.
25461
25462         * tests/test-signbit.c: Include <float.h>.
25463         (minus_zero): New variable.
25464         (test_signbitl): Use minus_zero instead of -zero.
25465         * modules/signbit-tests (Depends-on): Add float.
25466
25467         * tests/test-ceill.c: Include <float.h>.
25468         (zero): Remove variable.
25469         (minus_zero): New variable.
25470         (main): Use minus_zero instead of -zero.
25471         * modules/ceill-tests (Depends-on): Add float.
25472
25473         * tests/test-floorl.c: Include <float.h>.
25474         (zero): Remove variable.
25475         (minus_zero): New variable.
25476         (main): Use minus_zero instead of -zero.
25477         * modules/floorl-tests (Depends-on): Add float.
25478
25479         * tests/test-roundl.c: Include <float.h>.
25480         (zero): Remove variable.
25481         (minus_zero): New variable.
25482         (main): Use minus_zero instead of -zero.
25483         * modules/roundl-tests (Depends-on): Add float.
25484
25485         * tests/test-truncl.c: Include <float.h>.
25486         (zero): Remove variable.
25487         (minus_zero): New variable.
25488         (main): Use minus_zero instead of -zero.
25489         * modules/truncl-tests (Depends-on): Add float.
25490
25491         * tests/test-frexpl.c (zero): Remove variable.
25492         (minus_zero): New variable.
25493         (main): Use minus_zero instead of -zero.
25494         * modules/frexpl-tests (Depends-on): Add float.
25495
25496         * tests/test-isnan.c (zerol): Remove variable.
25497         (minus_zerol): New variable.
25498         (test_long_double): Use minus_zerol instead of -zerol.
25499         * modules/isnan-tests (Depends-on): Add float.
25500
25501         * tests/test-isnanl.h (zero): Remove variable.
25502         (minus_zero): New variable.
25503         (main): Use minus_zero instead of -zero.
25504         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25505         * modules/isnanl-tests (Depends-on): Add float.
25506
25507         * tests/test-ldexpl.c (zero): Remove variable.
25508         (minus_zero): New variable.
25509         (main): Use minus_zero instead of -zero.
25510         * modules/ldexpl-tests (Depends-on): Add float.
25511
25512         * tests/test-snprintf-posix.h (zerol): Remove variable.
25513         (minus_zerol): New variable.
25514         (test_function): Use minus_zerol instead of -zerol.
25515         * modules/snprintf-posix-tests (Depends-on): Add float.
25516         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25517
25518         * tests/test-sprintf-posix.h (zerol): Remove variable.
25519         (minus_zerol): New variable.
25520         (test_function): Use minus_zerol instead of -zerol.
25521         * modules/sprintf-posix-tests (Depends-on): Add float.
25522         * modules/vsprintf-posix-tests (Depends-on): Add float.
25523
25524         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25525         (minus_zerol): New variable.
25526         (test_function): Use minus_zerol instead of -zerol.
25527         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25528
25529         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25530         (minus_zerol): New variable.
25531         (test_function): Use minus_zerol instead of -zerol.
25532         * modules/vasprintf-posix-tests (Depends-on): Add float.
25533
25534 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25535
25536         * MODULES.html.sh (Support for building documentation): Mention
25537         pmccabe2html.  Sort entries.
25538
25539         Add pmccabe2html module, from gnupdf.
25540         * build-aux/pmccabe.css: New file.
25541         * build-aux/pmccabe2html: New file.
25542         * m4/pmccabe2html.m4: New file.
25543         * modules/pmccabe2html: New file.
25544
25545 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25546
25547         flock: new module
25548         * MODULES.html.sh: Add to list of modules.
25549         * lib/flock.c: flock implementation for Windows and Unix systems
25550         which have fcntl.
25551         * doc/glibc-functions/flock.texi: Update documentation.
25552         * lib/sys_file.in.h: <sys/file.h> header file.
25553         * m4/flock.m4: M4 macros.
25554         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
25555         * modules/flock: flock module.
25556         * modules/flock-tests: flock tests module.
25557         * modules/sys_file: sys/file.h module.
25558         * tests/test-flock.c: test suite for flock.
25559
25560 2008-10-06  Jim Meyering  <meyering@redhat.com>
25561
25562         bootstrap: check for LT_INIT more portably still ;-)
25563         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
25564         Spotted by Bruno Haible.
25565
25566 2008-10-06  Eric Blake  <ebb9@byu.net>
25567
25568         test-signbit: avoid tripping Irix cc bug on -0.0L
25569         * tests/test-signbit.c (minus_zerol): Delete, and replace with
25570         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
25571         entire testsuite consistent and avoids an Irix 6.2 bug.
25572
25573 2008-10-05  Bruno Haible  <bruno@clisp.org>
25574             Jim Meyering  <jim@meyering.net>
25575
25576         Add an option for ignoring EPIPE during close_stdout.
25577         * lib/closeout.h: Include <stdbool.h>.
25578         (close_stdout_set_ignore_EPIPE): New declaration.
25579         * lib/closeout.c: Include <stdbool.h>.
25580         (ignore_EPIPE): New variable.
25581         (close_stdout_set_ignore_EPIPE): New function.
25582         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
25583         * lib/close-stream.c (close_stream): Mention the possible EPIPE
25584         failure.
25585         * modules/closeout (Depends-on): Add stdbool.
25586
25587 2008-10-05  Bruno Haible  <bruno@clisp.org>
25588
25589         * modules/accept: New file.
25590         * modules/bind: New file.
25591         * modules/connect: New file.
25592         * modules/getpeername: New file.
25593         * modules/getsockname: New file.
25594         * modules/getsockopt: New file.
25595         * modules/listen: New file.
25596         * modules/recv: New file.
25597         * modules/recvfrom: New file.
25598         * modules/send: New file.
25599         * modules/sendto: New file.
25600         * modules/setsockopt: New file.
25601         * modules/socket: New file.
25602         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
25603         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25604         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
25605         the particular module is requested. Add a link warning when the
25606         particular module is not requested.
25607         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
25608         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
25609         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
25610         the particular module is requested.
25611         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
25612         gl_SYS_SOCKET_H_DEFAULTS): New macros.
25613         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
25614         * modules/sys_socket (Depends-on): Add link-warning.
25615         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
25616         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
25617         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
25618         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
25619         GL_LINK_WARNING.
25620         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
25621         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
25622         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
25623         * doc/posix-functions/getpeername.texi: Mention the new module
25624         'getpeername'.
25625         * doc/posix-functions/getsockname.texi: Mention the new module
25626         'getsockname'.
25627         * doc/posix-functions/getsockopt.texi: Mention the new module
25628         'getsockopt'.
25629         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
25630         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
25631         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
25632         * doc/posix-functions/send.texi: Mention the new module 'send'.
25633         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
25634         * doc/posix-functions/setsockopt.texi: Mention the new module
25635         'setsockopt'.
25636         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
25637         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
25638         listen, connect, accept.
25639         * modules/select-tests (Depends-on): Likewise.
25640
25641 2008-10-05  Bruno Haible  <bruno@clisp.org>
25642
25643         * lib/winsock.c (strerror): Remove unused #undef.
25644         (rpl_close): Remove unused local variable.
25645
25646         * modules/sys_socket (Depends-on); Add errno.
25647
25648 2008-10-05  Bruno Haible  <bruno@clisp.org>
25649
25650         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
25651         (select): Add a link warning when the 'select' module is not used.
25652         * modules/sys_select (Depends-on): Add link-warning.
25653         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
25654         Suggested by Paolo Bonzini.
25655
25656 2008-10-05  Jim Meyering  <meyering@redhat.com>
25657
25658         bootstrap: check for LT_INIT more portably
25659         * build-aux/bootstrap: Avoid using grep -E, since it's not
25660         portable enough.  Suggestion from Bruno Haible.
25661
25662 2008-10-05  Bruno Haible  <bruno@clisp.org>
25663
25664         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
25665         as being fixed by gnulib.
25666
25667 2008-10-05  Bruno Haible  <bruno@clisp.org>
25668
25669         * modules/select-tests: New file, mostly copied from
25670         modules/sys_select-tests.
25671         * tests/test-select.c: New file, mostly copied from
25672         tests/test-sys_select.c.
25673         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
25674         * modules/sys_select-tests (Depends-on): Remove all dependencies.
25675         (Makefile.am): Remove test_sys_select_LDADD.
25676
25677         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
25678         to an undefined symbol, for an error message.
25679         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
25680         (gl_SYS_SELECT_H_DEFAULTS): New macro.
25681         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
25682         winsock-select.c here.
25683         * modules/sys_select (Files): Remove lib/winsock-select.c.
25684         (Depends-on): Remove alloca.
25685         (Makefile.am): Substitute GNULIB_SELECT.
25686         * modules/select: New file.
25687         * doc/posix-functions/select.texi: Update.
25688
25689 2008-10-05  Bruno Haible  <bruno@clisp.org>
25690
25691         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
25692         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
25693         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
25694         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
25695         getdtablesize.
25696         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
25697         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
25698
25699 2008-10-05  Bruno Haible  <bruno@clisp.org>
25700
25701         * modules/getdtablesize-tests: New file.
25702         * tests/test-getdtablesize.c: New file.
25703
25704         New module 'getdtablesize'.
25705         * lib/unistd.in.h (getdtablesize): New declaration.
25706         * lib/getdtablesize.c: New file.
25707         * m4/getdtablesize.m4: New file.
25708         * modules/getdtablesize: New file.
25709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25710         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
25711         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
25712         HAVE_GETDTABLESIZE.
25713         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
25714
25715 2008-10-05  Bruno Haible  <bruno@clisp.org>
25716
25717         * modules/sched (Makefile.am): Fix typo.
25718         Reported by Simon Josefsson.
25719
25720 2008-10-05  Jim Meyering  <meyering@redhat.com>
25721
25722         bootstrap: check for LT_INIT, too
25723         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
25724         are deprecated.  Suggestion from Ralf Wildenhues.
25725
25726 2008-10-05  Bruno Haible  <bruno@clisp.org>
25727
25728         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
25729         overriding them by ours.
25730         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
25731
25732 2008-10-05  Jim Meyering  <meyering@redhat.com>
25733
25734         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
25735         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
25736         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
25737
25738 2008-10-04  Bruno Haible  <bruno@clisp.org>
25739
25740         * modules/dup2 (License): Change to LGPLv2+.
25741         * modules/sleep (License): Likewise.
25742         * modules/perror (License): Likewise.
25743         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
25744         Blake.
25745         * modules/signal (License): Likewise.
25746         * modules/sigprocmask (License): Likewise.
25747         * modules/raise (License): Change to LGPLv2+, with approval by Jim
25748         Meyering.
25749
25750 2008-10-04  Bruno Haible  <bruno@clisp.org>
25751
25752         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
25753         Reported by Rainer Tammer <tammer@tammer.net>.
25754
25755 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
25756             Bruno Haible  <bruno@clisp.org>
25757
25758         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
25759         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
25760         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
25761
25762 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
25763
25764         filevercmp: new module
25765         * lib/filevercmp.h: New function filevercmp comparing version strings.
25766         * lib/filevercmp.c: Implementation of filevercmp function.
25767         * modules/filevercmp: Module metadata.
25768         * tests/test-filevercmp.c: Unit test for new module.
25769         * modules/filevercmp-tests: Unit test metadata.
25770         * MODULES.html.sh: Add filevercmp module.
25771
25772 2008-10-03  Bruno Haible  <bruno@clisp.org>
25773
25774         * lib/c-ctype.h: Add comment.
25775         Reported by Jim Meyering.
25776
25777 2008-10-02  Bruno Haible  <bruno@clisp.org>
25778
25779         * modules/posix_spawn-internal (Depends-on): Add 'open'.
25780
25781 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25782
25783         * build-aux/bootstrap: Allow renaming bootstrap, and change the
25784         name of bootstrap.conf accordingly.
25785
25786 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25787
25788         * build-aux/bootstrap: Install git-merge-changelog configuration
25789         items into .gitconfig if needed.
25790
25791 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25792
25793         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
25794         git repository, and initialize/update it accordingly.
25795
25796 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
25797
25798         * modules/fsync-tests: New file.
25799         * tests/test-fsync.c: New file.
25800
25801         New module 'fsync'.
25802         * lib/fsync.c: New file.
25803         * m4/fsync.m4: New file.
25804         * modules/fsync: New file.
25805         * lib/unistd.in.h (fsync): New declaration.
25806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
25807         GNULIB_FSYNC and HAVE_FSYNC.
25808         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
25809         * MODULES.html.sh (posix_functions): Add fsync.
25810         * doc/posix-functions/fsync.texi: Mention the new module.
25811
25812 2008-10-02  Jim Meyering  <meyering@redhat.com>
25813
25814         fts.c: sync with similar code from coreutils' remove.c
25815         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
25816         Guard also with "#if defined __linux__", since for now at least,
25817         this code is Linux-kernel-specific.
25818
25819 2008-10-02  Jim Meyering  <meyering@redhat.com>
25820
25821         fts: bug fixes
25822         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
25823         Include <sys/vfs.h>, not <sys/statfs.h>.
25824
25825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
25826         Include <sys/vfs.h>, not <sys/statfs.h>.
25827
25828 2008-10-01  Bruno Haible  <bruno@clisp.org>
25829
25830         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
25831         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
25832         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
25833         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
25834         * doc/posix-functions/posix_spawnp.texi: Likewise.
25835         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
25836         whether posix_spawn actually works.
25837         * m4/pipe.m4 (gl_PIPE): Likewise.
25838         * modules/execute (Files): Add m4/posix_spawn.m4.
25839         * modules/pipe (Files): Add m4/posix_spawn.m4.
25840         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
25841
25842 2008-10-01  Jim Meyering  <meyering@redhat.com>
25843
25844         remove trailing spaces
25845         * NEWS: Likewise.
25846         * lib/poll.c (poll): Likewise.
25847         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
25848         * lib/winsock.c (rpl_close): Likewise.
25849         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
25850         * modules/yield: Likewise.
25851         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
25852         * tests/test-sys_select.c (connect_to_socket): Likewise.
25853
25854         fts.c: adjust a new interface to be more generally useful
25855         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
25856         (fts_build): Adjust caller.
25857
25858 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25859
25860         * modules/cond-tests: New file.
25861         * tests/test-cond.c: New file.
25862
25863 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25864             Bruno Haible  <bruno@clisp.org>
25865
25866         * modules/cond (Dependencies): Add errno, time.
25867         * lib/glthread/cond.h: Include <time.h>.
25868         (gl_cond_define, gl_cond_define_initialized): Use the same definition
25869         across platforms.
25870
25871 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25872             Bruno Haible  <bruno@clisp.org>
25873
25874         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
25875
25876 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25877             Bruno Haible  <bruno@clisp.org>
25878
25879         * modules/tls-tests (Depends-on): Add thread, yield.
25880         (configure.ac): Remove all checks.
25881         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
25882         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25883         gl_thread_self): Remove definitions. Include glthread/thread.h and
25884         glthread/yield.h instead.
25885         (test_tls): Pass an additional NULL argument to gl_thread_join.
25886
25887 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25888             Bruno Haible  <bruno@clisp.org>
25889
25890         * modules/lock-tests (Depends-on): Add thread, yield.
25891         (configure.ac): Remove all checks.
25892         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
25893         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25894         gl_thread_self): Remove definitions. Include glthread/thread.h and
25895         glthread/yield.h instead.
25896         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
25897         additional NULL argument to gl_thread_join.
25898
25899 2008-09-30  Bruno Haible  <bruno@clisp.org>
25900
25901         Fix the Win32 implementation of the 'thread' module.
25902         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
25903         pointer type.
25904         (gl_thread_self): Invoke gl_thread_self_func.
25905         (gl_thread_self_func): New declaration.
25906         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
25907         (do_init_self_key, init_self_key): New functions.
25908         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
25909         Remove some fields.
25910         (running_threads, running_lock): Remove variables.
25911         (get_current_thread_handle): New function.
25912         (gl_thread_self_func, wrapper_func, glthread_create_func,
25913         glthread_join_func, gl_thread_exit_func): Largely rewritten and
25914         simplified.
25915
25916 2008-09-30  Bruno Haible  <bruno@clisp.org>
25917
25918         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
25919         files.
25920
25921 2008-09-30  Jim Meyering  <meyering@redhat.com>
25922
25923         fts.m4: correct the test for statfs.f_type
25924         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
25925         when checking for statfs.f_type.
25926
25927 2008-09-15  Simon Josefsson  <simon@josefsson.org>
25928
25929         tests: avoid some compiler warnings
25930         * tests/test-memchr.c (main): Pass NULL indirectly.
25931         * tests/test-getdate.c (main): Remove unused variable 'ret'.
25932
25933 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
25934
25935         getdate.y: disallow countable dayshifts like "4 yesterday ago"
25936         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
25937         exactly specified dayshifts.
25938         (dayshift): New rule.
25939         (rel): Add dayshift.
25940         (relative_time_table) [tomorrow, yesterday, today, now]:
25941         Use tDAY_SHIFT in place of tDAY_UNIT.
25942         * tests/test-getdate.c: Add tests for now-disallowed countable
25943         dayshifts, e.g., "4 yesterday ago".
25944
25945 2008-09-29  Bruno Haible  <bruno@clisp.org>
25946
25947         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
25948         * tests/test-posix_spawn1.in.sh: Renamed from
25949         tests/test-posix_spawn.in.sh.
25950         * tests/test-posix_spawn2.c: New file.
25951         * tests/test-posix_spawn2.in.sh: New file.
25952         * modules/posix_spawnp-tests (Files): Update.
25953         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
25954
25955 2008-09-29  Bruno Haible  <bruno@clisp.org>
25956
25957         Propagate effects of putenv/setenv/unsetenv to child processes.
25958         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
25959         * lib/pipe.c (create_pipe): Likewise.
25960
25961 2008-09-29  Bruno Haible  <bruno@clisp.org>
25962
25963         Enable use of shell scripts as executables in mingw.
25964         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
25965         run the program as a shell script.
25966         * lib/pipe.c (create_pipe): Likewise.
25967         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
25968         resulting array.
25969
25970 2008-09-29  Eric Blake  <ebb9@byu.net>
25971
25972         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
25973
25974 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
25975
25976         * doc/posix-functions/accept.texi: Update mingw problems.
25977         * doc/posix-functions/bind.texi: Update mingw problems.
25978         * doc/posix-functions/close.texi: Update mingw problems.
25979         * doc/posix-functions/connect.texi: Update mingw problems.
25980         * doc/posix-functions/getpeername.texi: Update mingw problems.
25981         * doc/posix-functions/getsockname.texi: Update mingw problems.
25982         * doc/posix-functions/getsockopt.texi: Update mingw problems.
25983         * doc/posix-functions/ioctl.texi: Update mingw problems.
25984         * doc/posix-functions/listen.texi: Update mingw problems.
25985         * doc/posix-functions/recv.texi: Update mingw problems.
25986         * doc/posix-functions/recvfrom.texi: Update mingw problems.
25987         * doc/posix-functions/select.texi: Update mingw problems.
25988         * doc/posix-functions/send.texi: Update mingw problems.
25989         * doc/posix-functions/sendto.texi: Update mingw problems.
25990         * doc/posix-functions/setsockopt.texi: Update mingw problems.
25991         * doc/posix-functions/socket.texi: Update mingw problems.
25992
25993 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
25994             Bruno Haible  <bruno@clisp.org>
25995
25996         * lib/sys_select.in.h: Include sys/time.h.
25997         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
25998         * modules/sys_select: Depend on sys_time.
25999         * tests/test-sys_select.c: Test that sys/select.h defines struct
26000         timeval fully.
26001
26002 2008-09-29  Bruno Haible  <bruno@clisp.org>
26003
26004         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26005         * lib/sys_select.in.h: Likewise.
26006
26007 2008-09-29  Bruno Haible  <bruno@clisp.org>
26008
26009         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26010
26011 2008-09-29  Bruno Haible  <bruno@clisp.org>
26012
26013         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26014         Set LIBSOCKET instead of augmenting LIBS.
26015         * modules/sockets (Link): New section.
26016         * modules/sockets-tests (test_sockets_LDADD): New variable.
26017         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26018         * modules/poll-tests (test_poll_LDADD): New variable.
26019         * NEWS: Document the change.
26020
26021 2008-09-29  Bruno Haible  <bruno@clisp.org>
26022
26023         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26024         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26025         ARPA_INET_H directly.
26026         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26027
26028 2008-09-28  Bruno Haible  <bruno@clisp.org>
26029
26030         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26031         from gl_HEADER_SYS_SOCKET.
26032         (gl_HEADER_SYS_SOCKET): Invoke it.
26033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26034
26035 2008-09-28  Bruno Haible  <bruno@clisp.org>
26036
26037         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26038         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26039         Needed on OSF/1 4.0.
26040
26041 2008-09-28  Bruno Haible  <bruno@clisp.org>
26042
26043         Override open more carefully.
26044         * lib/open.c (orig_open): New function.
26045         (rpl_open): Use orig_open instead of open.
26046         * lib/fcntl.in.h: Add special invocation convention.
26047         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26048         (gl_FUNC_OPEN): Invoke it.
26049
26050         Override freopen more carefully.
26051         * lib/freopen.c (orig_freopen): New function.
26052         (rpl_freopen): Use orig_freopen instead of freopen.
26053         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26054         (gl_FUNC_FREOPEN): Invoke it.
26055
26056         Override fopen more carefully.
26057         * lib/fopen.c (orig_fopen): New function.
26058         (rpl_fopen): Use orig_fopen instead of fopen.
26059         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26060         (gl_FUNC_FOPEN): Invoke it.
26061         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26062
26063 2008-09-28  Bruno Haible  <bruno@clisp.org>
26064
26065         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26066         SIGPIPE.
26067
26068 2008-09-28  Bruno Haible  <bruno@clisp.org>
26069
26070         * tests/test-sigaction.c (handler, main): Disable the check whether
26071         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26072         glibc systems with LinuxThreads.
26073
26074 2008-09-28  Bruno Haible  <bruno@clisp.org>
26075
26076         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26077
26078         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26079         with AIX xlc.
26080         * lib/fcntl.in.h (open): Likewise.
26081         Reported by Rainer Tammer <tammer@tammer.net>.
26082
26083 2008-09-28  Bruno Haible  <bruno@clisp.org>
26084
26085         * modules/posix_spawnp-tests: New file.
26086         * tests/test-posix_spawn.c: New file.
26087         * tests/test-posix_spawn.in.sh: New file.
26088
26089         New module 'posix_spawnp'.
26090         * modules/posix_spawnp: New file.
26091         * lib/spawnp.c: New file, from GNU libc with modifications.
26092         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26093
26094         New module 'posix_spawn'.
26095         * modules/posix_spawn: New file.
26096         * lib/spawn.c: New file, from GNU libc with modifications.
26097         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26098
26099         New module 'posix_spawnattr_destroy'.
26100         * modules/posix_spawnattr_destroy: New file.
26101         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26102         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26103         module.
26104
26105         New module 'posix_spawnattr_setsigmask'.
26106         * modules/posix_spawnattr_setsigmask: New file.
26107         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26108         modifications.
26109         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26110         new module.
26111
26112         New module 'posix_spawnattr_getsigmask'.
26113         * modules/posix_spawnattr_getsigmask: New file.
26114         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26115         modifications.
26116         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26117         new module.
26118
26119         New module 'posix_spawnattr_setsigdefault'.
26120         * modules/posix_spawnattr_setsigdefault: New file.
26121         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26122         modifications.
26123         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26124         new module.
26125
26126         New module 'posix_spawnattr_getsigdefault'.
26127         * modules/posix_spawnattr_getsigdefault: New file.
26128         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26129         modifications.
26130         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26131         new module.
26132
26133         New module 'posix_spawnattr_setschedpolicy'.
26134         * modules/posix_spawnattr_setschedpolicy: New file.
26135         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26136         modifications.
26137         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26138         new module.
26139
26140         New module 'posix_spawnattr_getschedpolicy'.
26141         * modules/posix_spawnattr_getschedpolicy: New file.
26142         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26143         modifications.
26144         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26145         new module.
26146
26147         New module 'posix_spawnattr_setschedparam'.
26148         * modules/posix_spawnattr_setschedparam: New file.
26149         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26150         modifications.
26151         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26152         new module.
26153
26154         New module 'posix_spawnattr_getschedparam'.
26155         * modules/posix_spawnattr_getschedparam: New file.
26156         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26157         modifications.
26158         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26159         new module.
26160
26161         New module 'posix_spawnattr_setpgroup'.
26162         * modules/posix_spawnattr_setpgroup: New file.
26163         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26164         modifications.
26165         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26166         module.
26167
26168         New module 'posix_spawnattr_getpgroup'.
26169         * modules/posix_spawnattr_getpgroup: New file.
26170         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26171         modifications.
26172         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26173         module.
26174
26175         New module 'posix_spawnattr_setflags'.
26176         * modules/posix_spawnattr_setflags: New file.
26177         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26178         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26179         module.
26180
26181         New module 'posix_spawnattr_getflags'.
26182         * modules/posix_spawnattr_getflags: New file.
26183         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26184         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26185         module.
26186
26187         New module 'posix_spawnattr_init'.
26188         * modules/posix_spawnattr_init: New file.
26189         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26190         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26191         module.
26192
26193         New module 'posix_spawn_file_actions_destroy'.
26194         * modules/posix_spawn_file_actions_destroy: New file.
26195         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26196         modifications.
26197         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26198         the new module.
26199
26200         New module 'posix_spawn_file_actions_addopen'.
26201         * modules/posix_spawn_file_actions_addopen: New file.
26202         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26203         modifications.
26204         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26205         the new module.
26206
26207         New module 'posix_spawn_file_actions_adddup2'.
26208         * modules/posix_spawn_file_actions_adddup2: New file.
26209         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26210         modifications.
26211         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26212         the new module.
26213
26214         New module 'posix_spawn_file_actions_addclose'.
26215         * modules/posix_spawn_file_actions_addclose: New file.
26216         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26217         modifications.
26218         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26219         the new module.
26220
26221         New module 'posix_spawn_file_actions_init'.
26222         * modules/posix_spawn_file_actions_init: New file.
26223         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26224         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26225         new module.
26226
26227         New module 'posix_spawn-internal'.
26228         * modules/posix_spawn-internal: New file.
26229         * lib/spawn_int.h: New file, from GNU libc with modifications.
26230         * lib/spawni.c: New file, from GNU libc with modifications.
26231         * m4/posix_spawn.m4: New file.
26232
26233         New module 'spawn'.
26234         * modules/spawn: New file.
26235         * lib/spawn.in.h: New file, from GNU libc with modifications.
26236         * m4/spawn_h.m4: New file.
26237         * doc/posix-headers/spawn.texi: Mention the new module.
26238
26239 2008-09-28  Bruno Haible  <bruno@clisp.org>
26240
26241         * modules/sched-tests: New file.
26242         * tests/test-sched.c: New file.
26243
26244         New module 'sched'.
26245         * modules/sched: New file.
26246         * lib/sched.in.h: New file.
26247         * m4/sched_h.m4: New file.
26248         * doc/posix-headers/sched.texi: Mention the new module.
26249
26250 2008-09-27  Eric Blake  <ebb9@byu.net>
26251
26252         Fix previous patch, and tweak references to $0.
26253         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26254         (func_version, func_gnulib_dir): Don't call this program
26255         gnulib-tool.
26256         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26257         with using $0 in function.
26258         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26259         (func_fatal_error): Reuse the name the user invoked us with.
26260
26261 2008-09-27  Bruno Haible  <bruno@clisp.org>
26262
26263         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26264         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26265         (gl_ICONV_H): Not here.
26266         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26267         instead of assigning ICONV_H directly.
26268
26269         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26271         WCHAR_H directly.
26272
26273 2008-09-27  Bruno Haible  <bruno@clisp.org>
26274
26275         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26276         * modules/arpa_inet (Depends-on): Add link-warning.
26277         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26278         * modules/unistd (Makefile.am): Likewise.
26279
26280 2008-09-26  Bruno Haible  <bruno@clisp.org>
26281
26282         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26283         variables.
26284         (func_version): Essentially copied from gnulib-tool.
26285         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26286         func_readlink): Copied from gnulib-tool.
26287
26288 2008-09-26  Bruno Haible  <bruno@clisp.org>
26289
26290         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26291         invoking git-version-gen.
26292
26293 2008-09-26  Bruno Haible  <bruno@clisp.org>
26294
26295         * posix-modules: Update to directory names changed on 2008-01-19.
26296         Remove commas in output before splitting into words. No more need to
26297         avoid 'ftruncate' since 2007-02-19.
26298
26299 2008-09-26  Bruno Haible  <bruno@clisp.org>
26300
26301         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26302
26303 2008-09-26  Bruno Haible  <bruno@clisp.org>
26304
26305         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26306         * modules/fwriteerror (Depends-on): Add errno.
26307
26308 2008-09-26  Bruno Haible  <bruno@clisp.org>
26309
26310         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26311         * tests/test-vc-list-files-cvs.sh: Likewise.
26312
26313 2008-09-26  Bruno Haible  <bruno@clisp.org>
26314
26315         * doc/posix-headers/sys_resource.texi: Reorder items.
26316
26317 2008-09-26  Jim Meyering  <meyering@redhat.com>
26318
26319         fts: tweak inode comparison function
26320         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26321         inode numbers, as documented.
26322
26323         fts: sort dirent entries on inode number before traversing
26324         This avoids a quadratic, seek-related performance penalty when
26325         operating on a directory containing many entries (measurable at 10k;
26326         3.5 hours at 2 million entries with a cold cache) on certain types
26327         of file systems, including ext3 and ext4, but not tmpfs.
26328         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26329         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26330         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26331         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26332         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26333         (fts_build): Set the stat.st_ino member from D_INO.
26334         If it is likely to be useful, sort dirent entries on inode number.
26335
26336         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26337         and the struct statfs.f_type member.
26338         * modules/fts (Depends-on): Add d-ino.
26339
26340 2008-09-26  Bruno Haible  <bruno@clisp.org>
26341
26342         * modules/sigpipe-die (Depends-on): Add sigpipe.
26343
26344         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26345         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26346         and GNULIB_STDIO_H_SIGPIPE are set.
26347         * lib/stdio-write.c: New file.
26348         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26349         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26350         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26351         REPLACE_STDIO_WRITE_FUNCS.
26352         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26353         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26354         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26355         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26356         * modules/stdio (Files): Add lib/stdio-write.c.
26357         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26358         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26359         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26360         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26361         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26362         REPLACE_FPRINTF_POSIX.
26363         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26364         REPLACE_PRINTF_POSIX.
26365         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26366         REPLACE_VFPRINTF_POSIX.
26367         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26368         REPLACE_VPRINTF_POSIX.
26369         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26370         SIGPIPE issue.
26371         * doc/posix-functions/fputc.texi: Likewise.
26372         * doc/posix-functions/fputs.texi: Likewise.
26373         * doc/posix-functions/fwrite.texi: Likewise.
26374         * doc/posix-functions/printf.texi: Likewise.
26375         * doc/posix-functions/putc.texi: Likewise.
26376         * doc/posix-functions/putchar.texi: Likewise.
26377         * doc/posix-functions/puts.texi: Likewise.
26378         * doc/posix-functions/vfprintf.texi: Likewise.
26379         * doc/posix-functions/vprintf.texi: Likewise.
26380
26381         * modules/safe-write (Depends-on): Add write.
26382
26383         * modules/sigpipe-tests: New file.
26384         * tests/test-sigpipe.c: New file.
26385         * tests/test-sigpipe.sh: New file.
26386
26387         * modules/write: New file.
26388         * lib/unistd.in.h: Include <sys/types.h>.
26389         (write): New declaration.
26390         * lib/write.c: New file.
26391         * m4/write.m4: New file.
26392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26393         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26394         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26395         GNULIB_WRITE, REPLACE_WRITE.
26396         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26397         and the SIGPIPE issue.
26398
26399         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26400         (raise): New declaration.
26401         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26402         (ext_signal): New function.
26403         (rpl_raise): New function.
26404         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26405         GNULIB_SIGNAL_H_SIGPIPE.
26406         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26407         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26408
26409         * modules/sigpipe: New file.
26410         * m4/sigpipe.m4: New file.
26411
26412 2008-09-25  Derek Price  <derek@ximbiot.com>
26413             Bruno Haible  <bruno@clisp.org>
26414
26415         * gnulib-tool (func_import): Report all license incompatibilities, not
26416         just the first one.
26417
26418 2008-09-25  Bruno Haible  <bruno@clisp.org>
26419
26420         * gnulib-tool (func_import): When computing the edits, consider not
26421         only the Makefile.ams that exist but also those that will be generated.
26422
26423 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26424
26425         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26426         fixes gnulib-tool --test warning about duplicate dependency.
26427
26428 2008-09-25  Bruno Haible  <bruno@clisp.org>
26429
26430         * gnulib-tool: Don't ask the user to perform edits in the generated
26431         Makefile.ams.
26432         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26433         apply to the Makefile.am being generated.
26434         (func_emit_tests_Makefile_am): Execute edits that apply to the
26435         Makefile.am being generated.
26436         (func_import): Setup list of Makefile.am edits before emitting the
26437         Makefile.ams, not at the end.
26438         (func_create_testdir): Update.
26439         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26440
26441 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26442
26443         * gnulib-tool (func_import): Store the --tests-base option in the
26444         comment in gnulib-cache.m4.
26445
26446 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26447
26448         * NEWS: Document increased portability that sys_select now provides.
26449
26450         * lib/sys_select.in.h: Install select wrapper.
26451         * lib/sys_socket.in.h: Use more descriptive name when there is no
26452         select wrapper.
26453         * lib/winsock-select.c: New.
26454         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26455         Require gl_HEADER_SYS_SOCKET.
26456         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26457         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26458         * tests/test-sys_select.c: Add functional tests.
26459
26460 2008-09-24  Eric Blake  <ebb9@byu.net>
26461
26462         open, fopen: close fd leak in last patch
26463         * lib/open.c (rpl_open): Close fd before returning error.
26464         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26465         * doc/posix-functions/open.texi (open): Document that Irix also
26466         has the bug.
26467         * doc/posix-functions/fopen.texi (fopen): Likewise.
26468         Reported by Paolo Bonzini.
26469
26470 2008-09-24  Bruno Haible  <bruno@clisp.org>
26471
26472         Ensure that a filename ending in a slash cannot be used to access a
26473         non-directory.
26474         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26475         to check whether it's really a directory.
26476         * lib/fopen.c: Include fcntl.h, unistd.h.
26477         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26478         and fdopen().
26479         * modules/fopen (Depends-on): Add unistd.
26480         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26481         * tests/test-fopen.c (main): Likewise.
26482         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26483         * doc/posix-functions/fopen.texi: Likewise.
26484         Reported by Eric Blake.
26485
26486 2008-09-23  Eric Blake  <ebb9@byu.net>
26487
26488         c-stack: avoid compiler optimizations when provoking overflow
26489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26490         recursion harder to optimize, to ensure a stack overflow occurs.
26491         * tests/test-c-stack.c (recurse): Likewise.
26492         Borrowed from libsigsegv.
26493
26494         c-stack: work around Irix sigaltstack bug
26495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26496         whether sigaltstack uses wrong end of stack_t (copied in part from
26497         libsigsegv).
26498         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26499         Irix bug, without requiring an over-allocation.
26500         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26501         bug.
26502
26503         fopen: document mingw bug on directories
26504         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26505         not allowing a stream visiting a directory, even though reading
26506         from such a stream is not portable.
26507
26508 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26509
26510         * lib/poll.c: Rewrite.
26511         * modules/poll: Depend on alloca.
26512
26513 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26514
26515         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26516         instead define prototypes for a full set of wrappers.  Ensure
26517         that Cygwin does not use the compatibility code, which is only
26518         for MinGW.
26519         * lib/winsock.c: New.
26520         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26521         * modules/sys_socket: Add lib/winsock.c.
26522
26523         * modules/poll-tests: Add errno and perror.
26524         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26525
26526 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26527
26528         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26529
26530 2008-09-23  Bruno Haible  <bruno@clisp.org>
26531
26532         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26533         * doc/glibc-functions/*: Likewise.
26534
26535 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26536
26537         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26538         success.
26539
26540 2008-09-22  Eric Blake  <ebb9@byu.net>
26541             Bruno Haible  <bruno@clisp.org>
26542
26543         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26544         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26545         supply %A but mishandle pseudo-NaN.
26546         Reported by Simon Josefsson.
26547
26548 2008-09-21  Bruno Haible  <bruno@clisp.org>
26549
26550         * tests/test-lock.c (main): Tweak skip message.
26551         * tests/test-tls.c (main): Likewise.
26552
26553 2008-09-21  Bruno Haible  <bruno@clisp.org>
26554
26555         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
26556         whether 'struct sigaction' has sa_sigaction here...
26557         (gl_PREREQ_SIG_HANDLER_H): ... not here.
26558         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
26559
26560 2008-09-21  Bruno Haible  <bruno@clisp.org>
26561
26562         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
26563         section.
26564         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
26565         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
26566         the new section.
26567         (Support for obsolete systems lacking POSIX:2001): New section.
26568         (String handling <string.h>): Move strdup to the new section.
26569         Suggested by Simon Josefsson and Paolo Bonzini.
26570
26571 2008-09-21  Bruno Haible  <bruno@clisp.org>
26572
26573         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
26574         exponents in %e and %g results on 'long double'. Needed for mingw's
26575         improved *printf functions.
26576         * tests/test-vasprintf-posix.c (test_function): Likewise.
26577         * tests/test-snprintf-posix.h (test_function): Likewise.
26578         * tests/test-sprintf-posix.h (test_function): Likewise.
26579         Reported by Eric Blake.
26580
26581 2008-09-21  Bruno Haible  <bruno@clisp.org>
26582
26583         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
26584         * tests/test-sprintf-posix.h (test_function): Likewise.
26585
26586 2008-09-21  Bruno Haible  <bruno@clisp.org>
26587
26588         * modules/getpass (Depends-on): Add strdup-posix.
26589
26590         New module 'strdup-posix'.
26591         * modules/strdup-posix: New file.
26592         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
26593         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
26594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26595         REPLACE_STRDUP.
26596         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
26597         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
26598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26599         strdup-posix.
26600
26601         * modules/strdup (Depends-on): Remove malloc-posix.
26602
26603 2008-09-20  Bruno Haible  <bruno@clisp.org>
26604
26605         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
26606         Wildenhues.
26607
26608 2008-09-20  Bruno Haible  <bruno@clisp.org>
26609
26610         Ensure that wint_t gets defined on IRIX 5.3.
26611         * lib/wchar.in.h (wint_t): Define if not defined by the system.
26612         * lib/wctype.in.h (wint_t): Likewise.
26613         (__wctype_wint_t): Remove type.
26614         (isw*): Use wint_t instead of __wctype_wint_t.
26615         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
26616         * modules/wchar (Files): Add m4/wint_t.m4.
26617         (Makefile.am): Substitute HAVE_WINT_T.
26618         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
26619         * tests/test-wctype.c: Check that wint_t is defined.
26620         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
26621         * doc/posix-headers/wctype.texi: Likewise.
26622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26623
26624 2008-09-18  Bruno Haible  <bruno@clisp.org>
26625
26626         * gnulib-tool (func_exit): Update comment.
26627
26628 2008-09-18  Simon Josefsson  <simon@josefsson.org>
26629
26630         * modules/getaddrinfo (Depends-on): Remove strdup, this module
26631         assumes strdup exists and does not depend on strdup to return
26632         ENOMEM on out of memory conditions.
26633
26634 2008-09-18  Bruno Haible  <bruno@clisp.org>
26635
26636         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
26637         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
26638         digits for the exponent.
26639
26640 2008-09-18  Jim Meyering  <meyering@redhat.com>
26641             Bruno Haible  <bruno@clisp.org>
26642
26643         * lib/vasnprintf.c (decimal_point_char): Define also if
26644         NEED_PRINTF_INFINITE_LONG_DOUBLE.
26645
26646 2008-09-16  Bruno Haible  <bruno@clisp.org>
26647         and Eric Blake  <ebb9@byu.net>
26648
26649         vasnprintf: support Irix 5.3
26650         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
26651         that mishandle long double infinity.
26652         Reported by Tom G. Christensen.
26653
26654 2008-09-16  Bruno Haible  <bruno@clisp.org>
26655
26656         * doc/glibc-functions/scandir.texi: Mention the function is missing on
26657         Solaris 9.
26658         * doc/glibc-functions/alphasort.texi: Likewise.
26659         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
26660
26661 2008-09-16  Jim Meyering  <meyering@redhat.com>
26662
26663         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
26664         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
26665         a umask modification leak out of a subshell.  Otherwise, the
26666         opensolaris /bin/sh would be accepted and thus cause unwarranted
26667         failures in the coreutils test suite.
26668
26669 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
26670
26671         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
26672         to succeed.
26673
26674 2008-09-16  Jim Meyering  <meyering@redhat.com>
26675
26676         avoid spurious test failure when library is built without ACL support
26677         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
26678         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
26679         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
26680         * tests/test-copy-acl.sh: Likewise.
26681
26682 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26683
26684         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
26685         based on character occurrence counts.
26686
26687 2008-09-15  Eric Blake  <ebb9@byu.net>
26688
26689         tests: avoid some compiler warnings
26690         * tests/test-memchr.c (main): Pass NULL indirectly.
26691         * tests/test-closein.c (main): Avoid unused variable.
26692
26693 2008-09-15  Bruno Haible  <bruno@clisp.org>
26694
26695         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
26696         are missing on OpenBSD 4.0 individually.
26697         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26698
26699 2008-09-15  Bruno Haible  <bruno@clisp.org>
26700
26701         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
26702         * doc/posix-functions/strerror.texi: Mention also Cygwin.
26703         * doc/posix-functions/perror.texi: Likewise.
26704         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
26705         is missing.
26706         Reported by Eric Blake.
26707
26708         * lib/errno.in.h: Use replacement values >= 2000.
26709         Reported by Eric Blake.
26710
26711 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26712
26713         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
26714         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
26715         limit.
26716         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
26717         compareseq was aborted.
26718
26719 2008-09-14  Bruno Haible  <bruno@clisp.org>
26720
26721         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
26722         yvec_edit_count.
26723         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
26724         (fstrcmp_bounded): Simplify result computation accordingly.
26725
26726 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26727
26728         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
26729         (fstrcmp): Define in terms of fstrcmp_bounded.
26730         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
26731         lower_bound argument.
26732         Return quickly if the result is certainly < lower_bound.
26733         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
26734
26735 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26736
26737         * lib/diffseq.h (EARLY_ABORT): New macro.
26738         (compareseq): Change return type to bool. Return true when EARLY_ABORT
26739         evaluates to true.
26740
26741 2008-09-14  Bruno Haible  <bruno@clisp.org>
26742
26743         * modules/perror-tests: New file.
26744         * tests/test-perror.sh: New file.
26745         * tests/test-perror.c: New file.
26746
26747         New module 'perror'.
26748         * lib/stdio.in.h (perror): New declaration.
26749         * lib/perror.c: New file.
26750         * m4/perror.m4: New file.
26751         * modules/perror: New file.
26752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
26753         * doc/posix-functions/perror.texi: Mention the perror module.
26754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
26755         REPLACE_PERROR.
26756         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
26757         REPLACE_PERROR.
26758
26759 2008-09-14  Bruno Haible  <bruno@clisp.org>
26760
26761         * modules/stdio (Makefile.am): Reorder to match the order in
26762         lib/stdio.in.h.
26763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26764
26765 2008-09-13  Bruno Haible  <bruno@clisp.org>
26766
26767         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
26768
26769 2008-09-13  Bruno Haible  <bruno@clisp.org>
26770
26771         Extend strerror to cover the added errno values.
26772         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
26773         (rpl_strerror): Provide error messages for the added errno values and
26774         for the WSA* values.
26775         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
26776         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
26777         strerror.
26778         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
26779         * modules/strerror (Depends-on): Add errno.
26780         * doc/posix-functions/strerror.texi: Document the change.
26781         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
26782         and EOVERFLOW.
26783
26784 2008-09-13  Bruno Haible  <bruno@clisp.org>
26785
26786         * modules/EOVERFLOW: Remove file.
26787         * m4/eoverflow.m4: Remove file.
26788         * modules/EOVERFLOW-tests: Remove file.
26789         * tests/test-EOVERFLOW.c: Remove file.
26790         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
26791         * modules/ftell (Depends-on): Likewise.
26792         * modules/getdelim (Depends-on): Likewise.
26793         * modules/getugroups (Depends-on): Likewise.
26794         * modules/poll (Depends-on): Likewise.
26795         * modules/snprintf (Depends-on): Likewise.
26796         * modules/sprintf-posix (Depends-on): Likewise.
26797         * modules/vasnprintf (Depends-on): Likewise.
26798         * modules/vasprintf (Depends-on): Likewise.
26799         * modules/vfprintf-posix (Depends-on): Likewise.
26800         * modules/vsnprintf (Depends-on): Likewise.
26801         * modules/vsprintf-posix (Depends-on): Likewise.
26802         * modules/xvasprintf (Depends-on): Likewise.
26803         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26804         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
26805         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
26806         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
26807         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26808         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
26809         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
26810         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
26811         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26812         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
26813         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
26814         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
26815         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26816         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
26817         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
26818         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
26819         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26820         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
26821         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
26822         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
26823         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26824         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
26825         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
26826         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
26827         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
26828         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26829         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
26830         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
26831         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
26832         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
26833         * MODULES.html.sh: Remove EOVERFLOW.
26834         * NEWS: Mention the change.
26835
26836 2008-09-13  Bruno Haible  <bruno@clisp.org>
26837
26838         * modules/errno-tests: New file.
26839         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
26840
26841         * lib/errno.in.h: New file.
26842         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
26843         * modules/errno: New file.
26844         * doc/posix-headers/errno.texi: Update documentation.
26845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
26846
26847 2008-09-13  Bruno Haible  <bruno@clisp.org>
26848
26849         * tests/test-poll.c: Use #if for native Windows, rather than testing
26850         __MSVCRT__.
26851
26852 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26853             Bruno Haible  <bruno@clisp.org>
26854
26855         * lib/glob.c: Don't include <pwd.h> on native Windows.
26856         (WINDOWS32): New macro.
26857         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
26858
26859 2008-09-13  Bruno Haible  <bruno@clisp.org>
26860
26861         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
26862         (ETIMEDOUT): Remove macro.
26863         (glthread_cond_timedwait_multithreaded): New declaration.
26864         (glthread_cond_timedwait): Use it.
26865         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
26866         (glthread_cond_timedwait_multithreaded): New function.
26867
26868 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26869
26870         * modules/poll-tests: Do not check for io.h.
26871         * tests/test-poll.c: Check for __MSVCRT__ instead.
26872
26873 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26874
26875         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
26876         * modules/poll-tests: Add inet_pton, stdbool, sockets.
26877         * tests/test-poll.c: Use them.  Use _pipe on Windows.
26878
26879 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26880
26881         * modules/poll-tests: New.
26882         * tests/test-poll.c: New.
26883
26884 2008-09-12  Eric Blake  <ebb9@byu.net>
26885
26886         frexp: test for NetBSD failure on -0.0
26887         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
26888         not all, bugs from NetBSD 3.0 have been fixed.
26889         * doc/posix-functions/frexp.texi (frexp): Document bug.
26890         Reported by Thomas Klausner.
26891
26892         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
26893         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
26894         literal -0.0.
26895         Reported by Jonathan C. Patschke <jp@centtech.com>.
26896
26897 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26898
26899         * lib/glthread/cond.h: Use dummy implementation also if
26900         USE_WIN32_THREADS.
26901
26902 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26903
26904         * modules/fnmatch-posix (License): Change to LGPLv2+.
26905         * modules/fnmatch-gnu (License): Likewise.
26906
26907 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26908
26909         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
26910
26911 2008-09-11  Jim Meyering  <meyering@redhat.com>
26912
26913         * users.txt: Add gtk-vnc.
26914
26915 2008-09-08  Simon Josefsson  <simon@josefsson.org>
26916
26917         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
26918         rotate amounts.
26919
26920         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
26921         required for 16-bit and 8-bit rotates.
26922         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
26923         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
26924         UINT8_MAX instead of hard-coded constants.
26925         Suggested by Paul Eggert.
26926
26927 2008-09-07  Bruno Haible  <bruno@clisp.org>
26928
26929         * tests/test-striconveh.c (main): Check behaviour when converting from
26930         UTF-7.
26931
26932         Make striconveh work better with stateful encodings.
26933         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
26934         that iconv does not increment the inptr when returning -1/EINVAL.
26935
26936 2008-09-07  Bruno Haible  <bruno@clisp.org>
26937
26938         * build-aux/config.rpath: Update according to libtool-2.2.6.
26939         * build-aux/config.libpath: Likewise.
26940
26941 2008-09-06  Bruno Haible  <bruno@clisp.org>
26942
26943         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
26944         * lib/freadptr.c (freadptr): Likewise.
26945         * lib/freadseek.c (freadptrinc): Likewise.
26946         Reported by Simon Josefsson.
26947
26948 2008-09-06  Bruno Haible  <bruno@clisp.org>
26949
26950         * modules/freadptr (License): Change to LGPLv2+.
26951         * modules/freadseek (License): Likewise.
26952         Suggested by Eric Blake.
26953
26954         * modules/memchr2 (License): Change to LGPLv2+.
26955         Approved by Eric Blake.
26956
26957 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26958             Bruno Haible  <bruno@clisp.org>
26959
26960         Make gnulib-tool work with native 'sed' on AIX.
26961         * gnulib-tool (sed_noop): New variable.
26962         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
26963         func_add_or_update, func_create_testdir): Use it to initialize sed
26964         script variables.
26965         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26966
26967 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
26968             Bruno Haible  <bruno@clisp.org>
26969
26970         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
26971         also works after #include directives.
26972
26973 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
26974
26975         getdate.y: reject an out-of-range timezone value
26976         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
26977         the range [-24...+24].  When specified with only one or two digits,
26978         * tests/test-getdate.c: Tests for the fix.
26979         * doc/getdate.texi: Document this change.
26980
26981 2008-09-03  Bruno Haible  <bruno@clisp.org>
26982
26983         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
26984
26985 2008-09-02  Simon Josefsson  <simon@josefsson.org>
26986
26987         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
26988         <bruce.korb@gmail.com> with ideas from Ben Pfaff
26989         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
26990         Blake <ebb9@byu.net>.
26991
26992         * tests/test-bitrotate.c: Add more test vectors.
26993
26994 2008-09-02  Eric Blake  <ebb9@byu.net>
26995
26996         vasnprintf-posix: handle large precision via %.*d
26997         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
26998         when handling it ourselves.
26999         * tests/test-vasnprintf-posix.c (test_function): Add test.
27000         * tests/test-snprintf-posix.h (test_function): Likewise.
27001         * tests/test-sprintf-posix.h (test_function): Likewise.
27002         * tests/test-vasprintf-posix.c (test_function): Likewise.
27003         Reported by Alain Guibert.
27004
27005 2008-09-01  Eric Blake  <ebb9@byu.net>
27006
27007         c-stack: make configure-time check more robust
27008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27009         successful sigaction call.
27010         Reported by Tom G. Christensen.
27011
27012 2008-09-01  Bruno Haible  <bruno@clisp.org>
27013
27014         New module 'findprog-lgpl'.
27015         * modules/findprog-lgpl: New file.
27016         * lib/findprog-lgpl.c: New file.
27017         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27018         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27019         to decide whether to use strdup or xstrdup, concatenated_filename or
27020         xconcatenated_filename.
27021
27022 2008-09-01  Bruno Haible  <bruno@clisp.org>
27023
27024         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27025         'xconcat-filename' (GPL).
27026         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27027         (License): Change to LGPLv2+.
27028         * modules/xconcat-filename: New file.
27029         * lib/concat-filename.h (concatenated_filename): Change specification.
27030         (xconcatenated_filename): New declaration.
27031         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27032         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27033         memory situations.
27034         * lib/xconcat-filename.c: New file.
27035         * NEWS: Mention the change.
27036         * lib/findprog.c: Include concat-filename.h, not filename.h.
27037         (find_in_path): Use xconcatenated_filename instead of
27038         concatenated_filename.
27039         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27040         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27041         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27042         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27043         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27044         instead of concatenated_filename.
27045         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27046         (execute_java_class): Use xconcatenated_filename instead of
27047         concatenated_filename.
27048         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27049         * modules/javacomp (Depends-on): Likewise.
27050         * modules/javaexec (Depends-on): Likewise.
27051
27052 2008-09-01  Bruno Haible  <bruno@clisp.org>
27053
27054         Split module 'filename' into 'filename' and 'concat-filename'.
27055         * modules/filename: Keep only lib/filename.h.
27056         (License): Change to LGPLv2+.
27057         * modules/concat-filename: New file, extracted from modules/filename.
27058         * lib/filename.h (concatenated_filename): Remove declaration.
27059         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27060         * lib/concat-filename.c: Include concat-filename.h.
27061         * NEWS: Mention the change.
27062
27063 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27064
27065         * lib/bitrotate.h (rotl8, rotr8): Add.
27066
27067         * modules/bitrotate (configure.ac): Need
27068         AC_REQUIRE([AC_C_INLINE]).
27069         (Description): Mention stdint.h.  Reported by Bruno Haible
27070         <bruno@clisp.org>.
27071
27072         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27073         Paolo Bonzini <bonzini@gnu.org>.
27074
27075 2008-08-31  Bruno Haible  <bruno@clisp.org>
27076
27077         Assume Solaris specific bi-arch conventions on Solaris systems.
27078         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27079         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27081         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27082         like acl_libdirstem.
27083         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27084         acl_libdirstem.
27085         * NEWS: Mention the change.
27086         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27087
27088 2008-08-31  Jim Meyering  <meyering@redhat.com>
27089
27090         * lib/strftime.h: Add comments describing the two added arguments.
27091
27092         remove duplicate #include directives
27093         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27094         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27095
27096 2008-08-31  Bruno Haible  <bruno@clisp.org>
27097
27098         New module 'sigpipe-die'.
27099         * modules/sigpipe-die: New file.
27100         * lib/sigpipe-die.h: New file.
27101         * lib/sigpipe-die.c: New file.
27102         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27103
27104 2008-08-31  Bruno Haible  <bruno@clisp.org>
27105
27106         Don't override previously installed signal handlers.
27107         * lib/fatal-signal.c (saved_sigactions): New variable.
27108         (uninstall_handlers): Reset the signal to the saved handler, not
27109         to SIG_DFL (except when ignored).
27110         (install_handlers): Save the previous handlers.
27111
27112 2008-08-30  Bruno Haible  <bruno@clisp.org>
27113
27114         * gnulib-tool (func_reset_sigpipe): New function.
27115         (func_get_automake_snippet, func_modules_transitive_closure,
27116         func_import): Invoke it before a join command that reads from stdin,
27117         to avoid "echo: write error: Broken pipe" error messages on stderr.
27118         Reported by Sam Steingold <sds@gnu.org>.
27119
27120 2008-08-30  Bruno Haible  <bruno@clisp.org>
27121
27122         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27123         Code copied from m4/open.m4.
27124         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27125         access and the filename ends in a slash. Code copied from lib/open.c.
27126         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27127         * tests/test-fopen.c (main): Check against bug with trailing slash.
27128
27129 2008-08-29  Bruno Haible  <bruno@clisp.org>
27130
27131         Avoid some "gcc -pedantic" warnings.
27132         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27133         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27134         * lib/dirent.in.h: Likewise.
27135         * lib/fcntl.in.h: Likewise.
27136         * lib/float.in.h: Likewise.
27137         * lib/iconv.in.h: Likewise.
27138         * lib/inttypes.in.h: Likewise.
27139         * lib/locale.in.h: Likewise.
27140         * lib/math.in.h: Likewise.
27141         * lib/netinet_in.in.h: Likewise.
27142         * lib/search.in.h: Likewise.
27143         * lib/signal.in.h: Likewise.
27144         * lib/stdarg.in.h: Likewise.
27145         * lib/stdint.in.h: Likewise.
27146         * lib/stdio.in.h: Likewise.
27147         * lib/stdlib.in.h: Likewise.
27148         * lib/string.in.h: Likewise.
27149         * lib/strings.in.h: Likewise.
27150         * lib/sys_select.in.h: Likewise.
27151         * lib/sys_socket.in.h: Likewise.
27152         * lib/sys_stat.in.h: Likewise.
27153         * lib/sys_time.in.h: Likewise.
27154         * lib/sysexits.in.h: Likewise.
27155         * lib/time.in.h: Likewise.
27156         * lib/unistd.in.h: Likewise.
27157         * lib/wchar.in.h: Likewise.
27158         * lib/wctype.in.h: Likewise.
27159         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27160         * modules/fchdir (Makefile.am): Likewise.
27161         * modules/fcntl (Makefile.am): Likewise.
27162         * modules/float (Makefile.am): Likewise.
27163         * modules/iconv_open (Makefile.am): Likewise.
27164         * modules/inttypes (Makefile.am): Likewise.
27165         * modules/locale (Makefile.am): Likewise.
27166         * modules/math (Makefile.am): Likewise.
27167         * modules/netinet_in (Makefile.am): Likewise.
27168         * modules/search (Makefile.am): Likewise.
27169         * modules/signal (Makefile.am): Likewise.
27170         * modules/stdarg (Makefile.am): Likewise.
27171         * modules/stdint (Makefile.am): Likewise.
27172         * modules/stdio (Makefile.am): Likewise.
27173         * modules/stdlib (Makefile.am): Likewise.
27174         * modules/string (Makefile.am): Likewise.
27175         * modules/strings (Makefile.am): Likewise.
27176         * modules/sys_select (Makefile.am): Likewise.
27177         * modules/sys_socket (Makefile.am): Likewise.
27178         * modules/sys_stat (Makefile.am): Likewise.
27179         * modules/sys_time (Makefile.am): Likewise.
27180         * modules/sysexits (Makefile.am): Likewise.
27181         * modules/time (Makefile.am): Likewise.
27182         * modules/unistd (Makefile.am): Likewise.
27183         * modules/wchar (Makefile.am): Likewise.
27184         * modules/wctype (Makefile.am): Likewise.
27185         Reported by Reuben Thomas <rrt@sc3d.org>.
27186
27187 2008-08-29  Bruno Haible  <bruno@clisp.org>
27188
27189         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27190         any more.
27191
27192 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27193
27194         * MODULES.html.sh (Misc): Add bitrotate.
27195
27196         * modules/bitrotate: New file.
27197
27198         * lib/bitrotate.h: New file.
27199
27200         * modules/bitrotate-tests: New file.
27201
27202         * tests/test-bitrotate.c: New file.
27203
27204         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27205         on the bitrotate module.
27206
27207         * lib/arctwo.c: Use new bitrotate module.
27208
27209 2008-08-29  Jim Meyering  <meyering@redhat.com>
27210
27211         bootstrap: merge changes from coreutils
27212         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27213         of copied files.  Remove a kludge, now that this is fixed.
27214         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27215         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27216         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27217
27218 2008-08-29  Bruno Haible  <bruno@clisp.org>
27219
27220         * MODULES.html.sh: Remove --cvs-urls option.
27221
27222 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27223
27224         maint.mk: adjust to file name change
27225         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27226
27227 2008-08-28  Jim Meyering  <meyering@redhat.com>
27228
27229         * modules/getndelim2 (License): Relicense to LGPLv2+.
27230         Approved by Richard Stallman for the version of 1995, and by
27231         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27232
27233 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27234
27235         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27236         dummy if one is not available.  Do not touch them if
27237         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27238         (getc_maybe_unlocked): New.
27239         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27240
27241 2008-08-26  Eric Blake  <ebb9@byu.net>
27242
27243         doc/INSTALL: resync from autoconf
27244         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27245         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27246         moving...
27247         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27248         * INSTALL: Regenerate.
27249         * INSTALL.ISO: New file.
27250         * INSTALL.UTF-8: Likewise.
27251
27252 2008-08-26  Jim Meyering  <meyering@redhat.com>
27253
27254         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27255         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27256         these definitions conditional, so that they may be overridden, too.
27257
27258 2008-08-26  Bruno Haible  <bruno@clisp.org>
27259
27260         Generate INSTALL file variants with prettier quotes.
27261         * doc/Makefile (INSTALL_PRELUDE): New macro.
27262         (INSTALL): Use it.
27263         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27264
27265 2008-08-26  Bruno Haible  <bruno@clisp.org>
27266
27267         Run makeinfo in an English locale.
27268         * doc/Makefile (MAKEINFO): New variable.
27269
27270 2008-08-26  Bruno Haible  <bruno@clisp.org>
27271
27272         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27273         Suggested by Eric Blake.
27274
27275 2008-08-25  Bruno Haible  <bruno@clisp.org>
27276
27277         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27278
27279 2008-08-25  Eric Blake  <ebb9@byu.net>
27280
27281         c-stack: test that stack overflow can be caught
27282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27283         that platform allows handling stack overflow; at least OS/2 EMX
27284         has sigaltstack, but crashes before transferring control to
27285         handler on stack overflow.
27286         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27287         check for HAVE_STACK_OVERFLOW_HANDLING.
27288         Reported by Elbert Pol.
27289
27290 2008-08-25  Bruno Haible  <bruno@clisp.org>
27291
27292         * doc/posix-functions/strftime.texi: Fix description of strftime
27293         module.
27294
27295 2008-08-24  Bruno Haible  <bruno@clisp.org>
27296
27297         * tests/uniwidth/test-uc_width2.c: New file.
27298         * tests/uniwidth/test-uc_width2.sh: New file.
27299         * modules/uniwidth/width-tests (Files): Add the new files.
27300         (TESTS): Add uniwidth/test-uc_width2.sh.
27301         (TESTS_ENVIRONMENT): New variable.
27302         (check_PROGRAMS): Add test-uc_width2.
27303         (test_uc_width2_SOURCES): New variable.
27304
27305         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27306         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27307         not 0x00AB.
27308         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27309
27310 2008-08-22  Eric Blake  <ebb9@byu.net>
27311
27312         test-lock, test-tls: mention why a test is skipped
27313         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27314         skipped.
27315         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27316
27317         count-one-bits: relax license
27318         * modules/count-one-bits (License): Relicense to LGPLv2+.
27319         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27320
27321 2008-08-22  Andreas Schwab  <schwab@suse.de>
27322
27323         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27324         Remove spurious space in assignment.
27325
27326 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27327
27328         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27329         Paul Eggert <eggert@CS.UCLA.EDU>.
27330
27331 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27332
27333         * modules/gettext: Add m4/threadlib.m4.
27334
27335 2008-08-19  Eric Blake  <ebb9@byu.net>
27336
27337         test-c-stack: fix compilation failure on FreeBSD 5.0
27338         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27339         headers before <sys/resource.h>.
27340         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27341         the bug.
27342         Reported by Nelson H. F. Beebe.
27343
27344         strverscmp: migrate from "strverscmp.h" to <string.h>
27345         * modules/string (Makefile.am): Add new hooks.
27346         * modules/strverscmp (Files): Remove strverscmp.h.
27347         (Depends-on): Add string.
27348         (configure.ac): Add indicator.
27349         (Include): Mention new header.
27350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27351         defaults.
27352         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27353         results.
27354         * lib/strverscmp.h: Delete.
27355         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27356         * tests/test-strverscmp.c (includes): Adjust client.
27357         * lib/check-version.c (includes): Likewise.
27358         * NEWS: Document the change.
27359
27360         strverscmp: add unit test
27361         * modules/strverscmp-tests: New file.
27362         * tests/test-strverscmp.c: Likewise.
27363
27364 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27365
27366         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27367         regarding Windows crypto stuff, from Mono.
27368
27369 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27370
27371         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27372         if present, for intel RND.  Return error on failures.
27373
27374 2008-08-18  Ben Pfaff  <blp@gnu.org>
27375
27376         gitlog-to-changelog: give better diagnostic for failed pipe-open
27377         * build-aux/gitlog-to-changelog: Improve error message: suggest
27378         that the version of Git may be too old.
27379
27380 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27381
27382         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27383         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27384
27385 2008-08-18  Bruno Haible  <bruno@clisp.org>
27386
27387         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27388         pthread_in_use().
27389
27390 2008-08-18  Bruno Haible  <bruno@clisp.org>
27391
27392         * lib/glthread/threadlib.c: Include <pthread.h>.
27393
27394 2008-08-18  Bruno Haible  <bruno@clisp.org>
27395
27396         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27397         glthread_recursive_lock_* macros.
27398         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27399         Fix syntax error.
27400
27401 2008-08-18  Bruno Haible  <bruno@clisp.org>
27402
27403         * lib/glthread/thread.c: Avoid forcing a context switch right after
27404         thread creation.
27405
27406 2008-08-17  Bruno Haible  <bruno@clisp.org>
27407
27408         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27409         * lib/glthread/thread.h: Provide Win32 specific implementation.
27410         * modules/thread (Files): Add lib/glthread/thread.c.
27411         (Depends-on): Add lock.
27412         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27413
27414 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27415
27416         New module 'yield'.
27417         * modules/yield: New file.
27418         * lib/glthread/yield.h: New file.
27419         * m4/yield.m4: New file.
27420         * MODULES.html.sh (Multithreading): Add yield.
27421
27422 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27423
27424         New module 'thread'.
27425         * modules/thread: New file.
27426         * lib/glthread/thread.h: New file.
27427         * m4/thread.m4: New file.
27428         * MODULES.html.sh (Multithreading): Add thread.
27429
27430 2008-08-17  Bruno Haible  <bruno@clisp.org>
27431
27432         * lib/glthread/lock.h: Include <stdlib.h> always.
27433         * lib/glthread/tls.h: Likewise.
27434         * lib/glthread/cond.h: Likewise.
27435
27436 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27437
27438         New module 'cond'.
27439         * modules/cond: New file.
27440         * lib/glthread/cond.h: New file.
27441         * lib/glthread/cond.c: New file.
27442         * m4/cond.m4: New file.
27443         * MODULES.html.sh (Multithreading): Add cond.
27444
27445 2008-08-16  Eric Blake  <ebb9@byu.net>
27446
27447         c-stack: fix regression on Irix 5.3 from 2008-06-21
27448         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27449         sa_sigaction...
27450         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27451         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27452         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27453         * modules/signal (Makefile.am): Use the value.
27454         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27455         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27456         * doc/posix-headers/signal.texi (signal.h): Document this
27457         portability issue.
27458         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27459         Reported by Tom G. Christensen.
27460
27461 2008-08-17  Bruno Haible  <bruno@clisp.org>
27462
27463         New module 'threadlib'.
27464         * modules/threadlib: New file.
27465         * lib/glthread/threadlib.c: New file, extracted from
27466         lib/glthread/lock.c.
27467         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27468         functions.
27469         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27470         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27471         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27472         macros.
27473         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27474         (gl_DISABLE_THREADS): Remove macro.
27475         * modules/lock (Files): Remove build-aux/config.rpath.
27476         (Depends-on): Remove havelib. Add threadlib.
27477         (configure.ac-early): Remove section.
27478         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27479         * modules/tls (Depends-on): Remove lock. Add threadlib.
27480         (Link): New section, copied from threadlib.
27481         * MODULES.html.sh (Multithreading): Add threadlib.
27482
27483 2008-08-14  Bruno Haible  <bruno@clisp.org>
27484
27485         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27486         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27487         glthread_rwlock_unlock, glthread_rwlock_destroy,
27488         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27489         glthread_recursive_lock_destroy): Define as macros always.
27490         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27491         glthread_lock_lock.
27492         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27493         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27494         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27495         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27496         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27497         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27498         (glthread_recursive_lock_lock_func): Renamed from
27499         glthread_recursive_lock_lock.
27500         (glthread_recursive_lock_unlock_func): Renamed from
27501         glthread_recursive_lock_unlock.
27502         (glthread_recursive_lock_destroy_func): Renamed from
27503         glthread_recursive_lock_destroy.
27504
27505 2008-08-14  Bruno Haible  <bruno@clisp.org>
27506
27507         * lib/glthread/lock.h: Renamed from lib/lock.h.
27508         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27509         * lib/glthread/tls.h: Renamed from lib/tls.h.
27510         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27511         * lib/fstrcmp.c: Update includes.
27512         * lib/strsignal.c: Update includes.
27513         * modules/lock (Files, Makefile.am): Update.
27514         (Include): Change to "glthread/lock.h".
27515         * modules/tls (Files, Makefile.am): Update.
27516         (Include): Change to "glthread/tls.h".
27517         * tests/test-lock.c: Update includes.
27518         * tests/test-tls.c: Update includes.
27519         * NEWS: Mention the renamed header files.
27520
27521 2008-08-11  Jim Meyering  <meyering@redhat.com>
27522
27523         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27524
27525 2008-08-11  Eric Blake  <ebb9@byu.net>
27526
27527         test-c-stack: avoid C99-ism
27528         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27529         before statement.
27530         Reported by Alain Guibert.
27531
27532 2008-08-10  Jim Meyering  <meyering@redhat.com>
27533
27534         ensure that return value of uinttostr et al are not ignored
27535         * lib/inttostr.h (__GNUC_PREREQ): Define.
27536         (__attribute_warn_unused_result__): Define.
27537         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27538
27539 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27540
27541         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27542         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27543
27544 2008-08-07  Jim Meyering  <meyering@redhat.com>
27545
27546         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27547
27548         * modules/mkstemp (License): Relicense under LGPLv2+.
27549         * modules/tempname (License): Likewise.
27550
27551 2008-08-06  Bruno Haible  <bruno@clisp.org>
27552
27553         * lib/poll.c (poll): Further micro-optimization.
27554
27555 2008-08-06  Jim Meyering  <meyering@redhat.com>
27556
27557         inet_pton.c: use locale-independent tolower
27558         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
27559         (inet_pton6): Use c_tolower rather than tolower.
27560         * modules/inet_pton (Depends-on): Add c-ctype.
27561
27562 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
27563
27564         * lib/poll.c (poll): Avoid division when timeout is 0, cache
27565         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
27566
27567 2008-08-06  Jim Meyering  <meyering@redhat.com>
27568
27569         * modules/inet_pton (License): Relicense under LGPLv2+.
27570
27571 2008-08-03  Bruno Haible  <bruno@clisp.org>
27572
27573         Additional non-aborting API for lock and tls.
27574         * lib/lock.h: Include <errno.h>.
27575         (glthread_lock_init): New macro/function.
27576         (gl_lock_init): Define as wrapper around glthread_lock_init.
27577         (glthread_lock_lock): New macro/function.
27578         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
27579         (glthread_lock_unlock): New macro/function.
27580         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
27581         (glthread_lock_destroy): New macro/function.
27582         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
27583         (glthread_rwlock_init): New macro/function.
27584         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
27585         (glthread_rwlock_rdlock): New macro/function.
27586         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
27587         (glthread_rwlock_wrlock): New macro/function.
27588         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
27589         (glthread_rwlock_unlock): New macro/function.
27590         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
27591         (glthread_rwlock_destroy): New macro/function.
27592         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
27593         (glthread_recursive_lock_init): New macro/function.
27594         (gl_recursive_lock_init): Define as wrapper around
27595         glthread_recursive_lock_init.
27596         (glthread_recursive_lock_lock): New macro/function.
27597         (gl_recursive_lock_lock): Define as wrapper around
27598         glthread_recursive_lock_lock.
27599         (glthread_recursive_lock_unlock): New macro/function.
27600         (gl_recursive_lock_unlock): Define as wrapper around
27601         glthread_recursive_lock_unlock.
27602         (glthread_recursive_lock_destroy): New macro/function.
27603         (gl_recursive_lock_destroy): Define as wrapper around
27604         glthread_recursive_lock_destroy.
27605         (glthread_once): New macro/function.
27606         (gl_once): Define as wrapper around glthread_once.
27607         Update function declarations.
27608         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
27609         glthread_rwlock_init. Return error code.
27610         (glthread_rwlock_rdlock_multithreaded): Renamed from
27611         glthread_rwlock_rdlock. Return error code.
27612         (glthread_rwlock_wrlock_multithreaded): Renamed from
27613         glthread_rwlock_wrlock. Return error code.
27614         (glthread_rwlock_unlock_multithreaded): Renamed from
27615         glthread_rwlock_unlock. Return error code.
27616         (glthread_rwlock_destroy_multithreaded): Renamed from
27617         glthread_rwlock_destroy. Return error code.
27618         (glthread_recursive_lock_init_multithreaded): Renamed from
27619         glthread_recursive_lock_init. Return error code.
27620         (glthread_recursive_lock_lock_multithreaded): Renamed from
27621         glthread_recursive_lock_lock. Return error code.
27622         (glthread_recursive_lock_unlock_multithreaded): Renamed from
27623         glthread_recursive_lock_unlock. Return error code.
27624         (glthread_recursive_lock_destroy_multithreaded): Renamed from
27625         glthread_recursive_lock_destroy. Return error code.
27626         (glthread_once_call): Make static.
27627         (glthread_once_multithreaded): Renamed from glthread_once.
27628         * lib/tls.h: Include <errno.h>.
27629         (glthread_tls_key_init): New macro/function.
27630         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
27631         (glthread_tls_set): New macro/function.
27632         (gl_tls_set): Define as wrapper around glthread_tls_set.
27633         (glthread_tls_key_destroy): New macro/function.
27634         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
27635         Update function declarations.
27636         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
27637         glthread_tls_get.
27638         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27639
27640 2008-08-04  Eric Blake  <ebb9@byu.net>
27641
27642         gnumakefile: use space, not TAB, outside of targets
27643         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
27644
27645 2008-08-02  Jim Meyering  <meyering@redhat.com>
27646
27647         getdate.y: avoid locale-dependent date parsing failure
27648         In Turkish locales, getdate would fail to recognize keywords
27649         containing a lowercase "i".  The solution is not to rely on
27650         locale-sensitive case-conversion.
27651         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
27652         (lookup_word): Use c_toupper in place of toupper.
27653         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
27654         Reported by Vefa Bicakci <bicave@superonline.com> in
27655         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
27656         * modules/getdate (Depends-on): Add c-ctype.
27657
27658 2008-08-02  Bruno Haible  <bruno@clisp.org>
27659
27660         * gnulib-tool (func_import): When updating or creating a .gitignore
27661         file, prepend each added line with a slash, and ignore leading slashes
27662         from the existing lines.
27663         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
27664
27665 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27666
27667         Portability fix for GNU make 3.79.1.
27668         * top/GNUmakefile: Avoid 'else COND', which older GNU make
27669         versions do not understand.
27670
27671 2008-08-01  Bruno Haible  <bruno@clisp.org>
27672
27673         Work around bug of HP-UX 10.20 cc with -0.0 literal.
27674         * tests/test-isnanf.h (zero): New variable.
27675         (main): Avoid literal -0.0f.
27676         * tests/test-isnand.h (zero): New variable.
27677         (main): Avoid literal -0.0.
27678         * tests/test-isnanl.h (zero): New variable.
27679         (main): Avoid literal -0.0L.
27680         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
27681         (test_float, test_double, test_long_double): Avoid literals -0.0f,
27682         -0.0, -0.0L.
27683         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
27684         (test_signbitd): Avoid literal -0.0.
27685         (test_signbitl): Avoid literal -0.0L.
27686         * tests/test-ceilf1.c (zero): New variable.
27687         (main): Avoid literal -0.0f.
27688         * tests/test-ceill.c (zero): New variable.
27689         (main): Avoid literal -0.0L.
27690         * tests/test-floorf1.c (zero): New variable.
27691         (main): Avoid literal -0.0f.
27692         * tests/test-floorl.c (zero): New variable.
27693         (main): Avoid literal -0.0L.
27694         * tests/test-roundf1.c (zero): New variable.
27695         (main): Avoid literal -0.0f.
27696         * tests/test-round1.c (zero): New variable.
27697         (main): Avoid literal -0.0.
27698         * tests/test-roundl.c (zero): New variable.
27699         (main): Avoid literal -0.0L.
27700         * tests/test-truncf1.c (zero): New variable.
27701         (main): Avoid literal -0.0f.
27702         * tests/test-trunc1.c (zero): New variable.
27703         (main): Avoid literal -0.0.
27704         * tests/test-truncl.c (zero): New variable.
27705         (main): Avoid literal -0.0L.
27706         * tests/test-frexp.c (zero): New variable.
27707         (main): Avoid literal -0.0.
27708         * tests/test-frexpl.c (zero): New variable.
27709         (main): Avoid literal -0.0L.
27710         * tests/test-ldexpl.c (zero): New variable.
27711         (main): Avoid literal -0.0L.
27712         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
27713         (zerod, zerol): New variables.
27714         (test_function): Avoid literals -0.0, -0.0L.
27715         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
27716         (zerod, zerol): New variables.
27717         (test_function): Avoid literals -0.0, -0.0L.
27718         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
27719         (zerod, zerol): New variables.
27720         (test_function): Avoid literals -0.0, -0.0L.
27721         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
27722         (zerod, zerol): New variables.
27723         (test_function): Avoid literals -0.0, -0.0L.
27724         * tests/test-strtod.c (zero): New variable.
27725         (main): Avoid literal -0.0.
27726         Reported by Jonathan C. Patschke <jp@centtech.com>.
27727
27728 2008-07-31  Jim Meyering  <meyering@redhat.com>
27729
27730         sha256.h: correct definition of SHA224_DIGEST_SIZE
27731         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
27732         Reported by Paulie Pena IV <paulie4@gmail.com>.
27733         Define as 224 / 8, rather than as a literal.
27734         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
27735         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
27736         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
27737
27738 2008-07-31  Bruno Haible  <bruno@clisp.org>
27739
27740         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
27741         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
27742         Reported by Jonathan Patschke <jp@centtech.com>.
27743
27744 2008-07-31  Bruno Haible  <bruno@clisp.org>
27745
27746         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
27747         Reported by Paolo Bonzini <bonzini@gnu.org>.
27748
27749 2008-07-30  Eric Blake  <ebb9@byu.net>
27750
27751         test-strtod: allow compilation without -lm
27752         * tests/test-strtod.c (main): Avoid link dependence on fabs.
27753         Reported by Dennis Clarke <blastwave@gmail.com>.
27754
27755 2008-07-28  Jim Meyering  <meyering@redhat.com>
27756
27757         bootstrap: work also when there are no .po files in po/
27758         * build-aux/bootstrap (update_po_files): Complete the change
27759         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
27760
27761 2008-07-27  Jim Meyering  <meyering@redhat.com>
27762
27763         * users.txt: Add zile.
27764
27765 2008-07-26  Ben Pfaff  <blp@gnu.org>
27766
27767         Add missing dependencies on new m4/exponent[fdl].m4 files.
27768         * modules/isnanf-nolibm: Add m4/exponentf.m4.
27769         * modules/isnand-nolibm: Add m4/exponentd.m4.
27770         * modules/isnanl-nolibm: Add m4/exponentl.m4.
27771         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
27772         m4/isnan[fdl].m4, because the macros actually used moved.
27773         Reported by Jim Meyering.
27774
27775 2008-07-14  Ben Pfaff  <blp@gnu.org>
27776
27777         Add isinf module.
27778         * lib/isinf.c: New file.
27779         * lib/math.in.h: Define isinf macro if we have decided to replace
27780         it.
27781         * m4/isinf.m4: New file.
27782         * m4/math_h.m4: Initialize and substitute variables for isinf
27783         module.
27784         * modules/isinf: New file.
27785         * modules/isinf-tests: New file.
27786         * modules/math: Add substitutions for new module.
27787         * tests/test-isinf.c: New file.
27788         * doc/posix-functions/isinf.texi: Mention new module.
27789         * MODULES.html.sh: Mention new module.
27790
27791 2008-07-14  Ben Pfaff  <blp@gnu.org>
27792
27793         Factor out some macros for use by additional modules.
27794         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
27795         exponentf.m4.
27796         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
27797         exponentd.m4.
27798         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
27799         file exponentl.m4.
27800         * m4/exponentf.m4: New file.
27801         * m4/exponentd.m4: New file.
27802         * m4/exponentl.m4: New file.
27803         * modules/isnanf: Use new file m4/exponentf.m4.
27804         * modules/isnand: Use new file m4/exponentd.m4.
27805         * modules/isnanl: Use new file m4/exponentl.m4.
27806
27807 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
27808
27809         mktime.c: normalize tp->tm_isdst value to -1/0/1.
27810         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
27811         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
27812         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
27813
27814         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
27815         readlink on platforms without PATH_MAX.
27816
27817 2008-07-21  Eric Blake  <ebb9@byu.net>
27818
27819         Warn, not fail, on stale version.
27820         * top/GNUmakefile (_curr-ver): Tone down previous patch.
27821
27822         Don't allow installation with stale devel version number.
27823         * top/GNUmakefile (_is-install-target): New macro.
27824         (_curr-ver): Forbid installation with stale version number.
27825
27826 2008-07-20  Bruno Haible  <bruno@clisp.org>
27827
27828         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
27829         TESTS_ENVIRONMENT.
27830         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
27831
27832 2008-07-20  Bruno Haible  <bruno@clisp.org>
27833
27834         * lib/c-stack.h (c_stack_action): Add documentation.
27835         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
27836
27837 2008-07-20  Bruno Haible  <bruno@clisp.org>
27838
27839         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
27840         * modules/readlink (License): Likewise.
27841
27842 2008-07-17  Eric Blake  <ebb9@byu.net>
27843
27844         * modules/c-stack (Link): Fix typo.
27845
27846         Make c-stack use libsigsegv, when available.
27847         * modules/c-stack (Depends-on): Add libsigsegv.
27848         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
27849         needed.
27850         * lib/c-stack.c (SIGSTKSZ): Define fallback.
27851         (segv_handler, overflow_handler, c_stack_action)
27852         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
27853         implementation when libsigsegv is available, but only when using
27854         the library is necessary.
27855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
27856         comment, explaining why XSI check fails on Linux.
27857         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
27858         * tests/test-c-stack2.sh: Tweak skip message.
27859         * NEWS: Document new link-time requirements.
27860
27861 2008-07-16  Eric Blake  <ebb9@byu.net>
27862
27863         c-stack: Expose false positives when not using libsigsegv.
27864         * modules/c-stack-tests (Files): Expand test.
27865         * tests/test-c-stack.c (main): Add means to conditionally trigger
27866         non-overflow SIGSEGV.
27867         * tests/test-c-stack2.sh: New file.
27868
27869 2008-07-14  Bruno Haible  <bruno@clisp.org>
27870
27871         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
27872         Reported by Eric Blake.
27873
27874 2008-07-14  Sam Steingold  <sds@gnu.org>
27875             Bruno Haible  <bruno@clisp.org>
27876
27877         New module libsigsegv.
27878         * modules/libsigsegv: New file.
27879         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
27880         modifications.
27881         * MODULES.html.sh (Signal handling): New section.
27882
27883 2008-07-14  Bruno Haible  <bruno@clisp.org>
27884
27885         * modules/unictype/ctype-* (Description): Add the word "function".
27886         Improves the resulting doc in MODULES.html.
27887
27888 2008-07-12  Ben Pfaff  <blp@gnu.org>
27889
27890         Add longlong module.
27891         * modules/longlong: New file.
27892
27893 2008-07-12  Bruno Haible  <bruno@clisp.org>
27894
27895         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
27896         to empty.
27897
27898 2008-07-10  Ben Pfaff  <blp@gnu.org>
27899
27900         Add isnan module.
27901         * doc/posix-functions/isnan.texi: Mention new module.
27902         * lib/math.in.h: Define isnan macro if we have decided to replace
27903         it.
27904         * m4/isnan.m4: New file.
27905         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
27906         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
27907         also.
27908         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
27909         redundancy.
27910         * m4/math_h.m4: Initialize and substitute variables for isnan
27911         module.
27912         * modules/isnan: New file.
27913         * modules/isnan-tests: New file.
27914         * modules/math: Add substitutions for new module.
27915         * tests/test-isnan.c: New file.
27916         * MODULES.html.sh: Mention new module.
27917
27918 2008-07-10  Ben Pfaff  <blp@gnu.org>
27919
27920         Add isnanf module.
27921         * lib/isnanf.m4: New file.
27922         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
27923         (gl_HAVE_ISNANF_IN_LIBM): New macro.
27924         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
27925         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
27926         * modules/isnanf: New file.
27927         * modules/isnanf-tests: New file.
27928         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
27929         files.
27930         * tests/test-isnanf-nolibm.c: factored most of its contents into
27931         new file tests/test-isnanf.h.
27932         * tests/test-isnanf.h: New file.
27933         * tests/test-isnanf.c: New file.
27934         * MODULES.html.sh: Mention new module.
27935         * doc/glibc-functions/isnanf.texi: Mention new module.
27936
27937 2008-07-10  Ben Pfaff  <blp@gnu.org>
27938
27939         Add isnand module.
27940         * lib/isnand.h: New file.
27941         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
27942         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
27943         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
27944         functionality also.
27945         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
27946         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
27947         (gl_HAVE_ISNAND_IN_LIBM): New macro.
27948         * modules/isnand: New file.
27949         * modules/isnand-tests: New file.
27950         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
27951         files.
27952         * tests/test-isnand-nolibm.c: factored most of its contents into
27953         new file tests/test-isnand.h.
27954         * tests/test-isnand.h: New file.
27955         * tests/test-isnand.c: New file.
27956         * MODULES.html.sh: Mention new module.
27957
27958 2008-07-10  Ben Pfaff  <blp@gnu.org>
27959
27960         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
27961         * lib/isnand.h: Rename lib/isnand-nolibm.h.
27962         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
27963         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
27964         * modules/isnanf-nolibm: Update references to renamed files.
27965         * modules/isnand-nolibm: Likewise.
27966         * modules/isnanf-nolibm-tests: Likewise.
27967         * modules/isnand-nolibm-tests: Likewise.
27968         * lib/frexp.c: Likewise.
27969         * lib/isfinite.c: Likewise.
27970         * lib/signbitd.c: Likewise.
27971         * lib/signbitf.c: Likewise.
27972         * lib/vasnprintf.c: Likewise.
27973         * tests/test-ceilf1.c: Likewise.
27974         * tests/test-ceilf2.c: Likewise.
27975         * tests/test-floorf1.c: Likewise.
27976         * tests/test-floorf2.c: Likewise.
27977         * tests/test-frexp.c: Likewise.
27978         * tests/test-round1.c: Likewise.
27979         * tests/test-round2.c: Likewise.
27980         * tests/test-roundf1.c: Likewise.
27981         * tests/test-strtod.c: Likewise.
27982         * tests/test-trunc1.c: Likewise.
27983         * tests/test-trunc2.c: Likewise.
27984         * tests/test-truncf1.c: Likewise.
27985         * tests/test-truncf2.c: Likewise.
27986         * NEWS: Mention the renamed header files.
27987
27988 2008-07-11  Jim Meyering  <meyering@redhat.com>
27989
27990         vc-list-files: make the last-resort awk code more portable
27991         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
27992         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
27993         does not support it.
27994
27995 2008-07-10  Eric Blake  <ebb9@byu.net>
27996
27997         Work with tar's bootstrap.
27998         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
27999         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28000         an m4 comment.
28001
28002 2008-07-09  Jim Meyering  <meyering@redhat.com>
28003
28004         posix-shell.m4: fix typo that made this test malfunction
28005         * m4/posix-shell.m4: Remove capitalization in variable name.
28006
28007 2008-07-08  Bruno Haible  <bruno@clisp.org>
28008
28009         * m4/onceonly.m4: Update comments.
28010         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28011
28012 2008-07-04  Jim Meyering  <meyering@redhat.com>
28013
28014         * users.txt: Add vc-dwim.
28015         (bison, coreutils): Use the gitweb URL.
28016
28017 2008-07-03  Jim Meyering  <meyering@redhat.com>
28018
28019         * users.txt: Add libffcall.  From Sam Steingold.
28020
28021 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28022
28023         getdate.y: do not ignore TZ with relative day, month or year offset
28024         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28025         relative-date-handling, since otherwise, the latter would clobber the
28026         sole output (an updated Start value) of the tz-handling block.
28027         * tests/test-getdate.c: Tests for the fix
28028
28029 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28030
28031         Recognize 'foo_LIBRARIES += libgnu.a'.
28032         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28033         makefile snippet has already specified an installation location,
28034         also using '+='.
28035
28036 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28037
28038         getdate.y: factor out common actions
28039         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28040         Use them in place of open-coded actions.
28041
28042 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28043
28044         Add self-test for getdate module.
28045         * modules/getdate-tests: New file.
28046         * tests/test-getdate.c: New file.
28047
28048 2008-06-29  Bruno Haible  <bruno@clisp.org>
28049
28050         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28051         .gitignore.
28052         Reported by Sylvain Beucler <beuc@beuc.net>.
28053
28054 2008-06-29  Bruno Haible  <bruno@clisp.org>
28055
28056         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28057         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28058
28059 2008-06-29  Bruno Haible  <bruno@clisp.org>
28060
28061         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28062         EXTRA_DIST.
28063         Reported by Sylvain Beucler <beuc@beuc.net>.
28064
28065 2008-06-26  Jim Meyering  <meyering@redhat.com>
28066
28067         make several modules depend on the "open" module
28068         This provides slightly increased consistency when opening-for-write
28069         the name of a non-directory spelled with a trailing slash.
28070         * modules/chdir-safer: Likewise.
28071         * modules/chown: Likewise.
28072         * modules/clean-temp: Likewise.
28073         * modules/copy-file: Likewise.
28074         * modules/fchdir: Likewise.
28075         * modules/fcntl-safer: Likewise.
28076         * modules/pipe: Likewise.
28077         * modules/utime: Likewise.
28078         Prompted by Eric Blake and Bruno Haible.
28079
28080 2008-06-24  Andreas Schwab  <schwab@suse.de>
28081
28082         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28083         literals can be used as initializers for global variables.
28084
28085 2008-06-23  Eric Blake  <ebb9@byu.net>
28086
28087         Make gnulib-cache.m4 easier to diff.
28088         * gnulib-tool (func_import): Allow newlines when reading cached
28089         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28090
28091 2008-06-23  Bruno Haible  <bruno@clisp.org>
28092
28093         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28094         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28095         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28096         m4/signalblocking.m4.
28097         (gl_PREREQ_SIGACTION): Don't invoke it.
28098         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28099         gl_PREREQ_SIG_HANDLER_H.
28100         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28101         Don't check for sigaction here.
28102
28103 2008-06-23  Bruno Haible  <bruno@clisp.org>
28104
28105         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28106         (install_handlers): Don't set the SA_RESETHAND flag.
28107
28108 2008-06-23  Bruno Haible  <bruno@clisp.org>
28109
28110         * m4/sigaction.m4: Comment fixes.
28111         * lib/signal.in.h: Likewise.
28112
28113 2008-06-23  Eric Blake  <ebb9@byu.net>
28114
28115         Fix typo.
28116         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28117
28118         Avoid SA_ namespace.
28119         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28120         Reported by Ralf Wildenhues.
28121
28122         Avoid test failure due to SA_RESTORER.
28123         * tests/test-sigaction.c (SA_MASK): New macro.
28124         (main): Avoid failing due to extension flags being set.
28125         Reported by Jim Meyering.
28126
28127         Revert use of sig-handler.h in sigprocmask.c.
28128         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28129         it requires the existence of struct sigaction.
28130         * lib/sigprocmask.c (handler_t): Restore typedef.
28131         (rpl_signal, old_handlers): Use local type.
28132
28133 2008-06-22  Bruno Haible  <bruno@clisp.org>
28134
28135         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28136         conditionally.
28137         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28138
28139 2008-06-22  Bruno Haible  <bruno@clisp.org>
28140
28141         * doc/posix-functions/siginterrupt.texi: Move note.
28142
28143         * lib/signal.in.h (SA_RESTART): New macro.
28144         * lib/sigaction.c: Update comment.
28145
28146         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28147
28148         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28149         (gl_PREREQ_SIGPROCMASK): Invoke it.
28150         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28151
28152         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28153
28154         * lib/sigprocmask.c: Update a comment.
28155
28156 2008-06-21  Eric Blake  <ebb9@byu.net>
28157
28158         Use sigaction module rather than signal().
28159         * modules/c-stack (Depends-on): Add sigaction.
28160         * modules/fatal-signal (Depends-on): Likewise.
28161         * modules/nanosleep (Depends-on): Likewise.
28162         * modules/sigprocmask (Files): Add sig-handler.h.
28163         * modules/sigaction (Files): Likewise.
28164         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28165         Eggert.
28166         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28167         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28168         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28169         (init_fatal_signals): Likewise.
28170         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28171         (siginterrupt): Delete fallback.
28172         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28173         instead.
28174         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28175         siginterrupt.
28176
28177         New module sigaction, for mingw.
28178         * modules/sigaction: New module...
28179         * modules/sigaction-tests: ...and its test.
28180         * m4/sigaction.m4: New file.
28181         * lib/sigaction.c: Likewise.
28182         * tests/test-sigaction.c: Likewise.
28183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28184         * modules/signal (Makefile.am): Likewise.
28185         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28186         needed.
28187         * doc/posix-headers/signal.texi (signal.h): Mention provided
28188         types.
28189         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28190         that sigaction is preferable.
28191         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28192         module.
28193         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28194         sigaction.
28195
28196         Improve robustness of sigprocmask by overriding signal.
28197         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28198         is in use.
28199         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28200         (SIGKILL, SIGSTOP): Provide fallbacks.
28201         (rpl_signal): Implement.
28202         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28203         signal can be called inside handlers.
28204
28205         Fix nanosleep module on mingw.
28206         * modules/nanosleep (Depends-on): Add sys_select.
28207         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28208
28209         Fix licensing of sigprocmask.
28210         * modules/raise (License): Relicense as LGPL.
28211
28212 2008-06-21  Bruno Haible  <bruno@clisp.org>
28213
28214         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28215         result if it contains question marks.
28216         Reported by Michael Geng <linux@michaelgeng.de>.
28217
28218 2008-06-19  Bruno Haible  <bruno@clisp.org>
28219
28220         Fix CVS-ism.
28221         * doc/gnulib.texi: Include updated-stamp.texi.
28222         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28223         (updated-stamp.texi): New rule.
28224         (gnulib.info): Depend on it.
28225         * doc/.gitignore: Add updated-stamp.texi.
28226         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28227
28228 2008-06-19  Bruno Haible  <bruno@clisp.org>
28229
28230         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28231         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28232
28233 2008-06-19  Eric Blake  <ebb9@byu.net>
28234
28235         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28236         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28237         Reported by Stepan Kasal.
28238
28239 2008-06-18  Bruno Haible  <bruno@clisp.org>
28240
28241         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28242         Reported by Eric Blake.
28243
28244 2008-06-18  Eric Blake  <ebb9@byu.net>
28245
28246         Work around cygwin 1.5.25 strsignal bug.
28247         * tests/test-strsignal.c: Allow for const char *.
28248         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28249
28250 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28251
28252         * users.txt: Update URL to article and add author/date
28253         information.
28254
28255 2008-06-17  Bruno Haible  <bruno@clisp.org>
28256
28257         New macro gl_DISABLE_THREADS.
28258         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28259         if the user did not pass --enable-threads or --disable-threads option.
28260         (gl_DISABLE_THREADS): New macro.
28261         Reported by Eric Blake <ebb9@byu.net>.
28262
28263 2008-06-17  Bruno Haible  <bruno@clisp.org>
28264
28265         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28266         when the macro ignores it.
28267         Based on a patch by Eric Blake <ebb9@byu.net>.
28268
28269 2008-06-17  Bruno Haible  <bruno@clisp.org>
28270
28271         * modules/tls (License): Change to LGPLv2+.
28272         Reported by Eric Blake.
28273
28274 2008-06-17  Eric Blake  <ebb9@byu.net>
28275
28276         Simplify c-stack prerequisites.
28277         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28278         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28279         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28280         check.
28281         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28282         <sys/resource.h>.
28283
28284         Move c-stack test into testsuite.
28285         * modules/c-stack-tests: New file.
28286         * lib/c-stack.c [DEBUG]: Move test program...
28287         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28288         fail test if sigaltstack is lacking.
28289         * tests/test-c-stack.sh: New driver file.
28290
28291 2008-06-16  Eric Blake  <ebb9@byu.net>
28292
28293         Use raise module consistently.
28294         * modules/fatal-signal (Depends-on): Add raise.
28295         * modules/sigprocmask (Depends-on): Likewise.
28296         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28297         * lib/sigprocmask.c (sigprocmask): Likewise.
28298         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28299         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28300
28301         Fix compliance bug in sigpending.
28302         * lib/sigprocmask.c (sigpending): Return pending array via
28303         parameter, not return value.
28304
28305 2008-06-14  Eric Blake  <ebb9@byu.net>
28306
28307         Improve obstack-printf test code.
28308         * tests/test-obstack-printf.c (test_function): Fix comment, and
28309         simplify usage of obstack_* in macros.  Add a test for coverage.
28310         Reported by Bruno Haible.
28311
28312 2008-06-14  Bruno Haible  <bruno@clisp.org>
28313
28314         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28315         array size as a constant, not as a const variable.
28316         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28317         AC_USE_SYSTEM_EXTENSIONS.
28318         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28319         Test whether the obstack_printf function actually exists.
28320         * modules/obstack-printf (Depends-on): Add extensions.
28321         (Include): Remove obstack.h.
28322         * modules/obstack-printf-posix (Depends-on): Add extensions.
28323         (Include): Remove obstack.h.
28324
28325 2008-06-13  Eric Blake  <ebb9@byu.net>
28326
28327         Add obstack-printf and obstack-printf-posix modules.
28328         * modules/obstack-printf: New file.
28329         * modules/obstack-printf-posix: Likewise.
28330         * MODULES.html.sh (Misc): Mention them.
28331         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28332         Likewise.
28333         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28334         Likewise.
28335         * modules/stdio (Makefile.am): Accomodate new modules.
28336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28337         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28338         Declare.
28339         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28340         functions.
28341         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28342         (gl_REPLACE_OBSTACK_PRINTF): New macros
28343         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28344         * tests/test-obstack-printf.c: New file.
28345         * modules/obstack-printf-tests: Likewise.
28346         * modules/obstack-printf-posix-tests: Likewise.
28347
28348 2008-06-11  Bruno Haible  <bruno@clisp.org>
28349
28350         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28351         * lib/open.c: Include errno.h.
28352         (open): Fail when attempting to write to a file that has a trailing
28353         slash.
28354         * tests/test-open.c (main): Test against trailing slash bug.
28355         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28356
28357 2008-06-10  Bruno Haible  <bruno@clisp.org>
28358
28359         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28360         for $? to work inside the trap command, with various /bin/sh-s.
28361         * tests/test-vc-list-files-cvs.sh: Likewise.
28362
28363 2008-06-10  Bruno Haible  <bruno@clisp.org>
28364
28365         * lib/acl-internal.h: Don't include gettext.h here.
28366         * lib/set-mode-acl.c: Include gettext.h here.
28367         * lib/copy-acl.c: Likewise.
28368
28369 2008-06-10  Bruno Haible  <bruno@clisp.org>
28370
28371         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28372         * lib/wait-process.c (wait_subprocess): Likewise.
28373         * lib/execute.h (execute): Add termsigp argument.
28374         * lib/execute.c (execute): Likewise.
28375         * lib/csharpcomp.c (compile_csharp_using_pnet,
28376         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28377         * lib/csharpexec.c (execute_csharp_using_pnet,
28378         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28379         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28380         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28381         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28382         is_jikes_present): Update.
28383         * lib/javaexec.c (execute_java_class): Update.
28384         * lib/javaversion.c (execute_and_read_line): Update.
28385         * NEWS: Document the changes.
28386         Reported by Eric Blake.
28387
28388 2008-06-10  Eric Blake  <ebb9@byu.net>
28389
28390         Add missing include.
28391         * tests/test-strstr.c (includes): Add <signal.h>.
28392         * tests/test-strcasestr.c (includes): Likewise.
28393         * tests/test-memmem.c (includes): Likewise.
28394
28395 2008-06-10  Bruno Haible  <bruno@clisp.org>
28396
28397         * lib/wait-process.c (wait_subprocess): Add an assertion.
28398
28399 2008-06-10  Bruno Haible  <bruno@clisp.org>
28400
28401         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28402
28403 2008-06-10  Bruno Haible  <bruno@clisp.org>
28404
28405         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28406         using alarm().
28407         * tests/test-strcasestr.c (main): Likewise.
28408         * tests/test-strstr.c (main): Likewise.
28409
28410 2008-06-09  Bruno Haible  <bruno@clisp.org>
28411
28412         Work around the Solaris 10 ACE ACLs ABI change.
28413         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28414         declare if ACL_NO_TRIVIAL is present.
28415         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28416         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28417         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28418         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28419         define if ACL_NO_TRIVIAL is present.
28420         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28421         and use the current ABI.
28422         (file_has_acl): Use same #if condition as elsewhere.
28423         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28424         in use, and use the current ABI.
28425         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28426         Reported by Jim Meyering.
28427
28428 2008-06-09  Eric Blake  <ebb9@byu.net>
28429
28430         Work around environments that (stupidly) ignore SIGALRM.
28431         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28432         before using alarm().
28433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28435         Reported by Ian Beckwith <ianb@erislabs.net>.
28436
28437         Produce autobuild blurb earlier in log.
28438         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28439
28440 2008-06-09  Jim Meyering  <meyering@redhat.com>
28441         and Ondřej Vašík  <ovasik@redhat.com>
28442
28443         utimens.c: correct kernel bug work-around
28444         Ondřej Vašík found that the invalid return value of 280 indicates
28445         failure, not success, and the kernel bug we're trying to work
28446         around affects not just the utimensat call, but also the fallback
28447         futimens call.
28448         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28449         not success.
28450         [HAVE_FUTIMENS]: Use the same work-around, here.
28451
28452 2008-06-09  Jim Meyering  <meyering@redhat.com>
28453
28454         add more guards around definition of ACE_-related code
28455         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28456         ALLOW and ACE_OWNER are also defined.
28457
28458 2008-06-08  Bruno Haible  <bruno@clisp.org>
28459
28460         * lib/acl-internal.h: Add me as co-author.
28461         * lib/file-has-acl.c: Likewise.
28462         * lib/set-mode-acl.c: Likewise.
28463         * lib/copy-acl.c: Likewise.
28464
28465 2008-06-08  Bruno Haible  <bruno@clisp.org>
28466
28467         Add support for AIX ACLs.
28468         * lib/acl-internal.h (acl_nontrivial): New declaration.
28469         * lib/file-has-acl.c (acl_nontrivial): New function.
28470         (file_has_acl): Add implementation using AIX 4 ACL API.
28471         * lib/set-mode-acl.c (qset_acl): Likewise.
28472         * lib/copy-acl.c (qcopy_acl): Likewise.
28473
28474 2008-06-08  Bruno Haible  <bruno@clisp.org>
28475
28476         Add support for HP-UX ACLs.
28477         * lib/acl-internal.h (acl_nontrivial): New declaration.
28478         * lib/file-has-acl.c (acl_nontrivial): New function.
28479         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28480         * lib/set-mode-acl.c (qset_acl): Likewise.
28481         * lib/copy-acl.c (qcopy_acl): Likewise.
28482
28483 2008-06-08  Bruno Haible  <bruno@clisp.org>
28484
28485         Add support for Cygwin ACLs.
28486         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28487         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28488         the chmod_or_fchmod call.
28489         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28490
28491 2008-06-08  Bruno Haible  <bruno@clisp.org>
28492
28493         Fix bug with setuid modes in Solaris 10+ code.
28494         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28495         succeeded, when the mode contains some special bits.
28496
28497 2008-06-08  Bruno Haible  <bruno@clisp.org>
28498
28499         Add support for Solaris 7..10 ACLs.
28500         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28501         declarations.
28502         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28503         functions.
28504         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28505         * lib/set-mode-acl.c (qset_acl): Likewise.
28506         * lib/copy-acl.c (qcopy_acl): Likewise.
28507
28508 2008-06-08  Bruno Haible  <bruno@clisp.org>
28509
28510         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28511         declaration.
28512         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28513         (acl_access_nontrivial): Remove MacOS X case.
28514         (file_has_acl): Use acl_extended_nontrivial.
28515         * lib/copy-acl.c (qcopy_acl): Likewise.
28516
28517 2008-06-08  Bruno Haible  <bruno@clisp.org>
28518
28519         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28520
28521 2008-06-08  Jim Meyering  <meyering@redhat.com>
28522
28523         * modules/acl (Maintainer): Add Bruno Haible.
28524
28525 2008-06-07  Bruno Haible  <bruno@clisp.org>
28526
28527         Improve support for Tru64 ACLs.
28528         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28529         ACL on OSF/1.
28530
28531 2008-06-07  Bruno Haible  <bruno@clisp.org>
28532
28533         Add support for MacOS X ACLs.
28534         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28535         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28536         * lib/set-mode-acl.c (qset_acl): Likewise.
28537         * lib/copy-acl.c (qcopy_acl): Likewise.
28538
28539 2008-06-07  Bruno Haible  <bruno@clisp.org>
28540
28541         Fix memory leak introduced on 2008-05-22.
28542         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28543         use.
28544
28545 2008-06-07  Bruno Haible  <bruno@clisp.org>
28546
28547         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
28548         to construct an empty ACL.
28549
28550 2008-06-07  Bruno Haible  <bruno@clisp.org>
28551
28552         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
28553         precisely.
28554         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
28555
28556 2008-06-07  Bruno Haible  <bruno@clisp.org>
28557
28558         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
28559         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
28560
28561 2008-06-07  Bruno Haible  <bruno@clisp.org>
28562
28563         * doc/posix-functions/_setjmp.texi: Explain the use of this function
28564         regardless of POSIX.
28565         * doc/posix-functions/_longjmp.texi: Likewise.
28566         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
28567         SystemV platform in this case.
28568
28569 2008-06-06  Eric Blake  <ebb9@byu.net>
28570
28571         Document abort() bugs.
28572         * doc/posix-functions/abort.texi (abort): Mention anomalies.
28573
28574         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
28575         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
28576         sigsetjmp.
28577         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
28578         siglongjmp, but only as a macro.
28579         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
28580         is obsolete.
28581         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
28582
28583         Tweak documentation to cover cygwin argz bugs.
28584         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
28585         argz bug fix; no code change needed since no cygwin releases
28586         occurred between the last fix and the bug being tested.
28587         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
28588         module and recently fixed cygwin bugs.
28589         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
28590         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
28591         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
28592         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
28593         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
28594         Likewise.
28595         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
28596         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
28597         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
28598         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
28599         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
28600         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
28601         Likewise.
28602
28603         Avoid gcc warning on cygwin.
28604         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
28605         !ACL_NO_TRIVIAL]: Avoid unused variable.
28606
28607 2008-06-05  Eric Blake  <ebb9@byu.net>
28608
28609         Be tolerant of UNKNOWN version in gnulib-tool test dir.
28610         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
28611         git-version-gen fails to come up with a version.
28612         Reported by Simon Josefsson.
28613
28614 2008-06-05  Jim Meyering  <meyering@redhat.com>
28615             Paul Eggert  <eggert@cs.ucla.edu>
28616
28617         utimens.c: work around a probable Linux kernel bug
28618         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
28619         appears to be a kernel bug that causes utimensat to return 280
28620         instead of 0, indicating success.
28621
28622 2008-06-04  Bruno Haible  <bruno@clisp.org>
28623
28624         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
28625         2008-06-01 commit.
28626
28627 2008-06-04  Bruno Haible  <bruno@clisp.org>
28628
28629         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
28630         * lib/file-has-acl.c (acl_access_nontrivial): New function.
28631         (file_has_acl): Use it. Save errno afterwards.
28632         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
28633
28634 2008-06-03  Bruno Haible  <bruno@clisp.org>
28635
28636         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
28637         draft code. Simplify #ifs.
28638         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
28639         Put Solaris code after POSIX-draft code. Fix comments regarding
28640         Solaris 10, HP-UX. Mention Cygwin.
28641         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
28642
28643 2008-06-03  Eric Blake  <ebb9@byu.net>
28644
28645         Provide fallback for older kernels.
28646         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
28647         Provide runtime fallback if kernel lacks support.
28648         Reported by Mike Frysinger.
28649
28650 2008-06-02  Bruno Haible  <bruno@clisp.org>
28651
28652         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
28653         it exists.
28654
28655 2008-06-02  Bruno Haible  <bruno@clisp.org>
28656
28657         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
28658         * lib/copy-acl.c (qcopy_acl): Update comment.
28659
28660 2008-06-02  Bruno Haible  <bruno@clisp.org>
28661
28662         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
28663         like ACL APIs.
28664
28665 2008-06-02  Bruno Haible  <bruno@clisp.org>
28666
28667         * tests/test-file-has-acl.sh: Use different code for Cygwin.
28668         * tests/test-set-mode-acl.sh: Likewise.
28669         * tests/test-copy-acl.sh: Likewise.
28670         * tests/test-copy-file.sh: Likewise.
28671
28672 2008-06-02  Bruno Haible  <bruno@clisp.org>
28673
28674         * tests/test-file-has-acl.sh: Remove unused code.
28675
28676 2008-06-01  Bruno Haible  <bruno@clisp.org>
28677
28678         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
28679         (copy_acl): Just a wrapper around qcopy_acl that emits the error
28680         messages.
28681         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
28682
28683 2008-06-01  Bruno Haible  <bruno@clisp.org>
28684
28685         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
28686         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
28687         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
28688         APIs.
28689         * modules/acl-tests (configure.ac): Remove tests now contained in
28690         m4/acl.m4.
28691
28692 2008-06-02  Jim Meyering  <meyering@redhat.com>
28693
28694         announce-gen: use a better key-server host name
28695         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
28696         it may be more consistently reliable.  Suggested by Werner Koch
28697         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
28698
28699 2008-06-01  Bruno Haible  <bruno@clisp.org>
28700
28701         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
28702         Reported by Voroskoi Andras <voroskoi@gmail.com>.
28703
28704 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
28705
28706         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
28707
28708 2008-06-01  Bruno Haible  <bruno@clisp.org>
28709
28710         New ACL tests.
28711         * tests/test-file-has-acl.sh: New file.
28712         * tests/test-file-has-acl.c: New file.
28713         * tests/test-set-mode-acl.sh: New file.
28714         * tests/test-set-mode-acl.c: New file.
28715         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
28716         * tests/test-copy-acl.c: New file.
28717         * modules/acl-tests: New file, based on modules/copy-file-tests.
28718         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
28719         (Depends-on): Add acl-tests.
28720         (configure.ac): Remove checks.
28721         (Makefile.am): Don't create test-sameacls program here any more.
28722
28723 2008-06-01  Bruno Haible  <bruno@clisp.org>
28724
28725         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
28726         * tests/test-sameacls.c: Include progname.h.
28727         (main): Invoke set_program_name. Portability fixes for MacOS X,
28728         Solaris, HP-UX.
28729
28730 2008-06-01  Bruno Haible  <bruno@clisp.org>
28731
28732         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
28733         function.
28734         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
28735
28736 2008-06-01  Bruno Haible  <bruno@clisp.org>
28737
28738         * modules/rpmatch (Depends-on): Add strdup.
28739
28740 2008-06-01  Bruno Haible  <bruno@clisp.org>
28741
28742         * lib/pipe.c: Include unistd-safer.h.
28743         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
28744         * modules/pipe (Depends-on): Add unistd-safer.
28745
28746 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28747
28748         * modules/autobuild (configure.ac): Call AB_INIT.
28749
28750 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28751
28752         * tests/test-getaddrinfo.c: Don't print debug messages by default.
28753         Suggested by Bruno Haible <bruno@clisp.org>.
28754
28755 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28756
28757         * tests/test-base64.c: Cast size_t to unsigned long when invoking
28758         printf.  Use %lu instead of %d.  Reported by Bruno Haible
28759         <bruno@clisp.org>.
28760
28761 2008-05-29  Eric Blake  <ebb9@byu.net>
28762
28763         Prefer new POSIX 200x interfaces over futimesat.
28764         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
28765         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
28766         when available.
28767         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
28768
28769 2008-05-28  Bruno Haible  <bruno@clisp.org>
28770
28771         * modules/stpcpy (License): Change to LGPLv2+.
28772         Requested by David Lutterkort <dlutter@redhat.com>.
28773
28774 2008-05-27  Bruno Haible  <bruno@clisp.org>
28775
28776         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
28777         current mingw.
28778         Reported by Jose E. Marchesi <jemarch@gnu.org>.
28779
28780 2008-05-27  Bruno Haible  <bruno@clisp.org>
28781
28782         * modules/iconv_open (Link): New section, from module 'iconv'.
28783         * modules/striconv (Link): Likewise.
28784         * modules/striconveh (Link): Likewise.
28785         * modules/xstriconv (Link): Likewise.
28786         * modules/unicodeio (Link): Likewise.
28787         * modules/propername (Link): Likewise.
28788         Reported by Jim Meyering.
28789
28790 2008-05-26  Jim Meyering  <meyering@redhat.com>
28791
28792         sha256: do not artificially restrict buffer length to be < 2^32
28793         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
28794         uint32_t to size_t.
28795         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
28796         to match.
28797
28798         avoid unaligned access errors, e.g., on sparc
28799         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
28800         direct access through a possibly-unaligned uint64* pointer.
28801         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
28802         direct access through a possibly-unaligned uint32* pointer.
28803         Prompted by this patch from Tom "spot" Callaway:
28804         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
28805
28806         sha512.c: fix typo in comment
28807         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
28808
28809 2008-05-25  Bruno Haible  <bruno@clisp.org>
28810
28811         * lib/set-mode-acl.c: Renamed from lib/acl.c.
28812         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
28813         (Makefile.am): Update lib_SOURCES.
28814
28815 2008-05-25  Bruno Haible  <bruno@clisp.org>
28816
28817         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
28818
28819 2008-05-25  Jim Meyering  <meyering@redhat.com>
28820
28821         useless-if-before-free: freed expr may have white-space differences
28822         * build-aux/useless-if-before-free: Recognize cases in which the
28823         freed expression differs from the tested one in embedded white
28824         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
28825         $1 was used, so we can't make any regexp shy.  Improved tests now
28826         detect this.
28827
28828         useless-if-before-free: accept white space in the expression.
28829         * build-aux/useless-if-before-free: For now, any white space
28830         in the expression must be identical in the free argument.
28831
28832         useless-if-before-free: efficiency tweak
28833         * build-aux/useless-if-before-free: Make the expression-matching
28834         regexp "shy".
28835         Make the *outer* regexp shy, not the expr-matching one.
28836
28837         update code-in-comment to accept cast of free arg
28838         * build-aux/useless-if-before-free: Update regexp.
28839
28840 2008-05-25  Bruno Haible  <bruno@clisp.org>
28841
28842         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
28843         * modules/copy-file-tests (Files, Makefile.am): Update.
28844         * tests/test-copy-file.c (func_test_copy): Update.
28845
28846 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
28847
28848         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
28849
28850 2008-05-23  Bruno Haible  <bruno@clisp.org>
28851
28852         Improve support for ACLs on OSF/1.
28853         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
28854         Remove fallback for unknown flavors of ACLs.
28855
28856 2008-05-22  Bruno Haible  <bruno@clisp.org>
28857
28858         Add support for ACLs on OSF/1.
28859         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
28860         replacements.
28861         (acl_free_text): New macro fallback.
28862         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
28863         acl_free.
28864         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
28865         acl_free_text function. Require AC_C_INLINE.
28866
28867 2008-05-22  Bruno Haible  <bruno@clisp.org>
28868
28869         Make copy_acl work on MacOS X 10.5.
28870         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
28871         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
28872         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
28873         If MODE_INSIDE_ACL, don't assume that every system has the same text
28874         representation for ACLs as FreeBSD.
28875         * lib/copy-acl.c (copy_acl): Add support for platforms with
28876         !MODE_INSIDE_ACL.
28877         * lib/file-has-acl.c (file_has_acl): Likewise.
28878         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
28879         FreeBSD, MacOS X, or IRIX, respectively.
28880
28881 2008-05-22  Bruno Haible  <bruno@clisp.org>
28882
28883         * lib/acl.h: Don't include <sys/acl.h>.
28884         (GETACLCNT): Move fallback to lib/acl-internal.h.
28885         * lib/acl-internal.h: Include <sys/acl.h> here.
28886         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
28887
28888 2008-05-22  Bruno Haible  <bruno@clisp.org>
28889
28890         Split off copy_acl function to separate file.
28891         * lib/copy-acl.c: New file, extracted from lib/acl.c.
28892         * lib/acl.c (copy_acl): Moved function to separate file.
28893         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
28894         * modules/acl (Files): Add lib/copy-acl.c.
28895         (Makefiles.am): Augment lib_SOURCES.
28896
28897 2008-05-22  Bruno Haible  <bruno@clisp.org>
28898
28899         * modules/copy-file-tests: New file.
28900         * tests/test-copy-file.sh: New file.
28901         * tests/test-copy-file.c: New file.
28902         * tests/test-copy-file-sameacls.c: New file.
28903
28904 2008-05-22  Eric Blake  <ebb9@byu.net>
28905
28906         Avoid gcc warning.
28907         * tests/test-memcmp.c (main): Pass NULL indirectly.
28908
28909 2008-05-21  Bruno Haible  <bruno@clisp.org>
28910
28911         Add reference doc about ACLs.
28912         * doc/acl-resources.txt: New file.
28913         * doc/acl-cygwin.txt: New file.
28914
28915 2008-05-21  Bruno Haible  <bruno@clisp.org>
28916
28917         Avoid one more warning from gcc.
28918         * lib/vasnprintf.c (IF_LINT): Update comments.
28919         (VASNPRINTF): Use it also for the 'prefix' array initializer.
28920
28921 2008-05-21  Jim Meyering  <meyering@redhat.com>
28922
28923         avoid a warning from gcc
28924         * lib/vasnprintf.c (IF_LINT): Define.
28925         (scale10_round_decimal_long_double):
28926         Use it to avoid a "may be used uninitialized" warning.
28927         (scale10_round_decimal_double): Likewise.
28928
28929 2008-05-21  Simon Josefsson  <simon@josefsson.org>
28930
28931         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
28932         declared.
28933
28934 2008-05-20  Bruno Haible  <bruno@clisp.org>
28935
28936         * tests/test-memcmp.c (main): Test also the sign of the result. Test
28937         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
28938
28939 2008-05-20  Simon Josefsson  <simon@josefsson.org>
28940
28941         * modules/memcmp-tests: New file.
28942         * tests/test-memcmp.c: New file.
28943
28944 2008-05-19  Bruno Haible  <bruno@clisp.org>
28945
28946         * modules/propername (Notice, configure.ac): Put quoted "..." into
28947         --keyword option.
28948         * lib/propername.h: Update comments accordingly.
28949         Reported by Eric Blake.
28950
28951 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
28952
28953         * modules/getpass-gnu (Depends-on): Add fseeko.
28954
28955 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28956
28957         * modules/base64-tests: New file.
28958
28959 2008-05-19  Bo Borgerson <gigabo@gmail.com>
28960
28961         * lib/base64.c (base64_decode_ctx): If a decode context structure
28962         was passed in use it to ignore newlines.  If a context structure
28963         was _not_ passed in, continue to treat newlines as garbage (this
28964         is the historical behavior).  Formerly base64_decode.
28965         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28966         takes a decode context structure.
28967         * lib/base64.h (base64_decode): Macro for four-argument calls.
28968         (base64_decode_alloc): Likewise.
28969         * lib/base64.c (base64_decode_ctx): If a decode context structure
28970         was passed in use it to ignore newlines.  If a context structure
28971         was _not_ passed in, continue to treat newlines as garbage (this
28972         is the historical behavior).  Formerly base64_decode.
28973         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28974         takes a decode context structure.
28975         * lib/base64.h (base64_decode): Macro for four-argument calls.
28976         (base64_decode_alloc): Likewise.
28977
28978 2008-05-19  Jim Meyering  <meyering@redhat.com>
28979
28980         avoid a warning from gcc
28981         * lib/trim.c (IF_LINT): Define.
28982         (trim2): Use it to avoid a "may be used uninitialized" warning.
28983
28984         Fix doc typo.
28985         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
28986
28987 2008-05-19  Bruno Haible  <bruno@clisp.org>
28988
28989         * doc/glibc-functions/getpass.texi: Document limits of other
28990         implementations.
28991
28992 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28993             Bruno Haible <bruno@clisp.org>
28994
28995         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
28996
28997 2008-05-18  Bruno Haible  <bruno@clisp.org>
28998
28999         * modules/propername: New file, from GNU gettext.
29000         * lib/propername.h: New file, from GNU gettext.
29001         * lib/propername.c: New file, from GNU gettext.
29002         * MODULES.html.sh (Internationalization functions): Add propername.
29003
29004 2008-05-16  Jim Meyering  <meyering@redhat.com>
29005             Bruno Haible  <bruno@clisp.org>
29006
29007         Avoid some warnings from "gcc -Wshadow".
29008         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29009
29010 2008-05-15  Eric Blake  <ebb9@byu.net>
29011
29012         Extend previous patch to cygwin 1.7.0.
29013         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29014         fast implementation in cygwin >= 1.7.0.
29015         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29016         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29017
29018 2008-05-15  Bruno Haible  <bruno@clisp.org>
29019
29020         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29021         implementation in glibc >= 2.9.
29022         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29024
29025 2008-05-15  Bruno Haible  <bruno@clisp.org>
29026
29027         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29028         (Unicode string functions): Add unilbrk/*.
29029         Reported by Karl Berry.
29030
29031 2008-05-15  Eric Blake  <ebb9@byu.net>
29032
29033         Fix violation of <stdbool.h> replacement in regex.
29034         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29035         * lib/regexec.c (re_search_internal): Likewise.
29036         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29037
29038 2008-05-15  Jim Meyering  <meyering@redhat.com>
29039
29040         avoid distracting test output when git or cvs is not found
29041         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29042         * tests/test-vc-list-files-git.sh: Likewise.
29043
29044 2008-05-15  Eric Blake  <ebb9@byu.net>
29045
29046         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29047         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29048         glibc version.
29049         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29050         * doc/posix-functions/strstr.texi (strstr): Likewise.
29051         * lib/str-two-way.h (MAX): Sychronize with glibc.
29052
29053 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29054
29055         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29056         opr.ctx_type.
29057         (calc_first): Initialize constraint field.
29058         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29059         Fix grammar.
29060         (duplicate_node): Merge constraint field for all node types.
29061         (calc_eclosure_iter): Look at constraint field for all node types.
29062         * lib/regex_internal.c (create_cd_newstate): Don't look at
29063         opr.ctx_type.
29064
29065 2008-05-14  Bruno Haible  <bruno@clisp.org>
29066
29067         Help GCC to do better code generation.
29068         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29069         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29070         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29071         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29072         Declare with attribute 'malloc' if supported.
29073
29074 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29075
29076         use "echo STR|wc -c" rather than unportable "expr length STR"
29077         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29078         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29079
29080 2008-05-14  Jim Meyering  <meyering@redhat.com>
29081
29082         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29083         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29084         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29085         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29086         via Collin Lasse.
29087
29088 2008-05-14  Eric Blake  <ebb9@byu.net>
29089
29090         Avoid quadratic growth in gl_LIBSOURCES.
29091         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29092         Suggested by Bruno Haible.
29093
29094         Test xmemdup0.
29095         * modules/xmemdup0-tests: New file.
29096         * tests/test-xmemdup0.c: Likewise.
29097
29098 2008-05-13  Eric Blake  <ebb9@byu.net>
29099
29100         Split xmemdup0 into its own module.
29101         * modules/xmemdup0: New file.
29102         * lib/xmemdup0.h: Likewise.
29103         * lib/xmemdup0.c: Likewise.
29104         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29105         * lib/xalloc.h (xmemdup0): Remove.
29106         * lib/xmalloc.c (xmemdup0): Likewise.
29107
29108 2008-05-13  Eric Blake  <ebb9@byu.net>
29109             Bruno Haible  <bruno@clisp.org>
29110
29111         Reduce number of forks required during autoconf.
29112         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29113         and gl_LIBSOURCES_DIR.
29114         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29115         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29116         m4_syscmd per file.
29117         <m4_foreach_w>: Move...
29118         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29119
29120 2008-05-13  Eric Blake  <ebb9@byu.net>
29121
29122         * gnulib-tool: Fix various comment typos.
29123
29124 2008-05-12  Bruno Haible  <bruno@clisp.org>
29125
29126         Tailor the linebreaking algorithm.
29127         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29128
29129 2008-05-12  Bruno Haible  <bruno@clisp.org>
29130
29131         Update to Unicode 5.0.0.
29132         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29133         LBP_JV, LBP_JT. Redistribute values.
29134         (unilbrk_table): Change size.
29135         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29136         Unicode TR#14 rev. 22.
29137         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29138         LBP_JV, LBP_JT. Redistribute values.
29139         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29140         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29141         Update.
29142         * lib/unilbrk/lbrkprop1.h: Regenerated.
29143         * lib/unilbrk/lbrkprop2.h: Regenerated.
29144         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29145         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29146         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29147         Likewise.
29148         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29149         Likewise.
29150         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29151         result.
29152         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29153         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29154         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29155         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29156         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29157         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29158
29159 2008-05-11  Bruno Haible  <bruno@clisp.org>
29160
29161         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29162
29163 2008-05-11  Bruno Haible  <bruno@clisp.org>
29164
29165         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29166         * modules/unilbrk/gen-lbrk: New file.
29167
29168 2008-05-11  Bruno Haible  <bruno@clisp.org>
29169
29170         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29171         * m4/sha512.m4 (gl_SHA512): Likewise.
29172
29173 2008-05-11  Jim Meyering  <meyering@redhat.com>
29174
29175         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29176         * modules/crypto/sha256: New file.
29177         * modules/crypto/sha512: Likewise.
29178         * lib/sha256.c: Likewise.
29179         * lib/sha256.h: Likewise.
29180         * lib/sha512.c: Likewise.
29181         * lib/sha512.h: Likewise.
29182         * lib/u64.h: Likewise.
29183         * m4/sha256.m4: Likewise.
29184         * m4/sha512.m4: Likewise.
29185         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29186
29187 2008-05-10  Bruno Haible  <bruno@clisp.org>
29188
29189         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29190         (Input/Output <stdio.h>): Add xprintf.
29191         (Signal handling <signal.h>): Add strsignal.
29192         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29193         (Core language properties): Add func.
29194         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29195         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29196         strings.
29197         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29198         (Input/output): New section.
29199         (File system functions): Add openat-die, stat-macros.
29200         (Networking functions): Add sockets.
29201         (Unicode string functions): Add unictype/*.
29202         (Support for building libraries and executables): Add gperf.
29203         (Support for building documentation): Add agpl-3.0.
29204         (Misc): Add nocrash.
29205
29206 2008-05-10  Bruno Haible  <bruno@clisp.org>
29207
29208         * modules/unictype/gen-ctype: New file.
29209
29210 2008-05-10  Jim Meyering  <meyering@redhat.com>
29211
29212         Make chdir-safer.c more efficient on a system with no symlinks.
29213         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29214         also if ELOOP is zero.  Suggested by Bruno Haible.
29215
29216         Make chdir-safer.c slightly safer.
29217         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29218         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29219
29220         Avoid compile failure on systems without ELOOP (like mingw).
29221         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29222         Reported by Bruno Haible.
29223
29224 2008-05-10  Bruno Haible  <bruno@clisp.org>
29225
29226         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29227         (is_utf8_encoding): Use a case-insensitive comparison.
29228         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29229         streq.
29230
29231 2008-05-10  Bruno Haible  <bruno@clisp.org>
29232
29233         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29234         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29235         * lib/unilbrk/ulc-common.h (iconv_string_length,
29236         iconv_string_keeping_offsets): Remove declarations.
29237         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29238         Don't include <iconv.h>, streq.h, xsize.h.
29239         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29240         conversion.
29241         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29242         <iconv.h>, streq.h, xsize.h.
29243         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29244         conversion.
29245         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29246         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29247         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29248         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29249
29250 2008-05-10  Bruno Haible  <bruno@clisp.org>
29251
29252         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29253         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29254
29255         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29256         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29257
29258         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29259         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29260
29261         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29262         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29263
29264         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29265         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29266
29267         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29268         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29269
29270         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29271         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29272
29273         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29274         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29275
29276 2008-05-10  Bruno Haible  <bruno@clisp.org>
29277
29278         Split up 'linebreak' module.
29279         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29280         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29281         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29282         modifications.
29283         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29284         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29285         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29286         lib/linebreak.c.
29287         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29288         lib/linebreak.c.
29289         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29290         lib/linebreak.c.
29291         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29292         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29293         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29294         lib/linebreak.c.
29295         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29296         lib/linebreak.c.
29297         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29298         lib/linebreak.c.
29299         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29300         lib/linebreak.c.
29301         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29302         lib/linebreak.c.
29303         * modules/unilbrk/base: New file.
29304         * modules/unilbrk/tables: New file.
29305         * modules/unilbrk/u8-possible-linebreaks: New file.
29306         * modules/unilbrk/u16-possible-linebreaks: New file.
29307         * modules/unilbrk/u32-possible-linebreaks: New file.
29308         * modules/unilbrk/ulc-common: New file.
29309         * modules/unilbrk/ulc-possible-linebreaks: New file.
29310         * modules/unilbrk/u8-width-linebreaks: New file.
29311         * modules/unilbrk/u16-width-linebreaks: New file.
29312         * modules/unilbrk/u32-width-linebreaks: New file.
29313         * modules/unilbrk/ulc-width-linebreaks: New file.
29314         * lib/linebreak.h: Remove file.
29315         * lib/linebreak.c: Remove file.
29316         * m4/linebreak.m4: Remove file.
29317         * modules/linebreak: Remove file.
29318         * NEWS: Mention the changes.
29319
29320 2008-05-09  Eric Blake  <ebb9@byu.net>
29321
29322         Add xmemdup0.
29323         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29324         implementation.
29325         * lib/xmalloc.c (xmemdup0): New C implementation.
29326
29327 2008-05-08  Bruno Haible  <bruno@clisp.org>
29328
29329         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29330
29331 2008-05-07  Eric Blake  <ebb9@byu.net>
29332
29333         Support cross-compilation of <wctype.h>.
29334         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29335         AC_CACHE_CHECK.
29336
29337 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29338
29339         * build-aux/vc-list-files: Add support for bzr.
29340
29341 2008-05-03  Jim Meyering  <meyering@redhat.com>
29342
29343         avoid failed assertion with tight malloc
29344         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29345
29346 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29347
29348         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29349         are needed from arpa/inet.h.
29350         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29351         Reported by Bruno Haible.
29352
29353 2008-05-02  Jim Meyering  <meyering@redhat.com>
29354
29355         avoid compilation error on FreeBSD 6
29356         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29357
29358 2008-05-01  Jim Meyering  <meyering@redhat.com>
29359
29360         useless-if-before-free: correct --help's exit status description
29361         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29362         for one or more matches, etc.  Reported by Bruno Haible.
29363
29364         vc-list-files: make the stand-alone gnulib test work
29365         * modules/vc-list-files-tests (configure.ac):
29366         Define and AC_SUBST abs_aux_dir.
29367         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29368         $(abs_top_srcdir) to each script and having each of them
29369         duplicate the work of setting PATH, set PATH here, using
29370         the new variable, abs_aux_dir instead.
29371         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29372         * tests/test-vc-list-files-git.sh: Likewise.
29373         Reported by Bruno Haible.
29374
29375 2008-05-01  Bruno Haible  <bruno@clisp.org>
29376
29377         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29378         reallocation. Rename 'done' to 'found_delimiter'.
29379
29380 2008-05-01  Jim Meyering  <meyering@redhat.com>
29381
29382         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29383         * build-aux/vc-list-files: Use `...`, not $(...).
29384
29385 2008-04-30  Jim Meyering  <meyering@redhat.com>
29386
29387         add tests for vc-list-files
29388         * modules/vc-list-files-tests: New module.
29389         * tests/test-vc-list-files-cvs.sh: New file.
29390         * tests/test-vc-list-files-git.sh: New file.
29391
29392         avoid a warning from gcc
29393         * lib/getndelim2.c (IF_LINT): Define.
29394         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29395
29396         vc-list-files: work properly with build-aux/cvsu, too
29397         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29398         to all cvs-based clauses.
29399
29400         vc-list-files: work properly in the CVS+awk case, too
29401         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29402
29403         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29404         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29405         take more than one file argument, so .  Add quotes, just in case $dir
29406         ever contains a shell meta-character.  Prompted by Soren Hansen in
29407         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29408
29409 2008-04-29  Eric Blake  <ebb9@byu.net>
29410
29411         Optimize getndelim2 to use block operations when possible.
29412         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29413         freadseek, and memchr2.
29414         * lib/getndelim2.c (getndelim2): Use them for block reads.
29415
29416 2008-04-29  Bruno Haible  <bruno@clisp.org>
29417
29418         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29419         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29420         * modules/inet_ntop (Depends-on): Add extensions.
29421         * modules/inet_pton (Depends-on): Likewise.
29422         Reported by Simon Josefsson.
29423
29424 2008-04-29  Jim Meyering  <meyering@redhat.com>
29425
29426         When the is more than one match in a block, match all of them.
29427         * build-aux/useless-if-before-free: Iterate through each block
29428         until there are no more matches.
29429
29430         Fix broken useless-if-before-free script.
29431         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29432         the expression to match cast of argument to free-like function.
29433
29434 2008-04-29  Eric Blake  <ebb9@byu.net>
29435
29436         Use new header.
29437         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29438
29439 2008-04-29  Jim Meyering  <meyering@redhat.com>
29440
29441         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29442         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29443         by gnulib to exist and to declare e.g., inet_ntop.
29444         Don't include "inet_ntop.h", now removed.
29445
29446         * m4/arpa_inet_h.m4: Remove trailing blanks.
29447
29448 2008-04-29  Eric Blake  <ebb9@byu.net>
29449
29450         Silence valgrind on safe reads beyond potential array bounds.
29451         * lib/rawmemchr.valgrind: New file.
29452         * lib/strchrnul.valgrind: Likewise.
29453         * modules/rawmemchr (Files): Distribute new file.
29454         * modules/strchrnul (Files): Likewise.
29455         Suggested by Bruno Haible.
29456
29457 2008-04-29  Bruno Haible  <bruno@clisp.org>
29458
29459         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29460         (inet_ntop, inet_pton): Change portability warning's wording.
29461         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29462         Invoke gl_CHECK_NEXT_HEADERS.
29463         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29464         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29465         set ARPA_INET_H.
29466         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29467         * modules/arpa_inet (Description): No longer only for systems that
29468         lack it.
29469         (Depends-on): Add include_next.
29470         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29471         HAVE_ARPA_INET_H.
29472
29473 2008-04-29  Jim Meyering  <meyering@redhat.com>
29474
29475         * modules/mkdir (License): Re-license as LGPLv2+.
29476
29477 2008-04-29  Bruno Haible  <bruno@clisp.org>
29478
29479         * modules/rawmemchr (Maintainer): Set to Eric.
29480         * modules/strchrnul (Maintainer): Likewise.
29481
29482 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29483
29484         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29485         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29486
29487         * modules/arpa_inet (arpa/inet.h): Use them.
29488
29489 2008-04-28  Eric Blake  <ebb9@byu.net>
29490
29491         Test getndelim2.
29492         * modules/getndelim2-tests: New file.
29493         * tests/test-getndelim2.c: Likewise.
29494         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29495         stream.
29496         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29497
29498         * MODULES.html.sh: Document new module.
29499
29500 2008-04-20  Bruno Haible  <bruno@clisp.org>
29501
29502         * lib/c-stack.c (die): Use raise.
29503         * modules/c-stack (Depends-on): Add raise.
29504
29505 2008-04-28  Bruno Haible  <bruno@clisp.org>
29506
29507         Expect rpmatch to be declared.
29508         * lib/yesno.c (rpmatch): Remove declaration.
29509
29510         Declare rpmatch.
29511         * lib/stdlib.in.h (rpmatch): New declaration.
29512         * lib/rpmatch.c: Include <stdlib.h> first.
29513         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29514         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29516         HAVE_RPMATCH.
29517         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29519         (Include): Set to <stdlib.h>.
29520         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29521         HAVE_RPMATCH.
29522         * NEWS: Document the change.
29523
29524 2008-04-28  Bruno Haible  <bruno@clisp.org>
29525
29526         Change rpmatch to use nl_langinfo when appropriate.
29527         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29528         (N_): New macro.
29529         (localized_pattern): New function/macro.
29530         (try): Remove match, nomatch arguments. Copy the pattern into safe
29531         memory before caching it.
29532         (rpmatch): Use localized_pattern. Add translator comments.
29533         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29534         Suggested by Eric Blake.
29535         * modules/rpmatch (Depends-on): Add stdbool.
29536
29537 2008-04-28  Eric Blake  <ebb9@byu.net>
29538
29539         Add rawmemchr module, matching glibc.
29540         * modules/string (Makefile.am): New indicator.
29541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29542         * lib/string.in.h (rawmemchr): Declare when appropriate.
29543         * modules/rawmemchr: New file.
29544         * m4/rawmemchr.m4: Likewise.
29545         * lib/rawmemchr.c: Likewise.
29546         * modules/rawmemchr-tests: Likewise.
29547         * tests/test-rawmemchr.c: Likewise.
29548         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
29549         module.
29550         * modules/strchrnul (Depends-on): Add rawmemchr.
29551         * lib/strchrnul.c (strchrnul): Optimize a corner case.
29552
29553         Whitespace cleanup.
29554         * tests/test-strchrnul.c: Reindent.
29555         * lib/strchrnul.c: Likewise.
29556
29557         Optimize and test strchrnul.
29558         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
29559         * modules/strchrnul-tests: New file.
29560         * tests/test-strchrnul.c: Likewise.
29561
29562         Remove intprops dependency.
29563         * modules/memchr (Depends-on): Remove intprops.
29564         * modules/memrchr (Depends-on): Likewise.
29565         * modules/memchr2 (Depends-on): Likewise.
29566         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
29567         * lib/memrchr.c (__memrchr): Likewise.
29568         * lib/memrchr2.c (memchr2): Likewise.
29569         Reported by Simon Josefsson.
29570
29571 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29572
29573         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
29574         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29575
29576 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29577
29578         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
29579
29580         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
29581
29582         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
29583
29584         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
29585         declarations.
29586         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
29587
29588         * m4/inet_pton.m4: Don't check for header files.
29589
29590         * m4/inet_ntop.m4: Don't check for header files.
29591
29592 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29593
29594         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
29595         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
29596         trigger for cygwin).
29597         Reported by Bruno Haible  <bruno@clisp.org>.
29598
29599 2008-04-28  Bruno Haible  <bruno@clisp.org>
29600
29601         * doc/posix-functions/strdup.texi: Mention mingw problem.
29602
29603 2008-04-27  Bruno Haible  <bruno@clisp.org>
29604
29605         * modules/stat-time-tests (Depends-on): Add sleep.
29606         * tests/test-stat-time.c (force_unlink): New function.
29607         (cleanup): Use it.
29608         (test_mtime): Remove the ctime related tests.
29609         (test_ctime): New function, containing the ctime related tests.
29610         (main): Call test_ctime, except on native Windows platforms.
29611
29612 2008-04-27  Bruno Haible  <bruno@clisp.org>
29613
29614         * lib/rpmatch.c (rpmatch): Add some comments.
29615         Reported by James Youngman <jay@gnu.org>.
29616
29617 2008-04-27  Bruno Haible  <bruno@clisp.org>
29618
29619         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
29620         quiet NaNs.
29621
29622 2008-04-27  Bruno Haible  <bruno@clisp.org>
29623
29624         Make test-yesno.sh work on mingw.
29625         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
29626         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
29627         (main): Set stdin to binary mode.
29628         * modules/yesno-tests (Depends-on): Add binary-io.
29629
29630 2008-04-27  Bruno Haible  <bruno@clisp.org>
29631
29632         Fix 'isfinite' on x86, x86_64, ia64 platforms.
29633         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
29634         argument that lie outside the IEEE 854 domain.
29635         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
29636         (gl_ISFINITE): Use it.
29637         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
29638
29639 2008-04-27  Bruno Haible  <bruno@clisp.org>
29640
29641         Allow local renaming in config.h.
29642         * lib/memrchr.c (memrchr): Don't undefine outside libc.
29643
29644 2008-04-27  Bruno Haible  <bruno@clisp.org>
29645
29646         * lib/memchr.c (__memchr): Change type of 'i'.
29647         * lib/memchr2.c (memchr2): Likewise.
29648
29649 2008-04-26  Eric Blake  <ebb9@byu.net>
29650         and Bruno Haible  <bruno@clisp.org>
29651
29652         Optimize and test memrchr.
29653         * modules/memrchr (Depends-on): Add intprops.
29654         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
29655         * modules/memrchr-tests: New file.
29656         * tests/test-memrchr.c: New file.
29657
29658 2008-04-26  Bruno Haible  <bruno@clisp.org>
29659
29660         Add tentative support for DragonFly BSD.
29661         * lib/stdio-impl.h: Add macros for DragonFly BSD.
29662         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
29663         fp.
29664         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
29665         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
29666         * lib/fpurge.c (fpurge): Likewise.
29667         * lib/freadable.c (freaadable): Likewise.
29668         * lib/freadahead.c (freadahead): Likewise.
29669         * lib/freading.c (freading): Likewise.
29670         * lib/freadptr.c (freadptr): Likewise.
29671         * lib/freadseek.c (freadptrinc): Likewise.
29672         * lib/fseeko.c (fseeko): Likewise.
29673         * lib/fseterr.c (fseterr): Likewise.
29674         * lib/fwritable.c (fwritable): Likewise.
29675         * lib/fwriting.c (fwriting): Likewise.
29676
29677 2008-04-26  Bruno Haible  <bruno@clisp.org>
29678
29679         * lib/stdio-impl.h: New file.
29680         * lib/fbufmode.c: Include stdio-impl.h.
29681         (fbufmode): Use fp_, remove redundant #defines.
29682         * lib/fflush.c: Include stdio-impl.h.
29683         (clear_ungetc_buffer): Remove redundant #defines.
29684         * lib/fpurge.c: Include stdio-impl.h.
29685         (fpurge): Remove redundant #defines.
29686         * lib/freadable.c: Include stdio-impl.h.
29687         (freadable): Remove redundant #defines.
29688         * lib/freadahead.c: Include stdio-impl.h.
29689         (freadahead): Remove redundant #defines.
29690         * lib/freading.c: Include stdio-impl.h.
29691         (freading): Remove redundant #defines.
29692         * lib/freadptr.c: Include stdio-impl.h.
29693         (freadptr): Remove redundant #defines.
29694         * lib/freadseek.c: Include stdio-impl.h.
29695         (freadptrinc): Remove redundant #defines.
29696         * lib/fseeko.c: Include stdio-impl.h.
29697         (rpl_fseeko): Remove redundant #defines.
29698         * lib/fseterr.c: Include stdio-impl.h.
29699         (fseterr): Remove redundant #defines.
29700         * lib/fwritable.c: Include stdio-impl.h.
29701         (fwritable: Remove redundant #defines.
29702         * lib/fwriting.c: Include stdio-impl.h.
29703         (fwriting): Remove redundant #defines.
29704         * modules/fbufmode (Files): Add lib/stdio-impl.h.
29705         * modules/fflush (Files): Likewise.
29706         * modules/fpurge (Files): Likewise.
29707         * modules/freadable (Files): Likewise.
29708         * modules/freadahead (Files): Likewise.
29709         * modules/freading (Files): Likewise.
29710         * modules/freadptr (Files): Likewise.
29711         * modules/freadseek (Files): Likewise.
29712         * modules/fseeko (Files): Likewise.
29713         * modules/fseterr (Files): Likewise.
29714         * modules/fwritable (Files): Likewise.
29715         * modules/fwriting (Files): Likewise.
29716
29717 2008-04-26  Bruno Haible  <bruno@clisp.org>
29718
29719         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
29720         restore_seek_optimization, update_fpos_cache): New functions, extracted
29721         from rpl_fflush.
29722         (rpl_fflush): Use them.
29723         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
29724         (gl_REPLACE_FFLUSH): Use it.
29725
29726 2008-04-26  Bruno Haible  <bruno@clisp.org>
29727
29728         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
29729         on Solaris.
29730         * tests/test-xstrtoimax.sh: Likewise.
29731         * tests/test-xstrtoumax.sh: Likewise.
29732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29733
29734 2008-04-26  Bruno Haible  <bruno@clisp.org>
29735
29736         * modules/memchr-tests: New file.
29737         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
29738
29739 2008-04-26  Eric Blake  <ebb9@byu.net>
29740             Bruno Haible  <bruno@clisp.org>
29741
29742         * lib/memchr.c: Include intprops.h.
29743         (__memchr): Optimize parallel detection of matching bytes. Rename local
29744         variables. Add explanatory comments.
29745
29746 2008-04-26  Bruno Haible  <bruno@clisp.org>
29747
29748         Fix module 'memchr', broken since 2000-10-28.
29749         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
29750
29751 2008-04-26  Bruno Haible  <bruno@clisp.org>
29752
29753         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
29754         comments.
29755
29756 2008-04-25  Eric Blake  <ebb9@byu.net>
29757
29758         Use native fstatat on cygwin 1.7.0.
29759         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
29760         first.
29761
29762 2008-04-23  Eric Blake  <ebb9@byu.net>
29763
29764         Improve memchr2 performance.
29765         * lib/memchr2.c (memchr2): Further optimize parallel detection of
29766         NUL bytes.
29767         * modules/memchr2 (Depends-on): Use intprops.h.
29768
29769 2008-04-23  Simon Josefsson  <simon@josefsson.org>
29770
29771         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
29772         an inline function instead of a CPP macro.  Patch by Ben Pfaff
29773         <blp@cs.stanford.edu>.
29774
29775 2008-04-23  Simon Josefsson  <simon@josefsson.org>
29776
29777         * lib/arpa_inet.in.h: New file.
29778
29779         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
29780         (Makefile.am): Sed in substitute header file.
29781
29782         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
29783         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
29784
29785         * modules/inet_ntop (configure.ac): Use
29786         gl_ARPA_INET_MODULE_INDICATOR.
29787
29788         * modules/inet_pton (configure.ac): Use
29789         gl_ARPA_INET_MODULE_INDICATOR.
29790
29791 2008-04-22  Jim Meyering  <meyering@redhat.com>
29792
29793         * modules/verify (License): Re-license as LGPLv2+.
29794
29795 2008-04-22  Simon Josefsson  <simon@josefsson.org>
29796
29797         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
29798         parameter to void* as per POSIX standard (MinGW uses char*).
29799
29800 2008-04-21  Bruno Haible  <bruno@clisp.org>
29801
29802         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
29803         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
29804         Define to replacements if REPLACE_ISWCNTRL is 1.
29805         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
29806         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
29807         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
29808         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
29809         what it fixes.
29810         * doc/posix-functions/iswalpha.texi: Likewise.
29811         * doc/posix-functions/iswblank.texi: Likewise.
29812         * doc/posix-functions/iswcntrl.texi: Likewise.
29813         * doc/posix-functions/iswdigit.texi: Likewise.
29814         * doc/posix-functions/iswgraph.texi: Likewise.
29815         * doc/posix-functions/iswlower.texi: Likewise.
29816         * doc/posix-functions/iswprint.texi: Likewise.
29817         * doc/posix-functions/iswpunct.texi: Likewise.
29818         * doc/posix-functions/iswspace.texi: Likewise.
29819         * doc/posix-functions/iswupper.texi: Likewise.
29820         * doc/posix-functions/iswxdigit.texi: Likewise.
29821         Reported by Alain Guibert.
29822
29823 2008-04-21  Bruno Haible  <bruno@clisp.org>
29824
29825         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
29826         Patch by Alain Guibert.
29827
29828 2008-04-21  Bruno Haible  <bruno@clisp.org>
29829
29830         Fix test failures on mingw.
29831         * tests/test-xstrtol.c (print_no_progname): New function.
29832         (main): Install it in error_print_progname hook.
29833         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
29834         * tests/test-xstrtoimax.sh: Likewise.
29835         * tests/test-xstrtoumax.sh: Likewise.
29836
29837 2008-04-21  Bruno Haible  <bruno@clisp.org>
29838
29839         Fix test failure on mingw.
29840         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
29841
29842 2008-04-21  Bruno Haible  <bruno@clisp.org>
29843
29844         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
29845         Actually assign a value.
29846
29847 2008-04-20  Bruno Haible  <bruno@clisp.org>
29848
29849         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
29850         take 2.
29851         * lib/canonicalize.c (canonicalize_file_name): Elide if the
29852         'canonicalize-lgpl' module is also used.
29853         * lib/canonicalize-lgpl.c: Undo last change.
29854         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
29855
29856 2008-04-20  Bruno Haible  <bruno@clisp.org>
29857
29858         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
29859         config.h. Provide _mkdir based fallback for mingw.
29860         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
29861         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
29862         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
29863         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
29864         rather than defining mkdir in config.h.
29865         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
29866         (gl_SYS_STAT_H_DEFAULTS): New macro.
29867         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
29868         HAVE_IO_H any more.
29869         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
29870         HAVE_DECL_MKDIR and HAVE_IO_H.
29871
29872 2008-04-20  Bruno Haible  <bruno@clisp.org>
29873
29874         * lib/isapipe.c: Port to native Windows platforms.
29875
29876 2008-04-20  Bruno Haible  <bruno@clisp.org>
29877
29878         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
29879
29880 2008-04-21  Eric Blake  <ebb9@byu.net>
29881
29882         Work around preprocessors that don't handle UINTMAX_MAX.
29883         * lib/memchr2.c (memchr2): Avoid embedded #if.
29884         Reported by Alain Guibert, fix suggested by Bruno Haible.
29885
29886 2008-04-21  Simon Josefsson  <simon@josefsson.org>
29887
29888         * doc/posix-functions/strftime.texi (strftime): Explain better
29889         Windows incompatibility.  Suggested by Micah Cowan
29890         <micah@cowan.name>.
29891
29892 2008-04-20  Bruno Haible  <bruno@clisp.org>
29893
29894         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
29895         unistr/u8-mblen.
29896
29897 2008-04-20  Bruno Haible  <bruno@clisp.org>
29898
29899         Fix test failure on platforms with non-GNU iconv.
29900         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
29901         (U_TO_U8): Use it, rather than u16_to_u8.
29902         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
29903         units at the end of the input string.
29904         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
29905
29906 2008-04-20  Bruno Haible  <bruno@clisp.org>
29907
29908         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
29909         when the resulting length is 0.
29910         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
29911
29912 2008-04-20  Bruno Haible  <bruno@clisp.org>
29913
29914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
29915         works.
29916         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
29917
29918 2008-04-20  Bruno Haible  <bruno@clisp.org>
29919
29920         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
29921         * modules/tsearch-tests (configure.ac): Test for initstate function.
29922
29923 2008-04-20  Bruno Haible  <bruno@clisp.org>
29924
29925         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
29926         for nlink_t if missing.
29927         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
29928
29929 2008-04-19  Bruno Haible  <bruno@clisp.org>
29930
29931         Work around snprintf bug on Linux libc5.
29932         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
29933         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29934         gl_SNPRINTF_SIZE1.
29935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29936         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
29937         that test failed.
29938         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
29939         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
29940         * modules/snprintf (Files): Add m4/printf.m4.
29941         * modules/vsnprintf (Files): Likewise.
29942         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
29943         * doc/posix-functions/vsnprintf.texi: Likewise.
29944
29945 2008-04-19  Bruno Haible  <bruno@clisp.org>
29946
29947         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
29948         from 0.0058 to less than 10^-7.
29949
29950 2008-04-19  Bruno Haible  <bruno@clisp.org>
29951
29952         Fix rounding when a precision is given.
29953         * lib/vasnprintf.c (is_borderline): New function.
29954         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
29955         9...9x.
29956         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
29957         %e, %g.
29958         * tests/test-vasprintf-posix.c (test_function): Likewise.
29959         * tests/test-snprintf-posix.h (test_function): Likewise.
29960         * tests/test-sprintf-posix.h (test_function): Likewise.
29961         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
29962         * tests/test-printf-posix.h (test_function): Likewise.
29963         * tests/test-printf-posix.output: Update.
29964         Reported by John Darrington <john@darrington.wattle.id.au> via
29965         Ben Pfaff <blp@cs.stanford.edu>.
29966
29967 2008-04-18  Simon Josefsson  <simon@josefsson.org>
29968
29969         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
29970         Suggested by Bruno Haible <bruno@clisp.org>.
29971
29972 2008-04-17  Bruno Haible  <bruno@clisp.org>
29973
29974         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
29975         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
29976         implementation.
29977         Patch by Bruce Merry <bmerry@gmail.com>.
29978
29979 2008-04-17  Simon Josefsson  <simon@josefsson.org>
29980
29981         * doc/posix-functions/strftime.texi (strftime): Mention that %e
29982         doesn't work under Windows.
29983
29984 2008-04-16  Bruno Haible  <bruno@clisp.org>
29985
29986         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
29987         New macros.
29988         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
29989         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
29990         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
29991         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
29992         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
29993         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
29994         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
29995         macros.
29996         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
29997         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
29998         Northern Sotho, Uighur.
29999
30000 2008-04-16  Bruno Haible  <bruno@clisp.org>
30001
30002         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30003         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30004         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30005         Reported by Daniel Bergström <daniel@octocode.com>.
30006
30007 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30008             Bruno Haible  <bruno@clisp.org>
30009
30010         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30011         function.
30012         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30013         New functions, mostly extracted from gl_locale_name_default.
30014         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30015
30016 2008-04-16  Eric Blake  <ebb9@byu.net>
30017
30018         Adjust strtod detection to catch glibc 2.7 bug.
30019         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30020         Reported by John Gatewood Ham.
30021
30022 2008-04-16  Bruno Haible  <bruno@clisp.org>
30023
30024         Add tentative support for Linux libc5.
30025         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30026         * lib/fpurge.c (fpurge): Likewise.
30027         * lib/freadable.c (freadable): Likewise.
30028         * lib/freadahead.c (freadahead): Likewise.
30029         * lib/freading.c (freading): Likewise.
30030         * lib/freadptr.c (freadptr): Likewise.
30031         * lib/freadseek.c (freadptrinc): Likewise.
30032         * lib/fseeko.c (rpl_fseeko): Likewise.
30033         * lib/fseterr.c (fseterr): Likewise.
30034         * lib/fwritable.c (fwritable): Likewise.
30035         * lib/fwriting.c (fwriting): Likewise.
30036         Reported by Alain Guibert <alguibert+bts@free.fr>.
30037
30038 2008-04-15  Bruno Haible  <bruno@clisp.org>
30039
30040         * modules/mathl (configure.ac): Define module indicator.
30041
30042 2008-04-15  Bruno Haible  <bruno@clisp.org>
30043
30044         * lib/logl.c (logl): Remove unused variables.
30045
30046 2008-04-15  Bruno Haible  <bruno@clisp.org>
30047
30048         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30049         fails.
30050
30051 2008-04-15  Bruno Haible  <bruno@clisp.org>
30052
30053         * lib/trim.c (trim2): Fix argument of isspace() macro.
30054
30055 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30056
30057         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30058         to 0.
30059         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30060
30061 2008-04-14  Bruno Haible  <bruno@clisp.org>
30062
30063         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30064         AC_LANG_PROGRAM argument.
30065         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30066         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30068         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30069         * m4/math_h.m4 (gl_MATH_H): Likewise.
30070         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30072         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30073         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30074         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30075         * m4/regex.m4 (gl_REGEX): Likewise.
30076         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30077         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30079         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30080         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30081         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30082         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30084
30085 2008-04-14  Jim Meyering  <meyering@redhat.com>
30086
30087         test-strtod: fix typos: s/abs/fabs/
30088         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30089
30090 2008-04-13  Bruno Haible  <bruno@clisp.org>
30091
30092         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30093         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30094         module is also used and while not building the reloc-wrapper.
30095
30096 2008-04-13  Bruno Haible  <bruno@clisp.org>
30097
30098         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30099
30100 2008-04-13  Bruno Haible  <bruno@clisp.org>
30101
30102         Fix AIX compilation failure introduced on 2008-04-02.
30103         * tests/test-frexp.c (exp): Undefine before redefining.
30104         * tests/test-frexpl.c (exp): Likewise.
30105
30106 2008-04-13  Bruno Haible  <bruno@clisp.org>
30107
30108         Work around a HP-UX stdio bug.
30109         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30110         * tests/test-ftello.c (main): Likewise.
30111         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30112         * doc/posix-functions/ftello.texi: Likewise.
30113
30114 2008-04-13  Bruno Haible  <bruno@clisp.org>
30115
30116         Make test-signbit pass on HP-UX/hppa.
30117         * tests/test-signbit.c (minus_zerol): New variable.
30118         (test_signbitl): Use it.
30119
30120 2008-04-13  Bruno Haible  <bruno@clisp.org>
30121
30122         Make truncl work on OSF/1 4.0.
30123         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30124         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30125         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30127         HAVE_DECL_TRUNCL.
30128         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30129         HAVE_DECL_TRUNCL.
30130         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30131
30132 2008-04-13  Bruno Haible  <bruno@clisp.org>
30133
30134         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30135
30136 2008-04-13  Bruno Haible  <bruno@clisp.org>
30137
30138         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30139         expression, so as to avoid HP-UX 11 cc compiler bug.
30140
30141 2008-04-13  Bruno Haible  <bruno@clisp.org>
30142
30143         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30144
30145 2008-04-13  Bruno Haible  <bruno@clisp.org>
30146
30147         * lib/git-merge-changelog.c: Remove empty declaration outside of
30148         functions.
30149
30150 2008-04-13  Bruno Haible  <bruno@clisp.org>
30151
30152         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30153
30154 2008-04-13  Bruno Haible  <bruno@clisp.org>
30155
30156         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30157         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30158         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30159         also if it exists but lacks definitions of the SHUT_* macros.
30160         * modules/sys_socket (Description): Update.
30161         Reported by Elbert Pol <e.pol@chello.nl>.
30162
30163 2008-04-13  Bruno Haible  <bruno@clisp.org>
30164
30165         * lib/localcharset.c (OS2): Don't redefine if already defined.
30166         Reported by Elbert Pol <e.pol@chello.nl>.
30167
30168 2008-04-13  Bruno Haible  <bruno@clisp.org>
30169
30170         * lib/binary-io.h [__EMX__]: Include <io.h>.
30171         Reported by Elbert Pol <e.pol@chello.nl>.
30172
30173 2008-04-12  Bruno Haible  <bruno@clisp.org>
30174
30175         * lib/fpucw.h: Enable the definitions also for x86_64.
30176         Needed for NetBSD/x86_64.
30177         Reported by Thomas Klausner <tk@giga.or.at>.
30178
30179 2008-04-12  Bruno Haible  <bruno@clisp.org>
30180
30181         * tests/test-strtod.c: Include isnand.h.
30182         (main): Use isnand instead of isnan.
30183         Reported by Jim Meyering.
30184
30185 2008-04-12  Bruno Haible  <bruno@clisp.org>
30186
30187         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30188         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30189
30190 2008-04-12  Jim Meyering  <meyering@redhat.com>
30191
30192         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30193
30194 2008-04-12  Bruno Haible  <bruno@clisp.org>
30195
30196         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30197         Reported by Elbert Pol <e.pol@chello.nl>.
30198
30199 2008-04-12  Eric Blake  <ebb9@byu.net>
30200
30201         Work around Solaris 10 math.h bug.
30202         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30203         (gl_MATH_H_DEFAULTS): Set up default.
30204         * modules/math (Makefile.am): Replace new indicators.
30205         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30206         * tests/test-math.c (main): Test this.
30207         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30208         * doc/posix-headers/math.texi (math.h): Mention bug.
30209         Reported by Nelson H. F. Beebe and Jim Meyering.
30210
30211 2008-04-11  Bruno Haible  <bruno@clisp.org>
30212
30213         Adapt to future versions of Apple GCC.
30214         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30215         Reported by Peter O'Gorman <peter@pogma.com>.
30216
30217 2008-04-11  Bruno Haible  <bruno@clisp.org>
30218
30219         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30220
30221 2008-04-11  Bruno Haible  <bruno@clisp.org>
30222
30223         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30224
30225         * modules/getaddrinfo-tests (Makefile.am): Define
30226         test_getaddrinfo_LDADD.
30227
30228 2008-04-11  Bruno Haible  <bruno@clisp.org>
30229
30230         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30231         (init): Fix syntax error.
30232         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30233         is declared.
30234
30235 2008-04-11  Bruno Haible  <bruno@clisp.org>
30236
30237         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30238         * modules/glob (Depends-on): Add stdbool.
30239
30240 2008-04-11  Bruno Haible  <bruno@clisp.org>
30241
30242         * lib/trim.c: Include <string.h>.
30243
30244 2008-04-11  Eric Blake  <ebb9@byu.net>
30245
30246         Avoid compile failure on OS/2.
30247         * lib/regex_internal.h (internal_function): Disable optimization
30248         on OS/2 (__EMX__), where it caused compiler error.
30249         Reported by Elbert Pol.
30250
30251 2008-04-11  Bruno Haible  <bruno@clisp.org>
30252
30253         Flush the standard error stream before aborting. Needed on mingw.
30254         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30255         * tests/test-array_list.c (ASSERT): Likewise.
30256         * tests/test-array_oset.c (ASSERT): Likewise.
30257         * tests/test-avltree_list.c (ASSERT): Likewise.
30258         * tests/test-avltree_oset.c (ASSERT): Likewise.
30259         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30260         * tests/test-binary-io.c (ASSERT): Likewise.
30261         * tests/test-byteswap.c (ASSERT): Likewise.
30262         * tests/test-c-ctype.c (ASSERT): Likewise.
30263         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30264         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30265         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30266         * tests/test-c-strstr.c (ASSERT): Likewise.
30267         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30268         * tests/test-canonicalize.c (ASSERT): Likewise.
30269         * tests/test-carray_list.c (ASSERT): Likewise.
30270         * tests/test-ceilf1.c (ASSERT): Likewise.
30271         * tests/test-ceilf2.c (ASSERT): Likewise.
30272         * tests/test-ceill.c (ASSERT): Likewise.
30273         * tests/test-count-one-bits.c (ASSERT): Likewise.
30274         * tests/test-fbufmode.c (ASSERT): Likewise.
30275         * tests/test-fflush2.c (ASSERT): Likewise.
30276         * tests/test-floorf1.c (ASSERT): Likewise.
30277         * tests/test-floorf2.c (ASSERT): Likewise.
30278         * tests/test-floorl.c (ASSERT): Likewise.
30279         * tests/test-fopen.c (ASSERT): Likewise.
30280         * tests/test-fpending.c (ASSERT): Likewise.
30281         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30282         * tests/test-fpurge.c (ASSERT): Likewise.
30283         * tests/test-freadable.c (ASSERT): Likewise.
30284         * tests/test-freadahead.c (ASSERT): Likewise.
30285         * tests/test-freading.c (ASSERT): Likewise.
30286         * tests/test-freadptr.c (ASSERT): Likewise.
30287         * tests/test-freadptr2.c (ASSERT): Likewise.
30288         * tests/test-freadseek.c (ASSERT): Likewise.
30289         * tests/test-freopen.c (ASSERT): Likewise.
30290         * tests/test-frexp.c (ASSERT): Likewise.
30291         * tests/test-frexpl.c (ASSERT): Likewise.
30292         * tests/test-fseek.c (ASSERT): Likewise.
30293         * tests/test-fseeko.c (ASSERT): Likewise.
30294         * tests/test-fstrcmp.c (ASSERT): Likewise.
30295         * tests/test-ftell.c (ASSERT): Likewise.
30296         * tests/test-ftello.c (ASSERT): Likewise.
30297         * tests/test-func.c (ASSERT): Likewise.
30298         * tests/test-fwritable.c (ASSERT): Likewise.
30299         * tests/test-fwriting.c (ASSERT): Likewise.
30300         * tests/test-getdelim.c (ASSERT): Likewise.
30301         * tests/test-getline.c (ASSERT): Likewise.
30302         * tests/test-i-ring.c (ASSERT): Likewise.
30303         * tests/test-iconv-utf.c (ASSERT): Likewise.
30304         * tests/test-iconv.c (ASSERT): Likewise.
30305         * tests/test-isfinite.c (ASSERT): Likewise.
30306         * tests/test-isnand.c (ASSERT): Likewise.
30307         * tests/test-isnanf.c (ASSERT): Likewise.
30308         * tests/test-isnanl.h (ASSERT): Likewise.
30309         * tests/test-ldexpl.c (ASSERT): Likewise.
30310         * tests/test-linked_list.c (ASSERT): Likewise.
30311         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30312         * tests/test-localename.c (ASSERT): Likewise.
30313         * tests/test-lseek.c (ASSERT): Likewise.
30314         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30315         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30316         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30317         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30318         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30319         * tests/test-mbschr.c (ASSERT): Likewise.
30320         * tests/test-mbscspn.c (ASSERT): Likewise.
30321         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30322         * tests/test-mbspbrk.c (ASSERT): Likewise.
30323         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30324         * tests/test-mbsrchr.c (ASSERT): Likewise.
30325         * tests/test-mbsspn.c (ASSERT): Likewise.
30326         * tests/test-mbsstr1.c (ASSERT): Likewise.
30327         * tests/test-mbsstr2.c (ASSERT): Likewise.
30328         * tests/test-mbsstr3.c (ASSERT): Likewise.
30329         * tests/test-memchr2.c (ASSERT): Likewise.
30330         * tests/test-memmem.c (ASSERT): Likewise.
30331         * tests/test-open.c (ASSERT): Likewise.
30332         * tests/test-printf-frexp.c (ASSERT): Likewise.
30333         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30334         * tests/test-printf-posix.c (ASSERT): Likewise.
30335         * tests/test-quotearg.c (ASSERT): Likewise.
30336         * tests/test-rbtree_list.c (ASSERT): Likewise.
30337         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30338         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30339         * tests/test-round1.c (ASSERT): Likewise.
30340         * tests/test-roundf1.c (ASSERT): Likewise.
30341         * tests/test-roundl.c (ASSERT): Likewise.
30342         * tests/test-signbit.c (ASSERT): Likewise.
30343         * tests/test-sleep.c (ASSERT): Likewise.
30344         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30345         * tests/test-snprintf.c (ASSERT): Likewise.
30346         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30347         * tests/test-stat-time.c (ASSERT): Likewise.
30348         * tests/test-strcasestr.c (ASSERT): Likewise.
30349         * tests/test-strerror.c (ASSERT): Likewise.
30350         * tests/test-striconv.c (ASSERT): Likewise.
30351         * tests/test-striconveh.c (ASSERT): Likewise.
30352         * tests/test-striconveha.c (ASSERT): Likewise.
30353         * tests/test-strsignal.c (ASSERT): Likewise.
30354         * tests/test-strstr.c (ASSERT): Likewise.
30355         * tests/test-strtod.c (ASSERT): Likewise.
30356         * tests/test-trunc1.c (ASSERT): Likewise.
30357         * tests/test-trunc2.c (ASSERT): Likewise.
30358         * tests/test-truncf1.c (ASSERT): Likewise.
30359         * tests/test-truncf2.c (ASSERT): Likewise.
30360         * tests/test-truncl.c (ASSERT): Likewise.
30361         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30362         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30363         * tests/test-vasnprintf.c (ASSERT): Likewise.
30364         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30365         * tests/test-vasprintf.c (ASSERT): Likewise.
30366         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30367         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30368         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30369         * tests/test-vsnprintf.c (ASSERT): Likewise.
30370         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30371         * tests/test-wcwidth.c (ASSERT): Likewise.
30372         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30373         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30374         * tests/test-xvasprintf.c (ASSERT): Likewise.
30375         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30376         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30377         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30378         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30379         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30380         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30381         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30382         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30383         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30384         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30385         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30386         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30387         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30388         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30389         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30390         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30391         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30392         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30393         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30394         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30395         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30396         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30397         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30398         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30399         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30400         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30401         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30402         * tests/unictype/test-combining.c (ASSERT): Likewise.
30403         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30404         * tests/unictype/test-digit.c (ASSERT): Likewise.
30405         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30406         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30407         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30408         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30409         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30410         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30411         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30412         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30413         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30414         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30415         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30416         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30417         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30418         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30419         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30420         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30421         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30422         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30423         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30424         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30425         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30426         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30427         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30428         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30429         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30430         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30431         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30432         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30433         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30434         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30435         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30436         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30437         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30438         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30439         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30440         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30441         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30442         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30443         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30444         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30445         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30446         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30447         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30448         Reported by Eric Blake.
30449
30450 2008-04-11  Bruno Haible  <bruno@clisp.org>
30451
30452         * lib/wchar.in.h: Tweak comment.
30453
30454 2008-04-11  Bruno Haible  <bruno@clisp.org>
30455
30456         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30457         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30458         gl_COMMON.
30459         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30460
30461 2008-04-11  Bruno Haible  <bruno@clisp.org>
30462
30463         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30464
30465 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30466
30467         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30468         of attempting to use non-existing /dev/*random.  Based on patch
30469         from Adam Strzelecki <ono@java.pl> in
30470         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30471
30472 2008-04-08  Bruno Haible  <bruno@clisp.org>
30473
30474         Add tentative support for emx+gcc.
30475         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30476         * lib/fpurge.c (fpurge): Likewise.
30477         * lib/freadable.c (freadable): Likewise.
30478         * lib/freadahead.c (freadahead): Likewise.
30479         * lib/freading.c (freading): Likewise.
30480         * lib/freadptr.c (freadptr): Likewise.
30481         * lib/freadseek.c (freadptrinc): Likewise.
30482         * lib/fseeko.c (rpl_fseeko): Likewise.
30483         * lib/fseterr.c (fseterr): Likewise.
30484         * lib/fwritable.c (fwritable): Likewise.
30485         * lib/fwriting.c (fwriting): Likewise.
30486         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30487
30488 2008-04-09  Eric Blake  <ebb9@byu.net>
30489
30490         Avoid some autoconf warnings.
30491         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30492         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30493         * m4/afs.m4 (gl_AFS): Likewise.
30494         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30495         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30496         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30497         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30498         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30499         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30500         (AC_CHECK_DECLS_ONCE): Likewise.
30501         Rename file...
30502         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30503         gnulib-tool requires autoconf 2.59 or better.
30504         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30505
30506 2008-04-08  Eric Blake  <ebb9@byu.net>
30507
30508         Use 'git describe --match' if present (added in git 1.5.5).
30509         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30510         if possible.
30511
30512 2008-04-08  Bruno Haible  <bruno@clisp.org>
30513
30514         Add tentative support for OpenServer.
30515         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30516         _ptr, _cnt.
30517         * lib/fpurge.c (fpurge): Likewise.
30518         * lib/freadable.c (freadable): Likewise.
30519         * lib/freadahead.c (freadahead): Likewise.
30520         * lib/freading.c (freading): Likewise.
30521         * lib/freadptr.c (freadptr): Likewise.
30522         * lib/freadseek.c (freadptrinc): Likewise.
30523         * lib/fseeko.c (rpl_fseeko): Likewise.
30524         * lib/fseterr.c (fseterr): Likewise.
30525         * lib/fwritable.c (fwritable): Likewise.
30526         * lib/fwriting.c (fwriting): Likewise.
30527         Reported by Roger Cornelius <rac@tenzing.org> and
30528         Brian K. White <brian@aljex.com>.
30529
30530 2008-04-06  Jim Meyering  <meyering@redhat.com>
30531
30532         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30533
30534 2008-04-06  Bruno Haible  <bruno@clisp.org>
30535
30536         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30537         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30538         * tests/test-printf-posix.sh: Likewise.
30539         * tests/test-vfprintf-posix.sh: Likewise.
30540         * tests/test-vprintf-posix.sh: Likewise.
30541         * tests/test-xprintf-posix.sh: Likewise.
30542
30543 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30544
30545         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30546         hide error from 'ls', needed on OS/2.
30547         Report by Elbert Pol <elbert.pol@gmail.com>.
30548
30549 2008-04-04  Eric Blake  <ebb9@byu.net>
30550
30551         Make test-fseeko.c failures meaningful.
30552         * tests/test-fseeko.c: Print line number on failure.
30553         * tests/test-fseek.c: Likewise.
30554         Reported by Nelson H. F. Beebe.
30555
30556         Improve strtod bug detection check.
30557         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
30558         required for Solaris 10.
30559         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
30560
30561 2008-04-04  Bruno Haible  <bruno@clisp.org>
30562
30563         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
30564         by m4/setenv.m4.
30565
30566 2008-04-03  Eric Blake  <ebb9@byu.net>
30567
30568         Ensure sane .version contents.
30569         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
30570         version string.
30571         * build-aux/git-version-gen: Improve documentation.
30572
30573         Make GNU make output nicer.
30574         * top/GNUmakefile [!_have-Makefile]: Add dependency on
30575         MAKECMDGOALS to enforce message for all command line targets.  Set
30576         srcdir for use in maint.mk.
30577
30578         Another maintainer tweak.
30579         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
30580         a target that regenerates version.
30581
30582 2008-04-03  Jim Meyering  <meyering@redhat.com>
30583
30584         vc-list-files: don't cause coreutils "make po-check" failure
30585         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
30586
30587 2008-04-03  Eric Blake  <ebb9@byu.net>
30588
30589         Allow VPATH usage of vc-list-files.
30590         * build-aux/vc-list-files (scriptversion): Add timestamp.
30591         (options): Add --help, --version, -C.
30592         (CVS): Support installed cvsu.
30593
30594 2008-04-02  Bruno Haible  <bruno@clisp.org>
30595
30596         Avoid some "statement with no effect" warnings from gcc.
30597         * tests/test-wctype.c (main): Explicitly ignore unused values.
30598         Reported by Jim Meyering.
30599
30600 2008-04-02  Jim Meyering  <meyering@redhat.com>
30601
30602         Avoid some warnings from "gcc -Wshadow".
30603         * tests/test-frexp.c (exp): Define to a different identifier.
30604         * tests/test-frexpl.c (exp): Likewise.
30605
30606 2008-04-03  Jim Meyering  <meyering@redhat.com>
30607
30608         bootstrap: remove dangling *.[ch] symlinks from lib
30609         * build-aux/bootstrap [dangling symlink removal]: Move find's
30610         -depth option to precede all others, to avoid a warning.
30611         Remove *.[ch] files too, and from "$source_base" (usually lib/).
30612
30613 2008-04-02  Bruno Haible  <bruno@clisp.org>
30614
30615         Avoid some warnings from "gcc -Wshadow".
30616         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
30617         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
30618         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
30619         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
30620         Reported by Jim Meyering.
30621
30622 2008-04-01  Bruno Haible  <bruno@clisp.org>
30623
30624         Fix test to work on IRIX 6.5 with cc.
30625         * tests/test-math.c (numeric_equal): New function.
30626         (main): Use it.
30627
30628 2008-04-01  Bruno Haible  <bruno@clisp.org>
30629
30630         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
30631
30632 2008-04-01  Bruno Haible  <bruno@clisp.org>
30633
30634         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
30635         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30636         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
30637         (Depends-on): Remove math.
30638
30639         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
30640         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30641         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
30642         (Depends-on): Remove math.
30643
30644         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
30645         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30646         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
30647         (Depends-on): Remove math.
30648         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
30649         (Depends-on): Remove math.
30650
30651         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
30652         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30653         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
30654         (Depends-on): Remove math.
30655         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
30656         (Depends-on): Remove math.
30657
30658         * tests/test-round1.c: Include nan.h.
30659         (main): Use NaNd instead of NAN.
30660         * modules/round-tests (Files): Add tests/nan.h.
30661
30662         * tests/test-trunc1.c: Include nan.h.
30663         (main): Use NaNd instead of NAN.
30664         * modules/trunc-tests (Files): Add tests/nan.h.
30665
30666         * tests/test-roundf1.c: Include nan.h.
30667         (main): Use NaNf instead of NAN.
30668         * modules/roundf-tests (Files): Add tests/nan.h.
30669
30670         * tests/test-truncf1.c: Include nan.h.
30671         (main): Use NaNf instead of NAN.
30672         * modules/truncf-tests (Files): Add tests/nan.h.
30673
30674         * tests/test-ceilf1.c: Include nan.h.
30675         (main): Use NaNf instead of NAN.
30676         * modules/ceilf-tests (Files): Add tests/nan.h.
30677
30678         * tests/test-floorf1.c: Include nan.h.
30679         (main): Use NaNf instead of NAN.
30680         * modules/floorf-tests (Files): Add tests/nan.h.
30681
30682         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
30683         (main): Use NaNf instead of NAN.
30684         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
30685
30686         * tests/test-isnand.c: Include nan.h instead of <math.h>.
30687         (main): Use NaNd instead of NAN.
30688         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
30689
30690         * tests/test-frexp.c: Include nan.h.
30691         (main): Use NaNd instead of NAN.
30692         * modules/frexp-tests (Files): Add tests/nan.h.
30693
30694         * lib/isnan.c: Don't include <math.h>.
30695         (FUNC): Don't use NAN macro.
30696         * modules/isnand-nolibm (Depends-on): Remove math.
30697         * modules/isnanf-nolibm (Depends-on): Remove math.
30698         * modules/isnanl (Depends-on): Remove math.
30699         * modules/isnanl-nolibm (Depends-on): Remove math.
30700
30701         * tests/nan.h: New file.
30702
30703 2008-04-01  Eric Blake  <ebb9@byu.net>
30704
30705         Fix typos.
30706         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
30707         values to be the right type.
30708
30709         For now, cater to gnulib strtod inaccuracies.
30710         * tests/test-strtod.c (main): Allow 1-ulp error on expected
30711         fractional results.  While not as nice from a QoI perspective, it
30712         is a quicker patch than correctly implementing decimal to binary
30713         rounding.
30714
30715 2008-03-31  Eric Blake  <ebb9@byu.net>
30716
30717         Guarantee a definition of NAN.
30718         * lib/math.in.h (NAN): Define if missing.
30719         * tests/test-math.c (main): Test it.
30720         * doc/posix-headers/math.texi (math.h): Document this.
30721         * lib/isnan.c (rpl_isnand): Use it.
30722         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
30723         * tests/test-floorf1.c (NaN): Likewise.
30724         * tests/test-frexp.c (NaN): Likewise.
30725         * tests/test-isnand.c (NaN): Likewise.
30726         * tests/test-isnanf.c (NaN): Likewise.
30727         * tests/test-round1.c (NaN): Likewise.
30728         * tests/test-roundf1.c (NaN): Likewise.
30729         * tests/test-snprintf-posix.h (NaN): Likewise.
30730         * tests/test-sprintf-posix.h (NaN): Likewise.
30731         * tests/test-trunc1.c (NaN): Likewise.
30732         * tests/test-truncf1.c (NaN): Likewise.
30733         * tests/test-vasnprintf-posix.c (NaN): Likewise.
30734         * tests/test-vasprintf-posix.c (NaN): Likewise.
30735         * modules/isnand-nolibm (Depends-on): Add math.
30736         * modules/isnanf-nolibm (Depends-on): Likewise.
30737         * modules/isnanl (Depends-on): Likewise.
30738         * modules/isnanl-nolibm (Depends-on): Likewise.
30739         * modules/snprintf-posix-tests (Depends-on): Likewise.
30740         * modules/sprintf-posix-tests (Depends-on): Likewise.
30741         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
30742         * modules/vsprintf-posix-tests (Depends-on): Likewise.
30743         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
30744         * modules/vasprintf-posix-tests (Depends-on): Likewise.
30745
30746 2008-03-31  Bruno Haible  <bruno@clisp.org>
30747
30748         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
30749         * doc/posix-functions/strtod.texi: Likewise.
30750
30751 2008-03-31  Bruno Haible  <bruno@clisp.org>
30752
30753         * tests/test-strtod.c (main): Don't use C99 syntax.
30754
30755 2008-03-31  Bruno Haible  <bruno@clisp.org>
30756
30757         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
30758         Reported by Eric Blake.
30759
30760 2008-03-31  Jim Meyering  <meyering@redhat.com>
30761
30762         Don't compare actual signbit return values.
30763         * tests/test-strtod.c (main): Rather, compare only their
30764         zero/non-zero nature.
30765
30766 2008-03-31  Eric Blake  <ebb9@byu.net>
30767
30768         More strtod documentation.
30769         * doc/posix-functions/strtod.texi (strtod): Interpret more test
30770         failures as distinct bugs.
30771
30772 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
30773
30774         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
30775         Problem reported by Erik Benada in
30776         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
30777
30778 2008-03-30  Bruno Haible  <bruno@clisp.org>
30779
30780         * tests/test-strtod.c: Add comments about which assertion fails on which
30781         platform.
30782         * doc/posix-functions/strtod.texi: Add info about many more platforms.
30783
30784 2008-03-30  Eric Blake  <ebb9@byu.net>
30785
30786         Test signbit behavior on zeros.
30787         * tests/test-signbit.c (test_signbitf): Add tests for zero.
30788         (test_signbitd, test_signbitl): Likewise.
30789
30790         More strtod touchups.
30791         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
30792         sign of negative underflow, for now.  Use .5, not .1.
30793         * doc/posix-functions/strtod.texi (strtod): Mention these
30794         limitations.
30795         Reported by Jim Meyering.
30796
30797 2008-03-30  Bruno Haible  <bruno@clisp.org>
30798
30799         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
30800         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
30801
30802 2008-03-30  Bruno Haible  <bruno@clisp.org>
30803
30804         Avoid failure when attempting to return empty iconv results on some
30805         platforms.
30806         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
30807         allocation, don't report ENOMEM when the resulting string is empty.
30808
30809 2008-03-30  Bruno Haible  <bruno@clisp.org>
30810
30811         Fix buffer overrun.
30812         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
30813         Don't consider the width for tmp_length. Check count against tmp_length
30814         before doing the padding. Ensure enough allocation during padding.
30815
30816 2008-03-30  Eric Blake  <ebb9@byu.net>
30817
30818         strtod touchups.
30819         * lib/strtod.c (strtod): Avoid compiler warnings.
30820         Reported by Jim Meyering.
30821
30822 2008-03-30  Bruno Haible  <bruno@clisp.org>
30823
30824         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
30825         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
30826         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
30827         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
30828         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
30829         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
30830         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
30831         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
30832
30833         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
30834         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
30835         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
30836         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
30837         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
30838         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
30839         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
30840         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
30841
30842         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
30843         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
30844         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
30845         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
30846         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
30847         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
30848         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
30849         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
30850
30851         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
30852         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
30853
30854         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
30855         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
30856
30857         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
30858         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
30859
30860         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
30861         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
30862         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
30863
30864         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
30865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
30866         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
30867
30868         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
30869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
30870         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
30871
30872         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
30873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
30874         * modules/vasprintf (Depends-on): Add EOVERFLOW.
30875
30876         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
30877         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
30878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
30879         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
30880         (Depends-on): Add EOVERFLOW.
30881         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
30882         (Depends-on): Add EOVERFLOW.
30883         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30884         (Depends-on): Add EOVERFLOW.
30885         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30886         (Depends-on): Add EOVERFLOW.
30887         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30888         (Depends-on): Add EOVERFLOW.
30889         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30890         (Depends-on): Add EOVERFLOW.
30891         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30892         (Depends-on): Add EOVERFLOW.
30893         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30894         (Depends-on): Add EOVERFLOW.
30895
30896         * lib/sprintf.c (EOVERFLOW): Remove fallback.
30897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
30898         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
30899
30900         * lib/snprintf.c (EOVERFLOW): Remove fallback.
30901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
30902         * modules/snprintf (Depends-on): Add EOVERFLOW.
30903
30904         * lib/poll.c (EOVERFLOW): Remove fallback.
30905         * modules/poll (Depends-on): Add EOVERFLOW.
30906
30907         * lib/getugroups.c (EOVERFLOW): Remove fallback.
30908         * modules/getugroups (Depends-on): Add EOVERFLOW.
30909
30910         * lib/getdelim.c (EOVERFLOW): Remove fallback.
30911         * modules/getdelim (Depends-on): Add EOVERFLOW.
30912
30913         * lib/ftell.c (EOVERFLOW): Remove fallback.
30914         * modules/ftell (Depends-on): Add EOVERFLOW.
30915
30916         * lib/fprintf.c (EOVERFLOW): Remove fallback.
30917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
30918         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
30919
30920         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
30921
30922         * modules/EOVERFLOW-tests: New file.
30923         * tests/test-EOVERFLOW.c: New file.
30924
30925         * modules/EOVERFLOW: New file.
30926         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
30927
30928 2008-03-30  Bruno Haible  <bruno@clisp.org>
30929
30930         Fix bug introduced on 2007-06-10.
30931         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
30932         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
30933
30934 2008-03-30  Bruno Haible  <bruno@clisp.org>
30935
30936         Improve freadseek's efficiency after ungetc.
30937         * lib/freadseek.c: Include freadahead.h.
30938         (freadptrinc): New function, extracted from freadseek.
30939         (freadseek): Use it in a loop. Use freadahead to determine the number
30940         of loop iterations.
30941         * modules/freadseek (Depends-on): Add freadahead.
30942         (configure.ac): Require AC_C_INLINE.
30943
30944 2008-03-30  Bruno Haible  <bruno@clisp.org>
30945
30946         * lib/freadseek.c (freadseek): Don't ignore the return value of
30947         freadptr.
30948
30949 2008-03-29  Eric Blake  <ebb9@byu.net>
30950
30951         Add hex float support.
30952         * modules/strtod (Depends-on): Add c-ctype.
30953         (Link): Mention POW_LIB.
30954         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
30955         whitespace between 'e' and exponent.
30956         * tests/test-strtod.c (main): Enable hex float tests.
30957         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
30958         now provides.
30959
30960         Document various strtod bugs, with some fixes.
30961         * doc/posix-functions/strtod.texi (strtod): Document bugs with
30962         "-0x", "inf", "nan", and hex constants.
30963         * doc/posix-functions/atof.texi (atof): Likewise.
30964         * modules/stdlib (Makefile.am): Support strtod.
30965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30966         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
30967         detect additional strtod bugs.
30968         * lib/stdlib.in.h (rpl_strtod): Add declarations.
30969         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
30970         bool where appropriate.  Parse 'inf' and 'nan'.
30971         * tests/test-strtod.c: New file.
30972         * modules/strtod (Depends-on): Add stdbool, stdlib.
30973         (configure.ac): Turn on module indicator.
30974         * modules/strtod-tests: New module.
30975
30976 2008-03-29  Eric Blake  <ebb9@byu.net>
30977
30978         Fix ftell on mingw.
30979         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
30980         * modules/ftell-tests (Depends-on): Add binary-io.
30981         * modules/ftello-tests (Depends-on): Likewise.
30982         * tests/test-ftell.c (main): Enhance test to cover behavior after
30983         ungetc.  Enforce binary mode.
30984         * tests/test-ftello.c (main): Likewise.
30985
30986         Pass test-freadseek on cygwin.
30987         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
30988         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
30989         ungetc buffer.
30990
30991         * tests/test-fflush2.c (main): Fix typo.
30992
30993 2008-03-29  Bruno Haible  <bruno@clisp.org>
30994
30995         * tests/test-fflush2.c (main): Temporarily disable the contents of
30996         this test.
30997         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
30998         Reported by Eric Blake.
30999
31000 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31001
31002         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31003         (GC_SHA224_DIGEST_SIZE): Add.
31004
31005         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31006         (gc_hash_digest_length): Likewise.
31007         (gc_hash_buffer): Likewise.
31008
31009 2008-03-25  Bruno Haible  <bruno@clisp.org>
31010
31011         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31012         detail which gettext release to use.
31013         Reported by Simon Josefsson.
31014
31015 2008-03-26  Jim Meyering  <meyering@redhat.com>
31016
31017         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31018         * modules/gnumakefile (clean-GNUmakefile): Also, use
31019         test ... && ... || : syntax rather than if-then ... fi.
31020
31021         gnumakefile: Don't double-quote-expand $(VPATH) value.
31022         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31023
31024 2008-03-24  Eric Blake  <ebb9@byu.net>
31025
31026         Alter GNUmakefile to install into top directory.
31027         * modules/maintainer-makefile: Split, and add dependency...
31028         * modules/gnumakefile: to this new module.
31029         * build-aux/GNUmakefile: Move...
31030         * top/GNUmakefile: ...here.
31031         * build-aux/maint.mk: Move...
31032         * top/maint.mk: ...here.
31033         * MODULES.html.sh (Support for maintaining...): Document new
31034         module.
31035
31036 2008-03-23  Bruno Haible  <bruno@clisp.org>
31037
31038         * gnulib-tool: New options --vc-files, --no-vc-files.
31039         (func_usage): Document them.
31040         (vc_files): New variable.
31041         (func_import): Consider vc_files.
31042         (func_create_testdir): Set vc_files to empty.
31043         Suggested by Jim Meyering and Karl Berry.
31044
31045 2008-03-23  Bruno Haible  <bruno@clisp.org>
31046
31047         Fix regex compilation error on HP-UX 11.
31048         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31049         * modules/regex (Files): Add m4/mbstate_t.m4.
31050         Reported by Ton Voon <ton.voon@altinity.com>.
31051
31052 2008-03-23  Bruno Haible  <bruno@clisp.org>
31053
31054         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31055
31056 2008-03-23  Eric Blake  <ebb9@byu.net>
31057             Bruno Haible  <bruno@clisp.org>
31058
31059         Install files from top/ in the destination directory.
31060         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31061         augmentation also for the files from top/.
31062         (func_import, func_create_testdir): Rewrite file names:
31063         top/filename -> filename.
31064
31065 2008-03-23  Bruno Haible  <bruno@clisp.org>
31066
31067         Tweak "gnulib --version" output.
31068         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31069
31070 2008-03-23  Bruno Haible  <bruno@clisp.org>
31071
31072         Tweak "gnulib --version" output.
31073         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31074         rather than contents of ChangeLog, when possible.
31075
31076 2008-03-21  Eric Blake  <ebb9@byu.net>
31077
31078         More --version tweaks.
31079         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31080         date of last ChangeLog entry.
31081
31082 2008-03-21  Jim Meyering  <meyering@redhat.com>
31083
31084         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31085
31086 2008-03-20  Eric Blake  <ebb9@byu.net>
31087
31088         VPATH fix.
31089         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31090
31091 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31092
31093         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31094         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31095
31096 2008-03-20  Eric Blake  <ebb9@byu.net>
31097
31098         Sync GNUmakefile with coreutils.
31099         * build-aux/GNUmakefile (have-Makefile): Rename...
31100         (_have-Makefile): ...to this, for namespace consideration.
31101         (GNUmakefile.cfg): Include, if present.
31102         (_autoreconf): Define a default.
31103         (_is-dist-target): New rule for rebuilds to pick up intra-release
31104         version.
31105         (maint-cfg.mk): Rename...
31106         (cfg.mk): ...to this.
31107
31108 2008-03-18  Jim Meyering  <meyering@redhat.com>
31109
31110         New script and module: mktempd
31111         * MODULES.html.sh (maint+release support): Add mktempd.
31112         * build-aux/mktempd: New file.
31113         * modules/mktempd: New file.
31114
31115 2008-03-15  Jim Meyering  <meyering@redhat.com>
31116
31117         Undo last change.
31118         * lib/sha1.c, lib/md5.c: 63 != ~63.
31119         Reported by Andreas Schwab.
31120
31121         sha1.c, md5.c: Hoist a redundant expression.
31122         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31123         "ctx->buflen" only once, before calling *_process_block.
31124         * lib/md5.c (md5_process_bytes): Likewise.
31125
31126 2008-03-14  Eric Blake  <ebb9@byu.net>
31127
31128         Bump copyright year in files generated by gnulib-tool.
31129         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31130         gnulib-tool, rather than hard-coding it.
31131
31132         Fix 'gnulib-tool --version' output to work with git.
31133         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31134         (startup): ...here.
31135         (func_version): Use it to invoke git-version-gen, rather than
31136         relying on CVS keyword expansion.  Modernize wording.
31137         (cvsdatestamp, last_checkin_date, version): Kill unused
31138         variables.
31139
31140 2008-03-12  Jim Meyering  <meyering@redhat.com>
31141
31142         Recognize optional cast of the argument to free.
31143         * build-aux/useless-if-before-free: Update regexps.
31144
31145         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31146
31147 2008-03-11  Bruno Haible  <bruno@clisp.org>
31148
31149         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31150         by a single package.
31151         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31152         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31153         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31154         Reported by Sam Steingold <sds@gnu.org>.
31155
31156 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31157
31158         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31159         repositories.
31160
31161 2008-03-11  Bruno Haible  <bruno@clisp.org>
31162
31163         Avoid conflicts between local macro definitions.
31164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31165         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31166
31167 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31168             Bruno Haible  <bruno@clisp.org>
31169
31170         Make va_copy work with some version of xlc on AIX 5.1.
31171         * lib/stdarg.in.h: New file.
31172         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31173         On AIX, use a <stdarg.h> file substitute.
31174         * modules/stdarg (Files): Add lib/stdarg.in.h.
31175         (Depends-on): Add include_next.
31176         (Makefile.am): Build a stdarg.h substitute if requested.
31177         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31178
31179 2008-03-10  Bruno Haible  <bruno@clisp.org>
31180
31181         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31182         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31183         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31184
31185 2008-03-10  Bruno Haible  <bruno@clisp.org>
31186
31187         * modules/stdlib (Depends-on): Add include_next, remove
31188         absolute-header.
31189
31190 2008-03-09  Bruno Haible  <bruno@clisp.org>
31191
31192         * lib/freadahead.h (freadahead): Document more precisely.
31193         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31194         the sum of both buffer sizes.
31195         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31196         * NEWS: Document the change.
31197
31198 2008-03-09  Bruno Haible  <bruno@clisp.org>
31199
31200         Extend freadptr to return also the buffer size.
31201         * lib/freadptr.h (freadptr): Add sizep argument.
31202         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31203         (freadptr): Add sizep argument. Determine buffer size like freadahead
31204         does.
31205         * tests/test-freadptr.c: Don't include freadahead.h.
31206         (main): Adapt for new calling convention of freadptr.
31207         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31208         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31209         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31210         tests/test-freadptr2.sh.
31211         (Depends): Remove freadahead.
31212         (TESTS): Add test-freadptr2.sh.
31213         (check_PROGRAMS): Add test-freadptr2.
31214
31215 2008-03-09  Bruno Haible  <bruno@clisp.org>
31216
31217         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31218         Report and solution by Simon Josefsson.
31219
31220 2008-03-06  Bruno Haible  <bruno@clisp.org>
31221
31222         Make fflush after ungetc work on BSD platforms.
31223         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31224         * tests/test-fflush2.c: New file.
31225         * tests/test-fflush2.sh: New file.
31226         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31227         tests/test-fflush2.c.
31228         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31229         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31230
31231 2008-03-06  Eric Blake  <ebb9@byu.net>
31232
31233         Likewise for ftello.
31234         * modules/ftello (Dependencies): Add extensions.
31235         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31236
31237 2008-03-06  Bruno Haible  <bruno@clisp.org>
31238
31239         * modules/fseeko (Dependencies): Add extensions.
31240         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31241         Needed on glibc systems.
31242
31243 2008-03-06  Bruno Haible  <bruno@clisp.org>
31244
31245         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31246         email address.
31247         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31248
31249 2008-03-06  Bruno Haible  <bruno@clisp.org>
31250
31251         * users.txt: Add libgnupdf.
31252
31253 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31254
31255         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31256         (Header File Substitutes, Function Substitutes,
31257         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31258         (Build robot for gnulib): Fix typo.
31259
31260 2008-03-06  Bruno Haible  <bruno@clisp.org>
31261
31262         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31263         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31264
31265 2008-03-06  Bruno Haible  <bruno@clisp.org>
31266
31267         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31268         * doc/gnulib.texi: Include it.
31269
31270 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31271
31272         * modules/func (License): Change license to unlimited; there was
31273         no LGPL parts in the module anyway.
31274
31275 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31276
31277         * modules/__func__: Renamed to modules/func.
31278         * modules/__func__-tests: Renamed to modules/func-tests.
31279         * tests/test-__func__.c: Renamed to tests/test-func.c.
31280         * m4/__func__.m4: Renamed to m4/func.m4.
31281         * doc/gnulib.texi (__func__): Section renamed to func.
31282         Suggested by Eric Blake <ebb9@byu.net>.
31283
31284 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31285
31286         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31287         about __func__.  Make example self-contained.  Suggested by Eric
31288         Blake <ebb9@byu.net>.
31289
31290         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31291         Suggested by Eric Blake <ebb9@byu.net>.
31292
31293 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31294
31295         * modules/__func__: New file.
31296         * modules/__func__-tests: New file.
31297         * tests/test-__func__.c: New file.
31298         * m4/__func__.m4: New file.
31299         * doc/gnulib.texi (__func__): Document __func__ module.
31300
31301 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31302
31303         * modules/byteswap (License): Re-license as LGPLv2+.
31304
31305 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31306
31307         * doc/Makefile: Add pdf target.
31308
31309 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31310
31311         * modules/inline (License): Use 'unlimited', since there are only
31312         *.m4 files in this module.
31313
31314 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31315             Bruno Haible  <bruno@clisp.org>
31316
31317         Add support for HP C 7.1 on OpenVMS 8.3.
31318         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31319
31320 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31321
31322         Update VMS specifics.
31323         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31324
31325 2008-03-02  Jim Meyering  <meyering@redhat.com>
31326
31327         Remove the last dependency on the "free" module.
31328         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31329         Reported by Bob Proulx.
31330
31331         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31332
31333         Remove useless "if" tests before free.  Deprecate "free" module.
31334         * doc/posix-functions/free.texi: Mention that this
31335         module is no longer useful.
31336         * modules/free (Notice): Say this module is obsolete.
31337         * modules/readutmp (Depends-on): Remove free.
31338         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31339         * lib/putenv.c (putenv): Likewise.
31340         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31341         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31342         * tests/test-c-strcasestr.c (main): Likewise.
31343         * tests/test-c-strstr.c (main): Likewise.
31344         * tests/test-mbscasestr1.c (main): Likewise.
31345         * tests/test-mbscasestr2.c (main): Likewise.
31346         * tests/test-mbsstr1.c (main): Likewise.
31347         * tests/test-mbsstr2.c (main): Likewise.
31348         * tests/test-memmem.c (main): Likewise.
31349         * tests/test-strcasestr.c (main): Likewise.
31350         * tests/test-striconv.c (main): Likewise.
31351         * tests/test-striconveh.c (main): Likewise.
31352         * tests/test-striconveha.c (main): Likewise.
31353         * tests/test-strstr.c (main): Likewise.
31354
31355         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31356
31357         bootstrap: sync from coreutils again
31358         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31359
31360 2008-03-01  Jim Meyering  <meyering@redhat.com>
31361
31362         bootstrap: sync from coreutils
31363         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31364         also when the target doesn't exist.
31365
31366 2008-03-01  Eric Blake  <ebb9@byu.net>
31367
31368         Fix bugs in last patch.
31369         * lib/memchr2.c (memchr2): Fix typo.
31370         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31371         extension.
31372         Reported by Bruce Korb.
31373
31374         New module 'memchr2'.
31375         * modules/memchr2: New file.
31376         * modules/memchr2-tests: Likewise.
31377         * lib/memchr2.h: Likewise.
31378         * lib/memchr2.c: Likewise, based on memchr.c.
31379         * tests/test-memchr2.c: New test.
31380         * MODULES.html.sh (String handling): Add memchr2.
31381
31382 2008-02-29  Bruno Haible  <bruno@clisp.org>
31383
31384         * modules/freadseek-tests: New file.
31385         * tests/test-freadseek.sh: New file.
31386         * tests/test-freadseek.c: New file.
31387
31388         New module 'freadseek'.
31389         * modules/freadseek: New file.
31390         * lib/freadseek.h: New file.
31391         * lib/freadseek.c: New file.
31392         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31393
31394 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31395
31396         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31397         wydawca.
31398
31399         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31400         program_invocation_name and program_invocation_short_name are
31401         present.
31402
31403 2008-02-28  Bruno Haible  <bruno@clisp.org>
31404
31405         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31406         * tests/test-freadptr.sh: Also test non-seekable stdin.
31407
31408 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31409
31410         * build-aux/bootstrap (source_base, m4_base)
31411         (doc_base, tests_base): New variables.
31412         (gnulib_tool_options): Do not hardcode base directories, use
31413         the above variables instead.
31414
31415 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31416
31417         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31418
31419 2008-02-28  Bruno Haible  <bruno@clisp.org>
31420
31421         * modules/freadptr-tests: New file.
31422         * tests/test-freadptr.sh: New file.
31423         * tests/test-freadptr.c: New file.
31424
31425         New module 'freadptr'.
31426         * modules/freadptr: New file.
31427         * lib/freadptr.h: New file.
31428         * lib/freadptr.c: New file.
31429         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31430
31431 2008-02-26  Karl Berry  <karl@freefriends.org>
31432
31433         Sync from Libtool:
31434         * libltdl/argz.c (argz_add, argz_count): New functions.
31435         * libltdl/argz.in.h: Declare them.
31436         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31437
31438 2008-02-22  Bruno Haible  <bruno@clisp.org>
31439
31440         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31441         is a pointer type.  Needed for HP-UX 10.
31442         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31443         * doc/posix-functions/gmtime_r.texi: Likewise.
31444         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31445
31446 2008-02-24  Bruno Haible  <bruno@clisp.org>
31447
31448         * modules/environ-tests: New file.
31449         * tests/test-environ.c: New file.
31450
31451         New module 'environ'.
31452         * modules/environ: New file.
31453         * lib/unistd.in.h (environ): New declaration.
31454         * m4/environ.m4: New file.
31455         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31456         after use.
31457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31458         HAVE_DECL_ENVIRON.
31459         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31460         HAVE_DECL_ENVIRON.
31461         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31462         wrong claim that 'environ' is missing on some systems.
31463         * modules/execute (Depends-on): Add environ.
31464         * lib/execute.c (environ): Remove fallback declaration.
31465         * modules/pipe (Depends-on): Add environ.
31466         * lib/pipe.c (environ): Remove fallback declaration.
31467         * modules/setenv (Depends-on): Add environ.
31468         * lib/setenv.c (environ): Remove fallback declaration.
31469         * modules/unsetenv (Depends-on): Add environ.
31470         * lib/unsetenv.c (environ): Remove fallback declaration.
31471         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31472         m4/environ.m4.
31473         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31474         (gl_PREREQ_UNSETENV): Likewise.
31475
31476 2008-02-24  Bruno Haible  <bruno@clisp.org>
31477
31478         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31479
31480 2008-02-20  Bob Proulx  <bob@proulx.com>
31481
31482         Enable use of older two part flavor 'git describe'.
31483         * build-aux/git-version-gen: If using the older two part flavor of
31484         git version then recreate the third part now present in the
31485         newer three part flavor of git describe.
31486
31487 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31488
31489         * lib/fts.c (fts_build): Typo correction to comment.
31490
31491 2008-02-17  Bruno Haible  <bruno@clisp.org>
31492
31493         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31494         generating no-op conflicts.
31495
31496 2008-02-17  Bruno Haible  <bruno@clisp.org>
31497
31498         Speed up by 10%.
31499         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31500         result_entries, rather than an index-based loop.
31501
31502 2008-02-17  Bruno Haible  <bruno@clisp.org>
31503
31504         Speed up by 25%.
31505         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31506         'hashcode_cached'.
31507         (entry_create): New function.
31508         (entry_hashcode): Use the cached hashcode if possible.
31509         (read_changelog_file, try_split_merged_entry): Use entry_create.
31510
31511 2008-02-17  Bruno Haible  <bruno@clisp.org>
31512
31513         Speed up from O(n^2) to O(n) for long ChangeLog files.
31514         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31515         (read_changelog_file): Change implementation of entries_reversed list
31516         to rbtreehash.
31517         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31518
31519 2008-02-17  Bruno Haible  <bruno@clisp.org>
31520
31521         New option --split-merged-entry.
31522         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31523         (find_paragraph_end, try_split_merged_entry): New functions.
31524         (long_options): Add option --split-merged-entry.
31525         (usage): Document option --split-merged-entry.
31526         (main): Implement option --split-merged-entry.
31527         Reported by Eric Blake.
31528
31529 2008-02-17  Bruno Haible  <bruno@clisp.org>
31530
31531         * lib/git-merge-changelog.c: Include c-strstr.h.
31532         (main): Support the "git pull --rebase" situation.
31533         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31534         Reported by Eric Blake.
31535
31536 2008-02-16  Eric Blake  <ebb9@byu.net>
31537
31538         Avoid doubling \ in common case of "c-maybe" quoting style.
31539         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31540         eliding outer quotes.
31541         * lib/quotearg.h: Document this.
31542         * tests/test-quotearg.c (result_strings, inputs, results_g)
31543         (flag_results, locale_results): Test it by adding a new string to
31544         each test group.
31545         (compare_strings): Test new string.
31546
31547 2008-02-13  Eric Blake  <ebb9@byu.net>
31548
31549         Avoid trigraph quoting in default output.
31550         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
31551         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
31552         unless explicitly requested.
31553         * tests/test-quotearg.c (flag_results, main): Add additional tests.
31554
31555 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
31556
31557         Don't rely on signed integer overflowing to negative value.
31558         * lib/getugroups.c (getugroups): Include <limits.h>.
31559         Instead, compare against INT_MAX, and increment only if the test passes.
31560
31561 2008-02-13  Jim Meyering  <meyering@redhat.com>
31562         and Eric Blake  <ebb9@byu.net>
31563
31564         Avoid shadowing warning and compile errors on Linux.
31565         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
31566         forwarding macros on Linux.
31567         (dcgettext): Define a stub, for Linux.
31568         (results_g, main): Avoid warnings.
31569
31570 2008-02-12  Eric Blake  <ebb9@byu.net>
31571
31572         Silence warning in last patch.
31573         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
31574
31575         Quotearg part 4: add tests, fix c-maybe colon quoting.
31576         * lib/quotearg.h: Improve documentation.
31577         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
31578         escapes when adding outer quotes.  When quoting trigraphs, use
31579         valid C notation.  When quoting NUL, omit extra characters if next
31580         character is not digit.  Alter prototype.
31581         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
31582         callers.
31583         * modules/quotearg-tests: New module.
31584         * tests/test-quotearg.c: New test.
31585
31586 2008-02-07  Eric Blake  <ebb9@byu.net>
31587
31588         Quotearg part 3: add flag to control outer quote elision.
31589         * lib/quotearg.h (c_maybe_quoting_style): New style.
31590         (enum quoting_flags): Better documentation of flags.
31591         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
31592         c-maybe style.
31593         (quotearg_buffer_restyled): Handle new flag to elide outer
31594         quotes.
31595
31596         Quotearg part 2: add flag that can control NUL elision.
31597         * lib/quotearg.h (set_quoting_flags): New prototype.
31598         * lib/quotearg.c (struct quoting_options): Add flag field.
31599         (set_quoting_flags): New function.
31600         (quotearg_buffer_restyled): Add flags parameter.
31601         (quotearg_alloc_mem): Set the flag if length cannot be returned.
31602         (quotearg_n_options): Set the flag, since length cannot be
31603         returned.
31604         (quoting_options_from_style): Default flags correctly.
31605
31606         Quotearg part 1: more wrappers, restore quotearg_char state.
31607         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
31608         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
31609         (quotearg_colon_mem): New wrappers.
31610         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
31611         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
31612         functions.
31613         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
31614         (quotearg_colon_mem): New functions.
31615
31616 2008-02-11  Bruno Haible  <bruno@clisp.org>
31617
31618         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
31619         library in the current directory: it does not work with parallel make.
31620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31621
31622 2008-02-11  Bruno Haible  <bruno@clisp.org>
31623
31624         * .gitattributes: New file.
31625
31626 2008-02-11  Jim Meyering  <meyering@redhat.com>
31627
31628         useless-if-before-free: Fix reversed exit values.
31629         * build-aux/useless-if-before-free: Use correct values
31630         for EXIT_MATCH and EXIT_NO_MATCH.
31631
31632         * build-aux/useless-if-before-free: Close stdout carefully.
31633
31634 2008-02-10  Bruno Haible  <bruno@clisp.org>
31635
31636         New module 'git-merge-changelog'.
31637         * modules/git-merge-changelog: New file.
31638         * lib/git-merge-changelog.c: New file.
31639
31640 2008-02-10  Jim Meyering  <meyering@redhat.com>
31641
31642         useless-if-before-free: New option: --list (-l).
31643
31644         useless-if-before-free: Don't exit immediately upon open failure.
31645         * build-aux/useless-if-before-free: Exit 2 for errors.
31646         Upon failure to open a file, don't exit immediately.
31647         Rather, just warn and continue with any remaining files.
31648
31649 2008-02-10  Bruno Haible  <bruno@clisp.org>
31650
31651         New abstract list operation 'node_set_value'.
31652         * lib/gl_list.h (gl_list_node_set_value): New function.
31653         (struct gl_list_implementation): New field node_set_value.
31654         * lib/gl_list.c (gl_list_node_set_value): New function.
31655         * lib/gl_array_list.c (gl_array_node_set_value): New function.
31656         (gl_array_list_implementation): Update.
31657         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
31658         (gl_carray_list_implementation): Update.
31659         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
31660         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31661         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31662         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
31663         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31664         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31665         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31666         Update.
31667         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
31668         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
31669         (gl_sublist_list_implementation): Update.
31670
31671 2008-02-10  Bruno Haible  <bruno@clisp.org>
31672
31673         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
31674         Needed when ELEMENT is #defined to 'some_type *'.
31675
31676 2008-02-10  Jim Meyering  <meyering@redhat.com>
31677
31678         New script and module: useless-if-before-free
31679         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
31680         * build-aux/useless-if-before-free: New file.
31681         * modules/useless-if-before-free: New file.
31682
31683         * build-aux/gitlog-to-changelog: Use committer date, not author date.
31684
31685         xstrtol_error: Fix typo.
31686         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
31687         s/exit_failure/exit_status/.
31688
31689 2008-02-09  Jim Meyering  <meyering@redhat.com>
31690
31691         New script and module: gitlog-to-changelog
31692         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
31693         * modules/gitlog-to-changelog: New file.
31694         * build-aux/gitlog-to-changelog: New file.
31695
31696 2008-02-08  Jim Meyering  <meyering@redhat.com>
31697
31698         Avoid two "parameter unused" warnings.
31699         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
31700         Mark "st" as used.
31701
31702         Use "git COMMAND", not "git-COMMAND".
31703         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
31704         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
31705         * build-aux/git-version-gen: Use "git status", not "git-status".
31706
31707 2008-02-07  Bruno Haible  <bruno@clisp.org>
31708
31709         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
31710         Avoids a crash on Windows Vista.
31711         Reported by Adam Strzelecki <ono@java.pl> via
31712         Simon Josefsson <simon@josefsson.org>.
31713
31714 2008-02-06  Bruno Haible  <bruno@clisp.org>
31715
31716         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
31717         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
31718         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
31719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
31720         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31721         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31722         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
31723         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
31724         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31725         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31726         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31727         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31728         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31729         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31730         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31731         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
31732         left-adjust flag.
31733         * tests/test-snprintf-posix.h (test_function): Likewise.
31734         * tests/test-sprintf-posix.h (test_function): Likewise.
31735         * tests/test-vasprintf-posix.c (test_function): Likewise.
31736         * doc/posix-functions/fprintf.texi: Update.
31737         * doc/posix-functions/printf.texi: Update.
31738         * doc/posix-functions/snprintf.texi: Update.
31739         * doc/posix-functions/sprintf.texi: Update.
31740         * doc/posix-functions/vfprintf.texi: Update.
31741         * doc/posix-functions/vprintf.texi: Update.
31742         * doc/posix-functions/vsnprintf.texi: Update.
31743         * doc/posix-functions/vsprintf.texi: Update.
31744         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31745
31746 2008-02-06  Bruno Haible  <bruno@clisp.org>
31747
31748         Fix bug introduced on 2008-01-26.
31749         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
31750
31751 2008-02-06  Bruno Haible  <bruno@clisp.org>
31752
31753         Fix bug introduced on 2007-06-10.
31754         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
31755         !NEED_PRINTF_FLAG_ZERO.
31756
31757 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
31758
31759         getloadavg: use libperfstat on AIX5
31760         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
31761
31762 2008-02-03  Bruno Haible  <bruno@clisp.org>
31763
31764         * lib/diffseq.h: Add comments about required #includes.
31765         Reported by Michael Biggs <gnulib@doubleplum.net>.
31766
31767 2008-02-01  Bruno Haible  <bruno@clisp.org>
31768
31769         * users.txt: Add gnuit.
31770
31771 2008-01-31  Bruno Haible  <bruno@clisp.org>
31772
31773         * lib/md4.c (set_uint32): Mark as inline.
31774         * lib/md5.c (set_uint32): Likewise.
31775         * lib/sha1.c (set_uint32): Likewise.
31776         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
31777         * m4/md5.m4 (gl_MD5): Likewise.
31778         * m4/sha1.m4 (gl_SHA1): Likewise.
31779
31780 2008-01-31  Jim Meyering  <meyering@redhat.com>
31781
31782         Use "sizeof VAR", rather than a literal "4".
31783         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
31784         * lib/md4.c (md4_read_ctx): Likewise.
31785         * lib/sha1.c (sha1_read_ctx): Likewise.
31786
31787 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31788
31789         * tests/test-sha1.c: New file, based on test-md5.c.
31790
31791         * modules/crypto/sha1-tests: New file.
31792
31793 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31794
31795         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
31796
31797 2008-01-31  Jim Meyering  <meyering@redhat.com>
31798
31799         Prefer "sizeof v" over the equivalent "4".
31800         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
31801         * lib/md5.c (set_uint32): Likewise.
31802         * lib/sha1.c (set_uint32): Likewise.
31803
31804 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31805
31806         * lib/sha1.c (set_uint32): Mark function as static.
31807
31808 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31809
31810         md2: clarify comments to say that alignment is not required.
31811         * lib/md2.h: Remove warning about alignment in comment.
31812         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
31813         never been required.
31814
31815 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31816
31817         md4: adapt alignment constraint fix from sha1.
31818         * lib/md4.c (set_uint32): New function, from sha1.c
31819         (md4_read_ctx): Use it.
31820         (md4_finish_ctx): Doc fix.
31821         * lib/md4.h: Doc fix.
31822
31823 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31824
31825         md5: adapt alignment constraint fix from sha1.
31826         * lib/md5.c (set_uint32): New function, from sha1.c
31827         (md5_read_ctx): Use it.
31828         (md5_finish_ctx): Doc fix.
31829         * lib/md5.h: Doc fix.
31830
31831 2008-01-30  Peter Palfrader  <weasel@debian.org>
31832
31833         sha1: remove the result buffer alignment constraint
31834         * lib/sha1.c (set_uint32): New function.
31835         (sha1_read_ctx): Rewrite to remove the result buffer alignment
31836         constraint.
31837         (sha1_finish_ctx): Remove comment warning about alignment constraint.
31838         * lib/sha1.h: Likewise.
31839
31840 2008-01-30  Andreas Schwab  <schwab@suse.de>
31841             Bruno Haible  <bruno@clisp.org>
31842
31843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
31844         correct definition of LDBL_MIN_EXP.
31845
31846 2008-01-30  Karl Berry  <karl@gnu.org>
31847
31848         * config/srclist-update: try to preserve x bit on updates.
31849         * config/srclistvars.sh: update for karl.
31850
31851 2008-01-29  Jim Meyering  <meyering@redhat.com>
31852
31853         vasnprintf.c: Avoid warning about unused label
31854         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
31855         "overflow" label definition and associated code with the
31856         same cpp condition that guards the sole use of that label.
31857
31858 2008-01-26  Bruno Haible  <bruno@clisp.org>
31859
31860         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
31861         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
31862         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
31863         * lib/isnanl-nolibm.h (isnanl): Likewise.
31864         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31865
31866 2008-01-26  Bruno Haible  <bruno@clisp.org>
31867
31868         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
31869         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
31870
31871 2008-01-26  Bruno Haible  <bruno@clisp.org>
31872
31873         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
31874         GCC >= 4.0 built-in.
31875         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
31876
31877 2008-01-26  Bruno Haible  <bruno@clisp.org>
31878
31879         Rename isnan, applicable to 'double' only, to isnand.
31880         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
31881         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
31882         (configure.ac): Update.
31883         (Include): Replace "isnan.h" with "isnand.h".
31884         * m4/isnand.m4: Renamed from m4/isnan.m4.
31885         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
31886         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
31887         instead of isnan.c.
31888         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
31889         instead of HAVE_ISNAN_IN_LIBC.
31890         (isnand): Renamed from isnan.
31891         * lib/isnand.c: New file.
31892         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
31893         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
31894         (Makefile.am): Update.
31895         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
31896         Include isnand.h instead of isnan.h.
31897         (main): Test isnand instead of isnan.
31898         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
31899         isnan-nolibm.
31900         * modules/frexp (Depends-on): Likewise.
31901         * modules/frexp-tests (Depends-on): Likewise.
31902         * modules/frexp-nolibm (Depends-on): Likewise.
31903         * modules/frexp-nolibm-tests (Depends-on): Likewise.
31904         * modules/isfinite (Depends-on): Likewise.
31905         * modules/round-tests (Depends-on): Likewise.
31906         * modules/signbit (Depends-on): Likewise.
31907         * modules/signbit-tests (Depends-on): Likewise.
31908         * modules/snprintf-posix (Depends-on): Likewise.
31909         * modules/sprintf-posix (Depends-on): Likewise.
31910         * modules/trunc-tests (Depends-on): Likewise.
31911         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31912         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31913         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31914         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31916         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31917         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31918         * modules/vasnprintf-posix (Depends-on): Likewise.
31919         * modules/vasprintf-posix (Depends-on): Likewise.
31920         * modules/vfprintf-posix (Depends-on): Likewise.
31921         * modules/vsnprintf-posix (Depends-on): Likewise.
31922         * modules/vsprintf-posix (Depends-on): Likewise.
31923         * lib/frexp.c: Include isnand.h instead of isnan.h.
31924         (ISNAN): Set to isnand instead of isnan.
31925         * lib/isfinite.c: Include isnand.h instead of isnan.h.
31926         (gl_isfinited): Use isnand instead of isnan.
31927         * lib/signbitd.c: Include isnand.h instead of isnan.h.
31928         (gl_signbitd): Use isnand instead of isnan.
31929         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
31930         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
31931         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
31932         (main): Use isnand instead of isnan.
31933         * tests/test-round1.c: Include isnand.h.
31934         (main): Use isnand instead of isnan.
31935         * tests/test-round2.c: Include isnand.h instead of isnan.h.
31936         (ISNAN): Set to isnand instead of isnan.
31937         * tests/test-trunc1.c: Include isnand.h.
31938         (main): Use isnand instead of isnan.
31939         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
31940         (equal): Use isnand instead of isnan.
31941         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
31942         isnand-nolibm.
31943         * NEWS: Mention the change.
31944
31945 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
31946             Bruno Haible  <bruno@clisp.org>
31947
31948         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
31949         the GCC builtins for signbits are present and set
31950         REPLACE_SIGNBIT_USING_GCC if so.
31951         * lib/math.in.h (signbit): Define using GCC builtins if
31952         REPLACE_SIGNBIT_USING_GCC is set.
31953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
31954         REPLACE_SIGNBIT_USING_GCC.
31955         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
31956
31957 2008-01-25  Jim Meyering  <meyering@redhat.com>
31958
31959         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
31960         * lib/poll.c: Include <config.h>, not "config.h".
31961         * tests/test-getaddrinfo.c: Likewise.
31962
31963 2008-01-25  Simon Josefsson  <simon@josefsson.org>
31964
31965         * modules/sockets-tests: New file.
31966
31967 2008-01-24  Simon Josefsson  <simon@josefsson.org>
31968
31969         * modules/sockets: New module, can be used to call WSA_Startup and
31970         WSA_Cleanup when needed.
31971
31972         * lib/sockets.h, lib/sockets.c: New files.
31973
31974         * m4/sockets.m4: New file.
31975
31976         * tests/test-sockets.c: New file.
31977
31978 2008-01-19  Bruno Haible  <bruno@clisp.org>
31979
31980         * doc/posix-headers: Renamed from doc/headers.
31981         * doc/posix-functions: Renamed from doc/functions.
31982         * doc/gnulib.texi: Update.
31983
31984 2008-01-19  Bruno Haible  <bruno@clisp.org>
31985
31986         * doc/glibc-functions/strcasestr.texi: Include contents of
31987         doc/functions/strcasestr.texi, fixing the list of platforms.
31988         * doc/functions/strcasestr.texi: Remove file.
31989
31990 2008-01-19  Bruno Haible  <bruno@clisp.org>
31991
31992         * doc/glibc-functions/memmem.texi: Include contents of
31993         doc/functions/memmem.texi.
31994         * doc/functions/memmem.texi: Remove file.
31995
31996 2008-01-18  Bruno Haible  <bruno@clisp.org>
31997
31998         * doc/glibc-functions/*.texi: New files.
31999         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32000         to use the new files.
32001
32002 2008-01-17  Bruno Haible  <bruno@clisp.org>
32003
32004         * tests/test-gethostname.c (main): Fix printf statement.
32005
32006 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32007
32008         * modules/gethostname-tests: New file.
32009
32010         * tests/test-gethostname.c: New file.
32011
32012 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32013
32014         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32015         used by the UNAME case.  Reported by Bruno Haible
32016         <bruno@clisp.org>.
32017
32018 2008-01-17  Eric Blake  <ebb9@byu.net>
32019
32020         Convert c-strcasestr to be more efficient.
32021         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32022         (Depends-on): Add c-strcase, remove malloca, strnlen.
32023         * tests/test-c-strcasestr.c (main): Enhance test.
32024         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32025
32026 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32027
32028         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32029         Use it in creating po/Makevars.
32030
32031 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32032
32033         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32034         Applications that requires it should initialize libgcrypt
32035         manually.
32036
32037 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32038
32039         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32040
32041 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32042
32043         Fix problem with getdate on mingw32 reported by Simon Josefsson
32044         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32045         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32046         tzname", when deciding whether to declare tzname.
32047         * lib/strftime.c (tzname): Likewise.
32048
32049 2008-01-15  Bruno Haible  <bruno@clisp.org>
32050
32051         Work around a MacOS X 10.5 bug in frexpl().
32052         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32053         * doc/functions/frexpl.texi: Document the bug.
32054         Reported by Elias Pipping <pipping@gentoo.org>.
32055
32056 2008-01-14  Eric Blake  <ebb9@byu.net>
32057
32058         Touch up previous patch.
32059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32060         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32061
32062         Convert strcasestr module to use Two-Way algorithm.
32063         * modules/strcasestr-simple: New module, based on the old
32064         strcasestr, but with Two-Way rather than KMP.
32065         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32066         * lib/string.in.h (rpl_strcasestr): Declare.
32067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32068         performance.
32069         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32070         * modules/string (Makefile.am): Support strcasestr.
32071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32072         * modules/strcasestr-tests (Depends-on): Check for alarm.
32073         * tests/test-strcasestr.c: Augment test.
32074         * lib/str-two-way.h: Clean up stray macro.
32075         * NEWS: Document new module.
32076         * MODULES.html.sh (string handling): Likewise.
32077         * doc/functions/strcasestr.texi: New file.
32078         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32079         here, since it is not a POSIX function.
32080
32081 2008-01-14  Colin Watson  <cjwatson@debian.org>
32082             Bruno Haible  <bruno@clisp.org>
32083
32084         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32085         works fine; if not, set REPLACE_STRSIGNAL.
32086         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32088         REPLACE_STRSIGNAL.
32089         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32090         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32091         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32092
32093 2008-01-14  Bruno Haible  <bruno@clisp.org>
32094
32095         * modules/strsignal (Include): Change to <string.h>.
32096
32097 2008-01-14  Colin Watson  <cjwatson@debian.org>
32098
32099         * modules/argp (Notice): Add a notice recommending to change
32100         XGETTEXT_OPTIONS.
32101         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32102
32103 2008-01-13  Colin Watson  <cjwatson@debian.org>
32104
32105         * modules/strsignal-tests: New file.
32106         * tests/test-strsignal.c: New file.
32107
32108         * lib/strsignal.c: New file, from glibc with modifications.
32109         * lib/siglist.h: New file, from glibc with modifications.
32110         * lib/string.in.h (strsignal): New declaration.
32111         * m4/strsignal.m4: New file.
32112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32113         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32114         * modules/strsignal: New file.
32115         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32116         HAVE_DECL_STRSIGNAL.
32117
32118 2008-01-13  Bruno Haible  <bruno@clisp.org>
32119
32120         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32121         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32122         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32123         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32124
32125 2008-01-13  Bruno Haible  <bruno@clisp.org>
32126
32127         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32128         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32129         * lib/argp.h (__attribute__): Likewise.
32130         * lib/c-stack.c (__attribute__): Likewise.
32131         * lib/error.h (__attribute__): Likewise.
32132         * lib/fts.c (__attribute__): Likewise.
32133         * lib/openat.h (__attribute__): Likewise.
32134         * lib/stdio.in.h (__attribute__): Likewise.
32135         * lib/string.in.h (__attribute__): Likewise.
32136         * lib/utimens.c (__attribute__): Likewise.
32137         * lib/vasnprintf.h (__attribute__): Likewise.
32138         * lib/xalloc.h (__attribute__): Likewise.
32139         * lib/xprintf.h (__attribute__): Likewise.
32140         * lib/xstrtol.h (__attribute__): Likewise.
32141         * lib/xvasprintf.h (__attribute__): Likewise.
32142
32143 2008-01-12  Bruno Haible  <bruno@clisp.org>
32144
32145         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32146         * doc/glibc-headers/a.out.texi: New file.
32147         * doc/glibc-headers/aliases.texi: New file.
32148         * doc/glibc-headers/alloca.texi: New file.
32149         * doc/glibc-headers/ar.texi: New file.
32150         * doc/glibc-headers/argp.texi: New file.
32151         * doc/glibc-headers/argz.texi: New file.
32152         * doc/glibc-headers/byteswap.texi: New file.
32153         * doc/glibc-headers/crypt.texi: New file.
32154         * doc/glibc-headers/endian.texi: New file.
32155         * doc/glibc-headers/envz.texi: New file.
32156         * doc/glibc-headers/err.texi: New file.
32157         * doc/glibc-headers/error.texi: New file.
32158         * doc/glibc-headers/execinfo.texi: New file.
32159         * doc/glibc-headers/fpu_control.texi: New file.
32160         * doc/glibc-headers/fstab.texi: New file.
32161         * doc/glibc-headers/fts.texi: New file.
32162         * doc/glibc-headers/getopt.texi: New file.
32163         * doc/glibc-headers/ieee754.texi: New file.
32164         * doc/glibc-headers/ifaddrs.texi: New file.
32165         * doc/glibc-headers/libintl.texi: New file.
32166         * doc/glibc-headers/mcheck.texi: New file.
32167         * doc/glibc-headers/mntent.texi: New file.
32168         * doc/glibc-headers/obstack.texi: New file.
32169         * doc/glibc-headers/paths.texi: New file.
32170         * doc/glibc-headers/printf.texi: New file.
32171         * doc/glibc-headers/pty.texi: New file.
32172         * doc/glibc-headers/resolv.texi: New file.
32173         * doc/glibc-headers/shadow.texi: New file.
32174         * doc/glibc-headers/sysexits.texi: New file.
32175         * doc/glibc-headers/ttyent.texi: New file.
32176
32177 2008-01-12  Jim Meyering  <meyering@redhat.com>
32178
32179         announce-gen: emit Gnulib's git-based version string.
32180         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32181         New option --gnulib-version=V, where V is expected to be
32182         the output of running git describe in the gnulib directory.
32183         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32184         not useful, and plan to stop publishing an xdelta file with each
32185         coreutils release.
32186
32187         * build-aux/announce-gen: Also check for lzma-compressed files.
32188
32189 2008-01-11  Bruno Haible  <bruno@clisp.org>
32190
32191         * tests/test-memmem.c (main): Increase maximum allowed time.
32192         * tests/test-strstr.c (main): Likewise.
32193
32194 2008-01-11  Bruno Haible  <bruno@clisp.org>
32195
32196         * doc/functions/memmem.texi: Add more precisions about platforms.
32197         * doc/functions/strstr.texi: Likewise.
32198
32199 2008-01-10  Eric Blake  <ebb9@byu.net>
32200
32201         * m4/strstr.m4: Delete cruft from copy-n-paste.
32202         Reported by Bruno Haible.
32203
32204 2008-01-10  Bruno Haible  <bruno@clisp.org>
32205
32206         Make c-strstr rely on strstr.
32207         * lib/c-strstr.c: Don't include str-kmp.h.
32208         (c_strstr): Define in terms of strstr.
32209         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32210         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32211
32212 2008-01-10  Bruno Haible  <bruno@clisp.org>
32213
32214         * doc/gnulib.texi (String Functions in C Locale): New section.
32215         * doc/c-ctype.texi: New file.
32216         * doc/c-strcase.texi: New file.
32217         * doc/c-strcaseeq.texi: New file.
32218         * doc/c-strcasestr.texi: New file.
32219         * doc/c-strstr.texi: New file.
32220         * doc/c-strtod.texi: New file.
32221         * doc/c-strtold.texi: New file.
32222
32223 2008-01-10  Eric Blake  <ebb9@byu.net>
32224
32225         * lib/relocatable.h: Fix a comment.
32226
32227 2008-01-10  Eric Blake  <ebb9@byu.net>
32228
32229         Share two-way algorithm.
32230         * lib/str-two-way.h: New file, merged from...
32231         * lib/memmem.c: ...here...
32232         * lib/strstr.c: ...and here.
32233         * modules/memmem (Files): Use it.
32234         * modules/strstr (Files): Likewise.
32235
32236         Avoid quadratic strstr implementations.
32237         * lib/strstr.c: New file.
32238         * m4/strstr.m4: Likewise.
32239         * modules/strstr: Likewise.
32240         * modules/strstr-tests: Likewise.
32241         * tests/test-strstr.c: Likewise.
32242         * lib/string.in.h (rpl_strstr): Declare.
32243         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32245         * modules/string (Makefile.am): Likewise.
32246         * MODULES.html.sh (string handling): Mention new module.
32247         * doc/functions/strstr.texi (strstr): Document the bug.
32248
32249 2008-01-10  Bruno Haible  <bruno@clisp.org>
32250
32251         * lib/relocatable.h (relocate): State whether result is freshly
32252         allocated or not.
32253         * lib/relocatable.c (relocate): Return a freshly allocated string
32254         instead of a pointer to a privately held string.
32255         Reported by Sylvain Beucler <beuc@gnu.org>.
32256
32257 2008-01-10  Colin Watson  <cjwatson@debian.org>
32258
32259         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32260         s/S_ISNLK/S_ISLNK/.
32261
32262 2008-01-09  Bruno Haible  <bruno@clisp.org>
32263
32264         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32265         and other files.
32266         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32267         if it's only a guess.
32268         * modules/memmem: Simplify by depending on memmem-simple.
32269
32270 2008-01-09  Bruno Haible  <bruno@clisp.org>
32271
32272         Work around OpenBSD 4.0 tdelete() bug.
32273         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32274         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32275         macros and don't redefine the enum values.
32276         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32277         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32278         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32279
32280 2008-01-09  Bruno Haible  <bruno@clisp.org>
32281
32282         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32283         (main): Don't perform the tests if setlocale did not install a UTF-8
32284         locale. Needed on OpenBSD 4.0.
32285         * modules/wcwidth-tests (Depends-on): Add localcharset.
32286
32287 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32288
32289         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32290         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32291         * NEWS: announce this.
32292         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32293
32294 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32295         and Eric Blake  <ebb9@byu.net>
32296
32297         Add memmem-simple module.
32298         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32299         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32300         * modules/memmem-simple: New file.
32301         * modules/memmem (Description): Tweak.
32302         * MODULES.html.sh (string handling): Mention new module.
32303         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32304         addressed by memmem-simple.
32305         * NEWS: Document the difference.
32306
32307 2008-01-09  Eric Blake  <ebb9@byu.net>
32308
32309         Give gcc some memmem optimization hints.
32310         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32311         (strcasestr): Declare as pure.
32312         * modules/memmem (Maintainer): Claim my implementation.
32313
32314 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32315
32316         Support AIX 6.1 and higher.
32317         * build-aux/config.libpath: Likewise.
32318         * build-aux/config.rpath: Likewise.
32319
32320 2008-01-08  Jim Meyering  <meyering@redhat.com>
32321             Bruno Haible  <bruno@clisp.org>
32322
32323         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32324         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32325         Reported by Peter Fales in
32326         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32327
32328 2008-01-08  Bruno Haible  <bruno@clisp.org>
32329
32330         * modules/unictype/category-of (Depends-on): Add
32331         unictype/category-none.
32332         * modules/unictype/category-and-tests (Depends-on): Add
32333         unictype/category-{L,N,Lu,Nd}.
32334         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32335         * modules/unictype/category-or-tests (Depends-on): Add
32336         unictype/category-{L,N}.
32337         * modules/unictype/category-name-tests (Depends-on): Add
32338         unictype/category-{Z,Nl}.
32339         Reported by Simon Josefsson.
32340
32341 2008-01-08  Bruno Haible  <bruno@clisp.org>
32342
32343         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32344         convention better.
32345         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32346         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32347         Reported by Peter Miller <millerp@canb.auug.org.au>.
32348
32349 2008-01-08  Eric Blake  <ebb9@byu.net>
32350
32351         Rewrite memmem to guarantee linear complexity without malloc.
32352         * lib/memmem.c (memmem): Use Two-Way rather than
32353         Knuth-Morris-Pratt, to allow O(1) space usage.
32354         (critical_factorization, two_way_short_needle)
32355         (two_way_long_needle): New functions.
32356         (knuth_morris_pratt): Delete.
32357         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32358         Add stdint.
32359         * tests/test-memmem.c (main): Add tests for periodic needle and
32360         sublinear performance.
32361         * doc/functions/memmem.texi (memmem): Document other deficiencies
32362         in cygwin and older glibc.
32363
32364 2008-01-08  Bruno Haible  <bruno@clisp.org>
32365
32366         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32367         augmentation.
32368
32369 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32370
32371         Add a configure time option: --disable-acl.
32372         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32373         AC_ARG_ENABLE(acl).
32374
32375 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32376
32377         * tests/test-localename.c: Don't include obsolete "setenv.h".
32378
32379         * modules/localename-tests (Depends-on): Need unsetenv.
32380
32381 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32382
32383         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32384
32385 2008-01-06  Colin Watson  <cjwatson@debian.org>
32386
32387         * users.txt: Add man-db.
32388
32389 2008-01-07  Bruno Haible  <bruno@clisp.org>
32390
32391         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32392         previous section name.
32393
32394 2008-01-07  Bruno Haible  <bruno@clisp.org>
32395
32396         * lib/progname.c (set_program_name): Don't strip off a leading
32397         "lt-" prefix outside a .libs directory.
32398         Suggested by Paul Eggert.
32399
32400 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32401             Bruno Haible  <bruno@clisp.org>
32402
32403         Improve memory cleanup in 'relocatable' module.
32404         * lib/relocatable.h (compute_curr_prefix): Change return type to
32405         'char *'.
32406         * lib/relocatable.c (compute_curr_prefix): Change return type to
32407         'char *'. Free curr_installdir after use.
32408         (relocate): Free curr_prefix_better after use.
32409         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32410
32411 2008-01-01  Bruno Haible  <bruno@clisp.org>
32412
32413         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32414         failure on older glibc systems.
32415         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32416
32417 2008-01-05  Eric Blake  <ebb9@byu.net>
32418
32419         Avoid quadratic system memmem.
32420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32421         Reported by Ralf Wildenhues.
32422
32423         Fix memmem test for mingw.
32424         * modules/memmem-tests (configure.ac): Check for alarm.
32425         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32426         it.
32427         * doc/functions/memmem.texi: New file.
32428         * doc/gnulib.texi (Function Substitutes): Add memmem.
32429         Reported by Bruno Haible.
32430
32431 2008-01-04  Bruno Haible  <bruno@clisp.org>
32432
32433         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32434         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32435         gl_HEADER_STRING_H_DEFAULTS.
32436
32437 2008-01-04  Eric Blake  <ebb9@byu.net>
32438
32439         Shorten duration of memmem test.
32440         * tests/test-memmem.c (main): Use alarm to declare failure if test
32441         is taking too long.
32442         Reported by Ralf Wildenhues.
32443
32444 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32445
32446         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32447         string, needed by strerror.
32448
32449 2008-01-03  Colin Watson  <cjwatson@debian.org>
32450             Bruno Haible  <bruno@clisp.org>
32451
32452         * doc/gnulib-tool.texi (Localization): New section.
32453
32454 2008-01-02  Bruno Haible  <bruno@clisp.org>
32455
32456         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32457         variables to 'unsigned char *' type.
32458         Reported by Paul Eggert.
32459
32460 2008-01-02  Jim Meyering  <jim@meyering.net>
32461
32462         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32463
32464 2007-12-31  Jim Meyering  <jim@meyering.net>
32465
32466         Avoid use of private FTS type name.
32467         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32468
32469 2007-12-30  Karl Berry  <karl@gnu.org>
32470
32471         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32472         work around defect in Texinfo and/or the standalone Info browser.
32473
32474 2007-12-30  Bruno Haible  <bruno@clisp.org>
32475
32476         Unify 5 copies of the KMP code.
32477         * lib/str-kmp.h: New file.
32478         * lib/c-strcasestr.c: Include str-kmp.h.
32479         (knuth_morris_pratt): Remove function.
32480         (c_strcasestr): Update.
32481         * lib/c-strstr.c: Include str-kmp.h.
32482         (knuth_morris_pratt): Remove function.
32483         (c_strcasestr): Update.
32484         * lib/mbscasestr.c: Include str-kmp.h.
32485         (knuth_morris_pratt_unibyte): Remove function.
32486         * lib/mbsstr.c: Include str-kmp.h.
32487         (knuth_morris_pratt_unibyte): Remove function.
32488         * lib/strcasestr.c: Include str-kmp.h.
32489         (knuth_morris_pratt): Remove function.
32490         (strcasestr): Update.
32491         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32492         * modules/c-strstr (Files): Likewise.
32493         * modules/mbscasestr (Files): Likewise.
32494         * modules/mbsstr (Files): Likewise.
32495         * modules/strcasestr (Files): Likewise.
32496         Suggested by Paul Eggert.
32497
32498 2007-12-30  Bruno Haible  <bruno@clisp.org>
32499
32500         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32501         defined.
32502
32503 2007-12-30  Bruno Haible  <bruno@clisp.org>
32504
32505         * lib/xmalloca.h: Include xalloc.h.
32506         (xnmalloca): New macro.
32507
32508 2007-12-30  Bruno Haible  <bruno@clisp.org>
32509
32510         * lib/malloca.h (nmalloca): New macro.
32511         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32512         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32513         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32514         knuth_morris_pratt_multibyte): Likewise.
32515         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32516         knuth_morris_pratt_multibyte): Likewise.
32517         * lib/memmem.c (knuth_morris_pratt): Likewise.
32518         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32519
32520 2007-12-25  Bruno Haible  <bruno@clisp.org>
32521
32522         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32523         * lib/glob.c: Don't include openat.h.
32524         (link_exists2_p): Add back the code that deals with the
32525         !GLOB_ALTDIRFUNC case.
32526         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32527         let it do the filename concatenation.
32528         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32529         * modules/glob (Depends-on): Remove openat.
32530
32531 2007-12-31  Bruno Haible  <bruno@clisp.org>
32532
32533         * modules/dirfd (License): Change to LGPLv2+.
32534         Approved by Jim Meyering.
32535
32536 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32537
32538         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32539         when multiplying M by sizeof (size_t).
32540
32541 2007-12-10  Martin Lambers  <marlam@marlam.de>
32542
32543         Override getpagesize on mingw.
32544         * lib/getpagesize.c: New file.
32545         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32546         * modules/getpagesize (Files): Add lib/getpagesize.c.
32547         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
32548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32549         REPLACE_GETPAGESIZE.
32550         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
32551
32552 2007-12-25  Bruno Haible  <bruno@clisp.org>
32553
32554         * modules/localcharset (Notice): New field.
32555         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
32556         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
32557
32558 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
32559             Bruno Haible  <bruno@clisp.org>
32560
32561         Avoid using the syntax symbol() in formatted documentation.
32562         * MODULES.html.sh (func_module): When replacing symbol() with a
32563         hyperlink, remove the parentheses. Show an error if some remain.
32564         Recognize and render the '...' syntax.
32565         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
32566         Rework. Add paragraph about GCC's inlining.
32567         * doc/alloca.texi: Likewise.
32568         * doc/error.texi: Remove parentheses from symbol reference.
32569         * doc/gnulib-intro.texi: Likewise.
32570         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
32571         * modules/fnmatch (Description): Reword to say "the ... function".
32572         * modules/full-read (Description): Likewise.
32573         * modules/full-write (Description): Likewise.
32574         * modules/safe-read (Description): Likewise.
32575         * modules/safe-write (Description): Likewise.
32576         * modules/strchrnul (Description): Likewise.
32577         * modules/trim (Description): Likewise.
32578         * modules/error (Description): Remove parentheses from symbol
32579         references.
32580         * modules/verror (Description): Likewise.
32581         Reported by Karl Berry.
32582
32583 2007-12-25  Bruno Haible  <bruno@clisp.org>
32584
32585         Fixup after 2007-10-16 commit.
32586         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
32587
32588 2007-12-24  Bruno Haible  <bruno@clisp.org>
32589
32590         Make --enable-relocatable work with DESTDIR.
32591         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
32592         to compute installdir from destprog.
32593         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
32594         also set the RELOC_DESTDIR variable.
32595         Reported by Левашев Иван <octagram@bluebottle.com>.
32596
32597 2007-12-24  Bruno Haible  <bruno@clisp.org>
32598
32599         Fix link error due to xalloc_die().
32600         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
32601         of xreadlink.
32602         * lib/relocwrapper.c: Update comments.
32603         * build-aux/install-reloc: Remove xreadlink.c from file list.
32604         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
32605         xreadlink.c.
32606         Reported by Левашев Иван <octagram@bluebottle.com>.
32607
32608 2007-12-24  Bruno Haible  <bruno@clisp.org>
32609
32610         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
32611         * lib/setenv.h: Remove file.
32612         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
32613         lib/setenv.h.
32614         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
32615         (Depends-on): Add stdlib.
32616         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
32617         gl_FUNC_UNSETENV.
32618         (Include): Replace setenv.h with <stdlib.h>.
32619         * modules/unsetenv: New file.
32620         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
32621         * lib/unsetenv.c: Include <stdlib.h> first.
32622         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
32623         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
32624         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
32625         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
32626         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
32627         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
32629         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32630         * doc/functions/unsetenv.texi: Update.
32631         * modules/xsetenv (Depends-on): Add unsetenv.
32632         * modules/getdate (Depends-on): Likewise.
32633         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
32634         * lib/xsetenv.c: Don't include setenv.h.
32635         * lib/getdate.y: Likewise.
32636         * lib/relocwrapper.c: Likewise.
32637         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
32638         (Depends-on): Add stdlib.
32639         * NEWS: Mention the changes.
32640         Reported by Левашев Иван <octagram@bluebottle.com>.
32641
32642 2007-12-23  Bruno Haible  <bruno@clisp.org>
32643
32644         * lib/memmem.c (memmem): Use lowercase variable names. Tab
32645         indentation.
32646
32647 2007-12-23  Bruno Haible  <bruno@clisp.org>
32648
32649         * lib/c-strcasestr.c: Add more comments.
32650         * lib/c-strstr.c: Likewise.
32651         * lib/mbscasestr.c: Likewise.
32652         * lib/mbsstr.c: Likewise.
32653         * lib/strcasestr.c: Likewise.
32654         * lib/memmem.c: Likewise.
32655
32656 2007-12-23  Bruno Haible  <bruno@clisp.org>
32657
32658         * tests/test-memmem.c: Include <string.h> first.
32659
32660 2007-12-22  Bruno Haible  <bruno@clisp.org>
32661
32662         * gnulib-tool (func_create_testdir): Change $auxdir while generating
32663         the contents of $testsbase.
32664         Reported by Ralf Wildenhues.
32665
32666 2007-12-22  Bruno Haible  <bruno@clisp.org>
32667
32668         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
32669         two variables local_ldadd_before, local_ldadd_last.
32670
32671 2007-12-20  Eric Blake  <ebb9@byu.net>
32672
32673         Work around circular library issue when cross-compiling.
32674         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
32675         that progname.o does not need to pull in rpl_memcmp.
32676
32677 2007-12-19  Eric Blake  <ebb9@byu.net>
32678
32679         Fix memmem to avoid O(n^2) worst-case complexity.
32680         * lib/memmem.c (knuth_morris_pratt): New function.
32681         (memmem): Use it if first few naive iterations fail.
32682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
32683         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
32684         * modules/memchr (License): Likewise.
32685         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
32686         malloca.
32687         * tests/test-memmem.c: Rewrite, borrowing ideas from
32688         test-mbsstr1.c; the old version wouldn't even compile!
32689         * modules/memmem-tests: New file.
32690         * lib/string.in.h (rpl_memmem): Add declaration.
32691         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
32692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
32693         REPLACE_MEMMEM.
32694
32695 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32696
32697         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
32698         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
32699         before any system include files, and undef after them all.  This
32700         should fix a problem on VMS reported by John E. Malmberg in
32701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
32702
32703 2007-12-17  Eric Blake  <ebb9@byu.net>
32704
32705         Revert addition of verify, for BSD/OS.
32706         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
32707         can't handle large files, for the sake of obsolete platforms.
32708         * modules/fseeko (Depends-on): Remove verify.
32709         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
32710         * doc/functions/ftello.texi (ftello): Likewise.
32711         * doc/functions/fgetpos.texi (fgetpos): Likewise.
32712         Reported by Larry Jones.
32713
32714 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
32715
32716         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
32717         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
32718
32719 2007-12-17  Jim Meyering  <meyering@redhat.com>
32720
32721         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
32722         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
32723         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
32724         * modules/getcwd (Depends-on): Add openat.
32725         Reported by Petr Salinger.
32726
32727 2007-12-17  Bruno Haible  <bruno@clisp.org>
32728
32729         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
32730         avoid a segmentation fault of the configure test on x86_64 systems.
32731
32732 2007-12-15  Jim Meyering  <meyering@redhat.com>
32733
32734         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
32735
32736 2007-12-13  Eric Blake  <ebb9@byu.net>
32737
32738         Another fseek test.
32739         * tests/test-fseek.c (main): Also test ungetc handling.
32740         * tests/test-fseeko.c (main): Likewise.
32741         * modules/fseeko (Depends-on): Add verify.
32742         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
32743         large.
32744         Reported by Larry Jones.
32745
32746         Fix fseeko on mingw.
32747         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
32748         seek.
32749
32750         Beef up fseek tests.
32751         * tests/test-fseek.c (main): Also test eof handling.
32752         * tests/test-fseeko.c (main): Likewise.
32753         Reported by Larry Jones.
32754
32755 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
32756
32757         Fix fseeko on BSD-based platforms.
32758         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
32759         successful seek.
32760
32761 2007-12-12  Eric Blake  <ebb9@byu.net>
32762
32763         Allow circular dependency of separate libtests.a
32764         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
32765         when use_libtests.
32766
32767 2007-12-11  Eric Blake  <ebb9@byu.net>
32768
32769         Fix bug with -0.0L in previous patch.
32770         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
32771         * tests/test-isnan.c (main): Also test on zeroes.
32772         * tests/test-isnanf.c (main): Likewise.
32773         * tests/test-isnanl.h (main): Likewise.
32774
32775         Detect pseudo-denormals on x86 even when cross-compiling.
32776         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
32777         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
32778         invalid bit patterns that happen to satisfy ==.
32779
32780         Avoid link failures with separate libtests.a.
32781         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
32782         last, to satisfy circular dependencies.
32783
32784 2007-12-11  Eric Blake  <ebb9@byu.net>
32785         and Bruno Haible  <bruno@clisp.org>
32786
32787         Fix OpenBSD 4.0 <float.h> handling of long double.
32788         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
32789         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
32790         * doc/headers/float.texi (float.h): Document OpenBSD bug.
32791
32792 2007-12-11  Jim Meyering  <meyering@redhat.com>
32793
32794         * users.txt: Add libvirt.
32795
32796         Support versions of autoconf prior to 2.59c.
32797         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
32798         if it is not already defined.
32799
32800 2007-12-09  Bruno Haible  <bruno@clisp.org>
32801
32802         Let 'gnulib-tool --import' collect sources needed for the tests in
32803         tests/ rather than in lib/.
32804         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
32805         argument. If true, add rules to generate libtests.a, and put libtests.a
32806         into $(LDADD). Consider source files in subdirectories and set
32807         uses_subdirs.
32808         (func_emit_initmacro_start, func_emit_initmacro_end,
32809         func_emit_initmacro_done): Pass all arguments explicitly.
32810         (func_import): Determine two module lists main_modules,
32811         testsrelated_modules. Determine use_libtests. Determine two variables
32812         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
32813         instead of just sed_transform_lib_file. Determine two variables
32814         main_files and testsrelated_files. Compute 'files' as the union of
32815         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
32816         func_add_or_update. In the generated gnulib-comp.m4, collect the
32817         object files for tests/ in different variables than those for lib/.
32818         Substitute LIBTESTS_LIBDEPS.
32819         (func_create_testdir): Combine the uses_subdirs results from
32820         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
32821
32822 2007-12-09  Bruno Haible  <bruno@clisp.org>
32823
32824         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
32825         the build-aux directory.
32826
32827 2007-12-09  Bruno Haible  <bruno@clisp.org>
32828
32829         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
32830         introduced on 2006-09-09.
32831
32832 2007-12-07  Jim Meyering  <meyering@redhat.com>
32833
32834         Let these macros work also with autoconf-2.59.
32835         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
32836         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
32837         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32838
32839 2007-12-06  Jim Meyering  <meyering@redhat.com>
32840
32841         Avoid a configure-time syntax error in gl_FUNC_ACL.
32842         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
32843         function in each branch, before testing the cache variable.
32844
32845 2007-12-04  Eric Blake  <ebb9@byu.net>
32846
32847         Make scripts executable.
32848         * build-aux/config.guess: Add execute permissions.
32849         * build-aux/config.sub: Likewise.
32850         * build-aux/gendocs.sh: Likewise.
32851
32852         Fix frexp on mingw.
32853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
32854         cross-compiling.
32855         * doc/functions/frexp.texi (frexp): Document the bug.
32856
32857         Make cygwin fseeko check more reliable.
32858         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
32859         version numbers, rather than unrelated feature check.
32860         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
32861         * doc/functions/ftello.texi (ftello): Likewise.
32862         Reported by Bruno Haible.
32863
32864         * m4/strerror.m4: Bump version number.
32865
32866 2007-12-03  Bruno Haible  <bruno@clisp.org>
32867
32868         * doc/functions/mprotect.texi: Mention the mingw problem.
32869
32870 2007-12-03  Eric Blake  <ebb9@byu.net>
32871
32872         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
32873         REPLACE_STRERROR is initialized before this macro.
32874
32875 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
32876
32877         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
32878         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
32879         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
32880         put -lsec in even for programs other than 'ls'.  This fixes a problem
32881         for gettext reported by Bruno Haible in
32882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
32883         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
32884         Add support for Solaris 10.  This isn't efficient, but should get the
32885         job done for now.
32886
32887 2007-12-03  James Youngman  <jay@gnu.org>
32888
32889         * doc/regexprops-generic.texi: change "an close-group" to "a
32890         close-group" and "illegal" to "not allowed".
32891
32892 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32893
32894         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
32895         pr_byname.h. Needed for the rare case when the maintainer has done
32896         "make maintainer-clean" in the source directory and then attempts a
32897         build outside the source directory.
32898         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
32899         scripts_byname.h.
32900
32901 2007-12-02  Martin Lambers <marlam@marlam.de>
32902             Bruno Haible  <bruno@clisp.org>
32903
32904         * lib/getpagesize.h: Remove file.
32905         * lib/unistd.in.h: Include declaration of getpagesize here.
32906         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
32907         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
32908         HAVE_SYS_PARAM_H.
32909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
32910         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32911         * modules/getpagesize (Files): Remove lib/getpagesize.h.
32912         (Depends-on): Add unistd.
32913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32914         (Include): Use <unistd.h> instead of getpagesize.h.
32915         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
32916         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32917         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
32918         gl_GETPAGESIZE invocation, already handled by module dependency.
32919         * lib/pagealign_alloc.c: Don't include getpagesize.h.
32920
32921 2007-12-02  Bruno Haible  <bruno@clisp.org>
32922
32923         * modules/strings-tests: New file.
32924         * tests/test-strings.c: New file.
32925
32926         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
32927         * lib/strings.in.h: New file.
32928         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
32929         * m4/strings_h.m4: New file.
32930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
32931         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
32932         * modules/strings: New file.
32933         * modules/string (Makefile.am): Update.
32934         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
32935         Reported by Karl Berry.
32936
32937 2007-12-01  Eric Blake  <ebb9@byu.net>
32938
32939         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
32940         accomodate fix in cygwin 1.5.25.
32941
32942 2007-12-01  Jim Meyering  <meyering@redhat.com>
32943
32944         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
32945         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
32946         that would inhibit utf8-optimization of a regexp containing line-
32947         or buffer-anchors, e.g., `^', `$'.
32948
32949 2007-11-30  Bruno Haible  <bruno@clisp.org>
32950
32951         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
32952         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
32953         glthread_recursive_lock_init.
32954         * lib/lock.c (glthread_recursive_lock_init)
32955         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
32956         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32957
32958 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32959
32960         New function qset_acl, like set_acl but with syscall semantics.
32961         * lib/acl.h (qset_acl): New decl.
32962         * lib/acl.c (qset_acl): New function.
32963         (set_acl): Use new function.  Use more-consistent diagnostics.
32964
32965 2007-11-28  Jim Meyering  <meyering@redhat.com>
32966
32967         * modules/physmem (License): Change from GPL to LGPLv2+.
32968
32969 2007-11-26  Bruno Haible  <bruno@clisp.org>
32970
32971         * lib/vasnprintf.c (decode_long_double): Don't abort if the
32972         'long double' type has excess precision.
32973         Reported by Jim Meyering in
32974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
32975
32976 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32977
32978         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
32979         Sync from <http://gnu.org/licenses>.
32980         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
32981         with license text from same location.
32982         * doc/maintain.texi, doc/standards.texi:  Sync from
32983         <http://savannah.gnu.org/projects/gnustandards>.
32984
32985 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
32986         and Jim Meyering  <meyering@redhat.com>
32987
32988         Adjust getdate' grammar to accept a slightly more regular language.
32989         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
32990         Before, the former was rejected.
32991         * lib/getdate.y (digits_to_date_time): New function, factored
32992         out of ...
32993         (number): ...here.  Just call digits_to_date_time.
32994         (hybrid): New non-terminal to handle an <unsigned number,
32995         signed relative offset> sequence consistently.
32996
32997 2007-11-18  Jim Meyering  <meyering@redhat.com>
32998
32999         Pull my changes from coreutils:
33000         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33001         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33002         use of $gnulib_tool_option_extras, so that it's separated from the
33003         preceding argument.
33004
33005         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33006         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33007         parent destination directories before copying a file into place.
33008
33009 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33010
33011         bootstrap: work also with 4-argument variant of AC_INIT
33012         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33013
33014 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33015
33016         Port test-getaddrinfo to Solaris.
33017         Problem reported by Bruno Haible in
33018         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33019         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33020         explanation of setting 'hints'.
33021         Don't reject an implementation merely because it returns EAI_SERVICE.
33022         (EAI_SERVICE): Define to 0 if not defined.
33023
33024 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33025
33026         The license of gnu-make and posix-shell is now "GPLed build tool".
33027         * modules/gnu-make (License): Likewise.
33028         * modules/posix-shell (License): Likewise.
33029
33030         New module posix-shell, for determining a POSIX shell
33031         or perhaps something that is close enough to a POSIX shell.
33032         * m4/posix-shell.m4: New file.
33033         * modules/posix-shell: New file.
33034
33035         * MODULES.html.sh: Mention new module.
33036
33037         New module gnu-make, for determining whether we're using GNU Make.
33038         * m4/gnu-make.m4: New file.
33039         * modules/gnu-make: New file.
33040         * MODULES.html.sh: Mention new module.
33041
33042 2007-11-14  Jim Meyering  <meyering@redhat.com>
33043
33044         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33045         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33046         use this macro to create a function _definition_.
33047         Remove useless "#undef ARGMATCH_DIE".
33048
33049 2007-11-14  Bruno Haible  <bruno@clisp.org>
33050
33051         * lib/config.charset: Update for OpenBSD 4.1.
33052         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33053
33054 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33055
33056         Document 64-bit #if problems in stdint.texi.
33057         * doc/headers/stdint.texi (stdint.h): Mention problems with
33058         64-bit-#if, and how to work around them.
33059
33060         Don't insist on 'long long int' support in the preprocessor.  It
33061         breaks too many things.  For example, PRIdMAX still uses a 'long
33062         long int' format with the latest Sun compiler, even though
33063         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33064         preprocessor problem.  This causes the latest coreutils to dump
33065         core on Solaris 10 sparc with the Sun C compiler.
33066         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33067         the troublesome expressions at configure-time, not at #if-time.
33068         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33069         preprocessor.
33070         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33071         compile-time C checks, done at 'configure'-time.
33072         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33073         * modules/inttypes (Makefile): Substitute the new symbols that
33074         gl_INTTYPES_H now generates.
33075         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33076
33077 2007-11-12  Bruno Haible  <bruno@clisp.org>
33078
33079         Tests for Unicode character classification functions.
33080
33081         * modules/unictype/bidicategory-byname-tests: New file.
33082         * modules/unictype/bidicategory-name-tests: New file.
33083         * modules/unictype/bidicategory-of-tests: New file.
33084         * modules/unictype/bidicategory-test-tests: New file.
33085         * modules/unictype/block-list-tests: New file.
33086         * modules/unictype/block-of-tests: New file.
33087         * modules/unictype/block-test-tests: New file.
33088         * modules/unictype/category-C-tests: New file.
33089         * modules/unictype/category-Cc-tests: New file.
33090         * modules/unictype/category-Cf-tests: New file.
33091         * modules/unictype/category-Cn-tests: New file.
33092         * modules/unictype/category-Co-tests: New file.
33093         * modules/unictype/category-Cs-tests: New file.
33094         * modules/unictype/category-L-tests: New file.
33095         * modules/unictype/category-Ll-tests: New file.
33096         * modules/unictype/category-Lm-tests: New file.
33097         * modules/unictype/category-Lo-tests: New file.
33098         * modules/unictype/category-Lt-tests: New file.
33099         * modules/unictype/category-Lu-tests: New file.
33100         * modules/unictype/category-M-tests: New file.
33101         * modules/unictype/category-Mc-tests: New file.
33102         * modules/unictype/category-Me-tests: New file.
33103         * modules/unictype/category-Mn-tests: New file.
33104         * modules/unictype/category-N-tests: New file.
33105         * modules/unictype/category-Nd-tests: New file.
33106         * modules/unictype/category-Nl-tests: New file.
33107         * modules/unictype/category-No-tests: New file.
33108         * modules/unictype/category-P-tests: New file.
33109         * modules/unictype/category-Pc-tests: New file.
33110         * modules/unictype/category-Pd-tests: New file.
33111         * modules/unictype/category-Pe-tests: New file.
33112         * modules/unictype/category-Pf-tests: New file.
33113         * modules/unictype/category-Pi-tests: New file.
33114         * modules/unictype/category-Po-tests: New file.
33115         * modules/unictype/category-Ps-tests: New file.
33116         * modules/unictype/category-S-tests: New file.
33117         * modules/unictype/category-Sc-tests: New file.
33118         * modules/unictype/category-Sk-tests: New file.
33119         * modules/unictype/category-Sm-tests: New file.
33120         * modules/unictype/category-So-tests: New file.
33121         * modules/unictype/category-Z-tests: New file.
33122         * modules/unictype/category-Zl-tests: New file.
33123         * modules/unictype/category-Zp-tests: New file.
33124         * modules/unictype/category-Zs-tests: New file.
33125         * modules/unictype/category-and-not-tests: New file.
33126         * modules/unictype/category-and-tests: New file.
33127         * modules/unictype/category-byname-tests: New file.
33128         * modules/unictype/category-name-tests: New file.
33129         * modules/unictype/category-none-tests: New file.
33130         * modules/unictype/category-of-tests: New file.
33131         * modules/unictype/category-or-tests: New file.
33132         * modules/unictype/category-test-withtable-tests: New file.
33133         * modules/unictype/combining-class-tests: New file.
33134         * modules/unictype/ctype-alnum-tests: New file.
33135         * modules/unictype/ctype-alpha-tests: New file.
33136         * modules/unictype/ctype-blank-tests: New file.
33137         * modules/unictype/ctype-cntrl-tests: New file.
33138         * modules/unictype/ctype-digit-tests: New file.
33139         * modules/unictype/ctype-graph-tests: New file.
33140         * modules/unictype/ctype-lower-tests: New file.
33141         * modules/unictype/ctype-print-tests: New file.
33142         * modules/unictype/ctype-punct-tests: New file.
33143         * modules/unictype/ctype-space-tests: New file.
33144         * modules/unictype/ctype-upper-tests: New file.
33145         * modules/unictype/ctype-xdigit-tests: New file.
33146         * modules/unictype/decimal-digit-tests: New file.
33147         * modules/unictype/digit-tests: New file.
33148         * modules/unictype/mirror-tests: New file.
33149         * modules/unictype/numeric-tests: New file.
33150         * modules/unictype/property-alphabetic-tests: New file.
33151         * modules/unictype/property-ascii-hex-digit-tests: New file.
33152         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33153         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33154         * modules/unictype/property-bidi-block-separator-tests: New file.
33155         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33156         * modules/unictype/property-bidi-common-separator-tests: New file.
33157         * modules/unictype/property-bidi-control-tests: New file.
33158         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33159         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33160         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33161         * modules/unictype/property-bidi-european-digit-tests: New file.
33162         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33163         * modules/unictype/property-bidi-left-to-right-tests: New file.
33164         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33165         * modules/unictype/property-bidi-other-neutral-tests: New file.
33166         * modules/unictype/property-bidi-pdf-tests: New file.
33167         * modules/unictype/property-bidi-segment-separator-tests: New file.
33168         * modules/unictype/property-bidi-whitespace-tests: New file.
33169         * modules/unictype/property-byname-tests: New file.
33170         * modules/unictype/property-combining-tests: New file.
33171         * modules/unictype/property-composite-tests: New file.
33172         * modules/unictype/property-currency-symbol-tests: New file.
33173         * modules/unictype/property-dash-tests: New file.
33174         * modules/unictype/property-decimal-digit-tests: New file.
33175         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33176         * modules/unictype/property-deprecated-tests: New file.
33177         * modules/unictype/property-diacritic-tests: New file.
33178         * modules/unictype/property-extender-tests: New file.
33179         * modules/unictype/property-format-control-tests: New file.
33180         * modules/unictype/property-grapheme-base-tests: New file.
33181         * modules/unictype/property-grapheme-extend-tests: New file.
33182         * modules/unictype/property-grapheme-link-tests: New file.
33183         * modules/unictype/property-hex-digit-tests: New file.
33184         * modules/unictype/property-hyphen-tests: New file.
33185         * modules/unictype/property-id-continue-tests: New file.
33186         * modules/unictype/property-id-start-tests: New file.
33187         * modules/unictype/property-ideographic-tests: New file.
33188         * modules/unictype/property-ids-binary-operator-tests: New file.
33189         * modules/unictype/property-ids-trinary-operator-tests: New file.
33190         * modules/unictype/property-ignorable-control-tests: New file.
33191         * modules/unictype/property-iso-control-tests: New file.
33192         * modules/unictype/property-join-control-tests: New file.
33193         * modules/unictype/property-left-of-pair-tests: New file.
33194         * modules/unictype/property-line-separator-tests: New file.
33195         * modules/unictype/property-logical-order-exception-tests: New file.
33196         * modules/unictype/property-lowercase-tests: New file.
33197         * modules/unictype/property-math-tests: New file.
33198         * modules/unictype/property-non-break-tests: New file.
33199         * modules/unictype/property-not-a-character-tests: New file.
33200         * modules/unictype/property-numeric-tests: New file.
33201         * modules/unictype/property-other-alphabetic-tests: New file.
33202         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33203         * modules/unictype/property-other-grapheme-extend-tests: New file.
33204         * modules/unictype/property-other-id-continue-tests: New file.
33205         * modules/unictype/property-other-id-start-tests: New file.
33206         * modules/unictype/property-other-lowercase-tests: New file.
33207         * modules/unictype/property-other-math-tests: New file.
33208         * modules/unictype/property-other-uppercase-tests: New file.
33209         * modules/unictype/property-paired-punctuation-tests: New file.
33210         * modules/unictype/property-paragraph-separator-tests: New file.
33211         * modules/unictype/property-pattern-syntax-tests: New file.
33212         * modules/unictype/property-pattern-white-space-tests: New file.
33213         * modules/unictype/property-private-use-tests: New file.
33214         * modules/unictype/property-punctuation-tests: New file.
33215         * modules/unictype/property-quotation-mark-tests: New file.
33216         * modules/unictype/property-radical-tests: New file.
33217         * modules/unictype/property-sentence-terminal-tests: New file.
33218         * modules/unictype/property-soft-dotted-tests: New file.
33219         * modules/unictype/property-space-tests: New file.
33220         * modules/unictype/property-terminal-punctuation-tests: New file.
33221         * modules/unictype/property-test-tests: New file.
33222         * modules/unictype/property-titlecase-tests: New file.
33223         * modules/unictype/property-unassigned-code-value-tests: New file.
33224         * modules/unictype/property-unified-ideograph-tests: New file.
33225         * modules/unictype/property-uppercase-tests: New file.
33226         * modules/unictype/property-variation-selector-tests: New file.
33227         * modules/unictype/property-white-space-tests: New file.
33228         * modules/unictype/property-xid-continue-tests: New file.
33229         * modules/unictype/property-xid-start-tests: New file.
33230         * modules/unictype/property-zero-width-tests: New file.
33231         * modules/unictype/scripts-tests: New file.
33232         * modules/unictype/syntax-c-ident-tests: New file.
33233         * modules/unictype/syntax-c-whitespace-tests: New file.
33234         * modules/unictype/syntax-java-ident-tests: New file.
33235         * modules/unictype/syntax-java-whitespace-tests: New file.
33236         * tests/unictype/test-bidi_byname.c: New file.
33237         * tests/unictype/test-bidi_name.c: New file.
33238         * tests/unictype/test-bidi_of.c: New file.
33239         * tests/unictype/test-bidi_test.c: New file.
33240         * tests/unictype/test-block_list.c: New file.
33241         * tests/unictype/test-block_of.c: New file.
33242         * tests/unictype/test-block_test.c: New file.
33243         * tests/unictype/test-categ_and.c: New file.
33244         * tests/unictype/test-categ_and_not.c: New file.
33245         * tests/unictype/test-categ_byname.c: New file.
33246         * tests/unictype/test-categ_name.c: New file.
33247         * tests/unictype/test-categ_none.c: New file.
33248         * tests/unictype/test-categ_of.c: New file.
33249         * tests/unictype/test-categ_or.c: New file.
33250         * tests/unictype/test-categ_test_withtable.c: New file.
33251         * tests/unictype/test-combining.c: New file.
33252         * tests/unictype/test-decdigit.c: New file.
33253         * tests/unictype/test-digit.c: New file.
33254         * tests/unictype/test-mirror.c: New file.
33255         * tests/unictype/test-numeric.c: New file.
33256         * tests/unictype/test-pr_byname.c: New file.
33257         * tests/unictype/test-pr_test.c: New file.
33258         * tests/unictype/test-predicate-part1.h: New file.
33259         * tests/unictype/test-predicate-part2.h: New file.
33260         * tests/unictype/test-scripts.c: New file.
33261         * tests/unictype/test-sy_c_ident.c: New file.
33262         * tests/unictype/test-sy_java_ident.c: New file.
33263
33264         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33265         for Unicode 5.0.0.
33266         * tests/unictype/test-categ_Cc.c: Likewise.
33267         * tests/unictype/test-categ_Cf.c: Likewise.
33268         * tests/unictype/test-categ_Cn.c: Likewise.
33269         * tests/unictype/test-categ_Co.c: Likewise.
33270         * tests/unictype/test-categ_Cs.c: Likewise.
33271         * tests/unictype/test-categ_L.c: Likewise.
33272         * tests/unictype/test-categ_Ll.c: Likewise.
33273         * tests/unictype/test-categ_Lm.c: Likewise.
33274         * tests/unictype/test-categ_Lo.c: Likewise.
33275         * tests/unictype/test-categ_Lt.c: Likewise.
33276         * tests/unictype/test-categ_Lu.c: Likewise.
33277         * tests/unictype/test-categ_M.c: Likewise.
33278         * tests/unictype/test-categ_Mc.c: Likewise.
33279         * tests/unictype/test-categ_Me.c: Likewise.
33280         * tests/unictype/test-categ_Mn.c: Likewise.
33281         * tests/unictype/test-categ_N.c: Likewise.
33282         * tests/unictype/test-categ_Nd.c: Likewise.
33283         * tests/unictype/test-categ_Nl.c: Likewise.
33284         * tests/unictype/test-categ_No.c: Likewise.
33285         * tests/unictype/test-categ_P.c: Likewise.
33286         * tests/unictype/test-categ_Pc.c: Likewise.
33287         * tests/unictype/test-categ_Pd.c: Likewise.
33288         * tests/unictype/test-categ_Pe.c: Likewise.
33289         * tests/unictype/test-categ_Pf.c: Likewise.
33290         * tests/unictype/test-categ_Pi.c: Likewise.
33291         * tests/unictype/test-categ_Po.c: Likewise.
33292         * tests/unictype/test-categ_Ps.c: Likewise.
33293         * tests/unictype/test-categ_S.c: Likewise.
33294         * tests/unictype/test-categ_Sc.c: Likewise.
33295         * tests/unictype/test-categ_Sk.c: Likewise.
33296         * tests/unictype/test-categ_Sm.c: Likewise.
33297         * tests/unictype/test-categ_So.c: Likewise.
33298         * tests/unictype/test-categ_Z.c: Likewise.
33299         * tests/unictype/test-categ_Zl.c: Likewise.
33300         * tests/unictype/test-categ_Zp.c: Likewise.
33301         * tests/unictype/test-categ_Zs.c: Likewise.
33302         * tests/unictype/test-ctype_alnum.c: Likewise.
33303         * tests/unictype/test-ctype_alpha.c: Likewise.
33304         * tests/unictype/test-ctype_blank.c: Likewise.
33305         * tests/unictype/test-ctype_cntrl.c: Likewise.
33306         * tests/unictype/test-ctype_digit.c: Likewise.
33307         * tests/unictype/test-ctype_graph.c: Likewise.
33308         * tests/unictype/test-ctype_lower.c: Likewise.
33309         * tests/unictype/test-ctype_print.c: Likewise.
33310         * tests/unictype/test-ctype_punct.c: Likewise.
33311         * tests/unictype/test-ctype_space.c: Likewise.
33312         * tests/unictype/test-ctype_upper.c: Likewise.
33313         * tests/unictype/test-ctype_xdigit.c: Likewise.
33314         * tests/unictype/test-decdigit.h: Likewise.
33315         * tests/unictype/test-digit.h: Likewise.
33316         * tests/unictype/test-numeric.h: Likewise.
33317         * tests/unictype/test-pr_alphabetic.c: Likewise.
33318         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33319         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33320         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33321         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33322         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33323         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33324         * tests/unictype/test-pr_bidi_control.c: Likewise.
33325         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33326         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33327         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33328         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33329         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33330         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33331         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33332         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33333         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33334         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33335         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33336         * tests/unictype/test-pr_combining.c: Likewise.
33337         * tests/unictype/test-pr_composite.c: Likewise.
33338         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33339         * tests/unictype/test-pr_dash.c: Likewise.
33340         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33341         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33342         * tests/unictype/test-pr_deprecated.c: Likewise.
33343         * tests/unictype/test-pr_diacritic.c: Likewise.
33344         * tests/unictype/test-pr_extender.c: Likewise.
33345         * tests/unictype/test-pr_format_control.c: Likewise.
33346         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33347         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33348         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33349         * tests/unictype/test-pr_hex_digit.c: Likewise.
33350         * tests/unictype/test-pr_hyphen.c: Likewise.
33351         * tests/unictype/test-pr_id_continue.c: Likewise.
33352         * tests/unictype/test-pr_id_start.c: Likewise.
33353         * tests/unictype/test-pr_ideographic.c: Likewise.
33354         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33355         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33356         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33357         * tests/unictype/test-pr_iso_control.c: Likewise.
33358         * tests/unictype/test-pr_join_control.c: Likewise.
33359         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33360         * tests/unictype/test-pr_line_separator.c: Likewise.
33361         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33362         * tests/unictype/test-pr_lowercase.c: Likewise.
33363         * tests/unictype/test-pr_math.c: Likewise.
33364         * tests/unictype/test-pr_non_break.c: Likewise.
33365         * tests/unictype/test-pr_not_a_character.c: Likewise.
33366         * tests/unictype/test-pr_numeric.c: Likewise.
33367         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33368         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33369         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33370         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33371         * tests/unictype/test-pr_other_id_start.c: Likewise.
33372         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33373         * tests/unictype/test-pr_other_math.c: Likewise.
33374         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33375         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33376         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33377         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33378         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33379         * tests/unictype/test-pr_private_use.c: Likewise.
33380         * tests/unictype/test-pr_punctuation.c: Likewise.
33381         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33382         * tests/unictype/test-pr_radical.c: Likewise.
33383         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33384         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33385         * tests/unictype/test-pr_space.c: Likewise.
33386         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33387         * tests/unictype/test-pr_titlecase.c: Likewise.
33388         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33389         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33390         * tests/unictype/test-pr_uppercase.c: Likewise.
33391         * tests/unictype/test-pr_variation_selector.c: Likewise.
33392         * tests/unictype/test-pr_white_space.c: Likewise.
33393         * tests/unictype/test-pr_xid_continue.c: Likewise.
33394         * tests/unictype/test-pr_xid_start.c: Likewise.
33395         * tests/unictype/test-pr_zero_width.c: Likewise.
33396         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33397         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33398
33399 2007-11-12  Bruno Haible  <bruno@clisp.org>
33400
33401         Unicode character classification functions.
33402         * lib/unictype.h: New file.
33403         * modules/unictype/base: New file.
33404         * modules/unictype/category-L: New file.
33405         * modules/unictype/category-Lu: New file.
33406         * modules/unictype/category-Ll: New file.
33407         * modules/unictype/category-Lt: New file.
33408         * modules/unictype/category-Lm: New file.
33409         * modules/unictype/category-Lo: New file.
33410         * modules/unictype/category-M: New file.
33411         * modules/unictype/category-Mn: New file.
33412         * modules/unictype/category-Mc: New file.
33413         * modules/unictype/category-Me: New file.
33414         * modules/unictype/category-N: New file.
33415         * modules/unictype/category-Nd: New file.
33416         * modules/unictype/category-Nl: New file.
33417         * modules/unictype/category-No: New file.
33418         * modules/unictype/category-P: New file.
33419         * modules/unictype/category-Pc: New file.
33420         * modules/unictype/category-Pd: New file.
33421         * modules/unictype/category-Ps: New file.
33422         * modules/unictype/category-Pe: New file.
33423         * modules/unictype/category-Pi: New file.
33424         * modules/unictype/category-Pf: New file.
33425         * modules/unictype/category-Po: New file.
33426         * modules/unictype/category-S: New file.
33427         * modules/unictype/category-Sm: New file.
33428         * modules/unictype/category-Sc: New file.
33429         * modules/unictype/category-Sk: New file.
33430         * modules/unictype/category-So: New file.
33431         * modules/unictype/category-Z: New file.
33432         * modules/unictype/category-Zs: New file.
33433         * modules/unictype/category-Zl: New file.
33434         * modules/unictype/category-Zp: New file.
33435         * modules/unictype/category-C: New file.
33436         * modules/unictype/category-Cc: New file.
33437         * modules/unictype/category-Cf: New file.
33438         * modules/unictype/category-Cs: New file.
33439         * modules/unictype/category-Co: New file.
33440         * modules/unictype/category-Cn: New file.
33441         * modules/unictype/category-or: New file.
33442         * modules/unictype/category-of: New file.
33443         * modules/unictype/category-test: New file.
33444         * modules/unictype/category-test-withtable: New file.
33445         * modules/unictype/category-byname: New file.
33446         * modules/unictype/category-none: New file.
33447         * modules/unictype/category-and: New file.
33448         * modules/unictype/category-and-not: New file.
33449         * modules/unictype/category-name: New file.
33450         * modules/unictype/combining-class: New file.
33451         * modules/unictype/category-all: New file.
33452         * modules/unictype/bidicategory-all: New file.
33453         * modules/unictype/bidicategory-byname: New file.
33454         * modules/unictype/bidicategory-name: New file.
33455         * modules/unictype/bidicategory-of: New file.
33456         * modules/unictype/bidicategory-test: New file.
33457         * modules/unictype/decimal-digit: New file.
33458         * modules/unictype/digit: New file.
33459         * modules/unictype/numeric: New file.
33460         * modules/unictype/mirror: New file.
33461         * modules/unictype/property-white-space: New file.
33462         * modules/unictype/property-alphabetic: New file.
33463         * modules/unictype/property-other-alphabetic: New file.
33464         * modules/unictype/property-not-a-character: New file.
33465         * modules/unictype/property-default-ignorable-code-point: New file.
33466         * modules/unictype/property-other-default-ignorable-code-point: New
33467         file.
33468         * modules/unictype/property-deprecated: New file.
33469         * modules/unictype/property-logical-order-exception: New file.
33470         * modules/unictype/property-variation-selector: New file.
33471         * modules/unictype/property-private-use: New file.
33472         * modules/unictype/property-unassigned-code-value: New file.
33473         * modules/unictype/property-uppercase: New file.
33474         * modules/unictype/property-other-uppercase: New file.
33475         * modules/unictype/property-lowercase: New file.
33476         * modules/unictype/property-other-lowercase: New file.
33477         * modules/unictype/property-titlecase: New file.
33478         * modules/unictype/property-soft-dotted: New file.
33479         * modules/unictype/property-id-start: New file.
33480         * modules/unictype/property-other-id-start: New file.
33481         * modules/unictype/property-id-continue: New file.
33482         * modules/unictype/property-other-id-continue: New file.
33483         * modules/unictype/property-xid-start: New file.
33484         * modules/unictype/property-xid-continue: New file.
33485         * modules/unictype/property-pattern-white-space: New file.
33486         * modules/unictype/property-pattern-syntax: New file.
33487         * modules/unictype/property-join-control: New file.
33488         * modules/unictype/property-grapheme-base: New file.
33489         * modules/unictype/property-grapheme-extend: New file.
33490         * modules/unictype/property-other-grapheme-extend: New file.
33491         * modules/unictype/property-grapheme-link: New file.
33492         * modules/unictype/property-bidi-control: New file.
33493         * modules/unictype/property-bidi-left-to-right: New file.
33494         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33495         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33496         * modules/unictype/property-bidi-european-digit: New file.
33497         * modules/unictype/property-bidi-eur-num-separator: New file.
33498         * modules/unictype/property-bidi-eur-num-terminator: New file.
33499         * modules/unictype/property-bidi-arabic-digit: New file.
33500         * modules/unictype/property-bidi-common-separator: New file.
33501         * modules/unictype/property-bidi-block-separator: New file.
33502         * modules/unictype/property-bidi-segment-separator: New file.
33503         * modules/unictype/property-bidi-whitespace: New file.
33504         * modules/unictype/property-bidi-non-spacing-mark: New file.
33505         * modules/unictype/property-bidi-boundary-neutral: New file.
33506         * modules/unictype/property-bidi-pdf: New file.
33507         * modules/unictype/property-bidi-embedding-or-override: New file.
33508         * modules/unictype/property-bidi-other-neutral: New file.
33509         * modules/unictype/property-hex-digit: New file.
33510         * modules/unictype/property-ascii-hex-digit: New file.
33511         * modules/unictype/property-ideographic: New file.
33512         * modules/unictype/property-unified-ideograph: New file.
33513         * modules/unictype/property-radical: New file.
33514         * modules/unictype/property-ids-binary-operator: New file.
33515         * modules/unictype/property-ids-trinary-operator: New file.
33516         * modules/unictype/property-zero-width: New file.
33517         * modules/unictype/property-space: New file.
33518         * modules/unictype/property-non-break: New file.
33519         * modules/unictype/property-iso-control: New file.
33520         * modules/unictype/property-format-control: New file.
33521         * modules/unictype/property-dash: New file.
33522         * modules/unictype/property-hyphen: New file.
33523         * modules/unictype/property-punctuation: New file.
33524         * modules/unictype/property-line-separator: New file.
33525         * modules/unictype/property-paragraph-separator: New file.
33526         * modules/unictype/property-quotation-mark: New file.
33527         * modules/unictype/property-sentence-terminal: New file.
33528         * modules/unictype/property-terminal-punctuation: New file.
33529         * modules/unictype/property-currency-symbol: New file.
33530         * modules/unictype/property-math: New file.
33531         * modules/unictype/property-other-math: New file.
33532         * modules/unictype/property-paired-punctuation: New file.
33533         * modules/unictype/property-left-of-pair: New file.
33534         * modules/unictype/property-combining: New file.
33535         * modules/unictype/property-composite: New file.
33536         * modules/unictype/property-decimal-digit: New file.
33537         * modules/unictype/property-numeric: New file.
33538         * modules/unictype/property-diacritic: New file.
33539         * modules/unictype/property-extender: New file.
33540         * modules/unictype/property-ignorable-control: New file.
33541         * modules/unictype/property-test: New file.
33542         * modules/unictype/property-byname: New file.
33543         * modules/unictype/property-all: New file.
33544         * modules/unictype/scripts: New file.
33545         * modules/unictype/scripts-all: New file.
33546         * modules/unictype/block-of: New file.
33547         * modules/unictype/block-test: New file.
33548         * modules/unictype/block-list: New file.
33549         * modules/unictype/block-all: New file.
33550         * modules/unictype/syntax-c-whitespace: New file.
33551         * modules/unictype/syntax-java-whitespace: New file.
33552         * modules/unictype/syntax-c-ident: New file.
33553         * modules/unictype/syntax-java-ident: New file.
33554         * modules/unictype/ctype-alnum: New file.
33555         * modules/unictype/ctype-alpha: New file.
33556         * modules/unictype/ctype-cntrl: New file.
33557         * modules/unictype/ctype-digit: New file.
33558         * modules/unictype/ctype-graph: New file.
33559         * modules/unictype/ctype-lower: New file.
33560         * modules/unictype/ctype-print: New file.
33561         * modules/unictype/ctype-punct: New file.
33562         * modules/unictype/ctype-space: New file.
33563         * modules/unictype/ctype-upper: New file.
33564         * modules/unictype/ctype-xdigit: New file.
33565         * modules/unictype/ctype-blank: New file.
33566         * lib/unictype/bidi_byname.c: New file.
33567         * lib/unictype/bidi_name.c: New file.
33568         * lib/unictype/bidi_of.c: New file.
33569         * lib/unictype/bidi_test.c: New file.
33570         * lib/unictype/bitmap.h: New file.
33571         * lib/unictype/block_test.c: New file.
33572         * lib/unictype/blocks.c: New file.
33573         * lib/unictype/categ_C.c: New file.
33574         * lib/unictype/categ_Cc.c: New file.
33575         * lib/unictype/categ_Cf.c: New file.
33576         * lib/unictype/categ_Cn.c: New file.
33577         * lib/unictype/categ_Co.c: New file.
33578         * lib/unictype/categ_Cs.c: New file.
33579         * lib/unictype/categ_L.c: New file.
33580         * lib/unictype/categ_Ll.c: New file.
33581         * lib/unictype/categ_Lm.c: New file.
33582         * lib/unictype/categ_Lo.c: New file.
33583         * lib/unictype/categ_Lt.c: New file.
33584         * lib/unictype/categ_Lu.c: New file.
33585         * lib/unictype/categ_M.c: New file.
33586         * lib/unictype/categ_Mc.c: New file.
33587         * lib/unictype/categ_Me.c: New file.
33588         * lib/unictype/categ_Mn.c: New file.
33589         * lib/unictype/categ_N.c: New file.
33590         * lib/unictype/categ_Nd.c: New file.
33591         * lib/unictype/categ_Nl.c: New file.
33592         * lib/unictype/categ_No.c: New file.
33593         * lib/unictype/categ_P.c: New file.
33594         * lib/unictype/categ_Pc.c: New file.
33595         * lib/unictype/categ_Pd.c: New file.
33596         * lib/unictype/categ_Pe.c: New file.
33597         * lib/unictype/categ_Pf.c: New file.
33598         * lib/unictype/categ_Pi.c: New file.
33599         * lib/unictype/categ_Po.c: New file.
33600         * lib/unictype/categ_Ps.c: New file.
33601         * lib/unictype/categ_S.c: New file.
33602         * lib/unictype/categ_Sc.c: New file.
33603         * lib/unictype/categ_Sk.c: New file.
33604         * lib/unictype/categ_Sm.c: New file.
33605         * lib/unictype/categ_So.c: New file.
33606         * lib/unictype/categ_Z.c: New file.
33607         * lib/unictype/categ_Zl.c: New file.
33608         * lib/unictype/categ_Zp.c: New file.
33609         * lib/unictype/categ_Zs.c: New file.
33610         * lib/unictype/categ_and.c: New file.
33611         * lib/unictype/categ_and_not.c: New file.
33612         * lib/unictype/categ_byname.c: New file.
33613         * lib/unictype/categ_name.c: New file.
33614         * lib/unictype/categ_none.c: New file.
33615         * lib/unictype/categ_of.c: New file.
33616         * lib/unictype/categ_or.c: New file.
33617         * lib/unictype/categ_test.c: New file.
33618         * lib/unictype/combining.c: New file.
33619         * lib/unictype/ctype_alnum.c: New file.
33620         * lib/unictype/ctype_alpha.c: New file.
33621         * lib/unictype/ctype_blank.c: New file.
33622         * lib/unictype/ctype_cntrl.c: New file.
33623         * lib/unictype/ctype_digit.c: New file.
33624         * lib/unictype/ctype_graph.c: New file.
33625         * lib/unictype/ctype_lower.c: New file.
33626         * lib/unictype/ctype_print.c: New file.
33627         * lib/unictype/ctype_punct.c: New file.
33628         * lib/unictype/ctype_space.c: New file.
33629         * lib/unictype/ctype_upper.c: New file.
33630         * lib/unictype/ctype_xdigit.c: New file.
33631         * lib/unictype/decdigit.c: New file.
33632         * lib/unictype/digit.c: New file.
33633         * lib/unictype/identsyntaxmap.h: New file.
33634         * lib/unictype/mirror.c: New file.
33635         * lib/unictype/numeric.c: New file.
33636         * lib/unictype/pr_alphabetic.c: New file.
33637         * lib/unictype/pr_ascii_hex_digit.c: New file.
33638         * lib/unictype/pr_bidi_arabic_digit.c: New file.
33639         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
33640         * lib/unictype/pr_bidi_block_separator.c: New file.
33641         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
33642         * lib/unictype/pr_bidi_common_separator.c: New file.
33643         * lib/unictype/pr_bidi_control.c: New file.
33644         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
33645         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
33646         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
33647         * lib/unictype/pr_bidi_european_digit.c: New file.
33648         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
33649         * lib/unictype/pr_bidi_left_to_right.c: New file.
33650         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
33651         * lib/unictype/pr_bidi_other_neutral.c: New file.
33652         * lib/unictype/pr_bidi_pdf.c: New file.
33653         * lib/unictype/pr_bidi_segment_separator.c: New file.
33654         * lib/unictype/pr_bidi_whitespace.c: New file.
33655         * lib/unictype/pr_byname.c: New file.
33656         * lib/unictype/pr_byname.gperf: New file.
33657         * lib/unictype/pr_combining.c: New file.
33658         * lib/unictype/pr_composite.c: New file.
33659         * lib/unictype/pr_currency_symbol.c: New file.
33660         * lib/unictype/pr_dash.c: New file.
33661         * lib/unictype/pr_decimal_digit.c: New file.
33662         * lib/unictype/pr_default_ignorable_code_point.c: New file.
33663         * lib/unictype/pr_deprecated.c: New file.
33664         * lib/unictype/pr_diacritic.c: New file.
33665         * lib/unictype/pr_extender.c: New file.
33666         * lib/unictype/pr_format_control.c: New file.
33667         * lib/unictype/pr_grapheme_base.c: New file.
33668         * lib/unictype/pr_grapheme_extend.c: New file.
33669         * lib/unictype/pr_grapheme_link.c: New file.
33670         * lib/unictype/pr_hex_digit.c: New file.
33671         * lib/unictype/pr_hyphen.c: New file.
33672         * lib/unictype/pr_id_continue.c: New file.
33673         * lib/unictype/pr_id_start.c: New file.
33674         * lib/unictype/pr_ideographic.c: New file.
33675         * lib/unictype/pr_ids_binary_operator.c: New file.
33676         * lib/unictype/pr_ids_trinary_operator.c: New file.
33677         * lib/unictype/pr_ignorable_control.c: New file.
33678         * lib/unictype/pr_iso_control.c: New file.
33679         * lib/unictype/pr_join_control.c: New file.
33680         * lib/unictype/pr_left_of_pair.c: New file.
33681         * lib/unictype/pr_line_separator.c: New file.
33682         * lib/unictype/pr_logical_order_exception.c: New file.
33683         * lib/unictype/pr_lowercase.c: New file.
33684         * lib/unictype/pr_math.c: New file.
33685         * lib/unictype/pr_non_break.c: New file.
33686         * lib/unictype/pr_not_a_character.c: New file.
33687         * lib/unictype/pr_numeric.c: New file.
33688         * lib/unictype/pr_other_alphabetic.c: New file.
33689         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
33690         * lib/unictype/pr_other_grapheme_extend.c: New file.
33691         * lib/unictype/pr_other_id_continue.c: New file.
33692         * lib/unictype/pr_other_id_start.c: New file.
33693         * lib/unictype/pr_other_lowercase.c: New file.
33694         * lib/unictype/pr_other_math.c: New file.
33695         * lib/unictype/pr_other_uppercase.c: New file.
33696         * lib/unictype/pr_paired_punctuation.c: New file.
33697         * lib/unictype/pr_paragraph_separator.c: New file.
33698         * lib/unictype/pr_pattern_syntax.c: New file.
33699         * lib/unictype/pr_pattern_white_space.c: New file.
33700         * lib/unictype/pr_private_use.c: New file.
33701         * lib/unictype/pr_punctuation.c: New file.
33702         * lib/unictype/pr_quotation_mark.c: New file.
33703         * lib/unictype/pr_radical.c: New file.
33704         * lib/unictype/pr_sentence_terminal.c: New file.
33705         * lib/unictype/pr_soft_dotted.c: New file.
33706         * lib/unictype/pr_space.c: New file.
33707         * lib/unictype/pr_terminal_punctuation.c: New file.
33708         * lib/unictype/pr_test.c: New file.
33709         * lib/unictype/pr_titlecase.c: New file.
33710         * lib/unictype/pr_unassigned_code_value.c: New file.
33711         * lib/unictype/pr_unified_ideograph.c: New file.
33712         * lib/unictype/pr_uppercase.c: New file.
33713         * lib/unictype/pr_variation_selector.c: New file.
33714         * lib/unictype/pr_white_space.c: New file.
33715         * lib/unictype/pr_xid_continue.c: New file.
33716         * lib/unictype/pr_xid_start.c: New file.
33717         * lib/unictype/pr_zero_width.c: New file.
33718         * lib/unictype/scripts.c: New file.
33719         * lib/unictype/sy_c_ident.c: New file.
33720         * lib/unictype/sy_c_whitespace.c: New file.
33721         * lib/unictype/sy_java_ident.c: New file.
33722         * lib/unictype/sy_java_whitespace.c: New file.
33723
33724         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
33725         Unicode 5.0.0.
33726         * lib/unictype/blocks.h: Likewise.
33727         * lib/unictype/categ_C.h: Likewise.
33728         * lib/unictype/categ_Cc.h: Likewise.
33729         * lib/unictype/categ_Cf.h: Likewise.
33730         * lib/unictype/categ_Cn.h: Likewise.
33731         * lib/unictype/categ_Co.h: Likewise.
33732         * lib/unictype/categ_Cs.h: Likewise.
33733         * lib/unictype/categ_L.h: Likewise.
33734         * lib/unictype/categ_Ll.h: Likewise.
33735         * lib/unictype/categ_Lm.h: Likewise.
33736         * lib/unictype/categ_Lo.h: Likewise.
33737         * lib/unictype/categ_Lt.h: Likewise.
33738         * lib/unictype/categ_Lu.h: Likewise.
33739         * lib/unictype/categ_M.h: Likewise.
33740         * lib/unictype/categ_Mc.h: Likewise.
33741         * lib/unictype/categ_Me.h: Likewise.
33742         * lib/unictype/categ_Mn.h: Likewise.
33743         * lib/unictype/categ_N.h: Likewise.
33744         * lib/unictype/categ_Nd.h: Likewise.
33745         * lib/unictype/categ_Nl.h: Likewise.
33746         * lib/unictype/categ_No.h: Likewise.
33747         * lib/unictype/categ_P.h: Likewise.
33748         * lib/unictype/categ_Pc.h: Likewise.
33749         * lib/unictype/categ_Pd.h: Likewise.
33750         * lib/unictype/categ_Pe.h: Likewise.
33751         * lib/unictype/categ_Pf.h: Likewise.
33752         * lib/unictype/categ_Pi.h: Likewise.
33753         * lib/unictype/categ_Po.h: Likewise.
33754         * lib/unictype/categ_Ps.h: Likewise.
33755         * lib/unictype/categ_S.h: Likewise.
33756         * lib/unictype/categ_Sc.h: Likewise.
33757         * lib/unictype/categ_Sk.h: Likewise.
33758         * lib/unictype/categ_Sm.h: Likewise.
33759         * lib/unictype/categ_So.h: Likewise.
33760         * lib/unictype/categ_Z.h: Likewise.
33761         * lib/unictype/categ_Zl.h: Likewise.
33762         * lib/unictype/categ_Zp.h: Likewise.
33763         * lib/unictype/categ_Zs.h: Likewise.
33764         * lib/unictype/categ_of.h: Likewise.
33765         * lib/unictype/combining.h: Likewise.
33766         * lib/unictype/ctype_alnum.h: Likewise.
33767         * lib/unictype/ctype_alpha.h: Likewise.
33768         * lib/unictype/ctype_blank.h: Likewise.
33769         * lib/unictype/ctype_cntrl.h: Likewise.
33770         * lib/unictype/ctype_digit.h: Likewise.
33771         * lib/unictype/ctype_graph.h: Likewise.
33772         * lib/unictype/ctype_lower.h: Likewise.
33773         * lib/unictype/ctype_print.h: Likewise.
33774         * lib/unictype/ctype_punct.h: Likewise.
33775         * lib/unictype/ctype_space.h: Likewise.
33776         * lib/unictype/ctype_upper.h: Likewise.
33777         * lib/unictype/ctype_xdigit.h: Likewise.
33778         * lib/unictype/decdigit.h: Likewise.
33779         * lib/unictype/digit.h: Likewise.
33780         * lib/unictype/mirror.h: Likewise.
33781         * lib/unictype/numeric.h: Likewise.
33782         * lib/unictype/pr_alphabetic.h: Likewise.
33783         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
33784         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
33785         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
33786         * lib/unictype/pr_bidi_block_separator.h: Likewise.
33787         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
33788         * lib/unictype/pr_bidi_common_separator.h: Likewise.
33789         * lib/unictype/pr_bidi_control.h: Likewise.
33790         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
33791         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
33792         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
33793         * lib/unictype/pr_bidi_european_digit.h: Likewise.
33794         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
33795         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
33796         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
33797         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
33798         * lib/unictype/pr_bidi_pdf.h: Likewise.
33799         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
33800         * lib/unictype/pr_bidi_whitespace.h: Likewise.
33801         * lib/unictype/pr_combining.h: Likewise.
33802         * lib/unictype/pr_composite.h: Likewise.
33803         * lib/unictype/pr_currency_symbol.h: Likewise.
33804         * lib/unictype/pr_dash.h: Likewise.
33805         * lib/unictype/pr_decimal_digit.h: Likewise.
33806         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
33807         * lib/unictype/pr_deprecated.h: Likewise.
33808         * lib/unictype/pr_diacritic.h: Likewise.
33809         * lib/unictype/pr_extender.h: Likewise.
33810         * lib/unictype/pr_format_control.h: Likewise.
33811         * lib/unictype/pr_grapheme_base.h: Likewise.
33812         * lib/unictype/pr_grapheme_extend.h: Likewise.
33813         * lib/unictype/pr_grapheme_link.h: Likewise.
33814         * lib/unictype/pr_hex_digit.h: Likewise.
33815         * lib/unictype/pr_hyphen.h: Likewise.
33816         * lib/unictype/pr_id_continue.h: Likewise.
33817         * lib/unictype/pr_id_start.h: Likewise.
33818         * lib/unictype/pr_ideographic.h: Likewise.
33819         * lib/unictype/pr_ids_binary_operator.h: Likewise.
33820         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
33821         * lib/unictype/pr_ignorable_control.h: Likewise.
33822         * lib/unictype/pr_iso_control.h: Likewise.
33823         * lib/unictype/pr_join_control.h: Likewise.
33824         * lib/unictype/pr_left_of_pair.h: Likewise.
33825         * lib/unictype/pr_line_separator.h: Likewise.
33826         * lib/unictype/pr_logical_order_exception.h: Likewise.
33827         * lib/unictype/pr_lowercase.h: Likewise.
33828         * lib/unictype/pr_math.h: Likewise.
33829         * lib/unictype/pr_non_break.h: Likewise.
33830         * lib/unictype/pr_not_a_character.h: Likewise.
33831         * lib/unictype/pr_numeric.h: Likewise.
33832         * lib/unictype/pr_other_alphabetic.h: Likewise.
33833         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
33834         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
33835         * lib/unictype/pr_other_id_continue.h: Likewise.
33836         * lib/unictype/pr_other_id_start.h: Likewise.
33837         * lib/unictype/pr_other_lowercase.h: Likewise.
33838         * lib/unictype/pr_other_math.h: Likewise.
33839         * lib/unictype/pr_other_uppercase.h: Likewise.
33840         * lib/unictype/pr_paired_punctuation.h: Likewise.
33841         * lib/unictype/pr_paragraph_separator.h: Likewise.
33842         * lib/unictype/pr_pattern_syntax.h: Likewise.
33843         * lib/unictype/pr_pattern_white_space.h: Likewise.
33844         * lib/unictype/pr_private_use.h: Likewise.
33845         * lib/unictype/pr_punctuation.h: Likewise.
33846         * lib/unictype/pr_quotation_mark.h: Likewise.
33847         * lib/unictype/pr_radical.h: Likewise.
33848         * lib/unictype/pr_sentence_terminal.h: Likewise.
33849         * lib/unictype/pr_soft_dotted.h: Likewise.
33850         * lib/unictype/pr_space.h: Likewise.
33851         * lib/unictype/pr_terminal_punctuation.h: Likewise.
33852         * lib/unictype/pr_titlecase.h: Likewise.
33853         * lib/unictype/pr_unassigned_code_value.h: Likewise.
33854         * lib/unictype/pr_unified_ideograph.h: Likewise.
33855         * lib/unictype/pr_uppercase.h: Likewise.
33856         * lib/unictype/pr_variation_selector.h: Likewise.
33857         * lib/unictype/pr_white_space.h: Likewise.
33858         * lib/unictype/pr_xid_continue.h: Likewise.
33859         * lib/unictype/pr_xid_start.h: Likewise.
33860         * lib/unictype/pr_zero_width.h: Likewise.
33861         * lib/unictype/scripts.h: Likewise.
33862         * lib/unictype/scripts_byname.gperf: Likewise.
33863         * lib/unictype/sy_c_ident.h: Likewise.
33864         * lib/unictype/sy_c_whitespace.h: Likewise.
33865         * lib/unictype/sy_java_ident.h: Likewise.
33866         * lib/unictype/sy_java_whitespace.h: Likewise.
33867
33868         * lib/unictype/Makefile: New file.
33869         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
33870         glibc.
33871         * lib/unictype/3level.h: New file, copied from glibc.
33872         * lib/unictype/3levelbit.h: New file.
33873
33874 2007-11-11  Bruno Haible  <bruno@clisp.org>
33875
33876         * modules/gperf: New file.
33877         * modules/iconv_open (Depends-on): Add it.
33878         (Makefile.am): Remove the GPERF definition.
33879
33880 2007-11-11  Bruno Haible  <bruno@clisp.org>
33881
33882         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
33883         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
33884
33885 2007-11-11  Bruno Haible  <bruno@clisp.org>
33886
33887         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
33888         (usage): Remove function.
33889
33890 2007-11-11  Bruno Haible  <bruno@clisp.org>
33891
33892         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
33893         gl_FUNC_CEILF_LIBS.
33894         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
33895         gl_FUNC_CEIL_LIBS.
33896         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
33897         gl_FUNC_CEILL_LIBS.
33898         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
33899         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
33900         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
33901
33902 2007-11-11  Bruno Haible  <bruno@clisp.org>
33903
33904         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
33905         roundf were declared but do not exist on functions.
33906         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
33907         roundl were declared but do not exist on functions.
33908         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
33909         HAVE_FLOORL_AND_CEILL, respectively.
33910         Needed for Sun C on Solaris 10.
33911
33912 2007-11-11  Bruno Haible  <bruno@clisp.org>
33913
33914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
33915         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
33916         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
33917         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
33918         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
33919         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
33920         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
33921         HAVE_DECL_ROUNDF.
33922         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
33923         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
33924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
33925         of HAVE_DECL_ROUND*.
33926         * modules/math (Makefile.am): Update.
33927
33928 2007-11-10  Bruno Haible  <bruno@clisp.org>
33929
33930         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
33931         ptrdiff_t as m4/intl.m4.
33932
33933 2007-11-10  Jim Meyering  <meyering@redhat.com>
33934
33935         Avoid link failure for the argmatch test.
33936         * tests/test-argmatch.c (usage): Define function to avoid a link
33937         failure: argmatch_die requires a usage function.
33938
33939 2007-11-09  Bruno Haible  <bruno@clisp.org>
33940
33941         * doc/functions/snprintf.texi: Mention BeOS deficiency.
33942         * doc/functions/vsnprintf.texi: Likewise.
33943         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
33944         with a size argument < 2.
33945
33946 2007-11-09  Bruno Haible  <bruno@clisp.org>
33947
33948         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
33949         buffer. Fixes an inefficiency introduced on 2007-11-03.
33950
33951 2007-11-09  Bruno Haible  <bruno@clisp.org>
33952
33953         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
33954         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
33955
33956 2007-11-08  Jim Meyering  <meyering@redhat.com>
33957
33958         Change cache variable name prefix "jm_" to "gl_" everywhere.
33959         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
33960         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
33961         * m4/uptime.m4: s/gl_/jm_/
33962
33963 2007-11-07  Bruno Haible  <bruno@clisp.org>
33964
33965         Update to GNU gettext 0.17.
33966         * m4/intl.m4: Update to GNU gettext 0.17.
33967         * m4/po.m4: Likewise.
33968         * modules/gettext (Files): Remove m4/ulonglong.m4.
33969         (configure.ac): Require gettext infrastructure from version 0.17.
33970
33971 2007-11-06  Bruno Haible  <bruno@clisp.org>
33972
33973         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
33974         symbolic values are not defined in a public header.
33975         * lib/freadable.c (freadable) [QNX]: Likewise.
33976         * lib/freadahead.c (freadahead) [QNX]: Likewise.
33977         * lib/freading.c (freading) [QNX]: Likewise.
33978         * lib/fseterr.c (fseterr) [QNX]: Likewise.
33979         * lib/fwritable.c (fwritable) [QNX]: Likewise.
33980         * lib/fwriting.c (fwriting) [QNX]: Likewise.
33981         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
33982         Reported by Alain Magloire.
33983
33984         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
33985
33986 2007-11-05  Bruno Haible  <bruno@clisp.org>
33987
33988         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
33989         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
33990         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
33991         Reported by Eric Blake.
33992
33993 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33994             Bruno Haible  <bruno@clisp.org>
33995
33996         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
33997         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
33998         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
33999         (malloc): Undefine also before including <stdlib.h>.
34000         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34001         Needed on OSF/1 4.0.
34002
34003 2007-11-05  Jim Meyering  <meyering@redhat.com>
34004
34005         git-version-gen: sync from coreutils.
34006         * build-aux/git-version-gen: Add comments.
34007         Change the first '-' to '.' in the snapshot version string,
34008         e.g., 6.9-377-08144 -> 6.9.377-08144
34009         Remove first parameter.
34010         Don't declare a version "-dirty" merely because a time
34011         stamp has changed.
34012
34013 2007-11-04  Bruno Haible  <bruno@clisp.org>
34014
34015         * lib/lock.h: Protect all macro definitions containing an 'if'
34016         statement through a "do { ... } while (0)".
34017         * lib/tls.h: Likewise.
34018
34019 2007-11-04  Bruno Haible  <bruno@clisp.org>
34020
34021         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34022
34023 2007-11-04  Bruno Haible  <bruno@clisp.org>
34024
34025         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34026         * modules/fprintf-posix (Depends-on): Add nocrash.
34027         * modules/snprintf-posix (Depends-on): Likewise.
34028         * modules/sprintf-posix (Depends-on): Likewise.
34029         * modules/vasnprintf-posix (Depends-on): Likewise.
34030         * modules/vasprintf-posix (Depends-on): Likewise.
34031         * modules/vfprintf-posix (Depends-on): Likewise.
34032         * modules/vsnprintf-posix (Depends-on): Likewise.
34033         * modules/vsprintf-posix (Depends-on): Likewise.
34034         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34035         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34036         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34037         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34038         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34039         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34040         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34041
34042 2007-11-04  Bruno Haible  <bruno@clisp.org>
34043
34044         * modules/nocrash: New file.
34045         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34046         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34047
34048 2007-11-04  Bruno Haible  <bruno@clisp.org>
34049
34050         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34051         precision handling.
34052         * tests/test-vasprintf-posix.c (test_function): Likewise.
34053         * tests/test-snprintf-posix.h (test_function): Likewise.
34054         * tests/test-sprintf-posix.h (test_function): Likewise.
34055
34056         Fix *printf behaviour for large precisions on mingw and BeOS.
34057         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34058         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34060         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34062         gl_PRINTF_PRECISION and test its result. Invoke
34063         gl_PREREQ_VASNPRINTF_PRECISION.
34064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34071         * doc/functions/fprintf.texi: Update.
34072         * doc/functions/printf.texi: Update.
34073         * doc/functions/snprintf.texi: Update.
34074         * doc/functions/sprintf.texi: Update.
34075         * doc/functions/vfprintf.texi: Update.
34076         * doc/functions/vprintf.texi: Update.
34077         * doc/functions/vsnprintf.texi: Update.
34078         * doc/functions/vsprintf.texi: Update.
34079
34080 2007-11-04  Bruno Haible  <bruno@clisp.org>
34081
34082         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34083
34084 2007-11-04  Bruno Haible  <bruno@clisp.org>
34085
34086         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34087         Reported by Sylvain Beucler <beuc@gnu.org>.
34088
34089 2007-11-03  Bruno Haible  <bruno@clisp.org>
34090
34091         * tests/test-fprintf-posix2.sh: New file.
34092         * tests/test-fprintf-posix2.c: New file.
34093         * modules/fprintf-posix-tests (Files): Add them.
34094         (TESTS): Add test-fprintf-posix2.sh.
34095         (configure.ac): Check for getrlimit and setrlimit.
34096         (check_PROGRAMS): Add test-fprintf-posix2.
34097
34098         * tests/test-printf-posix2.sh: New file.
34099         * tests/test-printf-posix2.c: New file.
34100         * modules/printf-posix-tests (Files): Add them.
34101         (TESTS): Add test-printf-posix2.sh.
34102         (configure.ac): Check for getrlimit and setrlimit.
34103         (check_PROGRAMS): Add test-printf-posix2.
34104
34105         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34106         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34107         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34108         (decode_double): New function, copied from decode_long_double.
34109         (scale10_round_decimal_decoded): New function, extracted from
34110         scale10_round_decimal_long_double.
34111         (scale10_round_decimal_long_double): Use it.
34112         (scale10_round_decimal_double): New function.
34113         (floorlog10): New function.
34114         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34116         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34117         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34118         gl_PRINTF_ENOMEM and test its result. Invoke
34119         gl_PREREQ_VASNPRINTF_ENOMEM.
34120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34127         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34128         * modules/snprintf-posix (Depends-on): Likewise.
34129         * modules/sprintf-posix (Depends-on): Likewise.
34130         * modules/vasnprintf-posix (Depends-on): Likewise.
34131         * modules/vasprintf-posix (Depends-on): Likewise.
34132         * modules/vfprintf-posix (Depends-on): Likewise.
34133         * modules/vsnprintf-posix (Depends-on): Likewise.
34134         * modules/vsprintf-posix (Depends-on): Likewise.
34135         * doc/functions/fprintf.texi: Update.
34136         * doc/functions/printf.texi: Update.
34137         * doc/functions/snprintf.texi: Update.
34138         * doc/functions/sprintf.texi: Update.
34139         * doc/functions/vfprintf.texi: Update.
34140         * doc/functions/vprintf.texi: Update.
34141         * doc/functions/vsnprintf.texi: Update.
34142         * doc/functions/vsprintf.texi: Update.
34143
34144 2007-11-03  Bruno Haible  <bruno@clisp.org>
34145
34146         * modules/frexp-nolibm-tests: New file.
34147
34148         * modules/frexp-nolibm: New file.
34149         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34150
34151 2007-11-03  Bruno Haible  <bruno@clisp.org>
34152
34153         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34154         value is C99 compliant.
34155         Needed for OSF/1 5.1.
34156
34157 2007-11-03  Bruno Haible  <bruno@clisp.org>
34158
34159         Fix out-of-memory handling of vasnprintf.
34160         * lib/printf-parse.c: Include <errno.h>.
34161         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34162         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34163         is already set.
34164
34165 2007-11-02  Eric Blake  <ebb9@byu.net>
34166
34167         Fix tests on cygwin.
34168         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34169
34170 2007-11-01  Bruno Haible  <bruno@clisp.org>
34171
34172         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34173         warning.
34174         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34175         needed for POSIX compatibility.
34176
34177 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34178
34179         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34180         for compatibility with GNU.
34181
34182 2007-11-01  Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34185         (putenv): Renamed from rpl_putenv. Change argument type from
34186         'const char *' to 'char *'.
34187         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34188         of defining putenv in config.h, just set REPLACE_PUTENV.
34189         * modules/putenv (Depends-on): Add stdlib.
34190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34191         (Include): Use <stdlib.h>.
34192         * lib/stdlib.in.h (putenv): New declaration.
34193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34194         REPLACE_PUTENV.
34195         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34196         REPLACE_PUTENV.
34197         Needed for MacOS X 10.5.0.
34198         Reported by Peter O'Gorman <peter@pogma.com>.
34199
34200 2007-11-01  Jim Meyering  <meyering@redhat.com>
34201
34202         Treat an empty date string exactly like "0".
34203         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34204         if the remaining date string (to be parsed) is empty, use "0".
34205         Reported by Mischa Molhoek and discussed in this thread:
34206         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34207
34208 2007-10-31  Bruno Haible  <bruno@clisp.org>
34209
34210         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34211         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34212         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34213         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34214         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34215         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34216
34217 2007-10-31  Bruno Haible  <bruno@clisp.org>
34218
34219         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34220         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34221         (AC_TYPE_LONG_LONG_INT): Use it.
34222         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34223         it as well.
34224         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34225         to m4/longlong.m4.
34226         * modules/stdint (Files): Remove m4/ulonglong.m4.
34227         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34228         m4/ulonglong.m4.
34229         * modules/strtoumax (Files): Likewise.
34230
34231 2007-10-30  Bruno Haible  <bruno@clisp.org>
34232
34233         * modules/xvasprintf-posix: New file.
34234         Suggested by Eric Blake.
34235
34236 2007-10-30  Bruno Haible  <bruno@clisp.org>
34237
34238         * modules/xprintf-posix-tests: New file.
34239         * tests/test-xprintf-posix.sh: New file.
34240         * tests/test-xprintf-posix.c: New file.
34241         * tests/test-xfprintf-posix.c: New file.
34242
34243         * modules/xprintf-posix: New file.
34244
34245 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34246
34247         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34248         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34249         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34250
34251 2007-10-29  Bruno Haible  <bruno@clisp.org>
34252
34253         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34254         contain the special marker '_cv_'.
34255         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34256         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34257         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34258         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34259         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34260         Reported by Ralf Wildenhues.
34261
34262 2007-10-29  Bruno Haible  <bruno@clisp.org>
34263
34264         * gnulib-tool (func_import): When --lgpl is not specified, set
34265         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34266         GPLv3.
34267         Reported by Simon Josefsson.
34268
34269 2007-10-28  Bruno Haible  <bruno@clisp.org>
34270
34271         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34272         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34273         HAVE_DECL_ISFINITE.
34274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34275         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34276         HAVE_DECL_ISFINITE.
34277
34278 2007-10-28  Bruno Haible  <bruno@clisp.org>
34279
34280         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34281         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34282
34283 2007-10-28  Bruno Haible  <bruno@clisp.org>
34284
34285         Fix link errors with Sun C 5.0 on Solaris 10.
34286         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34287         function is declared but not present in the compiler's libm.
34288         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34289         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34290         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34291         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34292         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34293         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34294         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34296         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34297         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34298         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34299         HAVE_DECL_FLOORL.
34300
34301 2007-10-28  Bruno Haible  <bruno@clisp.org>
34302
34303         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34304         gl_FUNC_FLOORL. Cache the result.
34305         (gl_FUNC_FLOORL): Use it.
34306         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34307         gl_FUNC_CEILL. Cache the result.
34308         (gl_FUNC_CEILL): Use it.
34309
34310         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34311         gl_FUNC_FLOOR. Cache the result.
34312         (gl_FUNC_FLOOR): Use it.
34313         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34314         gl_FUNC_CEIL. Cache the result.
34315         (gl_FUNC_CEIL): Use it.
34316
34317         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34318         gl_FUNC_FLOORF. Cache the result.
34319         (gl_FUNC_FLOORF): Use it.
34320         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34321         gl_FUNC_CEILF. Cache the result.
34322         (gl_FUNC_CEILF): Use it.
34323
34324 2007-10-28  Bruno Haible  <bruno@clisp.org>
34325
34326         * gnulib-tool: Allow specifying the LGPL version number through
34327         --lgpl=2 or --lgpl=3.
34328         (func_usage): Document --lgpl with argument.
34329         Handle --lgpl=... arguments.
34330         (func_import): Recognize also gl_LGPL calls with an argument. When
34331         --lgpl=2 is used and the module's license is just LGPL, report an
34332         error. Set sed_transform_lib_file according to the lgpl variable. In
34333         the generated files, use --lgpl or gl_LGPL invocations with argument,
34334         if necessary.
34335         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34336         an LGPv2+ license.
34337         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34338         gl_LGPL macro.
34339
34340 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34341             Bruno Haible  <bruno@clisp.org>
34342
34343         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34344         (u16_uctomb_aux): Likewise.
34345         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34346         !HAVE_INLINE.
34347         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34348
34349 2007-10-28  Bruno Haible  <bruno@clisp.org>
34350
34351         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34352         Invoke AM_GETTEXT_OPTION if it exists.
34353         * modules/vasprintf: Likewise.
34354         * modules/verror: Likewise.
34355         * modules/xprintf: Likewise.
34356         * modules/xvasprintf: Likewise.
34357
34358 2007-10-27  Ben Pfaff  <blp@gnu.org>
34359
34360         * lib/math.in.h: Define isfinite macro and prototypes for
34361         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34362         implementations.
34363         * m4/math_h.m4: New substitutions for isfinite module.
34364         * lib/isfinite.c: New file.
34365         * m4/isfinite.m4: New file.
34366         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34367         * modules/isfinite: New file.
34368         * modules/isfinite-tests: New file.
34369         * tests/tests-isfinite.c: New file.
34370         * doc/functions/isfinite.texi: Mention isfinite module.
34371         * MODULES.html.sh: Mention new module.
34372
34373 2007-10-27  Ben Pfaff  <blp@gnu.org>
34374
34375         Ralf Wildenhues reported that Tru64 4.0D declares the round
34376         functions but does not have definitions.
34377         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34378         cannot be found in any library, set the output variable to
34379         "missing" instead of "".
34380         * m4/round.m4: Also use our substitute if we cannot find round in
34381         any library, even if it is declared.
34382         * m4/roundf.m4: Likewise for roundf.
34383         * m4/roundl.m4: Likewise for roundl.
34384         * lib/math.in.h: Undefine roundf, round, roundl before defining
34385         their replacements, to allow for hypothetical systems where these
34386         may be defined as macros but not available in libraries.
34387
34388 2007-10-27  Bruno Haible  <bruno@clisp.org>
34389
34390         * doc/gnulib.texi: Invoke @firstparagraphindent.
34391         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34392         changes in gnulib.
34393         (Source changes): New section.
34394
34395 2007-10-26  Bruno Haible  <bruno@clisp.org>
34396
34397         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34398         borrowed from autoconf.
34399
34400 2007-10-26  Bruno Haible  <bruno@clisp.org>
34401
34402         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34403         strerror returned the empty string. Needed on HP-UX 11.00.
34404
34405 2007-10-24  Micah Cowan  <micah@cowan.name>
34406
34407         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34408         * build-aux/bootstrap: Remove support for now-unnecessary option,
34409         --cvs-user, and envvars CVS_USER, CVS_RSH.
34410
34411 2007-10-24  Jim Meyering  <meyering@redhat.com>
34412
34413         Avoid diagnostics from sha1sum when there is no cached checksum.
34414         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34415         if the po.s1 file hasn't been created yet.
34416
34417         * build-aux/bootstrap: Sync from coreutils:
34418         2007-10-24  Jim Meyering  <meyering@redhat.com>
34419         Get gnulib from the git repository, not from an obsolete cvs one.
34420         * build-aux/bootstrap: Suggestion from Micah Cowan.
34421         2007-10-04  Jim Meyering  <jim@meyering.net>
34422         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34423         (update_po_files): Work also when there are no .po files in po/.
34424
34425 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34426
34427         * README: Append ".git" to git and cg examples.
34428         Problem reported by Benoit Sigoure.
34429
34430 2007-10-23  Micah Cowan  <micah@cowan.name>
34431
34432         * users.txt: Add wget.
34433
34434 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34435
34436         Fix linking of some unistdio tests on FreeBSD.
34437         * modules/unistdio/u16-vsnprintf-tests
34438         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34439         * modules/unistdio/u16-vsprintf-tests
34440         (test_u16_vsnprintf1_LDADD): Likewise.
34441         * modules/unistdio/u32-vsnprintf-tests
34442         (test_u32_vsnprintf1_LDADD): Likewise.
34443         * modules/unistdio/u32-vsprintf-tests
34444         (test_u32_vsprintf1_LDADD): Likewise.
34445         * modules/unistdio/u8-vsnprintf-tests
34446         (test_u8_vsnprintf1_LDADD): Likewise.
34447         * modules/unistdio/u8-vsprintf-tests
34448         (test_u8_vsprintf1_LDADD): Likewise.
34449         * modules/unistdio/ulc-vsnprintf-tests
34450         (test_ulc_vsnprintf1_LDADD): Likewise.
34451         * modules/unistdio/ulc-vsprintf-tests
34452         (test_ulc_vsprintf1_LDADD): Likewise.
34453
34454         Fix linking of some uniconv tests on FreeBSD.
34455         * modules/uniconv/u16-conv-from-enc-tests
34456         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34457         * modules/uniconv/u16-conv-to-enc-tests
34458         (test_u16_conv_to_enc_LDADD): Likewise.
34459         * modules/uniconv/u16-strconv-from-enc-tests
34460         (test_u16_strconv_from_enc_LDADD): Likewise.
34461         * modules/uniconv/u16-strconv-to-enc-tests
34462         (test_u16_strconv_to_enc_LDADD): Likewise.
34463         * modules/uniconv/u32-conv-from-enc-tests
34464         (test_u32_conv_from_enc_LDADD): Likewise.
34465         * modules/uniconv/u32-conv-to-enc-tests
34466         (test_u32_conv_to_enc_LDADD): Likewise.
34467         * modules/uniconv/u32-strconv-from-enc-tests
34468         (test_u32_strconv_from_enc_LDADD): Likewise.
34469         * modules/uniconv/u32-strconv-to-enc-tests
34470         (test_u32_strconv_to_enc_LDADD): Likewise.
34471         * modules/uniconv/u8-conv-from-enc-tests
34472         (test_u8_conv_from_enc_LDADD): Likewise.
34473         * modules/uniconv/u8-conv-to-enc-tests
34474         (test_u8_conv_to_enc_LDADD): Likewise.
34475         * modules/uniconv/u8-strconv-from-enc-tests
34476         (test_u8_strconv_from_enc_LDADD): Likewise.
34477         * modules/uniconv/u8-strconv-to-enc-tests
34478         (test_u8_strconv_to_enc_LDADD): Likewise.
34479
34480 2007-10-22  Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34483         size.
34484
34485 2007-10-22  Eric Blake  <ebb9@byu.net>
34486
34487         Tweak x*printf documentation.
34488         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34489         variable name and comments.
34490         Suggested by Bruno Haible.
34491
34492 2007-10-22  Bruno Haible  <bruno@clisp.org>
34493
34494         * lib/acl.c (copy_acl): Fix file name in comment.
34495
34496 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34497
34498         Fix Tru64 problem with stdbool.h.
34499         * lib/stdbool.in.h (false, true):
34500         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34501         Don't declare as an enum in this situation; it runs afoul of Tru64.
34502         Problem reported by Steven M. Schweda in
34503         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34504
34505 2007-10-22  Eric Blake  <ebb9@byu.net>
34506
34507         Also wrap vf?printf.
34508         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34509         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34510         (xvprintf, xvfprintf): New functions.
34511
34512 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34513
34514         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34515         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34516
34517         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34518         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34519
34520 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34521
34522         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34523         by Bruno Haible.
34524
34525 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34526
34527         * lib/getloadavg.c
34528         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34529         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34530
34531         * tests/test-i-ring.c: Work for C89.
34532
34533 2007-10-22  Bruno Haible  <bruno@clisp.org>
34534
34535         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34536         -1u, in preprocessor expression, so that we don't test for the bug
34537         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34539
34540 2007-10-22  Eric Blake  <ebb9@byu.net>
34541
34542         * tests/test-yesno.sh: Silence stderr during test.
34543
34544 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34545
34546         * modules/crypto/gc-camellia: New file.
34547
34548         * m4/gc-camellia.m4: New file.
34549
34550         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
34551
34552         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
34553
34554 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34555
34556         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
34557         --help to stdout.  Reported by sms@antinode.org (Steven
34558         M. Schweda).
34559
34560 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34561
34562         * users.txt: Fix link to libksba.
34563
34564 2007-10-21  Ben Pfaff  <blp@gnu.org>
34565
34566         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
34567         round.c roundf implementation that depends on floorf and ceilf to
34568         be tested unconditionally.
34569
34570 2007-10-21  Ben Pfaff  <blp@gnu.org>
34571
34572         * m4/check-libm-func.m4: Removed.
34573         * m4/check-math-lib.m4: New file.
34574         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
34575         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
34576         definition and lack of AC_LIBOBJ([roundf]).
34577         * m4/roundl.m4: Ditto, and similarly for roundl.
34578         * modules/round: Reference new m4 file.
34579         * modules/roundf: Ditto.
34580         * modules/roundl: Ditto.
34581         * tests/test-round2.c (main): Use ROUND instead of round.
34582         Bug report from Bruno Haible.
34583
34584 2007-10-21  Bruno Haible  <bruno@clisp.org>
34585
34586         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
34587         context.
34588
34589 2007-10-21  Bruno Haible  <bruno@clisp.org>
34590
34591         * tests/test-wcwidth.c (main): Allow negative result for some control
34592         characters.
34593
34594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
34595         Needed on OSF/1 5.1.
34596
34597 2007-10-21  Bruno Haible  <bruno@clisp.org>
34598
34599         * tests/test-floorf1.c: Include isnanf.h.
34600         (main): Use isnanf() instead of isnan().
34601         * tests/test-ceilf1.c: Include isnanf.h.
34602         (main): Use isnanf() instead of isnan().
34603         * tests/test-truncf1.c: Include isnanf.h.
34604         (main): Use isnanf() instead of isnan().
34605         * tests/test-roundf1.c: Include isnanf.h.
34606         (main): Use isnanf() instead of isnan().
34607
34608 2007-10-21  Eric Blake  <ebb9@byu.net>
34609
34610         * users.txt: Update URL for m4.
34611
34612 2007-10-21  Bruno Haible  <bruno@clisp.org>
34613
34614         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
34615
34616 2007-10-21  Bruno Haible  <bruno@clisp.org>
34617
34618         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
34619         Git's management files if the CVS files are not present.
34620
34621 2007-10-20  Bruno Haible  <bruno@clisp.org>
34622
34623         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
34624         gcc-3.4.x.
34625
34626 2007-10-20  Ben Pfaff  <blp@gnu.org>
34627
34628         * lib/math.in.h: Declare round, roundf, roundl if we are providing
34629         implementations.
34630         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
34631         * lib/round.c: New file.
34632         * lib/roundf.c: New file.
34633         * lib/roundl.c: New file.
34634         * m4/round.m4: New file.
34635         * m4/roundf.m4: New file.
34636         * m4/roundl.m4: New file.
34637         * m4/check-libm-func-m4: New file.
34638         * modules/math: Replace round, roundf, roundl related @VARS@ in
34639         math.in.h.
34640         * modules/round: New file.
34641         * modules/round-tests: New file.
34642         * modules/roundf: New file.
34643         * modules/roundf-tests: New file.
34644         * modules/roundl: New file.
34645         * modules/roundl-tests: New file.
34646         * tests/test-round1.c: New file.
34647         * tests/test-round2.c: New file.
34648         * tests/test-roundf1.c: New file.
34649         * tests/test-roundf2.c: New file.
34650         * tests/test-roundl.c: New file.
34651         * doc/functions/round.texi: Mention round module.
34652         * doc/functions/roundf.texi: Mention roundf module.
34653         * doc/functions/roundl.texi: Mention roundl module.
34654         * MODULES.html.sh: Mention new modules.
34655         Thanks to Bruno Haible for suggestions.
34656
34657 2007-10-20  Jim Meyering  <meyering@redhat.com>
34658
34659         * lib/xprintf.c: Include <config.h> unconditionally.
34660
34661         Change xprintf's license to GPL.
34662         * modules/xprintf (License): s/LGPL/GPL/, since this module
34663         depends on modules (exit and exitfail) which are GPL.
34664         Suggestion from Bruno Haible.
34665
34666         xprintf fixes.
34667         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
34668         Use a clearer diagnostic.
34669         Patch from Bruno Haible.
34670
34671 2007-10-20  Bruno Haible  <bruno@clisp.org>
34672
34673         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
34674         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
34675         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34676
34677 2007-10-20  Bruno Haible  <bruno@clisp.org>
34678
34679         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
34680         precision in the comparison result > x - 1 or similar.
34681         * tests/test-ceilf2.c (correct_result_p): Likewise.
34682         * tests/test-truncf2.c (correct_result_p): Likewise.
34683         * tests/test-trunc2.c (correct_result_p): Likewise.
34684         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34685
34686 2007-10-20  Bruno Haible  <bruno@clisp.org>
34687
34688         * modules/ceil: New file.
34689         * m4/ceil.m4: New file.
34690         * doc/functions/ceil.texi: Mention the 'ceil' module.
34691
34692 2007-10-20  Bruno Haible  <bruno@clisp.org>
34693
34694         * modules/floor: New file.
34695         * m4/floor.m4: New file.
34696         * doc/functions/floor.texi: Mention the 'floor' module.
34697
34698 2007-10-20  Bruno Haible  <bruno@clisp.org>
34699
34700         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
34701         of %a.
34702         * modules/floorf-tests (Depends-on): Likewise.
34703         * modules/truncf-tests (Depends-on): Likewise.
34704         * modules/trunc-tests (Depends-on): Likewise.
34705         Reported by Ben Pfaff.
34706
34707 2007-10-19  Jim Meyering  <meyering@redhat.com>
34708
34709         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
34710         Don't bother testing specific errno values.  Just test ferror.
34711
34712         New module: xprintf
34713         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
34714
34715 2007-10-19  Bruno Haible  <bruno@clisp.org>
34716
34717         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
34718         syntax.
34719         * modules/javaexec (Makefile.am): Likewise.
34720         * modules/relocatable-prog (Makefile.am): Likewise.
34721         Suggested by Jim Meyering.
34722
34723 2007-10-18  Bruno Haible  <bruno@clisp.org>
34724
34725         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
34726         Reported by Jim Meyering.
34727
34728 2007-10-18  Eric Blake  <ebb9@byu.net>
34729
34730         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
34731
34732 2007-10-18  Bruno Haible  <bruno@clisp.org>
34733
34734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
34735         the format string into writable memory. Needed in Fortify conditions.
34736
34737 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
34738             Bruno Haible  <bruno@clisp.org>
34739
34740         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
34741         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
34742         * modules/trim (Depends-on): Add mbchar.
34743         (configure.ac): Add gl_FUNC_MBRTOWC.
34744         (Makefile.am): Augment lib_SOURCES.
34745
34746 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
34747
34748         Modify glob.c to use fstatat and dirfd, to simplify it.
34749         Suggested by Eric Blake.
34750         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
34751         Don't include <stdbool.h>; not used.
34752         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
34753         (link_exists_p): Simplify implementation, since we can now assume
34754         dirfd and fstatat.
34755         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
34756
34757 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34758
34759         * gnulib-tool (func_get_dependencies): Fix sed script to
34760         match only tests.
34761
34762 2007-10-17  Bruno Haible  <bruno@clisp.org>
34763
34764         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
34765         allow locale names without encoding suffix.
34766         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34767         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34768
34769 2007-10-16  Bruno Haible  <bruno@clisp.org>
34770
34771         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
34772         * lib/getgroups.c (getgroups): Likewise.
34773         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
34774
34775 2007-10-16  Bruno Haible  <bruno@clisp.org>
34776
34777         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
34778         * modules/malloc-posix (License): Likewise.
34779         * modules/realloc-posix (License): Likewise.
34780         * modules/calloc-posix (License): Likewise.
34781         * modules/intprops (License): Change from GPL to LGPL, with
34782         Paul Eggert's approval.
34783
34784 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34785
34786         Merge glibc changes into lib/glob.c.
34787
34788         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
34789         2007-10-15 04:59:03 UTC.  Here are the changes:
34790
34791         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
34792
34793         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
34794
34795         * lib/glob.c: Add some branch prediction throughout.
34796
34797         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
34798
34799         [BZ #5103]
34800         * lib/glob.c (glob): Recognize patterns starting \/.
34801
34802         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
34803
34804         [BZ #3996]
34805         * lib/glob.c (attribute_hidden): Define if not defined.
34806         (glob): Unescape dirname, filename or username when needed and not
34807         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
34808         is NULL.  Handle unescaped [ in pattern without closing ].
34809         Don't pass GLOB_CHECK down to recursive glob for directories.
34810         (__glob_pattern_type): New function.
34811         (__glob_pattern_p): Implement using __glob_pattern_type.
34812         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
34813         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
34814         Remove unreachable code.
34815
34816         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
34817
34818         * lib/glob.c (glob_in_dir): Add some comments and asserts to
34819         explain why there are no leaks.
34820
34821         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
34822
34823         [BZ #3253]
34824         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
34825         time, rather allocate increasingly bigger arrays of pointers, if
34826         possible with alloca, if too large with malloc.
34827
34828 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34829
34830         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
34831         Problem reported by H.Merijn Brand in
34832         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
34833         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
34834         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
34835
34836 2007-10-15  Bruno Haible  <bruno@clisp.org>
34837
34838         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
34839         with explicit rpl_ prefix.
34840         * lib/fopen.c (fopen): Likewise.
34841         * lib/freopen.c (freopen): Likewise.
34842         * lib/iconv.c (iconv): Likewise.
34843         * lib/iconv_close.c (iconv_close): Likewise.
34844
34845 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34846
34847         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
34848
34849 2007-10-15  Bruno Haible  <bruno@clisp.org>
34850
34851         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
34852         <stddef.h> instead of <stdlib.h> since we only need NULL.
34853         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34854
34855 2007-10-15  Bruno Haible  <bruno@clisp.org>
34856
34857         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
34858         Replace paragraph talking about LIBOBJS.
34859         Reported by Colin Watson <cjwatson@debian.org>.
34860
34861 2007-10-15  Bruno Haible  <bruno@clisp.org>
34862
34863         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
34864         <stdlib.h> before using NULL.
34865
34866 2007-10-15  Simon Josefsson  <simon@josefsson.org>
34867
34868         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
34869         Reported by Albert Chin <china@thewrittenword.com>.
34870
34871 2007-10-14  Bruno Haible  <bruno@clisp.org>
34872
34873         * modules/iconv_open-utf-tests: New file.
34874         * tests/test-iconv-utf.c: New file.
34875
34876         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
34877         * modules/iconv_open-utf: New file.
34878         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
34879         (iconv, iconv_close): New declarations.
34880         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
34881         be defined.
34882         (iconv_open): Add special handling of conversion between UTF-8 and
34883         UTF-{16,32}{BE,LE}.
34884         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
34885         * lib/iconv_close.c: New file.
34886         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
34887         gl_FUNC_ICONV_OPEN.
34888         (gl_FUNC_ICONV_OPEN): Use it.
34889         (gl_FUNC_ICONV_OPEN_UTF): New macro.
34890         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
34891         and REPLACE_ICONV_UTF.
34892         * modules/iconv_open (Depends-on): Add c-strcase.
34893         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
34894         ICONV_CONST.
34895         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
34896
34897 2007-10-13  Albert Chin  <china@thewrittenword.com>
34898             Bruno Haible  <bruno@clisp.org>
34899
34900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
34901         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
34902
34903 2007-10-13  Bruno Haible  <bruno@clisp.org>
34904
34905         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
34906         defined, use the ISO C99 inline semantics.
34907         * lib/argp.h (ARGP_EI): Likewise.
34908
34909 2007-10-13  Bruno Haible  <bruno@clisp.org>
34910
34911         Handle 'inline' change in gcc 4.3.0.
34912         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
34913         argp_fmtstream_write, argp_fmtstream_set_lmargin,
34914         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
34915         argp_fmtstream_point): Disable 'extern' declaration if the function
34916         definition is going to be provided inline.
34917         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
34918         semantics, not the ISO C99 inline semantics.
34919         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
34920         'extern' declaration if the function definition is going to be provided
34921         inline.
34922         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
34923         the GNU C inline semantics, not the ISO C99 inline semantics. With
34924         GCC 4.2, avoid a warning.
34925
34926 2007-10-13  Bruno Haible  <bruno@clisp.org>
34927
34928         * lib/freading.h (freading): Enable the use of __freading for
34929         glibc >= 2.7.
34930         * lib/freading.c (freading): Likewise.
34931
34932 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34933
34934         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
34935         "warning: C99 inline functions are not supported; using GNU89".
34936
34937 2007-10-12  Bruno Haible  <bruno@clisp.org>
34938
34939         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
34940         of 2.
34941         * tests/test-ceilf2.c: New file.
34942         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
34943
34944         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
34945         * modules/ceilf-tests: Update.
34946
34947 2007-10-12  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
34950         of 2.
34951         * tests/test-floorf2.c: New file.
34952         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
34953
34954         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
34955         * modules/floorf-tests: Update.
34956
34957 2007-10-12  Bruno Haible  <bruno@clisp.org>
34958
34959         * tests/test-trunc2.c: New file.
34960         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
34961
34962         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
34963         * modules/trunc-tests: Update.
34964
34965 2007-10-12  Bruno Haible  <bruno@clisp.org>
34966
34967         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
34968         of 2.
34969         * tests/test-truncf2.c: New file.
34970         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
34971
34972         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
34973         * modules/truncf-tests: Update.
34974
34975 2007-10-11  Eric Blake  <ebb9@byu.net>
34976
34977         Don't claim strerror is broken on Interix.
34978         * doc/functions/strerror.texi (strerror): Known broken systems are
34979         now Solaris 8, and not Interix.
34980         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
34981         Interix on cross-compile.
34982         Reported by Martin Koeppe in
34983         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
34984
34985 2007-10-11  Bruno Haible  <bruno@clisp.org>
34986
34987         * modules/i-ring-tests: New file.
34988         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
34989         instead of assert.
34990
34991 2007-10-11  Bruno Haible  <bruno@clisp.org>
34992
34993         * modules/filenamecat-tests: New file.
34994         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
34995         * lib/filenamecat.c: Remove test code.
34996
34997 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
34998
34999         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35000
35001         * lib/strerror.c: Include <string.h> always, to test interface,
35002         and to remove the need for the dummy.
35003         Include intprops.h to compute width instead of doing it ourselves
35004         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35005         (strerror): Define it to return NULL if there's no system strerror.
35006         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35007         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35008         ancient pre-strerror Unix systems well any more.  Saying "unknown
35009         system error" is enough.
35010         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35011         simpler strerror.c implementation.
35012         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35013         Simplify the tests to reflect the simpler strerror implementation.
35014         * modules/strerror (Depends-on): Add intprops.
35015
35016 2007-10-09  Eric Blake  <ebb9@byu.net>
35017
35018         Silence test-fpending.
35019         * modules/fpending-tests (Files): Add wrapper script.
35020         * tests/test-fpending.sh: New file.
35021
35022 2007-10-09  Bruno Haible  <bruno@clisp.org>
35023
35024         * MODULES.html.sh (func_module): Don't create a hyperlink for
35025         function names like 'printf_frexp'.
35026         (Misc): Add crc, memxor.
35027         (Characteristics of floating types): New section.
35028         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35029         isnanf-nolibm, signbit, trunc, truncf, truncl.
35030         (Enhancements for ISO C 99 functions): New subsection Input/output.
35031         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35032         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35033         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35034         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35035         (Enhancements for POSIX:2001 functions): Add chdir-long.
35036         (File system functions): Add areadlink, chdir-safer, read-file.
35037         Remove cycle-check.
35038         (File system as inode set): New section.
35039         (Date and time): Add gethrxtime.
35040         (Multithreading): Add openmp.
35041         (Internationalization functions): Add localename.
35042         (Unicode string functions): Add unistr/u*-mbsnlen.
35043         (Support for maintaining and releasing projects): Add git-version-gen.
35044         (Lone files): Remove directories.
35045
35046 2007-10-08  Ben Pfaff  <blp@gnu.org>
35047
35048         * lib/xmalloca.h: Fix typo in comment.
35049
35050 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35051
35052         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35053         when avoiding problems with integer overflow.  Use a portable test
35054         instead.
35055
35056 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35057
35058         * modules/dummy (License): Change to LGPLv2+.
35059         * modules/float (License): Likewise
35060         * modules/realloc (License): Likewise
35061         * modules/stdlib (License): Likewise
35062
35063 2007-10-07  Bruno Haible  <bruno@clisp.org>
35064
35065         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35066         * floor.c (TWO_MANT_DIG): Likewise.
35067         * ceil.c (TWO_MANT_DIG): Likewise.
35068         Reported by Ben Pfaff.
35069
35070 2007-10-07  Bruno Haible  <bruno@clisp.org>
35071
35072         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35073         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35074         * lib/frexp.c (FUNC): Likewise.
35075         * lib/printf-frexp.h (printf_frexp): Likewise.
35076         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35077         * lib/printf-frexp.c (FUNC): Likewise.
35078         Suggested by Jim Meyering.
35079
35080 2007-10-07  Jim Meyering  <meyering@redhat.com>
35081
35082         Make xnanosleep's integer overflow test more robust.
35083         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35084         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35085
35086 2007-10-07  Bruno Haible  <bruno@clisp.org>
35087
35088         * NEWS: Mention the license change.
35089
35090         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35091         abbreviations in the modules files.
35092
35093         Change copyright notice from GPLv2+ to GPLv3+.
35094         * README: Change copyright notice.
35095         * MODULES.html.sh: Likewise.
35096         * build-aux/bootstrap.conf: Likewise.
35097         * build-aux/config.libpath: Likewise.
35098         * build-aux/csharpcomp.sh.in: Likewise.
35099         * build-aux/csharpexec.sh.in: Likewise.
35100         * build-aux/install-reloc: Likewise.
35101         * build-aux/javacomp.sh.in: Likewise.
35102         * build-aux/javaexec.sh.in: Likewise.
35103         * build-aux/ldd.sh.in: Likewise.
35104         * build-aux/reloc-ldflags: Likewise.
35105         * build-aux/relocatable.sh.in: Likewise.
35106         * build-aux/x-to-1.in: Likewise.
35107         * check-module: Likewise.
35108         * config/srclistvars.sh: Likewise.
35109         * gnulib-tool: Likewise.
35110         * lib/acl-internal.h: Likewise.
35111         * lib/acl.c: Likewise.
35112         * lib/acl.h: Likewise.
35113         * lib/acl_entries.c: Likewise.
35114         * lib/areadlink-with-size.c: Likewise.
35115         * lib/areadlink.c: Likewise.
35116         * lib/areadlink.h: Likewise.
35117         * lib/argmatch.c: Likewise.
35118         * lib/argmatch.h: Likewise.
35119         * lib/argp-ba.c: Likewise.
35120         * lib/argp-eexst.c: Likewise.
35121         * lib/argp-fmtstream.c: Likewise.
35122         * lib/argp-fmtstream.h: Likewise.
35123         * lib/argp-fs-xinl.c: Likewise.
35124         * lib/argp-help.c: Likewise.
35125         * lib/argp-namefrob.h: Likewise.
35126         * lib/argp-parse.c: Likewise.
35127         * lib/argp-pin.c: Likewise.
35128         * lib/argp-pv.c: Likewise.
35129         * lib/argp-pvh.c: Likewise.
35130         * lib/argp-xinl.c: Likewise.
35131         * lib/argp.h: Likewise.
35132         * lib/at-func.c: Likewise.
35133         * lib/atanl.c: Likewise.
35134         * lib/backupfile.c: Likewise.
35135         * lib/backupfile.h: Likewise.
35136         * lib/basename.c: Likewise.
35137         * lib/binary-io.h: Likewise.
35138         * lib/byteswap.in.h: Likewise.
35139         * lib/c-stack.c: Likewise.
35140         * lib/c-stack.h: Likewise.
35141         * lib/c-strcasestr.c: Likewise.
35142         * lib/c-strcasestr.h: Likewise.
35143         * lib/c-strstr.c: Likewise.
35144         * lib/c-strstr.h: Likewise.
35145         * lib/c-strtod.c: Likewise.
35146         * lib/calloc.c: Likewise.
35147         * lib/canon-host.c: Likewise.
35148         * lib/canon-host.h: Likewise.
35149         * lib/canonicalize-lgpl.c: Likewise.
35150         * lib/canonicalize.c: Likewise.
35151         * lib/canonicalize.h: Likewise.
35152         * lib/ceil.c: Likewise.
35153         * lib/ceilf.c: Likewise.
35154         * lib/ceill.c: Likewise.
35155         * lib/chdir-long.c: Likewise.
35156         * lib/chdir-long.h: Likewise.
35157         * lib/chdir-safer.c: Likewise.
35158         * lib/chdir-safer.h: Likewise.
35159         * lib/chown.c: Likewise.
35160         * lib/classpath.c: Likewise.
35161         * lib/classpath.h: Likewise.
35162         * lib/clean-temp.c: Likewise.
35163         * lib/clean-temp.h: Likewise.
35164         * lib/cloexec.c: Likewise.
35165         * lib/close-stream.c: Likewise.
35166         * lib/closein.c: Likewise.
35167         * lib/closein.h: Likewise.
35168         * lib/closeout.c: Likewise.
35169         * lib/closeout.h: Likewise.
35170         * lib/concat-filename.c: Likewise.
35171         * lib/copy-file.c: Likewise.
35172         * lib/copy-file.h: Likewise.
35173         * lib/count-one-bits.h: Likewise.
35174         * lib/crc.c: Likewise.
35175         * lib/crc.h: Likewise.
35176         * lib/creat-safer.c: Likewise.
35177         * lib/csharpcomp.c: Likewise.
35178         * lib/csharpcomp.h: Likewise.
35179         * lib/csharpexec.c: Likewise.
35180         * lib/csharpexec.h: Likewise.
35181         * lib/cycle-check.c: Likewise.
35182         * lib/cycle-check.h: Likewise.
35183         * lib/diacrit.c: Likewise.
35184         * lib/diacrit.h: Likewise.
35185         * lib/diffseq.h: Likewise.
35186         * lib/dirchownmod.c: Likewise.
35187         * lib/dirent.in.h: Likewise.
35188         * lib/dirfd.c: Likewise.
35189         * lib/dirfd.h: Likewise.
35190         * lib/dirname.c: Likewise.
35191         * lib/dirname.h: Likewise.
35192         * lib/dummy.c: Likewise.
35193         * lib/dup-safer.c: Likewise.
35194         * lib/dup2.c: Likewise.
35195         * lib/eealloc.h: Likewise.
35196         * lib/error.c: Likewise.
35197         * lib/error.h: Likewise.
35198         * lib/euidaccess.c: Likewise.
35199         * lib/exclude.c: Likewise.
35200         * lib/exclude.h: Likewise.
35201         * lib/execute.c: Likewise.
35202         * lib/execute.h: Likewise.
35203         * lib/exitfail.c: Likewise.
35204         * lib/exitfail.h: Likewise.
35205         * lib/expl.c: Likewise.
35206         * lib/fatal-signal.c: Likewise.
35207         * lib/fatal-signal.h: Likewise.
35208         * lib/fbufmode.c: Likewise.
35209         * lib/fbufmode.h: Likewise.
35210         * lib/fchdir.c: Likewise.
35211         * lib/fchmodat.c: Likewise.
35212         * lib/fchownat.c: Likewise.
35213         * lib/fcntl--.h: Likewise.
35214         * lib/fcntl-safer.h: Likewise.
35215         * lib/fcntl.in.h: Likewise.
35216         * lib/fd-safer.c: Likewise.
35217         * lib/fflush.c: Likewise.
35218         * lib/file-has-acl.c: Likewise.
35219         * lib/file-set.c: Likewise.
35220         * lib/file-type.c: Likewise.
35221         * lib/file-type.h: Likewise.
35222         * lib/fileblocks.c: Likewise.
35223         * lib/filemode.c: Likewise.
35224         * lib/filemode.h: Likewise.
35225         * lib/filename.h: Likewise.
35226         * lib/filenamecat.c: Likewise.
35227         * lib/filenamecat.h: Likewise.
35228         * lib/findprog.c: Likewise.
35229         * lib/findprog.h: Likewise.
35230         * lib/float.in.h: Likewise.
35231         * lib/floor.c: Likewise.
35232         * lib/floorf.c: Likewise.
35233         * lib/floorl.c: Likewise.
35234         * lib/fopen-safer.c: Likewise.
35235         * lib/fopen.c: Likewise.
35236         * lib/fpending.c: Likewise.
35237         * lib/fpending.h: Likewise.
35238         * lib/fprintf.c: Likewise.
35239         * lib/fprintftime.h: Likewise.
35240         * lib/fpucw.h: Likewise.
35241         * lib/fpurge.c: Likewise.
35242         * lib/fpurge.h: Likewise.
35243         * lib/freadable.c: Likewise.
35244         * lib/freadable.h: Likewise.
35245         * lib/freadahead.c: Likewise.
35246         * lib/freadahead.h: Likewise.
35247         * lib/freading.c: Likewise.
35248         * lib/freading.h: Likewise.
35249         * lib/free.c: Likewise.
35250         * lib/freopen.c: Likewise.
35251         * lib/frexp.c: Likewise.
35252         * lib/frexpl.c: Likewise.
35253         * lib/fseek.c: Likewise.
35254         * lib/fseterr.c: Likewise.
35255         * lib/fseterr.h: Likewise.
35256         * lib/fstatat.c: Likewise.
35257         * lib/fstrcmp.c: Likewise.
35258         * lib/fstrcmp.h: Likewise.
35259         * lib/fsusage.c: Likewise.
35260         * lib/fsusage.h: Likewise.
35261         * lib/ftell.c: Likewise.
35262         * lib/ftello.c: Likewise.
35263         * lib/fts-cycle.c: Likewise.
35264         * lib/fts.c: Likewise.
35265         * lib/fts_.h: Likewise.
35266         * lib/full-read.c: Likewise.
35267         * lib/full-read.h: Likewise.
35268         * lib/full-write.c: Likewise.
35269         * lib/full-write.h: Likewise.
35270         * lib/fwritable.c: Likewise.
35271         * lib/fwritable.h: Likewise.
35272         * lib/fwriteerror.c: Likewise.
35273         * lib/fwriteerror.h: Likewise.
35274         * lib/fwriting.c: Likewise.
35275         * lib/fwriting.h: Likewise.
35276         * lib/gcd.c: Likewise.
35277         * lib/gcd.h: Likewise.
35278         * lib/getcwd.c: Likewise.
35279         * lib/getdate.h: Likewise.
35280         * lib/getdate.y: Likewise.
35281         * lib/getdomainname.c: Likewise.
35282         * lib/getdomainname.h: Likewise.
35283         * lib/getgroups.c: Likewise.
35284         * lib/gethostname.c: Likewise.
35285         * lib/gethrxtime.c: Likewise.
35286         * lib/gethrxtime.h: Likewise.
35287         * lib/getloadavg.c: Likewise.
35288         * lib/getndelim2.c: Likewise.
35289         * lib/getndelim2.h: Likewise.
35290         * lib/getnline.c: Likewise.
35291         * lib/getnline.h: Likewise.
35292         * lib/getopt.c: Likewise.
35293         * lib/getopt.in.h: Likewise.
35294         * lib/getopt1.c: Likewise.
35295         * lib/getopt_int.h: Likewise.
35296         * lib/getpagesize.h: Likewise.
35297         * lib/getsubopt.c: Likewise.
35298         * lib/gettime.c: Likewise.
35299         * lib/getugroups.c: Likewise.
35300         * lib/getugroups.h: Likewise.
35301         * lib/getusershell.c: Likewise.
35302         * lib/gl_anyavltree_list1.h: Likewise.
35303         * lib/gl_anyavltree_list2.h: Likewise.
35304         * lib/gl_anyhash_list1.h: Likewise.
35305         * lib/gl_anyhash_list2.h: Likewise.
35306         * lib/gl_anylinked_list1.h: Likewise.
35307         * lib/gl_anylinked_list2.h: Likewise.
35308         * lib/gl_anyrbtree_list1.h: Likewise.
35309         * lib/gl_anyrbtree_list2.h: Likewise.
35310         * lib/gl_anytree_list1.h: Likewise.
35311         * lib/gl_anytree_list2.h: Likewise.
35312         * lib/gl_anytree_oset.h: Likewise.
35313         * lib/gl_anytreehash_list1.h: Likewise.
35314         * lib/gl_anytreehash_list2.h: Likewise.
35315         * lib/gl_array_list.c: Likewise.
35316         * lib/gl_array_list.h: Likewise.
35317         * lib/gl_array_oset.c: Likewise.
35318         * lib/gl_array_oset.h: Likewise.
35319         * lib/gl_avltree_list.c: Likewise.
35320         * lib/gl_avltree_list.h: Likewise.
35321         * lib/gl_avltree_oset.c: Likewise.
35322         * lib/gl_avltree_oset.h: Likewise.
35323         * lib/gl_avltreehash_list.c: Likewise.
35324         * lib/gl_avltreehash_list.h: Likewise.
35325         * lib/gl_carray_list.c: Likewise.
35326         * lib/gl_carray_list.h: Likewise.
35327         * lib/gl_linked_list.c: Likewise.
35328         * lib/gl_linked_list.h: Likewise.
35329         * lib/gl_linkedhash_list.c: Likewise.
35330         * lib/gl_linkedhash_list.h: Likewise.
35331         * lib/gl_list.c: Likewise.
35332         * lib/gl_list.h: Likewise.
35333         * lib/gl_oset.c: Likewise.
35334         * lib/gl_oset.h: Likewise.
35335         * lib/gl_rbtree_list.c: Likewise.
35336         * lib/gl_rbtree_list.h: Likewise.
35337         * lib/gl_rbtree_oset.c: Likewise.
35338         * lib/gl_rbtree_oset.h: Likewise.
35339         * lib/gl_rbtreehash_list.c: Likewise.
35340         * lib/gl_rbtreehash_list.h: Likewise.
35341         * lib/gl_sublist.c: Likewise.
35342         * lib/gl_sublist.h: Likewise.
35343         * lib/group-member.c: Likewise.
35344         * lib/group-member.h: Likewise.
35345         * lib/hard-locale.c: Likewise.
35346         * lib/hard-locale.h: Likewise.
35347         * lib/hash-pjw.c: Likewise.
35348         * lib/hash-pjw.h: Likewise.
35349         * lib/hash-triple.c: Likewise.
35350         * lib/hash.c: Likewise.
35351         * lib/hash.h: Likewise.
35352         * lib/human.c: Likewise.
35353         * lib/human.h: Likewise.
35354         * lib/i-ring.c: Likewise.
35355         * lib/i-ring.h: Likewise.
35356         * lib/idcache.c: Likewise.
35357         * lib/imaxabs.c: Likewise.
35358         * lib/imaxdiv.c: Likewise.
35359         * lib/inet_pton.c: Likewise.
35360         * lib/inet_pton.h: Likewise.
35361         * lib/intprops.h: Likewise.
35362         * lib/inttostr.c: Likewise.
35363         * lib/inttostr.h: Likewise.
35364         * lib/inttypes.in.h: Likewise.
35365         * lib/isapipe.c: Likewise.
35366         * lib/isdir.c: Likewise.
35367         * lib/isnan.c: Likewise.
35368         * lib/isnan.h: Likewise.
35369         * lib/isnanf.c: Likewise.
35370         * lib/isnanf.h: Likewise.
35371         * lib/isnanl-nolibm.h: Likewise.
35372         * lib/isnanl.c: Likewise.
35373         * lib/isnanl.h: Likewise.
35374         * lib/javacomp.c: Likewise.
35375         * lib/javacomp.h: Likewise.
35376         * lib/javaexec.c: Likewise.
35377         * lib/javaexec.h: Likewise.
35378         * lib/javaversion.c: Likewise.
35379         * lib/javaversion.h: Likewise.
35380         * lib/javaversion.java: Likewise.
35381         * lib/lbrkprop.h: Likewise.
35382         * lib/lchmod.h: Likewise.
35383         * lib/lchown.c: Likewise.
35384         * lib/ldexpl.c: Likewise.
35385         * lib/linebreak.c: Likewise.
35386         * lib/linebreak.h: Likewise.
35387         * lib/linebuffer.c: Likewise.
35388         * lib/linebuffer.h: Likewise.
35389         * lib/locale.in.h: Likewise.
35390         * lib/logl.c: Likewise.
35391         * lib/long-options.c: Likewise.
35392         * lib/long-options.h: Likewise.
35393         * lib/lstat.c: Likewise.
35394         * lib/lstat.h: Likewise.
35395         * lib/math.in.h: Likewise.
35396         * lib/mbchar.c: Likewise.
35397         * lib/mbchar.h: Likewise.
35398         * lib/mbfile.h: Likewise.
35399         * lib/mbiter.h: Likewise.
35400         * lib/mbscasecmp.c: Likewise.
35401         * lib/mbscasestr.c: Likewise.
35402         * lib/mbschr.c: Likewise.
35403         * lib/mbscspn.c: Likewise.
35404         * lib/mbslen.c: Likewise.
35405         * lib/mbsncasecmp.c: Likewise.
35406         * lib/mbsnlen.c: Likewise.
35407         * lib/mbspbrk.c: Likewise.
35408         * lib/mbspcasecmp.c: Likewise.
35409         * lib/mbsrchr.c: Likewise.
35410         * lib/mbssep.c: Likewise.
35411         * lib/mbsspn.c: Likewise.
35412         * lib/mbsstr.c: Likewise.
35413         * lib/mbstok_r.c: Likewise.
35414         * lib/mbswidth.c: Likewise.
35415         * lib/mbswidth.h: Likewise.
35416         * lib/mbuiter.h: Likewise.
35417         * lib/memcasecmp.c: Likewise.
35418         * lib/memcasecmp.h: Likewise.
35419         * lib/memchr.c: Likewise.
35420         * lib/memcmp.c: Likewise.
35421         * lib/memcoll.c: Likewise.
35422         * lib/memcoll.h: Likewise.
35423         * lib/memcpy.c: Likewise.
35424         * lib/memrchr.c: Likewise.
35425         * lib/mkancesdirs.c: Likewise.
35426         * lib/mkdir-p.c: Likewise.
35427         * lib/mkdir-p.h: Likewise.
35428         * lib/mkdir.c: Likewise.
35429         * lib/mkdirat.c: Likewise.
35430         * lib/mkdtemp.c: Likewise.
35431         * lib/mkstemp-safer.c: Likewise.
35432         * lib/mkstemp.c: Likewise.
35433         * lib/modechange.c: Likewise.
35434         * lib/modechange.h: Likewise.
35435         * lib/mountlist.c: Likewise.
35436         * lib/mountlist.h: Likewise.
35437         * lib/mpsort.c: Likewise.
35438         * lib/nanosleep.c: Likewise.
35439         * lib/obstack.c: Likewise.
35440         * lib/obstack.h: Likewise.
35441         * lib/open-safer.c: Likewise.
35442         * lib/open.c: Likewise.
35443         * lib/openat-die.c: Likewise.
35444         * lib/openat-priv.h: Likewise.
35445         * lib/openat-proc.c: Likewise.
35446         * lib/openat.c: Likewise.
35447         * lib/openat.h: Likewise.
35448         * lib/pagealign_alloc.c: Likewise.
35449         * lib/pagealign_alloc.h: Likewise.
35450         * lib/physmem.c: Likewise.
35451         * lib/physmem.h: Likewise.
35452         * lib/pipe-safer.c: Likewise.
35453         * lib/pipe.c: Likewise.
35454         * lib/pipe.h: Likewise.
35455         * lib/posixtm.c: Likewise.
35456         * lib/posixtm.h: Likewise.
35457         * lib/posixver.c: Likewise.
35458         * lib/printf-frexp.c: Likewise.
35459         * lib/printf-frexp.h: Likewise.
35460         * lib/printf-frexpl.c: Likewise.
35461         * lib/printf-frexpl.h: Likewise.
35462         * lib/printf.c: Likewise.
35463         * lib/progname.c: Likewise.
35464         * lib/progname.h: Likewise.
35465         * lib/progreloc.c: Likewise.
35466         * lib/putenv.c: Likewise.
35467         * lib/quote.c: Likewise.
35468         * lib/quote.h: Likewise.
35469         * lib/quotearg.c: Likewise.
35470         * lib/quotearg.h: Likewise.
35471         * lib/raise.c: Likewise.
35472         * lib/readline.c: Likewise.
35473         * lib/readline.h: Likewise.
35474         * lib/readlink.c: Likewise.
35475         * lib/readtokens.c: Likewise.
35476         * lib/readtokens.h: Likewise.
35477         * lib/readtokens0.c: Likewise.
35478         * lib/readtokens0.h: Likewise.
35479         * lib/readutmp.c: Likewise.
35480         * lib/readutmp.h: Likewise.
35481         * lib/realloc.c: Likewise.
35482         * lib/relocwrapper.c: Likewise.
35483         * lib/rename-dest-slash.c: Likewise.
35484         * lib/rename.c: Likewise.
35485         * lib/rmdir.c: Likewise.
35486         * lib/rpmatch.c: Likewise.
35487         * lib/safe-read.c: Likewise.
35488         * lib/safe-read.h: Likewise.
35489         * lib/safe-write.c: Likewise.
35490         * lib/safe-write.h: Likewise.
35491         * lib/same-inode.h: Likewise.
35492         * lib/same.c: Likewise.
35493         * lib/same.h: Likewise.
35494         * lib/save-cwd.c: Likewise.
35495         * lib/save-cwd.h: Likewise.
35496         * lib/savedir.c: Likewise.
35497         * lib/savedir.h: Likewise.
35498         * lib/savewd.c: Likewise.
35499         * lib/savewd.h: Likewise.
35500         * lib/search.in.h: Likewise.
35501         * lib/setenv.c: Likewise.
35502         * lib/setenv.h: Likewise.
35503         * lib/settime.c: Likewise.
35504         * lib/sh-quote.c: Likewise.
35505         * lib/sh-quote.h: Likewise.
35506         * lib/sig2str.c: Likewise.
35507         * lib/sig2str.h: Likewise.
35508         * lib/signal.in.h: Likewise.
35509         * lib/signbitd.c: Likewise.
35510         * lib/signbitf.c: Likewise.
35511         * lib/signbitl.c: Likewise.
35512         * lib/sigprocmask.c: Likewise.
35513         * lib/sincosl.c: Likewise.
35514         * lib/sleep.c: Likewise.
35515         * lib/sprintf.c: Likewise.
35516         * lib/sqrtl.c: Likewise.
35517         * lib/stat-time.h: Likewise.
35518         * lib/stdio--.h: Likewise.
35519         * lib/stdio-safer.h: Likewise.
35520         * lib/stdlib--.h: Likewise.
35521         * lib/stdlib-safer.h: Likewise.
35522         * lib/stdlib.in.h: Likewise.
35523         * lib/stpcpy.c: Likewise.
35524         * lib/stpncpy.c: Likewise.
35525         * lib/strchrnul.c: Likewise.
35526         * lib/strcspn.c: Likewise.
35527         * lib/strerror.c: Likewise.
35528         * lib/strftime.c: Likewise.
35529         * lib/strftime.h: Likewise.
35530         * lib/striconveh.c: Likewise.
35531         * lib/striconveh.h: Likewise.
35532         * lib/striconveha.c: Likewise.
35533         * lib/striconveha.h: Likewise.
35534         * lib/stripslash.c: Likewise.
35535         * lib/strnlen1.c: Likewise.
35536         * lib/strnlen1.h: Likewise.
35537         * lib/strtod.c: Likewise.
35538         * lib/strtoimax.c: Likewise.
35539         * lib/strtok_r.c: Likewise.
35540         * lib/strtol.c: Likewise.
35541         * lib/strtoll.c: Likewise.
35542         * lib/strtoul.c: Likewise.
35543         * lib/strtoull.c: Likewise.
35544         * lib/sysexits.in.h: Likewise.
35545         * lib/tempname.c: Likewise.
35546         * lib/tempname.h: Likewise.
35547         * lib/timespec.h: Likewise.
35548         * lib/tls.c: Likewise.
35549         * lib/tls.h: Likewise.
35550         * lib/tmpdir.c: Likewise.
35551         * lib/tmpdir.h: Likewise.
35552         * lib/tmpfile-safer.c: Likewise.
35553         * lib/tmpfile.c: Likewise.
35554         * lib/trigl.c: Likewise.
35555         * lib/trigl.h: Likewise.
35556         * lib/trim.c: Likewise.
35557         * lib/trim.h: Likewise.
35558         * lib/trunc.c: Likewise.
35559         * lib/truncf.c: Likewise.
35560         * lib/truncl.c: Likewise.
35561         * lib/tsearch.c: Likewise.
35562         * lib/unicodeio.c: Likewise.
35563         * lib/unicodeio.h: Likewise.
35564         * lib/unistd--.h: Likewise.
35565         * lib/unistd-safer.h: Likewise.
35566         * lib/unistdio/ulc-fprintf.c: Likewise.
35567         * lib/unistdio/ulc-vfprintf.c: Likewise.
35568         * lib/unlinkdir.c: Likewise.
35569         * lib/unlinkdir.h: Likewise.
35570         * lib/unlocked-io.h: Likewise.
35571         * lib/unsetenv.c: Likewise.
35572         * lib/userspec.c: Likewise.
35573         * lib/utime.c: Likewise.
35574         * lib/utimecmp.c: Likewise.
35575         * lib/utimecmp.h: Likewise.
35576         * lib/utimens.c: Likewise.
35577         * lib/verify.h: Likewise.
35578         * lib/verror.c: Likewise.
35579         * lib/verror.h: Likewise.
35580         * lib/version-etc-fsf.c: Likewise.
35581         * lib/version-etc.c: Likewise.
35582         * lib/version-etc.h: Likewise.
35583         * lib/vfprintf.c: Likewise.
35584         * lib/vprintf.c: Likewise.
35585         * lib/vsprintf.c: Likewise.
35586         * lib/w32spawn.h: Likewise.
35587         * lib/wait-process.c: Likewise.
35588         * lib/wait-process.h: Likewise.
35589         * lib/wcwidth.c: Likewise.
35590         * lib/write-any-file.c: Likewise.
35591         * lib/xalloc-die.c: Likewise.
35592         * lib/xalloc.h: Likewise.
35593         * lib/xasprintf.c: Likewise.
35594         * lib/xgetcwd.c: Likewise.
35595         * lib/xgetcwd.h: Likewise.
35596         * lib/xgetdomainname.c: Likewise.
35597         * lib/xgetdomainname.h: Likewise.
35598         * lib/xgethostname.c: Likewise.
35599         * lib/xmalloc.c: Likewise.
35600         * lib/xmalloca.c: Likewise.
35601         * lib/xmalloca.h: Likewise.
35602         * lib/xmemcoll.c: Likewise.
35603         * lib/xnanosleep.c: Likewise.
35604         * lib/xreadlink.c: Likewise.
35605         * lib/xreadlink.h: Likewise.
35606         * lib/xsetenv.c: Likewise.
35607         * lib/xsetenv.h: Likewise.
35608         * lib/xstriconv.c: Likewise.
35609         * lib/xstriconv.h: Likewise.
35610         * lib/xstrndup.c: Likewise.
35611         * lib/xstrndup.h: Likewise.
35612         * lib/xstrtod.c: Likewise.
35613         * lib/xstrtod.h: Likewise.
35614         * lib/xstrtol-error.c: Likewise.
35615         * lib/xstrtol.c: Likewise.
35616         * lib/xstrtol.h: Likewise.
35617         * lib/xtime.h: Likewise.
35618         * lib/xvasprintf.c: Likewise.
35619         * lib/xvasprintf.h: Likewise.
35620         * lib/yesno.c: Likewise.
35621         * lib/yesno.h: Likewise.
35622         * posix-modules: Likewise.
35623         * tests/test-alloca-opt.c: Likewise.
35624         * tests/test-arcfour.c: Likewise.
35625         * tests/test-arctwo.c: Likewise.
35626         * tests/test-argmatch.c: Likewise.
35627         * tests/test-argp-2.sh: Likewise.
35628         * tests/test-argp.c: Likewise.
35629         * tests/test-arpa_inet.c: Likewise.
35630         * tests/test-array_list.c: Likewise.
35631         * tests/test-array_oset.c: Likewise.
35632         * tests/test-atexit.c: Likewise.
35633         * tests/test-avltree_list.c: Likewise.
35634         * tests/test-avltree_oset.c: Likewise.
35635         * tests/test-avltreehash_list.c: Likewise.
35636         * tests/test-base64.c: Likewise.
35637         * tests/test-binary-io.c: Likewise.
35638         * tests/test-byteswap.c: Likewise.
35639         * tests/test-c-ctype.c: Likewise.
35640         * tests/test-c-strcasecmp.c: Likewise.
35641         * tests/test-c-strcasestr.c: Likewise.
35642         * tests/test-c-strncasecmp.c: Likewise.
35643         * tests/test-c-strstr.c: Likewise.
35644         * tests/test-canonicalize-lgpl.c: Likewise.
35645         * tests/test-canonicalize.c: Likewise.
35646         * tests/test-carray_list.c: Likewise.
35647         * tests/test-ceilf.c: Likewise.
35648         * tests/test-ceill.c: Likewise.
35649         * tests/test-count-one-bits.c: Likewise.
35650         * tests/test-crc.c: Likewise.
35651         * tests/test-dirname.c: Likewise.
35652         * tests/test-fbufmode.c: Likewise.
35653         * tests/test-fcntl.c: Likewise.
35654         * tests/test-fflush.c: Likewise.
35655         * tests/test-floorf.c: Likewise.
35656         * tests/test-floorl.c: Likewise.
35657         * tests/test-fopen.c: Likewise.
35658         * tests/test-fprintf-posix.c: Likewise.
35659         * tests/test-fprintf-posix.h: Likewise.
35660         * tests/test-fpurge.c: Likewise.
35661         * tests/test-freadable.c: Likewise.
35662         * tests/test-freadahead.c: Likewise.
35663         * tests/test-freading.c: Likewise.
35664         * tests/test-freopen.c: Likewise.
35665         * tests/test-frexp.c: Likewise.
35666         * tests/test-frexpl.c: Likewise.
35667         * tests/test-fseek.c: Likewise.
35668         * tests/test-fseeko.c: Likewise.
35669         * tests/test-fseterr.c: Likewise.
35670         * tests/test-fstrcmp.c: Likewise.
35671         * tests/test-ftell.c: Likewise.
35672         * tests/test-ftello.c: Likewise.
35673         * tests/test-fwritable.c: Likewise.
35674         * tests/test-fwriting.c: Likewise.
35675         * tests/test-getaddrinfo.c: Likewise.
35676         * tests/test-getpass.c: Likewise.
35677         * tests/test-gettimeofday.c: Likewise.
35678         * tests/test-hmac-md5.c: Likewise.
35679         * tests/test-hmac-sha1.c: Likewise.
35680         * tests/test-iconv.c: Likewise.
35681         * tests/test-iconvme.c: Likewise.
35682         * tests/test-inttypes.c: Likewise.
35683         * tests/test-isnan.c: Likewise.
35684         * tests/test-isnanf.c: Likewise.
35685         * tests/test-isnanl-nolibm.c: Likewise.
35686         * tests/test-isnanl.c: Likewise.
35687         * tests/test-isnanl.h: Likewise.
35688         * tests/test-ldexpl.c: Likewise.
35689         * tests/test-linked_list.c: Likewise.
35690         * tests/test-linkedhash_list.c: Likewise.
35691         * tests/test-locale.c: Likewise.
35692         * tests/test-localename.c: Likewise.
35693         * tests/test-lock.c: Likewise.
35694         * tests/test-lseek.c: Likewise.
35695         * tests/test-malloca.c: Likewise.
35696         * tests/test-math.c: Likewise.
35697         * tests/test-mbscasecmp.c: Likewise.
35698         * tests/test-mbscasestr1.c: Likewise.
35699         * tests/test-mbscasestr2.c: Likewise.
35700         * tests/test-mbscasestr3.c: Likewise.
35701         * tests/test-mbscasestr4.c: Likewise.
35702         * tests/test-mbschr.c: Likewise.
35703         * tests/test-mbscspn.c: Likewise.
35704         * tests/test-mbsncasecmp.c: Likewise.
35705         * tests/test-mbspbrk.c: Likewise.
35706         * tests/test-mbspcasecmp.c: Likewise.
35707         * tests/test-mbsrchr.c: Likewise.
35708         * tests/test-mbsspn.c: Likewise.
35709         * tests/test-mbsstr1.c: Likewise.
35710         * tests/test-mbsstr2.c: Likewise.
35711         * tests/test-mbsstr3.c: Likewise.
35712         * tests/test-md5.c: Likewise.
35713         * tests/test-memmem.c: Likewise.
35714         * tests/test-netinet_in.c: Likewise.
35715         * tests/test-open.c: Likewise.
35716         * tests/test-printf-frexp.c: Likewise.
35717         * tests/test-printf-frexpl.c: Likewise.
35718         * tests/test-printf-posix.c: Likewise.
35719         * tests/test-printf-posix.h: Likewise.
35720         * tests/test-rbtree_list.c: Likewise.
35721         * tests/test-rbtree_oset.c: Likewise.
35722         * tests/test-rbtreehash_list.c: Likewise.
35723         * tests/test-read-file.c: Likewise.
35724         * tests/test-rijndael.c: Likewise.
35725         * tests/test-search.c: Likewise.
35726         * tests/test-signbit.c: Likewise.
35727         * tests/test-sleep.c: Likewise.
35728         * tests/test-snprintf-posix.c: Likewise.
35729         * tests/test-snprintf-posix.h: Likewise.
35730         * tests/test-snprintf.c: Likewise.
35731         * tests/test-sprintf-posix.c: Likewise.
35732         * tests/test-sprintf-posix.h: Likewise.
35733         * tests/test-stat-time.c: Likewise.
35734         * tests/test-stdbool.c: Likewise.
35735         * tests/test-stdint.c: Likewise.
35736         * tests/test-stdio.c: Likewise.
35737         * tests/test-stdlib.c: Likewise.
35738         * tests/test-stpncpy.c: Likewise.
35739         * tests/test-strcasestr.c: Likewise.
35740         * tests/test-striconv.c: Likewise.
35741         * tests/test-striconveh.c: Likewise.
35742         * tests/test-striconveha.c: Likewise.
35743         * tests/test-string.c: Likewise.
35744         * tests/test-sys_select.c: Likewise.
35745         * tests/test-sys_socket.c: Likewise.
35746         * tests/test-sys_stat.c: Likewise.
35747         * tests/test-sys_time.c: Likewise.
35748         * tests/test-sysexits.c: Likewise.
35749         * tests/test-time.c: Likewise.
35750         * tests/test-tls.c: Likewise.
35751         * tests/test-trunc.c: Likewise.
35752         * tests/test-truncf.c: Likewise.
35753         * tests/test-truncl.c: Likewise.
35754         * tests/test-unistd.c: Likewise.
35755         * tests/test-vasnprintf-posix.c: Likewise.
35756         * tests/test-vasnprintf-posix2.c: Likewise.
35757         * tests/test-vasnprintf.c: Likewise.
35758         * tests/test-vasprintf-posix.c: Likewise.
35759         * tests/test-vasprintf.c: Likewise.
35760         * tests/test-verify.c: Likewise.
35761         * tests/test-vfprintf-posix.c: Likewise.
35762         * tests/test-vprintf-posix.c: Likewise.
35763         * tests/test-vsnprintf-posix.c: Likewise.
35764         * tests/test-vsnprintf.c: Likewise.
35765         * tests/test-vsprintf-posix.c: Likewise.
35766         * tests/test-wchar.c: Likewise.
35767         * tests/test-wctype.c: Likewise.
35768         * tests/test-wcwidth.c: Likewise.
35769         * tests/test-xstrtol.c: Likewise.
35770         * tests/test-xvasprintf.c: Likewise.
35771         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35772         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35773         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35774         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35775         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35776         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35777         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35778         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35779         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35780         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35781         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35782         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35783         * tests/uniname/test-uninames.c: Likewise.
35784         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35785         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
35786         * tests/unistdio/test-u16-printf1.h: Likewise.
35787         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35788         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35789         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35790         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35791         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35792         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35793         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35794         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
35795         * tests/unistdio/test-u32-printf1.h: Likewise.
35796         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35797         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35798         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35799         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35800         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35801         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35802         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35803         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
35804         * tests/unistdio/test-u8-printf1.h: Likewise.
35805         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35806         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35807         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35808         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35809         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35810         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35811         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35812         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
35813         * tests/unistdio/test-ulc-printf1.h: Likewise.
35814         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35815         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35816         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35817         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35818         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35819         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35820         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35821         * tests/uniwidth/test-u16-width.c: Likewise.
35822         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35823         * tests/uniwidth/test-u32-width.c: Likewise.
35824         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35825         * tests/uniwidth/test-u8-width.c: Likewise.
35826         * tests/uniwidth/test-uc_width.c: Likewise.
35827         * config/srclist-update: Likewise.
35828         (fixlicense): Update to GPLv3+.
35829
35830         Change copyright notice from LGPLv2.1+ to LGPLv3+.
35831         * tests/test-tsearch.c: Change copyright notice.
35832
35833         Change copyright notice from LGPLv2.0+ to LGPLv3+.
35834         * lib/c-strcaseeq.h: Change copyright notice.
35835         * lib/streq.h: Likewise.
35836         * lib/uniconv.h: Likewise.
35837         * lib/uniconv/u-conv-from-enc.h: Likewise.
35838         * lib/uniconv/u-conv-to-enc.h: Likewise.
35839         * lib/uniconv/u-strconv-from-enc.h: Likewise.
35840         * lib/uniconv/u-strconv-to-enc.h: Likewise.
35841         * lib/uniconv/u16-conv-from-enc.c: Likewise.
35842         * lib/uniconv/u16-conv-to-enc.c: Likewise.
35843         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
35844         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
35845         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
35846         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
35847         * lib/uniconv/u32-conv-from-enc.c: Likewise.
35848         * lib/uniconv/u32-conv-to-enc.c: Likewise.
35849         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
35850         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
35851         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
35852         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
35853         * lib/uniconv/u8-conv-from-enc.c: Likewise.
35854         * lib/uniconv/u8-conv-to-enc.c: Likewise.
35855         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
35856         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
35857         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
35858         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
35859         * lib/uniname.h: Likewise.
35860         * lib/uniname/uniname.c: Likewise.
35861         * lib/unistdio.h: Likewise.
35862         * lib/unistdio/u-asnprintf.h: Likewise.
35863         * lib/unistdio/u-asprintf.h: Likewise.
35864         * lib/unistdio/u-printf-args.c: Likewise.
35865         * lib/unistdio/u-printf-args.h: Likewise.
35866         * lib/unistdio/u-printf-parse.h: Likewise.
35867         * lib/unistdio/u-snprintf.h: Likewise.
35868         * lib/unistdio/u-sprintf.h: Likewise.
35869         * lib/unistdio/u-vasprintf.h: Likewise.
35870         * lib/unistdio/u-vsnprintf.h: Likewise.
35871         * lib/unistdio/u-vsprintf.h: Likewise.
35872         * lib/unistdio/u16-asnprintf.c: Likewise.
35873         * lib/unistdio/u16-asprintf.c: Likewise.
35874         * lib/unistdio/u16-printf-parse.c: Likewise.
35875         * lib/unistdio/u16-snprintf.c: Likewise.
35876         * lib/unistdio/u16-sprintf.c: Likewise.
35877         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
35878         * lib/unistdio/u16-u16-asprintf.c: Likewise.
35879         * lib/unistdio/u16-u16-snprintf.c: Likewise.
35880         * lib/unistdio/u16-u16-sprintf.c: Likewise.
35881         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
35882         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
35883         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
35884         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
35885         * lib/unistdio/u16-vasnprintf.c: Likewise.
35886         * lib/unistdio/u16-vasprintf.c: Likewise.
35887         * lib/unistdio/u16-vsnprintf.c: Likewise.
35888         * lib/unistdio/u16-vsprintf.c: Likewise.
35889         * lib/unistdio/u32-asnprintf.c: Likewise.
35890         * lib/unistdio/u32-asprintf.c: Likewise.
35891         * lib/unistdio/u32-printf-parse.c: Likewise.
35892         * lib/unistdio/u32-snprintf.c: Likewise.
35893         * lib/unistdio/u32-sprintf.c: Likewise.
35894         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
35895         * lib/unistdio/u32-u32-asprintf.c: Likewise.
35896         * lib/unistdio/u32-u32-snprintf.c: Likewise.
35897         * lib/unistdio/u32-u32-sprintf.c: Likewise.
35898         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
35899         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
35900         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
35901         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
35902         * lib/unistdio/u32-vasnprintf.c: Likewise.
35903         * lib/unistdio/u32-vasprintf.c: Likewise.
35904         * lib/unistdio/u32-vsnprintf.c: Likewise.
35905         * lib/unistdio/u32-vsprintf.c: Likewise.
35906         * lib/unistdio/u8-asnprintf.c: Likewise.
35907         * lib/unistdio/u8-asprintf.c: Likewise.
35908         * lib/unistdio/u8-printf-parse.c: Likewise.
35909         * lib/unistdio/u8-snprintf.c: Likewise.
35910         * lib/unistdio/u8-sprintf.c: Likewise.
35911         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
35912         * lib/unistdio/u8-u8-asprintf.c: Likewise.
35913         * lib/unistdio/u8-u8-snprintf.c: Likewise.
35914         * lib/unistdio/u8-u8-sprintf.c: Likewise.
35915         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
35916         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
35917         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
35918         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
35919         * lib/unistdio/u8-vasnprintf.c: Likewise.
35920         * lib/unistdio/u8-vasprintf.c: Likewise.
35921         * lib/unistdio/u8-vsnprintf.c: Likewise.
35922         * lib/unistdio/u8-vsprintf.c: Likewise.
35923         * lib/unistdio/ulc-asnprintf.c: Likewise.
35924         * lib/unistdio/ulc-asprintf.c: Likewise.
35925         * lib/unistdio/ulc-printf-parse.c: Likewise.
35926         * lib/unistdio/ulc-snprintf.c: Likewise.
35927         * lib/unistdio/ulc-sprintf.c: Likewise.
35928         * lib/unistdio/ulc-vasnprintf.c: Likewise.
35929         * lib/unistdio/ulc-vasprintf.c: Likewise.
35930         * lib/unistdio/ulc-vsnprintf.c: Likewise.
35931         * lib/unistdio/ulc-vsprintf.c: Likewise.
35932         * lib/unistr.h: Likewise.
35933         * lib/unistr/u-cpy-alloc.h: Likewise.
35934         * lib/unistr/u-cpy.h: Likewise.
35935         * lib/unistr/u-endswith.h: Likewise.
35936         * lib/unistr/u-move.h: Likewise.
35937         * lib/unistr/u-set.h: Likewise.
35938         * lib/unistr/u-startswith.h: Likewise.
35939         * lib/unistr/u-stpcpy.h: Likewise.
35940         * lib/unistr/u-stpncpy.h: Likewise.
35941         * lib/unistr/u-strcat.h: Likewise.
35942         * lib/unistr/u-strcpy.h: Likewise.
35943         * lib/unistr/u-strcspn.h: Likewise.
35944         * lib/unistr/u-strdup.h: Likewise.
35945         * lib/unistr/u-strlen.h: Likewise.
35946         * lib/unistr/u-strncat.h: Likewise.
35947         * lib/unistr/u-strncpy.h: Likewise.
35948         * lib/unistr/u-strnlen.h: Likewise.
35949         * lib/unistr/u-strpbrk.h: Likewise.
35950         * lib/unistr/u-strspn.h: Likewise.
35951         * lib/unistr/u-strstr.h: Likewise.
35952         * lib/unistr/u-strtok.h: Likewise.
35953         * lib/unistr/u16-check.c: Likewise.
35954         * lib/unistr/u16-chr.c: Likewise.
35955         * lib/unistr/u16-cmp.c: Likewise.
35956         * lib/unistr/u16-cpy-alloc.c: Likewise.
35957         * lib/unistr/u16-cpy.c: Likewise.
35958         * lib/unistr/u16-endswith.c: Likewise.
35959         * lib/unistr/u16-mblen.c: Likewise.
35960         * lib/unistr/u16-mbsnlen.c: Likewise.
35961         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35962         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35963         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35964         * lib/unistr/u16-mbtouc.c: Likewise.
35965         * lib/unistr/u16-mbtoucr.c: Likewise.
35966         * lib/unistr/u16-move.c: Likewise.
35967         * lib/unistr/u16-next.c: Likewise.
35968         * lib/unistr/u16-prev.c: Likewise.
35969         * lib/unistr/u16-set.c: Likewise.
35970         * lib/unistr/u16-startswith.c: Likewise.
35971         * lib/unistr/u16-stpcpy.c: Likewise.
35972         * lib/unistr/u16-stpncpy.c: Likewise.
35973         * lib/unistr/u16-strcat.c: Likewise.
35974         * lib/unistr/u16-strchr.c: Likewise.
35975         * lib/unistr/u16-strcmp.c: Likewise.
35976         * lib/unistr/u16-strcpy.c: Likewise.
35977         * lib/unistr/u16-strcspn.c: Likewise.
35978         * lib/unistr/u16-strdup.c: Likewise.
35979         * lib/unistr/u16-strlen.c: Likewise.
35980         * lib/unistr/u16-strmblen.c: Likewise.
35981         * lib/unistr/u16-strmbtouc.c: Likewise.
35982         * lib/unistr/u16-strncat.c: Likewise.
35983         * lib/unistr/u16-strncmp.c: Likewise.
35984         * lib/unistr/u16-strncpy.c: Likewise.
35985         * lib/unistr/u16-strnlen.c: Likewise.
35986         * lib/unistr/u16-strpbrk.c: Likewise.
35987         * lib/unistr/u16-strrchr.c: Likewise.
35988         * lib/unistr/u16-strspn.c: Likewise.
35989         * lib/unistr/u16-strstr.c: Likewise.
35990         * lib/unistr/u16-strtok.c: Likewise.
35991         * lib/unistr/u16-to-u32.c: Likewise.
35992         * lib/unistr/u16-to-u8.c: Likewise.
35993         * lib/unistr/u16-uctomb-aux.c: Likewise.
35994         * lib/unistr/u16-uctomb.c: Likewise.
35995         * lib/unistr/u32-check.c: Likewise.
35996         * lib/unistr/u32-chr.c: Likewise.
35997         * lib/unistr/u32-cmp.c: Likewise.
35998         * lib/unistr/u32-cpy-alloc.c: Likewise.
35999         * lib/unistr/u32-cpy.c: Likewise.
36000         * lib/unistr/u32-endswith.c: Likewise.
36001         * lib/unistr/u32-mblen.c: Likewise.
36002         * lib/unistr/u32-mbsnlen.c: Likewise.
36003         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36004         * lib/unistr/u32-mbtouc.c: Likewise.
36005         * lib/unistr/u32-mbtoucr.c: Likewise.
36006         * lib/unistr/u32-move.c: Likewise.
36007         * lib/unistr/u32-next.c: Likewise.
36008         * lib/unistr/u32-prev.c: Likewise.
36009         * lib/unistr/u32-set.c: Likewise.
36010         * lib/unistr/u32-startswith.c: Likewise.
36011         * lib/unistr/u32-stpcpy.c: Likewise.
36012         * lib/unistr/u32-stpncpy.c: Likewise.
36013         * lib/unistr/u32-strcat.c: Likewise.
36014         * lib/unistr/u32-strchr.c: Likewise.
36015         * lib/unistr/u32-strcmp.c: Likewise.
36016         * lib/unistr/u32-strcpy.c: Likewise.
36017         * lib/unistr/u32-strcspn.c: Likewise.
36018         * lib/unistr/u32-strdup.c: Likewise.
36019         * lib/unistr/u32-strlen.c: Likewise.
36020         * lib/unistr/u32-strmblen.c: Likewise.
36021         * lib/unistr/u32-strmbtouc.c: Likewise.
36022         * lib/unistr/u32-strncat.c: Likewise.
36023         * lib/unistr/u32-strncmp.c: Likewise.
36024         * lib/unistr/u32-strncpy.c: Likewise.
36025         * lib/unistr/u32-strnlen.c: Likewise.
36026         * lib/unistr/u32-strpbrk.c: Likewise.
36027         * lib/unistr/u32-strrchr.c: Likewise.
36028         * lib/unistr/u32-strspn.c: Likewise.
36029         * lib/unistr/u32-strstr.c: Likewise.
36030         * lib/unistr/u32-strtok.c: Likewise.
36031         * lib/unistr/u32-to-u16.c: Likewise.
36032         * lib/unistr/u32-to-u8.c: Likewise.
36033         * lib/unistr/u32-uctomb.c: Likewise.
36034         * lib/unistr/u8-check.c: Likewise.
36035         * lib/unistr/u8-chr.c: Likewise.
36036         * lib/unistr/u8-cmp.c: Likewise.
36037         * lib/unistr/u8-cpy-alloc.c: Likewise.
36038         * lib/unistr/u8-cpy.c: Likewise.
36039         * lib/unistr/u8-endswith.c: Likewise.
36040         * lib/unistr/u8-mblen.c: Likewise.
36041         * lib/unistr/u8-mbsnlen.c: Likewise.
36042         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36043         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36044         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36045         * lib/unistr/u8-mbtouc.c: Likewise.
36046         * lib/unistr/u8-mbtoucr.c: Likewise.
36047         * lib/unistr/u8-move.c: Likewise.
36048         * lib/unistr/u8-next.c: Likewise.
36049         * lib/unistr/u8-prev.c: Likewise.
36050         * lib/unistr/u8-set.c: Likewise.
36051         * lib/unistr/u8-startswith.c: Likewise.
36052         * lib/unistr/u8-stpcpy.c: Likewise.
36053         * lib/unistr/u8-stpncpy.c: Likewise.
36054         * lib/unistr/u8-strcat.c: Likewise.
36055         * lib/unistr/u8-strchr.c: Likewise.
36056         * lib/unistr/u8-strcmp.c: Likewise.
36057         * lib/unistr/u8-strcpy.c: Likewise.
36058         * lib/unistr/u8-strcspn.c: Likewise.
36059         * lib/unistr/u8-strdup.c: Likewise.
36060         * lib/unistr/u8-strlen.c: Likewise.
36061         * lib/unistr/u8-strmblen.c: Likewise.
36062         * lib/unistr/u8-strmbtouc.c: Likewise.
36063         * lib/unistr/u8-strncat.c: Likewise.
36064         * lib/unistr/u8-strncmp.c: Likewise.
36065         * lib/unistr/u8-strncpy.c: Likewise.
36066         * lib/unistr/u8-strnlen.c: Likewise.
36067         * lib/unistr/u8-strpbrk.c: Likewise.
36068         * lib/unistr/u8-strrchr.c: Likewise.
36069         * lib/unistr/u8-strspn.c: Likewise.
36070         * lib/unistr/u8-strstr.c: Likewise.
36071         * lib/unistr/u8-strtok.c: Likewise.
36072         * lib/unistr/u8-to-u16.c: Likewise.
36073         * lib/unistr/u8-to-u32.c: Likewise.
36074         * lib/unistr/u8-uctomb-aux.c: Likewise.
36075         * lib/unistr/u8-uctomb.c: Likewise.
36076         * lib/unitypes.h: Likewise.
36077         * lib/uniwidth.h: Likewise.
36078         * lib/uniwidth/cjk.h: Likewise.
36079         * lib/uniwidth/u16-strwidth.c: Likewise.
36080         * lib/uniwidth/u16-width.c: Likewise.
36081         * lib/uniwidth/u32-strwidth.c: Likewise.
36082         * lib/uniwidth/u32-width.c: Likewise.
36083         * lib/uniwidth/u8-strwidth.c: Likewise.
36084         * lib/uniwidth/u8-width.c: Likewise.
36085         * lib/uniwidth/width.c: Likewise.
36086
36087 2007-10-07  Bruno Haible  <bruno@clisp.org>
36088
36089         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36090         The file is still under LGPL (see modules/inttypes).
36091
36092 2007-10-06  Bruno Haible  <bruno@clisp.org>
36093
36094         * modules/trunc (Dependencies): Add 'extensions'.
36095         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36096         Reported by Ben Pfaff <blp@gnu.org>.
36097
36098 2007-10-06  Bruno Haible  <bruno@clisp.org>
36099
36100         * modules/freopen-tests: New file.
36101         * tests/test-freopen.c: New file.
36102
36103         * modules/fopen-tests: New file.
36104         * tests/test-fopen.c: New file.
36105
36106         * modules/fopen: New file.
36107         * lib/fopen.c: New file.
36108         * m4/fopen.m4: New file.
36109         * modules/freopen: New file.
36110         * lib/freopen.c: New file.
36111         * m4/freopen.m4: New file.
36112         * lib/stdio.in.h (fopen, freopen): New declarations.
36113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36114         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36115         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36116         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36117         * doc/functions/fopen.texi: Mention the 'fopen' module.
36118         * doc/functions/freopen.texi: Mention the 'freopen' module.
36119
36120 2007-10-06  Bruno Haible  <bruno@clisp.org>
36121
36122         * modules/open-tests: New file.
36123         * tests/test-open.c: New file.
36124
36125         * modules/open: New file.
36126         * lib/open.c: New file.
36127         * m4/open.m4: New file.
36128         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36129         lib/open.c does.
36130         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36131         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36132         macros.
36133         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36134         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36135         REPLACE_OPEN.
36136         * doc/functions/open.texi: Mention the 'open' module.
36137
36138 2007-10-04  Bruno Haible  <bruno@clisp.org>
36139
36140         * modules/ceill-tests: New file.
36141         * tests/test-ceill.c: New file.
36142
36143         * modules/ceill: New file.
36144         * lib/ceill.c: Replace entire file.
36145         * m4/ceill.m4: New file.
36146         * lib/math.in.h (ceill): Replace declaration.
36147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36148         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36149         * doc/functions/ceill.texi: Mention the 'ceill' module.
36150         * modules/mathl (Files): Remove lib/ceill.c.
36151         (Depends-on): Add ceill.
36152
36153 2007-10-04  Bruno Haible  <bruno@clisp.org>
36154
36155         * modules/ceilf-tests: New file.
36156         * tests/test-ceilf.c: New file.
36157
36158         * modules/ceilf: New file.
36159         * lib/ceil.c: New file.
36160         * lib/ceilf.c: New file.
36161         * m4/ceilf.m4: New file.
36162         * lib/math.in.h (ceilf): New declaration.
36163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36164         HAVE_DECL_CEILF.
36165         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36166         HAVE_DECL_CEILF.
36167         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36168
36169 2007-10-04  Bruno Haible  <bruno@clisp.org>
36170
36171         * modules/floorl-tests: New file.
36172         * tests/test-floorl.c: New file.
36173
36174         * modules/floorl: New file.
36175         * lib/floorl.c: Replace entire file.
36176         * m4/floorl.m4: New file.
36177         * lib/math.in.h (floorl): Replace declaration.
36178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36179         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36180         * doc/functions/floorl.texi: Mention the 'floorl' module.
36181         * modules/mathl (Files): Remove lib/floorl.c.
36182         (Depends-on): Add floorl.
36183
36184 2007-10-04  Bruno Haible  <bruno@clisp.org>
36185
36186         * modules/floorf-tests: New file.
36187         * tests/test-floorf.c: New file.
36188
36189         * modules/floorf: New file.
36190         * lib/floor.c: New file.
36191         * lib/floorf.c: New file.
36192         * m4/floorf.m4: New file.
36193         * lib/math.in.h (floorf): New declaration.
36194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36195         HAVE_DECL_FLOORF.
36196         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36197         HAVE_DECL_FLOORF.
36198         * doc/functions/floorf.texi: Mention the 'floorf' module.
36199
36200 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36201             Bruno Haible  <bruno@clisp.org>
36202
36203         Advertise for the Git server instead of the CVS server.
36204         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36205         repository instead of the CVS one.
36206         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36207         about all VCS systems generically.
36208         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36209
36210 2007-10-04  Bruno Haible  <bruno@clisp.org>
36211
36212         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36213         means.
36214         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36215
36216 2007-10-04  Bruno Haible  <bruno@clisp.org>
36217
36218         * modules/truncl-tests: New file.
36219         * tests/test-truncl.c: New file.
36220
36221         * modules/truncl: New file.
36222         * lib/truncl.c: New file.
36223         * m4/truncl.m4: New file.
36224         * lib/math.in.h (truncl): New declaration.
36225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36226         HAVE_DECL_TRUNCL.
36227         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36228         HAVE_DECL_TRUNCL.
36229         * doc/functions/truncl.texi: Mention the 'truncl' module.
36230
36231 2007-10-04  Bruno Haible  <bruno@clisp.org>
36232
36233         * modules/truncf-tests: New file.
36234         * tests/test-truncf.c: New file.
36235
36236         * modules/truncf: New file.
36237         * lib/trunc.c: Make paramerizable through USE_* macros.
36238         * lib/truncf.c: New file.
36239         * m4/truncf.m4: New file.
36240         * lib/math.in.h (truncf): New declaration.
36241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36242         HAVE_DECL_TRUNCF.
36243         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36244         HAVE_DECL_TRUNCF.
36245         * doc/functions/truncf.texi: Mention the 'truncf' module.
36246
36247 2007-10-03  Bruno Haible  <bruno@clisp.org>
36248
36249         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36250         augmentation also for tests modules.
36251         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36252         * modules/atexit-tests (Makefile.am): Likewise.
36253         * modules/binary-io-tests (Makefile.am): Likewise.
36254         * modules/c-strcase-tests (Makefile.am): Likewise.
36255         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36256         * modules/canonicalize-tests (Makefile.am): Likewise.
36257         * modules/closein-tests (Makefile.am): Likewise.
36258         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36259         * modules/freadahead-tests (Makefile.am): Likewise.
36260         * modules/fseek-tests (Makefile.am): Likewise.
36261         * modules/fseeko-tests (Makefile.am): Likewise.
36262         * modules/ftell-tests (Makefile.am): Likewise.
36263         * modules/ftello-tests (Makefile.am): Likewise.
36264         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36265         * modules/isnanl-tests (Makefile.am): Likewise.
36266         * modules/lseek-tests (Makefile.am): Likewise.
36267         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36268         * modules/mbscasestr-tests (Makefile.am): Likewise.
36269         * modules/mbschr-tests (Makefile.am): Likewise.
36270         * modules/mbscspn-tests (Makefile.am): Likewise.
36271         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36272         * modules/mbspbrk-tests (Makefile.am): Likewise.
36273         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36274         * modules/mbsrchr-tests (Makefile.am): Likewise.
36275         * modules/mbsspn-tests (Makefile.am): Likewise.
36276         * modules/mbsstr-tests (Makefile.am): Likewise.
36277         * modules/printf-posix-tests (Makefile.am): Likewise.
36278         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36279         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36280         * modules/tsearch-tests (Makefile.am): Likewise.
36281         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36282         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36283         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36284         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36285         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36286         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36287         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36288         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36289         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36290         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36291         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36292         * modules/xstrtol-tests (Makefile.am): Likewise.
36293         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36294         * modules/yesno-tests (Makefile.am): Likewise.
36295
36296 2007-10-03  Bruno Haible  <bruno@clisp.org>
36297
36298         * modules/trunc-tests: New file.
36299         * tests/test-trunc.c: New file.
36300
36301         * modules/trunc: New file.
36302         * lib/trunc.c: New file.
36303         * m4/trunc.m4: New file.
36304         * lib/math.in.h (trunc): New declaration.
36305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36306         HAVE_DECL_TRUNC.
36307         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36308         HAVE_DECL_TRUNC.
36309         * doc/functions/trunc.texi: Mention the 'trunc' module.
36310
36311 2007-10-03  Bruno Haible  <bruno@clisp.org>
36312
36313         * tests/test-fpending.c: New file, mostly copied
36314         from coreutils/lib/t-fpending.c.
36315         * modules/fpending-tests: New file.
36316
36317 2007-10-03  Bruno Haible  <bruno@clisp.org>
36318
36319         Port the stdio extensions to QNX (untested).
36320         * lib/fseterr.c (fseterr): Add support for QNX.
36321         * lib/fbufmode.c (fbufmode): Likewise.
36322         * lib/freadable.c (freadable): Likewise.
36323         * lib/fwritable.c (fwritable): Likewise.
36324         * lib/freading.c (freading): Likewise.
36325         * lib/fwriting.c (fwriting): Likewise.
36326         * lib/freadahead.c (freadahed): Likewise.
36327         * lib/fpurge.c (fpurge): Likewise.
36328         * lib/fseeko.c (rpl_fseeko): Likewise.
36329
36330 2007-10-03  Bruno Haible  <bruno@clisp.org>
36331             Jim Meyering  <jim@meyering.net>
36332             Eric Blake  <ebb9@byu.net>
36333
36334         * doc/relocatable.texi: Use @command instead of @program.
36335
36336 2007-10-02  Jim Meyering  <jim@meyering.net>
36337
36338         Perform one more "_.h" -> ".in.h" substitution.
36339         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36340         instead of unistd_.h here, too.
36341
36342 2007-10-01  Bruno Haible  <bruno@clisp.org>
36343
36344         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36345         Needed for the alloca-opt module.
36346
36347 2007-09-30  Bruno Haible  <bruno@clisp.org>
36348
36349         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36350         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36351         alloca_.h.
36352         * lib/argz.in.h: Renamed from lib/argz_.h.
36353         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36354         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36355         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36356         byteswap_.h.
36357         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36358         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36359         dirent_.h.
36360         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36361         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36362         fcntl_.h.
36363         * lib/float.in.h: Renamed from lib/float_.h.
36364         * modules/float (Files, Makefile.am): Use float.in.h instead of
36365         float_.h.
36366         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36367         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36368         fnmatch_.h.
36369         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36370         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36371         getopt_.h.
36372         * lib/glob.in.h: Renamed from lib/glob_.h.
36373         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36374         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36375         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36376         iconv_.h.
36377         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36378         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36379         inttypes_.h.
36380         * lib/locale.in.h: Renamed from lib/locale_.h.
36381         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36382         locale_.h.
36383         * lib/math.in.h: Renamed from lib/math_.h.
36384         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36385         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36386         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36387         of netinet_in_.h. Add dependency.
36388         * lib/poll.in.h: Renamed from lib/poll_.h.
36389         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36390         * lib/search.in.h: Renamed from lib/search_.h.
36391         * modules/search (Files, Makefile.am): Use search.in.h instead of
36392         search_.h.
36393         * lib/signal.in.h: Renamed from lib/signal_.h.
36394         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36395         _signal.h.
36396         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36397         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36398         stdbool_.h.
36399         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36400         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36401         stdint_.h.
36402         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36403         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36404         stdio_.h.
36405         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36406         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36407         stdlib_.h.
36408         * lib/string.in.h: Renamed from lib/string_.h.
36409         * modules/string (Files, Makefile.am): Use string.in.h instead of
36410         string_.h.
36411         * doc/gnulib-tool.texi (Initial import): Update.
36412         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36413         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36414         of sys_select_.h. Add dependency.
36415         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36416         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36417         of sys_socket_.h.
36418         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36419         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36420         sys_stat_.h.
36421         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36422         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36423         sys_time_.h.
36424         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36425         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36426         sysexits_.h.
36427         * lib/time.in.h: Renamed from lib/time_.h.
36428         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36429         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36430         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36431         unistd_.h.
36432         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36433         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36434         wchar_.h.
36435         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36436         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36437         wctype_.h.
36438         * build-aux/bootstrap (slurp): Update.
36439         * lib/.cppi-disable: Update.
36440
36441 2007-09-30  Bruno Haible  <bruno@clisp.org>
36442
36443         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36444         Needed on BeOS.
36445
36446 2007-09-30  Bruno Haible  <bruno@clisp.org>
36447
36448         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36449
36450 2007-09-29  Bruno Haible  <bruno@clisp.org>
36451
36452         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36453
36454 2007-09-29  Bruno Haible  <bruno@clisp.org>
36455
36456         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36457         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36458         * build-aux/install-reloc: Compile also areadlink.c.
36459         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36460
36461 2007-09-29  Bruno Haible  <bruno@clisp.org>
36462
36463         * gnulib-tool (func_emit_initmacro_done): Indentation.
36464
36465 2007-09-29  Bruno Haible  <bruno@clisp.org>
36466
36467         * README: Add CVS checkout update instructions.
36468         Info from Bob Proulx <bob@proulx.com>.
36469
36470 2007-09-28  Eric Blake  <ebb9@byu.net>
36471
36472         Provide move-if-change.
36473         * build-aux/move-if-change: New file, based on best practice
36474         rather than any canonical upstream location.
36475
36476 2007-09-28  Jim Meyering  <jim@meyering.net>
36477
36478         Fix canonicalize loop-detection corner case.
36479         Do not attempt to stat the symlink values stored via seen_triple.
36480         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36481         on linux-2.6.18, (but not 2.6.22).
36482         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36483         triple_compare.  The former compares dev,ino,filename, while the latter
36484         would actually stat dirname(filename) when dev and ino were equal.
36485         * lib/hash-triple.c: Install <string.h>.
36486         (STREQ): Define.
36487         (triple_compare_ino_str): New function.
36488         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36489
36490 2007-09-28  Eric Blake  <ebb9@byu.net>
36491
36492         Enforce that AC_REPLACE_FUNCS files exist.
36493         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36494         override check for typos.
36495
36496         Fix test-closein on Solaris 10.
36497         * tests/test-closein.c (main): Don't assume stdin can be inherited
36498         closed on all systems.
36499         * tests/test-closein.sh: Likewise.
36500         Reported by Piotr Tarnowski.
36501
36502 2007-09-28  Jim Meyering  <jim@meyering.net>
36503
36504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36505
36506 2007-09-27  Jim Meyering  <jim@meyering.net>
36507
36508         canonicalize: Avoid a false-positive cycle failure.
36509         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36510         Sort.  Remove cycle-check.
36511         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36512         not cycle-check.h.
36513         (seen_triple): New function.
36514         (canonicalize_filename_mode): Use it instead of cycle-check.
36515         * tests/test-canonicalize.c: Add a test for this bug.
36516         * tests/test-canonicalize.sh: Set up and run the test.
36517
36518         New module, file-set, from coreutils.
36519         * modules/file-set: Define it.
36520         * lib/file-set.c, lib/file-set.h: Implement.
36521
36522         New module, hash-triple, from coreutils.
36523         * modules/hash-triple: Define it.
36524         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36525
36526 2007-09-25  Eric Blake  <ebb9@byu.net>
36527
36528         Fix strerror on Interix.
36529         * lib/string_.h (strerror): Declare replacement.
36530         * doc/functions/strerror.texi (strerror): Document the Interix
36531         shortcoming.
36532         * modules/string (Makefile.am): Support new hooks.
36533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36534         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36535         gl_FUNC_STRERROR_SEPARATE.
36536         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36537         * lib/strerror.c (rpl_strerror): Provide replacement.
36538         * modules/strerror (Depends-on): Add string.
36539         (configure.ac): Detect use of module.
36540         * tests/test-strerror.c: New file.
36541         * modules/strerror-tests: New test module.
36542         * modules/argp (Depends-on): Add strerror.
36543         * modules/error (Depends-on): Likewise.
36544         Reported by Martin Koeppe.
36545
36546 2007-09-24  Bruno Haible  <bruno@clisp.org>
36547
36548         * README: Update git instructions.
36549
36550 2007-09-24  Eric Blake  <ebb9@byu.net>
36551
36552         Revert fpending breakage from 2007-09-08.
36553         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
36554         __fpending.c.
36555
36556 2007-09-24  Jim Meyering  <jim@meyering.net>
36557
36558         filenamecat.c: Add a test.
36559         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
36560         showing how the function works when DIR is the empty string.
36561
36562 2007-09-21  Simon Josefsson  <simon@josefsson.org>
36563
36564         * tests/test-canonicalize.sh: Turn on executable bit.
36565
36566 2007-09-19  Eric Blake  <ebb9@byu.net>
36567
36568         * README: Update CVS instructions.
36569
36570 2007-09-18  Bruno Haible  <bruno@clisp.org>
36571
36572         * modules/areadlink: New file.
36573         * lib/areadlink.h (areadlink): New declaration.
36574         * lib/areadlink.c: New file, based on lib/xreadlink.c.
36575
36576 2007-09-17  Jim Meyering  <jim@meyering.net>
36577
36578         * lib/savewd.c (ESTALE) [!defined]: Define.
36579         Reported to be required on Interix by Martin Koeppe.
36580
36581 2007-09-17  Bruno Haible  <bruno@clisp.org>
36582
36583         * gnulib-tool (func_version): Use $version.
36584
36585 2007-09-16  Bruno Haible  <bruno@clisp.org>
36586
36587         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
36588         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
36589         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
36590         Reported by Greg Schafer <gschafer@zip.com.au>.
36591
36592 2007-09-15  Bruno Haible  <bruno@clisp.org>
36593
36594         * gnulib-tool (sed): Try a little harder to make bash understand the
36595         alias.
36596         Reported by Bruce Korb <bruce.korb@gmail.com>.
36597
36598 2007-09-13  Eric Blake  <ebb9@byu.net>
36599
36600         * ChangeLog: Remove conflict markers.
36601
36602 2007-09-13  Simon Josefsson  <simon@josefsson.org>
36603
36604         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
36605         Reported by Bruno Haible <bruno@clisp.org>.
36606
36607 2007-09-12  Bruno Haible  <bruno@clisp.org>
36608
36609         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
36610         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
36611         is not defined.
36612
36613 2007-09-12  Eric Blake  <ebb9@byu.net>
36614
36615         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
36616         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
36617         Autoconf definition.
36618         * modules/euidaccess (Depends-on): Add extensions, for
36619         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
36620         * modules/fnmatch (Depends-on): Likewise.
36621         * modules/getaddrinfo (Depends-on): Likewise.
36622         * modules/getdelim (Depends-on): Likewise.
36623         * modules/getline (Depends-on): Likewise.
36624         * modules/getsubopt (Depends-on): Likewise.
36625         * modules/gettext (Depends-on): Likewise.
36626         * modules/group-member (Depends-on): Likewise.
36627         * modules/mbchar (Depends-on): Likewise.
36628         * modules/memmem (Depends-on): Likewise.
36629         * modules/mempcpy (Depends-on): Likewise.
36630         * modules/memrchr (Depends-on): Likewise.
36631         * modules/pagealign_alloc (Depends-on): Likewise.
36632         * modules/readutmp (Depends-on): Likewise.
36633         * modules/stpcpy (Depends-on): Likewise.
36634         * modules/stpncpy (Depends-on): Likewise.
36635         * modules/strchrnul (Depends-on): Likewise.
36636         * modules/strndup (Depends-on): Likewise.
36637         * modules/strsep (Depends-on): Likewise.
36638         * modules/strverscmp (Depends-on): Likewise.
36639         * modules/vasprintf (Depends-on): Likewise.
36640         * modules/wcwidth (Depends-on): Likewise.
36641         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
36642         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
36643         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
36644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
36645         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36646         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36647         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
36648         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36649         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
36650         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36651         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36652         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
36653         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
36654         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
36655         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
36656         * m4/readutmp.m4 (gl_READUTMP): Likewise.
36657         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36658         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
36659         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
36660         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
36661         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36662         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
36663         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
36664         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
36665         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
36666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36667         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
36668         so that lock.m4 can be used in gettext without extensions module.
36669
36670 2007-09-11  Bruno Haible  <bruno@clisp.org>
36671
36672         * m4/isc-posix.m4: Remove file.
36673         Suggested by Eric Blake.
36674
36675 2007-09-11  Eric Blake  <ebb9@byu.net>
36676
36677         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
36678
36679 2007-09-10  Bruno Haible  <bruno@clisp.org>
36680
36681         * posix-modules: Fix typo in error message.
36682         Reported by Matt <mkraai@beckman.com>.
36683
36684 2007-09-09  Bruno Haible  <bruno@clisp.org>
36685
36686         * doc/functions/getdelim.texi: Update list of platforms lacking the
36687         function.
36688         * doc/functions/getline.texi: Likewise.
36689
36690 2007-09-09  Jim Meyering  <jim@meyering.net>
36691
36692         * lib/hash.c (hash_initialize): Detect calloc failure.
36693         Reported by Bruno Haible.
36694
36695 2007-09-09  Bruno Haible  <bruno@clisp.org>
36696
36697         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
36698         malloc or realloc fails.
36699
36700 2007-09-09  Bruno Haible  <bruno@clisp.org>
36701
36702         * modules/getcwd (Depends-on): Add malloc-posix.
36703         * modules/glob (Depends-on): Likewise.
36704         * modules/putenv (Depends-on): Likewise.
36705         * modules/strdup (Depends-on): Likewise.
36706         * modules/getdelim (Depends-on): Add realloc-posix.
36707         * modules/read-file (Depends-on): Likewise.
36708
36709 2007-09-09  Bruno Haible  <bruno@clisp.org>
36710
36711         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
36712         (gl_FUNC_MALLOC_POSIX): Require it.
36713         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
36714         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
36715         * modules/realloc (Files): Add m4/malloc.m4.
36716         * modules/calloc (Files): Likewise.
36717
36718 2007-09-09  Bruno Haible  <bruno@clisp.org>
36719
36720         * modules/malloc-posix: New file.
36721         * modules/malloc (Depends-on): Add malloc-posix.
36722         * lib/malloc.c: Include errno.h.
36723         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
36724         and a POSIX-compatible malloc into a single function. Set ENOMEM
36725         when returning NULL.
36726         * m4/malloc.m4: New file.
36727         * doc/functions/malloc.texi: Mention the malloc-posix module.
36728         * lib/stdlib_.h (malloc): New declaration.
36729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36730         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
36731         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
36732         and HAVE_MALLOC_POSIX.
36733
36734 2007-09-09  Bruno Haible  <bruno@clisp.org>
36735
36736         * modules/realloc-posix: New file.
36737         * modules/realloc (Depends-on): Add realloc-posix.
36738         * lib/realloc.c: Include errno.h.
36739         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
36740         and a POSIX-compatible realloc into a single function. Set ENOMEM
36741         when returning NULL.
36742         * m4/realloc.m4: New file.
36743         * doc/functions/realloc.texi: Mention the realloc-posix module.
36744         * lib/stdlib_.h (realloc): New declaration.
36745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36746         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
36747         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
36748         and HAVE_REALLOC_POSIX.
36749
36750 2007-09-09  Bruno Haible  <bruno@clisp.org>
36751
36752         * modules/calloc-posix: New file.
36753         * modules/calloc (Depends-on): Add calloc-posix.
36754         * lib/calloc.c: Include errno.h.
36755         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
36756         and a POSIX-compatible calloc into a single function. Set ENOMEM
36757         when returning NULL.
36758         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
36759         * doc/functions/calloc.texi: Mention the calloc-posix module.
36760         * lib/stdlib_.h (calloc): New declaration.
36761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36762         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
36763         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
36764         and HAVE_CALLOC_POSIX.
36765
36766 2007-09-09  Bruno Haible  <bruno@clisp.org>
36767
36768         Allow for modules to show an arbitrary notice.
36769         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
36770         * gnulib-tool: New option --extract-notice.
36771         (func_usage): Document it.
36772         (sed_extract_prog): Update.
36773         (func_get_notice): New function.
36774         (func_modules_notice): New function.
36775         (func_import, func_create_testdir): Invoke it.
36776         Suggested by Jim Meyering.
36777
36778 2007-09-09  Bruno Haible  <bruno@clisp.org>
36779
36780         * gnulib-tool: New options --verbose, --quiet.
36781         (func_usage): Document them.
36782         (verbose): New variable.
36783         (func_execute_command): New function.
36784         (func_import): Don't show the module list and the file list if
36785         $verbose < 0.
36786         (func_create_testdir): Likewise. Use func_execute_command.
36787         (func_create_megatestdir): Use func_execute_command.
36788
36789 2007-09-08  Bruno Haible  <bruno@clisp.org>
36790
36791         * gnulib-tool (func_import): Prefer rsync over wget when available,
36792         for fetching the PO files.
36793
36794 2007-09-08  Bruno Haible  <bruno@clisp.org>
36795
36796         * posix-modules: New file. Portions copied from gnulib-tool.
36797         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
36798
36799 2007-09-08  Jim Meyering  <jim@meyering.net>
36800
36801         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
36802         * lib/fpending.h: Rename from __fpending.h.
36803         * lib/fpending.c: Rename from __fpending.c.
36804         Include "fpending.h", not "__fpending.h".
36805         * lib/__fpending.h, lib/__fpending.c: Remove files.
36806         * modules/fpending (Files): Reflect new file names.
36807         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
36808
36809 2007-09-08  Bruno Haible  <bruno@clisp.org>
36810
36811         * m4/inttypes-h.m4: Remove stub file.
36812
36813 2007-09-07  Simon Josefsson  <simon@josefsson.org>
36814
36815         * doc/headers/stdint.texi: Discuss #include_next issue.
36816
36817 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36818
36819         * build-aux/bootstrap: Remove obsolete comment about wget --help.
36820
36821 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36822
36823         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
36824         in variable name.
36825
36826 2007-09-03  Jim Meyering  <jim@meyering.net>
36827
36828         New module: git-version-gen.
36829         * modules/git-version-gen: New file.
36830
36831         Import changes from coreutils for bootstrap script.
36832
36833         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
36834
36835         bootstrap: uses rsync to download the .po files
36836         * build-aux/bootstrap (po_download_command_format): New global.
36837         (download_po_files): Use rsync.
36838         (update_po_files): Don't remove .po files after download,
36839         so future rsync runs can take advantage of the copies.
36840
36841         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
36842
36843         Solve the unnecessary-.po-file-regeneration problem once and for all.
36844         * build-aux/bootstrap (download_po_files): New function, renamed from
36845         get_translations.  Now, downloads, but doesn't update LINGUAS.
36846         (update_po_files): New function.
36847
36848         bootstrap: Ignore more.
36849         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
36850         uniwidth to e.g., lib/.gitignore.
36851         (slurp): Handle the sys_stat_.h -> sys mapping, too.
36852
36853         * build-aux/bootstrap: New setting: vc_ignore.
36854         (insert_sorted_if_absent): Create $file if absent.
36855         Adapt to new, possibly empty, list: $vc_ignore.
36856
36857         bootstrap: generate more ignorable names
36858         * build-aux/bootstrap (slurp): When generating ignorable names,
36859         also map .sin to .sed, .gperf to .c, and .y to .c.
36860
36861 2007-09-03  Jim Meyering  <jim@meyering.net>
36862
36863         * build-aux/git-version-gen: New file, from coreutils.  For details, see
36864         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
36865
36866 2007-09-02  Bruno Haible  <bruno@clisp.org>
36867
36868         Fix mis-recognition of 'mcs' on QNX 6.
36869         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
36870         output contains the string "Mono".
36871         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
36872         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
36873
36874 2007-09-01  Bruno Haible  <bruno@clisp.org>
36875
36876         Fix collision between uniwidth/* and linebreak modules.
36877         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
36878         u32_width): Remove declarations.
36879         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
36880         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
36881         streq3, streq2, streq1, streq0): Remove functions.
36882         (STREQ): Remove macro.
36883         (is_cjk_encoding): Remove function.
36884         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
36885         (uc_width, u8_width, u16_width, u32_width): Remove functions.
36886         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
36887         * NEWS: Document the change.
36888
36889 2007-09-01  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/streq.h: Add double-inclusion guard.
36892
36893 2007-09-01  Karl Berry  <karl@gnu.org>
36894
36895         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
36896
36897 2007-08-28  Jim Meyering  <jim@meyering.net>
36898
36899         Rename mreadlink_with_size to areadlink_with_size.
36900         * NEWS: Document the change.
36901         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
36902         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
36903         * lib/mreadlink.h: Rename this to...
36904         * lib/areadlink.h: ...this.
36905         * modules/mreadlink-with-size: Rename this to...
36906         * modules/areadlink-with-size: ...this.
36907         * lib/canonicalize.c: Reflect the renaming.
36908         * modules/canonicalize: Likewise.
36909
36910 2007-08-26  Bruno Haible  <bruno@clisp.org>
36911
36912         * gnulib-tool (func_import): When deciding which files to remove,
36913         consider also dangling symbolic links.
36914         Reported by Eric Blake.
36915
36916 2007-08-26  Bruno Haible  <bruno@clisp.org>
36917
36918         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
36919
36920 2007-08-23  Simon Josefsson  <simon@josefsson.org>
36921
36922         * lib/readline.c: Don't include getline.h, the prototype is now
36923         found in stdio.h.
36924
36925 2007-08-23  Jim Meyering  <jim@meyering.net>
36926
36927         Getdelim touchup.
36928         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
36929         around the funlockfile call, since funlockfile never sets errno.
36930         Don't set errno upon failed realloc.
36931
36932 2007-08-22  Eric Blake  <ebb9@byu.net>
36933
36934         Getline touchups.
36935         * lib/getdelim.c (getdelim): Revert regression that required *n to
36936         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
36937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
36938         getdelim, rather than whether implementation is missing.
36939         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
36940         * lib/stdio_.h (getline): Also declare if replacement is
36941         required.
36942         * doc/functions/getdelim.texi: New file.
36943         * doc/functions/getline.texi: Likewise.
36944         * doc/gnulib.texi (Function Substitutes): Add new files.
36945         Reported by Bruno Haible.
36946
36947 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
36948
36949         * users.txt: Add Guile.
36950
36951 2007-08-22  Eric Blake  <ebb9@byu.net>
36952
36953         * tests/test-getdelim.c (main): Use remove, not unlink.
36954         * tests/test-getline.c (main): Likewise.
36955
36956         Move getline and getdelim into stdio.h, per POSIX 200x.
36957         * modules/getline (Files): Remove getline.h.
36958         (Depends-on): Add stdio.
36959         (configure.ac): Add module indicator.
36960         * modules/getdelim (Files): Remove getdelim.h.
36961         (Depends-on): Add stdio.
36962         (configure.ac): Add module indicator.
36963         * modules/stdio (Makefile.am): Work with new indicators.
36964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36965         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
36966         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36967         * lib/getdelim.h: Delete.
36968         * lib/getline.h: Delete.
36969         * lib/stdio_.h (getdelim, getline): Declare.
36970         * modules/getdelim-tests: New module.
36971         * modules/getline-tests: Likewise.
36972         * tests/test-getdelim.c: New file.
36973         * tests/test-getline.c: Likewise.
36974         * NEWS: Document the change.
36975         * lib/getline.c: Update choice of header.
36976         * lib/csharpcomp.c: Likewise.
36977         * lib/getpass.c: Likewise.
36978         * lib/javacomp.c: Likewise.
36979         * lib/javaversion.c: Likewise.
36980         * lib/yesno.c: Likewise.
36981         * lib/getdelim.c: Likewise.
36982         (getdelim): Set errno on failure, and avoid memory leak.
36983
36984 2007-08-19  Bruno Haible  <bruno@clisp.org>
36985
36986         * modules/closein (Depends-on): Add freadahead.
36987         * lib/closein.c: Include freadahead.h.
36988         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
36989         is zero.
36990
36991 2007-08-19  Bruno Haible  <bruno@clisp.org>
36992
36993         * modules/freadahead-tests: New file.
36994         * tests/test-freadahead.sh: New file.
36995         * tests/test-freadahead.c: New file.
36996
36997         * modules/freadahead: New file.
36998         * lib/freadahead.h: New file.
36999         * lib/freadahead.c: New file.
37000         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37001         fbufmode, fpurge, freadable, fwritable.
37002
37003 2007-08-19  Eric Blake  <ebb9@byu.net>
37004
37005         Test yesno in combination with closein.
37006         * lib/yesno.c (yesno): Document use of stdin.
37007         * modules/yesno-tests (Files): New module.
37008         * tests/test-yesno.c (main): New file.
37009         * tests/test-yesno.sh: Likewise.
37010
37011 2007-08-19  Bruno Haible  <bruno@clisp.org>
37012
37013         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37014         * lib/fseeko.c (rpl_fseeko): Likewise.
37015         * lib/fseterr.c (fseterr): Likewise.
37016
37017 2007-08-19  Bruno Haible  <bruno@clisp.org>
37018
37019         * tests/test-lseek.c (main): Disable a test for BeOS.
37020         * doc/functions/lseek.texi: Document the BeOS bug.
37021
37022 2007-08-19  Bruno Haible  <bruno@clisp.org>
37023             Eric Blake  <ebb9@byu.net>
37024
37025         * lib/lseek.c: Include <sys/stat.h>.
37026         (rpl_lseek): Add workaround code also for Unix platforms.
37027         Needed for BeOS.
37028         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37029         * doc/functions/lseek.texi: Document BeOS definiency.
37030
37031 2007-08-18  Bruno Haible  <bruno@clisp.org>
37032
37033         * modules/fstrcmp-tests: New file.
37034         * tests/test-fstrcmp.c: New file.
37035
37036 2007-08-18  Bruno Haible  <bruno@clisp.org>
37037
37038         * modules/fstrcmp: New file, from GNU gettext with modifications.
37039         * lib/fstrcmp.h: New file, from GNU gettext.
37040         * lib/fstrcmp.c: New file, from GNU gettext.
37041         * MODULES.html.sh (String handling): Add fstrcmp.
37042
37043 2007-08-18  Bruno Haible  <bruno@clisp.org>
37044
37045         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37046         'bool'.
37047         (diag, compareseq): Remove const from the ctxt argument.
37048         (USE_HEURISTIC): Undefine at the end.
37049
37050 2007-08-18  Jim Meyering  <jim@meyering.net>
37051
37052         New file: lib/idcache.h
37053         * NEWS: Mention the addition.
37054         * modules/idcache (Files): Add lib/idcache.h
37055         * lib/idcache.c: Include "idcache.h".
37056         Don't include <sys/types.h>.
37057         Add a FIXME comment.
37058         Move file-scoped "static" declarations to the top.
37059         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37060
37061 2007-08-17  Bruno Haible  <bruno@clisp.org>
37062         and Paul Eggert  <eggert@cs.ucla.edu>
37063
37064         * MODULES.html.sh: Add diffseq.
37065         * modules/diffseq: New file.
37066         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37067         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37068
37069 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37070
37071         Import changes from coreutils for bootstrap script.
37072
37073         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37074
37075         * build-aux/bootstrap (slurp): Work even in environments where
37076         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37077         current code does not slurp files whose names start with ".", and
37078         this looks like it might be a troublesome area.
37079
37080         2007-07-11  Jim Meyering  <jim@meyering.net>
37081
37082         If there's a GPL vN copyright comment, require that N == 3.
37083
37084         2007-07-08  Jim Meyering  <jim@meyering.net>
37085
37086         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37087         * build-aux/bootstrap (mam_template): Move definition out of loop.
37088
37089         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37090
37091         * build-aux/bootstrap (symlink_to_dir): Rename function from
37092         symlink_to_gnulib.  Add a directory parameter.  Update all
37093         callers.
37094         (cp_mark_as_generated): Also check for -- and link to -- files in
37095         gl/.
37096
37097         2007-07-08  Jim Meyering  <jim@meyering.net>
37098
37099         Adapt to deeper hierarchy in gnulib.
37100         * build-aux/bootstrap (symlink_to_dir): If the destination
37101         directory doesn't exist, create it. This is required at least for
37102         "lib/uniwidth/cjk.h".
37103
37104         2007-05-15  Jim Meyering  <jim@meyering.net>
37105
37106         * build-aux/bootstrap: Now that generated Makefile.am files
37107         are no longer under version control, they must be created at
37108         bootstrap time.
37109
37110 2007-08-14  Ben Pfaff  <blp@gnu.org>
37111
37112         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37113
37114 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37115
37116         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37117         given the changes below.
37118         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37119         even on hosts that have padding bits beyond the supported 64.
37120
37121 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37122
37123         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37124         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37125         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37126         depends on it.
37127         (xstrtol_error): Remove.
37128         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37129         but with a different signature.
37130         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37131         * lib/xstrtol-error.c: Include exitfail.h.
37132         (xstrtol_fatal): New function, with a different signature from the
37133         old xstrtol_error, so that the caller need not worry about passing
37134         in an exit status, or about storage management of the option argument.
37135         (xstrtol_error): Now a static function.  Redo signature to
37136         implement xstrtol_fatal.  Output the correct number of hyphens in
37137         front of the option so that the caller need not worry about
37138         storage management.
37139         (N_): New macro.
37140         (_): Remove; not used now.
37141         * modules/xstrtol: Depend on getopt.
37142         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37143         of old STRTOL_FATAL_ERROR macro.
37144         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37145         of test program.
37146         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37147         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37148
37149 2007-08-08  Eric Blake  <ebb9@byu.net>
37150
37151         * lib/xstrtol-error.c: Add missing include.
37152
37153         Move xstrtol messages into gnulib domain, when --pobase is used.
37154         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37155         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37156         * modules/xstrtol (Files): Distribute new file.
37157         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37158         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37159         * tests/test-xstrtol.c: ...into new file.
37160         * tests/test-xstrtoul.c: Also test xstrtoul.
37161         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37162         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37163         * tests/test-xstrtol.sh: Drive the tests.
37164         * tests/test-xstrtoimax.sh: Likewise.
37165         * tests/test-xstrtoumax.sh: Likewise.
37166         * modules/xstrtol-tests: New module.
37167         * modules/xstrtoimax-tests: Likewise.
37168         * modules/xstrtoumax-tests: Likewise.
37169
37170 2007-08-08  Jim Meyering  <jim@meyering.net>
37171
37172         New function: mfile_name_concat.
37173         * lib/filenamecat.c (mfile_name_concat): New function, just like
37174         file_name_concat, but return NULL upon failure rather than exiting
37175         with a diagnostic.
37176         * lib/filenamecat.h: Declare it.
37177
37178 2007-08-07  Bruno Haible  <bruno@clisp.org>
37179
37180         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37181         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37182         warning from gcc.
37183         Reported by Eric Blake.
37184
37185 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37186
37187         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37188         * modules/crypto/arcfour (License): Likewise.
37189         * modules/crypto/des-tests (License): Likewise.
37190         * modules/crypto/gc-arctwo-tests (License): Likewise.
37191         * modules/crypto/gc-des-tests (License): Likewise.
37192         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37193         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37194         * modules/crypto/gc-md2-tests (License): Likewise.
37195         * modules/crypto/gc-md4-tests (License): Likewise.
37196         * modules/crypto/gc-md5-tests (License): Likewise.
37197         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37198         * modules/crypto/gc-rijndael-tests (License): Likewise.
37199         * modules/crypto/gc-sha1-tests (License): Likewise.
37200         * modules/crypto/gc-tests (License): Likewise.
37201         * modules/crypto/hmac-md5 (License): Likewise.
37202         * modules/crypto/hmac-sha1 (License): Likewise.
37203         * modules/crypto/md2-tests (License): Likewise.
37204         * modules/crypto/md4-tests (License): Likewise.
37205         * modules/crypto/md5 (License): Likewise.
37206         * modules/crypto/rijndael (License): Likewise.
37207         * modules/crypto/sha1 (License): Likewise.
37208         * modules/memxor (License): Likewise.
37209
37210 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37211         and Bruno Haible  <bruno@clisp.org>
37212
37213         * NEWS: Describe interface changes to human, xstrtol.
37214         * lib/human.h: Include <xstrtol.h>.
37215         (human_options): Return enum strtol_error, not int.  Remove
37216         bool arg; take int * instead.
37217         * lib/human.c: Don't include "gettext.h".
37218         (_): Remove; no longer used.
37219         Don't include <xstrtol.h>, since human.h does it.
37220         (human_options): Adjust to abovementioned interface changes.
37221         Do not report error to stderr; that's now the caller's
37222         responsibility.
37223         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37224         interface change.
37225         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37226         Str, Argument_type_string.  All uses changed.  Put " argument"
37227         in diagnostics to make them clearer.  Change wording of suffix
37228         message for clarity.
37229         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37230         Argument_type_string.
37231         (STRTOL_FATAL_WARN): Remove; no longer used.
37232         * modules/human (Depends-on): Remove gettext-h.
37233
37234 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37235
37236         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37237
37238 2007-07-31  Bruno Haible  <bruno@clisp.org>
37239
37240         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37241         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37242         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37243
37244 2007-07-31  Bruno Haible  <bruno@clisp.org>
37245
37246         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37247         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37248
37249 2007-07-30  Bruno Haible  <bruno@clisp.org>
37250
37251         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37252         * modules/c-ctype (License): Likewise.
37253         * modules/c-strcase (License): Likewise.
37254         * modules/check-version (License): Likewise.
37255         * modules/iconv (License): Likewise.
37256         * modules/iconv_open (License): Likewise.
37257         * modules/read-file (License): Likewise.
37258         * modules/striconv (License): Likewise.
37259         * modules/strverscmp (License): Likewise.
37260         * modules/vasprintf (License): Likewise.
37261         * modules/crypto/des (License): Likewise.
37262         * modules/crypto/gc (License): Likewise.
37263         * modules/crypto/gc-arcfour (License): Likewise.
37264         * modules/crypto/gc-arctwo (License): Likewise.
37265         * modules/crypto/gc-des (License): Likewise.
37266         * modules/crypto/gc-hmac-md5 (License): Likewise.
37267         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37268         * modules/crypto/gc-md2 (License): Likewise.
37269         * modules/crypto/gc-md4 (License): Likewise.
37270         * modules/crypto/gc-md5 (License): Likewise.
37271         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37272         * modules/crypto/gc-random (License): Likewise.
37273         * modules/crypto/gc-rijndael (License): Likewise.
37274         * modules/crypto/gc-sha1 (License): Likewise.
37275         * modules/crypto/md2 (License): Likewise.
37276         * modules/crypto/md4 (License): Likewise.
37277
37278 2007-07-30  Jim Meyering  <jim@meyering.net>
37279
37280         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37281         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37282         it has valid stat data.  This bug would cause du not to count the
37283         sizes of inaccessible directories.
37284         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37285         in <http://bugzilla.redhat.com/250077>.
37286
37287 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37288             Bruno Haible  <bruno@clisp.org>
37289
37290         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37291         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37292         #include_next, gives a diagnostic about it, but reports no error in
37293         the exit code.
37294         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37295
37296 2007-07-24  Ben Pfaff  <blp@gnu.org>
37297
37298         Improve name: "count-one-bits" is better than "popcount".
37299         * MODULES.html.sh: Update name.
37300         * lib/popcount.h: Renamed lib/count-one-bits.h.
37301         (popcount): Renamed count_one_bits.
37302         (popcountl): Renamed count_one_bits_l.
37303         (popcountll): Renamed count_one_bits_ll.
37304         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37305         * modules/popcount: Renamed module/count-one-bits.
37306         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37307         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37308
37309 2007-07-23  Ben Pfaff  <blp@gnu.org>
37310
37311         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37312         better code generation, and add U to large constants to avoid
37313         warnings, in non-GCC case.
37314         Suggested by Bruno Haible.
37315
37316 2007-07-23  Ben Pfaff  <blp@gnu.org>
37317
37318         * lib/popcount.h: Use verify_true instead of if...abort.
37319         * modules/popcount: Depend on verify module.
37320         Suggested by Jim Meyering.
37321
37322 2007-07-23  Bruno Haible  <bruno@clisp.org>
37323
37324         * gnulib-tool (func_import): Create a .cvsignore file also when the
37325         directory is not yet in CVS but the toplevel directory is. When
37326         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37327         Reported by Karl Berry.
37328
37329 2007-07-22  Ben Pfaff  <blp@gnu.org>
37330
37331         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37332         case.
37333         Suggested by Eric Blake.
37334
37335 2007-07-22  Ben Pfaff  <blp@gnu.org>
37336
37337         New module: popcount.
37338         * MODULES.html.sh: Add popcount.
37339         * modules/popcount: New file.
37340         * modules/popcount-tests: New file.
37341         * tests/test-popcount.c: New file.
37342         * lib/popcount.h: New file.
37343         * m4/popcount.m4: New file.
37344
37345 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37346
37347         * build-aux/announce-gen: Update to GPLv3.
37348
37349         * build-aux/config.guess: Update from config.
37350
37351 2007-07-21  Bruno Haible  <bruno@clisp.org>
37352
37353         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37354         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37355
37356 2007-07-20  Jim Meyering  <jim@meyering.net>
37357
37358         * check-module: Diagnose a self-dependency.
37359
37360 2007-07-19  Bruno Haible  <bruno@clisp.org>
37361
37362         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37363         empty.
37364         Reported by Eric Blake.
37365
37366 2007-07-18  Bruno Haible  <bruno@clisp.org>
37367
37368         * gnulib-tool: New options --po-base, --po-domain.
37369         (func_usage): Document them.
37370         (pobase, po_domain): New variables.
37371         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37372         DEFAULT_TEXT_DOMAIN.
37373         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37374         (func_import): Consider pobase and po_domain. Create a po/ directory.
37375         (func_create_testdir): Set pobase and po_domain to empty.
37376         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37377         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37378
37379 2007-07-18  Bruno Haible  <bruno@clisp.org>
37380
37381         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37382         EXTRA_DIST augmentation for files in build-aux/.
37383
37384 2007-07-16  Bruno Haible  <bruno@clisp.org>
37385
37386         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37387         * modules/getdelim (License): Likewise.
37388
37389 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37390
37391         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37392         * modules/d-type (License): Likewise.
37393         * modules/extensions (License): Likewise.
37394         * modules/fnmatch (License): Likewise.
37395         * modules/fseeko (License): Likewise.
37396         * modules/getaddrinfo (License): Likewise.
37397         * modules/getline (License): Likewise.
37398         * modules/getlogin_r (License): Likewise.
37399         * modules/getpass (License): Likewise.
37400         * modules/gettimeofday (License): Likewise.
37401         * modules/glob (License): Likewise.
37402         * modules/inet_ntop (License): Likewise.
37403         * modules/malloc (License): Likewise.
37404         * modules/malloca (License): Likewise.
37405         * modules/memmem (License): Likewise.
37406         * modules/mempcpy (License): Likewise.
37407         * modules/memset (License): Likewise.
37408         * modules/minmax (License): Likewise.
37409         * modules/mktime (License): Likewise.
37410         * modules/netinet_in (License): Likewise.
37411         * modules/pathmax (License): Likewise.
37412         * modules/poll (License): Likewise.
37413         * modules/regex (License): Likewise.
37414         * modules/snprintf (License): Likewise.
37415         * modules/stdbool (License): Likewise.
37416         * modules/stdint (License): Likewise.
37417         * modules/stdio (License): Likewise.
37418         * modules/strcase (License): Likewise.
37419         * modules/strcasestr (License): Likewise.
37420         * modules/strdup (License): Likewise.
37421         * modules/string (License): Likewise.
37422         * modules/strndup (License): Likewise.
37423         * modules/strnlen (License): Likewise.
37424         * modules/strpbrk (License): Likewise.
37425         * modules/strptime (License): Likewise.
37426         * modules/strsep (License): Likewise.
37427         * modules/sys_select (License): Likewise.
37428         * modules/sys_socket (License): Likewise.
37429         * modules/sys_stat (License): Likewise.
37430         * modules/sys_time (License): Likewise.
37431         * modules/time (License): Likewise.
37432         * modules/time_r (License): Likewise.
37433         * modules/timegm (License): Likewise.
37434         * modules/unistd (License): Likewise.
37435         * modules/vsnprintf (License): Likewise.
37436         * modules/wctype (License): Likewise.
37437
37438 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37439
37440         * modules/argz (License): LGPLv2+.
37441
37442 2007-07-15  Karl Berry  <karl@gnu.org>
37443
37444         * doc/gnulib.texi: revise node structure per new fdl.texi.
37445
37446 2007-07-14  Bruno Haible  <bruno@clisp.org>
37447
37448         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37449         the output file.
37450         * lib/uniname/uninames.h: Regenerated.
37451
37452 2007-07-14  Karl Berry  <karl@gnu.org>
37453
37454         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37455         omitting sectioning and index commands.
37456
37457 2007-07-13  Bruno Haible  <bruno@clisp.org>
37458
37459         New gnulib-tool option --more-symlinks.
37460         * gnulib-tool (func_usage): Document --more-symlinks.
37461         (do_copyrights): New variable.
37462         Recognize option --more-symlinks.
37463         (func_import): Don't add a copyright notice transform to
37464         sed_transform_lib_file if do_copyrights is empty.
37465
37466 2007-07-13  Bruno Haible  <bruno@clisp.org>
37467
37468         * lib/vasnprintf.c (decimal_point_char): Define also if
37469         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37470         && !NEED_PRINTF_DIRECTIVE_A.
37471         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37472         Gary V. Vaughan <gary@gnu.org>.
37473
37474 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37475
37476         * lib/inttypes_.h: Undo previous change, since it was fixed
37477         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37478
37479 2007-07-13  Bruno Haible  <bruno@clisp.org>
37480
37481         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37482         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37483
37484 2007-07-13  Jim Meyering  <jim@meyering.net>
37485
37486         df: Don't fail for Tru64's "file-on-file mount".
37487         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37488         so we fall through and use statfs instead.  Details here:
37489         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37490         Reported by Albert Chin.
37491
37492 2007-07-13  Bruno Haible  <bruno@clisp.org>
37493
37494         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37495         * modules/configmake (License): Likewise.
37496         * modules/gettext (License): Likewise.
37497         * modules/gettext-h (License): Likewise.
37498         * modules/include_next (License): Likewise.
37499         * modules/link-warning (License): Likewise.
37500         * modules/localcharset (License): Likewise.
37501         * modules/localename (License): Likewise.
37502         * modules/lock (License): Likewise.
37503         * modules/relocatable-lib-lgpl (License): Likewise.
37504         * modules/size_max (License): Likewise.
37505         * modules/vasnprintf (License): Likewise.
37506         * modules/wchar (License): Likewise.
37507         * modules/xsize (License): Likewise.
37508
37509 2007-07-13  Bruno Haible  <bruno@clisp.org>
37510
37511         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37512         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37513
37514 2007-07-12  Bruno Haible  <bruno@clisp.org>
37515
37516         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37517         in the modules files.
37518
37519 2007-07-11  Karl Berry  <karl@gnu.org>
37520
37521         * MODULES.html.sh (func_module): use
37522          sed -e '\|^'"${includefile}"'$|d'
37523          instead of /.../d, to avoid errors on $includefile's containing /.
37524
37525 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37526
37527         * gnulib-tool (func_import): Avoid duplication of --avoid
37528         statements
37529         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37530         names to `_' in variable names.
37531
37532 2007-07-10  Eric Blake  <ebb9@byu.net>
37533
37534         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37535         * NEWS: Document this change.
37536
37537 2007-07-08  Bruno Haible  <bruno@clisp.org>
37538
37539         Update to Unicode 5.0.
37540         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37541         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37542         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37543         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37544         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37545         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37546         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37547         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
37548         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
37549         U+10A3F, U+1D242..U+1D244.
37550         (nonspacing_table_ind): Update.
37551         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
37552         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
37553
37554 2007-07-08  Bruno Haible  <bruno@clisp.org>
37555
37556         Update to Unicode 5.0.
37557         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
37558         code transform. Extend the name index field of unicode_name_to_code and
37559         unicode_code_to_name from 16 to 24 bits.
37560         * lib/uniname/uniname.c (unicode_character_name,
37561         unicode_name_character): Add the range 0x12xxx to the code transform.
37562         * lib/uniname/uninames.h: Regenerated.
37563         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
37564
37565 2007-07-07  Bruno Haible  <bruno@clisp.org>
37566
37567         * modules/wcwidth-tests: New file.
37568         * tests/test-wcwidth.c: New file.
37569
37570         Work around MacOS X wcwidth() bug.
37571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
37572         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
37573         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
37574         original wcwidth in non-UTF-8 locales.
37575         * modules/wcwidth (Depends-on): Add localcharset, streq,
37576         uniwidth/width.
37577         * doc/functions/wcwidth.texi: Update.
37578
37579 2007-07-07  Bruno Haible  <bruno@clisp.org>
37580
37581         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
37582         (wcwidth): New declaration.
37583         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
37584         macros.
37585         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
37586         here. Prepare for creating <wchar.h> unconditionally.
37587         * modules/wchar (Depends-on): Add link-warning.
37588         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
37589         REPLACE_WCWIDTH, and GL_LINK_WARNING.
37590         * lib/wcwidth.h: Remove file.
37591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
37592         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
37593         * modules/wcwidth (Files): Remove lib/wcwidth.h.
37594         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
37595         (Include): Replace wcwidth.h with <wchar.h>.
37596         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
37597         * lib/mbchar.h: Don't include wcwidth.h.
37598         * lib/mbswidth.c: Likewise.
37599         * NEWS: Mention the change.
37600
37601 2007-07-07  Bruno Haible  <bruno@clisp.org>
37602
37603         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
37604         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
37605         definition with an external declaration.
37606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
37607         defined as a function. Remove AC_C_INLINE requirement.
37608         * modules/wcwidth (Files): Add lib/wcwidth.c.
37609         (Makefile.am): Remove redundant statement.
37610
37611 2007-07-07  Bruno Haible  <bruno@clisp.org>
37612
37613         * MODULES.html.sh (Unicode string functions): Add the new modules.
37614
37615         * tests/uniwidth/test-u32-strwidth.c: New file.
37616         * modules/uniwidth/u32-strwidth-tests: New file.
37617
37618         * lib/uniwidth/u32-strwidth.c: New file.
37619         * modules/uniwidth/u32-strwidth: New file.
37620
37621         * tests/uniwidth/test-u16-strwidth.c: New file.
37622         * modules/uniwidth/u16-strwidth-tests: New file.
37623
37624         * lib/uniwidth/u16-strwidth.c: New file.
37625         * modules/uniwidth/u16-strwidth: New file.
37626
37627         * tests/uniwidth/test-u8-strwidth.c: New file.
37628         * modules/uniwidth/u8-strwidth-tests: New file.
37629
37630         * lib/uniwidth/u8-strwidth.c: New file.
37631         * modules/uniwidth/u8-strwidth: New file.
37632
37633         * tests/uniwidth/test-u32-width.c: New file.
37634         * modules/uniwidth/u32-width-tests: New file.
37635
37636         * lib/uniwidth/u32-width.c: New file.
37637         * modules/uniwidth/u32-width: New file.
37638
37639         * tests/uniwidth/test-u16-width.c: New file.
37640         * modules/uniwidth/u16-width-tests: New file.
37641
37642         * lib/uniwidth/u16-width.c: New file.
37643         * modules/uniwidth/u16-width: New file.
37644
37645         * tests/uniwidth/test-u8-width.c: New file.
37646         * modules/uniwidth/u8-width-tests: New file.
37647
37648         * lib/uniwidth/u8-width.c: New file.
37649         * modules/uniwidth/u8-width: New file.
37650
37651         * tests/uniwidth/test-uc_width.c: New file.
37652         * modules/uniwidth/width-tests: New file.
37653
37654         * lib/uniwidth/width.c: New file, from GNU libiconv.
37655         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
37656         * modules/uniwidth/width: New file.
37657
37658         * lib/uniwidth.h: New file, from GNU libiconv.
37659         * modules/uniwidth/base: New file.
37660
37661 2007-07-07  Bruno Haible  <bruno@clisp.org>
37662
37663         * lib/uniname.h: New file, from GNU gettext.
37664         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
37665         * lib/uniname/uninames.h: New file, from GNU gettext.
37666         * lib/uniname/uniname.c: New file, from GNU gettext.
37667         * tests/uniname/test-uninames.sh: New file.
37668         * tests/uniname/test-uninames.c: New file, from GNU gettext.
37669         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
37670         * modules/uniname/base: New file.
37671         * modules/uniname/uniname: New file.
37672         * modules/uniname/uniname-tests: New file.
37673         * MODULES.html.sh (Unicode string functions): Add the new modules.
37674
37675 2007-07-06  Bruno Haible  <bruno@clisp.org>
37676
37677         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
37678
37679 2007-07-06  Bruno Haible  <bruno@clisp.org>
37680
37681         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
37682         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
37683         includes <cygwin/sys_time.h> which includes <sys/select.h> which
37684         include <sys/time.h>.
37685         Reported by Eric Blake.
37686
37687 2007-07-06  Eric Blake  <ebb9@byu.net>
37688
37689         Fix testing canonicalize on cygwin.
37690         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37691         Revert patch from 2007-06-19.
37692         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
37693         canonicalize module is also in use.
37694         * tests/test-canonicalize.c: New file.
37695         * tests/test-canonicalize.sh: Likewise.
37696         * modules/canonicalize-tests: Likewise.
37697
37698 2007-07-06  Jim Meyering  <jim@meyering.net>
37699
37700         * lib/getugroups.c (getugroups): Detect getgrent failure.
37701         Adjust comment to reflect reality: this function may return -1.
37702
37703 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37704
37705         * build-aux/bootstrap (TP_URL,get_translations): Update to use
37706         the new TP address.
37707         (usage): Fix typo
37708         (gnulib_mk): New variable.
37709
37710 2007-07-05  Jim Meyering  <jim@meyering.net>
37711
37712         Don't let endgrent clobber errno, no matter how improbable.
37713         * lib/getugroups.c (getugroups): Save and restore errno around
37714         endgrent call.
37715
37716         Close the group DB even when failing with 2^31 or more members.
37717         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
37718
37719 2007-07-04  Jim Meyering  <jim@meyering.net>
37720
37721         * lib/getugroups.h: New file.
37722         * lib/getugroups.c: Include "getugroups.h".
37723         Remove uses of "register" keyword.
37724         Move local variable, "cp", down into scope where used.
37725         Give "username" parameter the "const" attribute.
37726         * modules/getugroups (Files): Add lib/getugroups.h
37727
37728 2007-07-04  Karl Berry  <karl@gnu.org>
37729
37730         * MODULES.html.sh (func_all_modules): Complete rename of
37731         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
37732
37733 2007-07-02  Bruno Haible  <bruno@clisp.org>
37734
37735         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
37736         mode, when inttypes.h comes from gnulib.
37737         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37738
37739 2007-07-02  Simon Josefsson  <simon@josefsson.org>
37740
37741         * NEWS: Mention lgpl module name change.
37742
37743         * modules/lgpl-2.1: Renamed from lgpl.
37744
37745         * NEWS: Mention gpl module name change.
37746
37747         * modules/gpl-3.0: New file, based on gpl-2.0.
37748
37749         * modules/gpl-2.0: Renamed from gpl.
37750
37751         * modules/gpl: Fix filename, doc/gpl.texi is now found at
37752         doc/gpl-2.0.texi.
37753
37754 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37755
37756         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
37757         #define __STDC_LIMIT_MACROS temporarily while including
37758         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
37759         Problem reported by Joel E. Denny in
37760         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
37761
37762 2007-07-01  Bruno Haible  <bruno@clisp.org>
37763
37764         * lib/unistdio.h: New file.
37765         * lib/unistdio/u-asnprintf.h: New file.
37766         * lib/unistdio/u-asprintf.h: New file.
37767         * lib/unistdio/u-printf-args.c: New file.
37768         * lib/unistdio/u-printf-args.h: New file.
37769         * lib/unistdio/u-printf-parse.h: New file.
37770         * lib/unistdio/u-snprintf.h: New file.
37771         * lib/unistdio/u-sprintf.h: New file.
37772         * lib/unistdio/u-vasprintf.h: New file.
37773         * lib/unistdio/u-vsnprintf.h: New file.
37774         * lib/unistdio/u-vsprintf.h: New file.
37775         * lib/unistdio/ulc-asnprintf.c: New file.
37776         * lib/unistdio/ulc-asprintf.c: New file.
37777         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
37778         * lib/unistdio/ulc-printf-parse.c: New file.
37779         * lib/unistdio/ulc-snprintf.c: New file.
37780         * lib/unistdio/ulc-sprintf.c: New file.
37781         * lib/unistdio/ulc-vasnprintf.c: New file.
37782         * lib/unistdio/ulc-vasprintf.c: New file.
37783         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
37784         * lib/unistdio/ulc-vsnprintf.c: New file.
37785         * lib/unistdio/ulc-vsprintf.c: New file.
37786         * lib/unistdio/u8-asnprintf.c: New file.
37787         * lib/unistdio/u8-asprintf.c: New file.
37788         * lib/unistdio/u8-printf-parse.c: New file.
37789         * lib/unistdio/u8-snprintf.c: New file.
37790         * lib/unistdio/u8-sprintf.c: New file.
37791         * lib/unistdio/u8-vasnprintf.c: New file.
37792         * lib/unistdio/u8-vasprintf.c: New file.
37793         * lib/unistdio/u8-vsnprintf.c: New file.
37794         * lib/unistdio/u8-vsprintf.c: New file.
37795         * lib/unistdio/u8-u8-asnprintf.c: New file.
37796         * lib/unistdio/u8-u8-asprintf.c: New file.
37797         * lib/unistdio/u8-u8-snprintf.c: New file.
37798         * lib/unistdio/u8-u8-sprintf.c: New file.
37799         * lib/unistdio/u8-u8-vasnprintf.c: New file.
37800         * lib/unistdio/u8-u8-vasprintf.c: New file.
37801         * lib/unistdio/u8-u8-vsnprintf.c: New file.
37802         * lib/unistdio/u8-u8-vsprintf.c: New file.
37803         * lib/unistdio/u16-asnprintf.c: New file.
37804         * lib/unistdio/u16-asprintf.c: New file.
37805         * lib/unistdio/u16-printf-parse.c: New file.
37806         * lib/unistdio/u16-snprintf.c: New file.
37807         * lib/unistdio/u16-sprintf.c: New file.
37808         * lib/unistdio/u16-vasnprintf.c: New file.
37809         * lib/unistdio/u16-vasprintf.c: New file.
37810         * lib/unistdio/u16-vsnprintf.c: New file.
37811         * lib/unistdio/u16-vsprintf.c: New file.
37812         * lib/unistdio/u16-u16-asnprintf.c: New file.
37813         * lib/unistdio/u16-u16-asprintf.c: New file.
37814         * lib/unistdio/u16-u16-snprintf.c: New file.
37815         * lib/unistdio/u16-u16-sprintf.c: New file.
37816         * lib/unistdio/u16-u16-vasnprintf.c: New file.
37817         * lib/unistdio/u16-u16-vasprintf.c: New file.
37818         * lib/unistdio/u16-u16-vsnprintf.c: New file.
37819         * lib/unistdio/u16-u16-vsprintf.c: New file.
37820         * lib/unistdio/u32-asnprintf.c: New file.
37821         * lib/unistdio/u32-asprintf.c: New file.
37822         * lib/unistdio/u32-printf-parse.c: New file.
37823         * lib/unistdio/u32-snprintf.c: New file.
37824         * lib/unistdio/u32-sprintf.c: New file.
37825         * lib/unistdio/u32-vasnprintf.c: New file.
37826         * lib/unistdio/u32-vasprintf.c: New file.
37827         * lib/unistdio/u32-vsnprintf.c: New file.
37828         * lib/unistdio/u32-vsprintf.c: New file.
37829         * lib/unistdio/u32-u32-asnprintf.c: New file.
37830         * lib/unistdio/u32-u32-asprintf.c: New file.
37831         * lib/unistdio/u32-u32-snprintf.c: New file.
37832         * lib/unistdio/u32-u32-sprintf.c: New file.
37833         * lib/unistdio/u32-u32-vasnprintf.c: New file.
37834         * lib/unistdio/u32-u32-vasprintf.c: New file.
37835         * lib/unistdio/u32-u32-vsnprintf.c: New file.
37836         * lib/unistdio/u32-u32-vsprintf.c: New file.
37837         * tests/unistdio/test-ulc-asnprintf1.c: New file.
37838         * tests/unistdio/test-ulc-asnprintf1.h: New file.
37839         * tests/unistdio/test-ulc-printf1.h: New file.
37840         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
37841         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
37842         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
37843         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
37844         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
37845         * tests/unistdio/test-ulc-vasprintf1.c: New file.
37846         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
37847         * tests/unistdio/test-ulc-vsprintf1.c: New file.
37848         * tests/unistdio/test-u8-asnprintf1.c: New file.
37849         * tests/unistdio/test-u8-asnprintf1.h: New file.
37850         * tests/unistdio/test-u8-printf1.h: New file.
37851         * tests/unistdio/test-u8-vasnprintf1.c: New file.
37852         * tests/unistdio/test-u8-vasnprintf2.c: New file.
37853         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
37854         * tests/unistdio/test-u8-vasnprintf3.c: New file.
37855         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
37856         * tests/unistdio/test-u8-vasprintf1.c: New file.
37857         * tests/unistdio/test-u8-vsnprintf1.c: New file.
37858         * tests/unistdio/test-u8-vsprintf1.c: New file.
37859         * tests/unistdio/test-u16-asnprintf1.c: New file.
37860         * tests/unistdio/test-u16-asnprintf1.h: New file.
37861         * tests/unistdio/test-u16-printf1.h: New file.
37862         * tests/unistdio/test-u16-vasnprintf1.c: New file.
37863         * tests/unistdio/test-u16-vasnprintf2.c: New file.
37864         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
37865         * tests/unistdio/test-u16-vasnprintf3.c: New file.
37866         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
37867         * tests/unistdio/test-u16-vasprintf1.c: New file.
37868         * tests/unistdio/test-u16-vsnprintf1.c: New file.
37869         * tests/unistdio/test-u16-vsprintf1.c: New file.
37870         * tests/unistdio/test-u32-asnprintf1.c: New file.
37871         * tests/unistdio/test-u32-asnprintf1.h: New file.
37872         * tests/unistdio/test-u32-printf1.h: New file.
37873         * tests/unistdio/test-u32-vasnprintf1.c: New file.
37874         * tests/unistdio/test-u32-vasnprintf2.c: New file.
37875         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
37876         * tests/unistdio/test-u32-vasnprintf3.c: New file.
37877         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
37878         * tests/unistdio/test-u32-vasprintf1.c: New file.
37879         * tests/unistdio/test-u32-vsnprintf1.c: New file.
37880         * tests/unistdio/test-u32-vsprintf1.c: New file.
37881         * modules/unistdio/base: New file.
37882         * modules/unistdio/u-printf-args: New file.
37883         * modules/unistdio/ulc-asnprintf: New file.
37884         * modules/unistdio/ulc-asprintf: New file.
37885         * modules/unistdio/ulc-fprintf: New file.
37886         * modules/unistdio/ulc-printf-parse: New file.
37887         * modules/unistdio/ulc-snprintf: New file.
37888         * modules/unistdio/ulc-sprintf: New file.
37889         * modules/unistdio/ulc-vasnprintf: New file.
37890         * modules/unistdio/ulc-vasprintf: New file.
37891         * modules/unistdio/ulc-vfprintf: New file.
37892         * modules/unistdio/ulc-vsnprintf: New file.
37893         * modules/unistdio/ulc-vsprintf: New file.
37894         * modules/unistdio/u8-asnprintf: New file.
37895         * modules/unistdio/u8-asprintf: New file.
37896         * modules/unistdio/u8-printf-parse: New file.
37897         * modules/unistdio/u8-snprintf: New file.
37898         * modules/unistdio/u8-sprintf: New file.
37899         * modules/unistdio/u8-vasnprintf: New file.
37900         * modules/unistdio/u8-vasprintf: New file.
37901         * modules/unistdio/u8-vsnprintf: New file.
37902         * modules/unistdio/u8-vsprintf: New file.
37903         * modules/unistdio/u8-u8-asnprintf: New file.
37904         * modules/unistdio/u8-u8-asprintf: New file.
37905         * modules/unistdio/u8-u8-snprintf: New file.
37906         * modules/unistdio/u8-u8-sprintf: New file.
37907         * modules/unistdio/u8-u8-vasnprintf: New file.
37908         * modules/unistdio/u8-u8-vasprintf: New file.
37909         * modules/unistdio/u8-u8-vsnprintf: New file.
37910         * modules/unistdio/u8-u8-vsprintf: New file.
37911         * modules/unistdio/u16-asnprintf: New file.
37912         * modules/unistdio/u16-asprintf: New file.
37913         * modules/unistdio/u16-printf-parse: New file.
37914         * modules/unistdio/u16-snprintf: New file.
37915         * modules/unistdio/u16-sprintf: New file.
37916         * modules/unistdio/u16-vasnprintf: New file.
37917         * modules/unistdio/u16-vasprintf: New file.
37918         * modules/unistdio/u16-vsnprintf: New file.
37919         * modules/unistdio/u16-vsprintf: New file.
37920         * modules/unistdio/u16-u16-asnprintf: New file.
37921         * modules/unistdio/u16-u16-asprintf: New file.
37922         * modules/unistdio/u16-u16-snprintf: New file.
37923         * modules/unistdio/u16-u16-sprintf: New file.
37924         * modules/unistdio/u16-u16-vasnprintf: New file.
37925         * modules/unistdio/u16-u16-vasprintf: New file.
37926         * modules/unistdio/u16-u16-vsnprintf: New file.
37927         * modules/unistdio/u16-u16-vsprintf: New file.
37928         * modules/unistdio/u32-asnprintf: New file.
37929         * modules/unistdio/u32-asprintf: New file.
37930         * modules/unistdio/u32-printf-parse: New file.
37931         * modules/unistdio/u32-snprintf: New file.
37932         * modules/unistdio/u32-sprintf: New file.
37933         * modules/unistdio/u32-vasnprintf: New file.
37934         * modules/unistdio/u32-vasprintf: New file.
37935         * modules/unistdio/u32-vsnprintf: New file.
37936         * modules/unistdio/u32-vsprintf: New file.
37937         * modules/unistdio/u32-u32-asnprintf: New file.
37938         * modules/unistdio/u32-u32-asprintf: New file.
37939         * modules/unistdio/u32-u32-snprintf: New file.
37940         * modules/unistdio/u32-u32-sprintf: New file.
37941         * modules/unistdio/u32-u32-vasnprintf: New file.
37942         * modules/unistdio/u32-u32-vasprintf: New file.
37943         * modules/unistdio/u32-u32-vsnprintf: New file.
37944         * modules/unistdio/u32-u32-vsprintf: New file.
37945         * modules/unistdio/ulc-asnprintf-tests: New file.
37946         * modules/unistdio/ulc-vasnprintf-tests: New file.
37947         * modules/unistdio/ulc-vasprintf-tests: New file.
37948         * modules/unistdio/ulc-vsnprintf-tests: New file.
37949         * modules/unistdio/ulc-vsprintf-tests: New file.
37950         * modules/unistdio/u8-asnprintf-tests: New file.
37951         * modules/unistdio/u8-vasnprintf-tests: New file.
37952         * modules/unistdio/u8-vasprintf-tests: New file.
37953         * modules/unistdio/u8-vsnprintf-tests: New file.
37954         * modules/unistdio/u8-vsprintf-tests: New file.
37955         * modules/unistdio/u16-asnprintf-tests: New file.
37956         * modules/unistdio/u16-vasnprintf-tests: New file.
37957         * modules/unistdio/u16-vasprintf-tests: New file.
37958         * modules/unistdio/u16-vsnprintf-tests: New file.
37959         * modules/unistdio/u16-vsprintf-tests: New file.
37960         * modules/unistdio/u32-asnprintf-tests: New file.
37961         * modules/unistdio/u32-vasnprintf-tests: New file.
37962         * modules/unistdio/u32-vasprintf-tests: New file.
37963         * modules/unistdio/u32-vsnprintf-tests: New file.
37964         * modules/unistdio/u32-vsprintf-tests: New file.
37965         * MODULES.html.sh (Unicode string functions): Add the new modules.
37966
37967 2007-07-01  Bruno Haible  <bruno@clisp.org>
37968
37969         * lib/sprintf.c (sprintf): Limit the available length estimation,
37970         to avoid address wraparound.
37971         * lib/vsprintf.c (vsprintf): Likewise.
37972         * modules/sprintf-posix (Dependencies): Add stdint.
37973         * modules/vsprintf-posix (Dependencies): Likewise.
37974
37975 2007-07-01  Bruno Haible  <bruno@clisp.org>
37976
37977         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
37978         Windows PATH as well. Conservative double-quoting. Comments.
37979
37980 2007-07-01  Bruno Haible  <bruno@clisp.org>
37981             Eric Blake  <ebb9@byu.net>
37982             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37983
37984         * gnulib-tool (self_abspathname): Fix algorithm to cope with
37985         empty components in $PATH, denoting '.'.
37986
37987 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37988
37989         * gnulib-tool: Fix indentation.
37990         (func_create_megatestdir): Likewise.
37991         Report by Bruno Haible.
37992
37993 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37994
37995         Sync from Automake.
37996         * build-aux/gnupload: Fix shell portability issues with for loops.
37997         Report by Karl Berry.
37998
37999 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38000
38001         * build-aux/maint.mk (POURL): Use translationproject.org.
38002
38003 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38004             Bruno Haible  <bruno@clisp.org>
38005
38006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38007         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38008         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38009         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38010         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38011
38012 2007-06-27  Bruno Haible  <bruno@clisp.org>
38013
38014         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38015         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38016
38017 2007-06-26  Karl Berry  <karl@gnu.org>
38018
38019         * MODULES.html.sh: remove xreadlink-with-size.
38020
38021 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38022
38023         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38024         method that I hope also handles the double-include problem noted
38025         by Bruno Haible in
38026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38027
38028 2007-06-23  Bruno Haible  <bruno@clisp.org>
38029
38030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38031         Don't let the 'mostlyclean' target fail if the last subdirectory could
38032         not be removed.
38033         Reported by Karl Berry.
38034
38035 2007-06-23  Bruno Haible  <bruno@clisp.org>
38036
38037         * gnulib-tool (echo): Add a speedier workaround for ksh.
38038         * tests/test-echo.sh: Likewise.
38039
38040 2007-06-23  Bruno Haible  <bruno@clisp.org>
38041
38042         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38043         * tests/test-echo.sh: Likewise.
38044
38045 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38046
38047         * gnulib-tool (IFS): Initialize early, so we don't set it to
38048         empty later.
38049         (self_abspathname): Rewrite algorithm to set it, reindent.
38050         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38051         (func_create_megatestdir): Merge some sed scripts.
38052
38053 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38054
38055         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38056         exposed by Sun Studio 11 cc on Solaris 8.
38057
38058 2007-06-22  Bruno Haible  <bruno@clisp.org>
38059
38060         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38061         backslashes.
38062         * tests/test-echo.sh: New file.
38063
38064 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38065
38066         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38067         simplify `sed_replace_build_aux' scripts, they are portable but
38068         echoing them with `echo' is not.
38069         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38070
38071 2007-06-21  Karl Berry  <karl@gnu.org>
38072
38073         * config/srclist.txt: guess we can't handle the licenses via
38074         srclist at the moment.
38075
38076 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38077
38078         * MODULES.html.sh: Add include_next.
38079         * modules/include_next: New file.
38080
38081 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38082
38083         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38084         INCLUDE_NEXT.
38085         (gl_CHECK_NEXT_HEADERS): New macro.
38086         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38087         the obsolescent gl_ABSOLUTE_HEADER.
38088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38089         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38090         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38091         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38092         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38093         * m4/math_h.m4 (gl_MATH_H): Likewise.
38094         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38095         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38096         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38097         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38098         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38099         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38100         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38102         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38104         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38105         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38106         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38107         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38108         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38109         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38110         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38111         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38112         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38113         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38114         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38115         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38116         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38117         * lib/float_.h: Likewise.
38118         * lib/inttypes_.h: Likewise.
38119         * lib/math_.h: Likewise.
38120         * lib/search_.h: Likewise.
38121         * lib/signal_.h: Likewise.
38122         * lib/stdint_.h: Likewise.
38123         * lib/stdio_.h: Likewise.
38124         * lib/stdlib_.h: Likewise.
38125         * lib/string_.h: Likewise.
38126         * lib/sys_stat_.h: Likewise.
38127         * lib/sys_time_.h: Likewise.
38128         * lib/time_.h: Likewise.
38129         * lib/unistd_.h: Likewise.
38130         * lib/wchar_.h: Likewise.
38131         * lib/wctype_.h: Likewise.
38132         * lib/dirent_.h: Likewise.
38133         * lib/iconv_.h: Likewise.
38134         * lib/locale_.h: Likewise.
38135         * lib/netinet_in_.h: Likewise.
38136         * lib/sys_select_.h: Likewise.
38137         * lib/sys_socket_.h: Likewise.
38138         * lib/sysexits_.h: Likewise.
38139         * modules/fcntl (Depends-on): Depend on include_next, not
38140         absolute_header.
38141         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38142         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38143         * modules/fchdir: Likewise.
38144         * modules/float: Likewise.
38145         * modules/iconv_open: Likewise.
38146         * modules/inttypes: Likewise.
38147         * modules/locale: Likewise.
38148         * modules/math: Likewise.
38149         * modules/netinet_in: Likewise.
38150         * modules/search: Likewise.
38151         * modules/signal: Likewise.
38152         * modules/stdint: Likewise.
38153         * modules/stdio: Likewise.
38154         * modules/stdlib: Likewise.
38155         * modules/string: Likewise.
38156         * modules/sys_select: Likewise.
38157         * modules/sys_socket: Likewise.
38158         * modules/sys_stat: Likewise.
38159         * modules/sys_time: Likewise.
38160         * modules/sysexits: Likewise.
38161         * modules/time: Likewise.
38162         * modules/unistd: Likewise.
38163         * modules/wchar: Likewise.
38164         * modules/wctype: Likewise.
38165         * modules/sys_stat: Change maintainer to "all".
38166         * modules/unistd: Likewise.
38167
38168 2007-06-20  Karl Berry  <karl@gnu.org>
38169
38170         * config/srclist.txt: track www changes in license files.
38171
38172 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38173
38174         * build-aux/bootstrap: Remove stray dot.
38175         Make sure build_aux settings are honored when linking
38176         gnulib_extra_files.
38177
38178 2007-06-19  Eric Blake  <ebb9@byu.net>
38179
38180         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38181         Allow compilation on cygwin.
38182
38183 2007-06-19  Jim Meyering  <jim@meyering.net>
38184
38185         xreadlink-with-size: Remove module.  No longer used.
38186         Ex-callers now use xreadlink or mreadlink-with-size.
38187         * modules/xreadlink-with-size: Remove module.
38188         * lib/xreadlink-with-size.c: Remove file.
38189         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38190         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38191         just before the function definition *is* accurate.
38192
38193         Eliminate one way canonicalize_filename_mode could exit.
38194         * lib/canonicalize.c (canonicalize_filename_mode):
38195         Use mreadlink_with_size, not xreadlink_with_size.
38196
38197 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38198
38199         Detect porting problems to FreeBSD/arm, which has time_t wider than
38200         long int.  Original problem reported for GNU diff by Xin Li in
38201         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38202         * modules/getdate (Depends-on): Add intprops, verify.
38203         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38204         is an integer type no wider than long int.
38205
38206 2007-06-18  Jim Meyering  <jim@meyering.net>
38207
38208         New module: mreadlink-with-size.
38209         * MODULES.html.sh: Add mreadlink-with-size.
38210         * modules/mreadlink-with-size: New module
38211         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38212         not xreadlink-with-size.
38213         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38214
38215 2007-06-16  Bruno Haible  <bruno@clisp.org>
38216
38217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38218         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38219         Reported by Gary V. Vaughan <gary@gnu.org>.
38220
38221 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38222
38223         Revamp lchown so that it lives in unistd.h where it belongs.
38224         * lib/lchown.h: Remove.
38225         * lib/dirchownmod.c: Don't include lib/lchown.h.
38226         * lib/fchownat.c: Likewise.
38227         * lib/openat.c: Likewise.
38228         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38229         does not follow symlinks.
38230         (EOPNOTSUPP): Define if not defined.
38231         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38232         is defined to 0.
38233         (lchown): New decl.
38234         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38235         Do not check for lchown decl.
38236         Set REPLACE_LCHOWN.
38237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38238         REPLACE_LCHOWN.
38239         * modules/chown: Make it clear it follows symlinks.
38240         * modules/lchown: Make it clear it doesn't follow symlinks.
38241         (Files): Remove lib/lchown.h
38242         (Depends-on): Add unistd.
38243         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38244         (Include): Include <unistd.h>, not "lchown.h".
38245         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38246         REPLACE_LCHOWN.
38247
38248 2007-06-15  Jim Meyering  <jim@meyering.net>
38249
38250         Change license (GPL to LGPL) of fsusage and dependents.
38251         * modules/fsusage (License): Change to LGPL.
38252         * modules/full-read (License): Likewise.
38253         * modules/full-write (License): Likewise.
38254         * modules/safe-read (License): Likewise.
38255         * modules/safe-write (License): Likewise.
38256
38257 2007-06-14  Ben Pfaff  <blp@gnu.org>
38258
38259         Missing part of allocsa -> malloca transition.
38260         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38261         gl_MALLOCA.
38262
38263 2007-06-12  Bruno Haible  <bruno@clisp.org>
38264
38265         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38266         to ia64, x86_64, i386.
38267         Reported by Eric Blake.
38268
38269 2007-06-12  Bruno Haible  <bruno@clisp.org>
38270
38271         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38272         cross-compiling to x86_64.
38273
38274 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38275
38276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38277         glitch reported by Ralf Wildenhues in
38278         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38279
38280         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38281         Vin Shelton.
38282
38283 2007-06-11  Bruno Haible  <bruno@clisp.org>
38284
38285         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38286         replacement string.
38287         Reported by Eric Blake.
38288
38289 2007-06-10  Bruno Haible  <bruno@clisp.org>
38290
38291         Prepare vasnprintf code for use with Unicode strings.
38292         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38293         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38294         TYPE_U32_STRING.
38295         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38296         a_u32_string variants.
38297         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38298         * lib/printf-args.c: Don't include config.h and the specification
38299         header if PRINTF_FETCHARGS is already defined.
38300         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38301         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38302         TYPE_U16_STRING, TYPE_U32_STRING.
38303         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38304         u16_directive, u16_directives, u32_directive, u32_directives): New
38305         types.
38306         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38307         New declarations.
38308         * lib/printf-parse.c: Don't include config.h and the specification
38309         header if PRINTF_PARSE is already defined. Eliminate the set of
38310         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38311         them now. Include c-ctype.h.
38312         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38313         directive and CHAR_T_ONLY_ASCII.
38314         * lib/vasnprintf.c: Don't include config.h and the specification header
38315         if VASNPRINTF is already defined.
38316         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38317         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38318         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38319         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38320         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38321         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38322         code accordingly.
38323         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38324         pad_ourselves also in this case, with the 'c' and 's' directives, and
38325         with a different notion of "width".
38326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38327
38328 2007-06-10  Bruno Haible  <bruno@clisp.org>
38329
38330         * modules/unistr/u32-mbsnlen: New file.
38331         * lib/unistr/u32-mbsnlen.c: New file.
38332
38333         * modules/unistr/u16-mbsnlen: New file.
38334         * lib/unistr/u16-mbsnlen.c: New file.
38335
38336         * modules/unistr/u8-mbsnlen: New file.
38337         * lib/unistr/u8-mbsnlen.c: New file.
38338
38339         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38340         declarations.
38341
38342 2007-06-10  Bruno Haible  <bruno@clisp.org>
38343
38344         * lib/string_.h (mbsnlen): New declaration.
38345         * lib/mbsnlen.c: New file.
38346         * m4/mbsnlen.m4: New file.
38347         * modules/mbsnlen: New file.
38348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38349         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38350         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38351
38352 2007-06-10  Bruno Haible  <bruno@clisp.org>
38353
38354         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38355
38356 2007-06-10  Bruno Haible  <bruno@clisp.org>
38357
38358         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38359         * lib/mbuiter.h: Likewise.
38360
38361 2007-06-10  Bruno Haible  <bruno@clisp.org>
38362
38363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38364         declaration.
38365
38366 2007-06-10  Karl Berry  <karl@gnu.org>
38367
38368         * config/srclist.txt: remove gettext entries, Bruno prefers
38369         to update individually.
38370
38371 2007-06-10  Bruno Haible  <bruno@clisp.org>
38372
38373         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38374         'maxlen'. Ensure only length + width bytes are allocated, not
38375         length + 1 + width.
38376
38377 2007-06-09  Bruno Haible  <bruno@clisp.org>
38378
38379         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38380         (CHAR_T): Remove macro.
38381         (VASNPRINTF): Update.
38382
38383 2007-06-09  Bruno Haible  <bruno@clisp.org>
38384
38385         * MODULES.html.sh (Unicode string functions): Add the new modules.
38386
38387         * modules/uniconv/u32-conv-to-enc: New file.
38388         * lib/uniconv/u32-conv-to-enc.c: New file.
38389         * modules/uniconv/u32-conv-to-enc-tests: New file.
38390         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38391
38392         * modules/uniconv/u16-conv-to-enc: New file.
38393         * lib/uniconv/u16-conv-to-enc.c: New file.
38394         * lib/uniconv/u-conv-to-enc.h: New file.
38395         * modules/uniconv/u16-conv-to-enc-tests: New file.
38396         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38397
38398         * modules/uniconv/u8-conv-to-enc: New file.
38399         * lib/uniconv/u8-conv-to-enc.c: New file.
38400         * modules/uniconv/u8-conv-to-enc-tests: New file.
38401         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38402
38403         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38404         u32_conv_to_encoding): New declarations.
38405
38406 2007-06-09  Bruno Haible  <bruno@clisp.org>
38407
38408         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38409
38410 2007-06-09  Bruno Haible  <bruno@clisp.org>
38411
38412         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38413         * modules/malloca: Renamed from modules/allocsa, updated.
38414         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38415         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38416         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38417         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38418         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38419         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38420         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38421         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38422         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38423         * modules/c-strcasestr (Depends-on): Update.
38424         * lib/c-strcasestr.c: Update.
38425         * modules/c-strstr (Depends-on): Update.
38426         * lib/c-strstr.c: Update.
38427         * modules/canonicalize-lgpl (Depends-on): Update.
38428         * lib/canonicalize-lgpl.c: Update.
38429         * modules/clean-temp (Depends-on): Update.
38430         * lib/clean-temp.c: Update.
38431         * modules/csharpcomp (Depends-on): Update.
38432         * lib/csharpcomp.c: Update.
38433         * modules/csharpexec (Depends-on): Update.
38434         * lib/csharpexec.c: Update.
38435         * modules/javacomp (Depends-on): Update.
38436         * lib/javacomp.c: Update.
38437         * modules/javaexec (Depends-on): Update.
38438         * lib/javaexec.c: Update.
38439         * modules/mbscasestr (Depends-on): Update.
38440         * lib/mbscasestr.c: Update.
38441         * modules/mbsstr (Depends-on): Update.
38442         * lib/mbsstr.c: Update.
38443         * modules/setenv (Depends-on): Update.
38444         * lib/setenv.c: Update.
38445         * modules/strcasestr (Depends-on): Update.
38446         * lib/strcasestr.c: Update.
38447         * modules/striconveha (Depends-on): Update.
38448         * lib/striconveha.c: Update.
38449         * modules/relocatable-prog-wrapper (Files): Update.
38450         * lib/relocwrapper.c: Update.
38451         * build-aux/install-reloc: Update.
38452         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38453
38454 2007-06-08  Bruno Haible  <bruno@clisp.org>
38455
38456         Port to uClibc.
38457         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38458         * lib/fpurge.c (fpurge): Likewise.
38459         * lib/freading.c (freading): Likewise.
38460         * lib/fseeko.c (rpl_fseeko): Likewise.
38461         * lib/fseterr.c (fseterr): Likewise.
38462         * lib/fwriting.c (fwriting): Likewise.
38463         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38464
38465 2007-06-08  Bruno Haible  <bruno@clisp.org>
38466
38467         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38468         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38469         * modules/gettext (Files): Add m4/intlmacosx.m4.
38470
38471 2007-06-07  Bruno Haible  <bruno@clisp.org>
38472
38473         * modules/localename-tests: New file.
38474         * tests/test-localename.c: New file.
38475
38476         New module 'localename'.
38477         * lib/localename.h: New file.
38478         * lib/localename.c: New file, from GNU gettext.
38479         * m4/localename.m4: New file.
38480         * modules/localename: New file.
38481
38482 2007-06-07  Bruno Haible  <bruno@clisp.org>
38483
38484         Work around the lack of <wchar.h> on some builds of uClibc.
38485         * doc/headers/wchar.texi: Update.
38486         * lib/wchar_.h: Include <wchar.h> only if it exists.
38487         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38488         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38489         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38490         doesn't exist.
38491         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38492         * modules/mbfile (Depends-on): Add wchar.
38493         * modules/mbiter (Depends-on): Likewise.
38494         * modules/mbuiter (Depends-on): Likewise.
38495         Reported by Simon Josefsson.
38496
38497 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38498
38499         Work around problem reported by Steven M. Schweda in
38500         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38501         Tru64 5.1B with the Compaq compiler environment installed declares
38502         an 'isblank' function but does not define it in the C library.
38503         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38504         * lib/regex_internal.h (isblank): Likewise.
38505         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38506         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38507
38508 2007-06-05  Bruno Haible  <bruno@clisp.org>
38509
38510         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38511         ia64.
38512         * modules/printf-safe: New file.
38513         * modules/fprintf-posix (Depends-on): Add printf-safe.
38514         * modules/printf-posix (Depends-on): Likewise.
38515         * modules/snprintf-posix (Depends-on): Likewise.
38516         * modules/sprintf-posix (Depends-on): Likewise.
38517         * modules/vasnprintf-posix (Depends-on): Likewise.
38518         * modules/vasprintf-posix (Depends-on): Likewise.
38519         * modules/vfprintf-posix (Depends-on): Likewise.
38520         * modules/vprintf-posix (Depends-on): Likewise.
38521         * modules/vsnprintf-posix (Depends-on): Likewise.
38522         * modules/vsprintf-posix (Depends-on): Likewise.
38523         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38524         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38525         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38526         "no" on i386, x86_64, ia64.
38527         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38528         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38529         on i386, x86_64, ia64.
38530         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38531         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38532         on i386, x86_64, ia64.
38533         * tests/test-vasnprintf-posix.c: Include float.h.
38534         (LDBL80_WORDS): New macro.
38535         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38536         on i386, x86_64, ia64.
38537         * tests/test-vasprintf-posix.c: Include float.h.
38538         (LDBL80_WORDS): New macro.
38539         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38540         on i386, x86_64, ia64.
38541         * tests/test-snprintf-posix.c: Include float.h.
38542         * tests/test-sprintf-posix.c: Likewise.
38543         * tests/test-vsnprintf-posix.c: Likewise.
38544         * tests/test-vsprintf-posix.c: Likewise.
38545
38546 2007-06-05  Bruno Haible  <bruno@clisp.org>
38547
38548         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
38549         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
38550         non-IEEE numbers on i386, x86_64, ia64.
38551         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
38552         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
38553         * tests/test-isnanl.h: Include float.h.
38554         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
38555
38556 2007-06-05  Bruno Haible  <bruno@clisp.org>
38557
38558         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
38559         also the %a / %A. Handle the %a / %A code before this extra handling.
38560
38561 2007-06-05  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
38564         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
38565
38566 2007-06-05  Bruno Haible  <bruno@clisp.org>
38567
38568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
38569         typo in variable name.
38570
38571 2007-06-05  Eric Blake  <ebb9@byu.net>
38572
38573         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
38574         Reported by Simon Josefsson.
38575
38576 2007-06-04  Bruno Haible  <bruno@clisp.org>
38577
38578         Avoid test failures on some PowerPC platforms.
38579         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
38580         Define differently for PowerPC.
38581         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
38582         Reported by Gary V. Vaughan <gary@gnu.org>.
38583
38584 2007-06-02  Bruno Haible  <bruno@clisp.org>
38585
38586         Fix test-stdint failure on FreeBSD/ia64.
38587         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
38588         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
38589         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
38590         * doc/headers/stdint.texi: Update.
38591
38592 2007-06-01  Bruno Haible  <bruno@clisp.org>
38593
38594         * tests/test-binary-io.c (main): Pass a third argument to open().
38595         Reported by Gary V. Vaughan <gary@gnu.org>.
38596
38597 2007-06-01  Bruno Haible  <bruno@clisp.org>
38598
38599         * doc/functions/frexpl.texi: Update for mingw.
38600
38601 2007-06-01  Bruno Haible  <bruno@clisp.org>
38602
38603         * tests/test-lseek.c (main): Disable test of errno for invalid third
38604         argument.
38605         * doc/functions/lseek.texi: Update.
38606         Reported by Gary V. Vaughan <gary@gnu.org>.
38607
38608 2007-05-28  Bruno Haible  <bruno@clisp.org>
38609
38610         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
38611
38612 2007-05-31  Eric Blake  <ebb9@byu.net>
38613
38614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
38615         cross compiling.
38616
38617 2007-05-30  Eric Blake  <ebb9@byu.net>
38618         and Bruno Haible  <bruno@clisp.org>
38619
38620         Work around mingw test failures exposed by m4-1.4.9b.
38621         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
38622         * tests/test-unistd.c: Disable uid_t and git_t tests for the
38623         moment.
38624
38625 2007-05-30  Bruno Haible  <bruno@clisp.org>
38626
38627         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
38628         assuming that they are closed. Needed on HP-UX 11.
38629
38630 2007-05-29  Bruno Haible  <bruno@clisp.org>
38631
38632         Fix a problem with #include_next.
38633         * lib/dirent_.h: Split the double-inclusion guard.
38634         * lib/fcntl_.h: Likewise.
38635         * lib/float_.h: Likewise.
38636         * lib/iconv_.h: Likewise.
38637         * lib/inttypes_.h: Likewise.
38638         * lib/locale_.h: Likewise.
38639         * lib/math_.h: Likewise.
38640         * lib/netinet_in_.h: Likewise.
38641         * lib/search_.h: Likewise.
38642         * lib/signal_.h: Likewise.
38643         * lib/stdint_.h: Likewise.
38644         * lib/stdio_.h: Likewise.
38645         * lib/stdlib_.h: Likewise.
38646         * lib/string_.h: Likewise.
38647         * lib/sys_select_.h: Likewise.
38648         * lib/sys_socket_.h: Likewise.
38649         * lib/sys_stat_.h: Likewise.
38650         * lib/sys_time_.h: Likewise.
38651         * lib/sysexits_.h: Likewise.
38652         * lib/time_.h: Likewise.
38653         * lib/unistd_.h: Likewise.
38654         * lib/wchar_.h: Likewise.
38655         * lib/wctype_.h: Likewise.
38656
38657 2007-05-29  Bruno Haible  <bruno@clisp.org>
38658
38659         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
38660         for the moment.
38661
38662 2007-05-29  Bruno Haible  <bruno@clisp.org>
38663
38664         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
38665         invocation.
38666         Reported by Eric Blake.
38667
38668 2007-05-29  Bruno Haible  <bruno@clisp.org>
38669
38670         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
38671         compiling case.
38672
38673 2007-05-29  Eric Blake  <ebb9@byu.net>
38674             Bruno Haible  <bruno@clisp.org>
38675
38676         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
38677         cross compiles.
38678
38679 2007-05-28  Eric Blake  <ebb9@byu.net>
38680
38681         * modules/closein-tests (test_closein_LDADD): Support test on
38682         cygwin with libtool.
38683
38684 2007-05-28  Bruno Haible  <bruno@clisp.org>
38685
38686         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
38687         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38688         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38689         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38690         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38691         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38692         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38693         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38694         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38695
38696 2007-05-28  Eric Blake  <ebb9@byu.net>
38697
38698         Unconditionally include <config.h> in unit tests.
38699         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
38700         * tests/test-allocsa.c, tests/test-arcfour.c,
38701         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
38702         tests/test-array_list.c, tests/test-array_oset.c,
38703         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
38704         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
38705         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
38706         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
38707         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
38708         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
38709         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
38710         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
38711         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
38712         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
38713         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
38714         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
38715         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
38716         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
38717         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
38718         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
38719         test-md5.c, test-memmem.c, test-printf-posix.c,
38720         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
38721         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
38722         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
38723         test-strcasestr.c, test-striconv.c, test-striconveh.c,
38724         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
38725         test-vasnprintf-posix2.c, test-vasnprintf.c,
38726         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
38727         test-vfprintf-posix.c, test-vprintf-posix.c,
38728         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
38729         test-xvasprintf.c: Likewise.
38730
38731 2007-05-28  Bruno Haible  <bruno@clisp.org>
38732
38733         * gnulib-tool (func_import): Remember the --with-tests command-line
38734         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
38735         Reported by Eric Blake.
38736
38737 2007-05-28  Bruno Haible  <bruno@clisp.org>
38738
38739         * modules/ftell-tests: New file.
38740         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
38741         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
38742
38743         * lib/ftell.c: New file.
38744         * modules/ftell: New file.
38745         * m4/ftell.m4: New file.
38746         * doc/functions/ftell.texi: Update.
38747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
38748         REPLACE_FTELL.
38749         * lib/stdio_.h (rpl_ftell): New declaration.
38750         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
38751         REPLACE_FTELL.
38752
38753 2007-05-28  Eric Blake  <ebb9@byu.net>
38754
38755         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
38756
38757 2007-05-28  Bruno Haible  <bruno@clisp.org>
38758
38759         * modules/fseek-tests: New file.
38760         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
38761         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
38762
38763         * lib/fseek.c: New file.
38764         * modules/fseek: New file.
38765         * m4/fseek.m4: New file.
38766         * doc/functions/fseek.texi: Update.
38767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
38768         REPLACE_FSEEK.
38769         * lib/stdio_.h (rpl_fseek): New declaration.
38770         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
38771         REPLACE_FSEEK.
38772
38773 2007-05-28  Bruno Haible  <bruno@clisp.org>
38774
38775         * lib/stdio_.h (fflush): More comments.
38776
38777 2007-05-28  Bruno Haible  <bruno@clisp.org>
38778
38779         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
38780         runtime test.
38781
38782 2007-05-28  Eric Blake  <ebb9@byu.net>
38783
38784         Improve lseek module.
38785         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
38786         * lib/unistd_.h (lseek): Scale back link warning message.
38787         * tests/test-lseek.c: Beef up test.
38788         * tests/test-lseek.sh: Exercise more facets of lseek.
38789         Reported by Bruno Haible.
38790
38791 2007-05-28  Bruno Haible  <bruno@clisp.org>
38792
38793         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
38794         to define.
38795
38796 2007-05-27  Bruno Haible  <bruno@clisp.org>
38797
38798         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
38799
38800 2007-05-27  Bruno Haible  <bruno@clisp.org>
38801
38802         * modules/openmp: New file.
38803         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
38804         Noah Misch.
38805
38806 2007-05-26  Bruno Haible  <bruno@clisp.org>
38807
38808         * modules/chdir-long (Depends-on): Add fchdir.
38809         * modules/chdir-safer (Depends-on): Likewise.
38810         * modules/fts (Depends-on): Likewise.
38811         * modules/fts-lgpl (Depends-on): Likewise.
38812         * modules/openat (Depends-on): Likewise.
38813         * modules/savewd (Depends-on): Likewise.
38814
38815 2007-05-24  Eric Blake  <ebb9@byu.net>
38816
38817         Fix lseek on mingw.
38818         * modules/lseek: New module.
38819         * m4/lseek.m4: New file.
38820         * lib/lseek.c: New file.
38821         * modules/lseek-tests: New file.
38822         * tests/test-lseek.c: New file.
38823         * tests/test-lseek.sh: New file.
38824         * MODULES.html.sh: Document lseek module.
38825         * modules/fflush (Depends-on): Add lseek, fseeko.
38826         * modules/fseeko (Depends-on): Likewise.
38827         * modules/ftello (Depends-on): Likewise.
38828         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
38829         broken.
38830         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
38831         broken.
38832         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
38833         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
38834         * lib/ftello.c (rpl_ftello): Likewise.
38835         * tests/test-fseeko.c (main): Test this.
38836         * tests/test-fseeko.sh: Likewise.
38837         * tests/test-ftello.c (main): Likewise.
38838         * tests/test-ftello.sh: Likewise.
38839         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
38840         implies replacing fseek.
38841         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
38842         HAVE_FTELLO.
38843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
38844         * modules/unistd (Makefile.am): Likewise.
38845         * lib/unistd_.h (lseek): Declare a replacement.
38846         * doc/functions/lseek.texi (lseek): Document this fix.
38847         * doc/functions/fseek.texi (fseek): Likewise.
38848         * doc/functions/ftell.texi (ftell): Likewise.
38849
38850 2007-05-24  Bruno Haible  <bruno@clisp.org>
38851
38852         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
38853         in the printed representation of a NaN.
38854         * tests/test-vasprintf-posix.c (test_function): Likewise.
38855         * tests/test-snprintf-posix.h (test_function): Likewise.
38856         * tests/test-sprintf-posix.h (test_function): Likewise.
38857         Reported by Eric Blake.
38858
38859 2007-05-23  Eric Blake  <ebb9@byu.net>
38860
38861         Fix fseeko/ftello on cygwin 1.5.24.
38862         * doc/functions/fseeko.texi (fseeko): Document the fix.
38863         * doc/functions/ftello.texi (ftello): Document the fix.
38864         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
38865         * doc/functions/stdout.text (stdout): New file.
38866         * doc/functions/stderr.text (stderr): New file.
38867         * doc/gnulib.texi (Function Substitutes): Use new files.
38868         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
38869         prior to 1.7.0.
38870         * tests/test-ftello.c (main): Likewise for ftello.
38871         * tests/test-fseeko.sh: New file.
38872         * tests/test-ftello.sh: New file.
38873         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
38874         with seekable stdin.
38875         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
38876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
38877         (gl_REPLACE_FSEEKO): New macro.
38878         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
38879         * modules/fseeko (Files): Distribute fseeko.c.
38880         * modules/ftello (Files): Distribute ftello.c.
38881         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
38882         mode.
38883         * lib/ftello.c (rpl_ftello): New file.
38884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
38885         fseeko, ftello.
38886         (gl_STDIN_LARGE_OFFSET): New macro.
38887         * modules/stdio (Makefile.am): Perform the replacement.
38888         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
38889
38890 2007-05-23  Bruno Haible  <bruno@clisp.org>
38891
38892         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
38893         GNULIB_POSIXCHECK is defined.
38894
38895 2007-05-21  Bruno Haible  <bruno@clisp.org>
38896
38897         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
38898         Check also the output for NaN arguments. When cross-compiling, guess
38899         no on IRIX.
38900         * lib/vasnprintf.c: Update comments.
38901         * tests/test-vasnprintf-posix.c (strisnan): New function.
38902         (test_function): Use it.
38903         * tests/test-vasprintf-posix.c (strisnan): New function.
38904         (test_function): Use it.
38905         * tests/test-snprintf-posix.h (strisnan): New function.
38906         (test_function): Use it.
38907         * tests/test-sprintf-posix.h (strisnan): New function.
38908         (test_function): Use it.
38909         Reported by Eric Blake.
38910
38911 2007-05-20  Bruno Haible  <bruno@clisp.org>
38912
38913         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
38914         numbers that fails on BeOS.
38915         * doc/functions/frexpl.texi: Update.
38916
38917 2007-05-20  Jim Meyering  <jim@meyering.net>
38918
38919         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
38920         forced upon us by glibc-2.6.
38921
38922 2007-05-20  Bruno Haible  <bruno@clisp.org>
38923
38924         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
38925         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
38926         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
38927         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
38928         NEED_PRINTF_INFINITE.
38929         (is_infinitel): New function.
38930         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
38931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
38932         gl_PREREQ_VASNPRINTF_INFINITE.
38933         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
38934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38935         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
38936         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
38937         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
38938         gl_PREREQ_VASNPRINTF_INFINITE.
38939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38946         * doc/functions/fprintf.texi: Update.
38947         * doc/functions/printf.texi: Update.
38948         * doc/functions/snprintf.texi: Update.
38949         * doc/functions/sprintf.texi: Update.
38950         * doc/functions/vfprintf.texi: Update.
38951         * doc/functions/vprintf.texi: Update.
38952         * doc/functions/vsnprintf.texi: Update.
38953         * doc/functions/vsprintf.texi: Update.
38954
38955 2007-05-20  Bruno Haible  <bruno@clisp.org>
38956
38957         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
38958         was not found in libc.
38959         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
38960
38961 2007-05-20  Bruno Haible  <bruno@clisp.org>
38962
38963         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38964         printed as "-nan" instead of "nan".
38965         * tests/test-vasprintf-posix.c (test_function): Likewise.
38966         * tests/test-snprintf-posix.h (test_function): Likewise.
38967         * tests/test-sprintf-posix.h (test_function): Likewise.
38968         Needed for HP-UX 11.
38969
38970 2007-05-20  Jim Meyering  <jim@meyering.net>
38971
38972         Fix buggy test for the fchownat-deref bug.
38973         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
38974         symlink required for the run-test.  Without it, this test would
38975         always declare that fchownat doesn't work, and client code would
38976         unnecessarily use the replacement function with fixed libc.
38977         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
38978         Reported by Greg Schafer.
38979
38980 2007-05-19  Bruno Haible  <bruno@clisp.org>
38981
38982         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
38983         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
38984         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
38985         Needed for IRIX 6.5 and Solaris 2.5.1.
38986
38987 2007-05-19  Bruno Haible  <bruno@clisp.org>
38988
38989         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
38990         (test_function): Skip tests involving -0.0 on platforms where
38991         -0.0 = 0.0.
38992         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
38993         (test_function): Skip tests involving -0.0 on platforms where
38994         -0.0 = 0.0.
38995         * tests/test-snprintf-posix.h (have_minus_zero): New function.
38996         (test_function): Skip tests involving -0.0 on platforms where
38997         -0.0 = 0.0.
38998         * tests/test-sprintf-posix.h (have_minus_zero): New function.
38999         (test_function): Skip tests involving -0.0 on platforms where
39000         -0.0 = 0.0.
39001         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39002         tests.
39003         * tests/test-printf-posix.h (test_function): Likewise.
39004         * tests/test-printf-posix.output: Remove all -0.0 related results.
39005         Needed for IRIX 6.5.
39006
39007 2007-05-19  Bruno Haible  <bruno@clisp.org>
39008
39009         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39010         printed as "nan0x7fffffff" instead of "nan".
39011         * tests/test-vasprintf-posix.c (test_function): Likewise.
39012         * tests/test-snprintf-posix.h (test_function): Likewise.
39013         * tests/test-sprintf-posix.h (test_function): Likewise.
39014         * tests/test-fprintf-posix.h (NaN): Remove macro.
39015         (test_function): Remove all NaN related tests.
39016         * tests/test-printf-posix.h (NaN): Remove macro.
39017         (test_function): Remove all NaN related tests.
39018         * tests/test-printf-posix.output: Remove all NaN related results.
39019         Needed for IRIX 6.5.
39020
39021 2007-05-19  Bruno Haible  <bruno@clisp.org>
39022
39023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39025
39026 2007-05-19  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/float_.h: New file.
39029         * m4/float_h.m4: New file.
39030         * modules/float: New file.
39031         * modules/isnanl (Dependencies): Add float.
39032         * modules/isnanl-nolibm (Dependencies): Likewise.
39033         * modules/mathl (Dependencies): Likewise.
39034         * modules/printf-frexpl (Dependencies): Likewise.
39035         * modules/signbit (Dependencies): Likewise.
39036         * modules/vasnprintf (Dependencies): Likewise.
39037         * doc/headers/float.texi: Update.
39038
39039 2007-05-19  Jim Meyering  <jim@meyering.net>
39040
39041         * lib/utimens.c (gl_futimens): Rename from futimens,
39042         now that glibc-2.6 declares futimens.
39043         * lib/utimens.h: Likewise.
39044
39045 2007-05-19  Bruno Haible  <bruno@clisp.org>
39046
39047         Avoid test failures on mingw.
39048         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39049         * tests/test-printf-posix.sh: Likewise.
39050         * tests/test-vfprintf-posix.sh: Likewise.
39051         * tests/test-vprintf-posix.sh: Likewise.
39052
39053 2007-05-19  Bruno Haible  <bruno@clisp.org>
39054
39055         Fix *printf result for NaN, Inf, -0.0 on mingw.
39056         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39057         * lib/vasnprintf.c: Include math.h and isnan.h.
39058         (is_infinite_or_zero): New function.
39059         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39060         values in the %f, %F, %e, %E, %g, %G directives.
39061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39062         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39063         gl_PRINTF_INFINITE and test its result. Invoke
39064         gl_PREREQ_VASNPRINTF_INFINITE.
39065         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39067         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39068         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39069         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39072         * doc/functions/fprintf.texi: Update.
39073         * doc/functions/printf.texi: Update.
39074         * doc/functions/snprintf.texi: Update.
39075         * doc/functions/sprintf.texi: Update.
39076         * doc/functions/vfprintf.texi: Update.
39077         * doc/functions/vprintf.texi: Update.
39078         * doc/functions/vsnprintf.texi: Update.
39079         * doc/functions/vsprintf.texi: Update.
39080
39081 2007-05-19  Bruno Haible  <bruno@clisp.org>
39082
39083         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39084         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39085         Instead of multiplying with 10^k, set extra_zeroes to k.
39086         (scale10_round_long_double): Remove function.
39087
39088 2007-05-18  Bruno Haible  <bruno@clisp.org>
39089
39090         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39091         introduced on 2007-05-06.
39092
39093 2007-05-18  Bruno Haible  <bruno@clisp.org>
39094
39095         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39096         %g directives.
39097         * tests/test-vasprintf-posix.c (test_function): Likewise.
39098         * tests/test-snprintf-posix.h (test_function): Likewise.
39099         * tests/test-sprintf-posix.h (test_function): Likewise.
39100
39101 2007-05-18  Bruno Haible  <bruno@clisp.org>
39102
39103         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39104         (strmatch): New function.
39105         (test_function): Test the %f directive on numbers of various exponents.
39106         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39107         (strmatch): New function.
39108         (test_function): Test the %f directive on numbers of various exponents.
39109         * tests/test-snprintf-posix.h (strmatch): New function.
39110         (test_function): Test the %f directive on numbers of various exponents.
39111         * tests/test-sprintf-posix.h (strmatch): New function.
39112         (test_function): Test the %f directive on numbers of various exponents.
39113         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39114         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39115         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39116         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39117
39118 2007-05-18  Bruno Haible  <bruno@clisp.org>
39119
39120         Add support for 'long double' number output.
39121         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39122         * lib/vasnprintf.c: Include math.h and float+.h.
39123         (mp_limb_t): New type.
39124         (GMP_LIMB_BITS): New macro.
39125         (mp_twolimb_t): New type.
39126         (GMP_TWOLIMB_BITS): New macro.
39127         (mpn_t): New type.
39128         (multiply, divide, convert_to_decimal, decode_long_double,
39129         scale10_round_long_double, scale10_round_decimal_long_double,
39130         floorlog10l): New functions.
39131         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39132         for the %f, %F, %e, %E, %g, %G directives.
39133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39134         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39135         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39136         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39138         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39142         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39144         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39145         * modules/snprintf-posix (Depends-on): Likewise.
39146         * modules/sprintf-posix (Depends-on): Likewise.
39147         * modules/vasnprintf-posix (Depends-on): Likewise.
39148         * modules/vasprintf-posix (Depends-on): Likewise.
39149         * modules/vfprintf-posix (Depends-on): Likewise.
39150         * modules/vsnprintf-posix (Depends-on): Likewise.
39151         * modules/vsprintf-posix (Depends-on): Likewise.
39152         * modules/vasnprintf (Files): Add lib/float+.h.
39153         * doc/functions/fprintf.texi: Update.
39154         * doc/functions/printf.texi: Update.
39155         * doc/functions/snprintf.texi: Update.
39156         * doc/functions/sprintf.texi: Update.
39157         * doc/functions/vfprintf.texi: Update.
39158         * doc/functions/vprintf.texi: Update.
39159         * doc/functions/vsnprintf.texi: Update.
39160         * doc/functions/vsprintf.texi: Update.
39161
39162 2007-05-18  Bruno Haible  <bruno@clisp.org>
39163
39164         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39165
39166 2007-05-18  Bruno Haible  <bruno@clisp.org>
39167
39168         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39169         for printing 64-bit integers. Needed for mingw.
39170
39171 2007-05-18  Bruno Haible  <bruno@clisp.org>
39172
39173         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39174         gl_FUNC_FREXPL_WORKS.
39175         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39176
39177 2007-05-18  Bruno Haible  <bruno@clisp.org>
39178
39179         * modules/frexpl-nolibm-tests: New file.
39180
39181         * modules/frexpl-nolibm: New file.
39182         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39183
39184 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39185
39186         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39187         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39188         GCC 4.2, which otherwise issues a lot of warnings.
39189         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39190         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39191         Likewise.
39192         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39193         * modules/iconv_open (iconv.h): Likewise.
39194         * modules/locale (locale.h): Likewise.
39195         * modules/netinet_in (netinet/in.h): Likewise.
39196         * modules/sys_select (sys_select.h): Likewise.
39197         * modules/sys_socket (sys/socket.h): Likewise.
39198         * modules/sys_stat (sys/stat.h): Likewise.
39199         * modules/sysexits (sysexits.h): Likewise.
39200         * modules/unistd (unistd.h): Likewise.
39201
39202 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39203
39204         * modules/closein-tests (Makefile.am): Distribute
39205         `test-closein.sh'.
39206
39207 2007-05-17  Bruno Haible  <bruno@clisp.org>
39208
39209         * tests/test-printf-posix.output: Renamed from
39210         tests/test-fprintf-posix.out.
39211         * modules/fprintf-posix-tests: Update.
39212         * modules/printf-posix-tests: Update.
39213         * modules/vfprintf-posix-tests: Update.
39214         * modules/vprintf-posix-tests: Update.
39215         * tests/test-fprintf-posix.sh: Update.
39216         * tests/test-printf-posix.sh: Update.
39217         * tests/test-vfprintf-posix.sh: Update.
39218         * tests/test-vprintf-posix.sh: Update.
39219         Reported by Ralf Wildenhues.
39220
39221 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39222
39223         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39224         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39225         GCC 4.2, which otherwise issues a lot of warnings.
39226         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39227         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39228         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39229         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39230         it should no longer be needed.
39231         * lib/string_.h: Likewise.
39232         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39233         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39234         * modules/inttypes (inttypes.h): Likewise.
39235         * modules/math (math.h): Likewise.
39236         * modules/search (search.h): Likewise.
39237         * modules/signal (signal.h): Likewise.
39238         * modules/stdint (stdint.h): Likewise.
39239         * modules/stdio (stdio.h): Likewise.
39240         * modules/stdlib (stdlib.h): Likewise.
39241         * modules/string (string.h): Likewise.
39242         * modules/sys_time (sys/time.h): Likewise.
39243         * modules/time (time.h): Likewise.
39244         * modules/wchar (wchar.h): Likewise.
39245         * modules/wctype (wtype.h): Likewise.
39246
39247 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39248
39249         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39250
39251 2007-05-13  Bruno Haible  <bruno@clisp.org>
39252
39253         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39254         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39255         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39256         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39257         (gl_PREREQ_STRTOK_R): Don't require it here.
39258
39259 2007-05-13  Bruno Haible  <bruno@clisp.org>
39260
39261         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39262         when used in C++ mode.
39263
39264 2007-05-12  Bruno Haible  <bruno@clisp.org>
39265
39266         * lib/linebuffer.h: Tweak doc.
39267         * lib/linebuffer.c: Likewise.
39268
39269 2007-05-12  James Youngman  <jay@gnu.org>
39270
39271         * lib/linebuffer.c (readlinebuffer_delim): New function,
39272         like readlinebuffer, but use a caller-specified delimiter.
39273         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39274         as the delimiter.
39275         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39276
39277 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39278
39279         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39280         * modules/openat (Files): Remove openat-die.c.
39281         (Depends-on): Add openat-die.
39282         * modules/openat-die: New module.
39283
39284 2007-05-06  Bruno Haible  <bruno@clisp.org>
39285
39286         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39287         Update with info about Cygwin.
39288         * doc/functions/fprintf.texi: Update.
39289         * doc/functions/printf.texi: Update.
39290         * doc/functions/snprintf.texi: Update.
39291         * doc/functions/sprintf.texi: Update.
39292         * doc/functions/vfprintf.texi: Update.
39293         * doc/functions/vprintf.texi: Update.
39294         * doc/functions/vsnprintf.texi: Update.
39295         * doc/functions/vsprintf.texi: Update.
39296         Reported by Eric Blake.
39297
39298 2007-05-06  Bruno Haible  <bruno@clisp.org>
39299
39300         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39301         padding ourselves for the floating-point directives.
39302         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39305         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39306         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39314         * tests/test-snprintf-posix.h (test_function): Also check the width
39315         and some flags in the %f directive.
39316         * tests/test-sprintf-posix.h (test_function): Likewise.
39317         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39318         * tests/test-vasprintf-posix.c (test_function): Likewise.
39319         * doc/functions/fprintf.texi: Update.
39320         * doc/functions/printf.texi: Update.
39321         * doc/functions/snprintf.texi: Update.
39322         * doc/functions/sprintf.texi: Update.
39323         * doc/functions/vfprintf.texi: Update.
39324         * doc/functions/vprintf.texi: Update.
39325         * doc/functions/vsnprintf.texi: Update.
39326         * doc/functions/vsprintf.texi: Update.
39327
39328 2007-05-06  Bruno Haible  <bruno@clisp.org>
39329
39330         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39331         pass the ' flag character to sprintf or snprintf.
39332         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39335         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39336         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39344         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39345         flag.
39346         * tests/test-sprintf-posix.h (test_function): Likewise.
39347         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39348         * tests/test-vasprintf-posix.c (test_function): Likewise.
39349         * doc/functions/fprintf.texi: Update.
39350         * doc/functions/printf.texi: Update.
39351         * doc/functions/snprintf.texi: Update.
39352         * doc/functions/sprintf.texi: Update.
39353         * doc/functions/vfprintf.texi: Update.
39354         * doc/functions/vprintf.texi: Update.
39355         * doc/functions/vsnprintf.texi: Update.
39356         * doc/functions/vsprintf.texi: Update.
39357
39358 2007-05-01  Bruno Haible  <bruno@clisp.org>
39359
39360         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39361
39362 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39363
39364         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39365         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39366
39367 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39368
39369         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39370         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39372
39373 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39374
39375         * lib/argp-help.c (struct hol_entry): New member `ord'.
39376         (HOL_ENTRY_PTRCMP): Use ord for comparison
39377         (hol_sort): Initialize ord.
39378
39379 2007-05-01  Bruno Haible  <bruno@clisp.org>
39380
39381         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39382         Reported by Eric Blake.
39383         * doc/gnulib.texi (Function Substitutes): Update.
39384
39385 2007-05-01  Bruno Haible  <bruno@clisp.org>
39386
39387         * doc/functions.texi: Remove file, now redundant through
39388         doc/functions/*.texi.
39389
39390 2007-05-01  Bruno Haible  <bruno@clisp.org>
39391
39392         * modules/argp (Depends-on): Add sleep.
39393
39394 2007-05-01  Bruno Haible  <bruno@clisp.org>
39395
39396         * modules/sleep-tests: New file.
39397         * tests/test-sleep.c: New file.
39398
39399         * modules/sleep: New file.
39400         * lib/sleep.c: New file.
39401         * m4/sleep.m4: New file.
39402         * lib/unistd_.h (sleep): New declaration.
39403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39404         HAVE_SLEEP.
39405         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39406         * doc/functions/sleep.texi: Document the sleep module.
39407
39408 2007-05-01  Bruno Haible  <bruno@clisp.org>
39409
39410         * lib/sigprocmask.h: Remove file.
39411         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39412         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39413         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39414         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39415         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39416         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39417         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39418         HAVE_SIGSET_T as a shell variable.
39419         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39420         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39421         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39422         (Depends-on): Add signal. Remove verify.
39423         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39424         (Include): Mention <signal.h> instead of sigprocmask.h.
39425         * NEWS: Mention the change.
39426         * lib/fatal-signal.c: Don't include sigprocmask.h.
39427
39428 2007-05-01  Bruno Haible  <bruno@clisp.org>
39429
39430         * modules/signal: New file.
39431         * lib/signal_.h: New file.
39432         * m4/signal_h.m4: New file.
39433
39434 2007-05-01  Bruno Haible  <bruno@clisp.org>
39435
39436         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39437         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39438         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39439         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39440
39441 2007-05-01  Bruno Haible  <bruno@clisp.org>
39442
39443         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39444         configure time.
39445         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39446         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39447         * modules/sys_stat (Makefile.am): Substitute their values into
39448         sys/stat.h.
39449
39450 2007-05-01  Bruno Haible  <bruno@clisp.org>
39451
39452         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39453         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39454         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39455
39456 2007-05-01  Bruno Haible  <bruno@clisp.org>
39457
39458         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39459         'assert' module here.
39460
39461 2007-05-01  Bruno Haible  <bruno@clisp.org>
39462
39463         * doc/functions/*.texi: New files.
39464         * doc/functions/google-ranking.txt: New file.
39465         * doc/gnulib.texi (Function Substitutes): New chapter.
39466         (ctime, inet_ntoa): Remove sections.
39467         * doc/ctime.texi: Remove file.
39468         * doc/inet_ntoa.texi: Remove file.
39469         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39470         dependencies.
39471         (%.info): New rule, specifying a --reference-limit.
39472
39473 2007-05-01  Bruno Haible  <bruno@clisp.org>
39474
39475         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39476
39477 2007-05-01  Bruno Haible  <bruno@clisp.org>
39478
39479         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39480         the portability of 'mkdir' to mingw systems.
39481
39482 2007-05-01  Bruno Haible  <bruno@clisp.org>
39483
39484         * doc/headers/google-ranking.txt: New file.
39485
39486 2007-04-30  Eric Blake  <ebb9@byu.net>
39487
39488         Prefer fseeko to fseek.
39489         * modules/getpass (Depends-on): Add fseeko.
39490         * lib/getpass.c (getpass): Use fseeko, not fseek.
39491
39492 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39493
39494         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39495         assumes the sorting is stable, while most qsort implementations
39496         are not.  Use argument addresses to ensure they never compare as
39497         equal.
39498
39499         * tests/test-argp-2.sh (usage-indent test): Fix output
39500         (func_compare): Restore diff options
39501         * tests/test-argp.c: Restore #include "progname.h"
39502
39503 2007-04-29  Bruno Haible  <bruno@clisp.org>
39504
39505         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39507         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39509         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39510         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39511         (TESTS, check_PROGRAMS): Add test-snprintf.
39512         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39513         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39514         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39515         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39516         assertions that fail on HP-UX, OSF/1, or IRIX.
39517         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39518
39519 2007-04-29  Bruno Haible  <bruno@clisp.org>
39520
39521         * MODULES.html.sh (posix_functions): Remove 'contents'.
39522
39523 2007-04-29  Karl Berry  <karl@gnu.org>
39524
39525         * config/srclist.txt (gendocs_template_min): new entry.
39526
39527 2007-04-29  Bruno Haible  <bruno@clisp.org>
39528
39529         Work around fpurge bug on BSD systems.
39530         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39531         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39532         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39533         fpurge to rpl_fpurge if the system already has this function.
39534         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39535         the case where the system already has this function. Correct invariants
39536         on BSD systems.
39537         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39538         BSD systems.
39539
39540 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39541
39542         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39543         proposed by Sven Verdoolaege.
39544
39545         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39546         options.
39547         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
39548         (usage and help tests): Update
39549
39550 2007-04-29  Bruno Haible  <bruno@clisp.org>
39551
39552         * tests/test-fflush.c (main): Use a file of size 17, not 10.
39553         Print more information in case of failure. Disable a test on BeOS.
39554
39555 2007-04-29  Bruno Haible  <bruno@clisp.org>
39556
39557         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
39558         This helps debugging on systems on which no gdb is available.
39559
39560 2007-04-29  Bruno Haible  <bruno@clisp.org>
39561
39562         * lib/freading.h: Improve comments.
39563         * lib/fwriting.h: Likewise.
39564         * tests/test-freading.c (main): Don't check freading immediately after
39565         repositioning. Needed for glibc.
39566
39567 2007-04-29  Bruno Haible  <bruno@clisp.org>
39568
39569         * lib/freading.c (freading): Trivial simplification.
39570
39571 2007-04-28  Bruno Haible  <bruno@clisp.org>
39572
39573         * tests/test-fwriting.c (main): Also test the interaction between
39574         fflush and fwriting.
39575         * modules/fwriting-tests (Depends-on): Add fflush.
39576
39577         * tests/test-freading.c (main): Also test the interaction between
39578         fflush and freading.
39579         * modules/freading-tests (Depends-on): Add fflush.
39580
39581 2007-04-28  Bruno Haible  <bruno@clisp.org>
39582
39583         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
39584         fseeko and ftello.
39585         Suggested by Eric Blake.
39586
39587 2007-04-28  Jim Meyering  <jim@meyering.net>
39588
39589         Avoid false-negative in gl_STDINT_H's C99 conformance test.
39590         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
39591         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
39592
39593 2007-04-27  Eric Blake  <ebb9@byu.net>
39594
39595         * doc/headers/assert.texi (assert.h): Document assert module use.
39596
39597 2007-04-27  Bruno Haible  <bruno@clisp.org>
39598
39599         * doc/headers/*.texi: New files.
39600         * doc/gnulib.texi (Header File Substitutes): New chapter.
39601         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
39602         dependencies.
39603         (standards.info ,standards.html, standards.dvi): Update dependencies.
39604         (mostlyclean, clean): New targets.
39605
39606 2007-04-27  Bruno Haible  <bruno@clisp.org>
39607
39608         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
39609         * modules/sysexits (Files, Makefile.am): Update.
39610
39611         * lib/sys_socket_.h: Renamed from lib/socket_.h.
39612         * modules/sys_socket (Files, Makefile.am): Update.
39613
39614         * lib/sys_stat_.h: Renamed from lib/stat_.h.
39615         * modules/sys_stat (Files, Makefile.am): Update.
39616
39617 2007-04-27  Eric Blake  <ebb9@byu.net>
39618
39619         * lib/freading.h: Improve comments.
39620         * lib/fwriting.h: Likewise.
39621         * lib/fflush.c: Likewise.
39622
39623         Fix closein for mingw.
39624         * modules/closein-tests: Add tests for closein.
39625         * tests/test-closein.c: New file.
39626         * tests/test-closein.sh: Likewise.
39627         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
39628         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
39629
39630 2007-04-27  Bruno Haible  <bruno@clisp.org>
39631
39632         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
39633         version is < 6.
39634         * lib/math_.h [__DECC]: Likewise.
39635         * lib/stdio_.h [__DECC]: Likewise.
39636         * lib/stdlib_.h [__DECC]: Likewise.
39637         * lib/string_.h [__DECC]: Likewise.
39638         * lib/time_.h [__DECC]: Likewise.
39639         * lib/wchar_.h [__DECC]: Likewise.
39640         * lib/wctype_.h [__DECC]: Likewise.
39641
39642 2007-04-27  Bruno Haible  <bruno@clisp.org>
39643
39644         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
39645
39646 2007-04-27  Bruno Haible  <bruno@clisp.org>
39647
39648         * lib/fflush.c: Add comments.
39649         * modules/fpurge-tests (Depends-on): Add fflush.
39650         * modules/freadable-tests (Depends-on): Likewise.
39651         * modules/fwritable-tests (Depends-on): Likewise.
39652
39653 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
39654
39655         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
39656         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
39657         Report by Bruno Haible <bruno@clisp.org>.
39658
39659 2007-04-26  Eric Blake  <ebb9@byu.net>
39660
39661         Fix fflush on mingw.
39662         * modules/fflush (Depends-on): Add freading.
39663         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
39664         but unread data.
39665
39666 2007-04-26  Eric Blake  <ebb9@byu.net>
39667         and Bruno Haible  <bruno@clisp.org>
39668
39669         Implement freading and fwriting.
39670         * lib/freading.c: New file.
39671         * lib/freading.h: Likewise.
39672         * m4/freading.m4: Likewise.
39673         * modules/freading: Likewise.
39674         * modules/freading-tests: Likewise.
39675         * tests/test-freading.c: Likewise.
39676         * lib/fwriting.c: New file.
39677         * lib/fwriting.h: Likewise.
39678         * m4/fwriting.m4: Likewise.
39679         * modules/fwriting: Likewise.
39680         * modules/fwriting-tests: Likewise.
39681         * tests/test-fwriting.c: Likewise.
39682         * MODULES.html.sh (File stream based Input/Output): Mention them.
39683
39684 2007-04-26  Bruno Haible  <bruno@clisp.org>
39685
39686         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
39687         'long' when we assume it.
39688         Suggested by Eric Blake.
39689
39690 2007-04-26  Bruno Haible  <bruno@clisp.org>
39691
39692         Ensure fseeko, ftello are declared on glibc systems.
39693         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
39694         * modules/fseeko (configure.ac-early): Likewise.
39695         * modules/ftello (configure.ac-early): Likewise.
39696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
39697         AC_FUNC_FSEEKO for this.
39698         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
39699         (gl_CHECK_FSEEKO): Remove macro.
39700
39701 2007-04-26  Bruno Haible  <bruno@clisp.org>
39702
39703         * tests/test-fflush.c (main): Also check the ftell result after
39704         fflush and fseek/fseeko.
39705         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
39706         file descriptor position cache in the stream.
39707         * lib/fseeko.c (rpl_fseeko): Likewise.
39708
39709 2007-04-26  Bruno Haible  <bruno@clisp.org>
39710
39711         * modules/fflush-tests (Depends-on): Add fseeko.
39712
39713 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
39714             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39715
39716         * lib/argz_.h: ensure error_t definition is obtained in same
39717         mechanism system argz.h would have.
39718         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
39719         argz facilities are known bad.  Err on the side of caution if
39720         cross-compiling.
39721
39722 2007-04-25  Eric Blake  <ebb9@byu.net>
39723
39724         * lib/fpurge.c (includes): Use stdlib.h for free.
39725         * tests/test-fflush.c (main): Also test fflush-fseeko.
39726
39727 2007-04-25  Bruno Haible  <bruno@clisp.org>
39728
39729         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
39730         * lib/fseeko.c: New file.
39731         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
39732         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
39733         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
39734         gl_FUNC_FSEEKO.
39735         (gl_FUNC_FSEEKO): Invoke it.
39736         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
39737         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
39738         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
39739
39740 2007-04-25  Bruno Haible  <bruno@clisp.org>
39741
39742         * modules/fflush (Depends-on): Add ftello.
39743
39744 2007-04-25  Bruno Haible  <bruno@clisp.org>
39745
39746         * modules/ftello-tests: New file.
39747         * tests/test-ftello.c: New file.
39748
39749         * modules/ftello: New file.
39750         * m4/ftello.m4: New file.
39751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
39752         HAVE_FTELLO.
39753         * lib/stdio_.h (ftello): New declaration.
39754         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
39755         HAVE_FTELLO.
39756
39757 2007-04-25  Bruno Haible  <bruno@clisp.org>
39758
39759         * modules/fseeko-tests: New file.
39760         * tests/test-fseeko.c: New file.
39761
39762         * modules/fseeko: New file.
39763         * m4/fseeko.m4: New file.
39764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
39765         HAVE_FSEEKO.
39766         * lib/stdio_.h (fseeko): New declaration.
39767         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
39768         HAVE_FSEEKO.
39769
39770 2007-04-25  Bruno Haible  <bruno@clisp.org>
39771
39772         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
39773
39774 2007-04-25  Bruno Haible  <bruno@clisp.org>
39775
39776         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
39777         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
39778         * tests/test-unistd.c: Likewise.
39779         * tests/test-fcntl.c: Likewise.
39780
39781 2007-04-23  Eric Blake  <ebb9@byu.net>
39782
39783         * lib/fflush.c: Fix missing include.
39784         Reported by Bruno Haible.
39785
39786 2007-04-23  Bruno Haible  <bruno@clisp.org>
39787
39788         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
39789         Reported by Eric Blake.
39790
39791 2007-04-23  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
39794
39795 2007-04-23  Bruno Haible  <bruno@clisp.org>
39796
39797         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
39798
39799 2007-04-23  Bruno Haible  <bruno@clisp.org>
39800
39801         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
39802         Needed on HP-UX 11.
39803
39804 2007-04-16  Eric Blake  <ebb9@byu.net>
39805
39806         Make fflush rely on fpurge.
39807         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
39808         open coding all variants.
39809         * modules/fflush (Depends-on): Add fpurge and unistd.
39810         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
39811         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
39812
39813         Fix --with-tests compilation on cygwin.
39814         * modules/argmatch-tests (Makefile.am): List gnulib library first
39815         in LDADD.
39816         * modules/argp-tests (Makefile.am): Likewise.
39817         * modules/array-list-tests (Makefile.am): Likewise.
39818         * modules/array-oset-tests (Makefile.am): Likewise.
39819         * modules/avltree-list-tests (Makefile.am): Likewise.
39820         * modules/avltree-oset-tests (Makefile.am): Likewise.
39821         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39822         * modules/carray-list-tests (Makefile.am): Likewise.
39823         * modules/dirname-tests (Makefile.am): Likewise.
39824         * modules/frexp-tests (Makefile.am): Likewise.
39825         * modules/isnanl-tests (Makefile.am): Likewise.
39826         * modules/linked-list-tests (Makefile.am): Likewise.
39827         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39828         * modules/lock-tests (Makefile.am): Likewise.
39829         * modules/rbtree-list-tests (Makefile.am): Likewise.
39830         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39831         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39832         * modules/tls-tests (Makefile.am): Likewise.
39833         * modules/tsearch-tests (Makefile.am): Likewise.
39834         * modules/xvasprintf-tests (Makefile.am): Likewise.
39835
39836         Fix fpurge for cygwin.
39837         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
39838         value.
39839         * modules/fpurge-tests (Depends-on): Clean up trash.
39840
39841 2007-04-16  Simon Josefsson  <simon@josefsson.org>
39842
39843         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
39844
39845         * m4/autobuild.m4: Re-indent.
39846
39847 2007-04-13  Bruno Haible  <bruno@clisp.org>
39848
39849         * modules/fpurge-tests: New file.
39850         * tests/test-fpurge.c: New file.
39851
39852         * modules/fpurge: New file.
39853         * lib/fpurge.h: New file.
39854         * lib/fpurge.c: New file.
39855         * m4/fpurge.m4: New file.
39856
39857 2007-04-13  Bruno Haible  <bruno@clisp.org>
39858
39859         * modules/fbufmode-tests: New file.
39860         * tests/test-fbufmode.c: New file.
39861
39862         * modules/fbufmode: New file.
39863         * lib/fbufmode.h: New file.
39864         * lib/fbufmode.c: New file.
39865         * m4/fbufmode.m4: New file.
39866
39867 2007-04-13  Bruno Haible  <bruno@clisp.org>
39868
39869         * modules/fwritable-tests: New file.
39870         * tests/test-fwritable.c: New file.
39871
39872         * modules/fwritable: New file.
39873         * lib/fwritable.h: New file.
39874         * lib/fwritable.c: New file.
39875         * m4/fwritable.m4: New file.
39876
39877 2007-04-13  Bruno Haible  <bruno@clisp.org>
39878
39879         * modules/freadable-tests: New file.
39880         * tests/test-freadable.c: New file.
39881
39882         * modules/freadable: New file.
39883         * lib/freadable.h: New file.
39884         * lib/freadable.c: New file.
39885         * m4/freadable.m4: New file.
39886
39887 2007-04-13  Bruno Haible  <bruno@clisp.org>
39888
39889         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
39890         MOSTLYCLEANFILES.
39891
39892 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
39893
39894         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
39895         gzip bootstrap.conf to avoid dragging in i18n machinery.
39896         (gnulib_tool_option): Use it.
39897
39898 2007-04-13  Bruno Haible  <bruno@clisp.org>
39899
39900         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
39901         %F directives.
39902         * tests/test-vasprintf-posix.c (test_function): Likewise.
39903         * tests/test-snprintf-posix.h (test_function): Likewise.
39904         * tests/test-sprintf-posix.h (test_function): Likewise.
39905         * tests/test-fprintf-posix.h (test_function): Likewise.
39906         * tests/test-printf-posix.h (test_function): Likewise.
39907         * tests/test-fprintf-posix.out: Likewise.
39908
39909 2007-04-13  Bruno Haible  <bruno@clisp.org>
39910
39911         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
39912         * modules/tls-tests (configure.ac): Likewise.
39913         Reported by Arto C. Nirkko <anirkko@insel.ch>.
39914
39915 2007-04-13  Bruno Haible  <bruno@clisp.org>
39916
39917         * lib/tls.c (glthread_tls_get): Fix return type.
39918         Patch by Arto C. Nirkko <anirkko@insel.ch>.
39919
39920 2007-04-12  Eric Blake  <ebb9@byu.net>
39921
39922         * modules/gettime (Depends-on): Remove gettime.
39923         Reported by Dmitry V. Levin.
39924
39925 2007-04-12  Bruno Haible  <bruno@clisp.org>
39926
39927         * modules/fflush (Include): Mention <stdio.h>.
39928         * modules/strtoimax (Include): Mention <inttypes.h>.
39929         * modules/strtoumax (Include): Likewise.
39930
39931 2007-04-12  Eric Blake  <ebb9@byu.net>
39932
39933         * .cvsignore: New file.
39934         * .gitignore: Likewise.
39935
39936 2007-04-12  Bruno Haible  <bruno@clisp.org>
39937
39938         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
39939         not before, since $(LDADD) often contains libgnu.a.
39940         * modules/striconv-tests (test_striconv_LDADD): Likewise.
39941         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
39942         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
39943         Needed on Cygwin.
39944
39945 2007-04-12  Eric Blake  <ebb9@byu.net>
39946
39947         Work around glibc's failure to flush stdin on fclose.
39948         * lib/closein.c (close_stdin): Flush stdin before closing.
39949
39950         Work around glibc's failure to reset seekable stdin on exit.
39951         * modules/closein: New module.
39952         * lib/closein.c: New file.
39953         * lib/closein.h: Likewise.
39954         * m4/closein.m4: Likewise.
39955         * MODULES.html.sh (File stream based Input/Output): Document it.
39956
39957 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39958
39959         * gnulib-tool: Rename generated 'autobuild' script to
39960         'do-autobuild' in --create-megatestdir output.
39961
39962         * doc/gnulib.texi (Build robot for gnulib): Fix.
39963
39964 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39965
39966         * modules/sysexits (Depends-on): Add absolute-header.
39967
39968 2007-04-12  Eric Blake  <ebb9@byu.net>
39969
39970         No need to preserve errno on success.
39971         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
39972         Reported by Bruno Haible.
39973
39974 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39975
39976         * MODULES.html.sh (Support for maintaining and releasing
39977         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
39978
39979 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39980
39981         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
39982
39983 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39984
39985         * modules/autobuild: New module.
39986
39987         * m4/autobuild.m4: New file.
39988
39989 2007-04-11  Bruno Haible  <bruno@clisp.org>
39990
39991         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
39992         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
39993         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
39994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
39995         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39996         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39997         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39999         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40000         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40002         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40003         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40005         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40006         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40007         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40008         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40009         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40010         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40011         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40012         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40014         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40015         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40016         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40017         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40018         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40019         Reported by Eric Blake.
40020
40021 2007-04-11  Bruno Haible  <bruno@clisp.org>
40022
40023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40024
40025 2007-04-10  Bruno Haible  <bruno@clisp.org>
40026
40027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40028         for NaN and Infinity. Needed on FreeBSD 6.1.
40029         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40030         regarding results for "%010a" of Infinity and NaN.
40031         * tests/test-vasprintf-posix.c (test_function): Likewise.
40032         * tests/test-snprintf-posix.h (test_function): Likewise.
40033         * tests/test-sprintf-posix.h (test_function): Likewise.
40034         * tests/test-fprintf-posix.h (test_function): Likewise.
40035         * tests/test-printf-posix.h (test_function): Likewise.
40036         * tests/test-fprintf-posix.out: Likewise.
40037
40038 2007-04-10  Bruno Haible  <bruno@clisp.org>
40039
40040         * modules/locale-tests: New file.
40041         * tests/test-locale.c: New file.
40042
40043         * modules/locale: New file.
40044         * lib/locale_.h: New file.
40045         * m4/locale_h.m4: New file.
40046
40047 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40048             Bruno Haible  <bruno@clisp.org>
40049
40050         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40051         be determined, test for availability of the copysignf, copysign,
40052         copysignl functions.
40053         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40054         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40055         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40056
40057 2007-04-09  Eric Blake  <ebb9@byu.net>
40058
40059         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40060         * modules/stdio (Makefile.am): Support fflush.
40061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40062         * modules/fflush: New file.
40063         * lib/fflush.c: Likewise.
40064         * m4/fflush.m4: Likewise.
40065         * modules/fflush-tests: New test.
40066         * tests/test-fflush.c: Likewise.
40067         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40068
40069 2007-04-06  Bruno Haible  <bruno@clisp.org>
40070
40071         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40072         (VASNPRINTF): Use signbit for faster determination whether to print a
40073         minus sign.
40074         * modules/vasnprintf (Files): Remove lib/float+.h.
40075         * modules/fprintf-posix (Depends-on): Add signbit.
40076         * modules/snprintf-posix (Depends-on): Likewise.
40077         * modules/sprintf-posix (Depends-on): Likewise.
40078         * modules/vasnprintf-posix (Depends-on): Likewise.
40079         * modules/vasprintf-posix (Depends-on): Likewise.
40080         * modules/vfprintf-posix (Depends-on): Likewise.
40081         * modules/vsnprintf-posix (Depends-on): Likewise.
40082         * modules/vsprintf-posix (Depends-on): Likewise.
40083
40084 2007-04-06  Bruno Haible  <bruno@clisp.org>
40085
40086         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40087         * tests/test-frexpl.c (main): Likewise.
40088         * tests/test-ldexpl.c (main): Likewise.
40089         * modules/frexp-tests (Depends-on): Add signbit.
40090         * modules/frexpl-tests (Depdends-on): Likewise.
40091         * modules/ldexpl-tests (Depdends-on): Likewise.
40092
40093 2007-04-06  Bruno Haible  <bruno@clisp.org>
40094
40095         * modules/signbit-tests: New file.
40096         * tests/test-signbit.c: New file.
40097
40098         * modules/signbit: New file.
40099         * lib/signbitf.c: New file.
40100         * lib/signbitd.c: New file.
40101         * lib/signbitl.c: New file.
40102         * m4/signbit.m4: New file.
40103         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40104         (signbit): New macro.
40105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40106         REPLACE_SIGNBIT.
40107         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40108         REPLACE_FREXPL into math.h.
40109
40110 2007-04-06  Bruno Haible  <bruno@clisp.org>
40111
40112         * modules/isnanf-nolibm-tests: New file.
40113         * tests/test-isnanf.c: New file.
40114
40115         * modules/isnanf-nolibm: New file.
40116         * lib/isnanf.h: New file.
40117         * lib/isnanf.c: New file.
40118         * lib/isnan.c: Consider the USE_FLOAT macro.
40119         * m4/isnanf.m4: New file.
40120
40121 2007-04-06  Bruno Haible  <bruno@clisp.org>
40122
40123         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40124         (Link): New section.
40125
40126         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40127
40128 2007-04-06  Bruno Haible  <bruno@clisp.org>
40129
40130         Assume the 'long double' type.
40131         * m4/longdouble.m4: Remove file.
40132         * config/srclist.txt: Don't mention longdouble.m4.
40133         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40134         * lib/float+.h: Likewise.
40135         * lib/frexp.c: Likewise.
40136         * lib/printf-args.h: Likewise.
40137         * lib/printf-args.c: Likewise.
40138         * lib/printf-frexp.c: Likewise.
40139         * lib/printf-parse.c: Likewise.
40140         * lib/vasnprintf.c: Likewise.
40141         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40142         * m4/intl.m4: Likewise.
40143         * m4/isnanl.m4: Likewise.
40144         * m4/printf.m4: Likewise.
40145         * m4/printf-frexpl.m4: Likewise.
40146         * m4/vasnprintf.m4: Likewise.
40147         * modules/allocsa (Files): Remove m4/longdouble.m4.
40148         * modules/gettext (Files): Likewise.
40149         * modules/relocatable-prog-wrapper (Files): Likewise.
40150         * modules/vasnprintf (Files): Likewise.
40151         * modules/isnanl (Files): Likewise.
40152         (Include): Simplify.
40153         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40154         (Include): Simplify.
40155         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40156         (Include): Simplify.
40157         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40158         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40159         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40160         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40161         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40162         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40163         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40164         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40165         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40166         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40167         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40168         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40169         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40170         * tests/test-isnanl.c: Likewise.
40171         * tests/test-snprintf-posix.h: Likewise.
40172         * tests/test-sprintf-posix.h: Likewise.
40173         * tests/test-vasnprintf-posix.c: Likewise.
40174         * tests/test-vasnprintf-posix2.c: Likewise.
40175         * tests/test-vasprintf-posix.c: Likewise.
40176
40177 2007-04-06  Bruno Haible  <bruno@clisp.org>
40178
40179         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40180         * lib/math_.h [__DECC]: Include the overridden include file through
40181         #include_next, outside the double-inclusion guard.
40182         * lib/stdio_.h [__DECC]: Likewise.
40183         * lib/stdlib_.h [__DECC]: Likewise.
40184         * lib/string_.h [__DECC]: Likewise.
40185         * lib/time_.h [__DECC]: Likewise.
40186         * lib/wchar_.h [__DECC]: Likewise.
40187         * lib/wctype_.h [__DECC]: Likewise.
40188         * lib/inttypes_.h [__DECC]: Likewise.
40189         Reported by Albert Chin <china@thewrittenword.com> in
40190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40191
40192 2007-04-04  Eric Blake  <ebb9@byu.net>
40193
40194         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40195         1.5.x.
40196
40197 2007-04-04  Bruno Haible  <bruno@clisp.org>
40198
40199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40200         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40201
40202 2007-04-04  Bruno Haible  <bruno@clisp.org>
40203
40204         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40205         results for "%010a" of Infinity and NaN.
40206         * tests/test-vasprintf-posix.c (test_function): Likewise.
40207         * tests/test-snprintf-posix.h (test_function): Likewise.
40208         * tests/test-sprintf-posix.h (test_function): Likewise.
40209         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40210         * tests/test-printf-posix.h (test_function): Likewise.
40211         * tests/test-fprintf-posix.out: Update.
40212         Needed for FreeBSD 6.1.
40213
40214 2007-04-04  Bruno Haible  <bruno@clisp.org>
40215
40216         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40217         directly used by the gnulib modules nor by gnulib-tool.
40218
40219 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40220
40221         * DEPENDENCIES: Give overall description of version dependency
40222         desirability.  Use more-typical names for apps.
40223         Add shell, coreutils, diffutils, grep, tar, gzip.
40224
40225 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40226
40227         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40228
40229 2007-04-04  Karl Berry  <karl@gnu.org>
40230
40231         * MODULES.html.sh (func_module): missing '.
40232
40233 2007-04-03  Bruno Haible  <bruno@clisp.org>
40234
40235         * modules/argmatch-tests (Makefile.am): New variable
40236         test_argmatch_LDADD.
40237         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40238         * modules/array-list-tests (Makefile.am): New variable
40239         test_array_list_LDADD.
40240         * modules/array-oset-tests (Makefile.am): New variable
40241         test_array_oset_LDADD.
40242         * modules/avltree-list-tests (Makefile.am): New variable
40243         test_avltree_list_LDADD.
40244         * modules/avltree-oset-tests (Makefile.am): New variable
40245         test_avltree_oset_LDADD.
40246         * modules/avltreehash-list-tests (Makefile.am): New variable
40247         test_avltreehash_list_LDADD.
40248         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40249         test_canonicalize_lgpl_LDADD.
40250         * modules/carray-list-tests (Makefile.am): New variable
40251         test_carray_list_LDADD.
40252         * modules/dirname-tests (Makefile.am): New variable
40253         test_dirname_LDADD.
40254         * modules/linked-list-tests (Makefile.am): New variable
40255         test_linked_list_LDADD.
40256         * modules/linkedhash-list-tests (Makefile.am): New variable
40257         test_linkedhash_list_LDADD.
40258         * modules/rbtree-list-tests (Makefile.am): New variable
40259         test_rbtree_list_LDADD.
40260         * modules/rbtree-oset-tests (Makefile.am): New variable
40261         test_rbtree_oset_LDADD.
40262         * modules/rbtreehash-list-tests (Makefile.am): New variable
40263         test_rbtreehash_list_LDADD.
40264         * modules/xvasprintf-tests (Makefile.am): New variable
40265         test_xvasprintf_LDADD.
40266         Reported by Eric Blake.
40267
40268 2007-04-03  Eric Blake  <ebb9@byu.net>
40269
40270         * DEPENDENCIES: Weaken m4 requirements.
40271
40272 2007-04-03  Bruno Haible  <bruno@clisp.org>
40273
40274         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40275         * modules/isnanl-tests (configure.ac): Likewise.
40276
40277 2007-04-03  Ben Pfaff  <blp@gnu.org>
40278
40279         * modules/iconv_open: Add $(srcdir)/ to source directory
40280         references in Makefile fragments that call gperf, to fix VPATH
40281         builds.
40282
40283 2007-04-03  Bruno Haible  <bruno@clisp.org>
40284
40285         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40286         * lib/ldexpl.c: Undo last change.
40287
40288 2007-04-03  Bruno Haible  <bruno@clisp.org>
40289
40290         * modules/printf-frexpl (Depends-on): Undo last change.
40291         (Files): Add m4/ldexpl.m4.
40292
40293 2007-04-03  Bruno Haible  <bruno@clisp.org>
40294
40295         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40296         * modules/isnanl (Link): New section.
40297
40298         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40299         * modules/frexp (Link): New section.
40300
40301         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40302         * modules/frexpl (Link): New section.
40303
40304         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40305         * modules/ldexpl (Link): New section.
40306
40307 2007-04-03  Bruno Haible  <bruno@clisp.org>
40308
40309         * modules/TEMPLATE-EXTENDED: New file.
40310         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40311
40312 2007-04-03  Bruno Haible  <bruno@clisp.org>
40313
40314         * DEPENDENCIES: New file.
40315         Suggested by Simon Josefsson.
40316
40317 2007-04-03  Bruno Haible  <bruno@clisp.org>
40318
40319         * doc/gnulib.texi: Escape @.
40320
40321 2007-04-03  James Youngman  <jay@gnu.org>
40322         and Paul Eggert  <eggert@cs.ucla.edu>
40323
40324         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40325         birthtime on all systems that have birthtime, not just those which
40326         use st_birthtimensec rather than st_birthtim.  Putting zero in
40327         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40328         that the birth time is not available for files on an NFS mount.
40329
40330 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40331
40332         * modules/memxor: Move back from crypto/, suggested by Bruno.
40333         * modules/crypto/hmac-sha1: Fix memxor dependency.
40334
40335         * modules/crypto/gc: Moved from ../.
40336
40337 2007-04-02  Eric Blake  <ebb9@byu.net>
40338
40339         * lib/ldexpl.c (includes): Avoid libm.
40340
40341         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40342
40343 2007-04-02  Bruno Haible  <bruno@clisp.org>
40344
40345         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40346         on IRIX.
40347
40348 2007-04-02  Bruno Haible  <bruno@clisp.org>
40349
40350         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40351         x86 or x86_64 platforms running MacOS X.
40352         Reported by Ryan Schmidt <@ryandesign.com>.
40353
40354 2007-04-02  Bruno Haible  <bruno@clisp.org>
40355
40356         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40357         i386.
40358
40359 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40360
40361         * modules/crypto/arcfour: Moved from ../.
40362         * modules/crypto/arcfour-tests: Moved from ../.
40363         * modules/crypto/arctwo: Moved from ../.
40364         * modules/crypto/arctwo-tests: Moved from ../.
40365         * modules/crypto/des: Moved from ../.
40366         * modules/crypto/des-tests: Moved from ../.
40367         * modules/crypto/gc-arcfour: Moved from ../.
40368         * modules/crypto/gc-arcfour-tests: Moved from ../.
40369         * modules/crypto/gc-arctwo: Moved from ../.
40370         * modules/crypto/gc-arctwo-tests: Moved from ../.
40371         * modules/crypto/gc-des: Moved from ../.
40372         * modules/crypto/gc-des-tests: Moved from ../.
40373         * modules/crypto/gc-hmac-md5: Moved from ../.
40374         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40375         * modules/crypto/gc-hmac-sha1: Moved from ../.
40376         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40377         * modules/crypto/gc-md2: Moved from ../.
40378         * modules/crypto/gc-md2-tests: Moved from ../.
40379         * modules/crypto/gc-md4: Moved from ../.
40380         * modules/crypto/gc-md4-tests: Moved from ../.
40381         * modules/crypto/gc-md5: Moved from ../.
40382         * modules/crypto/gc-md5-tests: Moved from ../.
40383         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40384         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40385         * modules/crypto/gc-random: Moved from ../.
40386         * modules/crypto/gc-rijndael: Moved from ../.
40387         * modules/crypto/gc-rijndael-tests: Moved from ../.
40388         * modules/crypto/gc-sha1: Moved from ../.
40389         * modules/crypto/gc-sha1-tests: Moved from ../.
40390         * modules/crypto/gc-tests: Moved from ../.
40391         * modules/crypto/hmac-md5: Moved from ../.
40392         * modules/crypto/hmac-md5-tests: Moved from ../.
40393         * modules/crypto/hmac-sha1: Moved from ../.
40394         * modules/crypto/hmac-sha1-tests: Moved from ../.
40395         * modules/crypto/md2: Moved from ../.
40396         * modules/crypto/md2-tests: Moved from ../.
40397         * modules/crypto/md4: Moved from ../.
40398         * modules/crypto/md4-tests: Moved from ../.
40399         * modules/crypto/md5: Moved from ../.
40400         * modules/crypto/md5-tests: Moved from ../.
40401         * modules/crypto/memxor: Moved from ../.
40402         * modules/crypto/rijndael: Moved from ../.
40403         * modules/crypto/rijndael-tests: Moved from ../.
40404         * modules/crypto/sha1: Moved from ../.
40405
40406 2007-03-30  James Youngman  <jay@gnu.org>
40407
40408         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40409         rename() to change the ctime of a file (because ctime is unaffected
40410         by rename on jfs2 on AIX 5.1).
40411         (main): Start by doing cleanup, in case a previous run failed leaving
40412         test files behind.
40413
40414 2007-03-31  Bruno Haible  <bruno@clisp.org>
40415
40416         Support old proprietary implementations of iconv.
40417         * modules/iconv_open: New file.
40418         * lib/iconv_.h: New file.
40419         * m4/iconv_h.m4: New file.
40420         * lib/iconv_open.c: New file.
40421         * lib/iconv_open-aix.gperf: New file.
40422         * lib/iconv_open-hpux.gperf: New file.
40423         * lib/iconv_open-irix.gperf: New file.
40424         * lib/iconv_open-osf.gperf: New file.
40425         * m4/iconv_open.m4: New file.
40426         * modules/linebreak (Depends-on): Add iconv_open.
40427         * modules/striconv (Depends-on): Likewise.
40428         * modules/striconveh (Depends-on): Likewise.
40429         * modules/unicodeio (Depends-on): Likewise.
40430         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40431         (iconv_t)(-1).
40432         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40433         conversion if cd is (iconv_t)(-1).
40434         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40435         is not possible.
40436
40437 2007-03-31  Bruno Haible  <bruno@clisp.org>
40438
40439         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40440         work on Solaris either. Protect also second use of "autodetect_jp".
40441
40442 2007-03-31  Bruno Haible  <bruno@clisp.org>
40443
40444         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40445         the function is not present.
40446
40447 2007-03-31  Bruno Haible  <bruno@clisp.org>
40448
40449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40450         the function is not present.
40451
40452 2007-03-31  Bruno Haible  <bruno@clisp.org>
40453
40454         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40455         a bug in HP-UX iconv_open().
40456
40457 2007-03-31  Bruno Haible  <bruno@clisp.org>
40458
40459         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40460         (Mathematics <math.h>): New section, add fpieee.
40461         (Input/output <stdio.h>): Add fseterr.
40462         (Mathematics <math.h>): New section, add printf-frexp.
40463         (Container data structures): Add sublist.
40464         (Core language properties): Add fpucw, inline.
40465         (Functions for greatest-width integer types <inttypes.h>): Add
40466         imaxabs, imaxdiv, inttypes.
40467         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40468         isnanl-nolibm, ldexp.
40469         (Mathematics <math.h>): New section, add printf-frexpl.
40470         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40471         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40472         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40473         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40474         (Unicode string functions): Add unistr/u*-mbtoucr.
40475         (Java): Add javacomp-script, javaexec-script.
40476         (C#): Add csharpcomp-script, csharpexec-script.
40477         (Support for building libraries and executables): Add havelib,
40478         relocatable-*.
40479         (Support for maintaining and releasing projects): Renamed from
40480         'Support for maintaining and release projects'. Add announce-gen.
40481
40482 2007-03-31  Bruno Haible  <bruno@clisp.org>
40483
40484         * README: Talk primarily about git.
40485         (git and CVS): Renamed from CVS.
40486         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40487         gnulib is available through git.
40488         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40489
40490 2007-03-30  Bruno Haible  <bruno@clisp.org>
40491
40492         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40493         * lib/poll_.h: Likewise.
40494         * lib/stat_.h: Likewise.
40495         * lib/sys_time_.h: Likewise.
40496         * lib/sysexit_.h: Likewise.
40497         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40498         * lib/stdbool_.h: Likewise.
40499         * lib/byteswap_.h: Add double-inclusion guard.
40500
40501 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40502
40503         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40504
40505 2007-03-30  Karl Berry  <karl@gnu.org>
40506
40507         * config/srclist-update: double space after USA in the license
40508         substitution, since that's how it's usually (?) written.
40509
40510 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40511
40512         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40513         reported by Bruno Haible.
40514
40515 2007-03-29  Bruno Haible  <bruno@clisp.org>
40516
40517         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40518         a bug in AIX iconv().
40519
40520 2007-03-29  Bruno Haible  <bruno@clisp.org>
40521
40522         * modules/ldexpl-tests: New file.
40523         * tests/test-ldexpl.c: New file.
40524
40525 2007-03-29  Bruno Haible  <bruno@clisp.org>
40526
40527         * lib/ldexpl.c: Include fpucw.h.
40528         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40529         multiplication.
40530         * modules/ldexpl (Depends-on): Add fpucw.
40531
40532 2007-03-29  Bruno Haible  <bruno@clisp.org>
40533
40534         * modules/ldexpl: New file.
40535         * m4/ldexpl.m4: New file.
40536         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40537         set.
40538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40539         REPLACE_LDEXPL.
40540         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40541         REPLACE_LDEXPL.
40542         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40543         gl_FUNC_LDEXPL_WORKS.
40544         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40545         * modules/mathl (Files): Remove lib/ldexpl.c.
40546         (Depends-on): Add ldexpl.
40547
40548 2007-03-29  Bruno Haible  <bruno@clisp.org>
40549
40550         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
40551
40552 2007-03-29  Bruno Haible  <bruno@clisp.org>
40553
40554         * tests/test-striconveh.c (main): Don't assume that a direct conversion
40555         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
40556         and possibly also HP-UX.
40557         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40558         work on AIX, IRIX, HP-UX, OSF/1.
40559         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40560         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40561         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40562         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40563         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
40564         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40565
40566 2007-03-29  Bruno Haible  <bruno@clisp.org>
40567
40568         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
40569
40570 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40571
40572         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
40573         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
40574
40575 2007-03-29  Eric Blake  <ebb9@byu.net>
40576
40577         * lib/acl-internal.h: Remove redundant include.
40578         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
40579         Cygwin when a file is locked.
40580
40581 2007-03-29  Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
40584         file.
40585         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
40586
40587 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40588
40589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
40590         try to remove a parent directory if the child couldn't be removed
40591         (except for the first rmdir, which could fail because the child
40592         doesn't exist).  Problem reported by Jeff Blaine in
40593         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
40594
40595 2007-03-28  Bruno Haible  <bruno@clisp.org>
40596
40597         * lib/striconveh.c (utf8conv_carefully): New function.
40598         (mem_cd_iconveh_internal): Invoke it.
40599
40600 2007-03-28  Bruno Haible  <bruno@clisp.org>
40601
40602         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
40603         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
40604         input.
40605         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
40606         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
40607         unistr/u8-uctomb.
40608
40609 2007-03-28  Bruno Haible  <bruno@clisp.org>
40610
40611         * modules/unistr/u8-mbtoucr: New file.
40612         * lib/unistr/u8-mbtoucr.c: New file.
40613         * modules/unistr/u16-mbtoucr: New file.
40614         * lib/unistr/u16-mbtoucr.c: New file.
40615         * modules/unistr/u16-mbtoucr: New file.
40616         * lib/unistr/u16-mbtoucr.c: New file.
40617         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
40618
40619 2007-03-27  Simon Josefsson  <simon@josefsson.org>
40620             Bruno Haible  <bruno@clisp.org>
40621
40622         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
40623         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
40624         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
40625
40626         * m4/stdio_h.m4: Add stubs for vasprintf too.
40627
40628         * modules/stdio: Support vasprintf in sed command.
40629
40630         * modules/vasprintf: Depend on stdio for prototypes.  Remove
40631         vasprintf.h.  Add stdio module indicator.
40632
40633         * lib/stdio_.h: Declare asprintf and vasprintf, based on
40634         vasprintf.h.
40635
40636         * lib/vasprintf.h: File removed.
40637
40638         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
40639         * lib/vasprintf.c: Ditto.
40640         * lib/xvasprintf.c: Ditto.
40641         * tests/test-vasprintf-posix.c: Ditto.
40642         * tests/test-vasprintf.c: Ditto.
40643
40644 2007-03-27  Bruno Haible  <bruno@clisp.org>
40645
40646         Make vasnprintf multithread-safe.
40647         * lib/vasnprintf.c (decimal_point_char): New function.
40648         (VASNPRINTF): Use it.
40649         Suggested by Simon Josefsson.
40650
40651 2007-03-27  Eric Blake  <ebb9@byu.net>
40652
40653         Support sub-second birthtime on cygwin.
40654         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
40655         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
40656         (get_stat_birthtime): Also work with st_birthtim.
40657
40658 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
40659
40660         * lib/stat-time.h (USE_BIRTHTIME): Remove.
40661         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
40662         (get_stat_birthtime_ns): Do not try to use "spare" fields.
40663         (get_stat_birthtime_ns): Simplify compile-time tests.
40664         (get_stat_birthtime): Change the API to look like
40665         get_stat_mtime etc., except return a negative tv_nsec on error.
40666         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
40667         Don't check for "spare" fields.
40668         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
40669         or for struct stat.st_birthtime, as these tests aren't used.
40670         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
40671
40672 2007-03-27  Bruno Haible  <bruno@clisp.org>
40673
40674         * lib/stat-time.h: Include <sys/stat.h>.
40675
40676 2007-03-27  James Youngman  <jay@gnu.org>
40677
40678         * lib/stat-time.h (get_stat_birthtime): New function for
40679           retrieving st_birthtime as provided by UFS2 (hence *BSD).
40680         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
40681           and its variants.
40682         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
40683         * modules/stat-time-test: New file.
40684         * tests/test-stat-time.c: New test, devised by Bruno Haible.
40685
40686 2007-03-26  Bruno Haible  <bruno@clisp.org>
40687
40688         Better support of signalling NaNs.
40689         * lib/atanl.c: Include isnanl.h.
40690         (atanl): Perform test for NaN at the beginning of the function and
40691         through a call to isnanl.
40692         * lib/cosl.c: Include isnanl.h.
40693         (cosl): Perform test for NaN at the beginning of the function and
40694         through a call to isnanl.
40695         * lib/ldexpl.c: Include isnanl.h.
40696         (ldexpl): Perform test for NaN through a call to isnanl.
40697         * lib/logl.c: Include isnanl.h.
40698         (logl): Perform test for NaN at the beginning of the function and
40699         through a call to isnanl.
40700         * lib/sinl.c: Include isnanl.h.
40701         (sinl): Perform test for NaN at the beginning of the function and
40702         through a call to isnanl.
40703         * lib/sqrtl.c: Include isnanl.h.
40704         (sqrtl): Perform test for NaN at the beginning of the function and
40705         through a call to isnanl.
40706         * lib/tanl.c: Include isnanl.h.
40707         (tanl): Perform test for NaN at the beginning of the function and
40708         through a call to isnanl.
40709         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
40710         * modules/mathl (Depends-on): Add isnanl.
40711
40712 2007-03-26  Eric Blake  <ebb9@byu.net>
40713
40714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
40715         regression in logic sense of previous patch.
40716
40717 2007-03-26  Bruno Haible  <bruno@clisp.org>
40718
40719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
40720         unportable shell command "if ! ...".
40721         Reported by Ralf Wildenhues.
40722
40723 2007-03-25  Bruno Haible  <bruno@clisp.org>
40724
40725         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
40726         <sysexits.h> file, and only add EX_CONFIG.
40727         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
40728         absolute file name and whether it is sufficient. Substitute also
40729         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
40730         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
40731         ABSOLUTE_SYSEXITS_H into sysexits.h.
40732
40733 2007-03-25  Bruno Haible  <bruno@clisp.org>
40734
40735         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
40736         hints is NULL.
40737
40738 2007-03-25  Bruno Haible  <bruno@clisp.org>
40739
40740         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
40741         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
40742
40743 2007-03-25  Bruno Haible  <bruno@clisp.org>
40744
40745         * lib/vasnprintf.c: Include langinfo.h.
40746         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
40747         multithread-safe.
40748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
40749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
40750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
40756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40757         Reported by Simon Josefsson.
40758
40759 2007-03-25  Bruno Haible  <bruno@clisp.org>
40760
40761         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
40762         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
40763         * modules/vasnprintf (Depends-on): Add stdint.
40764
40765 2007-03-25  Bruno Haible  <bruno@clisp.org>
40766
40767         * modules/fpieee: New file.
40768         * m4/fpieee.m4: New file.
40769         * modules/isnan-nolibm (Depends-on): Add fpieee.
40770         * modules/isnanl-nolibm (Depends-on): Add fpieee.
40771         * modules/isnanl (Depends-on): Add fpieee.
40772
40773 2007-03-25  Bruno Haible  <bruno@clisp.org>
40774
40775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
40776
40777 2007-03-25  Bruno Haible  <bruno@clisp.org>
40778
40779         Avoid test failures on IRIX 6.5.
40780         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
40781         (main): Use it.
40782         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
40783         macros.
40784         (main): Use them.
40785
40786 2007-03-25  Bruno Haible  <bruno@clisp.org>
40787
40788         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
40789         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
40790         exists but doesn't work.
40791         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
40792         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
40793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
40794         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
40795
40796 2007-03-25  Bruno Haible  <bruno@clisp.org>
40797
40798         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
40799         returns inf. Needed on IRIX 6.5.
40800
40801 2007-03-25  Bruno Haible  <bruno@clisp.org>
40802
40803         * tests/test-frexpl.c: Include isnanl-nolibm.h.
40804         (main): Use isnanl instead of x != x idiom.
40805         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
40806
40807         * tests/test-frexp.c: Include isnan.h.
40808         (main): Use isnan instead of x != x idiom.
40809         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
40810
40811 2007-03-25  Bruno Haible  <bruno@clisp.org>
40812
40813         * tests/test-frexp.c (NaN): New function/macro.
40814         (main): Use it instead of 0.0 / 0.0.
40815         * tests/test-isnan.c (NaN): New function/macro.
40816         (main): Use it instead of 0.0 / 0.0.
40817         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
40818         (test_function): Use it instead of 0.0 / 0.0.
40819         * tests/test-vasprintf-posix.c (NaN): New function/macro.
40820         (test_function): Use it instead of 0.0 / 0.0.
40821         * tests/test-snprintf-posix.h (NaN): New function/macro.
40822         (test_function): Use it instead of 0.0 / 0.0.
40823         * tests/test-sprintf-posix.h (NaN): New function/macro.
40824         (test_function): Use it instead of 0.0 / 0.0.
40825         * tests/test-fprintf-posix.h (NaN): New function/macro.
40826         (test_function): Use it instead of 0.0 / 0.0.
40827         * tests/test-printf-posix.h (NaN): New function/macro.
40828         (test_function): Use it instead of 0.0 / 0.0.
40829
40830         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
40831
40832 2007-03-25  Bruno Haible  <bruno@clisp.org>
40833
40834         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
40835
40836 2007-03-25  Bruno Haible  <bruno@clisp.org>
40837
40838         * lib/regexec.c (merge_state_with_log): Make static.
40839
40840 2007-03-25  Bruno Haible  <bruno@clisp.org>
40841
40842         * lib/trigl.c (kernel_rem_pio2): Make static.
40843
40844 2007-03-25  Bruno Haible  <bruno@clisp.org>
40845
40846         * lib/sincosl.c (sincosl_table): Make static.
40847
40848 2007-03-25  Bruno Haible  <bruno@clisp.org>
40849
40850         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
40851         if the compiler does not support C99.
40852
40853 2007-03-25  Bruno Haible  <bruno@clisp.org>
40854
40855         * modules/time (Makefile.am): Ensure all rule action lines start with a
40856         tab.
40857
40858 2007-03-24  Bruno Haible  <bruno@clisp.org>
40859
40860         * modules/tsearch-tests: New file.
40861         * tests/test-tsearch.sh: New file.
40862         * tests/test-tsearch.c: New file, mostly copied from glibc.
40863
40864         * modules/search-tests: New file.
40865         * tests/test-search.c: New file.
40866
40867         * modules/search: New file.
40868         * lib/search_.h: New file, incorporating lib/tsearch.h.
40869         * m4/search_h.m4: New file.
40870         * lib/tsearch.h: Remove file.
40871         * lib/tsearch.c: Include search.h instead of tsearch.h.
40872         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
40873         HAVE_TSEARCH.
40874         * modules/tsearch (Files): Remove lib/tsearch.h.
40875         (Depends-on): Add search.
40876         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
40877         (Include): Change tsearch.h into search.h.
40878
40879 2007-03-24  Bruno Haible  <bruno@clisp.org>
40880
40881         * modules/fpucw: New file.
40882         * lib/fpucw.h: New file.
40883         * lib/frexp.c: Include fpucw.h.
40884         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40885         (FUNC): Use them.
40886         * lib/printf-frexp.c: Include fpucw.h.
40887         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40888         (FUNC): Use them.
40889         * lib/vasnprintf.c: Include fpucw.h.
40890         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
40891         'long double' calculations.
40892         * tests/test-frexpl.c: Include fpucw.h.
40893         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40894         * tests/test-printf-frexpl.c: Include fpucw.h.
40895         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40896         * modules/frexpl (Depends-on): Add fpucw.
40897         * modules/printf-frexpl (Depends-on): Likewise.
40898         * modules/fprintf-posix (Depends-on): Likewise.
40899         * modules/snprintf-posix (Depends-on): Likewise.
40900         * modules/sprintf-posix (Depends-on): Likewise.
40901         * modules/vasnprintf-posix (Depends-on): Likewise.
40902         * modules/vasprintf-posix (Depends-on): Likewise.
40903         * modules/vfprintf-posix (Depends-on): Likewise.
40904         * modules/vsnprintf-posix (Depends-on): Likewise.
40905         * modules/vsprintf-posix (Depends-on): Likewise.
40906         * modules/frexpl-tests (Depends-on): Likewise.
40907         * modules/printf-frexpl-tests (Depends-on): Likewise.
40908
40909 2007-03-24  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/float+.h: New file.
40912         * lib/isnan.c: Include float+.h.
40913         (SIZE): New macro.
40914         (FUNC): Compare only SIZE bytes of the value.
40915         * lib/vasnprintf.c: Include float+.h.
40916         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
40917         SIZEOF_LDBL or SIZEOF_DBL bytes.
40918         * modules/isnan-nolibm (Files): Add lib/float+.h.
40919         * modules/isnanl-nolibm (Files): Add lib/float+.h.
40920         * modules/isnanl (Files): Add lib/float+.h.
40921         * modules/vasnprintf (Files): Add lib/float+.h.
40922
40923 2007-03-24  Bruno Haible  <bruno@clisp.org>
40924
40925         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
40926         include isnanl-nolibm.h.
40927
40928 2007-03-24  Bruno Haible  <bruno@clisp.org>
40929
40930         * tests/test-read-file.c (main): Don't produce spurious output for
40931         expected situations. Make the test fail if it encountered unexpected
40932         results.
40933
40934 2007-03-24  Bruno Haible  <bruno@clisp.org>
40935
40936         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
40937         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
40938
40939 2007-03-24  Bruno Haible  <bruno@clisp.org>
40940
40941         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
40942
40943 2007-03-24  Bruno Haible  <bruno@clisp.org>
40944
40945         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
40946         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
40947
40948         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
40949         * modules/utf8-ucs4: Turn into a symbolic link to module
40950         unistr/u8-mbtouc.
40951
40952         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
40953         utf8-ucs4-unsafe.
40954         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
40955         unistr/u8-mbtouc-unsafe.
40956
40957         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
40958         * modules/utf16-ucs4: Turn into a symbolic link to module
40959         unistr/u16-mbtouc.
40960
40961         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
40962         utf16-ucs4-unsafe.
40963         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
40964         unistr/u16-mbtouc-unsafe.
40965
40966         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
40967         * modules/ucs4-utf8: Turn into a symbolic link to module
40968         unistr/u8-ubtomb.
40969
40970         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
40971         * modules/ucs4-utf16: Turn into a symbolic link to module
40972         unistr/u16-ubtomb.
40973
40974 2007-03-24  Bruno Haible  <bruno@clisp.org>
40975
40976         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
40977         Enable the function only if HAVE_INLINE.
40978         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
40979         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40980         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
40981         Enable the function only if HAVE_INLINE.
40982         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
40983         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40984         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
40985         Enable the function only if HAVE_INLINE.
40986         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
40987         Enable the function only if HAVE_INLINE.
40988         * modules/utf8-ucs4: Update.
40989         * modules/utf8-ucs4-unsafe: Update.
40990         * modules/utf16-ucs4: Update.
40991         * modules/utf16-ucs4-unsafe: Update.
40992         * modules/ucs4-utf8: Update.
40993         * modules/ucs4-utf16: Update.
40994
40995 2007-03-24  Bruno Haible  <bruno@clisp.org>
40996
40997         * lib/utf8-ucs4.h: Remove file.
40998         * lib/utf8-ucs4-unsafe.h: Remove file.
40999         * lib/utf16-ucs4.h: Remove file.
41000         * lib/utf16-ucs4-unsafe.h: Remove file.
41001         * lib/ucs4-utf8.h: Remove file.
41002         * lib/ucs4-utf16.h: Remove file.
41003         * lib/unistr.h: Include their previous contents.
41004         * m4/utf-ucs4.m4: Remove file.
41005         * m4/ucs4-utf.m4: Remove file.
41006         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41007         (Depends-on): Add unistr/base.
41008         (configure.ac): Remove gl_UTF_UCS4.
41009         (Makefile.am): Update.
41010         (Include): Change to unistr.h.
41011         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41012         (Depends-on): Add unistr/base.
41013         (configure.ac): Remove gl_UTF_UCS4.
41014         (Makefile.am): Update.
41015         (Include): Change to unistr.h.
41016         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41017         (Depends-on): Add unistr/base.
41018         (configure.ac): Remove gl_UTF_UCS4.
41019         (Makefile.am): Update.
41020         (Include): Change to unistr.h.
41021         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41022         (Depends-on): Add unistr/base.
41023         (configure.ac): Remove gl_UTF_UCS4.
41024         (Makefile.am): Update.
41025         (Include): Change to unistr.h.
41026         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41027         (Depends-on): Add unistr/base.
41028         (configure.ac): Remove gl_UCS4_UTF.
41029         (Makefile.am): Update.
41030         (Include): Change to unistr.h.
41031         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41032         (Depends-on): Add unistr/base.
41033         (configure.ac): Remove gl_UCS4_UTF.
41034         (Makefile.am): Update.
41035         (Include): Change to unistr.h.
41036         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41037         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41038         utf8-ucs4-unsafe.h.
41039         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41040         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41041         utf16-ucs4-unsafe.h.
41042         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41043         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41044         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41045         * lib/unistr/u8-strchr.c: Likewise.
41046         * lib/unistr/u8-strrchr.c: Likewise.
41047         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41048         * lib/unistr/u16-strchr.c: Likewise.
41049         * lib/unistr/u16-strrchr.c: Likewise.
41050         * lib/striconveh.c: Update.
41051         * lib/linebreak.c: Update.
41052
41053 2007-03-24  Bruno Haible  <bruno@clisp.org>
41054
41055         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41056         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41057
41058 2007-03-22  Bruno Haible  <bruno@clisp.org>
41059
41060         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41061
41062 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41063
41064         * MODULES.html.sh (File system functions): New module write-any-file.
41065         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41066         * m4/write-any-file.m4: New files.
41067
41068 2007-03-23  Eric Blake  <ebb9@byu.net>
41069
41070         * gnulib-tool: Rearrange space-tab sequences, since some editors
41071         like to eat them.
41072
41073 2007-03-23  Eric Blake  <ebb9@byu.net>
41074
41075         * lib/version-etc.c (version_etc_va): Update license wording to
41076         be more concise.  Recommended by Richard Stallman.
41077
41078 2007-03-22  Bruno Haible  <bruno@clisp.org>
41079
41080         * lib/poll.c (MSG_PEEK): New fallback definition.
41081
41082 2007-03-22  Bruno Haible  <bruno@clisp.org>
41083
41084         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41085         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41086         (main): Update.
41087         Fixes a compilation error on BeOS.
41088
41089 2007-03-22  Bruno Haible  <bruno@clisp.org>
41090
41091         * modules/frexpl-tests: New file.
41092         * tests/test-frexpl.c: New file.
41093
41094         * modules/frexpl: New file.
41095         * m4/frexpl.m4: New file.
41096         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41097         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41099         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41100         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41101         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41102
41103 2007-03-22  Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/frexpl.c: Share code with lib/frexp.c.
41106         * modules/mathl (Files): Add lib/frexp.c.
41107         (Depends-on): Add isnanl-nolibm.
41108
41109 2007-03-22  Bruno Haible  <bruno@clisp.org>
41110
41111         * modules/printf-frexp (Files): Add m4/frexp.m4.
41112         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41113         only if the found frexp function actually works.
41114
41115 2007-03-22  Bruno Haible  <bruno@clisp.org>
41116
41117         * lib/frexp.c: Remove older implementation that uses divisions.
41118
41119 2007-03-21  Bruno Haible  <bruno@clisp.org>
41120
41121         * modules/frexp-tests: New file.
41122         * tests/test-frexp.c: New file.
41123
41124         * modules/frexp: New file.
41125         * lib/frexp.c: New file.
41126         * m4/frexp.m4: New file.
41127         * lib/math_.h (frexp): New declaration.
41128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41129         REPLACE_FREXP.
41130         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41131
41132 2007-03-21  Bruno Haible  <bruno@clisp.org>
41133
41134         * modules/isnanl-tests: New file.
41135         * tests/test-isnanl.c: New file.
41136
41137         * modules/isnanl: New file.
41138         * lib/isnanl.h: New file.
41139         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41140         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41141         gl_FUNC_ISNANL_WORKS.
41142         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41143         New macros.
41144
41145 2007-03-21  Bruno Haible  <bruno@clisp.org>
41146
41147         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41148         lib/isnanl.h.
41149         (Include): Update.
41150         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41151         * lib/vasnprintf.c: Update.
41152         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41153         tests/test-isnanl.h, remove tests/test-isnanl.c.
41154         (Makefile.am): Update.
41155         * tests/test-isnanl-nolibm.c: New file.
41156         * tests/test-isnanl.h: New file.
41157         * tests/test-isnanl.c: Remove file.
41158
41159 2007-03-21  Jim Meyering  <jim@meyering.net>
41160
41161         When trying to open ".", treat ESTALE like EACCES.
41162         * lib/savewd.c (savewd_save): Resort to forking not just upon
41163         failure with EACCES, but also when errno is ESTALE.
41164
41165 2007-03-20  Bruno Haible  <bruno@clisp.org>
41166
41167         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41168         Needed on AIX 5.1. Reported by Matthew Woehlke.
41169
41170 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41171
41172         Suggestions by Bruno Haible:
41173         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41174         our own.
41175         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41176         * modules/acl (Depends-on): Add gettext.
41177
41178 2007-03-19  Bruno Haible  <bruno@clisp.org>
41179
41180         * modules/iconvme: Remove file.
41181         * lib/iconvme.h: Remove file.
41182         * lib/iconvme.c: Remove file.
41183         * m4/iconvme.m4: Remove file.
41184
41185 2007-03-19  Bruno Haible  <bruno@clisp.org>
41186
41187         * doc/relocatable-maint.texi: Break long shell script line.
41188         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41189
41190 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41191
41192         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41193         handle file_has_acl.
41194         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41195         * lib/acl.c: Move header inclusions and related macro defns into
41196         lib/acl-internal.h.
41197         (S_ISLNK): Remove defn, since that's now done for us.
41198         (file_has_acl): Move to lib/file-has-acl.c.
41199         Call acl_trivial if available.  This is the crucial part of the fix.
41200         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41201         shared within the library.  Rewrite a bit, partly to make it compatible
41202         with the GNU coding style.
41203         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41204         Remove unnecessary double-quotes.
41205         Don't test for acl_to_text; the build will catch that.
41206         Replace acl_entries if it doesn't exist and it is needed.
41207         Check for -lsec and acl_trivial (as used on Solaris 10).
41208         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41209         lib/file-has-acl.c.
41210         (Depends-on): Add sys_stat, for S_ISLNK.
41211
41212 2007-03-19  Ben Pfaff  <blp@gnu.org>
41213
41214         * doc/gnulib.texi: Fix typos.
41215         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41216
41217 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41218
41219         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41220         If size is zero here, buf must be zero.
41221
41222 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41223
41224         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41225         <bruno@clisp.org>.
41226
41227 2007-03-18  Bruno Haible  <bruno@clisp.org>
41228
41229         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41230         Suggested by Eric Blake.
41231
41232 2007-03-18  Ben Pfaff  <blp@gnu.org>
41233
41234         * doc/relocatable.texi: Recommend using as prefix a directory
41235         that does not exist and will never be created.  Based on
41236         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41237         and others.
41238
41239 2007-03-17  Bruno Haible  <bruno@clisp.org>
41240
41241         * lib/fchownat.c: Include lchown.h.
41242
41243 2007-03-17  Bruno Haible  <bruno@clisp.org>
41244
41245         Fix endless loop when the given allocated size was > INT_MAX.
41246         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41247         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41248         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41249         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41250         * lib/sprintf.c (sprintf): Likewise.
41251
41252 2007-03-17  Bruno Haible  <bruno@clisp.org>
41253
41254         * tests/test-argp-2.sh (func_compare): Output a context diff.
41255
41256 2007-03-17  Bruno Haible  <bruno@clisp.org>
41257
41258         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41259         locale's decimal-point character.
41260
41261 2007-03-17  Bruno Haible  <bruno@clisp.org>
41262
41263         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41264         before comparing it. Needed because on some platforms (e.g. x86) a
41265         'long double' occupies less bytes than sizeof (long double).
41266
41267 2007-03-17  Bruno Haible  <bruno@clisp.org>
41268
41269         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41270         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41271         * tests/test-getaddrinfo.c (simple): Likewise.
41272         * tests/test-read-file.c (main): Likewise.
41273
41274 2007-03-17  Bruno Haible  <bruno@clisp.org>
41275
41276         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41277
41278 2007-03-17  Bruno Haible  <bruno@clisp.org>
41279
41280         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41281         unused variable.
41282
41283 2007-03-17  Bruno Haible  <bruno@clisp.org>
41284
41285         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41286         * tests/test-c-strncasecmp.c: Likewise.
41287
41288 2007-03-17  Bruno Haible  <bruno@clisp.org>
41289
41290         * modules/stdlib (Depends-on): Add unistd.
41291         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41292         Needed for MacOS X 10.3.
41293
41294 2007-03-17  Bruno Haible  <bruno@clisp.org>
41295
41296         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41297
41298 2007-03-17  Bruno Haible  <bruno@clisp.org>
41299
41300         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41301
41302 2007-03-17  Bruno Haible  <bruno@clisp.org>
41303
41304         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41305         to reflect files copied from gnulib (with or without modifications).
41306         Suggested by Jim Meyering.
41307
41308 2007-03-17  Eric Blake  <ebb9@byu.net>
41309
41310         * NEWS: Document stdlib change from 2007-02-18.
41311
41312 2007-03-17  Jim Meyering  <jim@meyering.net>
41313
41314         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41315         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41316         someone uses a name containing shell meta-characters.
41317         Reported by Alfred M. Szmidt.
41318
41319         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41320
41321 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41322
41323         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41324         and copy gettext configuration files only if configure.ac contains
41325         a use of AM_GNU_GETTEXT_VERSION.
41326
41327 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41328
41329         * build-aux/bootstrap (gnulib_name): New variable.
41330         (gnulib_tool_options): Use it.
41331
41332 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41333
41334         * tests/test-des.c: Use new namespace.
41335
41336 2007-03-15  Bruno Haible  <bruno@clisp.org>
41337
41338         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41339         Reported by James Youngman <jay@gnu.org>.
41340
41341 2007-03-15  Bruno Haible  <bruno@clisp.org>
41342
41343         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41344         declared prototype. Needed with cc on OSF/1 5.1.
41345
41346 2007-03-15  Bruno Haible  <bruno@clisp.org>
41347
41348         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41349         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41350         (struct gl_list_implementation): Add dispose_fn argument to the
41351         'create_empty', 'create' methods.
41352         (struct gl_list_impl_base): Add field 'dispose_fn'.
41353         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41354         argument.
41355         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41356         dispose_fn argument.
41357         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41358         dispose_fn on the dropped values.
41359         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41360         dispose_fn argument.
41361         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41362         dropped values.
41363         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41364         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41365         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41366         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41367         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41368         argument.
41369         (gl_tree_list_free): Call dispose_fn on the dropped values.
41370         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41371         the dropped values.
41372         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41373         Add dispose_fn argument.
41374         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41375         Call dispose_fn on the dropped values.
41376         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41377         Add dispose_fn argument.
41378         (gl_sublist_create): Initialize the 'dispose_fn' field.
41379         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41380         * tests/test-array_list.c (main): Update.
41381         * tests/test-carray_list.c (main): Update.
41382         * tests/test-avltree_list.c (main): Update.
41383         * tests/test-rbtree_list.c (main): Update.
41384         * tests/test-avltreehash_list.c (main): Update.
41385         * tests/test-rbtreehash_list.c (main): Update.
41386         * tests/test-linked_list.c (main): Update.
41387         * tests/test-linkedhash_list.c (main): Update.
41388         * tests/test-array_oset.c (main): Update.
41389
41390 2007-03-15  Bruno Haible  <bruno@clisp.org>
41391
41392         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41393         (gl_oset_create_empty): Add dispose_fn argument.
41394         (struct gl_oset_implementation): Add dispose_fn argument to
41395         'create_empty' method.
41396         (struct gl_oset_impl_base): Add dispose_fn field.
41397         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41398         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41399         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41400         values.
41401         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41402         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41403         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41404         dropped value.
41405         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41406         dropped value.
41407         * tests/test-array_oset.c (main): Update.
41408         * tests/test-avltree_oset.c (main): Update.
41409         * tests/test-rbtree_oset.c (main): Update.
41410         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41411
41412 2007-03-13  Bruno Haible  <bruno@clisp.org>
41413
41414         * tests/test-stdbool.c (i): Update after last patch.
41415
41416 2007-03-12  Bruno Haible  <bruno@clisp.org>
41417
41418         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41419         the iswprint macro. Needed on Solaris 2.5.1.
41420
41421 2007-03-12  Bruno Haible  <bruno@clisp.org>
41422
41423         * tests/test-printf-frexp.c (main): Declare x as volatile.
41424
41425 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41426
41427         * doc/gnulib.texi (Build robot for gnulib): New section.
41428
41429 2007-03-12  Jim Meyering  <jim@meyering.net>
41430
41431         * build-aux/bootstrap: New file.
41432         * build-aux/bootstrap.conf: New file, from coreutils.
41433
41434 2007-03-11  Bruno Haible  <bruno@clisp.org>
41435
41436         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41437
41438 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41439
41440         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41441         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41442         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41443
41444 2007-03-11  Bruno Haible  <bruno@clisp.org>
41445
41446         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41447         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41448
41449 2007-03-11  Bruno Haible  <bruno@clisp.org>
41450
41451         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41452         formula. Needed for SunPRO C 5.0.
41453
41454 2007-03-11  Bruno Haible  <bruno@clisp.org>
41455
41456         * modules/long-options (Depends-on): Add getopt.
41457
41458 2007-03-11  Bruno Haible  <bruno@clisp.org>
41459
41460         * modules/modechange (Depends-on): Add stdbool.
41461
41462 2007-03-11  Bruno Haible  <bruno@clisp.org>
41463
41464         * modules/i-ring (Depends-on): Add stdbool.
41465
41466 2007-03-11  Bruno Haible  <bruno@clisp.org>
41467
41468         * modules/gc-des (Depends-on): Add stdbool.
41469
41470 2007-03-11  Bruno Haible  <bruno@clisp.org>
41471
41472         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41473
41474 2007-03-11  Bruno Haible  <bruno@clisp.org>
41475
41476         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41477
41478 2007-03-11  Bruno Haible  <bruno@clisp.org>
41479
41480         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41481
41482 2007-03-11  Bruno Haible  <bruno@clisp.org>
41483
41484         * lib/vasnprintf.c (sprintf): Undefine.
41485
41486 2007-03-11  Bruno Haible  <bruno@clisp.org>
41487
41488         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41489         initializers in SunPRO C and Compaq C compilers.
41490
41491 2007-03-11  Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41494         decrementing code ANSI C compliant.
41495
41496 2007-03-11  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41499         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41500
41501 2007-03-11  Bruno Haible  <bruno@clisp.org>
41502
41503         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41504         <stdbool.h> substitute doesn't pass.
41505
41506 2007-03-11  Bruno Haible  <bruno@clisp.org>
41507
41508         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41509
41510 2007-03-11  Bruno Haible  <bruno@clisp.org>
41511
41512         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41513         script, for submission to autobuild.josefsson.org.
41514
41515 2007-03-10  Bruno Haible  <bruno@clisp.org>
41516
41517         * modules/canonicalize-lgpl-tests: New file.
41518         * tests/test-canonicalize-lgpl.sh: New file.
41519         * tests/test-canonicalize-lgpl.c: New file.
41520
41521         * modules/c-strcase-tests: New file.
41522         * tests/test-c-strcase.sh: New file.
41523         * tests/test-c-strcasecmp.c: New file.
41524         * tests/test-c-strncasecmp.c: New file.
41525
41526         * modules/atexit-tests: New file.
41527         * tests/test-atexit.sh: New file.
41528         * tests/test-atexit.c: New file.
41529
41530 2007-03-10  Bruno Haible  <bruno@clisp.org>
41531
41532         * tests/test-binary-io.sh: Use temporary filenames that are not so
41533         likely to clash with those of other tests (in a parallel make).
41534         * tests/test-binary-io.c: Likewise.
41535
41536 2007-03-10  Bruno Haible  <bruno@clisp.org>
41537
41538         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41539         fallback; use #error instead.
41540         Suggested by Simon Josefsson.
41541
41542 2007-03-10  Bruno Haible  <bruno@clisp.org>
41543
41544         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41545         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41546         first and the last.
41547
41548 2007-03-10  Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
41551
41552 2007-03-10  Bruno Haible  <bruno@clisp.org>
41553
41554         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
41555         "make distcheck".
41556         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
41557         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
41558         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
41559
41560 2007-03-10  Bruno Haible  <bruno@clisp.org>
41561
41562         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
41563         variable.
41564         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
41565         variable.
41566
41567 2007-03-09  Eric Blake  <ebb9@byu.net>
41568         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
41569
41570         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
41571         types are not being provided by gnulib.
41572         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
41573         types are supported.
41574
41575 2007-03-10  Bruno Haible  <bruno@clisp.org>
41576
41577         * lib/stdio_.h (__attribute__): New macro.
41578         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
41579         vsprintf): Specify __attribute__ __format__ for GCC.
41580         Suggested by Eric Blake.
41581
41582 2007-03-09  Bruno Haible  <bruno@clisp.org>
41583
41584         * modules/printf-posix-tests: New file.
41585         * tests/test-printf-posix.sh: New file.
41586         * tests/test-printf-posix.c: New file.
41587
41588         * modules/printf-posix: New file.
41589         * lib/printf.c: New file.
41590         * m4/printf-posix-rpl.m4: New file.
41591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
41592         REPLACE_PRINTF.
41593         * lib/stdio_.h (printf): New declaration.
41594         (format, __format__, ____printf____, ____scanf____, ____strftime____,
41595         ____strfmon____): New macros.
41596         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
41597         REPLACE_PRINTF.
41598
41599 2007-03-09  Bruno Haible  <bruno@clisp.org>
41600
41601         * tests/test-vasnprintf-posix2.sh: New file.
41602         * tests/test-vasnprintf-posix2.c: New file.
41603         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
41604         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41605         (Makefile.am): Activate test-vasnprintf-posix2.sh.
41606
41607         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
41608         a locale dependent decimal point, rather than always '.'.
41609
41610 2007-03-09  Eric Blake  <ebb9@byu.net>
41611
41612         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
41613         spite of platforms like Tandem/NSK that define it to -1.
41614
41615 2007-03-08  Bruno Haible  <bruno@clisp.org>
41616
41617         * modules/vprintf-posix-tests: New file.
41618         * tests/test-vprintf-posix.sh: New file.
41619         * tests/test-vprintf-posix.c: New file.
41620         * tests/test-printf-posix.h: New file.
41621
41622         * modules/vprintf-posix: New file.
41623         * lib/vprintf.c: New file.
41624         * m4/vprintf-posix.m4: New file.
41625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
41626         REPLACE_VPRINTF.
41627         * lib/stdio_.h (vprintf): New declaration.
41628         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
41629         REPLACE_VPRINTF.
41630
41631 2007-03-08  Bruno Haible  <bruno@clisp.org>
41632
41633         * modules/fprintf-posix-tests: New file.
41634         * tests/test-fprintf-posix.sh: New file.
41635         * tests/test-fprintf-posix.c: New file.
41636
41637         * modules/fprintf-posix: New file.
41638         * lib/fprintf.c: New file.
41639         * m4/fprintf-posix.m4: New file.
41640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
41641         REPLACE_FPRINTF.
41642         * lib/stdio_.h (fprintf): New declaration.
41643         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
41644         REPLACE_FPRINTF.
41645
41646 2007-03-08  Bruno Haible  <bruno@clisp.org>
41647
41648         * modules/vfprintf-posix-tests: New file.
41649         * tests/test-vfprintf-posix.sh: New file.
41650         * tests/test-vfprintf-posix.c: New file.
41651         * tests/test-fprintf-posix.h: New file.
41652         * tests/test-fprintf-posix.out: New file.
41653
41654         * modules/vfprintf-posix: New file.
41655         * lib/vfprintf.c: New file.
41656         * m4/vfprintf-posix.m4: New file.
41657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
41658         REPLACE_VFPRINTF.
41659         * lib/stdio_.h (vfprintf): New declaration.
41660         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
41661         REPLACE_VFPRINTF.
41662
41663 2007-03-08  Bruno Haible  <bruno@clisp.org>
41664
41665         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
41666
41667 2007-03-08  Bruno Haible  <bruno@clisp.org>
41668
41669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
41670         instead of 'expr' invocations.
41671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41674         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41675         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41676         Suggested by Paul Eggert.
41677
41678 2007-03-08  Bruno Haible  <bruno@clisp.org>
41679
41680         * modules/fseterr-tests: New file.
41681         * tests/test-fseterr.c: New file.
41682
41683         * modules/fseterr: New file.
41684         * lib/fseterr.h: New file.
41685         * lib/fseterr.c: New file.
41686
41687 2007-03-08  Bruno Haible  <bruno@clisp.org>
41688
41689         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
41690         * lib/getopt_.h: Likewise.
41691         * lib/mbswidth.h: Likewise.
41692         * lib/setenv.h: Likewise.
41693         * lib/vasnprintf.h: Likewise.
41694         * lib/vasprintf.h: Likewise.
41695         * lib/verror.h: Likewise.
41696         * lib/xsetenv.h: Likewise.
41697         * lib/xvasprintf.h: Likewise.
41698
41699 2007-03-08  Jim Meyering  <jim@meyering.net>
41700
41701         * users.txt: Add parted.
41702
41703         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
41704
41705 2007-03-07  Bruno Haible  <bruno@clisp.org>
41706
41707         * m4/printf.m4: Make the shell script snippets copy&pastable.
41708
41709 2007-03-02  Bruno Haible  <bruno@clisp.org>
41710
41711         * lib/netinet_in_.h: New file.
41712         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
41713         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
41714         * modules/netinet_in (Files): Add lib/netinet_in_.h.
41715         (Depends-on): Add absolute-header.
41716         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
41717         into netinet/in.h.
41718
41719 2007-03-03  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/sys_select_.h: New file.
41722         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
41723         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
41724         * modules/sys_select (Files): Add lib/sys_select_.h.
41725         (Depends-on): Add absolute-header.
41726         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
41727         into sys/select.h.
41728
41729 2007-03-02  Bruno Haible  <bruno@clisp.org>
41730
41731         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
41732         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
41733         values.
41734         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
41735         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
41736         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
41737         * modules/sys_socket (Depends-on): Add absolute-header.
41738         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
41739         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
41740         (Include): Remove requirement of inclusion of <sys/types.h>.
41741
41742 2007-03-02  Bruno Haible  <bruno@clisp.org>
41743
41744         * lib/byteswap_.h (bswap_32): Fix formula.
41745
41746 2007-03-06  Bruno Haible  <bruno@clisp.org>
41747
41748         * modules/sprintf-posix-tests: New file.
41749         * tests/test-sprintf-posix.c: New file.
41750
41751         * modules/sprintf-posix: New file.
41752         * lib/sprintf.c: New file.
41753         * m4/sprintf-posix.m4: New file.
41754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
41755         REPLACE_SPRINTF.
41756         * lib/stdio_.h (sprintf): New declaration.
41757         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
41758         REPLACE_SPRINTF.
41759
41760 2007-03-06  Bruno Haible  <bruno@clisp.org>
41761
41762         * modules/vsprintf-posix-tests: New file.
41763         * tests/test-vsprintf-posix.c: New file.
41764         * tests/test-sprintf-posix.h: New file.
41765
41766         * modules/vsprintf-posix: New file.
41767         * lib/vsprintf.c: New file.
41768         * m4/vsprintf-posix.m4: New file.
41769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
41770         REPLACE_VSPRINTF.
41771         * lib/stdio_.h (vsprintf): New declaration.
41772         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
41773         REPLACE_VSPRINTF.
41774
41775 2007-03-06  Bruno Haible  <bruno@clisp.org>
41776
41777         * modules/vsnprintf (Depend-on): Remove minmax.
41778
41779 2007-03-06  Bruno Haible  <bruno@clisp.org>
41780
41781         * modules/snprintf-posix-tests: New file.
41782         * tests/test-snprintf-posix.c: New file.
41783
41784         * modules/snprintf-posix: New file.
41785         * m4/snprintf-posix.m4: New file.
41786         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
41787         gl_FUNC_SNPRINTF.
41788         (gl_FUNC_SNPRINTF): Invoke it.
41789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
41790         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
41791         is set.
41792         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
41793
41794 2007-03-06  Bruno Haible  <bruno@clisp.org>
41795
41796         * modules/vsnprintf-posix-tests: New file.
41797         * tests/test-vsnprintf-posix.c: New file.
41798         * tests/test-snprintf-posix.h: New file.
41799
41800         * modules/vsnprintf-posix: New file.
41801         * m4/vsnprintf-posix.m4: New file.
41802         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
41803         gl_FUNC_VSNPRINTF.
41804         (gl_FUNC_VSNPRINTF): Invoke it.
41805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
41806         * lib/stdio_.h (vsnprintf): Define as a replacement if
41807         REPLACE_VSNPRINTF is set.
41808         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
41809
41810 2007-03-06  Bruno Haible  <bruno@clisp.org>
41811
41812         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
41813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
41814
41815 2007-03-06  Bruno Haible  <bruno@clisp.org>
41816
41817         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
41818         (asinl): Declare also if HAVE_DECL_ASINL is set.
41819         (atanl): Declare also if HAVE_DECL_ATANL is set.
41820         (ceill): Declare also if HAVE_DECL_CEILL is set.
41821         (cosl): Declare also if HAVE_DECL_COSL is set.
41822         (expl): Declare also if HAVE_DECL_EXPL is set.
41823         (floorl): Declare also if HAVE_DECL_FLOORL is set.
41824         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
41825         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
41826         (logl): Declare also if HAVE_DECL_LOGL is set.
41827         (sinl): Declare also if HAVE_DECL_SINL is set.
41828         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
41829         (tanl): Declare also if HAVE_DECL_TANL is set.
41830         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
41831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
41832         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
41833         declaration of frexpl, ldexpl.
41834         * modules/printf-frexpl (Depends-on): Add math.
41835         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
41836
41837 2007-03-05  Bruno Haible  <bruno@clisp.org>
41838
41839         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
41840         frexpl and ldexpl are declared.
41841         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
41842
41843 2007-03-05  Bruno Haible  <bruno@clisp.org>
41844
41845         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
41846         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
41847
41848 2007-03-05  Bruno Haible  <bruno@clisp.org>
41849
41850         * lib/stdio_.h: Include <stddef.h>.
41851
41852 2007-03-05  Bruno Haible  <bruno@clisp.org>
41853
41854         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
41855
41856 2007-03-05  Bruno Haible  <bruno@clisp.org>
41857
41858         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
41859         NetBSD 4, from Ralf Wildenhues.
41860
41861 2007-03-04  Bruno Haible  <bruno@clisp.org>
41862
41863         * lib/vasprintf.h: Update #if logic for the case when the functions
41864         exist but are overridden.
41865
41866 2007-03-04  Bruno Haible  <bruno@clisp.org>
41867
41868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
41869         implementations: glibc-2.4 and MacOS X 10.3.
41870         * tests/test-vasnprintf-posix.c (test_function): Test also the case
41871         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
41872         * tests/test-vasprintf-posix.c (test_function): Likewise.
41873
41874 2007-03-04  Bruno Haible  <bruno@clisp.org>
41875
41876         * modules/vasprintf-posix-tests: New file.
41877         * tests/test-vasprintf-posix.c: New file.
41878
41879         * modules/vasprintf-posix: New file.
41880         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
41881         defined.
41882         * m4/vasprintf-posix.m4: New file.
41883         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
41884         gl_FUNC_VASPRINTF.
41885         (gl_FUNC_VASPRINTF): Invoke it.
41886         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
41887         here.
41888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
41889
41890 2007-03-04  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
41893         REPLACE_GETTIMEOFDAY.
41894         * modules/sys_time (Makefile.am): Likewise.
41895         * m4/sys_time_h.m4: Likewise.
41896         * m4/gettimeofday.m4: Likewise.
41897
41898 2007-03-04  Bruno Haible  <bruno@clisp.org>
41899
41900         * modules/vasnprintf-posix-tests: New file.
41901         * tests/test-vasnprintf-posix.c: New file.
41902
41903         * modules/vasnprintf-posix: New file.
41904         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
41905         printf-frexpl.h.
41906         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
41907         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
41908         REPLACE_VASNPRINTF is defined.
41909         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
41910         gl_FUNC_VASNPRINTF.
41911         (gl_FUNC_VASNPRINTF): Invoke it.
41912         * m4/vasnprintf-posix.m4: New file.
41913         * m4/printf.m4: New file.
41914
41915 2007-03-04  Bruno Haible  <bruno@clisp.org>
41916
41917         Compile progreloc.c only if --enable-relocatable is specified.
41918         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
41919         if --enable-relocatable was specified.
41920         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
41921         lib_SOURCES.
41922
41923 2007-03-04  Jim Meyering  <jim@meyering.net>
41924
41925         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
41926         Use it consistently, rather than enumerating errno constants.
41927
41928 2007-03-04  Bruno Haible  <bruno@clisp.org>
41929
41930         * modules/xvasprintf-tests: New file.
41931         * tests/test-xvasprintf.c: New file.
41932
41933         * modules/vasprintf-tests: New file.
41934         * tests/test-vasprintf.c: New file.
41935
41936         * modules/vasnprintf-tests: New file.
41937         * tests/test-vasnprintf.c: New file.
41938
41939         * modules/vsnprintf-tests: New file.
41940         * tests/test-vsnprintf.c: New file.
41941
41942         * modules/snprintf-tests: New file.
41943         * tests/test-snprintf.c: New file.
41944
41945 2007-03-04  Bruno Haible  <bruno@clisp.org>
41946
41947         Compile relocatable.c only if --enable-relocatable is specified.
41948         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
41949         gl_RELOCATABLE_LIBRARY.
41950         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
41951         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
41952         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
41953         gl_RELOCATABLE_LIBRARY.
41954         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
41955         (Makefile.am): Remove lib_SOURCES.
41956         * modules/relocatable-lib-lgpl (configure.ac): Invoke
41957         gl_RELOCATABLE_LIBRARY.
41958         (Makefile.am): Remove lib_SOURCES.
41959         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
41960         always.
41961         * modules/relocatable-prog-wrapper (configure.ac): Invoke
41962         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
41963
41964 2007-03-04  Bruno Haible  <bruno@clisp.org>
41965
41966         * modules/argmatch-tests: New file.
41967         * tests/test-argmatch.c: New file.
41968
41969         * tests/test-allocsa.c (main): Halve the number of loop runs.
41970
41971         * modules/alloca-opt-tests: New file.
41972         * tests/test-alloca-opt.c: New file.
41973
41974 2007-03-04  Jim Meyering  <jim@meyering.net>
41975
41976         Work around difference between Linux ACLs and Solaris 10 ZFS.
41977         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
41978         for EINVAL.
41979
41980 2007-03-03  Bruno Haible  <bruno@clisp.org>
41981
41982         * modules/relocatable-prog (Depends-on): Add back progreloc's
41983         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
41984
41985 2007-03-03  Bruno Haible  <bruno@clisp.org>
41986
41987         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
41988         * modules/relocatable-lib: New file.
41989
41990 2007-03-03  Bruno Haible  <bruno@clisp.org>
41991
41992         * modules/relocatable-prog: Renamed from modules/relocatable.
41993         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
41994
41995 2007-03-03  Bruno Haible  <bruno@clisp.org>
41996
41997         * modules/relocatable-script (Files): Add doc/relocatable.texi,
41998         m4/relocatable-lib.m4.
41999         (Depends-on): Remove 'relocatable'.
42000         (configure.ac): Add gl_RELOCATABLE_NOP.
42001
42002 2007-03-03  Bruno Haible  <bruno@clisp.org>
42003
42004         * modules/relocatable-prog-wrapper: New file.
42005         * modules/relocatable (Depends-on): Add it. Remove all other
42006         dependencies except progname.
42007         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42008
42009         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42010         (gl_FUNC_STRERROR): Nop.
42011         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42012
42013         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42014         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42015
42016         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42017         (gl_FUNC_READLINK): Update.
42018
42019         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42020
42021 2007-03-03  Bruno Haible  <bruno@clisp.org>
42022
42023         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42024         * modules/xreadlink (Depends-on): Add unistd.
42025         * modules/xreadlink-with-size (Depends-on): Likewise.
42026
42027 2007-03-03  Bruno Haible  <bruno@clisp.org>
42028
42029         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42030         extracted from gt_FUNC_SETENV.
42031         (gt_FUNC_SETENV): Remove macro.
42032         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42033         remove gt_FUNC_SETENV.
42034
42035 2007-03-03  Bruno Haible  <bruno@clisp.org>
42036
42037         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42038         ENABLE_RELOCATABLE here.
42039         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42040
42041 2007-03-03  Bruno Haible  <bruno@clisp.org>
42042
42043         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42044         * tests/test-rbtreehash_list.c: Include progname.h.
42045         (main): Call set_program_name.
42046
42047         * modules/rbtree-oset-tests (Depends-on): Add progname.
42048         * tests/test-rbtree_oset.c: Include progname.h.
42049         (main): Call set_program_name.
42050
42051         * modules/rbtree-list-tests (Depends-on): Add progname.
42052         * tests/test-rbtree_list.c: Include progname.h.
42053         (main): Call set_program_name.
42054
42055         * modules/linked-list-tests (Depends-on): Add progname.
42056         * tests/test-linked_list.c: Include progname.h.
42057         (main): Call set_program_name.
42058
42059 2007-03-03  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42062         All uses of __restrict changed to _Restrict_.
42063         * lib/glob_.h (__restrict): Remove macro.
42064
42065 2007-03-02  Bruno Haible  <bruno@clisp.org>
42066
42067         * modules/gettext (configure.ac): Require gettext infrastructure
42068         from version 0.16.1.
42069
42070 2007-03-02  Bruno Haible  <bruno@clisp.org>
42071
42072         * modules/linkedhash-list-tests (Depends-on): Add progname.
42073         * tests/test-linkedhash_list.c: Include progname.h.
42074         (main): Call set_program_name.
42075
42076         * modules/carray-list-tests (Depends-on): Add progname.
42077         * tests/test-carray_list.c: Include progname.h.
42078         (main): Call set_program_name.
42079
42080         * modules/avltreehash-list-tests (Depends-on): Add progname.
42081         * tests/test-avltreehash_list.c: Include progname.h.
42082         (main): Call set_program_name.
42083
42084         * modules/avltree-oset-tests (Depends-on): Add progname.
42085         * tests/test-avltree_oset.c: Include progname.h.
42086         (main): Call set_program_name.
42087
42088         * modules/avltree-list-tests (Depends-on): Add progname.
42089         * tests/test-avltree_list.c: Include progname.h.
42090         (main): Call set_program_name.
42091
42092         * modules/array-oset-tests (Depends-on): Add progname.
42093         * tests/test-array_oset.c: Include progname.h.
42094         (main): Call set_program_name.
42095
42096         * modules/array-list-tests (Depends-on): Add progname.
42097         * tests/test-array_list.c: Include progname.h.
42098         (main): Call set_program_name.
42099
42100         * modules/argp-tests (Depends-on): Add progname.
42101         * tests/test-argp.c: Include argp.h first. Include progname.h.
42102         (main): Call set_program_name.
42103
42104 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42105
42106         * doc/gnulib-tool.texi (Initial import): Reword description of
42107         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42108         limited effect even if defined after the first system include.
42109
42110 2007-03-01  Bruno Haible  <bruno@clisp.org>
42111
42112         * build-aux/config.libpath: Update to libtool-1.5.22.
42113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42114
42115 2007-03-01  Bruno Haible  <bruno@clisp.org>
42116
42117         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42118         foo_CFLAGS.
42119         Reported by Ralf Wildenhues.
42120
42121 2007-03-01  Bruno Haible  <bruno@clisp.org>
42122
42123         * build-aux/install-reloc: Remove object files left over by some
42124         compilers.
42125         Reported by Ralf Wildenhues.
42126
42127 2007-03-01  Bruno Haible  <bruno@clisp.org>
42128
42129         * build-aux/install-reloc: Break long lines.
42130
42131 2007-03-01  Bruno Haible  <bruno@clisp.org>
42132
42133         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42134         Reported by Ralf Wildenhues.
42135
42136 2007-03-01  Bruno Haible  <bruno@clisp.org>
42137
42138         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42139         include ordering constraints.
42140
42141 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42142
42143         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42145         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42146         as another example.
42147         * lib/time_.h: Fix misspelling.
42148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42149         Require gl_HEADER_TIME_H_DEFAULTS.
42150         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42151         * m4/time_r.m4 (gl_TIME_R): Likewise.
42152         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42153
42154 2007-03-01  Bruno Haible  <bruno@clisp.org>
42155
42156         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42157         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42158
42159 2007-03-01  Jim Meyering  <jim@meyering.net>
42160
42161         * modules/xreadlink (Maintainer): Add my name.
42162         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42163
42164 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42165             Bruno Haible  <bruno@clisp.org>
42166
42167         * build-aux/install-reloc: Compile also c-ctype.c.
42168         * build-aux/relocatable.sh.in: New file.
42169         * doc/relocatable.texi: New file.
42170         * doc/relocatable-maint.texi: New file.
42171         * doc/gnulib.texi: Include relocatable-maint.texi.
42172         * lib/progreloc.c: Include unistd.h unconditionally.
42173         * lib/relocwrapper.c: Include unistd.h unconditionally.
42174         Include c-ctype.h.
42175         (add_dotbin): Use c_tolower.
42176         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42177         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42178         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42179         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42180         to m4/relocatable-lib.m4.
42181         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42182         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42183         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42184         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42185         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42186         * modules/relocatable: New file.
42187         * modules/relocatable-lib: New file.
42188         * modules/relocatable-script: New file.
42189
42190 2007-02-28  Bruno Haible  <bruno@clisp.org>
42191
42192         Import --enable-relocatable infrastructure.
42193         * build-aux/config.libpath: New file, from GNU gettext.
42194         * build-aux/install-reloc: New file, from GNU gettext.
42195         * build-aux/reloc-ldflags: New file, from GNU gettext.
42196         * lib/relocatable.h: New file, from GNU gettext.
42197         * lib/relocatable.c: New file, from GNU gettext.
42198         * lib/relocwrapper.c: New file, from GNU gettext.
42199         * m4/relocatable.m4: New file, from GNU gettext.
42200
42201 2007-02-28  Bruno Haible  <bruno@clisp.org>
42202
42203         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42204
42205         * modules/xreadlink: New file, from GNU gettext with modifications.
42206         * lib/xreadlink.c: New file, from GNU gettext.
42207         * lib/xreadlink.h: Add comments.
42208         (xreadlink): New declaration.
42209
42210         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42211         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42212         lib/xreadlink-with-size.c.
42213         (configure.ac): Remove gl_XREADLINK invocation.
42214         (Makefile.am): Augment lib_SOURCES.
42215         * m4/xreadlink.m4: Remove file.
42216         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42217         (xreadlink_with_size): Renamed from xreadink.
42218         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42219         * modules/canonicalize (Depends-on): Replace xreadlink with
42220         xreadlink-with-size.
42221         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42222
42223 2007-02-25  Jim Meyering  <jim@meyering.net>
42224
42225         * build-aux/announce-gen: When complaining about excess arguments,
42226         list them.
42227
42228 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42229
42230         * README: Document signed integer overflow situation more
42231         accurately.
42232
42233 2007-02-25  Bruno Haible  <bruno@clisp.org>
42234
42235         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42236         'a' or 'A' conversion.
42237
42238 2007-02-25  Bruno Haible  <bruno@clisp.org>
42239
42240         * modules/filename: Renamed from modules/pathname.
42241         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42242         lib/concatpath.c with lib/concat-filename.c.
42243         (Makefile.am): Update.
42244         (Include): Replace pathname.h with filename.h.
42245         * lib/filename.h: Renamed from lib/pathname.h.
42246         (concatenated_filename): Renamed from concatenated_pathname.
42247         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42248         (concatenated_filename): Renamed from concatenated_pathname.
42249         * lib/findprog.c: Include filename.h instead of pathname.h.
42250         (find_in_path): Update.
42251         * lib/javacomp.c: Include filename.h instead of pathname.h.
42252         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42253         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42254         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42255         is_oldgcj_14_13_usable, is_javac_usable): Update.
42256         * lib/javaexec.c: Include filename.h instead of pathname.h.
42257         (execute_java_class): Update.
42258         * modules/findprog: Update.
42259         * modules/javacomp: Update.
42260         * modules/javaexec: Update.
42261         * MODULES.html.sh (File system functions): Add 'filename', remove
42262         'pathname'.
42263
42264 2007-02-25  Bruno Haible  <bruno@clisp.org>
42265
42266         * modules/printf-frexpl-tests: New file.
42267         * tests/test-printf-frexpl.c: New file.
42268
42269         * modules/printf-frexpl: New file.
42270         * lib/printf-frexpl.h: New file.
42271         * lib/printf-frexpl.c: New file.
42272         * m4/printf-frexpl.m4: New file.
42273
42274 2007-02-25  Bruno Haible  <bruno@clisp.org>
42275
42276         * modules/printf-frexp-tests: New file.
42277         * tests/test-printf-frexp.c: New file.
42278
42279         * modules/printf-frexp: New file.
42280         * lib/printf-frexp.h: New file.
42281         * lib/printf-frexp.c: New file.
42282         * m4/printf-frexp.m4: New file.
42283
42284 2007-02-25  Bruno Haible  <bruno@clisp.org>
42285
42286         Assume automake >= 1.10 for the tests.
42287         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42288         * modules/arctwo-tests: Likewise.
42289         * modules/argp-tests: Likewise.
42290         * modules/avltree-list-tests: Likewise.
42291         * modules/avltree-oset-tests: Likewise.
42292         * modules/avltreehash-list-tests: Likewise.
42293         * modules/carray-list-tests: Likewise.
42294         * modules/crc-tests: Likewise.
42295         * modules/des-tests: Likewise.
42296         * modules/gc-arcfour-tests: Likewise.
42297         * modules/gc-arctwo-tests: Likewise.
42298         * modules/gc-des-tests: Likewise.
42299         * modules/gc-hmac-md5-tests: Likewise.
42300         * modules/gc-hmac-sha1-tests: Likewise.
42301         * modules/gc-md2-tests: Likewise.
42302         * modules/gc-md4-tests: Likewise.
42303         * modules/gc-md5-tests: Likewise.
42304         * modules/gc-pbkdf2-sha1-tests: Likewise.
42305         * modules/gc-rijndael-tests: Likewise.
42306         * modules/gc-sha1-tests: Likewise.
42307         * modules/gc-tests: Likewise.
42308         * modules/getaddrinfo-tests: Likewise.
42309         * modules/hmac-md5-tests: Likewise.
42310         * modules/hmac-sha1-tests: Likewise.
42311         * modules/linked-list-tests: Likewise.
42312         * modules/linkedhash-list-tests: Likewise.
42313         * modules/lock-tests: Likewise.
42314         * modules/md2-tests: Likewise.
42315         * modules/md4-tests: Likewise.
42316         * modules/md5-tests: Likewise.
42317         * modules/rbtree-list-tests: Likewise.
42318         * modules/rbtree-oset-tests: Likewise.
42319         * modules/rbtreehash-list-tests: Likewise.
42320         * modules/read-file-tests: Likewise.
42321         * modules/rijndael-tests: Likewise.
42322         * modules/stdint-tests: Likewise.
42323         * modules/tls-tests: Likewise.
42324
42325 2007-02-24  Bruno Haible  <bruno@clisp.org>
42326
42327         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42328         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42329         function; instead check whether isnan with a double argument links.
42330         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42331         function; instead check whether isnan with a 'long double' argument
42332         links.
42333         Reported by Eric Blake <ebb9@byu.net>.
42334
42335 2007-02-24  Bruno Haible  <bruno@clisp.org>
42336
42337         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42338         defined.
42339         * lib/isnanl.c: Remove all code. Just include isnan.c.
42340         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42341
42342 2007-02-25  Jim Meyering  <jim@meyering.net>
42343
42344         Avoid conflicting types for 'unsetenv' on FreeBSD.
42345         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42346         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42347         in stdlib.h.
42348
42349 2007-02-24  Bruno Haible  <bruno@clisp.org>
42350
42351         * modules/isnanl-nolibm-tests: New file.
42352         * tests/test-isnanl.c: New file.
42353
42354         * modules/isnanl-nolibm: New file.
42355         * lib/isnanl.h: New file.
42356         * lib/isnanl.c: New file.
42357         * m4/isnanl.m4: New file.
42358
42359 2007-02-24  Bruno Haible  <bruno@clisp.org>
42360
42361         * modules/isnan-nolibm-tests: New file.
42362         * tests/test-isnan.c: New file.
42363
42364         * modules/isnan-nolibm: New file.
42365         * lib/isnan.h: New file.
42366         * lib/isnan.c: New file.
42367         * m4/isnan.m4: New file.
42368
42369 2007-02-24  Bruno Haible  <bruno@clisp.org>
42370
42371         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42372         assume that an exponent fits in 20 bits.
42373
42374 2007-02-24  Jim Meyering  <jim@meyering.net>
42375
42376         * m4/regex.m4: Update the description of the configure-time option,
42377         --without-included-regex, to state accurately what the defaults are,
42378         and perhaps to give people an idea why using this option is risky.
42379
42380 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42381
42382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42383         loops on small arguments.  This attempts to avoid the problem
42384         Bruno Haible reported for AIX 4.3.2 in
42385         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42386
42387 2007-02-23  Bruno Haible  <bruno@clisp.org>
42388
42389         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42390         Needed for help2man.
42391
42392 2007-02-23  Karl Berry  <karl@gnu.org>
42393
42394         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42395         exists, foo.h should be cvs-ignored, not committed.
42396
42397 2007-02-23  Eric Blake  <ebb9@byu.net>
42398
42399         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42400         * lib/stat-time.h (includes): Likewise.
42401         * lib/utimecmp.c (includes): Likewise.
42402         * lib/utimens.h (includes): Likewise.
42403         * lib/getdate.y (includes): Also include "timespec.h" for use
42404         internal to the module.
42405         * modules/utimens (Depends-on): Revert yesterday's patch.
42406         * modules/nanosleep (Depends-on): Add missing dependency.
42407
42408 2007-02-22  Bruno Haible  <bruno@clisp.org>
42409
42410         * lib/glob.c: Don't include getlogin_r.h.
42411
42412 2007-02-22  Jim Meyering  <jim@meyering.net>
42413
42414         * modules/utimens (Depends-on): Add timespec, required for
42415         utimens.h's inclusion of timespec.h.
42416
42417 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42418
42419         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42420         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42421         Schwab in
42422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42423         I'll try to think of a better way to fix the Solaris problem.
42424
42425         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42426         like glibc; on Solaris 10, it fails with errno == EINVAL.
42427         POSIX says the behavior is unspecified if the first argument is NULL,
42428         so play it safe and never pass NULL to the system getcwd.
42429
42430 2007-02-21  Jim Meyering  <jim@meyering.net>
42431
42432         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42433         of gettimeofday.  It would conflict with the one now always
42434         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42435         an IRIX 6.5 build failure.
42436
42437 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42438
42439         Minor fixups to port to Solaris 10 with Sun C 5.8.
42440         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42441         * modules/getcwd (Depends-on): Add dirfd.
42442         * lib/putenv.c (putenv): #undef it.
42443         (rpl_putenv): New decl.
42444         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42445
42446 2007-02-20  Bruno Haible  <bruno@clisp.org>
42447
42448         * modules/stdio-tests: New file.
42449         * tests/test-stdio.c: New file.
42450
42451         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42452         (Depends-on): Add stdio.
42453         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42454         (Include): Use <stdio.h> instead of vsnprintf.h.
42455         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42456         HAVE_DECL_VSNPRINTF.
42457         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42458
42459         * modules/snprintf (Files): Remove lib/snprintf.h.
42460         (Depends-on): Add stdio.
42461         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42462         (Include): Use <stdio.h> instead of snprintf.h.
42463         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42464         HAVE_DECL_SNPRINTF.
42465         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42466         * lib/getaddrinfo.c: Likewise.
42467
42468         * modules/stdio: New file.
42469         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42470         * lib/snprintf.h: Remove file.
42471         * lib/vsnprintf.h: Remove file.
42472         * lib/.cppi-disable: Remove snprintf.h.
42473         * m4/stdio_h.m4: New file.
42474         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42475
42476 2007-02-20  Jim Meyering  <jim@meyering.net>
42477
42478         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42479         used by e.g., mingw.  From Bruno Haible.
42480
42481 2007-02-19  Bruno Haible  <bruno@clisp.org>
42482
42483         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42484         warnings.
42485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42486
42487 2007-02-19  Bruno Haible  <bruno@clisp.org>
42488
42489         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42490         from mingw users.
42491
42492 2007-02-19  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42495         warnings.
42496         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42497
42498 2007-02-19  Jim Meyering  <jim@meyering.net>
42499
42500         Don't use FD after a successful "fdopendir (fd)".
42501         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42502         Reset it by calling dirfd on the just-obtained DIR*.
42503
42504         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42505         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42506
42507 2007-02-18  Bruno Haible  <bruno@clisp.org>
42508
42509         * lib/readlink.c: Include <unistd.h>.
42510         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42511         HAVE_READLINK.
42512         * modules/readlink (Depends-on): Add unistd.
42513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42514         (Include): Add <unistd.h>.
42515
42516         * lib/getlogin_r.h: Remove file.
42517         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42518         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42519         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42520         HAVE_DECL_GETLOGIN_R.
42521         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42523         (Include): Use <unistd.h> instead of getlogin_r.h.
42524
42525         * lib/getcwd.h: Remove file.
42526         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42527         * lib/xgetcwd.c: Likewise.
42528         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42529         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42530         * modules/getcwd (Files): Remove lib/getcwd.h.
42531         (Depends-on): Add unistd.
42532         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42533         (Include): Use <unistd.h> instad of getcwd.h.
42534
42535         * lib/ftruncate.c: Include <unistd.h> first.
42536         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42537         Set HAVE_FTRUNCATE.
42538         * modules/ftruncate (Depends-on): Add unistd.
42539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42540
42541         * lib/fchdir.c: Include <unistd.h> first.
42542         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42544         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42545         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42546         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42547
42548         * lib/dup2.c: Include <unistd.h> first.
42549         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
42550         HAVE_DUP2.
42551         * modules/dup2 (Depends-on): Add unistd.
42552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42553
42554         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
42555         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
42556         REPLACE_CHOWN. Don't define chown as a macro here.
42557         * modules/chown (Depends-on): Add unistd.
42558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42559
42560         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
42561         Add definition for GL_LINK_WARNING.
42562         (chown, dup2): New declarations.
42563         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
42564         link warning.
42565         (ftruncate): New declaration.
42566         (getcwd): New declaration, taken from old getcwd.h.
42567         (getlogin_r): New declaration, taken from old getlogin_r.h.
42568         (readlink): New declaration.
42569         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
42570         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
42571         (gl_PREREQ_UNISTD): Remove macro.
42572         (gl_UNISTD_MODULE_INDICATOR): New macro.
42573         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
42574         many new variables. Don't set UNISTD_H.
42575         * modules/unistd (Description): Change.
42576         (Depends-on): Add link-warning.
42577         (configure.ac): Update.
42578         (Makefile.am): Create unistd.h always. Substitute many new variables
42579         into it.
42580
42581 2007-02-18  Bruno Haible  <bruno@clisp.org>
42582
42583         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
42584         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
42585         HAVE_GETSUBOPT.
42586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
42587         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
42588         * lib/getsubopt.h: Remove file.
42589         * modules/getsubopt (Files): Remove lib/getsubopt.h.
42590         (Depends-on): Add stdlib.
42591         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42592         (Includes): Use <stdlib.h> instead of getsubopt.h.
42593         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
42594         Set HAVE_GETSUBOPT.
42595         * lib/getsubopt.c: Don't include getsubopt.h.
42596
42597 2007-02-18  Bruno Haible  <bruno@clisp.org>
42598
42599         * modules/fchdir (Depends-on): Add dup2.
42600
42601 2007-02-18  Bruno Haible  <bruno@clisp.org>
42602
42603         * lib/stdlib_.h: Handle glibc's special invocation convention
42604         specially.
42605
42606 2007-02-18  Bruno Haible  <bruno@clisp.org>
42607
42608         * modules/stdlib-tests: New file.
42609         * tests/test-stdlib.c: New file.
42610
42611         * modules/mkstemp (Files): Remove lib/mkstemp.h.
42612         (Depends-on): Add stdlib.
42613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42614         (Includes): Use <stdlib.h> instead of mkstemp.h.
42615         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42616         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
42617         * lib/mkstemp.c: Don't include mkstemp.h.
42618         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
42619         * lib/stdlib--.h: Don't include mkstemp.h.
42620
42621         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
42622         (Depends-on): Add stdlib.
42623         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42624         (Includes): Use <stdlib.h> instead of mkdtemp.h.
42625         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42626         HAVE_MKDTEMP.
42627         * lib/mkdtemp.c: Don't include mkdtemp.h.
42628         * lib/clean-temp.c: Don't include mkdtemp.h.
42629
42630         * modules/exit (Files): Remove lib/exit.h.
42631         (Depends-on): Add stdlib.
42632         (Makefile.am): Remove lib_SOURCES.
42633         (Include): Use <stdlib.h> instead of exit.h.
42634         * lib/argmatch.c: Don't include exit.h.
42635         * lib/execute.c: Likewise.
42636         * lib/pagealign_alloc.c: Likewise.
42637         * lib/pipe.c: Likewise.
42638         * lib/wait-process.c: Likewise.
42639         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
42640         * lib/exitfail.c: Likewise.
42641         * lib/savewd.c: Likewise.
42642         * lib/xsetenv.c: Likewise.
42643
42644         * modules/stdlib: New file.
42645         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
42646         and extra comments about mkstemp().
42647         * lib/exit.h: Remove file.
42648         * lib/mkdtemp.h: Remove file.
42649         * lib/mkstemp.h: Remove file.
42650         * m4/stdlib_h.m4: New file.
42651         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
42652
42653 2007-02-18  Bruno Haible  <bruno@clisp.org>
42654
42655         * modules/math-tests: New file.
42656         * tests/test-math.c: New file.
42657
42658         * modules/math: New file.
42659         * modules/mathl (Files): Remove lib/mathl.h.
42660         (Depends-on): Add math.
42661         (Makefile.am): Don't mention mathl.h.
42662         (Include): Use <math.h> instead of mathl.h.
42663         * lib/math_.h: New file.
42664         * lib/mathl.h: Remove file.
42665         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
42666         mathl.h.
42667         * lib/asinl.c: Likewise.
42668         * lib/atanl.c: Likewise.
42669         * lib/ceill.c: Likewise.
42670         * lib/cosl.c: Likewise.
42671         * lib/expl.c: Likewise.
42672         * lib/floorl.c: Likewise.
42673         * lib/frexpl.c: Likewise.
42674         * lib/ldexpl.c: Likewise.
42675         * lib/logl.c: Likewise.
42676         * lib/sincosl.c: Likewise.
42677         * lib/sinl.c: Likewise.
42678         * lib/sqrtl.c: Likewise.
42679         * lib/tanl.c: Likewise.
42680         * lib/trigl.c: Likewise.
42681         * m4/math_h.m4: New file.
42682         * MODULES.html.sh (Mathematics): Add math.
42683
42684 2007-02-17  Bruno Haible  <bruno@clisp.org>
42685
42686         * modules/wctype-tests: New file.
42687         * tests/test-wctype.c: New file.
42688
42689         * modules/wchar-tests: New file.
42690         * tests/test-wchar.c: New file.
42691
42692         * modules/unistd-tests: New file.
42693         * tests/test-unistd.c: New file.
42694
42695         * modules/time-tests: New file.
42696         * tests/test-time.c: New file.
42697
42698         * modules/sysexits-tests: New file.
42699         * tests/test-sysexits.c: New file.
42700
42701         * modules/sys_time-tests: New file.
42702         * tests/test-sys_time.c: New file.
42703
42704         * modules/sys_stat-tests: New file.
42705         * tests/test-sys_stat.c: New file.
42706
42707         * modules/sys_socket-tests: New file.
42708         * tests/test-sys_socket.c: New file.
42709
42710         * modules/sys_select-tests: New file.
42711         * tests/test-sys_select.c: New file.
42712
42713         * modules/string-tests: New file.
42714         * tests/test-string.c: New file.
42715
42716         * modules/stdbool-tests: New file.
42717         * tests/test-stdbool.c: New file.
42718
42719         * modules/netinet_in-tests: New file.
42720         * tests/test-netinet_in.c: New file.
42721
42722         * modules/inttypes-tests: New file.
42723         * tests/test-inttypes.c: New file.
42724
42725         * modules/fcntl-tests: New file.
42726         * tests/test-fcntl.c: New file.
42727
42728         * modules/byteswap-tests: New file.
42729         * tests/test-byteswap.c: New file.
42730
42731         * modules/arpa_inet-tests: New file.
42732         * tests/test-arpa_inet.c: New file.
42733
42734 2007-02-17  Bruno Haible  <bruno@clisp.org>
42735
42736         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
42737         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
42738         if the corresponding module is not enabled. Emit link warnings if
42739         the function is used nevertheless.
42740         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
42741         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
42742         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
42743         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
42744         * modules/inttypes (Depends-on): Add link-warning.
42745         (Makefile.am): Copy the contents of build-aux/link-warning.h into
42746         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
42747         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
42748         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
42749         * modules/imaxdiv (configure.ac): Likewise.
42750         * modules/strtoimax (configure.ac): Likewise.
42751         * modules/strtoumax (configure.ac): Likewise.
42752
42753 2007-02-17  Bruno Haible  <bruno@clisp.org>
42754
42755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
42756         gl_STRING_MODULE_INDICATOR_DEFAULTS.
42757         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
42758         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
42759
42760 2007-02-17  Bruno Haible  <bruno@clisp.org>
42761
42762         * modules/link-warning: New file.
42763         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
42764         * lib/string_.h (GL_LINK_WARNING): Remove definition.
42765         * modules/string (Depends-on): Add link-warning.
42766         (Makefile.am): Copy the contents of build-aux/link-warning.h into
42767         string.h.
42768         * MODULES.html.sh (Support for building libraries and executables): Add
42769         link-warning.
42770
42771 2007-02-17  Bruno Haible  <bruno@clisp.org>
42772
42773         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
42774         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
42775         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
42776         long lines.
42777
42778 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
42779             Bruno Haible  <bruno@clisp.org>
42780
42781         * modules/tmpfile: New file.
42782         * lib/tmpfile.c: New file.
42783         * m4/tmpfile.m4: New file.
42784         * MODULES.html.sh (func_all_modules): New section "Input/output".
42785
42786 2007-02-15  Bruno Haible  <bruno@clisp.org>
42787
42788         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
42789         (supports_delete_on_close): New function.
42790         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
42791
42792 2007-02-14  Bruno Haible  <bruno@clisp.org>
42793
42794         * modules/mbspcasecmp-tests: New file.
42795         * tests/test-mbspcasecmp.sh: New file.
42796         * tests/test-mbspcasecmp.c: New file.
42797
42798         New module mbspcasecmp.
42799         * modules/mbspcasecmp: New file.
42800         * lib/mbspcasecmp.c: New file.
42801         * lib/string_.h (strncasecmp): Change warning message.
42802         (mbspcasecmp): New declaration.
42803         * m4/mbspcasecmp.m4: New file.
42804         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42805         GNULIB_MBSPCASECMP.
42806         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
42807         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
42808
42809 2007-02-14  Bruno Haible  <bruno@clisp.org>
42810
42811         * modules/mbsncasecmp-tests: New file.
42812         * tests/test-mbsncasecmp.sh: New file.
42813         * tests/test-mbsncasecmp.c: New file.
42814
42815         New module mbsncasecmp.
42816         * modules/mbsncasecmp: New file.
42817         * lib/mbsncasecmp.c: New file.
42818         * lib/string_.h (mbsncasecmp): New declaration.
42819         * m4/mbsncasecmp.m4: New file.
42820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42821         GNULIB_MBSNCASECMP.
42822         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
42823         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
42824
42825 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
42826
42827         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
42828         Verify that it doesn't overlap with our flags.
42829         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
42830         do not have the desired effect in multibyte locales; instead, use
42831         mbscasecmp.
42832         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
42833         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
42834         we don't require GNU fnmatch ourselves (if our users require it, they
42835         should do so explicitly).
42836
42837         Fix regex code so it doesn't rely on strcasecmp.
42838         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
42839         Otherwise, include gnulib's langinfo.h.
42840         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
42841         undesirable behavior in non-C locales.  Instead, rely on localecharset.
42842         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
42843         * modules/regex (FILES): Remove m4/codeset.m4.
42844         (Depends-on): Add localcharset.  Remove strcase.
42845
42846 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42847
42848         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
42849         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
42850
42851 2007-02-13  Bruno Haible  <bruno@clisp.org>
42852
42853         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
42854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42855
42856 2007-02-12  Bruno Haible  <bruno@clisp.org>
42857
42858         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42859         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
42860         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
42861         time warning rather than a link error.
42862
42863 2007-02-12  Bruno Haible  <bruno@clisp.org>
42864
42865         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
42866         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42867         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42868
42869 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42870
42871         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
42872         args, not 2.
42873
42874 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42875
42876         New module 'time', so that apps can include <time.h> as per
42877         POSIX and GNU instead of separate include files like time_r.h
42878         and timegm.h.  This implementation tries out a simpler approach
42879         for replacing decls in standard include files (as compared to
42880         the string module), somewhat as an experiment.
42881
42882         * config/srclist.txt: Comment out mktime.c for now.
42883         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
42884         since it doesn't apply any more.  Use generic wording instead.
42885         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
42886         'time'.
42887         * lib/time_.h, m4/time_h.m4, modules/time: New files.
42888         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
42889         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
42890         Don't include <sys/types.h>; no longer needed since we assume C89.
42891         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
42892         * lib/strftime.c: Likewise.
42893         * lib/time_r.c: Likewise.
42894         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
42895         * lib/nanosleep.c: Include <time.h> first, to check interface.
42896         * lib/strptime.c: Likewise.
42897         * lib/time_r.c: Likewise.
42898         * lib/timegm.c: Likewise.
42899         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
42900         needed.
42901         * lib/timegm.c: Don't include timegm.h; no longer needed.
42902         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
42903         time.h now handles any problems in that area.
42904         (struct timespec, nanosleep): Remove; time.h now arranges for these.
42905         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
42906         that time.h defines struct timespec.
42907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
42908         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
42909         handles that.
42910         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
42911         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
42912         needed.  Set REPLACE_LOCALTIME.
42913         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
42914         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
42915         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
42916         nanosleep; time_h.m4 now does that.  Don't require
42917         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
42918         module handles this now.
42919         * modules/getdate (Depends-on): Remove timespec.  Add time.
42920         * modules/nanosleep (Depends-on): Likewise.
42921         * modules/stat-time (Depends-on): Likewise.
42922         * modules/nanosleep (Include): Include time.h, not timespec.h.
42923         * modules/strptime (Files): Remove lib/strptime.h.
42924         (Depends-on): Add extensions, time.
42925         (Include): Include time.h, not strptime.h.
42926         * modules/time_r (Files): Remove lib/time_r.h.
42927         (Depends-on): Add time.
42928         (Include): Include time.h, not time_r.h.
42929         * modules/timegm: Likewise.
42930         * modules/timespec (Description): Now does timespec-related decls
42931         of our own, instead of struct timespec itself.
42932         (Depends-on): Add time; remove extensions.
42933         (Maintainer): Add self.
42934         * modules/utimecmp (Depends-on): Add time; remove timespec.
42935         * modules/utimens (Depends-on): Likewise.
42936         * modules/xnanosleep (Depends-on): Likewise.
42937
42938 2007-02-11  Bruno Haible  <bruno@clisp.org>
42939
42940         * lib/c-strstr.c: Include allocsa.h.
42941         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42942         * lib/c-strcasestr.c: Include allocsa.h.
42943         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42944         * lib/strcasestr.c: Include allocsa.h.
42945         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42946         * lib/mbsstr.c: Include allocsa.h.
42947         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42948         allocsa/freesa instead of malloc/free.
42949         * lib/mbscasestr.c: Include allocsa.h.
42950         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42951         allocsa/freesa instead of malloc/free.
42952         * modules/c-strstr (Depends-on): Add allocsa.
42953         * modules/c-strcasestr (Depends-on): Likewise.
42954         * modules/strcasestr (Depends-on): Likewise.
42955         * modules/mbsstr (Depends-on): Likewise.
42956         * modules/mbscasestr (Depends-on): Likewise.
42957
42958 2007-02-11  Bruno Haible  <bruno@clisp.org>
42959
42960         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
42961
42962         * modules/mbsspn-tests: New file.
42963         * tests/test-mbsspn.sh: New file.
42964         * tests/test-mbsspn.c: New file.
42965
42966 2007-02-11  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
42969
42970         * modules/mbspbrk-tests: New file.
42971         * tests/test-mbspbrk.sh: New file.
42972         * tests/test-mbspbrk.c: New file.
42973
42974 2007-02-11  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
42977         unneeded cast.
42978
42979         * modules/mbscspn-tests: New file.
42980         * tests/test-mbscspn.sh: New file.
42981         * tests/test-mbscspn.c: New file.
42982
42983 2007-02-11  Bruno Haible  <bruno@clisp.org>
42984
42985         * modules/mbscasecmp-tests: New file.
42986         * tests/test-mbscasecmp.sh: New file.
42987         * tests/test-mbscasecmp.c: New file.
42988
42989 2007-02-11  Bruno Haible  <bruno@clisp.org>
42990
42991         Ensure O(n) worst-case complexity of mbscasestr.
42992         * lib/mbscasestr.c: Include stdbool.h.
42993         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42994         functions.
42995         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
42996         the bookkeeping indicates that it's worth it.
42997         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
42998
42999         * modules/mbscasestr-tests: New file.
43000         * tests/test-mbscasestr1.c: New file.
43001         * tests/test-mbscasestr2.sh: New file.
43002         * tests/test-mbscasestr2.c: New file.
43003         * tests/test-mbscasestr3.sh: New file.
43004         * tests/test-mbscasestr3.c: New file.
43005         * tests/test-mbscasestr4.sh: New file.
43006         * tests/test-mbscasestr4.c: New file.
43007         * m4/locale-tr.m4: New file.
43008
43009 2007-02-11  Bruno Haible  <bruno@clisp.org>
43010
43011         Ensure O(n) worst-case complexity of mbsstr.
43012         * lib/mbsstr.c: Include stdbool.h.
43013         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43014         functions.
43015         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43016         bookkeeping indicates that it's worth it.
43017         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43018
43019         * modules/mbsstr-tests: New file.
43020         * tests/test-mbsstr1.c: New file.
43021         * tests/test-mbsstr2.sh: New file.
43022         * tests/test-mbsstr2.c: New file.
43023         * tests/test-mbsstr3.sh: New file.
43024         * tests/test-mbsstr3.c: New file.
43025         * m4/locale-fr.m4: New file.
43026
43027 2007-02-11  Bruno Haible  <bruno@clisp.org>
43028
43029         * lib/mbsrchr.c (mbsrchr): Fix bug.
43030
43031         * modules/mbsrchr-tests: New file.
43032         * tests/test-mbsrchr.sh: New file.
43033         * tests/test-mbsrchr.c: New file.
43034
43035 2007-02-11  Bruno Haible  <bruno@clisp.org>
43036
43037         * lib/mbschr.c (mbschr): Fix bug.
43038
43039         * modules/mbschr-tests: New file.
43040         * tests/test-mbschr.sh: New file.
43041         * tests/test-mbschr.c: New file.
43042         * m4/locale-zh.m4: New file.
43043
43044 2007-02-11  Bruno Haible  <bruno@clisp.org>
43045
43046         Support for copying multibyte string iterators.
43047         * lib/mbiter.h: Include <string.h>.
43048         (mbiter_multi_copy): New function.
43049         (mbi_copy): New macro.
43050         * lib/mbuiter.h: Include <string.h>.
43051         (mbuiter_multi_copy): New function.
43052         (mbui_copy): New macro.
43053
43054 2007-02-11  Bruno Haible  <bruno@clisp.org>
43055
43056         New module mbslen.
43057         * modules/mbslen: New file.
43058         * lib/mbslen.c: New file.
43059         * lib/string_.h (mbslen): New declaration.
43060         * m4/mbslen.m4: New file.
43061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43062         GNULIB_MBSLEN.
43063         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43064         * MODULES.html.sh (Internationalization functions): Add mbslen.
43065
43066 2007-02-11  Bruno Haible  <bruno@clisp.org>
43067
43068         Ensure O(n) worst-case complexity of strcasestr substitute.
43069         * lib/strcasestr.c: Include stdbool.h.
43070         (knuth_morris_pratt): New function.
43071         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43072         bookkeeping indicates that it's worth it.
43073         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43074
43075         * modules/strcasestr-tests: New file.
43076         * tests/test-strcasestr.c: New file.
43077
43078 2007-02-11  Bruno Haible  <bruno@clisp.org>
43079
43080         Ensure O(n) worst-case complexity of c_strcasestr.
43081         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43082         (knuth_morris_pratt): New function.
43083         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43084         the bookkeeping indicates that it's worth it.
43085         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43086
43087         * modules/c-strcasestr-tests: New file.
43088         * tests/test-c-strcasestr.c: New file.
43089
43090 2007-02-11  Bruno Haible  <bruno@clisp.org>
43091
43092         Ensure O(n) worst-case complexity of c_strstr.
43093         * lib/c-strstr.c: Include stdbool.h, string.h.
43094         (knuth_morris_pratt): New function.
43095         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43096         bookkeeping indicates that it's worth it.
43097         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43098
43099         * lib/c-strstr.c: Complete rewrite for maintainability.
43100
43101         * modules/c-strstr-tests: New file.
43102         * tests/test-c-strstr.c: New file.
43103
43104 2007-02-11  Bruno Haible  <bruno@clisp.org>
43105
43106         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43107         5.2.1 and earlier, whereby \055 was treated just like the range
43108         delimiter '-'.
43109         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43110
43111 2007-02-08  Bruno Haible  <bruno@clisp.org>
43112
43113         * modules/regex (Depends-on): Add stdbool.
43114         Reported by Dalibor Topic <robilad@kaffe.org>.
43115
43116 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43117
43118         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43119         Prefer returning from main to exiting from it.
43120         Remove unnecessary parens after sizeof.
43121
43122 2007-02-05  Bruno Haible  <bruno@clisp.org>
43123
43124         New module mbssep.
43125         * modules/mbssep: New file.
43126         * lib/mbssep.c: New file.
43127         * lib/string_.h (strsep): Add a conditional link warning.
43128         (mbssep): New declaration.
43129         * m4/mbssep.m4: New file.
43130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43131         GNULIB_MBSSEP.
43132         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43133         * MODULES.html.sh (Internationalization functions): Add mbssep.
43134
43135 2007-02-05  Bruno Haible  <bruno@clisp.org>
43136
43137         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43138         Optimize search in case of 1 delimiter.
43139
43140 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43141
43142         * lib/acl.h: Include sys/types.h before sys/acl.h.
43143
43144 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43145
43146         Merge upstream fix for glibc bugzilla #3957:
43147
43148         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43149
43150         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43151         bit for RE_HAT_LISTS_NOT_NEWLINE.
43152         (build_charclass_op): Remove bogus comment.
43153
43154 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43155
43156         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43157
43158 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43159
43160         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43161         * lib/memmem.c [!defined _LIBC]: Include config.h.
43162
43163 2007-02-04  Bruno Haible  <bruno@clisp.org>
43164
43165         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43166         warning message.
43167
43168 2007-02-04  Bruno Haible  <bruno@clisp.org>
43169
43170         New module mbstok_r.
43171         * modules/mbstok_r: New file.
43172         * lib/mbstok_r.c: New file.
43173         * lib/string_.h (strtok_r): Change argument names to match the
43174         comments. Add a conditional link warning.
43175         (mbstok_r): New declaration.
43176         * m4/mbstok_r.m4: New file.
43177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43178         GNULIB_MBSTOK_R.
43179         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43180         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43181
43182 2007-02-04  Bruno Haible  <bruno@clisp.org>
43183
43184         New module mbsspn.
43185         * modules/mbsspn: New file.
43186         * lib/mbsspn.c: New file.
43187         * lib/string_.h (strspn): Add a conditional link warning.
43188         (mbsspn): New declaration.
43189         * m4/mbsspn.m4: New file.
43190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43191         GNULIB_MBSSPN.
43192         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43193         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43194
43195 2007-02-04  Bruno Haible  <bruno@clisp.org>
43196
43197         New module mbspbrk.
43198         * modules/mbspbrk: New file.
43199         * lib/mbspbrk.c: New file.
43200         * lib/string_.h (strpbrk): Add a conditional link warning.
43201         (mbspbrk): New declaration.
43202         * m4/mbspbrk.m4: New file.
43203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43204         GNULIB_MBSPBRK.
43205         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43206         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43207
43208 2007-02-04  Bruno Haible  <bruno@clisp.org>
43209
43210         New module mbscspn.
43211         * modules/mbscspn: New file.
43212         * lib/mbscspn.c: New file.
43213         * lib/string_.h (strcspn): Add a conditional link warning.
43214         (mbscspn): New declaration.
43215         * m4/mbscspn.m4: New file.
43216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43217         GNULIB_MBSCSPN.
43218         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43219         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43220
43221 2007-02-04  Bruno Haible  <bruno@clisp.org>
43222
43223         New module mbscasestr, reduced goal of strcasestr.
43224         * modules/mbscasestr: New file.
43225         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43226         (mbscasestr): Renamed from strcasestr.
43227         * lib/strcasestr.c: Don't include mbuiter.h.
43228         (strcasestr): Remove support for multibyte locales.
43229         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43230         Change the conditional link warning.
43231         (mbscasestr): New declaration.
43232         * m4/mbscasestr.m4: New file.
43233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43234         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43235         REPLACE_STRCASESTR.
43236         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43238         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43239         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43240         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43241         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43242         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43243         (Depends-on): Remove mbuiter.
43244         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43245
43246 2007-02-04  Bruno Haible  <bruno@clisp.org>
43247
43248         Simplify handling of strncasecmp.
43249         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43250         the conditional link warning.
43251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43252         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43253         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43254         * modules/strcase (configure.ac): Don't invoke
43255         gl_STRING_MODULE_INDICATOR.
43256         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43257
43258 2007-02-04  Bruno Haible  <bruno@clisp.org>
43259
43260         New module mbscasecmp, reduced goal of strcasecmp.
43261         * modules/mbscasecmp: New file.
43262         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43263         (mbscasecmp): Renamed from strcasecmp.
43264         * lib/strcasecmp.c: Don't include mbuiter.h.
43265         (strcasecmp): Remove support for multibyte locales.
43266         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43267         Change the conditional link warning.
43268         (mbscasecmp): New declaration.
43269         * m4/mbscasecmp.m4: New file.
43270         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43271         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43272         REPLACE_STRCASECMP.
43273         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43275         GNULIB_MBSCASECMP.
43276         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43277         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43278         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43279         (Depends-on): Remove mbuiter.
43280         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43281
43282 2007-02-04  Bruno Haible  <bruno@clisp.org>
43283
43284         New module mbsstr. Remove module strstr.
43285         * modules/mbsstr: New file.
43286         * modules/strstr: Remove file.
43287         * lib/mbsstr.c: Renamed from lib/strstr.c.
43288         (mbsstr): Renamed from strstr.
43289         * lib/string_.h (strstr): Remove declaration. Change the conditional
43290         link warning.
43291         (mbsstr): New declaration.
43292         * m4/mbsstr.m4: New file.
43293         * m4/strstr.m4: Remove file.
43294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43295         REPLACE_STRSTR.
43296         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43297         Don't initialize GNULIB_STRSTR.
43298         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43299         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43300         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43301         (Support for systems lacking ANSI C 89): Remove strstr.
43302
43303 2007-02-04  Bruno Haible  <bruno@clisp.org>
43304
43305         New module mbsrchr.
43306         * modules/mbsrchr: New file.
43307         * lib/mbsrchr.c: New file.
43308         * lib/string_.h (strrchr): Add a conditional link warning.
43309         (mbsrchr): New declaration.
43310         * m4/mbsrchr.m4: New file.
43311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43312         GNULIB_MBSRCHR.
43313         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43314         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43315
43316 2007-02-04  Bruno Haible  <bruno@clisp.org>
43317
43318         New module mbschr.
43319         * modules/mbschr: New file.
43320         * lib/mbschr.c: New file.
43321         * lib/string_.h (strchr): Add a conditional link warning.
43322         (mbschr): New declaration.
43323         * m4/mbschr.m4: New file.
43324         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43325         GNULIB_MBSCHR.
43326         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43327         * MODULES.html.sh (Internationalization functions): Add mbschr.
43328
43329 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43330
43331         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43332
43333         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43334
43335 2007-02-04  Bruno Haible  <bruno@clisp.org>
43336
43337         New module description section 'configure.ac-early'.
43338         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43339         (func_get_autoconf_early_snippet): New function.
43340         (func_import, func_create_testdir): Use it. Remove special cases for
43341         modules 'extensions' and 'lock'.
43342         * modules/extensions (configure.ac-early): Require
43343         gl_USE_SYSTEM_EXTENSIONS.
43344         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43345
43346 2007-02-04  Bruno Haible  <bruno@clisp.org>
43347
43348         Make use of gcj-4.3's -fsource and -ftarget option.
43349         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43350         and if so try the options -fsource and -ftarget.
43351         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43352         source_version, ftarget_option, target_version arguments.
43353         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43354         (is_envjavac_oldgcj_14_14_usable): Renamed from
43355         is_envjavac_gcj_14_14_usable.
43356         (is_envjavac_oldgcj_14_13_usable): Renamed from
43357         is_envjavac_gcj_14_13_usable.
43358         (is_gcj_present): Update.
43359         (is_gcj_43, is_gcj43_usable): New functions.
43360         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43361         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43362         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43363         try the options -fsource and -ftarget.
43364
43365 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43366
43367         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43368         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43369         larger value.
43370
43371 2007-02-03  Jim Meyering  <jim@meyering.net>
43372
43373         Give tools a better chance to allocate space for very large buffers.
43374         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43375
43376         Make pwd and readlink work also when run with an unreadable parent dir
43377         on systems with openat support.
43378         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43379         provided getcwd function, even when we have openat support.
43380         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43381
43382 2007-02-02  Bruno Haible  <bruno@clisp.org>
43383
43384         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43385         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43386         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43387         portability problems if one of these functions is only used on specific
43388         platforms.
43389         Reported by Paul Eggert.
43390
43391 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43392
43393         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43394         is causing more trouble than it's curing.
43395         * lib/regex_internal.h (__mempcpy): Remove.
43396         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43397         (and make the code a tad smaller to boot).
43398         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43399
43400 2007-02-02  Jim Meyering  <jim@meyering.net>
43401
43402         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43403         section, not in the Makefile.am: one.
43404
43405 2007-02-02  Eric Blake  <ebb9@byu.net>
43406
43407         * lib/strchrnul.c: Always include config.h first.
43408
43409         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43410         gnulib strstr is not necessary here.
43411
43412 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43413
43414         * m4/socklen.m4: Fix typo.
43415
43416 2007-02-02  Eric Blake  <ebb9@byu.net>
43417
43418         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43419         * modules/netinet_in (Makefile.am): Likewise.
43420
43421 2007-02-01  Bruno Haible  <bruno@clisp.org>
43422
43423         * lib/string_.h (GL_LINK_WARNING): New macro.
43424         (strcasecmp, strstr, strcasestr): If provided by the system,
43425         conditionally define as a macro that leads to a warning instead of to
43426         an error.
43427         (strncasecmp): Conditionally define as a macro that leads to a warning.
43428
43429 2007-02-01  Karl Berry  <karl@gnu.org>
43430
43431         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43432
43433 2007-02-01  Bruno Haible  <bruno@clisp.org>
43434
43435         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43436         renamings.
43437
43438 2007-02-01  Eric Blake  <ebb9@byu.net>
43439
43440         * modules/regex (Depends-on): Revert dependence on mempcpy.
43441         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43442         module's definition of mempcpy.
43443         Reported by Paul Eggert.
43444
43445 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43446
43447         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43448         the symbol XYZ before redefining it.  This fixes a problem with
43449         programs that don't use XYZ, when compiled on systems that define
43450         XYZ to something else.
43451
43452 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43453
43454         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43455         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43456         writeable to group or other and (2) is intended to have a special
43457         mode bit that is set or cleared.  In such a case, the directory
43458         should be neither group- nor other-writeable until the special
43459         mode bits are right.
43460
43461 2007-01-31  Eric Blake  <ebb9@byu.net>
43462
43463         * modules/mountlist (Depends-on): Add strstr.
43464
43465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43466         bug.
43467         * modules/string (Makefile.am): Remove redundant replacement.
43468         * modules/regex (Depends-on): Add mempcpy.
43469
43470 2007-01-31  Bruno Haible  <bruno@clisp.org>
43471
43472         New module description field 'Link'.
43473         * gnulib-tool (func_usage): Document --extract-link-directive.
43474         (sed_extract_prog): Recognize 'Link' directive.
43475         (func_get_link_directive): New function.
43476         (func_import): Show summary of link directives.
43477         Handle --extract-link-directive option.
43478         * modules/acl (Link): New section.
43479         * modules/clock-time (Link): New section.
43480         * modules/euidaccess (Link): New section.
43481         * modules/gettext (Link): New section.
43482         * modules/iconv (Link): New section.
43483         * modules/lock (Link): New section.
43484         * modules/nanosleep (Link): New section.
43485         * modules/readline (Link): New section.
43486
43487 2007-01-27  Bruno Haible  <bruno@clisp.org>
43488
43489         Enforce the use of gnulib modules for unportable <string.h> functions.
43490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43491         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43492         (gl_HEADER_STRING_H_BODY): Require it.
43493         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43494         the symbol XYZ to one that gives a link error.
43495         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43496         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43497         * modules/mempcpy (configure.ac): Likewise.
43498         * modules/memrchr (configure.ac): Likewise.
43499         * modules/stpcpy (configure.ac): Likewise.
43500         * modules/stpncpy (configure.ac): Likewise.
43501         * modules/strcase (configure.ac): Likewise.
43502         * modules/strcasestr (configure.ac): Likewise.
43503         * modules/strchrnul (configure.ac): Likewise.
43504         * modules/strdup (configure.ac): Likewise.
43505         * modules/strndup (configure.ac): Likewise.
43506         * modules/strnlen (configure.ac): Likewise.
43507         * modules/strpbrk (configure.ac): Likewise.
43508         * modules/strsep (configure.ac): Likewise.
43509         * modules/strstr (configure.ac): Likewise.
43510         * modules/strtok_r (configure.ac): Likewise.
43511
43512 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43513
43514         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43515
43516 2007-01-30  Jim Meyering  <jim@meyering.net>
43517
43518         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43519
43520 2007-01-29  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43523         * lib/execute.c: Likewise.
43524         * lib/pipe.c: Likewise.
43525         * lib/printf-args.h: Likewise.
43526         * lib/printf-args.c: Likewise.
43527         * lib/printf-parse.c: Likewise.
43528         * lib/vasnprintf.c: Likewise.
43529
43530 2007-01-29  Eric Blake  <ebb9@byu.net>
43531
43532         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43533         declaration.
43534
43535 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43536
43537         * lib/strptime.h (strptime): Use 'restrict' for args where
43538         POSIX requires this.
43539         * lib/strptime.c (strptime): Likewise.
43540         Change license notice from LGPL to GPL, since gnulib-tool will
43541         change this as needed.
43542         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43543         defined.
43544         Include "strptime.h" first, to check interface.
43545         Do not #undef _LIBC and _NL_CURRENT.
43546         Do not include <stdlib.h>; no longer needed.
43547         Include "time_r.h" and declare ptime_locale_status
43548         only if _LIBC is not defined.
43549         (__P): Remove unused macro.
43550         (match_string): Bring back glibc version, but use it only if _LIBC
43551         is defined.
43552         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
43553         Remove unnecessary assertion and abort() call.
43554         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
43555         * m4/strptime.m4: Fix serial number comment.
43556         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
43557         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
43558         (Depends-on): Add time_r.
43559
43560 2007-01-29  Bruno Haible  <bruno@clisp.org>
43561
43562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43563         strptime.
43564         * modules/strptime (Depends-on): Add stdbool.
43565         * lib/strptime.h: Include <time.h> always. Add comments.
43566
43567 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43568
43569         * modules/strptime: New file.
43570         * lib/strptime.h: New file.
43571         * lib/strptime.c: New file.
43572         * m4/strptime.m4: New file.
43573
43574 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43575
43576         * MODULES.html.sh: New module mpsort.
43577         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
43578
43579         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
43580         a circularity problem with HP-UX ia64 reported by Bob Proulx in
43581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
43582         All uses changed.
43583         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
43584         All uses changed.
43585         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
43586         to _Restrict_.
43587         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
43588         the parameter matches the prototype.
43589
43590 2007-01-28  Jim Meyering  <jim@meyering.net>
43591
43592         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
43593         sys/time.h here, reverting that part of the previous patch:
43594         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
43595
43596 2007-01-28  Bruno Haible  <bruno@clisp.org>
43597
43598         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
43599         value of $(SYS_TIME_H).
43600         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
43601         remove it conditionally, too. [added by Jim Meyering]
43602         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
43603         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43604         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
43605         GETTIMEOFDAY_REPLACEMENT to 1.
43606
43607 2007-01-28  Bruno Haible  <bruno@clisp.org>
43608
43609         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
43610         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
43611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
43612         Set UNISTD_H instead of UNISTD_H2.
43613         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
43614
43615 2007-01-28  Bruno Haible  <bruno@clisp.org>
43616
43617         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
43618         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
43619
43620 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43621
43622         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
43623         (func_create_testdir): Ensure C locale for `grep' and `tr'
43624         character ranges.
43625         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
43626         ACLOCAL_AMFLAGS parsing state machine.
43627
43628 2007-01-27  Bruno Haible  <bruno@clisp.org>
43629
43630         * modules/unistr/base: Update.
43631
43632 2007-01-27  Bruno Haible  <bruno@clisp.org>
43633
43634         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
43635         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
43636         * modules/unistr/u32-mbtouc-unsafe: Renamed from
43637         modules/unistr/u32-mbtouc.
43638         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
43639         * lib/unistr.h: Update.
43640         * lib/linebreak.c: Update.
43641         * modules/unistr/u32-mbtouc: Renamed from
43642         modules/unistr/u32-mbtouc-safe.
43643         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
43644         * lib/unistr.h: Update.
43645         * lib/unistr/u32-to-u8.c: Update.
43646         * lib/unistr/u32-to-u16.c: Update.
43647
43648 2007-01-27  Bruno Haible  <bruno@clisp.org>
43649
43650         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
43651         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
43652         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
43653         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
43654         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
43655         * modules/unistr/u16-mbtouc-unsafe: Renamed from
43656         modules/unistr/u16-mbtouc.
43657         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
43658         * lib/unistr.h: Update.
43659         * lib/linebreak.c: Update.
43660         * modules/linebreak: Update.
43661         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
43662         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
43663         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
43664         * modules/unistr/u16-mbtouc: Renamed from
43665         modules/unistr/u16-mbtouc-safe.
43666         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
43667         * lib/unistr.h: Update.
43668         * lib/unistr/u16-to-u8.c: Update.
43669         * modules/unistr/u16-to-u8: Update.
43670         * lib/unistr/u16-to-u32.c: Update.
43671         * modules/unistr/u16-to-u32: Update.
43672
43673 2007-01-27  Bruno Haible  <bruno@clisp.org>
43674
43675         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
43676         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
43677         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
43678         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
43679         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
43680         * modules/unistr/u8-mbtouc-unsafe: Renamed from
43681         modules/unistr/u8-mbtouc.
43682         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
43683         * lib/unistr.h: Update.
43684         * lib/striconveh.c: Update.
43685         * modules/striconveh: Update.
43686         * lib/linebreak.c: Update.
43687         * modules/linebreak: Update.
43688         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
43689         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
43690         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
43691         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
43692         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
43693         * lib/unistr.h: Update.
43694         * lib/striconveh.c: Update.
43695         * modules/striconveh: Update.
43696         * lib/unistr/u8-to-u16.c: Update.
43697         * modules/unistr/u8-to-u16: Update.
43698         * lib/unistr/u8-to-u32.c: Update.
43699         * modules/unistr/u8-to-u32: Update.
43700
43701 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43702
43703         Sync from Libtool.
43704         * lib/argz.c: Do not include strings.h nor memory.h, include
43705         string.h unconditionally.  Patch by Simon Josefsson.
43706
43707 2007-01-27  Bruno Haible  <bruno@clisp.org>
43708
43709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
43710         from gl_HEADER_STRING_H_BODY.
43711         (gl_HEADER_STRING_H_BODY): Require it.
43712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
43713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
43714         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
43715         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
43716         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43717         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
43718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43719         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
43720         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
43721         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43722         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
43723         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
43724         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
43725         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43726         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43727
43728 2007-01-27  Bruno Haible  <bruno@clisp.org>
43729
43730         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
43731         check_PROGRAMS into noinst_PROGRAMS.
43732         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
43733         check_PROGRAMS in this case.
43734         (func_import): Set for_test to false.
43735         (func_create_testdir): Set for_test to true.
43736
43737 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43738             Bruno Haible  <bruno@clisp.org>
43739
43740         * modules/strcasestr (Files): Remove lib/strcasestr.h.
43741         (Depends-on): Add string.
43742         (Includes): Use <string.h> instead of strcasestr.h.
43743         * modules/string (Makefile.am): Also substitute the value of
43744         REPLACE_STRCASESTR.
43745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
43746         assume strcasestr is declared in <string.h> not <strings.h>. Also
43747         set REPLACE_STRCASESTR.
43748         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
43749         REPLACE_STRCASESTR.
43750         * lib/strcasestr.h: Remove file.
43751         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
43752         * lib/string_.h (strcasestr): New declaration.
43753
43754 2007-01-27  Bruno Haible  <bruno@clisp.org>
43755
43756         * lib/string_.h: Use 'extern'.
43757
43758 2007-01-27  Jim Meyering  <jim@meyering.net>
43759
43760         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
43761         of set-but-not-used local, "q".
43762
43763         * lib/mempcpy.c: Include <config.h> before <string.h>.
43764         This fixes a compilation error on HP-UX, due to the system's
43765         "restrict"-using mempcpy prototype.
43766
43767 2007-01-26  Bruno Haible  <bruno@clisp.org>
43768
43769         Small optimization.
43770         * lib/javacomp.c: Include c-strstr.h.
43771          (is_envjavac_gcj): Use c_strstr instead of strstr.
43772         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
43773
43774 2007-01-26  Bruno Haible  <bruno@clisp.org>
43775
43776         * MODULES.html.sh (Unicode string functions): Add the new modules.
43777
43778         * modules/uniconv/u32-strconv-to-locale: New file.
43779         * lib/uniconv/u32-strconv-to-locale.c: New file.
43780
43781         * modules/uniconv/u16-strconv-to-locale: New file.
43782         * lib/uniconv/u16-strconv-to-locale.c: New file.
43783
43784         * modules/uniconv/u8-strconv-to-locale: New file.
43785         * lib/uniconv/u8-strconv-to-locale.c: New file.
43786
43787         * modules/uniconv/u32-strconv-from-locale: New file.
43788         * lib/uniconv/u32-strconv-from-locale.c: New file.
43789
43790         * modules/uniconv/u16-strconv-from-locale: New file.
43791         * lib/uniconv/u16-strconv-from-locale.c: New file.
43792
43793         * modules/uniconv/u8-strconv-from-locale: New file.
43794         * lib/uniconv/u8-strconv-from-locale.c: New file.
43795
43796         * modules/uniconv/u32-strconv-to-enc: New file.
43797         * lib/uniconv/u32-strconv-to-enc.c: New file.
43798         * modules/uniconv/u32-strconv-to-enc-tests: New file.
43799         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
43800
43801         * modules/uniconv/u16-strconv-to-enc: New file.
43802         * lib/uniconv/u16-strconv-to-enc.c: New file.
43803         * lib/uniconv/u-strconv-to-enc.h: New file.
43804         * modules/uniconv/u16-strconv-to-enc-tests: New file.
43805         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
43806
43807         * modules/uniconv/u8-strconv-to-enc: New file.
43808         * lib/uniconv/u8-strconv-to-enc.c: New file.
43809         * modules/uniconv/u8-strconv-to-enc-tests: New file.
43810         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
43811
43812         * modules/uniconv/u32-strconv-from-enc: New file.
43813         * lib/uniconv/u32-strconv-from-enc.c: New file.
43814         * modules/uniconv/u32-strconv-from-enc-tests: New file.
43815         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
43816
43817         * modules/uniconv/u16-strconv-from-enc: New file.
43818         * lib/uniconv/u16-strconv-from-enc.c: New file.
43819         * modules/uniconv/u16-strconv-from-enc-tests: New file.
43820         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
43821
43822         * modules/uniconv/u8-strconv-from-enc: New file.
43823         * lib/uniconv/u8-strconv-from-enc.c: New file.
43824         * lib/uniconv/u-strconv-from-enc.h: New file.
43825         * modules/uniconv/u8-strconv-from-enc-tests: New file.
43826         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
43827
43828         * modules/uniconv/u32-conv-from-enc: New file.
43829         * lib/uniconv/u32-conv-from-enc.c: New file.
43830         * modules/uniconv/u32-conv-from-enc-tests: New file.
43831         * tests/uniconv/test-u32-conv-from-enc.c: New file.
43832
43833         * modules/uniconv/u16-conv-from-enc: New file.
43834         * lib/uniconv/u16-conv-from-enc.c: New file.
43835         * lib/uniconv/u-conv-from-enc.h: New file.
43836         * modules/uniconv/u16-conv-from-enc-tests: New file.
43837         * tests/uniconv/test-u16-conv-from-enc.c: New file.
43838
43839         * modules/uniconv/u8-conv-from-enc: New file.
43840         * lib/uniconv/u8-conv-from-enc.c: New file.
43841         * modules/uniconv/u8-conv-from-enc-tests: New file.
43842         * tests/uniconv/test-u8-conv-from-enc.c: New file.
43843
43844         * modules/uniconv/base: New file.
43845         * lib/uniconv.h: New file.
43846
43847 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
43848
43849         * doc/gnulib-tool.texi (Initial import): Update to match current
43850         behavior with strdup module.
43851         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
43852         * lib/memmem.h: Remove; all uses removed.  This is now done
43853         by <string.h>.
43854         * lib/mempcpy.h: Likewise.
43855         * lib/memrchr.h: Likewise.
43856         * lib/stpcpy.h: Likewise.
43857         * lib/stpncpy.h: Likewise.
43858         * lib/strcase.h: Likewise.
43859         * lib/strchrnul.h: Likewise.
43860         * lib/strdup.h: Likewise.
43861         * lib/strndup.h: Likewise.
43862         * lib/strnlen.h: Likewise.
43863         * lib/strpbrk.h: Likewise.
43864         * lib/strsep.h: Likewise.
43865         * lib/strstr.h: Likewise.
43866         * lib/strtok_r.h: Likewise.
43867         * lib/string_.h: New file.
43868         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
43869         Rely on <string.h> instead.
43870         * lib/canon-host.c: Likewise.
43871         * lib/chdir-long.c: Likewise.
43872         * lib/concatpath.c: Likewise.
43873         * lib/exclude.c: Likewise.
43874         * lib/fchdir.c: Likewise.
43875         * lib/getaddrinfo.c: Likewise.
43876         * lib/getcwd.c: Likewise.
43877         * lib/getsubopt.c: Likewise.
43878         * lib/glob.c: Likewise.
43879         * lib/hard-locale.c: Likewise.
43880         * lib/iconvme.c: Likewise.
43881         * lib/javacomp.c: Likewise.
43882         * lib/mempcpy.c: Likewise.
43883         * lib/memrchr.c: Likewise.
43884         * lib/regex_internal.h: Likewise.
43885         * lib/stpncpy.c: Likewise.
43886         * lib/strcasecmp.c: Likewise.
43887         * lib/strchrnul.c: Likewise.
43888         * lib/strdup.c: Likewise.
43889         * lib/striconv.c: Likewise.
43890         * lib/striconveh.c: Likewise.
43891         * lib/striconveha.c: Likewise.
43892         * lib/strncasecmp.c: Likewise.
43893         * lib/strndup.c: Likewise.
43894         * lib/strnlen.c: Likewise.
43895         * lib/strsep.c: Likewise.
43896         * lib/strstr.c: Likewise.
43897         * lib/strtok_r.c: Likewise.
43898         * lib/userspec.c: Likewise.
43899         * lib/w32spawn.h: Likewise.
43900         * lib/xstrndup.c: Likewise.
43901         * lib/mountlist.c (strstr): Remove decl.
43902         * m4/string_h.m4: New file.
43903         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
43904         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
43905         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
43906         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
43907         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
43908         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
43909         Set REPLACE_STRCASECMP if necessary.
43910         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
43911         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
43912         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
43913         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
43914         HAVE_DECL_STRDUP if necessary.
43915         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
43916         since gl_FUNC_STRNDUP does that now.
43917         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
43918         Check for decl here...
43919         (gl_PREREQ_STRNLEN): ... not here.
43920         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
43921         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
43922         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
43923         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
43924         necessary.
43925         * modules/string: New file.
43926         * modules/memmem (Files): Remove special-purpose include file.
43927         (Depends-on): Add string.
43928         (Include): Include <string.h>, not the removed file.
43929         * modules/mempcpy: Likewise.
43930         * modules/memrchr: Likewise.
43931         * modules/stpcpy: Likewise.
43932         * modules/stpncpy: Likewise.
43933         * modules/strcase: Likewise.
43934         * modules/strchrnul: Likewise.
43935         * modules/strdup: Likewise.
43936         * modules/strndup: Likewise.
43937         * modules/strnlen: Likewise.
43938         * modules/strpbrk: Likewise.
43939         * modules/strsep: Likewise.
43940         * modules/strstr: Likewise.
43941         * modules/strtok_r: Likewise.
43942         * tests/test-dirname.c: Don't include "strdup.h", since
43943         <string.h> now suffices.
43944         * tests/test-memmem.c: Don't include "memmem.h", since
43945         <string.h> now suffices.
43946
43947 2007-01-25  Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
43950         *resultp is 0.
43951
43952         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
43953         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
43954         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
43955         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
43956
43957         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
43958         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
43959         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
43960         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
43961         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
43962         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
43963
43964 2007-01-24  Bruno Haible  <bruno@clisp.org>
43965
43966         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
43967         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
43968         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
43969         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
43970         gl_FUNC_FTS_CORE.
43971         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
43972         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
43973         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43974         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
43975         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
43976         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
43977         gl_FUNC_FCHOWNAT.
43978         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
43979         gl_FUNC_STRFTIME.
43980         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
43981         Reported by Ralf Wildenhues.
43982
43983 2007-01-24  Bruno Haible  <bruno@clisp.org>
43984
43985         Drop AC_REQUIRE calls that are redundant with the module dependencies.
43986         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
43987         gl_GETADDRINFO.
43988         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
43989         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
43990         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
43991
43992 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
43993
43994         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
43995         Don't use 'exit'; just return from 'main'.
43996         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
43997
43998         * lib/fnmatch_.h: Readjust white space and comments to match
43999         glibc, to avoid spurious diffs.
44000
44001 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44002
44003         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44004         2004-12-01 change by Jakub Jelinek, since this code won't compile
44005         if !LIBC.  Problem reported by Bob Proulx.
44006
44007 2007-01-23  Bruno Haible  <bruno@clisp.org>
44008
44009         * lib/striconveh.c: Include c-strcaseeq.h.
44010         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44011         * modules/striconveh (Depends-on): Add c-strcaseeq.
44012
44013 2007-01-23  Bruno Haible  <bruno@clisp.org>
44014
44015         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44016
44017         * modules/c-strcaseeq: New file.
44018         * lib/c-strcaseeq.h: New file.
44019
44020         * modules/streq: New file.
44021         * lib/streq.h: New file.
44022
44023 2007-01-23  Bruno Haible  <bruno@clisp.org>
44024
44025         * modules/striconveha-tests: New file.
44026         * tests/test-striconveha.c: New file.
44027
44028         * lib/striconveha.h: Include <stdbool.h>.
44029         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44030         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44031         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44032         (mem_iconveha): New function.
44033         (str_iconveha_notranslit): Renamed from str_iconveha.
44034         (str_iconveha): New function.
44035         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44036         c-strcase.
44037
44038 2007-01-23  Bruno Haible  <bruno@clisp.org>
44039
44040         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44041         encodings without forgiving before trying any encoding with handler.
44042         (str_iconveha): Try all encodings without forgiving before trying any
44043         encoding with handler.
44044
44045 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44046
44047         Import the following changes from libc.
44048
44049         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44050
44051         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44052
44053         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44054
44055         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44056         normal_bracket label.
44057
44058         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44059
44060         [BZ #361]
44061         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44062         to normal_bracket after fetching the next character.
44063
44064 2007-01-22  Bruno Haible  <bruno@clisp.org>
44065
44066         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44067         argument.
44068         * lib/striconveh.c (iconv_carefully_1): New function.
44069         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44070         argument.
44071         (str_cd_iconveh): Update.
44072         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44073         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44074         * tests/test-striconveh.c (MAGIC): New macro.
44075         (new_offsets): New function.
44076         (main): Test call with and without offsets.
44077
44078 2007-01-22  Bruno Haible  <bruno@clisp.org>
44079
44080         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44081         * modules/sys_select (Makefile.am): Likewise.
44082         * modules/sys_socket (Makefile.am): Likewise.
44083         * modules/sys_time (Makefile.am): Likewise.
44084
44085 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44086
44087         * modules/gettimeofday (License): Change from GPL to LGPL, since
44088         gettimeofday is a library function.
44089
44090 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44091
44092         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44093
44094 2007-01-21  Bruno Haible  <bruno@clisp.org>
44095
44096         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44097
44098 2007-01-21  Bruno Haible  <bruno@clisp.org>
44099
44100         * modules/striconveha: New file.
44101         * lib/striconveha.h: New file.
44102         * lib/striconveha.c: New file.
44103         * MODULES.html.sh (Internationalization functions): Add striconveha.
44104         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44105         string.
44106         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44107
44108 2007-01-21  Bruno Haible  <bruno@clisp.org>
44109
44110         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44111         * lib/striconveh.c (str_iconveh): Likewise.
44112
44113 2007-01-21  Bruno Haible  <bruno@clisp.org>
44114
44115         * lib/striconveh.h (mem_iconveh): New declaration.
44116         * lib/striconveh.c (mem_iconveh): New function.
44117         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44118
44119 2007-01-21  Bruno Haible  <bruno@clisp.org>
44120
44121         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44122
44123         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44124         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44125         original result buffer.
44126         (str_cd_iconveh): Update.
44127         * tests/test-striconveh.c (main): Update.
44128
44129         * lib/striconv.h (mem_cd_iconv): Change specification.
44130         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44131         result buffer.
44132         (str_cd_iconv): Update.
44133         * tests/test-striconv.c (main): Update.
44134
44135 2007-01-21  Bruno Haible  <bruno@clisp.org>
44136
44137         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44138
44139 2007-01-20  Jim Meyering  <jim@meyering.net>
44140
44141         * lib/userspec.c (parse_with_separator): If a user or group string
44142         starts with "+", skip the corresponding name-to-ID look-up, since
44143         such a look-up must fail: user and group names may not include "+".
44144
44145 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44146
44147         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44148         since we now assume the sys_time module.
44149         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44150         check for sys/time.h; no longer needed.
44151         * modules/poll (Depends-on): Depend on sys_time.
44152
44153 2007-01-18  Bruno Haible  <bruno@clisp.org>
44154
44155         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44156         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44157
44158         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44159         gettimeofday.
44160
44161         * tests/test-gettimeofday.c: Include <time.h>.
44162         (dummy): Remove variable.
44163
44164         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44165         gl_HEADER_SYS_TIME_H.
44166         (gl_HEADER_SYS_TIME_H): New macro.
44167
44168         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44169         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44171         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44172         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44174         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44175         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44176         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44177         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44178         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44179
44180         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44181         last change; it caused a compilation error when cross-compiling to
44182         Cygwin.
44183
44184 2007-01-18  Jim Meyering  <jim@meyering.net>
44185
44186         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44187         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44188         than the race-prone "test -d sys || mkdir sys".
44189         (configure.ac): Use AC_PROG_MKDIR_P.
44190         * modules/sys_select: Likewise.
44191         * modules/sys_socket: Likewise.
44192         * modules/sys_time: Likewise.
44193
44194 2007-01-18  Eric Blake  <ebb9@byu.net>
44195
44196         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44197         replace gettimeofday.
44198         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44199         name, to avoid infinite recursion.
44200
44201 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44202
44203         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44204         module sys_time.
44205         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44206         assume timespec.h defines struct timeval.
44207         * lib/settime.c: Likewise.
44208         * lib/utimens.c: Likewise.
44209         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44210         since we now assume the gettimeofday module.
44211         * lib/tempname.c (__gen_tempname): Likewise.
44212         * lib/gettimeofday.h: Remove.
44213         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44214         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44215         Include <time.h>, for 'time()'.
44216         (localtime_buffer_addr): Also use this workaround if
44217         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44218         to simplify the uses.  All uses changed.
44219         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44220         that #undef is inside {}, and 'const' follows type name consistently.
44221         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44222         (gettimeofday): Do not use the maximum possible value for
44223         tv->tv_usec, since that might break usages other than ls.c.
44224         Instead, we'll leave ls.c alone.  This undoes today's patch
44225         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44226         we've never observed the problem but might as well keep the
44227         canary.
44228         * lib/nanosleep.c: Include timespec.h first, for interface check.
44229         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44230         now assume the sys_time module.
44231         * lib/tempname.c: Likewise.
44232         * lib/timespec.h: Likewise.
44233         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44234         needed.
44235         * lib/strftime.c: Likewise.
44236         * lib/timespec.h: Likewise.
44237         * lib/posixtm.c: Include posixtm.h first, for interface check.
44238         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44239         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44240         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44241         * lib/sys_time_.h: New file.
44242         * lib/timespec.h (struct timespec): Use long int, not long.
44243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44244         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44245         Remove obsolescent call to AC_HEADER_TIME.
44246         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44248         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44249         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44250         Likewise.
44251         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44252         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44253         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44254         into the sys_time module.  Check for gettimeofday just once.
44255         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44256         for gettimeofday signature to just check the signature.  Merely
44257         compile it, since linking doesn't test signature.  Improve test for
44258         whether gettimeofday.o is actually needed.
44259         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44260         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44261         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44262         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44263         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44264         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44265         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44266         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44267         than worrying about sys/time.h.
44268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44269         Don't bother worrying about TIME_WITH_SYS_TIME.
44270         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44271         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44272         * m4/sys_time_h.m4: New file.
44273         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44274         Don't include sys/time.h.  Return from main rather than exiting.
44275         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44276         all uses changed.
44277         * modules/gethrxtime (Depends-on): Add sys_time.
44278         * modules/gettime (Depends-on): Likewise.
44279         * modules/gettimeofday (Depends-on): Likewise.
44280         * modules/nanosleep (Depends-on): Likewise.
44281         * modules/settime (Depends-on): Likewise.
44282         * modules/tempname (Depends-on): Likewise.
44283         * modules/utimens (Depends-on): Likewise.
44284         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44285         (Include:) Change back to <sys/time.h>.
44286         (Maintainer:) Add self.
44287         * modules/sys_time: New file.
44288         * modules/tempname (Depends-on): Add gettimeofday.
44289         * tests/test-gettimeofday.c: Include <sys/time.h>
44290         rather than gettimeofday.h.
44291
44292 2007-01-17  Bruno Haible  <bruno@clisp.org>
44293
44294         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44295         the license default to GPL.
44296         (func_create_testdir): Don't complain if a module is LGPL and its
44297         tests module depends on GPLed modules.
44298
44299 2007-01-17  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/gettimeofday.c (gettimeofday): Add code for the case
44302         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44303         maximum possible value for tv->tv_usec, rather than the minimum one.
44304
44305 2005-10-08  Martin Lambers  <marlam@marlam.de>
44306 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44307 2007-01-16  Bruno Haible  <bruno@clisp.org>
44308
44309         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44310         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44311         gl_FUNC_GETTIMEOFDAY.
44312         (Include): Add gettimeofday.h.
44313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44314         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44315         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44316         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44317         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44318         * lib/gettimeofday.h: New file.
44319         * lib/gettimeofday.c: Include <sys/timeb.h>.
44320         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44321         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44322         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44323         fall back on time().
44324
44325         * tests/test-gettimeofday.c: New file.
44326         * modules/gettimeofday-tests: New file.
44327
44328 2007-01-16  Eric Blake  <ebb9@byu.net>
44329
44330         * modules/fnmatch (Depends-on): Depend on wchar.
44331         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44332         * m4/fnmatch.m4: Likewise.
44333         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44334         * m4/mbchar.m4: Likewise.
44335         * modules/mbswidth (Depends-on): Depend on wchar.
44336         * lib/mbswidth.c: Assume <wchar.h>.
44337         * m4/mbswidth.m4: Likewise.
44338         * modules/quotearg (Depends-on): Depend on wchar.
44339         * lib/quotearg.c: Assume <wchar.h>.
44340         * m4/quotearg.m4: Likewise.
44341         * modules/regex (Depends-on): Depend on wchar.
44342         * lib/regex_internal.h: Assume <wchar.h>.
44343         * m4/regex.m4: Likewise.
44344         * modules/stdint (Depends-on): Depend on wchar.
44345         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44346         * m4/stdint.m4: Likewise.
44347         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44348         * modules/strftime (Depends-on): Depend on wchar.
44349         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44350         * modules/strtol (Depends-on): Depend on wchar.
44351         * lib/strtol.c: Assume <wchar.h>.
44352         * modules/wcwidth (Depends-on): Depend on wchar.
44353         * lib/wcwidth.h: Assume <wchar.h>.
44354         * m4/wcwidth.m4: Likewise.
44355
44356 2007-01-16  Bruno Haible  <bruno@clisp.org>
44357
44358         * modules/csharpexec-script: New, created from...
44359         * modules/csharpexec: ... this.
44360
44361 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44362
44363         * modules/javaexec-script: New, created from...
44364         * modules/javaexec: ... this.
44365
44366 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44367
44368         * modules/poll (Dependencies): Add sys_select.
44369
44370 2007-01-15  Jim Meyering  <jim@meyering.net>
44371
44372         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44373         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44374         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44375         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44376
44377 2007-01-15  Bruno Haible  <bruno@clisp.org>
44378
44379         * modules/striconveh: New file.
44380         * lib/striconveh.h: New file.
44381         * lib/striconveh.c: New file.
44382         * MODULES.html.sh (Internationalization functions): Add striconveh.
44383
44384         * modules/striconveh-tests: New file.
44385         * tests/test-striconveh.c: New file.
44386
44387 2007-01-15  Bruno Haible  <bruno@clisp.org>
44388
44389         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44390         not from GNU libiconv or GNU libc.
44391
44392 2007-01-15  Bruno Haible  <bruno@clisp.org>
44393
44394         * doc/gnulib-intro.texi (Copyright): Explain the different license
44395         terms for module descriptions, autoconf macros, tests, documentation.
44396
44397 2007-01-14  Bruno Haible  <bruno@clisp.org>
44398
44399         * modules/striconv-tests: New file.
44400         * tests/test-striconv.c: New file.
44401
44402 2007-01-14  Bruno Haible  <bruno@clisp.org>
44403
44404         * modules/iconv-tests: New file.
44405         * tests/test-iconv.c: New file.
44406
44407 2007-01-14  Bruno Haible  <bruno@clisp.org>
44408
44409         * gnulib-tool (func_get_license): For test modules, use the license of
44410         the main module.
44411
44412 2007-01-14  Bruno Haible  <bruno@clisp.org>
44413
44414         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44415         if iconv is found to exist.
44416
44417 2007-01-14  Bruno Haible  <bruno@clisp.org>
44418
44419         * modules/c-ctype-tests: New file.
44420         * tests/test-c-ctype.c: New file.
44421
44422 2007-01-14  Bruno Haible  <bruno@clisp.org>
44423
44424         * modules/binary-io-tests: New file.
44425         * tests/test-binary-io.sh: New file.
44426         * tests/test-binary-io.c: New file.
44427
44428 2007-01-14  Bruno Haible  <bruno@clisp.org>
44429
44430         * modules/array-oset-tests: New file.
44431         * tests/test-array_oset.c: New file.
44432
44433 2007-01-14  Bruno Haible  <bruno@clisp.org>
44434
44435         * modules/array-list-tests: New file.
44436         * tests/test-array_list.c: New file.
44437
44438 2007-01-14  Bruno Haible  <bruno@clisp.org>
44439
44440         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44441         and make.
44442         Reported by Simon Josefsson in
44443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44444
44445 2007-01-14  Bruno Haible  <bruno@clisp.org>
44446
44447         * modules/allocsa-tests: New file.
44448         * tests/test-allocsa.c: New file.
44449
44450 2007-01-14  Bruno Haible  <bruno@clisp.org>
44451
44452         * modules/fchdir (Depends-on): Add absolute-header.
44453         * modules/unistd (Depends-on): Likewise.
44454
44455 2006-12-30  Bruno Haible  <bruno@clisp.org>
44456
44457         * modules/fchdir: New file.
44458         * modules/unistd (Files): Add lib/unistd_.h.
44459         (Makefile.am): Generate unistd.h from unistd_.h.
44460         * lib/fchdir.c: New file.
44461         * lib/dirent_.h: New file.
44462         * lib/unistd_.h: New file.
44463         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44464         * m4/fchdir.m4: New file.
44465         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44466         (gl_HEADER_UNISTD): Invoke it.
44467         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44468         function.
44469         * lib/backupfile.c (opendir, closedir): Undefine.
44470         * lib/chown.c (open, close): Undefine.
44471         * lib/clean-temp.c (open, close): Undefine.
44472         * lib/copy-file.c (open, close): Undefine.
44473         * lib/execute.c (open, close): Undefine.
44474         * lib/fsusage.c (open, close): Undefine.
44475         * lib/gc-gnulib.c (open, close): Undefine.
44476         * lib/getcwd.c (opendir, closedir): Undefine.
44477         * lib/glob.c (opendir, closedir): Undefine.
44478         * lib/javacomp.c (open, close): Undefine.
44479         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44480         * lib/openat-proc.c (open, close): Undefine.
44481         * lib/pagealign_alloc.c (open, close): Undefine.
44482         * lib/pipe.c (open, close): Undefine.
44483         * lib/progreloc.c (open, close): Undefine.
44484         * lib/savedir.c (opendir, closedir): Undefine.
44485         * lib/utime.c (open, close): Undefine.
44486         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44487
44488 2007-01-10  Bruno Haible  <bruno@clisp.org>
44489
44490         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44491
44492 2007-01-12  Eric Blake  <ebb9@byu.net>
44493
44494         Provide a robust <wchar.h>.  Further simplifications are now
44495         possible in other modules, but not included here.
44496         * modules/wchar: New module.
44497         * m4/wchar.m4: New file.
44498         * lib/wchar_.h: Likewise.
44499         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44500         of the new module.
44501         * MODULES.html.sh (Extended multibyte and wide character utilities):
44502         New section.
44503
44504 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44505
44506         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44507         to a reasonable default for memory allocation.
44508         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44509         file system that reports garbage st_size values for symlinks.
44510         Problem reported by Liyang Hu.
44511
44512 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44513
44514         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44515         Emacs .#* auto-save files).
44516
44517 2007-01-11  Bruno Haible  <bruno@clisp.org>
44518
44519         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44520         directory.
44521
44522 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44523
44524         Use @...@ consistently in lib/wctype_.h.
44525         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44526         on it being set to 1 or 0.
44527         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44528         go back to AC_SUBSTing it.
44529         * modules/wctype (Makefile.am): Undo previous change.
44530
44531 2007-01-10  Eric Blake  <ebb9@byu.net>
44532
44533         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44534         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44535         * modules/wctype (Makefile.am): Likewise.
44536         Reported by Chris McGuire.
44537
44538 2007-01-10  Jim Meyering  <jim@meyering.net>
44539
44540         fts.c: a small readability/maintainability improvement
44541         * lib/fts.c (fts_read): Make this code slightly more readable and
44542         maintainable by hoisting the "sp->fts_cur = p" assignments to
44543         immediately follow the statements that set P.  Derived from
44544         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44545
44546 2007-01-10  Eric Blake  <ebb9@byu.net>
44547
44548         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
44549         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
44550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44551         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44552         Reported by Chris McGuire.
44553
44554 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44555
44556         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
44557         in sed script.
44558
44559 2007-01-09  Bruno Haible  <bruno@clisp.org>
44560
44561         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
44562         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
44563         variables.
44564         (func_module): Use them.
44565
44566 2007-01-09  Bruno Haible  <bruno@clisp.org>
44567
44568         * modules/unistr/base: New file.
44569         * lib/unistr.h: New file.
44570
44571         * modules/unistr/u8-to-u16: New file.
44572         * lib/unistr/u8-to-u16.c: New file.
44573
44574         * modules/unistr/u8-to-u32: New file.
44575         * lib/unistr/u8-to-u32.c: New file.
44576
44577         * modules/unistr/u16-to-u8: New file.
44578         * lib/unistr/u16-to-u8.c: New file.
44579
44580         * modules/unistr/u16-to-u32: New file.
44581         * lib/unistr/u16-to-u32.c: New file.
44582
44583         * modules/unistr/u32-to-u8: New file.
44584         * lib/unistr/u32-to-u8.c: New file.
44585
44586         * modules/unistr/u32-to-u16: New file.
44587         * lib/unistr/u32-to-u16.c: New file.
44588
44589         * modules/unistr/u8-check: New file.
44590         * modules/unistr/u16-check: New file.
44591         * modules/unistr/u32-check: New file.
44592         * lib/unistr/u8-check.c: New file.
44593         * lib/unistr/u16-check.c: New file.
44594         * lib/unistr/u32-check.c: New file.
44595
44596         * modules/unistr/u8-chr: New file.
44597         * modules/unistr/u16-chr: New file.
44598         * modules/unistr/u32-chr: New file.
44599         * lib/unistr/u8-chr.c: New file.
44600         * lib/unistr/u16-chr.c: New file.
44601         * lib/unistr/u32-chr.c: New file.
44602
44603         * modules/unistr/u8-cmp: New file.
44604         * modules/unistr/u16-cmp: New file.
44605         * modules/unistr/u32-cmp: New file.
44606         * lib/unistr/u8-cmp.c: New file.
44607         * lib/unistr/u16-cmp.c: New file.
44608         * lib/unistr/u32-cmp.c: New file.
44609
44610         * modules/unistr/u8-cpy: New file.
44611         * modules/unistr/u16-cpy: New file.
44612         * modules/unistr/u32-cpy: New file.
44613         * lib/unistr/u8-cpy.c: New file.
44614         * lib/unistr/u16-cpy.c: New file.
44615         * lib/unistr/u32-cpy.c: New file.
44616         * lib/unistr/u-cpy.h: New file.
44617
44618         * modules/unistr/u8-cpy-alloc: New file.
44619         * modules/unistr/u16-cpy-alloc: New file.
44620         * modules/unistr/u32-cpy-alloc: New file.
44621         * lib/unistr/u8-cpy-alloc.c: New file.
44622         * lib/unistr/u16-cpy-alloc.c: New file.
44623         * lib/unistr/u32-cpy-alloc.c: New file.
44624         * lib/unistr/u-cpy-alloc.h: New file.
44625
44626         * modules/unistr/u8-endswith: New file.
44627         * modules/unistr/u16-endswith: New file.
44628         * modules/unistr/u32-endswith: New file.
44629         * lib/unistr/u8-endswith.c: New file.
44630         * lib/unistr/u16-endswith.c: New file.
44631         * lib/unistr/u32-endswith.c: New file.
44632         * lib/unistr/u-endswith.h: New file.
44633
44634         * modules/unistr/u8-mblen: New file.
44635         * modules/unistr/u16-mblen: New file.
44636         * modules/unistr/u32-mblen: New file.
44637         * lib/unistr/u8-mblen.c: New file.
44638         * lib/unistr/u16-mblen.c: New file.
44639         * lib/unistr/u32-mblen.c: New file.
44640
44641         * modules/unistr/u8-mbtouc: New file.
44642         * modules/unistr/u16-mbtouc: New file.
44643         * modules/unistr/u32-mbtouc: New file.
44644         * lib/unistr/u8-mbtouc.c: New file.
44645         * lib/unistr/u16-mbtouc.c: New file.
44646         * lib/unistr/u32-mbtouc.c: New file.
44647
44648         * modules/unistr/u8-mbtouc-safe: New file.
44649         * modules/unistr/u16-mbtouc-safe: New file.
44650         * modules/unistr/u32-mbtouc-safe: New file.
44651         * lib/unistr/u8-mbtouc-safe.c: New file.
44652         * lib/unistr/u16-mbtouc-safe.c: New file.
44653         * lib/unistr/u32-mbtouc-safe.c: New file.
44654
44655         * modules/unistr/u8-move: New file.
44656         * modules/unistr/u16-move: New file.
44657         * modules/unistr/u32-move: New file.
44658         * lib/unistr/u8-move.c: New file.
44659         * lib/unistr/u16-move.c: New file.
44660         * lib/unistr/u32-move.c: New file.
44661         * lib/unistr/u-move.h: New file.
44662
44663         * modules/unistr/u8-next: New file.
44664         * modules/unistr/u16-next: New file.
44665         * modules/unistr/u32-next: New file.
44666         * lib/unistr/u8-next.c: New file.
44667         * lib/unistr/u16-next.c: New file.
44668         * lib/unistr/u32-next.c: New file.
44669
44670         * modules/unistr/u8-prev: New file.
44671         * modules/unistr/u16-prev: New file.
44672         * modules/unistr/u32-prev: New file.
44673         * lib/unistr/u8-prev.c: New file.
44674         * lib/unistr/u16-prev.c: New file.
44675         * lib/unistr/u32-prev.c: New file.
44676
44677         * modules/unistr/u8-set: New file.
44678         * modules/unistr/u16-set: New file.
44679         * modules/unistr/u32-set: New file.
44680         * lib/unistr/u8-set.c: New file.
44681         * lib/unistr/u16-set.c: New file.
44682         * lib/unistr/u32-set.c: New file.
44683         * lib/unistr/u-set.h: New file.
44684
44685         * modules/unistr/u8-startswith: New file.
44686         * modules/unistr/u16-startswith: New file.
44687         * modules/unistr/u32-startswith: New file.
44688         * lib/unistr/u8-startswith.c: New file.
44689         * lib/unistr/u16-startswith.c: New file.
44690         * lib/unistr/u32-startswith.c: New file.
44691         * lib/unistr/u-startswith.h: New file.
44692
44693         * modules/unistr/u8-stpcpy: New file.
44694         * modules/unistr/u16-stpcpy: New file.
44695         * modules/unistr/u32-stpcpy: New file.
44696         * lib/unistr/u8-stpcpy.c: New file.
44697         * lib/unistr/u16-stpcpy.c: New file.
44698         * lib/unistr/u32-stpcpy.c: New file.
44699         * lib/unistr/u-stpcpy.h: New file.
44700
44701         * modules/unistr/u8-stpncpy: New file.
44702         * modules/unistr/u16-stpncpy: New file.
44703         * modules/unistr/u32-stpncpy: New file.
44704         * lib/unistr/u8-stpncpy.c: New file.
44705         * lib/unistr/u16-stpncpy.c: New file.
44706         * lib/unistr/u32-stpncpy.c: New file.
44707         * lib/unistr/u-stpncpy.h: New file.
44708
44709         * modules/unistr/u8-strcat: New file.
44710         * modules/unistr/u16-strcat: New file.
44711         * modules/unistr/u32-strcat: New file.
44712         * lib/unistr/u8-strcat.c: New file.
44713         * lib/unistr/u16-strcat.c: New file.
44714         * lib/unistr/u32-strcat.c: New file.
44715         * lib/unistr/u-strcat.h: New file.
44716
44717         * modules/unistr/u8-strchr: New file.
44718         * modules/unistr/u16-strchr: New file.
44719         * modules/unistr/u32-strchr: New file.
44720         * lib/unistr/u8-strchr.c: New file.
44721         * lib/unistr/u16-strchr.c: New file.
44722         * lib/unistr/u32-strchr.c: New file.
44723
44724         * modules/unistr/u8-strcmp: New file.
44725         * modules/unistr/u16-strcmp: New file.
44726         * modules/unistr/u32-strcmp: New file.
44727         * lib/unistr/u8-strcmp.c: New file.
44728         * lib/unistr/u16-strcmp.c: New file.
44729         * lib/unistr/u32-strcmp.c: New file.
44730
44731         * modules/unistr/u8-strcpy: New file.
44732         * modules/unistr/u16-strcpy: New file.
44733         * modules/unistr/u32-strcpy: New file.
44734         * lib/unistr/u8-strcpy.c: New file.
44735         * lib/unistr/u16-strcpy.c: New file.
44736         * lib/unistr/u32-strcpy.c: New file.
44737         * lib/unistr/u-strcpy.h: New file.
44738
44739         * modules/unistr/u8-strcspn: New file.
44740         * modules/unistr/u16-strcspn: New file.
44741         * modules/unistr/u32-strcspn: New file.
44742         * lib/unistr/u8-strcspn.c: New file.
44743         * lib/unistr/u16-strcspn.c: New file.
44744         * lib/unistr/u32-strcspn.c: New file.
44745         * lib/unistr/u-strcspn.h: New file.
44746
44747         * modules/unistr/u8-strdup: New file.
44748         * modules/unistr/u16-strdup: New file.
44749         * modules/unistr/u32-strdup: New file.
44750         * lib/unistr/u8-strdup.c: New file.
44751         * lib/unistr/u16-strdup.c: New file.
44752         * lib/unistr/u32-strdup.c: New file.
44753         * lib/unistr/u-strdup.h: New file.
44754
44755         * modules/unistr/u8-strlen: New file.
44756         * modules/unistr/u16-strlen: New file.
44757         * modules/unistr/u32-strlen: New file.
44758         * lib/unistr/u8-strlen.c: New file.
44759         * lib/unistr/u16-strlen.c: New file.
44760         * lib/unistr/u32-strlen.c: New file.
44761         * lib/unistr/u-strlen.h: New file.
44762
44763         * modules/unistr/u8-strmblen: New file.
44764         * modules/unistr/u16-strmblen: New file.
44765         * modules/unistr/u32-strmblen: New file.
44766         * lib/unistr/u8-strmblen.c: New file.
44767         * lib/unistr/u16-strmblen.c: New file.
44768         * lib/unistr/u32-strmblen.c: New file.
44769
44770         * modules/unistr/u8-strmbtouc: New file.
44771         * modules/unistr/u16-strmbtouc: New file.
44772         * modules/unistr/u32-strmbtouc: New file.
44773         * lib/unistr/u8-strmbtouc.c: New file.
44774         * lib/unistr/u16-strmbtouc.c: New file.
44775         * lib/unistr/u32-strmbtouc.c: New file.
44776
44777         * modules/unistr/u8-strncat: New file.
44778         * modules/unistr/u16-strncat: New file.
44779         * modules/unistr/u32-strncat: New file.
44780         * lib/unistr/u8-strncat.c: New file.
44781         * lib/unistr/u16-strncat.c: New file.
44782         * lib/unistr/u32-strncat.c: New file.
44783         * lib/unistr/u-strncat.h: New file.
44784
44785         * modules/unistr/u8-strncmp: New file.
44786         * modules/unistr/u16-strncmp: New file.
44787         * modules/unistr/u32-strncmp: New file.
44788         * lib/unistr/u8-strncmp.c: New file.
44789         * lib/unistr/u16-strncmp.c: New file.
44790         * lib/unistr/u32-strncmp.c: New file.
44791
44792         * modules/unistr/u8-strncpy: New file.
44793         * modules/unistr/u16-strncpy: New file.
44794         * modules/unistr/u32-strncpy: New file.
44795         * lib/unistr/u8-strncpy.c: New file.
44796         * lib/unistr/u16-strncpy.c: New file.
44797         * lib/unistr/u32-strncpy.c: New file.
44798         * lib/unistr/u-strncpy.h: New file.
44799
44800         * modules/unistr/u8-strnlen: New file.
44801         * modules/unistr/u16-strnlen: New file.
44802         * modules/unistr/u32-strnlen: New file.
44803         * lib/unistr/u8-strnlen.c: New file.
44804         * lib/unistr/u16-strnlen.c: New file.
44805         * lib/unistr/u32-strnlen.c: New file.
44806         * lib/unistr/u-strnlen.h: New file.
44807
44808         * modules/unistr/u8-strpbrk: New file.
44809         * modules/unistr/u16-strpbrk: New file.
44810         * modules/unistr/u32-strpbrk: New file.
44811         * lib/unistr/u8-strpbrk.c: New file.
44812         * lib/unistr/u16-strpbrk.c: New file.
44813         * lib/unistr/u32-strpbrk.c: New file.
44814         * lib/unistr/u-strpbrk.h: New file.
44815
44816         * modules/unistr/u8-strrchr: New file.
44817         * modules/unistr/u16-strrchr: New file.
44818         * modules/unistr/u32-strrchr: New file.
44819         * lib/unistr/u8-strrchr.c: New file.
44820         * lib/unistr/u16-strrchr.c: New file.
44821         * lib/unistr/u32-strrchr.c: New file.
44822
44823         * modules/unistr/u8-strspn: New file.
44824         * modules/unistr/u16-strspn: New file.
44825         * modules/unistr/u32-strspn: New file.
44826         * lib/unistr/u8-strspn.c: New file.
44827         * lib/unistr/u16-strspn.c: New file.
44828         * lib/unistr/u32-strspn.c: New file.
44829         * lib/unistr/u-strspn.h: New file.
44830
44831         * modules/unistr/u8-strstr: New file.
44832         * modules/unistr/u16-strstr: New file.
44833         * modules/unistr/u32-strstr: New file.
44834         * lib/unistr/u8-strstr.c: New file.
44835         * lib/unistr/u16-strstr.c: New file.
44836         * lib/unistr/u32-strstr.c: New file.
44837         * lib/unistr/u-strstr.h: New file.
44838
44839         * modules/unistr/u8-strtok: New file.
44840         * modules/unistr/u16-strtok: New file.
44841         * modules/unistr/u32-strtok: New file.
44842         * lib/unistr/u8-strtok.c: New file.
44843         * lib/unistr/u16-strtok.c: New file.
44844         * lib/unistr/u32-strtok.c: New file.
44845         * lib/unistr/u-strtok.h: New file.
44846
44847         * modules/unistr/u8-uctomb: New file.
44848         * modules/unistr/u16-uctomb: New file.
44849         * modules/unistr/u32-uctomb: New file.
44850         * lib/unistr/u8-uctomb.c: New file.
44851         * lib/unistr/u16-uctomb.c: New file.
44852         * lib/unistr/u32-uctomb.c: New file.
44853
44854         * MODULES.html.sh (Unicode string functions): Add the new modules.
44855
44856 2007-01-08  Bruno Haible  <bruno@clisp.org>
44857
44858         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
44859         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
44860         subdirectories.
44861
44862 2007-01-08  Karl Berry  <karl@gnu.org>
44863
44864         * doc/error.texi: mention that main() fns must set program_name
44865         when progname is used.
44866
44867 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
44868
44869         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
44870         WCTYPE_H is empty, for the benefit of builds from non-distclean
44871         directories.  Problem reported by Eric Blake in
44872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
44873
44874 2007-01-08  Bruno Haible  <bruno@clisp.org>
44875
44876         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
44877         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
44878         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
44879         PROVIDE_CANONICALIZE_FILENAME_MODE.
44880         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
44881
44882 2007-01-08  Bruno Haible  <bruno@clisp.org>
44883
44884         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
44885         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
44886         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
44887         * lib/fts.c: Likewise.
44888         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
44889
44890 2006-12-25  Bruno Haible  <bruno@clisp.org>
44891
44892         * modules/utf8-ucs4-safe: New file.
44893         * lib/utf8-ucs4-safe.h: New file.
44894         * lib/unistr/utf8-ucs4-safe.c: New file.
44895
44896         * modules/utf16-ucs4-safe: New file.
44897         * lib/utf16-ucs4-safe.h: New file.
44898         * lib/unistr/utf16-ucs4-safe.c: New file.
44899
44900         * MODULES.html.sh (Unicode string functions): Add the new modules.
44901
44902 2007-01-08  Bruno Haible  <bruno@clisp.org>
44903
44904         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
44905         (Depends-on): Add unitypes.
44906         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44907         (u8_mbtouc_aux): Move out to separate file.
44908         (u8_mbtouc): Use ucs4_t, uint8_t types.
44909         * lib/unistr/utf8-ucs4.c: New file.
44910
44911         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
44912         (Depends-on): Add unitypes.
44913         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44914         (u16_mbtouc_aux): Move out to separate file.
44915         (u16_mbtouc): Use ucs4_t, uint16_t types.
44916         * lib/unistr/utf16-ucs4.c: New file.
44917
44918         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
44919         (Depends-on): Add unitypes.
44920         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
44921         (u8_uctomb_aux): Move out to separate file.
44922         (u8_uctomb): Use ucs4_t, uint8_t types.
44923         * lib/unistr/ucs4-utf8.c: New file.
44924
44925         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
44926         (Depends-on): Add unitypes.
44927         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
44928         (u16_uctomb_aux): Move out to separate file.
44929         (u16_uctomb): Use ucs4_t, uint16_t types.
44930         * lib/unistr/ucs4-utf16.c: New file.
44931
44932 2006-12-25  Bruno Haible  <bruno@clisp.org>
44933
44934         * modules/unitypes: New file.
44935         * lib/unitypes.h: New file.
44936         * MODULES.html.sh (func_all_modules): New section "Unicode string
44937         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
44938         this section. Add unitypes.
44939
44940 2007-01-08  Bruno Haible  <bruno@clisp.org>
44941
44942         Avoid variable names that conflict with those from libtool.
44943         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
44944         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
44945         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
44946         library_names_spec to acl_library_names_spec, hardcode_* to
44947         acl_hardcode_*.
44948         Reported by Ralf Wildenhues.
44949
44950 2007-01-08  Bruno Haible  <bruno@clisp.org>
44951
44952         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
44953         definition.
44954         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
44955         definition.
44956         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
44957         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
44958         definition.
44959         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
44960         definition.
44961         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
44962         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
44963         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
44964         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
44965         definition.
44966         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
44967         definition.
44968         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
44969         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
44970         GC_USE_<algorithm>.
44971         * lib/gc-libgcrypt.c: Likewise.
44972         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
44973         * modules/gc-arctwo (configure.ac): Likewise.
44974         * modules/gc-des (configure.ac): Likewise.
44975         * modules/gc-hmac-md5 (configure.ac): Likewise.
44976         * modules/gc-hmac-sha1 (configure.ac): Likewise.
44977         * modules/gc-md2 (configure.ac): Likewise.
44978         * modules/gc-md4 (configure.ac): Likewise.
44979         * modules/gc-md5 (configure.ac): Likewise.
44980         * modules/gc-random (configure.ac): Likewise.
44981         * modules/gc-rijndael (configure.ac): Likewise.
44982         * modules/gc-sha1 (configure.ac): Likewise.
44983
44984 2007-01-08  Bruno Haible  <bruno@clisp.org>
44985
44986         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
44987         macro definition.
44988         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
44989         definition.
44990         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
44991         definition.
44992         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
44993         * modules/fcntl-safer (configure.ac): Likewise.
44994         * modules/fopen-safer (configure.ac): Likewise.
44995         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
44996         GNULIB_FWRITEERROR macro definition.
44997
44998 2007-01-08  Bruno Haible  <bruno@clisp.org>
44999
45000         * m4/gnulib-common.m4: New file.
45001         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45002         (func_get_filelist): Add m4/gnulib-common.m4.
45003
45004 2007-01-08  Bruno Haible  <bruno@clisp.org>
45005
45006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45007         command.
45008
45009 2007-01-08  Jim Meyering  <jim@meyering.net>
45010
45011         Use a more robust test for a "can't happen" condition.
45012         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45013         narrowed the st_size value.  Presuming the "can't happen" condition
45014         is true, that narrowing could conceivably convert an invalid st_size
45015         value into a valid one.  Instead, use a change based on Matthew
45016         Woehlke's original patch.
45017
45018         Slight readability improvement: use an assert-like macro
45019         in place of literal "abort ()" uses.
45020         * lib/fts.c (fts_assert): Define.
45021         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45022         Use this macro instead of a bare 'abort'.
45023
45024 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45025
45026         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45027         simply work around them.
45028         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45029         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45030         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45031         declaring.
45032         Don't bother to define as macros, since the standard doesn't require it.
45033         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45034         longer worry about IRIX 5.3.
45035         (HAVE_WCTYPE_CTMP_BUG): Remove.
45036
45037 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45038
45039         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45040         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45041         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45042         Problems reported by Georg Schwarz for IRIX 5.3.
45043
45044         * gnulib-tool (autoconf_minversion): Take the maximum version number
45045         found, not the minimum.  Problem reported by James Youngman.
45046
45047 2007-01-03  Karl Berry  <karl@gnu.org>
45048
45049         * doc/error.texi: new file, explaining interaction with progname.
45050         * doc/gnulib.texi: include it.  Update copyright.
45051
45052 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45053
45054         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45055         AC_CANONICAL_HOST, to improve autobuild outputs.
45056
45057 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45058             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45059
45060         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45061         sockets, server sockets, and other file descriptors.  Count errors
45062         to compute the return value.  Reorder the code a bit to be easier
45063         to follow.  Don't set event bits that were not requested (except
45064         POLLERR and POLLHUP).
45065
45066 2007-01-01  Bruno Haible  <bruno@clisp.org>
45067
45068         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45069
45070 2007-01-03  Jim Meyering  <jim@meyering.net>
45071
45072         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45073
45074 2007-01-02  Bruno Haible  <bruno@clisp.org>
45075
45076         * modules/settime (Include): Require timespec.h.
45077         * modules/nanosleep (Include): Likewise.
45078
45079 2007-01-01  Bruno Haible  <bruno@clisp.org>
45080
45081         * gnulib-tool (func_emit_copyright_notice): Bump year.
45082         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45083
45084 2007-01-01  Bruno Haible  <bruno@clisp.org>
45085
45086         Improve support for OpenBSD.
45087         * build-aux/config.rpath (libname_spec): Export.
45088         (library_names_spec): New variable. Export.
45089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45090         library_names_spec from the config.rpath output. Locate shared library
45091         through the name pattern in library_names_spec.
45092
45093 2007-01-01  Eric Blake  <ebb9@byu.net>
45094
45095         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45096
45097 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45098
45099         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45100         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45101         assume the C locale, and avoid an "eval" that could cause trouble.
45102         Problem with SORT reported by Bob Proulx.
45103
45104         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45105         Define.  Trivial patch from Henning Nielsen Lund, originally
45106         sent to bug-grep@gnu.org today.
45107
45108 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45109
45110         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45111         struct stat.  Problem reported by Henning Nielsen Lund.
45112         * lib/acl.c: Include acl.h first, to check interface.  Don't
45113         bother to include sys/types.h and sys/stat.h again.
45114
45115 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45116
45117         Import the following change from libc; problem reported by
45118         Sven Verdoolaege.
45119
45120         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45121
45122         [BZ #1373]
45123         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45124
45125 2006-12-28  Jim Meyering  <jim@meyering.net>
45126
45127         * build-aux/announce-gen: Do not assume that the package
45128         builds any of tar.gz, tar.bz2, and .xdelta files.
45129         Suggestion from Simon Josefsson.
45130
45131 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45132
45133         * modules/announce-gen: New file.
45134
45135 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45136
45137         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45138         handles its gotchas now.
45139         * lib/mbswidth.c: Likewise.
45140         * lib/wcwidth.h: Likewise.
45141         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45142         and iswcntrl; the wctype module does this stuff now.
45143         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45145         * modules/mbchar (Depends-on): Add wctype.
45146         * modules/mbswidth (Depends-on): Likewise.
45147         * modules/wcwidth (Depends-on): Likewise.
45148
45149 2006-12-27  Eric Blake  <ebb9@byu.net>
45150
45151         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45152         module uses more than what <wctype.h> is required to provide.
45153
45154 2006-12-26  Eric Blake  <ebb9@byu.net>
45155
45156         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45157
45158 2006-12-26  Eric Blake  <ebb9@byu.net>
45159
45160         * modules/absolute-header: New module.
45161         * modules/fcntl (Depends-on): Depend on it.
45162         * modules/inttypes (Depends-on): Likewise.
45163         * modules/stdint (Depends-on): Likewise.
45164         * modules/sys_stat (Depends-on): Likewise.
45165         * modules/wctype (Depends-on): Likewise.
45166         * MODULES.html.sh (Support for building libraries and
45167         executables): Document it.
45168
45169 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45170
45171         * gnulib-tool (SED): Remove, undoing previous change.
45172         The problem was that it broke coreutils on Solaris, because
45173         "sed --posix" leaked into a makefile.
45174         (sed): New alias, if 'alias' and GNU sed.
45175
45176 2006-12-24  Jim Meyering  <jim@meyering.net>
45177
45178         Work around an fchownat bug in glibc-2.4:
45179         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45180         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45181         in spite of the -P option.
45182         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45183         New macros.
45184         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45185         * modules/openat (Files): Add lib/fchownat.c.
45186         * lib/openat.c (fchownat): Don't define here.  Move to...
45187         * lib/fchownat.c: ...this new file.
45188
45189 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45190
45191         Fix bug reported by Bruno Haible in
45192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45193         where quotearg.c didn't compile on Mac OS X 10.2 because it
45194         lacks <wchar.h> and wint_t.
45195         * lib/wctype_.h (__wctype_wint_t): New type.
45196         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45197         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45198         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45199         Arg is now of type __wctype_wint_t, not wint_t.
45200         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45201         substitute HAVE_WINT_T.
45202         * modules/wctype (Files): Add m4/wint_t.m4.
45203         (wctype.h): Substitute HAVE_WINT_T.
45204
45205 2006-12-23  Bruno Haible  <bruno@clisp.org>
45206
45207         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45208
45209 2006-12-23  Bruno Haible  <bruno@clisp.org>
45210
45211         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45212         S_ISLNK.
45213         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45214         mingw.
45215
45216 2006-12-22  Bruno Haible  <bruno@clisp.org>
45217
45218         * lib/copy-file.c: Include acl.h.
45219         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45220         Close the file descriptors only after being done with copy_acl.
45221         * modules/copy-file (Depends-on): Add acl.
45222
45223 2006-12-22  Bruno Haible  <bruno@clisp.org>
45224
45225         * gnulib-tool (SED): New variable.
45226         Use $SED instead of sed everywhere.
45227
45228 2006-12-22  Bruno Haible  <bruno@clisp.org>
45229
45230         * modules/no-c++: New file.
45231         * m4/no-c++.m4: New file.
45232         * MODULES.html.sh (Support for building libraries and executables):
45233         Add no-c++.
45234
45235 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45236
45237         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45238         Include <limits.h>, and use its INT_MAX to rewrite the
45239         j loop so that it does not overflow 'int'.  Problem reported by
45240         Ralf Wildenhues in
45241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45242         Play it safe by shifting left by 1 rather than multiplying by 2,
45243         as GCC is less likely to optimize this away when the value
45244         is signed (when it assumes overflow leads to undefined behavior).
45245         Also, don't assume time_t uses two's complement.
45246
45247 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45248
45249         * MODULES.html.sh: New module wctype.
45250         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45251         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45252         <wctype.h>, since the new wctype module should fix this.
45253         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45254         the wctype module should arrange for it.
45255         * lib/regex_internal.h: Likewise.
45256         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45257         since the wctype module should handle this now.
45258         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45259         * modules/fnmatch (Depends-on): Add wctype.
45260         * modules/quotearg (Depends-on): Likewise.
45261         * modules/regex (Depends-on): Likewise.
45262
45263 2006-12-19  Bruno Haible  <bruno@clisp.org>
45264
45265         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45266         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45267
45268 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45269
45270         * modules/savewd (Depends-on): Fix dependency on fcntl.
45271
45272 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45273
45274         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45275         conforms to C99, rather than relying on the user's environment
45276         setting of STDINT_H.
45277
45278 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45279         and Eric Blake  <ebb9@byu.net>
45280
45281         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45282         This is more consistent with the other defines here.
45283         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45284         Port to z/OS.  Problem reported by Paul Gilmartin.
45285         Change local vars to use gl_ prefix rather than ac_.
45286         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45287         with other defines.
45288         * modules/double-slash-root: New module.
45289         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45290         (Depends-on): Add double-slash-root.
45291         * MODULES.html.sh (File system functions): Mention new module.
45292
45293 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45294
45295         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45296         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45297         This is for the benefit of gzip, which doesn't do i18n.
45298
45299 2006-12-12  Jim Meyering  <jim@meyering.net>
45300
45301         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45302         Reported by Andreas Schwab <schwab@suse.de>.
45303
45304 2006-12-12  Bruno Haible  <bruno@clisp.org>
45305
45306         Merge these changes.
45307         2006-09-05  Bruno Haible  <bruno@clisp.org>
45308         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45309         iconv_alloc succeeded.
45310         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45311         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45312         test for " && dest " at the end - dest is always != NULL there. Call
45313         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45314         with 2xNULL arguments, also to flush the state storage. Handle the
45315         IRIX iconv behaviour. Realloc the final result, to throw away unused
45316         memory.
45317
45318 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45319
45320         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45321         and fchmodat unconditionally, since glibc 2.4 has them.
45322         Problem reported by Arkadiusz Miskiewicz.
45323
45324 2006-12-10  Bruno Haible  <bruno@clisp.org>
45325
45326         * gnulib-tool (func_import): Show the include files only for those
45327         modules that are copied and specified.
45328         Reported by Karl Berry.
45329
45330 2006-12-08  Jim Meyering  <jim@meyering.net>
45331
45332         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45333         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45334
45335         * build-aux/announce-gen: Add two new options, both optional:
45336         --bootstrap-tools=TOOL_LIST
45337               a comma-separated list of tools, e.g.,
45338               autoconf,automake,bison,gnulib
45339         --gnulib-snapshot-date=DATE
45340               if gnulib is in the bootstrap tool list,
45341               then report this as the snapshot date.
45342               If not specified, use the current date/time.
45343               If you specify a date here, be sure it's UTC.
45344
45345 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45346
45347         * tests/test-argp-2.sh: Fix test to match actual output.
45348         (func_compare): Fix sed script to be portable.
45349
45350 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45351
45352         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45353         workaround for this case.  It is not autoconfigured now; offhand
45354         it's hard to see how to autoconfigure it.
45355
45356 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45357
45358         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45359         a directory that is about to be chowned.  Such a directory's
45360         initial file permissions should permit the owner only and this
45361         should not be changed until after the chown, since the group and
45362         other bits would be incorrect if they granted permission before
45363         the chown.
45364
45365         Fix porting problem for iswctype reported by Georg Schwarz in:
45366         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45367         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45368         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45369         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45371
45372 2006-12-03  Jim Meyering  <jim@meyering.net>
45373
45374         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45375         p->fts_statp may not yet be defined.
45376         (fts_read): Instead, set it in the caller, once p->fts_statp is
45377         sure to be defined, and corresponds to a top-level directory.
45378         This bug made du -x fail.  Here's the coreutils test case:
45379         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45380         Reported by Mike Frysinger.
45381
45382 2006-12-01  Jim Meyering  <jim@meyering.net>
45383
45384         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45385         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45386         Reported by Simon Josefsson.
45387
45388 2006-11-30  Jim Meyering  <jim@meyering.net>
45389
45390         * m4/warning.m4: Use the all-permissive copyright notice
45391         recommended by RMS (rather than LGPL).
45392         * m4/vararrays.m4: Likewise.
45393         * m4/flexmember.m4: Likewise.
45394
45395 2006-11-29  Bruno Haible  <bruno@clisp.org>
45396
45397         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45398         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45399         using +=.
45400         Reported by Simon Josefsson <simon@josefsson.org>.
45401
45402 2006-11-28  James Youngman <jay@gnu.org>
45403
45404         * README: Advise users that they might find the bug-gnulib@gnu.org
45405         and autotools-announce@gnu.org mailing lists useful.
45406
45407 2006-11-28  Bruno Haible  <bruno@clisp.org>
45408
45409         * m4/ptrdiff_max.m4: Remove file.
45410
45411 2006-11-21  Bruno Haible  <bruno@clisp.org>
45412
45413         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45414         _AC_COMPUTE_INT.
45415         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45416         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45417         _AC_COMPUTE_INT.
45418         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45419         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45420         _AC_COMPUTE_INT.
45421         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45422
45423 2006-11-28  Jim Meyering  <jim@meyering.net>
45424
45425         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45426         warning from "gcc -Wshadow" about shadowing the builtin.
45427
45428 2006-11-27  Bruno Haible  <bruno@clisp.org>
45429
45430         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45431         _AC_COMPUTE_INT.
45432         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45433
45434 2006-11-27  Bruno Haible  <bruno@clisp.org>
45435             Paul Eggert  <eggert@cs.ucla.edu>
45436
45437         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45438
45439 2006-11-26  Bruno Haible  <bruno@clisp.org>
45440
45441         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45442         noinst_LTLIBRARIES.
45443
45444 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45445             Bruno Haible  <bruno@clisp.org>
45446
45447         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45448         if compiling with "gcc -ansi".
45449
45450 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45451
45452         Fix some incompatibilities with gcc -ansi -pedantic.
45453         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45454         if compiling pedantically with GCC, unless it's C99 or later.
45455         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45456         it mishandles gcc -ansi -pedantic as well.
45457         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45458         if gcc -pedantic.
45459         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45460         initializers for struct if -pedantic, unless it's C99 or later.
45461
45462 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45463
45464         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45465         Don't close an fd more than once. Identical atimes indicate
45466         success, not failure.
45467
45468 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45469
45470         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45471
45472 2006-11-23  Jim Meyering  <jim@meyering.net>
45473
45474         * build-aux/announce-gen: New file.  From coreutils.
45475
45476 2006-11-22  Jim Meyering  <jim@meyering.net>
45477
45478         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45479         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45480         (fts_read): Use a temporary to narrow the overused st_size member
45481         before using it in a switch statement.  Reported by Matthew Woehlke.
45482
45483         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45484         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45485
45486 2006-11-20  Bruno Haible  <bruno@clisp.org>
45487
45488         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45489         changequote instead of pairs of brackets.
45490         Reported by Andreas Schwab <schwab@suse.de>.
45491
45492 2006-11-21  Jim Meyering  <jim@meyering.net>
45493
45494         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45495         so as to remain compatible with older compilers.
45496         Patch from Michael Deutschmann.
45497
45498 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45499
45500         * MODULES.html.sh (File system functions): Add openat.
45501
45502         * lib/openat.h (rpl_fstatat): New macro, if
45503         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45504         (fstatat): Define to rpl_fstatat under the same conditions,
45505         unless COMPILING_FSTATAT.
45506         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45507         seems to have the bug.
45508         * lib/fstatat.c: New file.
45509         * modules/openat (Files): Add it.
45510
45511 2006-11-20  Bruno Haible  <bruno@clisp.org>
45512
45513         * Makefile: New file.
45514
45515 2006-11-20  Jim Meyering  <jim@meyering.net>
45516
45517         The beginnings of syntax-related checks for gnulib.
45518         * lib/Makefile: New file.
45519         * lib/t-idcache: New script.  Ensure that the two halves of
45520         idcache.c stay in sync.
45521
45522         * lib/idcache.c: Adjust comments in user- and group- portions to
45523         be more accurate, and to be consistent with one another.
45524
45525 2006-11-20  Jim Meyering  <jim@meyering.net>
45526
45527         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45528         continue using the flexible array member (thus, this module performs
45529         half as many malloc calls), with the addition that...
45530         (getgroup, getuser): Consistently record a non-match via an empty
45531         "name" string, and map an empty string match to a NULL return value.
45532         * modules/idcache (Depends-on): Re-add flexmember.
45533
45534         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45535         (getuidbyname, getgroup, getgidbyname): Likewise.
45536
45537         Use cleaner syntax: NULL rather than 0.
45538         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45539
45540 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45541
45542         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45543         It mishandled the case where the group was missing.
45544         Problem reported by Greg Schafer.
45545         * modules/idcache: Likewise.
45546
45547 2006-11-18  Jim Meyering  <jim@meyering.net>
45548
45549         * check-module (%exempt_header): Add exception for some
45550         conditionally-included headers.
45551
45552         * modules/i-ring (Depends-on): Add verify.
45553         (License): Change to LGPL.
45554
45555 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45556
45557         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
45558         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
45559         and inttostr.h.  Use snprintf rather than uinttostr, so that
45560         LGPLed code doesn't depend on GPLed.
45561
45562 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45563
45564         * modules/inline (License): Change from GPL to LGPL.
45565
45566 2006-11-17  Jim Meyering  <jim@meyering.net>
45567
45568         * modules/d-type (License): Switch to LGPL.
45569
45570 2006-11-15  Bruno Haible  <bruno@clisp.org>
45571
45572         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
45573
45574 2006-11-15  Eric Blake  <ebb9@byu.net>
45575
45576         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
45577         the module dependency.
45578
45579 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45580             Bruno Haible  <bruno@clisp.org>
45581
45582         * gnulib-tool (func_create_testdir): Add license consistency check.
45583
45584 2006-11-15  Eric Blake  <ebb9@byu.net>
45585
45586         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
45587         random "(cached)" in configure output.
45588
45589 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45590
45591         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
45592         test for conforming inttypes.h is both announced and cached.
45593
45594         * MODULES.html.sh (seen_modules, seen_files): New variables.
45595         (func_module): Rewrite to use a few less gnulib-tool and sed
45596         invocations.  Avoid a couple of quadratic algorithms for ...
45597         (missed_modules, missed_files): ... these, with ...
45598         (func_append, func_tmpdir): ... these new functions, from
45599         gnulib-tool.  Analogously, install traps for cleanup.
45600
45601         * tests/test-gc.c (main): Remove unused variables.
45602         * tests/test-read-file.c: Include stdlib.h, for 'free'.
45603
45604 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
45605
45606         * modules/inttostr (License): Change to LGPL.
45607
45608 2006-11-14  Eric Blake  <ebb9@byu.net>
45609
45610         * modules/tempname (License): Change to LGPL.
45611
45612 2006-11-14  Eric Blake  <ebb9@byu.net>
45613
45614         * doc/functions.texi (Function Portability): *printf functions on
45615         Cygwin now understand all POSIX size specifiers.
45616
45617 2006-11-14  Bruno Haible  <bruno@clisp.org>
45618
45619         * modules/c-ctype (License): Change to LGPL.
45620
45621 2006-11-12  Bruno Haible  <bruno@clisp.org>
45622
45623         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45624         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
45625         for GNOME libraries, for which the include files are installed in
45626         subdirectories of $prefix/include.
45627
45628 2006-11-12  Bruno Haible  <bruno@clisp.org>
45629
45630         * m4/lib-link.m4: Require at least autoconf-2.54.
45631         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
45632         name to underscores for the --with option.
45633
45634 2006-11-13  Bruno Haible  <bruno@clisp.org>
45635
45636         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
45637         the tests directory.
45638         Reported by Ralf Wildenhues.
45639
45640 2006-11-13  Bruno Haible  <bruno@clisp.org>
45641
45642         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
45643         (func_emit_initmacro_end): Undo the override here.
45644         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
45645         Works around the famous automake error in coreutils.
45646
45647 2006-11-13  Eric Blake  <ebb9@byu.net>
45648
45649         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
45650         element, not its node.
45651
45652 2006-11-12  Bruno Haible  <bruno@clisp.org>
45653
45654         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
45655         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
45656
45657 2006-11-12  Bruno Haible  <bruno@clisp.org>
45658
45659         * gnulib-tool: New option --local-symlink.
45660         (func_usage): Document it.
45661         (lsymbolic): New variable.
45662         (func_import, func_create_testdir): If --symlink was not specified,
45663         test whether --local-symlink was specified and the file comes from
45664         the local_gnulib_dir.
45665
45666 2006-11-12  Bruno Haible  <bruno@clisp.org>
45667
45668         * gnulib-tool (func_ln): New function.
45669         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
45670
45671 2006-11-12  Bruno Haible  <bruno@clisp.org>
45672
45673         Finish support for source files in subdirectories.
45674         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
45675         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
45676         AUTOMAKE_OPTIONS.
45677         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
45678
45679 2006-11-12  Bruno Haible  <bruno@clisp.org>
45680
45681         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45682         EXTRA_lib_SOURCES augmentation.
45683         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
45684
45685 2006-11-12  Jim Meyering  <jim@meyering.net>
45686
45687         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
45688         file descriptors.  This also averts a failure on systems with
45689         native openat support when a traversed directory lacks "x" access.
45690         * lib/fts_.h: Include "i-ring.h"
45691         (struct FTS) [fts_fd_ring]: New member.
45692         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
45693         (FCHDIR): Add parentheses.
45694         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
45695         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
45696         When descending, rather than simply closing the previous
45697         fts_cwd_fd value, push that file descriptor onto the ring.
45698         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
45699         (fts_open): Initialize the new fd_ring member.
45700         (fts_close): Clear the ring.
45701         (fts_safe_changedir): When possible, use our new fd_ring to skip
45702         the diropen and fstat and dev/ino comparison that would normally
45703         accompany a virtual `chdir ("..")'.
45704
45705         * modules/fts (Depends-on): Add i-ring.
45706         * modules/i-ring: New module.
45707         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
45708         * m4/i-ring.m4: New file.
45709
45710 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45711
45712         * gnulib-tool (func_create_testdir): Fix replacement of
45713         `build-aux' in configure.ac.  Run autotools in gltests
45714         subdirectory.
45715         (func_create_testdir, func_create_megatestdir, test): There is
45716         no need for '--force' in most autotool invocations in a new
45717         tree.  Actually fail the whole test if any of the tools, or the
45718         configure or make stages fail.
45719
45720         Sync from Automake.
45721         * build-aux/gnupload: Revert last change.  Add pointer to upload
45722         instructions of the GNU Maintenance Instructions.
45723         Suggestion by Karl Berry.
45724
45725 2006-11-10  Jim Meyering  <jim@meyering.net>
45726
45727         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
45728
45729 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45730
45731         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
45732         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
45733         (bind_textdomain_codeset) [! ENABLE_NLS]:
45734         Evaluate all the arguments.  That way, callers get compatible behavior
45735         if the arguments have side effects.  Also, it avoids some GCC
45736         diagnostics in some cases; Joel E. Denny reported problems when Bison
45737         was configured with --enable-gcc-warnigs.
45738
45739 2006-11-10  Jim Meyering  <jim@meyering.net>
45740
45741         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
45742         relevant options in CFLAGS (like -O, -fno-inline) are taken into
45743         account.
45744
45745 2006-11-10  Jim Meyering  <jim@meyering.net>
45746
45747         * modules/inline: New file/module.
45748         * modules/xalloc (Files): Remove m4/inline.m4.
45749         (Depends-on): Add inline, instead.
45750         * modules/oset: Likewise.
45751         * modules/list: Likewise.
45752
45753 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45754
45755         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
45756         Problem reported by Matthew Woehlke.
45757
45758 2006-11-09  Bruno Haible  <bruno@clisp.org>
45759
45760         * lib/tempname.c (gen_tempname): Remove variant that invokes
45761         __gen_tempname.
45762         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
45763         __gen_tempname.
45764
45765 2006-11-08  Bruno Haible  <bruno@clisp.org>
45766
45767         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
45768         to 'yes' instead of 'cross-compiling'.
45769
45770 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
45771
45772         * lib/quotearg.h (quotearg_free): New decl.
45773         * lib/quotearg.c (quotearg_free): New function.
45774         (slot0, nslots, slotvec0, slotvec):
45775         Now file-scope so that quotearg_free can get at them.
45776
45777 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45778
45779         Sync from Automake.
45780         * build-aux/gnupload: Add missing 'gnu' to example URL.
45781         Report by Karl Berry.
45782
45783 2006-11-08  Bruno Haible  <bruno@clisp.org>
45784
45785         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
45786         Suggested by Paul Eggert.
45787
45788 2006-11-08  Jim Meyering  <jim@meyering.net>
45789
45790         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
45791         It's already included if !_LIBC.
45792         (fts_safe_changedir): Add a comment.
45793
45794 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45795
45796         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
45797         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
45798         Matthew Woehlke.
45799
45800         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
45801         definitions up, to avoid colliding with change below.
45802         (static_inline) [HAVE_INLINE]: New macro.
45803         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
45804         Provide extern decls when !HAVE_INLINE.  Do not define unless
45805         static_inline is defined, either by us or by xmalloc.c.  Use
45806         static_inline rather than static inline.
45807         (XCALLOC): Optimize sizeof(T) = 1 case.
45808         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
45809
45810 2006-11-07  Bruno Haible  <bruno@clisp.org>
45811
45812         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
45813         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
45814         AC_C_INLINE.
45815         * modules/xalloc (Files): Add m4/inline.m4.
45816
45817 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45818
45819         * README: Fix typo.
45820         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
45821         (Miscellanous Notes): ...from this.
45822
45823 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45824
45825         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
45826         Mention that offsetof should be used instead of sizeof.
45827         From Bruno Haible.
45828
45829 2006-11-07  Bruno Haible  <bruno@clisp.org>
45830
45831         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
45832
45833 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45834
45835         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45836         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
45837         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45838         (gl_tree_add_before, gl_tree_add_after):
45839         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
45840         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
45841         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
45842         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
45843         (gl_linked_add_after, gl_linked_add_at): Likewise.
45844         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
45845         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45846         (gl_tree_add_before, gl_tree_add_after): Likewise.
45847         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
45848         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
45849         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
45850
45851 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45852
45853         * lib/gl_oset.h: Use C comment style, not C++ comment style.
45854
45855 2006-11-06  Bruno Haible  <bruno@clisp.org>
45856
45857         * m4/inline.m4: New file.
45858         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
45859         * modules/list (Files): Add m4/inline.m4.
45860         * modules/oset (Files): Likewise.
45861
45862 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45863
45864         * lib/idcache.c: Include <stddef.h>, for offsetof.
45865         (struct userid.name): Change from char * to a flexible array member.
45866         All uses changed.
45867         * modules/idcache (Depends-on): Add flexmember.
45868
45869         * MODULES.html.sh (Core language properties): New module flexmember.
45870         * modules/flexmember, m4/flexmember.m4: New files.
45871
45872         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
45873         inline functions that are identical with the old xnmalloc_inline,
45874         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
45875         that we can avoid some unnecessary integer multiplications and
45876         divisions in the common case where the element size is known at
45877         compile time.
45878         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
45879         needed.
45880         (xnboundedmalloc): Remove.
45881         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
45882         arguments, for consistency with rest of this header.
45883         (xcharalloc): Rewrite using XNMALLOC.
45884         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
45885         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
45886         versions have been moved to lib/xalloc.h and renamed to be the
45887         non-*_inline versions.
45888         (xmalloc, xrealloc): Implement without reference to the xnmalloc
45889         and xnrealloc functions, since those functions are now inline and
45890         now call us.
45891         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
45892         renaming described above.
45893         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
45894         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
45895         captures the dependency in AC_C_INLINE.
45896
45897         New module canonicalize-lgpl, proposed by Charles Wilson in
45898         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
45899         with a few small changes afterwards.
45900         * MODULES.html.sh (File system functions): New module
45901         canonicalize-lgpl.
45902         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
45903         and canonicalize_file_name.
45904         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
45905         * modules/canonicalize-lgpl: New files.
45906
45907 2006-11-05  Bruno Haible  <bruno@clisp.org>
45908
45909         * gnulib-tool (func_import, func_create_testdir): Create directories
45910         also for files in subdirectories of lib/.
45911
45912 2006-11-05  Bruno Haible  <bruno@clisp.org>
45913
45914         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
45915         ANSI C compliant.
45916
45917 2006-11-03  Bruno Haible  <bruno@clisp.org>
45918
45919         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45920         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
45921         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
45922         (xnboundedmalloc): New inline function.
45923         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
45924         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
45925         xmalloc.
45926         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
45927         xmalloc.
45928         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
45929         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
45930         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
45931         xmalloc.
45932         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45933         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
45934         xmalloc.
45935         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
45936         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45937         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
45938         xmalloc.
45939         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45940         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
45941         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45942         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
45943         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
45944         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
45945         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
45946
45947 2006-11-03  Bruno Haible  <bruno@clisp.org>
45948
45949         * lib/c-ctype.h [C++]: Define functions without name mangling.
45950         * lib/fwriteerror.h [C++]: Likewise.
45951         * lib/gcd.h [C++]: Likewise.
45952         * lib/linebreak.h [C++]: Likewise.
45953
45954 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
45955
45956         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
45957         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
45958         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
45959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45960         Check for functions and headers just once.
45961         Check for declaration of canonicalize_file_name.
45962         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
45963
45964 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45965
45966         * gnulib-tool (func_import): Fix typo in actioncmd.
45967
45968 2006-11-02  Bruno Haible  <bruno@clisp.org>
45969
45970         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
45971         newline sequence in the Makefile.am snippet as a space, like "make"
45972         does.
45973         Reported by Roger Persson <perrog@gmail.com>.
45974
45975 2006-11-01  Bruno Haible  <bruno@clisp.org>
45976
45977         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
45978         already declared in <string.h>.
45979         * lib/strcase.h (strncasecmp): Don't declare it if yes.
45980
45981 2006-11-01  Bruno Haible  <bruno@clisp.org>
45982
45983         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
45984         * lib/strcase.h: Include <string.h>.
45985         (strcasecmp): Define to rpl_strcasecmp here.
45986
45987 2006-11-01  Bruno Haible  <bruno@clisp.org>
45988
45989         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
45990
45991 2006-11-01  Eric Blake  <ebb9@byu.net>
45992
45993         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
45994
45995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
45996
45997 2006-10-29  Bruno Haible  <bruno@clisp.org>
45998
45999         Make it compile in C++ mode.
46000         * lib/full-write.c (full_rw): Add a cast.
46001
46002 2006-11-01  Bruno Haible  <bruno@clisp.org>
46003
46004         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46005         be POSIX compliant.
46006         Reported by Roger Persson <perrog@gmail.com>.
46007
46008 2006-11-01  Eric Blake  <ebb9@byu.net>
46009
46010         * lib/getopt_.h: Fix comments.
46011
46012 2006-10-31  Eric Blake  <ebb9@byu.net>
46013
46014         * modules/tmpdir (Depends-on): Add sys_stat.
46015         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46016         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46017         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46018         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46019         tempname.
46020
46021 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46022
46023         Avoid some C++ diagnostics reported by Bruno Haible.
46024         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46025         xmalloc.
46026         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46027         (struct slotvec): Move to top level.
46028         (quotearg_n_options): Rewrite to avoid xmalloc.
46029         * lib/xalloc.h (xcharalloc): New function.
46030         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46031         [defined __cplusplus]: Add function template that provides result
46032         type propagation.  This part of the change is from Bruno Haible.
46033
46034 2006-10-29  Bruno Haible  <bruno@clisp.org>
46035
46036         Make it compile in C++ mode.
46037         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46038         * lib/strnlen1.c (strnlen1): Cast memchr result.
46039         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46040         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46041         (create_temp_dir): Rename local variable 'template'.
46042         (compile_csharp_using_sscli): Add cast.
46043         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46044         * lib/findprog.c (find_in_path): Likewise.
46045         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46046         * lib/wait-process.c (register_slave_subprocess): Likewise.
46047
46048 2006-10-22  Bruno Haible  <bruno@clisp.org>
46049
46050         * modules/tsearch: New file.
46051         * lib/tsearch.h: New file.
46052         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46053         * m4/tsearch.m4: New file.
46054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46055
46056 2006-10-29  Eric Blake  <ebb9@byu.net>
46057
46058         * lib/arcfour.c: Assume config.h.
46059         * lib/arctwo.c: Likewise.
46060         * lib/base64.c: Likewise.
46061         * lib/check-version.c: Likewise.
46062         * lib/crc.c: Likewise.
46063         * lib/des.c: Likewise.
46064         * lib/gc-gnulib.c: Likewise.
46065         * lib/gc-libgcrypt.c: Likewise.
46066         * lib/gc-pbkdf2-sha1.c: Likewise.
46067         * lib/getaddrinfo.c: Likewise.
46068         * lib/getdelim.c: Likewise.
46069         * lib/getline.c: Likewise.
46070         * lib/hmac-md5.c: Likewise.
46071         * lib/hmac-sha1.c: Likewise.
46072         * lib/iconvme.c: Likewise.
46073         * lib/md2.c: Likewise.
46074         * lib/md4.c: Likewise.
46075         * lib/memxor.c: Likewise.
46076         * lib/read-file.c: Likewise.
46077         * lib/readline.c: Likewise.
46078         * lib/rijndael-alg-fst.c: Likewise.
46079         * lib/rijndael-api-fst.c: Likewise.
46080         * lib/xgetdomainname.c: Likewise.
46081
46082 2006-10-28  Eric Blake  <ebb9@byu.net>
46083
46084         * lib/xstrndup.c: Assume config.h.
46085
46086 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46087
46088         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46089         stat-macros.h is now for our own macros, whereas stat_h is for
46090         macros in the <sys/stat.h> name space.
46091         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46092         (STAT_MACROS_H): Remove.
46093         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46094         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46095         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46096         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46097         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46098         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46099         Move these macros to ...
46100         * lib/stat_.h: here.  Don't include stat-macros.h.
46101         * lib/canonicalize.c: Don't include stat-macros.h.
46102         * lib/chown.c: Likewise.
46103         * lib/euidaccess.c: Likewise.
46104         * lib/file-type.c: Likewise.
46105         * lib/filemode.c: Likewise.
46106         * lib/glob.c: Likewise.
46107         * lib/isapipe.c: Likewise.
46108         * lib/lchown.c: Likewise.
46109         * lib/lstat.c: Likewise.
46110         * lib/mkdir-p.c: Likewise.
46111         * lib/rmdir.c: Likewise.
46112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46114         unless mkdir isn't declared, to speed up 'configure'.
46115         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46116         would define all the S_* symbols.
46117         * modules/canonicalize (Depends-on):
46118         Depend on sys_stat, not stat-macros.
46119         * modules/chown: Likewise.
46120         * modules/euidaccess: Likewise.
46121         * modules/filemode: Likewise.
46122         * modules/file-type: Likewise.
46123         * modules/glob: Likewise.
46124         * modules/isapipe: Likewise.
46125         * modules/lchown: Likewise.
46126         * modules/lstat: Likewise.
46127         * modules/mkancesdirs: Likewise.
46128         * modules/rmdir: Likewise.
46129         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46130         * modules/modechange: Likewise.
46131         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46132         (configure.ac): Remove gl_STAT_MACROS.
46133         * modules/sys_stat (Depends-on): Remove stat-macros.
46134
46135 2006-10-27  Bruno Haible  <bruno@clisp.org>
46136
46137         * m4/signed.m4: Remove file.
46138         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46139         invocation.
46140         * modules/vasnprintf (Files): Remove m4/signed.m4.
46141
46142 2006-10-27  Bruno Haible  <bruno@clisp.org>
46143
46144         Update to GNU gettext 0.16.
46145         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46146         m4/inttypes-h.m4, m4/signed.m4.
46147         * m4/gettext.m4: Update to GNU gettext 0.16.
46148         * m4/intl.m4: New file, from GNU gettext.
46149         * m4/intldir.m4: New file, from GNU gettext.
46150         * config/srclist.txt: Update
46151
46152 2006-10-27  Eric Blake  <ebb9@byu.net>
46153
46154         * MODULES.html.sh: Document tempname.
46155         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46156         dependencies.
46157         (Files): Move lib/tempname.c...
46158         * modules/tempname: ...to this new module.
46159         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46160         (gl_PREREQ_TEMPNAME): Move...
46161         * m4/tempname.m4: ...to this new file.
46162         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46163         * modules/sys_stat (Depends-on): Add stat-macros.
46164         * lib/stat_.h (includes): Pick up stat macros.
46165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46166         if stat macros are broken.
46167         * lib/tempname.c (includes): No need to include "stat-macros.h".
46168         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46169         (direxists, __path_search) [!_LIBC]: Don't compile these in
46170         gnulib; the tmpdir module covers that.
46171         * lib/tempname.h: New file.
46172
46173 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46174
46175         * COPYING: Explain how gnulib-tool converts licence headers.
46176         Almost all wording by Eric Blake.
46177
46178 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46179
46180         * lib/mbchar.h (is_basic_table): Make read-only.
46181         * lib/mbchar.c (is_basic_table): Likewise.
46182         Reported by John Darrington.
46183
46184 2006-10-25  Bruno Haible  <bruno@clisp.org>
46185
46186         * lib/progname.h (set_program_name): Undefine before defining.
46187
46188 2006-10-25  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46191         false for non-gcc C++ compilers.
46192         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46193
46194 2006-10-24  Bruno Haible  <bruno@clisp.org>
46195
46196         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46197         iconv implementations like Irix iconv.
46198
46199 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46200
46201         * modules/vararrays: New file.
46202         * m4/vararrays.m4: New file, taken from diffutils.
46203         * MODULES.html.sh: New module vararrays.
46204
46205 2006-10-24  Karl Berry  <karl@gnu.org>
46206
46207         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46208         Don't call GNU Unix.
46209
46210 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46211
46212         * users.txt: Add Libtool.
46213
46214         Sync from Libtool:
46215
46216         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46217
46218         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46219         to gnulib's policy of including config.h unconditionally.
46220
46221 2006-10-24  Bruno Haible  <bruno@clisp.org>
46222
46223         * modules/wcwidth (Files): Add m4/wint_t.m4.
46224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46225         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46226
46227 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46228
46229         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46230         to pacify GCC with some -W flags enabled.  Problem reported by
46231         Bruno Haible.
46232
46233 2006-10-24  Jim Meyering  <jim@meyering.net>
46234
46235         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46236         Reported by Karl Berry.
46237
46238 2006-10-23  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46241
46242 2006-10-24  Bruno Haible  <bruno@clisp.org>
46243
46244         * lib/gl_list.h: Use C comment style, not C++ comment style.
46245
46246 2006-10-23  Eric Blake  <ebb9@byu.net>
46247
46248         * lib/getaddrinfo.c (includes): Add missing include.
46249
46250 2006-10-23  Bruno Haible  <bruno@clisp.org>
46251             Paul Eggert  <eggert@cs.ucla.edu>
46252
46253         Ability to rename obstack_free.
46254         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46255         obstack_free.
46256         (obstack_free): Invoke the __obstack_free macro.
46257         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46258
46259 2006-10-23  Bruno Haible  <bruno@clisp.org>
46260             Paul Eggert  <eggert@cs.ucla.edu>
46261
46262         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46263         __argc, __argv from the declaration. (They are defined as macros on
46264         mingw.)
46265
46266 2006-10-22  Bruno Haible  <bruno@clisp.org>
46267
46268         * doc/gnulib-intro.texi: New file.
46269         * doc/gnulib.texi: Include it.
46270
46271 2006-10-21  Bruno Haible  <bruno@clisp.org>
46272
46273         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46274         "Introduction", "Miscellanous Notes", "Particular Modules".
46275
46276 2006-10-21  Bruno Haible  <bruno@clisp.org>
46277
46278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46279         Change mostlyclean-local rule to avoid sh syntax error from bash
46280         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46281
46282 2006-10-23  Jim Meyering  <jim@meyering.net>
46283
46284         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46285         in place of snprintf.
46286
46287         * modules/inttostr (Files): Add lib/uinttostr.c.
46288         * lib/uinttostr.c (inttostr): New file/function.
46289         * lib/inttostr.h (uinttostr): Declare.
46290         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46291         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46292         Add uinttostr.
46293         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46294
46295 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46296
46297         * lib/canonicalize.c (ELOOP): Define if not already defined.
46298         Problem reported by Bruno Haible in
46299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46300
46301 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46302
46303         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46304         Problem reported by Perry Smith and Ville Laurikari.
46305
46306         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46307         uses.
46308
46309 2006-10-19  Bruno Haible  <bruno@clisp.org>
46310
46311         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46312         for mingw.
46313
46314 2006-10-19  Bruno Haible  <bruno@clisp.org>
46315
46316         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46317         Needed for mingw.
46318
46319 2006-10-19  Bruno Haible  <bruno@clisp.org>
46320
46321         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46322
46323 2006-10-19  Bruno Haible  <bruno@clisp.org>
46324
46325         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46326         it.
46327
46328 2006-10-19  Bruno Haible  <bruno@clisp.org>
46329
46330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46331         invocation.
46332
46333 2006-10-19  Bruno Haible  <bruno@clisp.org>
46334
46335         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46336         mountlist by default.
46337
46338 2006-10-16  Bruno Haible  <bruno@clisp.org>
46339
46340         * lib/c-strstr.c: Include c-strstr.h.
46341
46342 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46343
46344         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46345         in a slash.
46346
46347 2006-10-18  Bruno Haible  <bruno@clisp.org>
46348
46349         * lib/lock.h [C++]: Wrap definitions in extern "C".
46350
46351 2006-10-18  Bruno Haible  <bruno@clisp.org>
46352
46353         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46354         gl_LIBOBJS list.
46355
46356 2006-10-18  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46359
46360 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46361
46362         * lib/xstrtol.h: Include gettext.h.
46363         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46364         Problem reported by Eric Blake.
46365         * modules/xstrtol (Depends-on): Add gettext-h.
46366
46367 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46368
46369         * lib/strftime.c (advance): New macro.
46370         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46371         incomplete type, so you can't add 0 to it.  Problem and patch
46372         reported by Eelco Dolstra for dietlibc.
46373
46374 2006-10-18  Jim Meyering  <jim@meyering.net>
46375
46376         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46377         type for a local, and rename it: s/up/user_proc/.
46378
46379 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46380
46381         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46382         READ_UTMP_USER_PROCESS.
46383         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46384
46385 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46386
46387         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46388         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46389
46390 2006-10-17  Eric Blake  <ebb9@byu.net>
46391
46392         * lib/sigprocmask.c (sigprocmask): Fix typo.
46393
46394         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46395
46396         * modules/clean-temp (Makefile.am): Don't add to make output...
46397         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46398         config.h.
46399
46400 2006-10-17  Bruno Haible  <bruno@clisp.org>
46401
46402         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46403         differently if DEFAULT_TEXT_DOMAIN is set.
46404
46405 2006-10-16  Bruno Haible  <bruno@clisp.org>
46406
46407         * lib/clean-temp.c: Include fwriteerror.h.
46408
46409 2006-10-16  Bruno Haible  <bruno@clisp.org>
46410
46411         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46412
46413 2006-10-16  Bruno Haible  <bruno@clisp.org>
46414
46415         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46416         * lib/sigprocmask.h: Include <sys/types.h>.
46417         (sigset_t): Use the system's definition if present.
46418
46419 2006-10-17  Eric Blake  <ebb9@byu.net>
46420
46421         * lib/xvasprintf.c (includes): Assume config.h.
46422         * lib/xasprintf.c (includes): Likewise.
46423
46424 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46425
46426         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46427         at least as wide as intmax_t.
46428
46429 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46430
46431         (Imported from Automake.)
46432         * build-aux/gnupload: Update to version 1.1 of directive file.
46433
46434 2006-10-16  Eric Blake  <ebb9@byu.net>
46435
46436         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46437         match Automake 1.10a.
46438
46439 2006-10-14  Bruno Haible  <bruno@clisp.org>
46440
46441         * modules/sigprocmask: New file.
46442         * lib/sigprocmask.h: New file.
46443         * lib/sigprocmask.c: New file.
46444         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46445         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46446         request sigprocmask.o.
46447         (gl_PREREQ_SIGPROCMASK): New macro.
46448         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46449         (Depends-on): Add sigprocmask.
46450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46451         gt_SIGNALBLOCKING. Test for 'raise' only once.
46452         * lib/fatal-signal.c: Include sigprocmask.h.
46453         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46454         unblock_fatal_signals): Define always.
46455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46456         sigprocmask.
46457
46458 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46459
46460         Sync from Automake.
46461         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46462         which incorrectly sets the mode of an existing destination
46463         directory.  In some cases the unpatched install-sh could do the
46464         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46465         system.  We hope this is rare in practice, but it's clearly worth
46466         fixing.  Problem reported by Alex Unleashed in
46467         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46468         Also, don't bother to check for -m bugs unless we're using -m;
46469         suggested by Stepan Kasal.
46470
46471 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46472
46473         Sync from Automake.
46474         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46475         `-c' flag, so they appear at the same position as in %FASTDEP%
46476         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46477         which ignores unknown options only after the first non-option.
46478         Bug report against M4 by Nelson H. F. Beebe.
46479
46480 2006-10-13  Jim Meyering  <jim@meyering.net>
46481
46482         Fix a bug in yesterday's change.
46483         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46484         p->fts_statp->st_dev would be used uninitialized.
46485         Ensures that we always call fts_stat on the very first entry.
46486         Miklos Szeredi reported that find -xdev stopped working.
46487
46488 2006-10-12  Bruno Haible  <bruno@clisp.org>
46489
46490         * gnulib-tool (func_get_automake_snippet): Append an automatically
46491         computed EXTRA_DIST augmentation.
46492         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46493         * modules/alloca-opt (Makefile.am): Likewise.
46494         * modules/allocsa (Makefile.am): Likewise.
46495         * modules/arcfour (Makefile.am): Likewise.
46496         * modules/arctwo (Makefile.am): Likewise.
46497         * modules/argmatch (Makefile.am): Likewise.
46498         * modules/argz (Makefile.am): Likewise.
46499         * modules/atexit (Makefile.am): Likewise.
46500         * modules/backupfile (Makefile.am): Likewise.
46501         * modules/byteswap (Makefile.am): Likewise.
46502         * modules/c-strtod (Makefile.am): Likewise.
46503         * modules/c-strtold (Makefile.am): Likewise.
46504         * modules/calloc (Makefile.am): Likewise.
46505         * modules/canon-host (Makefile.am): Likewise.
46506         * modules/canonicalize (Makefile.am): Likewise.
46507         * modules/chdir-long (Makefile.am): Likewise.
46508         * modules/chdir-safer (Makefile.am): Likewise.
46509         * modules/check-version (Makefile.am): Likewise.
46510         * modules/chown (Makefile.am): Likewise.
46511         * modules/cloexec (Makefile.am): Likewise.
46512         * modules/close-stream (Makefile.am): Likewise.
46513         * modules/closeout (Makefile.am): Likewise.
46514         * modules/crc (Makefile.am): Likewise.
46515         * modules/csharpexec (Makefile.am): Likewise.
46516         * modules/cycle-check (Makefile.am): Likewise.
46517         * modules/des (Makefile.am): Likewise.
46518         * modules/dev-ino (Makefile.am): Likewise.
46519         * modules/dirfd (Makefile.am): Likewise.
46520         * modules/dirname (Makefile.am): Likewise.
46521         * modules/dup2 (Makefile.am): Likewise.
46522         * modules/eealloc (Makefile.am): Likewise.
46523         * modules/error (Makefile.am): Likewise.
46524         * modules/euidaccess (Makefile.am): Likewise.
46525         * modules/exclude (Makefile.am): Likewise.
46526         * modules/exitfail (Makefile.am): Likewise.
46527         * modules/fcntl-safer (Makefile.am): Likewise.
46528         * modules/fcntl (Makefile.am): Likewise.
46529         * modules/file-type (Makefile.am): Likewise.
46530         * modules/fileblocks (Makefile.am): Likewise.
46531         * modules/filemode (Makefile.am): Likewise.
46532         * modules/filenamecat (Makefile.am): Likewise.
46533         * modules/fnmatch (Makefile.am): Likewise.
46534         * modules/fopen-safer (Makefile.am): Likewise.
46535         * modules/fpending (Makefile.am): Likewise.
46536         * modules/fprintftime (Makefile.am): Likewise.
46537         * modules/free (Makefile.am): Likewise.
46538         * modules/fsusage (Makefile.am): Likewise.
46539         * modules/ftruncate (Makefile.am): Likewise.
46540         * modules/fts (Makefile.am): Likewise.
46541         * modules/gc-arcfour (Makefile.am): Likewise.
46542         * modules/gc-des (Makefile.am): Likewise.
46543         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46544         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46545         * modules/gc-md4 (Makefile.am): Likewise.
46546         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46547         * modules/gc-sha1 (Makefile.am): Likewise.
46548         * modules/gc (Makefile.am): Likewise.
46549         * modules/getaddrinfo (Makefile.am): Likewise.
46550         * modules/getcwd (Makefile.am): Likewise.
46551         * modules/getdelim (Makefile.am): Likewise.
46552         * modules/getdomainname (Makefile.am): Likewise.
46553         * modules/getgroups (Makefile.am): Likewise.
46554         * modules/gethostname (Makefile.am): Likewise.
46555         * modules/gethrxtime (Makefile.am): Likewise.
46556         * modules/getline (Makefile.am): Likewise.
46557         * modules/getloadavg (Makefile.am): Likewise.
46558         * modules/getlogin_r (Makefile.am): Likewise.
46559         * modules/getndelim2 (Makefile.am): Likewise.
46560         * modules/getopt (Makefile.am): Likewise.
46561         * modules/getpagesize (Makefile.am): Likewise.
46562         * modules/getpass-gnu (Makefile.am): Likewise.
46563         * modules/getpass (Makefile.am): Likewise.
46564         * modules/getsubopt (Makefile.am): Likewise.
46565         * modules/gettime (Makefile.am): Likewise.
46566         * modules/gettimeofday (Makefile.am): Likewise.
46567         * modules/getugroups (Makefile.am): Likewise.
46568         * modules/getusershell (Makefile.am): Likewise.
46569         * modules/glob (Makefile.am): Likewise.
46570         * modules/group-member (Makefile.am): Likewise.
46571         * modules/hard-locale (Makefile.am): Likewise.
46572         * modules/hash (Makefile.am): Likewise.
46573         * modules/hmac-md5 (Makefile.am): Likewise.
46574         * modules/hmac-sha1 (Makefile.am): Likewise.
46575         * modules/human (Makefile.am): Likewise.
46576         * modules/idcache (Makefile.am): Likewise.
46577         * modules/imaxabs (Makefile.am): Likewise.
46578         * modules/imaxdiv (Makefile.am): Likewise.
46579         * modules/inet_ntop (Makefile.am): Likewise.
46580         * modules/inet_pton (Makefile.am): Likewise.
46581         * modules/intprops (Makefile.am): Likewise.
46582         * modules/inttostr (Makefile.am): Likewise.
46583         * modules/inttypes (Makefile.am): Likewise.
46584         * modules/isapipe (Makefile.am): Likewise.
46585         * modules/javaversion (Makefile.am): Likewise.
46586         * modules/lchmod (Makefile.am): Likewise.
46587         * modules/lchown (Makefile.am): Likewise.
46588         * modules/localcharset (Makefile.am): Likewise.
46589         * modules/long-options (Makefile.am): Likewise.
46590         * modules/lstat (Makefile.am): Likewise.
46591         * modules/malloc (Makefile.am): Likewise.
46592         * modules/mathl (Makefile.am): Likewise.
46593         * modules/mbchar (Makefile.am): Likewise.
46594         * modules/md2 (Makefile.am): Likewise.
46595         * modules/md4 (Makefile.am): Likewise.
46596         * modules/md5 (Makefile.am): Likewise.
46597         * modules/memcasecmp (Makefile.am): Likewise.
46598         * modules/memchr (Makefile.am): Likewise.
46599         * modules/memcmp (Makefile.am): Likewise.
46600         * modules/memcoll (Makefile.am): Likewise.
46601         * modules/memcpy (Makefile.am): Likewise.
46602         * modules/memmem (Makefile.am): Likewise.
46603         * modules/memmove (Makefile.am): Likewise.
46604         * modules/mempcpy (Makefile.am): Likewise.
46605         * modules/memrchr (Makefile.am): Likewise.
46606         * modules/memset (Makefile.am): Likewise.
46607         * modules/memxor (Makefile.am): Likewise.
46608         * modules/mkancesdirs (Makefile.am): Likewise.
46609         * modules/mkdir-p (Makefile.am): Likewise.
46610         * modules/mkdir (Makefile.am): Likewise.
46611         * modules/mkdtemp (Makefile.am): Likewise.
46612         * modules/mkstemp (Makefile.am): Likewise.
46613         * modules/mktime (Makefile.am): Likewise.
46614         * modules/modechange (Makefile.am): Likewise.
46615         * modules/mountlist (Makefile.am): Likewise.
46616         * modules/nanosleep (Makefile.am): Likewise.
46617         * modules/obstack (Makefile.am): Likewise.
46618         * modules/openat (Makefile.am): Likewise.
46619         * modules/pagealign_alloc (Makefile.am): Likewise.
46620         * modules/pathmax (Makefile.am): Likewise.
46621         * modules/physmem (Makefile.am): Likewise.
46622         * modules/poll (Makefile.am): Likewise.
46623         * modules/posixtm (Makefile.am): Likewise.
46624         * modules/posixver (Makefile.am): Likewise.
46625         * modules/putenv (Makefile.am): Likewise.
46626         * modules/quote (Makefile.am): Likewise.
46627         * modules/quotearg (Makefile.am): Likewise.
46628         * modules/raise (Makefile.am): Likewise.
46629         * modules/read-file (Makefile.am): Likewise.
46630         * modules/readline (Makefile.am): Likewise.
46631         * modules/readlink (Makefile.am): Likewise.
46632         * modules/readtokens (Makefile.am): Likewise.
46633         * modules/readutmp (Makefile.am): Likewise.
46634         * modules/realloc (Makefile.am): Likewise.
46635         * modules/regex (Makefile.am): Likewise.
46636         * modules/rename-dest-slash (Makefile.am): Likewise.
46637         * modules/rename (Makefile.am): Likewise.
46638         * modules/rijndael (Makefile.am): Likewise.
46639         * modules/rmdir (Makefile.am): Likewise.
46640         * modules/rpmatch (Makefile.am): Likewise.
46641         * modules/safe-read (Makefile.am): Likewise.
46642         * modules/safe-write (Makefile.am): Likewise.
46643         * modules/same-inode (Makefile.am): Likewise.
46644         * modules/same (Makefile.am): Likewise.
46645         * modules/save-cwd (Makefile.am): Likewise.
46646         * modules/savedir (Makefile.am): Likewise.
46647         * modules/setenv (Makefile.am): Likewise.
46648         * modules/settime (Makefile.am): Likewise.
46649         * modules/sha1 (Makefile.am): Likewise.
46650         * modules/sig2str (Makefile.am): Likewise.
46651         * modules/snprintf (Makefile.am): Likewise.
46652         * modules/stat-macros (Makefile.am): Likewise.
46653         * modules/stat-time (Makefile.am): Likewise.
46654         * modules/stdbool (Makefile.am): Likewise.
46655         * modules/stdint (Makefile.am): Likewise.
46656         * modules/stdlib-safer (Makefile.am): Likewise.
46657         * modules/stpcpy (Makefile.am): Likewise.
46658         * modules/stpncpy (Makefile.am): Likewise.
46659         * modules/strcase (Makefile.am): Likewise.
46660         * modules/strcasestr (Makefile.am): Likewise.
46661         * modules/strchrnul (Makefile.am): Likewise.
46662         * modules/strcspn (Makefile.am): Likewise.
46663         * modules/strdup (Makefile.am): Likewise.
46664         * modules/strerror (Makefile.am): Likewise.
46665         * modules/strftime (Makefile.am): Likewise.
46666         * modules/strndup (Makefile.am): Likewise.
46667         * modules/strnlen (Makefile.am): Likewise.
46668         * modules/strpbrk (Makefile.am): Likewise.
46669         * modules/strsep (Makefile.am): Likewise.
46670         * modules/strstr (Makefile.am): Likewise.
46671         * modules/strtod (Makefile.am): Likewise.
46672         * modules/strtoimax (Makefile.am): Likewise.
46673         * modules/strtok_r (Makefile.am): Likewise.
46674         * modules/strtol (Makefile.am): Likewise.
46675         * modules/strtoll (Makefile.am): Likewise.
46676         * modules/strtoul (Makefile.am): Likewise.
46677         * modules/strtoull (Makefile.am): Likewise.
46678         * modules/strtoumax (Makefile.am): Likewise.
46679         * modules/strverscmp (Makefile.am): Likewise.
46680         * modules/sys_socket (Makefile.am): Likewise.
46681         * modules/sys_stat (Makefile.am): Likewise.
46682         * modules/sysexits (Makefile.am): Likewise.
46683         * modules/time_r (Makefile.am): Likewise.
46684         * modules/timegm (Makefile.am): Likewise.
46685         * modules/timespec (Makefile.am): Likewise.
46686         * modules/tmpfile-safer (Makefile.am): Likewise.
46687         * modules/trim (Makefile.am): Likewise.
46688         * modules/unistd-safer (Makefile.am): Likewise.
46689         * modules/unlinkdir (Makefile.am): Likewise.
46690         * modules/unlocked-io (Makefile.am): Likewise.
46691         * modules/userspec (Makefile.am): Likewise.
46692         * modules/utime (Makefile.am): Likewise.
46693         * modules/utimecmp (Makefile.am): Likewise.
46694         * modules/utimens (Makefile.am): Likewise.
46695         * modules/vasnprintf (Makefile.am): Likewise.
46696         * modules/vasprintf (Makefile.am): Likewise.
46697         * modules/vsnprintf (Makefile.am): Likewise.
46698         * modules/xalloc (Makefile.am): Likewise.
46699         * modules/xgetcwd (Makefile.am): Likewise.
46700         * modules/xnanosleep (Makefile.am): Likewise.
46701         * modules/xreadlink (Makefile.am): Likewise.
46702         * modules/xstrtod (Makefile.am): Likewise.
46703         * modules/xstrtol (Makefile.am): Likewise.
46704         * modules/xstrtold (Makefile.am): Likewise.
46705         * modules/yesno (Makefile.am): Likewise.
46706         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
46707
46708 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46709
46710         * modules/error (Makefile.am): Distribute files through
46711         EXTRA_DIST, not lib_SOURCES.
46712
46713 2006-10-12  Eric Blake  <ebb9@byu.net>
46714
46715         * modules/error (Makefile.am): Distribute files in /lib.
46716         * modules/obstack (Makefile.am): Likewise.
46717
46718 2006-10-12  Bruno Haible  <bruno@clisp.org>
46719
46720         * modules/acl (Makefile.am): Distribute all files in lib/ through
46721         EXTRA_DIST.
46722         * modules/arcfour (Makefile.am): Likewise.
46723         * modules/arctwo (Makefile.am): Likewise.
46724         * modules/argmatch (Makefile.am): Likewise.
46725         * modules/argz (Makefile.am): Likewise.
46726         * modules/atexit (Makefile.am): Likewise.
46727         * modules/backupfile (Makefile.am): Likewise.
46728         * modules/c-strtod (Makefile.am): Likewise.
46729         * modules/c-strtold (Makefile.am): Likewise.
46730         * modules/calloc (Makefile.am): Likewise.
46731         * modules/canon-host (Makefile.am): Likewise.
46732         * modules/canonicalize (Makefile.am): Likewise.
46733         * modules/chdir-long (Makefile.am): Likewise.
46734         * modules/chdir-safer (Makefile.am): Likewise.
46735         * modules/check-version (Makefile.am): Likewise.
46736         * modules/chown (Makefile.am): Likewise.
46737         * modules/cloexec (Makefile.am): Likewise.
46738         * modules/close-stream (Makefile.am): Likewise.
46739         * modules/closeout (Makefile.am): Likewise.
46740         * modules/crc (Makefile.am): Likewise.
46741         * modules/cycle-check (Makefile.am): Likewise.
46742         * modules/des (Makefile.am): Likewise.
46743         * modules/dirfd (Makefile.am): Likewise.
46744         * modules/dirname (Makefile.am): Likewise.
46745         * modules/dup2 (Makefile.am): Likewise.
46746         * modules/euidaccess (Makefile.am): Likewise.
46747         * modules/exclude (Makefile.am): Likewise.
46748         * modules/exitfail (Makefile.am): Likewise.
46749         * modules/fcntl-safer (Makefile.am): Likewise.
46750         * modules/file-type (Makefile.am): Likewise.
46751         * modules/fileblocks (Makefile.am): Likewise.
46752         * modules/filemode (Makefile.am): Likewise.
46753         * modules/filenamecat (Makefile.am): Likewise.
46754         * modules/fnmatch (Makefile.am): Likewise.
46755         * modules/fopen-safer (Makefile.am): Likewise.
46756         * modules/fpending (Makefile.am): Likewise.
46757         * modules/fprintftime (Makefile.am): Likewise.
46758         * modules/free (Makefile.am): Likewise.
46759         * modules/fsusage (Makefile.am): Likewise.
46760         * modules/ftruncate (Makefile.am): Likewise.
46761         * modules/fts (Makefile.am): Likewise.
46762         * modules/gc (Makefile.am): Likewise.
46763         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46764         * modules/getaddrinfo (Makefile.am): Likewise.
46765         * modules/getcwd (Makefile.am): Likewise.
46766         * modules/getdelim (Makefile.am): Likewise.
46767         * modules/getdomainname (Makefile.am): Likewise.
46768         * modules/getgroups (Makefile.am): Likewise.
46769         * modules/gethostname (Makefile.am): Likewise.
46770         * modules/gethrxtime (Makefile.am): Likewise.
46771         * modules/getline (Makefile.am): Likewise.
46772         * modules/getloadavg (Makefile.am): Likewise.
46773         * modules/getlogin_r (Makefile.am): Likewise.
46774         * modules/getopt (Makefile.am): Likewise.
46775         * modules/getpass (Makefile.am): Likewise.
46776         * modules/getpass-gnu (Makefile.am): Likewise.
46777         * modules/getsubopt (Makefile.am): Likewise.
46778         * modules/gettime (Makefile.am): Likewise.
46779         * modules/gettimeofday (Makefile.am): Likewise.
46780         * modules/getugroups (Makefile.am): Likewise.
46781         * modules/getusershell (Makefile.am): Likewise.
46782         * modules/glob (Makefile.am): Likewise.
46783         * modules/group-member (Makefile.am): Likewise.
46784         * modules/hard-locale (Makefile.am): Likewise.
46785         * modules/hash (Makefile.am): Likewise.
46786         * modules/hmac-md5 (Makefile.am): Likewise.
46787         * modules/hmac-sha1 (Makefile.am): Likewise.
46788         * modules/human (Makefile.am): Likewise.
46789         * modules/idcache (Makefile.am): Likewise.
46790         * modules/imaxabs (Makefile.am): Likewise.
46791         * modules/imaxdiv (Makefile.am): Likewise.
46792         * modules/inet_ntop (Makefile.am): Likewise.
46793         * modules/inet_pton (Makefile.am): Likewise.
46794         * modules/inttostr (Makefile.am): Likewise.
46795         * modules/isapipe (Makefile.am): Likewise.
46796         * modules/lchown (Makefile.am): Likewise.
46797         * modules/long-options (Makefile.am): Likewise.
46798         * modules/lstat (Makefile.am): Likewise.
46799         * modules/malloc (Makefile.am): Likewise.
46800         * modules/mathl (Makefile.am): Likewise.
46801         * modules/mbchar (Makefile.am): Likewise.
46802         * modules/md2 (Makefile.am): Likewise.
46803         * modules/md4 (Makefile.am): Likewise.
46804         * modules/md5 (Makefile.am): Likewise.
46805         * modules/memcasecmp (Makefile.am): Likewise.
46806         * modules/memchr (Makefile.am): Likewise.
46807         * modules/memcmp (Makefile.am): Likewise.
46808         * modules/memcoll (Makefile.am): Likewise.
46809         * modules/memcpy (Makefile.am): Likewise.
46810         * modules/memmem (Makefile.am): Likewise.
46811         * modules/memmove (Makefile.am): Likewise.
46812         * modules/mempcpy (Makefile.am): Likewise.
46813         * modules/memrchr (Makefile.am): Likewise.
46814         * modules/memset (Makefile.am): Likewise.
46815         * modules/memxor (Makefile.am): Likewise.
46816         * modules/mkancesdirs (Makefile.am): Likewise.
46817         * modules/mkdir (Makefile.am): Likewise.
46818         * modules/mkdir-p (Makefile.am): Likewise.
46819         * modules/mkdtemp (Makefile.am): Likewise.
46820         * modules/mkstemp (Makefile.am): Likewise.
46821         * modules/mktime (Makefile.am): Likewise.
46822         * modules/modechange (Makefile.am): Likewise.
46823         * modules/mountlist (Makefile.am): Likewise.
46824         * modules/nanosleep (Makefile.am): Likewise.
46825         * modules/openat (Makefile.am): Likewise.
46826         * modules/pagealign_alloc (Makefile.am): Likewise.
46827         * modules/physmem (Makefile.am): Likewise.
46828         * modules/poll (Makefile.am): Likewise.
46829         * modules/posixtm (Makefile.am): Likewise.
46830         * modules/posixver (Makefile.am): Likewise.
46831         * modules/putenv (Makefile.am): Likewise.
46832         * modules/quote (Makefile.am): Likewise.
46833         * modules/quotearg (Makefile.am): Likewise.
46834         * modules/raise (Makefile.am): Likewise.
46835         * modules/read-file (Makefile.am): Likewise.
46836         * modules/readline (Makefile.am): Likewise.
46837         * modules/readlink (Makefile.am): Likewise.
46838         * modules/readtokens (Makefile.am): Likewise.
46839         * modules/readutmp (Makefile.am): Likewise.
46840         * modules/realloc (Makefile.am): Likewise.
46841         * modules/regex (Makefile.am): Likewise.
46842         * modules/rename (Makefile.am): Likewise.
46843         * modules/rename-dest-slash (Makefile.am): Likewise.
46844         * modules/rijndael (Makefile.am): Likewise.
46845         * modules/rmdir (Makefile.am): Likewise.
46846         * modules/rpmatch (Makefile.am): Likewise.
46847         * modules/safe-read (Makefile.am): Likewise.
46848         * modules/safe-write (Makefile.am): Likewise.
46849         * modules/same (Makefile.am): Likewise.
46850         * modules/save-cwd (Makefile.am): Likewise.
46851         * modules/savedir (Makefile.am): Likewise.
46852         * modules/setenv (Makefile.am): Likewise.
46853         * modules/settime (Makefile.am): Likewise.
46854         * modules/sha1 (Makefile.am): Likewise.
46855         * modules/sig2str (Makefile.am): Likewise.
46856         * modules/snprintf (Makefile.am): Likewise.
46857         * modules/stdlib-safer (Makefile.am): Likewise.
46858         * modules/stpcpy (Makefile.am): Likewise.
46859         * modules/stpncpy (Makefile.am): Likewise.
46860         * modules/strcase (Makefile.am): Likewise.
46861         * modules/strcasestr (Makefile.am): Likewise.
46862         * modules/strchrnul (Makefile.am): Likewise.
46863         * modules/strcspn (Makefile.am): Likewise.
46864         * modules/strdup (Makefile.am): Likewise.
46865         * modules/strerror (Makefile.am): Likewise.
46866         * modules/strftime (Makefile.am): Likewise.
46867         * modules/strndup (Makefile.am): Likewise.
46868         * modules/strnlen (Makefile.am): Likewise.
46869         * modules/strpbrk (Makefile.am): Likewise.
46870         * modules/strsep (Makefile.am): Likewise.
46871         * modules/strstr (Makefile.am): Likewise.
46872         * modules/strtod (Makefile.am): Likewise.
46873         * modules/strtoimax (Makefile.am): Likewise.
46874         * modules/strtok_r (Makefile.am): Likewise.
46875         * modules/strtol (Makefile.am): Likewise.
46876         * modules/strtoll (Makefile.am): Likewise.
46877         * modules/strtoul (Makefile.am): Likewise.
46878         * modules/strtoull (Makefile.am): Likewise.
46879         * modules/strtoumax (Makefile.am): Likewise.
46880         * modules/strverscmp (Makefile.am): Likewise.
46881         * modules/time_r (Makefile.am): Likewise.
46882         * modules/timegm (Makefile.am): Likewise.
46883         * modules/tmpfile-safer (Makefile.am): Likewise.
46884         * modules/unistd-safer (Makefile.am): Likewise.
46885         * modules/unlinkdir (Makefile.am): Likewise.
46886         * modules/userspec (Makefile.am): Likewise.
46887         * modules/utime (Makefile.am): Likewise.
46888         * modules/utimecmp (Makefile.am): Likewise.
46889         * modules/utimens (Makefile.am): Likewise.
46890         * modules/vasnprintf (Makefile.am): Likewise.
46891         * modules/vasprintf (Makefile.am): Likewise.
46892         * modules/vsnprintf (Makefile.am): Likewise.
46893         * modules/xalloc (Makefile.am): Likewise.
46894         * modules/xgetcwd (Makefile.am): Likewise.
46895         * modules/xnanosleep (Makefile.am): Likewise.
46896         * modules/xreadlink (Makefile.am): Likewise.
46897         * modules/xstrtod (Makefile.am): Likewise.
46898         * modules/xstrtol (Makefile.am): Likewise.
46899         * modules/xstrtold (Makefile.am): Likewise.
46900         * modules/yesno (Makefile.am): Likewise.
46901
46902 2006-10-12  Jim Meyering  <jim@meyering.net>
46903
46904         * m4/getloadavg.m4: Revert the change below.
46905
46906         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
46907         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
46908         fail with a symlink, which is what coreutils' ./bootstrap now
46909         creates by default.
46910
46911 2006-10-12  Bruno Haible  <bruno@clisp.org>
46912
46913         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
46914         mingw.
46915         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
46916         MSVC and mingw explicitly.
46917
46918 2006-10-11  Simon Josefsson  <jas@extundo.com>
46919             Bruno Haible  <bruno@clisp.org>
46920
46921         Add support for multiple gnulib-tool invocations in the scope of a
46922         single configure.ac file.
46923         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
46924         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
46925         with the same contents as the _LIBADD variable.
46926         (func_emit_initmacro_start, func_emit_initmacro_end,
46927         func_emit_initmacro_done): New functions.
46928         (func_import, func_create_testdir): Invoke them. Allow the identifiers
46929         gl_LIBOBJS and gl_LTLIBOBJS.
46930
46931 2006-10-11  Bruno Haible  <bruno@clisp.org>
46932
46933         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
46934         (func_create_testdir): Don't create po/Makefile.am, don't invoke
46935         autoreconf. Instead, invoke autopoint explicitly but move back the
46936         *.m4 files from gnulib.
46937
46938 2006-10-11  Bruno Haible  <bruno@clisp.org>
46939
46940         * gnulib-tool (func_usage): Make module names after --create-testdir
46941         optional.
46942         (func_create_testdir): If no module was specified, use nearly all
46943         modules.
46944
46945 2006-10-12  Jim Meyering  <jim@meyering.net>
46946
46947         Big performance improvement for fts-based tools that use FTS_NOSTAT.
46948         Avoid spurious inode-mismatch problems on non-POSIX file systems.
46949         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
46950         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
46951         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
46952         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
46953         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
46954         (fts_set_stat_required): New function.
46955         (fts_open): Defer the calls to fts_stat, if possible or requested.
46956         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
46957         into fts_stat itself.
46958         (fts_read): Perform any required (deferred) fts_stat call.
46959         (fts_build): Likewise, for the directory we're about to open and read.
46960         In the readdir loop, carefully decide whether each entry will require
46961         an eventual call to fts_stat, using dirent.d_type info if available.
46962         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
46963         a command line argument into this function.  Update all callers.
46964         Map a return value of FTS_DOT to FTS_D for a command line argument.
46965         * modules/fts (Depends-on): Add d-type.  Alphabetize.
46966         Thanks to Miklos Szeredi for his tenacity and for the initial
46967         bug report about "find" failing on a FUSE-based file system.
46968
46969         * lib/fts.c (fts_open): Use consistent indentation.
46970
46971 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46972
46973         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
46974         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
46975         reported by Jim Meyering.  All uses of cache variables renamed
46976         to match Autoconf's.
46977         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
46978         the other one.
46979
46980         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46981         Fix misspelling in diagnostic.
46982
46983 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46984
46985         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
46986         defined.  Problem reported by Matthew Woehlke.
46987
46988         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
46989         Add support for Tandem NonStop R series.
46990         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
46991         Use new macro.
46992
46993         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
46994         (has_trailing_slash): Omit size arg; all callers changed.
46995         Omit 'inline', since it doesn't help performance and we'd
46996         need to configure it.
46997         Don't count //, ///, etc. as having a trailing slash.
46998         As a side effect, this removes a C99ism reported by Matthew Woehlke.
46999         (rpl_rename_dest_slash): On failure, use rename's errno rather
47000         than (in some cases) an incorrect or junk errno.
47001         Simplify code by removing need to compute length; this does
47002         cause it to make two passes instead of one over the file name,
47003         but it's worth it.
47004
47005         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47006         change, since Autoconf's version may no longer be appropriate now
47007         that we are using CVS Autoconf's version.  Add support for Tandem.
47008
47009 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47010             Bruno Haible  <bruno@clisp.org>
47011
47012         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47013         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47014         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47015         gl_AC_TYPE_LONG_LONG.
47016
47017         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47018         instead of HAVE_LONG_LONG.
47019         * lib/printf-args.c (printf_fetchargs): Likewise.
47020         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47021         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47022         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47023         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47024         gl_AC_TYPE_LONG_LONG.
47025
47026 2006-10-11  Bruno Haible  <bruno@clisp.org>
47027
47028         * m4/longlong.m4: Add comments.
47029         * m4/ulonglong.m4: Likewise.
47030
47031 2006-10-10  Bruno Haible  <bruno@clisp.org>
47032
47033         Make it possible to #define stpcpy, strdup to aliases.
47034         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47035         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47036
47037 2006-10-10  Bruno Haible  <bruno@clisp.org>
47038
47039         Make it possible to #define gcd to an alias.
47040         * lib/gcd.c: Include config.h.
47041
47042 2006-10-10  Bruno Haible  <bruno@clisp.org>
47043
47044         Make it possible to #define c_isascii to an alias.
47045         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47046         defined. Undefine the macros before defining them, to avoid gcc
47047         warnings.
47048         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47049         define NO_C_CTYPE_MACROS early.
47050
47051 2006-10-10  Bruno Haible  <bruno@clisp.org>
47052
47053         Make it possible to #define set_program_name to an alias.
47054         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47055         ENABLE_RELOCATABLE early.
47056
47057 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47058
47059         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47060         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47061         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47062         More generally, don't assume that 64-bit signed int is available
47063         if unsigned int is, and vice versa.
47064         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47065         unsigned symbols, not on their signed counterparts.
47066         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47067         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47068         (UINT64_C, UINTMAX_C):
47069         Likewise.
47070         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47071         unsigned counterparts.
47072         (Have_long_long, Unsigned): New macros.
47073         (Int): Renamed from INT.
47074         (strtoimax): Use the new macros.
47075         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47076         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47077         * modules/inttypes (inttypes.h): Substitute
47078         HAVE_UNSIGNED_LONG_LONG_INT.
47079         * modules/stdint (stdint.h): Likewise.
47080         (Files): Add m4/ulonglong.m4.
47081
47082 2006-10-10  Bruno Haible  <bruno@clisp.org>
47083
47084         Fix a gcc -Wshadow warning.
47085         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47086         to 'bucket'.
47087         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47088         gl_linked_indexof_from_to): Likewise.
47089         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47090         Likewise.
47091         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47092         Likewise.
47093         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47094         Reported by Eric Blake.
47095
47096 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47097
47098         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47099         for NetBSD.  Problem reported by Bruno Haible.
47100
47101 2006-10-09  Jim Meyering  <jim@meyering.net>
47102
47103         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47104         Patch from Bruno Haible.
47105
47106 2006-10-09  Jim Meyering  <jim@meyering.net>
47107
47108         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47109         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47110         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47111
47112 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47113
47114         Don't include <config.h> twice; this doesn't work in some cases,
47115         e.g., when config.h has "#define intmax_t long long int" and
47116         we include <config.h>, <inttypes.h>, <config.h> in that order.
47117         Problem reported by Matthew Woehlke in:
47118         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47119         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47120         * lib/fts-cycle.c: Don't include config.h.
47121         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47122         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47123         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47124         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47125         inttypes.h.
47126         * lib/xstrtoumax.c: Likewise.
47127         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47128         __strtol and the like, so that this module is more like its siblings.
47129         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47130         Remove; no longer needed now that we assume gnulib inttypes.h.
47131
47132 2006-10-08  Bruno Haible  <bruno@clisp.org>
47133
47134         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47135         option.
47136
47137 2006-10-07  Jim Meyering  <jim@meyering.net>
47138
47139         * modules/inttypes (inttypes.h): Revert what seems to have been
47140         an inadvertent part of today's change: use "|", not "/" in the
47141         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47142
47143 2006-10-07  Bruno Haible  <bruno@clisp.org>
47144
47145         * modules/sublist: New file.
47146
47147 2006-10-07  Bruno Haible  <bruno@clisp.org>
47148
47149         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47150         * modules/argz (argz.h): Likewise.
47151         * modules/arpa_inet (arpa/inet.h): Likewise.
47152         * modules/byteswap (byteswap.h): Likewise.
47153         * modules/configmake (configmake.h): Likewise.
47154         * modules/fcntl (fcntl.h): Likewise.
47155         * modules/fnmatch (fnmatch.h): Likewise.
47156         * modules/getopt (getopt.h): Likewise.
47157         * modules/glob (glob.h): Likewise.
47158         * modules/inttypes (inttypes.h): Likewise.
47159         * modules/netinet_in (netinet/in.h): Likewise.
47160         * modules/poll (poll.h): Likewise.
47161         * modules/stdbool (stdbool.h): Likewise.
47162         * modules/stdint (stdint.h): Likewise.
47163         * modules/sys_select (sys/select.h): Likewise.
47164         * modules/sys_socket (sys/socket.h): Likewise.
47165         * modules/sys_stat (sys/stat.h): Likewise.
47166         * modules/sysexits (sysexits.h): Likewise.
47167         * modules/unistd (unistd.h): Likewise.
47168         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47169         Add a "DO NOT EDIT" comment to the generated file.
47170         (func_import): Likewise for gnulib-comp.m4.
47171
47172 2006-10-07  Bruno Haible  <bruno@clisp.org>
47173
47174         * lib/gl_sublist.h: New file.
47175         * lib/gl_sublist.c: New file.
47176
47177 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47178
47179         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47180         name (relative to the original working directory) and the file
47181         name component (relative to the temporary working directory).  All
47182         callers changed.
47183         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47184         * lib/mkdir-p.c (make_dir_parents): Likewise.
47185         * lib/mkdir-p.h (make_dir_parents): Likewise.
47186
47187 2006-10-06  Eric Blake  <ebb9@byu.net>
47188
47189         Define several macros for use by the clean-temp module.
47190         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47191         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47192         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47193
47194         * lib/clean-temp.h (close_stream_temp): New declaration.
47195         * lib/clean-temp.c (includes): Pull in headers according to what
47196         other modules are in use.
47197         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47198
47199 2006-10-06  Bruno Haible  <bruno@clisp.org>
47200
47201         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47202         instead of fopen, fwriteerror.
47203
47204 2006-10-06  Bruno Haible  <bruno@clisp.org>
47205
47206         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47207         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47208         int.
47209         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47210         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47211         Return an error indicator.
47212         Suggested by Eric Blake.
47213
47214 2006-10-06  Bruno Haible  <bruno@clisp.org>
47215
47216         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47217         Reported by Eric Blake.
47218
47219 2006-10-06  Bruno Haible  <bruno@clisp.org>
47220
47221         * modules/closeout (Description): Mention stderr too.
47222
47223 2006-10-06  Bruno Haible  <bruno@clisp.org>
47224         and Paul Eggert  <eggert@cs.ucla.edu>
47225
47226         * lib/closeout.c (close_stdout): Also close stderr.
47227         * lib/closeout.h: Update comment.
47228
47229 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47230
47231         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47232         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47233         * lib/dirchownmod.c: Include lchown.h.
47234         * lib/lchown.c: Don't include files that lchown.h now includes.
47235         Don't declare chown, since lchown.h now does that.
47236         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47237         (lchown): Define to rpl_chown if lchown is declared but
47238         does not exist.  Declare using a prototype if lchown is not
47239         declared.  Add a copyright notice.
47240         * lib/mkstemp.h: Include <unistd.h>.
47241         * lib/openat.c: Include lchown.h.
47242
47243         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47244         we now test for that separately.
47245         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47246         rather than O_NOFOLLOW, when testing whether it's possible to
47247         avoid a race condition reliably.
47248         * lib/savewd.c (savewd_chdir): Likewise.
47249
47250         Remove macros that are no longer needed now that stdint.h is
47251         reliable.
47252         * lib/fsusage.c (UINTMAX_MAX): Remove.
47253         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47254         * lib/utimecmp.c (SIZE_MAX): Remove.
47255
47256         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47257
47258         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47259         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47260         O_NOATIME works.
47261
47262 2006-10-05  Bruno Haible  <bruno@clisp.org>
47263
47264         * lib/gl_list.h (gl_sortedlist_search_from_to,
47265         gl_sortedlist_indexof_from_to): New declarations.
47266         (gl_list_implementation): New fields sortedlist_search_from_to,
47267         sortedlist_indexof_from_to.
47268         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47269         inline functions.
47270         * lib/gl_list.c (gl_sortedlist_search_from_to,
47271         gl_sortedlist_indexof_from_to): New functions.
47272         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47273         function.
47274         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47275         (gl_array_sortedlist_search_from_to): New function.
47276         (gl_array_list_implementation): Update.
47277         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47278         function.
47279         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47280         (gl_carray_sortedlist_search_from_to): New function.
47281         (gl_carray_list_implementation): Update.
47282         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47283         gl_linked_sortedlist_indexof_from_to): New functions.
47284         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47285         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47286         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47287         gl_tree_sortedlist_indexof_from_to): New functions.
47288         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47289         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47290         Update.
47291         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47292         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47293         Update.
47294
47295 2006-10-05  Bruno Haible  <bruno@clisp.org>
47296
47297         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47298         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47299         (struct gl_list_implementation): Add fields search_from_to,
47300         indexof_from_to. Remove fields search, indexof.
47301         (gl_list_search): Use the search_from_to method.
47302         (gl_list_search_from, gl_list_search_from_to): New functions.
47303         (gl_list_indexof): Use the indexof_from_to method.
47304         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47305         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47306         (gl_list_search_from, gl_list_search_from_to): New functions.
47307         (gl_list_indexof): Use the indexof_from_to method.
47308         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47309         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47310         gl_array_indexof. Add start_index, end_index arguments.
47311         (gl_array_search_from_to): Renamed from gl_array_search. Add
47312         start_index, end_index arguments.
47313         (gl_array_remove, gl_array_list_implementation): Update.
47314         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47315         gl_carray_indexof. Add start_index, end_index arguments.
47316         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47317         start_index, end_index arguments.
47318         (gl_carray_remove, gl_carray_list_implementation): Update.
47319         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47320         gl_linked_search. Add start_index, end_index arguments.
47321         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47322         start_index, end_index arguments.
47323         (gl_linked_remove): Update.
47324         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47325         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47326         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47327         field to 'size_t'.
47328         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47329         gl_tree_search. Add start_index, end_index arguments.
47330         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47331         start_index, end_index arguments.
47332         (gl_tree_remove): Update.
47333         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47334         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47335         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47336         function.
47337         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47338         gl_tree_search. Add start_index, end_index arguments.
47339         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47340         start_index, end_index arguments.
47341         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47342         Update.
47343         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47344
47345 2006-10-05  Bruno Haible  <bruno@clisp.org>
47346
47347         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47348
47349         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47350         fwriteerror_temp): New declarations.
47351         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47352         (descriptors): New variable.
47353         (cleanup): First, close the descriptors.
47354         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47355         fclose_temp, fwriteerror_temp): New functions.
47356
47357 2006-10-04  Jim Meyering  <jim@meyering.net>
47358
47359         * lib/fts.c (fts_open): Tiny comment change.
47360
47361 2006-10-04  Bruno Haible  <bruno@clisp.org>
47362
47363         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47364         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47365         gl_LOCK_BODY.
47366         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47367         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47368         gl_LOCK_EARLY_BODY.
47369         (gl_LOCK): Require gl_LOCK_BODY.
47370
47371 2006-10-04  Bruno Haible  <bruno@clisp.org>
47372
47373         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47374         (gl_oset_search_atleast): New declaration.
47375         (struct gl_oset_implementation): Add field 'search_atleast'.
47376         (gl_oset_search_atleast): New inline function.
47377         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47378         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47379         (gl_array_oset_implementation): Update.
47380         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47381         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47382         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47383
47384 2006-10-04  Bruno Haible  <bruno@clisp.org>
47385
47386         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47387
47388 2006-10-03  Bruno Haible  <bruno@clisp.org>
47389
47390         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47391         from gl_avltreehash_list_implementation.
47392
47393 2006-10-03  Bruno Haible  <bruno@clisp.org>
47394
47395         * lib/gl_oset.c (gl_oset_add): Fix return type.
47396
47397 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47398
47399         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47400
47401 2006-10-02  Eric Blake  <ebb9@byu.net>
47402
47403         * modules/strnlen (Depends-on): Add extensions.
47404
47405 2006-10-02  Eric Blake  <ebb9@byu.net>
47406
47407         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47408         definition in 2.60+.
47409
47410 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47411
47412         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47413         checks.
47414
47415 2006-10-02  Bruno Haible  <bruno@clisp.org>
47416
47417         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47418         to the AUTOMAKE_OPTIONS.
47419         Reported by Jim Meyering.
47420
47421 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47422
47423         Work around bug in Solaris 10 /proc file system:
47424         /proc/self/fd/NNN/.. isn't the parent directory of
47425         the directory whose file descriptor is NNN.  This needs to
47426         be worked around at run time, not compile time, since a
47427         program might be built on Solaris 8, where things work, and
47428         run on Solaris 10.
47429         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47430         to use the following interface instead:
47431         (OPENAT_BUFFER_SIZE): New macro.
47432         (openat_proc_name): New function.
47433         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47434         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47435         Likewise.
47436         * lib/openat-proc.c: New file.
47437         * modules/openat (Files): Add lib/openat-proc.c.
47438         (Depends-on): Add same-inode, stdbool.
47439         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47440
47441 2006-09-29  Bruno Haible  <bruno@clisp.org>
47442
47443         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47444         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47445         argument. Set stdout_closed before testing for ferror, not after.
47446         (fwriteerror, fwriteerror_no_ebadf): New functions.
47447
47448 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47449
47450         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47451
47452 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47453
47454         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47455         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47456
47457 2006-09-28  Jim Meyering  <jim@meyering.net>
47458
47459         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47460         Include <unistd.h>.
47461
47462 2006-09-28  Bruno Haible  <bruno@clisp.org>
47463
47464         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47465         * modules/linkedhash-list (Depends-on): Likewise.
47466         * modules/rbtreehash-list (Depends-on): Likewise.
47467
47468 2006-09-28  Bruno Haible  <bruno@clisp.org>
47469
47470         * lib/strndup.h: Simplify the redefinition of strndup.
47471         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47472         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47473
47474 2006-09-28  Bruno Haible  <bruno@clisp.org>
47475
47476         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47477         * lib/gl_linkedhash_list.c: Likewise.
47478         * lib/gl_rbtreehash_list.c: Likewise.
47479
47480 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47481
47482         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47483         getaddrinfo.
47484
47485         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47486         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47487         it causes <stdio_ext.h> to cause a compile-time error.
47488         Problem reported by Nelson H. F. Beebe.
47489         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47490         of HAVE_DECL___PENDING.
47491
47492         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47493         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47494         declaration.
47495
47496 2006-09-27  Jim Meyering  <jim@meyering.net>
47497
47498         This file could end up with a definition for a function
47499         named __strndup, rather than rpl_strndup on a system with
47500         incomplete weak_alias support.
47501         * lib/strndup.c (strndup): Rename from __strndup.
47502         Remove #defines that used to map __strndup to strndup.
47503         Don't use K&R prototypes.
47504         Remove LIBC-related code, since this file is not sync'd with glibc.
47505         * lib/strndup.h: Revamp, accordingly.
47506         * m4/strndup.m4: Modernize.
47507
47508 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         * modules/savewd (Depends-on): Add 'raise'.
47511         * lib/savewd.c: Include <signal.h>, for 'raise'.
47512
47513 2006-09-26  Jim Meyering  <jim@meyering.net>
47514
47515         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47516         when we detect Darwin 8.7.0's acl_get_file bug.
47517         Rearrange to perform the new (below) run-test while $LIBS
47518         contains any acl-related library.  Set USE_ACL at the end.
47519         (gl_ACL_GET_FILE): New function.
47520
47521 2006-09-26  Eric Blake  <ebb9@byu.net>
47522
47523         * lib/verror.c: Include <config.h> unconditionally.
47524
47525 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47526
47527         * modules/clock-time (Maintainer): Add self.
47528         * modules/getlogin_r (Depends-on): Add extensions.
47529
47530 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47531
47532         * modules/clock-time: New module.
47533         * modules/nanosleep (Depends-on): Add clock-time.
47534         * modules/gethrxtime (Depends-on): Likewise.
47535         * modules/gettime (Depends-on): Likewise.
47536         * modules/settime (Depends-on): Likewise.
47537
47538         * modules/fts-lgpl: Depend on openat.
47539         * modules/mkancesdirs: Depend on savewd.
47540         * modules/mkdir-p: Likewise.
47541
47542 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47543
47544         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47545
47546         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47547         `gl_have_arbitrary_file_name_length_limit' to
47548         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
47549         actually works between configure runs.
47550
47551 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47552             Bruno Haible  <bruno@clisp.org>
47553
47554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
47555
47556 2006-09-25  Jim Meyering  <jim@meyering.net>
47557
47558         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
47559         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
47560
47561 2006-09-25  Eric Blake  <ebb9@byu.net>
47562
47563         * gnulib-tool (func_import, func_create_testdir): Fix typos in
47564         exec's in 2006-09-18 patch when shuffling fds.
47565
47566 2006-09-25  Bruno Haible  <bruno@clisp.org>
47567
47568         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
47569         Reported by Jim Meyering.
47570
47571 2006-09-24  Jim Meyering  <jim@meyering.net>
47572
47573         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
47574         compare a pointer against a literal "0".  That caused failures with
47575         at least HP-UX's hpcc.
47576
47577 2006-09-22  Simon Josefsson  <jas@extundo.com>
47578
47579         * modules/gc-sha1:
47580         * modules/gc-md4:
47581         * modules/gc-hmac-sha1:
47582         * modules/gc-hmac-md5:
47583         * modules/gc-des:
47584         * modules/gc-arcfour: Distribute more files.
47585
47586 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47587
47588         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
47589         (gl_linked_iterator_from_to): Initialize struct completely.
47590         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
47591         (gl_tree_iterator_from_to): Likewise
47592         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
47593         * lib/gl_array_list.c [lint] (gl_array_iterator)
47594         (gl_array_iterator_from_to): Likewise.
47595         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
47596         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
47597         (gl_carray_iterator_from_to): Likewise.
47598
47599         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
47600         * lib/md4.c (md4_process_block): Remove unused variable.
47601         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
47602         parentheses for clarity.
47603
47604 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47605
47606         * modules/bison-i18n (Depends-on): Add gettext.
47607
47608 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47609
47610         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
47611         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
47612         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
47613         also add missing comma that caused broken test.
47614         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
47615         stdlib.h, for `abort'.
47616         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
47617         variables.
47618         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
47619         include unistd.h if present, for `rmdir'.
47620         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
47621         variables.
47622         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
47623         in the process include standard headers for prototypes.
47624         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
47625         gets declared on GNU/Linux.
47626         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
47627         unistd.h, for `rmdir'.
47628         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
47629
47630         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
47631         always true.
47632         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
47633
47634         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
47635
47636 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47637
47638         * gnulib-tool (func_version): Create output all at once.  This
47639         may help avoid triggering unnecessary SIGPIPEs, and at any
47640         rate it doesn't hurt.
47641
47642 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47643             Bruno Haible  <bruno@clisp.org>
47644
47645         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
47646         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47647         * m4/signed.m4 (bh_C_SIGNED): Likewise.
47648
47649         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
47650         (gl_FUNC_VASPRINTF): Invoke it.
47651
47652 2006-09-22  Bruno Haible  <bruno@clisp.org>
47653
47654         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
47655         getloadavg.c as first argument.
47656
47657 2006-09-22  Bruno Haible  <bruno@clisp.org>
47658
47659         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
47660         at the beginning of the gl_INIT macro.
47661         * modules/getloadavg (configure.ac): Pass $gl_source_base to
47662         gl_GETLOADAVG.
47663
47664 2006-09-22  Bruno Haible  <bruno@clisp.org>
47665
47666         * gnulib-tool (func_create_megatestdir): Don't include the config-h
47667         module.
47668         Suggested by Ralf Wildenhues.
47669
47670 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
47671
47672         Import this patch from libc:
47673
47674         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
47675
47676         * lib/regex_internal.c (re_string_reconstruct): Handle
47677         offset < pstr->valid_raw_len && pstr->offsets_needed case.
47678         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
47679         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
47680         re_string_context_at.
47681
47682         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
47683         now requires it.
47684         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
47685         gl_REGEX now does it for us.
47686         (gl_REGEX): Add test taken from
47687         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
47688
47689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
47690         Check that large offsets work.  Modernize Autoconf usages.
47691         Prefer "yes" to mean a good thing rather than a bad.
47692         Don't put "#define mkstemp" in config.h, as this might interfere
47693         with standard system headers that "#define mkstemp mkstemp64".
47694
47695         * modules/mkstemp (Depends-on): Add extensions, so that
47696         mkstemp is visible on some platforms.
47697         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
47698         (Include): Change to "mkstemp.h" from <stdlib.h>.
47699         (Files): Add mkstemp.h.
47700
47701         * lib/mkstemp.h: New file, since some standard headers
47702         #define mkstemp.
47703         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
47704         Include "mkstemp.h".
47705         Make the _LIBC code resemble glibc original more,
47706         e.g., use K&R style.
47707         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
47708         (mkstemp): Remove, since mkstemp.h does this for us.
47709         * lib/stdlib--.h: Include mkstemp.h.
47710
47711         Import this patch from libc:
47712
47713         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
47714
47715         * lib/tempname.c (__gen_tempname): Change attempts_min
47716         into a macro.  Use preprocessor to decide how to initialize
47717         attempts [Coverity CID 67].
47718
47719 2006-09-20  Bruno Haible  <bruno@clisp.org>
47720
47721         * lib/mkdtemp.c: Import from libc.
47722         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
47723                 * sysdeps/posix/tempname.c (__gen_tempname): Change
47724                 attempts_min into a macro.  Use preprocessor to decide how to
47725                 initialize attempts [Coverity CID 67].
47726         2001-11-27  Paul Eggert  <eggert@twinsun.com>
47727                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
47728                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
47729
47730 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47731
47732         * gnulib-tool (func_exit): New function, to allow to pass the
47733         exit status portably through the trap.  Use everywhere.
47734         (--help, --version): Signal a write error.
47735         (trap): catch SIGPIPE, for write errors.
47736         Exit at the end of the trap, with the correct exit status.
47737
47738 2006-09-19  Karl Berry  <karl@gnu.org>
47739
47740         * doc/gnulib.texi: note about the license texinfo files.
47741
47742 2006-09-19  Eric Blake  <ebb9@byu.net>
47743
47744         * gnulib-tool: Avoid space-tab.
47745
47746 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47747
47748         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
47749         that prevented coreutils 6.1 from building.  Problem reported
47750         by Petter Reinholdtsen.
47751
47752 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47753
47754         * gnulib-tool (avoidlist): Fix typo that broke options like
47755         --avoid=lock that are used by coreutils bootstrap.
47756
47757 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
47758
47759         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
47760         more systematically.
47761
47762 2006-09-18  Jim Meyering  <jim@meyering.net>
47763
47764         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
47765
47766 2006-09-18  Bruno Haible  <bruno@clisp.org>
47767
47768         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
47769
47770 2006-09-18  Bruno Haible  <bruno@clisp.org>
47771
47772         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
47773         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
47774         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
47775         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
47776         * m4/gettext.m4: Require autoconf >= 2.52.
47777         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
47778         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
47779         of gl_cv_header_inttypes_h.
47780
47781 2006-09-18  Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/javaversion.c: Include configmake.h.
47784
47785 2006-09-18  Bruno Haible  <bruno@clisp.org>
47786
47787         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
47788         avoid that the while loops be executed in a subshell.
47789
47790 2006-09-18  Bruno Haible  <bruno@clisp.org>
47791
47792         * MODULES.html.sh (func_module): Break long lines.
47793         Suggested by Bruce Korb <bkorb@gnu.org>.
47794
47795 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47796
47797         Speed up by a factor of 1.12.
47798         * gnulib-tool (nl): New variable.
47799         (func_import): Rewrite include directive extraction to only read each
47800         directive once.
47801
47802 2006-09-17  Bruno Haible  <bruno@clisp.org>
47803
47804         * modules/javaversion (Makefile.am): Remove DEFS setting.
47805         (Depends-on): Add configmake, for PKGDATADIR definition.
47806
47807 2006-09-17  Bruno Haible  <bruno@clisp.org>
47808
47809         * gnulib-tool (func_create_testdir): Rewrite all files at once.
47810
47811 2006-09-17  Bruno Haible  <bruno@clisp.org>
47812
47813         * gnulib-tool (func_append): New function, stolen from libtool.m4.
47814         (func_modules_transitive_closure, func_modules_add_dummy,
47815         func_modules_to_filelist, func_import, func_create_testdir,
47816         func_create_megatestdir, ...): Use it wherever possible.
47817         Suggested by Ralf Wildenhues.
47818
47819 2006-09-16  Karl Berry  <karl@gnu.org>
47820
47821         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
47822         to avoid sectioning errors.
47823         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
47824         [ifinfo]: blank line after @center-ed titles.
47825         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
47826         Spell FSF address consistently with others.
47827         (These changes approved by rms.)
47828
47829 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47830
47831         Speed up by a factor of 1.61.
47832         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
47833         already checked module names again.
47834
47835 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47836
47837         Speed up by a factor of 1.13.
47838         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
47839         for new_files, and the input to func_add_or_update.
47840
47841 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47842
47843         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
47844         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
47845
47846 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47847
47848         * modules/mkancesdirs (Depends-on): Add fcntl.
47849         * modules/savewd: New file.
47850         * MODULES.html.sh (File system functions): Add savewd.
47851
47852         * modules/configmake (Makefile.am): Add support for the
47853         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
47854
47855 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47856
47857         * m4/savewd.m4: New file.
47858
47859 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47860
47861         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
47862         (dirchownmod): New arg FD.  All callers changed.
47863         Use FD rather than opening the directory ourself, as opening is
47864         now the caller's responsibility.
47865         * lib/dirchownmod.h: Likewise.
47866         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
47867         hosts that require <sys/types.h> before <sys/stat.h>.  Include
47868         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
47869         (test_dir): Remove.
47870         (mkancesdirs): Return length of prefix of FILE that has already
47871         been made, or -2 if there is a child doing the work.  Redo
47872         algorithm so that it is O(N) rather than O(N**2).  Optimize away
47873         ".", and treat ".." specially since it might stray back into
47874         already-created areas.  Use a subprocess if necessary.  New arg
47875         WD; all users changed.  MAKE_DIR function should now return 1
47876         if it creates a directory that is not readable.  Return -2 if
47877         a child process is spun off.
47878         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
47879         Adjust signature to match code.
47880         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
47881         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
47882         all users changed.
47883         * lib/savewd.c, lib/savewd.h: New files.
47884
47885 2006-09-15  Jim Meyering  <jim@meyering.net>
47886
47887         * modules/rename-dest-slash: New module.
47888         * MODULES.html.sh (posix_compat): Add it here.
47889
47890         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
47891
47892 2006-09-15  Jim Meyering  <jim@meyering.net>
47893
47894         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
47895         file.
47896
47897         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
47898
47899 2006-09-15  Jim Meyering  <jim@meyering.net>
47900
47901         * lib/rename-dest-slash.c (has_trailing_slash): Use
47902         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
47903         (rpl_rename_dest_slash): Perform the cheaper trailing slash
47904         test before testing whether SRC is a directory.
47905         Suggestions from Bruno Haible.
47906
47907         Avoid a warning about an unused variable.
47908         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
47909         into the #ifdef block where it's used.
47910
47911         * lib/rename-dest-slash.c: New file.
47912
47913 2006-09-14  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/allocsa.c: Include <config.h> unconditionally.
47916         * lib/asnprintf.c: Likewise.
47917         * lib/asprintf.c: Likewise.
47918         * lib/c-strcasecmp.c: Likewise.
47919         * lib/c-strcasestr.c: Likewise.
47920         * lib/c-strncasecmp.c: Likewise.
47921         * lib/c-strstr.c: Likewise.
47922         * lib/classpath.c: Likewise.
47923         * lib/clean-temp.c: Likewise.
47924         * lib/concatpath.c: Likewise.
47925         * lib/copy-file.c: Likewise.
47926         * lib/csharpcomp.c: Likewise.
47927         * lib/csharpexec.c: Likewise.
47928         * lib/execute.c: Likewise.
47929         * lib/fatal-signal.c: Likewise.
47930         * lib/findprog.c: Likewise.
47931         * lib/fwriteerror.c: Likewise.
47932         * lib/gl_array_list.c: Likewise.
47933         * lib/gl_array_oset.c: Likewise.
47934         * lib/gl_avltree_list.c: Likewise.
47935         * lib/gl_avltree_oset.c: Likewise.
47936         * lib/gl_avltreehash_list.c: Likewise.
47937         * lib/gl_carray_list.c: Likewise.
47938         * lib/gl_linked_list.c: Likewise.
47939         * lib/gl_linkedhash_list.c: Likewise.
47940         * lib/gl_list.c: Likewise.
47941         * lib/gl_oset.c: Likewise.
47942         * lib/gl_rbtree_list.c: Likewise.
47943         * lib/gl_rbtree_oset.c: Likewise.
47944         * lib/gl_rbtreehash_list.c: Likewise.
47945         * lib/imaxabs.c: Likewise.
47946         * lib/imaxdiv.c: Likewise.
47947         * lib/javacomp.c: Likewise.
47948         * lib/javaexec.c: Likewise.
47949         * lib/javaversion.c: Likewise.
47950         * lib/linebreak.c: Likewise.
47951         * lib/localcharset.c: Likewise.
47952         * lib/lock.c: Likewise.
47953         * lib/mbchar.c: Likewise.
47954         * lib/mbswidth.c: Likewise.
47955         * lib/mkdtemp.c: Likewise.
47956         * lib/pipe.c: Likewise.
47957         * lib/printf-args.c: Likewise.
47958         * lib/printf-parse.c: Likewise.
47959         * lib/progname.c: Likewise.
47960         * lib/progreloc.c: Likewise.
47961         * lib/readlink.c: Likewise.
47962         * lib/sh-quote.c: Likewise.
47963         * lib/stpcpy.c: Likewise.
47964         * lib/stpncpy.c: Likewise.
47965         * lib/strcasecmp.c: Likewise.
47966         * lib/strcasestr.c: Likewise.
47967         * lib/strcspn.c: Likewise.
47968         * lib/striconv.c: Likewise.
47969         * lib/strncasecmp.c: Likewise.
47970         * lib/strnlen1.c: Likewise.
47971         * lib/strstr.c: Likewise.
47972         * lib/strtok_r.c: Likewise.
47973         * lib/tls.c: Likewise.
47974         * lib/tmpdir.c: Likewise.
47975         * lib/unicodeio.c: Likewise.
47976         * lib/unsetenv.c: Likewise.
47977         * lib/vasnprintf.c: Likewise.
47978         * lib/vasprintf.c: Likewise.
47979         * lib/wait-process.c: Likewise.
47980         * lib/xallocsa.c: Likewise.
47981         * lib/xsetenv.c: Likewise.
47982         * lib/xstriconv.c: Likewise.
47983
47984 2006-09-13  Simon Josefsson  <jas@extundo.com>
47985
47986         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
47987         that internally, suggested by Ralf Wildenhues
47988         <Ralf.Wildenhues@gmx.de>.
47989
47990 2006-09-13  Simon Josefsson  <jas@extundo.com>
47991
47992         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
47993         @LIBOBJS@.
47994         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47995
47996 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47997
47998         * lib/_fpending.c: Include <config.h> unconditionally, since we no
47999         longer worry about uses that don't define HAVE_CONFIG_H.
48000         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48001         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48002         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48003         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48004         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48005         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48006         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48007         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48008         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48009         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48010         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48011         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48012         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48013         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48014         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48015         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48016         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48017         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48018         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48019         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48020         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48021         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48022         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48023         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48024         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48025         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48026         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48027         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48028         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48029         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48030         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48031         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48032         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48033         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48034         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48035         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48036         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48037         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48038         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48039         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48040         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48041         Likewise.
48042
48043 2006-09-13  Eric Blake  <ebb9@byu.net>
48044
48045         * lib/getopt.c: Fix typo in last commit.
48046
48047 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48048
48049         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48050         dgettext.
48051
48052 2006-09-12  Jim Meyering  <jim@meyering.net>
48053
48054         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48055         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48056         Reported by Nelson H. F. Beebe.
48057
48058 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48059
48060         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48061         program_invocation_name and program_invocation_short_name are
48062         initialized.
48063         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48064         and program_invocation_short_name to argp.h, so they are visible
48065         to user programs.
48066         * lib/argp.h: Likewise
48067
48068 2006-09-10  Bruno Haible  <bruno@clisp.org>
48069
48070         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48071         m4/inttypes_h.m4, m4/uintmax_t.m4.
48072
48073 2006-09-10  Bruno Haible  <bruno@clisp.org>
48074
48075         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48076         gl_AC_TYPE_UINTMAX_T.
48077
48078 2006-09-10  Bruno Haible  <bruno@clisp.org>
48079
48080         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48081
48082 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48083
48084         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48085         convention.  Text proposed by Bruno Haible.
48086         (struct argp_option): Document the use of N_() wrappers.
48087
48088         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48089         '\v', and translate the two parts separately, instead of feeding
48090         the whole string to gettext.  This allows to exclude
48091         '\v' from the strings visible to the translator by writing doc
48092         strings as N_("..") "\v" N_("..").
48093
48094 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48095
48096         * config/srclist.txt: Undo latest change; the bug was fixed.
48097
48098 2006-09-09  Bruno Haible  <bruno@clisp.org>
48099
48100         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48101         assignments if building a library without libtool.
48102         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48103         in func_emit_lib_Makefile_am.
48104         (func_import): When building a static library libfoo.a, arrange to
48105         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48106         (func_create_testdir): Likewise.
48107         * modules/gc (configure.ac, Makefile.am): If building statically,
48108         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48109         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48110         * modules/striconv (configure.ac, Makefile.am): Likewise.
48111         Based on a suggestion by Ralf Wildenhues.
48112
48113 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48114
48115         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48116         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48117         Also:
48118
48119         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48120         Add year_2050_test to catch glibc bug 2821
48121         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48122
48123         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48124         Prefer #ifdef to #if.
48125
48126         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48127         Return from 'main' instead of calling 'exit'.
48128
48129 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48130
48131         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48132         returned the maximum time_t value rather than (time_t) -1.
48133         Problem originally reported by William Bardwell
48134         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48135
48136         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48137         Moved to here ...
48138         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48139         ... from here.
48140
48141 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48142
48143         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48144         2821 is fixed.
48145
48146 2006-09-08  Jim Meyering  <jim@meyering.net>
48147
48148         Don't make generated files read-only.  That would bother too many
48149         people.  However, do retain the ability to work when targets are
48150         read-only: remove the destination and temporary files before writing
48151         them (when generated via sed or echo), or by using the -f option for
48152         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48153         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48154         * modules/byteswap, modules/configmake, modules/fcntl:
48155         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48156         * modules/localcharset, modules/netinet_in, modules/poll:
48157         * modules/stdbool, modules/stdint, modules/sys_select:
48158         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48159
48160 2006-09-08  Jim Meyering  <jim@meyering.net>
48161
48162         Avoid new build failure on FreeBSD 6.0.
48163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48164         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48165         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48166
48167 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48168
48169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48170
48171 2006-09-07  Jim Meyering  <jim@meyering.net>
48172
48173         Fix global typo in last change: use chmod u-w, not chmod u-x.
48174         Spotted by Paul Eggert and Bruce Korb.
48175         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48176         * modules/byteswap, modules/configmake, modules/fcntl:
48177         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48178         * modules/localcharset, modules/netinet_in, modules/poll:
48179         * modules/stdbool, modules/stdint, modules/sys_select:
48180         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48181
48182 2006-09-06  Jim Meyering  <jim@meyering.net>
48183
48184         Make generated files be read-only.
48185         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48186         Ensure that each generated file is now read-only.
48187         * modules/argz: Likewise.
48188         * modules/arpa_inet: Likewise.
48189         * modules/byteswap: Likewise.
48190         * modules/configmake: Likewise.
48191         * modules/fcntl: Likewise.
48192         * modules/fnmatch: Likewise.
48193         * modules/getopt: Likewise.
48194         * modules/glob: Likewise.
48195         * modules/inttypes: Likewise.
48196         * modules/netinet_in: Likewise.
48197         * modules/poll: Likewise.
48198         * modules/stdbool: Likewise.
48199         * modules/stdint: Likewise.
48200         * modules/sys_select: Likewise.
48201         * modules/sys_socket: Likewise.
48202         * modules/sys_stat: Likewise.
48203         * modules/sysexits: Likewise.
48204         * modules/localcharset: Same as above, but continue using temporary
48205         file named "t-$@" (why different?) rather than the "$@-t" used
48206         everywhere else.
48207
48208         * modules/sysexits (Makefile.am): Replace literal occurrences
48209         of "sysexit.h" more readable, and more consistent, "$@".
48210
48211 2006-09-06  Bruno Haible  <bruno@clisp.org>
48212
48213         * modules/striconv: New file.
48214         * modules/xstriconv: New file.
48215         * MODULES.html.sh (Internationalization functions): Add striconv,
48216         xstriconv.
48217
48218 2006-09-06  Bruno Haible  <bruno@clisp.org>
48219
48220         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48221         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48222         not using libtool correctly.
48223
48224 2006-09-06  Bruno Haible  <bruno@clisp.org>
48225
48226         * lib/striconv.h: New file.
48227         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48228         iconvstring.c.
48229         * lib/xstriconv.h: New file.
48230         * lib/xstriconv.c: New file.
48231
48232 2006-09-06  Bruno Haible  <bruno@clisp.org>
48233
48234         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48235         lib_..._LDFLAGS.
48236
48237 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48238
48239         * lib/argz_.h: Sync from Libtool.
48240
48241         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48242                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48243
48244         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48245
48246 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48247
48248         * modules/trim: New file.
48249
48250 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48251
48252         * lib/trim.h: New file.
48253         * lib/trim.c: New file.
48254
48255 2006-09-05  Bruno Haible  <bruno@clisp.org>
48256
48257         * MODULES.html.sh (String handling): Add trim.
48258
48259 2006-09-04  Karl Berry  <karl@gnu.org>
48260
48261         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48262         until next release.
48263
48264 2006-09-03  Bruno Haible  <bruno@clisp.org>
48265
48266         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48267         correctly.
48268
48269 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48270
48271         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48272         not gl_GETLOADAVG.  Omit unneeded semicolons.
48273         Problems reported by Ralf Wildenhues in
48274         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48275         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48276         at the end, which is the usual gnulib style.
48277
48278         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48279         of doing all the work ourselves.
48280         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48281         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48282
48283 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48284
48285         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48286         Problem reported by Ralf Wildenhues in
48287         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48288
48289         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48290         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48291
48292 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48293
48294         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48295         yesterday's patch by changing test -n to test -z.
48296
48297 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48298
48299         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48300         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48301         the former is now obsolescent.
48302
48303         * modules/chdir-long (Depends-on): Add fcntl.
48304
48305 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48306
48307         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48308         obsolescent, and programs should use gnulib instead.
48309         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48310         but with prefixes changed.
48311
48312 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48313
48314         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48315         or stdbool.h, because they might not exist while configuring.
48316
48317         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48318         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48319         does that for us.
48320         (O_DIRECTORY): Remove.
48321
48322 2006-08-31  Eric Blake  <ebb9@byu.net>
48323
48324         * gnulib-tool: Don't let emacs change spaces to TAB.
48325
48326 2006-08-31  Bruno Haible  <bruno@clisp.org>
48327
48328         * gnulib-tool: When calling func_import more than once, do it in a
48329         subshell.
48330         Reported by Eric Blake <ebb9@byu.net>.
48331
48332 2006-08-31  Bruno Haible  <bruno@clisp.org>
48333
48334         * gnulib-tool (nl): Remove variable.
48335         (sed_transform_lib_file): Use more robust test for config-h module.
48336         (func_import): Fix typo in 2006-08-25 patch.
48337
48338 2006-08-31  Bruno Haible  <bruno@clisp.org>
48339
48340         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48341         specified, augment Makefile.am variables instead of assigning them.
48342
48343 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48344
48345         Work around a bug in both the Linux and SunOS 64-bit kernels:
48346         nanosleep mishandles sleeps for longer than 2**31 seconds.
48347         Problem reported by Frank v Waveren in
48348         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48350         Check for nanosleep bug.
48351         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48352
48353 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48354
48355         Work around a bug in both the Linux and SunOS 64-bit kernels:
48356         nanosleep mishandles sleeps for longer than 2**31 seconds.
48357         Problem reported by Frank v Waveren in
48358         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48359         * lib/nanosleep.c (BILLION): New constant.
48360         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48361         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48362         implementation.
48363
48364 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48365
48366         * modules/nanosleep (Depends-on): Add gettime.
48367
48368 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48369         and Simon Josefsson  <jas@extundo.com>
48370         and Oskar Liljeblad  <oskar@osk.mine.nu>
48371
48372         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48373         * gnulib-tool (func_import): New license type 'unmodifiable license
48374         text'.
48375         * modules/fdl: Use it.  Longer description.
48376         * module/gpl, module/lgpl: New files.
48377
48378 2006-08-30  Jim Meyering  <jim@meyering.net>
48379
48380         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48381         shadowing the parameter.
48382
48383 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48384
48385         Sync from Libtool:
48386
48387         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48388
48389         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48390         sharing with gnulib.  Report by Eric Blake.
48391
48392 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48393
48394         * modules/isapipe: New file.
48395         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48396
48397 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48398
48399         * modules/configmake (Makefile.am): Add a comment, and omit
48400         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48401         by Bruno Haible.
48402
48403 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48404
48405         * m4/isapipe.m4: New file.
48406
48407 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48408
48409         * lib/isapipe.c, lib/isapipe.h: New files.
48410
48411 2006-08-29  Jim Meyering  <jim@meyering.net>
48412
48413         * modules/configmake (Makefile.am): Make configmake.h depend on
48414         Makefile.  Otherwise, a stale configmake.h could hang around.
48415
48416 2006-08-29  Eric Blake  <ebb9@byu.net>
48417
48418         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48419         resolution of upstream bug 3044.
48420
48421 2006-08-29  Bruno Haible  <bruno@clisp.org>
48422
48423         * modules/localcharset (Depends-on): Add configmake.
48424         (Makefile.am): Remove setting of LIBDIR through DEFS.
48425
48426 2006-08-29  Bruno Haible  <bruno@clisp.org>
48427
48428         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48429         defined.
48430
48431 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48432
48433         * modules/fcntl: New file.
48434         * modules/chdir-safer (Depends-on): Add fcntl.
48435         * modules/fts: Likewise.
48436         * modules/mkdir-p: Likewise.
48437
48438         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48439         This undoes the most recent change, since we're now addressing the
48440         problem in a different way.
48441
48442         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48443         into output, since the output might be called Makefile.am even
48444         if $makefile_name is something different.
48445         (func_import): Use $makefile_am rather than
48446         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48447         empty.
48448
48449         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48450
48451 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48452
48453         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48454         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48455         recent change to stdint.m4, since we're now addressing the problem in a
48456         different way.
48457
48458 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48459
48460         * m4/fcntl_h.m4: New file.
48461
48462 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48463
48464         * lib/fcntl_.h: New file.
48465         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48466         the fcntl module.
48467         * lib/dirchownmod.c: Likewise.
48468         * lib/fts.c: Likewise.
48469
48470         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48471         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48472         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48473         just before including <inttypes.h>, to avoid circular inclusion.
48474
48475 2006-08-28  Jim Meyering  <jim@meyering.net>
48476
48477         * doc/visibility.texi: Actually read and correct the grammar of the
48478         sentence affected by yesterday's change.
48479
48480 2006-08-28  Eric Blake  <ebb9@byu.net>
48481
48482         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48483         needs wrapper.
48484
48485 2006-08-28  Eric Blake  <ebb9@byu.net>
48486
48487         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48488
48489 2006-08-28  Eric Blake  <ebb9@byu.net>
48490
48491         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48492
48493 2006-08-28  Bruno Haible  <bruno@clisp.org>
48494
48495         * modules/c-strstr: New file, from GNU gettext.
48496         * MODULES.html.sh (String handling): Add c-strstr.
48497
48498 2006-08-28  Bruno Haible  <bruno@clisp.org>
48499
48500         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48501         macros.
48502         Reported by Eric Blake.
48503
48504 2006-08-28  Bruno Haible  <bruno@clisp.org>
48505
48506         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48507         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48508         * lib/vasprintf.c: Include errno.h, limits.h.
48509         (EOVERFLOW): New fallback definition.
48510         (vasprintf): Test here whether the string length is > INT_MAX.
48511         * lib/vsnprintf.c: Include errno.h, limits.h.
48512         (EOVERFLOW): New fallback definition.
48513         (vsnprintf): Fix bug when generated string was too long for the buffer.
48514         Test here whether the string length is > INT_MAX.
48515
48516 2006-08-28  Bruno Haible  <bruno@clisp.org>
48517
48518         * lib/inttypes_.h (SCNX*): Remove definitions.
48519         Reported by Eric Blake.
48520
48521 2006-08-28  Bruno Haible  <bruno@clisp.org>
48522
48523         * lib/c-strstr.h: New file, from GNU gettext.
48524         * lib/c-strstr.c: New file, from GNU gettext.
48525
48526 2006-08-28  Bruno Haible  <bruno@clisp.org>
48527
48528         * gnulib-tool: Reorder some statements.
48529
48530 2006-08-28  Bruno Haible  <bruno@clisp.org>
48531
48532         * gnulib-tool: New option --makefile-name.
48533         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48534         $makefile_name.
48535         (func_import): Write $makefile_name to the cache file, and read it from
48536         there unless explicitly specified. Use $makefile_name as file name
48537         instead of Makefile.am. Adjust the recommendations accordingly.
48538
48539 2006-08-28  Bruno Haible  <bruno@clisp.org>
48540
48541         * gnulib-tool (func_verify_module): Check against misapplying patch.
48542
48543 2006-08-28  Bruno Haible  <bruno@clisp.org>
48544
48545         * gnulib-tool (func_relativize, func_relconcat): New functions.
48546         Give an error if --local-dir is given with --update.
48547         Remove trailing slashes from $local_gnulib_dir.
48548         (func_import): Store the relativized $local_gnulib_dir in
48549         gnulib-cache.m4, and read it from there if not specified explicitly.
48550
48551 2006-08-28  Bruno Haible  <bruno@clisp.org>
48552
48553         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
48554         is the current directory. Respect also $local_gnulib_dir.
48555
48556 2006-08-28  Bruno Haible  <bruno@clisp.org>
48557             Simon Josefsson  <jas@extundo.com>
48558
48559         BeOS portability.
48560         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
48561
48562 2006-08-27  Jim Meyering  <jim@meyering.net>
48563
48564         * doc/visibility.texi: Remove duplicate word: "pointer".
48565
48566 2006-08-26  Bruno Haible  <bruno@clisp.org>
48567
48568         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
48569         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
48570         (Makefile.am): Create inttypes.h from inttypes_.h.
48571         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
48572
48573         * modules/imaxabs: New file.
48574
48575         * modules/imaxdiv: New file.
48576
48577 2006-08-26  Bruno Haible  <bruno@clisp.org>
48578
48579         * m4/inttypes.m4: New file.
48580         * m4/_inttypes_h.m4: Remove file.
48581         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
48582         PRI_MACROS_BROKEN.
48583         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
48584
48585         * m4/imaxabs.m4: New file.
48586
48587         * m4/imaxdiv.m4: New file.
48588
48589 2006-08-26  Bruno Haible  <bruno@clisp.org>
48590
48591         * lib/inttypes_.h: New file.
48592         * lib/inttypes.h: Remove file.
48593         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
48594
48595         * lib/imaxabs.c: New file.
48596
48597         * lib/imaxdiv.c: New file.
48598
48599 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48600
48601         New config-h module, so that "make" output needn't be cluttered
48602         by -DHAVE_CONFIG_H.
48603         * MODULES.html.sh (Support for building libraries and executables):
48604         Add config-h.
48605         * modules/config-h: New file.
48606         * gnulib-tool (nl, sed_transform_lib_file): New vars.
48607         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
48608         the config-h module is used.
48609
48610         New configmake module, so that "make" output needn't be cluttered
48611         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
48612         * MODULES.html.sh (Support for building libraries and executables):
48613         Add configmake.
48614         * modules/configmake: New file.
48615
48616 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48617
48618         * m4/config-h.m4: New file.
48619
48620 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * config/srclist.txt: Add elisp-comp.
48623
48624 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48625
48626         * MODULES.html.sh (Support for building libraries and executables):
48627         Add elisp-comp.
48628         * build-aux/elisp-comp: New file.
48629         * modules/elisp-comp: New file.
48630
48631 2006-08-24  Bruno Haible  <bruno@clisp.org>
48632
48633         * gnulib-tool (func_create_testdir): Use non-default values of
48634         sourcebase and m4base.
48635
48636 2006-08-24  Bruno Haible  <bruno@clisp.org>
48637
48638         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
48639         HTML structure.
48640
48641 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48642
48643         * modules/openat (Depends-on): Add lchown.
48644
48645 2006-08-23  Bruno Haible  <bruno@clisp.org>
48646
48647         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
48648         of gl_LOCK_EARLY instead of gl_LOCK.
48649
48650 2006-08-23  Bruno Haible  <bruno@clisp.org>
48651
48652         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
48653         on OSF/1 to no.
48654         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
48655
48656 2006-08-23  Bruno Haible  <bruno@clisp.org>
48657
48658         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
48659         as unusable.
48660
48661         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
48662         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
48663         (gl_LOCK): New macro.
48664
48665 2006-08-22  Simon Josefsson  <jas@extundo.com>
48666
48667         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
48668         to md5 module.
48669
48670 2006-08-22  Simon Josefsson  <jas@extundo.com>
48671
48672         * MODULES.html.sh: Add "Support for maintaining and release
48673         projects".
48674
48675         * build-aux/gnupload: New file, from coreutils.
48676
48677 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48678
48679         Avoid the need for AC_LIBSOURCES in m4 macros.
48680         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
48681         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
48682         * modules/check-version (EXTRA_DIST): Add check-version.h.
48683         * modules/crc (EXTRA_DIST): Add crc.h.
48684         * modules/des (EXTRA_DIST): Add des.h.
48685         * modules/gc (EXTRA_DIST): Add gc.h.
48686         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
48687         * modules/getline (EXTRA_DIST): Add getline.h.
48688         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
48689         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
48690         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
48691         * modules/md2 (EXTRA_DIST): Add md2.h.
48692         * modules/md4 (EXTRA_DIST): Add md4.h.
48693         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
48694         * modules/read-file (EXTRA_DIST): Add read-file.h.
48695         * modules/readline (EXTRA_DIST): Add readline.h.
48696         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
48697         rijndael-api-fst.h.
48698
48699 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48700
48701         * m4/rijndael.m4 (gl_ARCFOUR):
48702         * m4/arctwo.m4 (gl_ARCTWO):
48703         * m4/check-version.m4 (gl_CHECK_VERSION):
48704         * m4/crc.m4 (gl_CRC):
48705         * m4/des.m4 (gl_DES):
48706         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
48707         * m4/gc.m4 (gl_GC):
48708         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
48709         * m4/getline.m4 (gl_FUNC_GETLINE):
48710         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
48711         * m4/hmac-md5.m4 (gl_HMAC_MD5):
48712         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
48713         * m4/md2.m4 (gl_MD2):
48714         * m4/md4.m4 (gl_MD4):
48715         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
48716         * m4/read-file.m4 (gl_FUNC_READ_FILE):
48717         * m4/readline.m4 (gl_FUNC_READLINE):
48718         * m4/rijndael.m4 (gl_RIJNDAEL):
48719         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48720         to get the necessary .h files and whatnot.
48721
48722 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48723
48724         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
48725         gnulib rather than the other way around.
48726         * config/srclistvars.sh (COREUTILS): Remove.
48727
48728 2006-08-22  Jim Meyering  <jim@meyering.net>
48729
48730         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
48731
48732         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
48733
48734 2006-08-22  Eric Blake  <ebb9@byu.net>
48735
48736         * modules/regexprops-generic: New file.
48737         * MODULES.html.sh (Support for building documentation): List it.
48738
48739 2006-08-22  Eric Blake  <ebb9@byu.net>
48740
48741         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
48742         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48743         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
48744         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
48745
48746 2006-08-22  Bruno Haible  <bruno@clisp.org>
48747
48748         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
48749         and lib_LTLIBRARIES like the other lib_* variables.
48750
48751 2006-08-22  Bruno Haible  <bruno@clisp.org>
48752
48753         * build-aux/x-to-1.in: New file, from GNU gettext.
48754
48755 2006-08-22  Bruno Haible  <bruno@clisp.org>
48756
48757         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
48758         <utmpx.h> exists.
48759
48760 2006-08-22  Bruno Haible  <bruno@clisp.org>
48761
48762         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
48763         <utmpx.h> exists.
48764
48765 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48766
48767         BeOS portability.
48768         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
48769         exist.
48770         Problem reported by Bruno Haible.
48771
48772 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48773
48774         Avoid the need for AC_LIBSOURCES in m4 macros.
48775         * modules/acl (EXTRA_DIST): Add acl.h.
48776         * modules/argmatch (Files): Add m4/argmatch.m4.
48777         (configure.ac): Add gl_ARGMATCH.
48778         (EXTRA_DIST): Renamed from lib_SOURCES, for
48779         consistency with the other modules.  Remove argmatch.c.
48780         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
48781         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
48782         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
48783         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
48784         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
48785         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
48786         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
48787         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
48788         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
48789         * modules/closeout (EXTRA_DIST): Add closeout.h.
48790         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
48791         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
48792         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
48793         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
48794         dirname.h; remove basename.c and stripslash.c.
48795         * modules/exclude (EXTRA_DIST): Add exclude.h.
48796         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
48797         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
48798         * modules/file-type (EXTRA_DIST): Add file-type.h.
48799         * modules/filemode (EXTRA_DIST): Add filemode.h.
48800         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
48801         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48802         * modules/fpending (EXTRA_DIST): Add __fpending.h.
48803         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
48804         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
48805         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
48806         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
48807         * modules/getdate (EXTRA_DIST): Add getdate.c.
48808         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
48809         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
48810         * modules/getpass (EXTRA_DIST): Add getpass.h.
48811         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
48812         * modules/group-member (EXTRA_DIST): Add group-member.h.
48813         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
48814         * modules/hash (EXTRA_DIST): Add hash.h.
48815         * modules/human (EXTRA_DIST): Add human.h.
48816         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
48817         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
48818         * modules/lchown (EXTRA_DIST): Add lchown.h.
48819         * modules/long-options (EXTRA_DIST): Add long-options.h.
48820         * modules/lstat (EXTRA_DIST): Add lstat.h.
48821         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
48822         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
48823         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
48824         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
48825         * modules/memxor (EXTRA_DIST): Add memxor.h.
48826         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
48827         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
48828         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
48829         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
48830         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
48831         * modules/physmem (EXTRA_DIST): Add physmem.h.
48832         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
48833         * modules/posixver (EXTRA_DIST): Add posixver.h.
48834         * modules/quote (EXTRA_DIST): Add quote.h.
48835         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
48836         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
48837         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
48838         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
48839         regex_internal.h regexec.c.
48840         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
48841         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
48842         * modules/same (EXTRA_DIST): Add same.h.
48843         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
48844         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
48845         * modules/savedir (EXTRA_DIST): Add savedir.h.
48846         * modules/sha1 (EXTRA_DIST): Add sha1.h.
48847         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
48848         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
48849         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
48850         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
48851         * modules/strdup (EXTRA_DIST): Add strdup.h.
48852         * modules/strftime (EXTRA_DIST): Add strftime.h.
48853         * modules/strndup (EXTRA_DIST): Add strndup.h.
48854         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
48855         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
48856         * modules/time_r (EXTRA_DIST): Add time_r.h.
48857         * modules/timespec (EXTRA_DIST): Add timespec.h.
48858         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48859         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
48860         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
48861         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
48862         * modules/userspec (EXTRA_DIST): Add userspec.h.
48863         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
48864         * modules/utimens (EXTRA_DIST): Add utimens.h.
48865         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
48866         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
48867         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
48868         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
48869         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
48870         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
48871         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
48872         * modules/yesno (EXTRA_DIST): Add yesno.h.
48873
48874 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48875
48876         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
48877
48878         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
48879         * m4/dev-ino.m4, same-inode.m4: Remove.
48880
48881         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
48882         * m4/acl.m4 (AC_FUNC_ACL):
48883         * m4/backupfile.m4 (gl_BACKUPFILE):
48884         * m4/c-strtod.m4 (gl_C99_STRTOLD):
48885         * m4/canon-host.m4 (gl_CANON_HOST):
48886         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48887         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
48888         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
48889         * m4/cloexec.m4 (gl_CLOEXEC):
48890         * m4/close-stream.m4 (gl_CLOSE_STREAM):
48891         * m4/closeout.m4 (gl_CLOSEOUT):
48892         * m4/dirfd.m4 (gl_FUNC_DIRFD):
48893         * m4/dirname.m4 (gl_DIRNAME):
48894         * m4/exclude.m4 (gl_EXCLUDE):
48895         * m4/exitfail.m4 (gl_EXITFAIL):
48896         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
48897         * m4/file-type.m4 (gl_FILE_TYPE):
48898         * m4/filemode.m4 (gl_FILEMODE):
48899         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
48900         * m4/fpending.m4 (gl_FUNC_FPENDING):
48901         * m4/fprintftime.m4 (gl_FPRINTFTIME):
48902         * m4/fts.m4 (gl_FUNC_FTS):
48903         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
48904         * m4/getdate.m4 (gl_GETDATE):
48905         * m4/gethrxtime.m4 (gl_GETHRXTIME):
48906         * m4/getpagesize.m4 (gl_GETPAGESIZE):
48907         * m4/getpass.m4 (gl_FUNC_GETPASS):
48908         * m4/gettime.m4 (gl_GETTIME):
48909         * m4/getugroups.m4 (gl_GETUGROUPS):
48910         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
48911         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
48912         * m4/hard-locale.m4 (gl_HARD_LOCALE):
48913         * m4/hash.m4 (gl_HASH):
48914         * m4/idcache.m4 (gl_IDCACHE):
48915         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
48916         * m4/lchown.m4 (gl_FUNC_LCHOWN):
48917         * m4/long-options.m4 (gl_LONG_OPTIONS):
48918         * m4/lstat.m4 (gl_FUNC_LSTAT):
48919         * m4/md5.m4 (gl_MD5):
48920         * m4/memcasecmp.m4 (gl_MEMCASECMP):
48921         * m4/memcoll.m4 (gl_MEMCOLL):
48922         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
48923         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
48924         * m4/memxor.m4 (gl_MEMXOR):
48925         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
48926         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
48927         * m4/modechange.m4 (gl_MODECHANGE):
48928         * m4/mountlist.m4 (gl_MOUNTLIST):
48929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48930         * m4/openat.m4 (gl_FUNC_OPENAT):
48931         * m4/pathmax.m4 (gl_PATHMAX):
48932         * m4/physmem.m4 (gl_PHYSMEM):
48933         * m4/posixtm.m4 (gl_POSIXTM):
48934         * m4/posixver.m4 (gl_POSIXVER):
48935         * m4/quote.m4 (gl_QUOTE):
48936         * m4/quotearg.m4 (gl_QUOTEARG):
48937         * m4/readtokens.m4 (gl_READTOKENS):
48938         * m4/readutmp.m4 (gl_READUTMP):
48939         * m4/regex.m4 (gl_REGEX):
48940         * m4/safe-read.m4 (gl_SAFE_READ):
48941         * m4/safe-write.m4 (gl_SAFE_WRITE):
48942         * m4/same.m4 (gl_SAME):
48943         * m4/save-cwd.m4 (gl_SAVE_CWD):
48944         * m4/savedir.m4 (gl_SAVEDIR):
48945         * m4/settime.m4 (gl_SETTIME):
48946         * m4/sha1.m4 (gl_SHA1):
48947         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
48948         * m4/stat-macros.m4 (gl_STAT_MACROS):
48949         * m4/stat-time.m4 (gl_STAT_TIME):
48950         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
48951         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
48952         * m4/strdup.m4 (gl_FUNC_STRDUP):
48953         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
48954         * m4/strndup.m4 (gl_FUNC_STRNDUP):
48955         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
48956         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
48957         * m4/time_r.m4 (gl_TIME_R):
48958         * m4/timespec.m4 (gl_TIMESPEC):
48959         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
48960         * m4/unlinkdir.m4 (gl_UNLINKDIR):
48961         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
48962         * m4/userspec.m4 (gl_USERSPEC):
48963         * m4/utimecmp.m4 (gl_UTIMECMP):
48964         * m4/utimens.m4 (gl_UTIMENS):
48965         * m4/xalloc.m4 (gl_XALLOC):
48966         * m4/xgetcwd.m4 (gl_XGETCWD):
48967         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
48968         * m4/xreadlink.m4 (gl_XREADLINK):
48969         * m4/xstrtod.m4 (gl_XSTRTOD):
48970         * m4/yesno.m4 (gl_YESNO):
48971         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48972         to get the necessary .h files and whatnot.
48973
48974 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
48975             Bruno Haible  <bruno@clisp.org>
48976
48977         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
48978         /bin/sh understanding of '!' conditional negation.
48979
48980 2006-08-21  Jim Meyering  <jim@meyering.net>
48981
48982         * modules/openat (Depends-on): Really alphabetize.
48983
48984         * modules/acl (Depends-on): Add error and quote.
48985
48986         * check-module (find_included_lib_files): Add at-func.c to the
48987         ok-to-include-more-than-once white list.
48988
48989         * modules/openat (Depends-on): Add lstat.  Alphabetize.
48990
48991 2006-08-21  Bruno Haible  <bruno@clisp.org>
48992
48993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48994         Emit a pkgdata_DATA variable only if some snippets add contents to it.
48995         Reported by Martin Lambers <marlam@marlam.de>.
48996
48997 2006-08-21  Bruno Haible  <bruno@clisp.org>
48998
48999         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49000         specify an installation location, don't emit a noinst_LIBRARIES or
49001         noinst_LTLIBRARIES assignment.
49002
49003 2006-08-21  Bruno Haible  <bruno@clisp.org>
49004
49005         BeOS portability.
49006         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49007         BeOS has mbrtowc() but no <wctype.h>.
49008
49009 2006-08-21  Bruno Haible  <bruno@clisp.org>
49010
49011         BeOS portability.
49012         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49013         exist.
49014
49015 2006-08-21  Bruno Haible  <bruno@clisp.org>
49016
49017         BeOS portability.
49018         * lib/mbchar.h: Include <wctype.h> only if it exists.
49019
49020 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49021
49022         Remove files that are no longer needed by their respective modules.
49023         * m4/obstack.m4: Remove.
49024         * m4/strerror_r.m4: Remove.
49025         * m4/uint32_t.m4: Remove.
49026         * m4/uintptr_t.m4: Remove.
49027         * m4/ullong_max.m4: Remove.
49028         * m4/xstrtoimax.m4: Remove.
49029         * m4/xstrtoumax.m4: Remove.
49030
49031         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49032         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49033         dependencies now capture this.
49034
49035         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49036         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49037         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49038         * m4/human.m4 (gl_HUMAN): Likewise.
49039         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49040         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49041
49042         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49043
49044         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49045         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49046         stdint.
49047         * m4/human.m4 (gl_HUMAN): Likewise.
49048         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49049         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49050         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49051         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49052         * m4/xstrtol (gl_XSTRTOL): Likewise.
49053
49054         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49055         AC_TYPE_LONG_LONG_INT.
49056         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49057         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49058         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49059         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49060
49061         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49062         on stdbool.
49063
49064         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49065         (gl_PREREQ_XSTRTOUL): Remove.
49066
49067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49068
49069         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49070         mode.
49071
49072 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49073
49074         Add and change modules to make it easier for coreutils to use
49075         gnulib-tool.
49076         * modules/backupfile (Files): Remove m4/d-ino.m4.
49077         (Depends-on): Add d-ino.
49078         * modules/cycle-check (Depends-on): Add stdint.
49079         (lib_SOURCES): Add cycle-check.h.
49080         * modules/d-ino: New module.
49081         * modules/d-type: New module.
49082         * modules/error (Files): Remove m4/strerror_r.m4.
49083         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49084         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49085         m4/inttypes_h.m4, m4/uintmax_t.m4.
49086         (Depends-on): Add stdint.
49087         (lib_SOURCES): Add fsusage.h.
49088         * modules/getcwd (Files): Remove d-ino.m4.
49089         (Depends-on): Add d-ino.
49090         * modules/getndelim2 (Depends-on): Add stdint.
49091         * modules/glob (Files): Remove m4/d-type.m4.
49092         (Depends-on): Add d-type.
49093         * modules/host-os: New module.
49094         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49095         m4/inttypes_h.m4, m4/uintmax_t.m4.
49096         * Depends-on: Add stdint.
49097         (lib_SOURCES): Add human.h.
49098         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49099         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49100         m4/uintmax_t.m4, m4/ulonglong.m4.
49101         (Depends-on): Add stdint.
49102         (EXTRA_DIST): Add inttostr.h.
49103         * modules/lchmod: New module.
49104         * modules/link-follow: New module.
49105         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49106         (Depends-on): Add lchmod.
49107         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49108         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49109         (Depends-on): Add stdint.
49110         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49111         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49112         (Depends-on): Add stdint.
49113         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49114         * modules/perl: New module.
49115         * modules/regex (Depends-on): Add stdint.
49116         * modules/rmdir-errno: New module.
49117         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49118         m4/intmax_t.m4.
49119         (Depends-on): Add stdint.
49120         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49121         m4/uintmax_t.m4.
49122         (Depends-on): Add stdint.
49123         * modules/unlink-busy: New module.
49124         * modules/utimecmp (Depends-on): Add stdint.
49125         * modules/uptime: New module.
49126         * modules/winsz-ioctl: New module.
49127         * modules/winsz-termios: New module.
49128         * modules/xnanosleep (Depends-on): Add nanosleep.
49129         * modules/ullong_max: Remove.
49130         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49131         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49132         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49133         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49134         (Depends-on): Add inttypes.
49135         (lib_SOURCES): Add xstrtol.h.
49136         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49137         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49138         * MODULES.html.sh: Move 'assert' into the assert section.
49139         Move 'dummy' into the linking section.
49140         Remove ullong_max.
49141         Add section for compatibility checks for POSIX:2001 functions,
49142         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49143         winsz-ioctl, and winsz-termios into it.
49144         Add lchmod.
49145         Add top-level Misc section and put host-os, perl, and uptime
49146         into it.
49147
49148 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49149
49150         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49151         now assume the stdint module.  Do not include inttypes.h.
49152         * lib/fsusage.h: Likewise.
49153         * lib/getndelim2.c: Likewise.
49154         * lib/human.h: Likewise.
49155         * lib/inttostr.h: Likewise.
49156         * lib/obstack.c: Likewise.
49157         * lib/regex_internal.h: Likewise.
49158         * lib/tempname.c: Likewise.
49159         * lib/utimecmp.c: Likewise.
49160         * lib/xstrtol.h: Likewise.
49161
49162         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49163
49164         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49165         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49166         * lib/xtime.h: Likewise.
49167
49168 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49169
49170         * modules/openat (Files): Add lib/fchmodat.c.
49171         Fixes problem reported by Jay Youngman.
49172
49173 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49174
49175         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49176         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49177
49178 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49179             Bruno Haible  <bruno@clisp.org>
49180
49181         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49182         and is a script that invokes bison. Tighten the code. Add comments.
49183
49184 2006-08-18  Jim Meyering  <jim@meyering.net>
49185
49186         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49187         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49188         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49189         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49190
49191 2006-08-18  Bruno Haible  <bruno@clisp.org>
49192
49193         * modules/bison-i18n: New file.
49194         * MODULES.html.sh (Internationalization functions): Add it.
49195
49196 2006-08-18  Bruno Haible  <bruno@clisp.org>
49197
49198         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49199         sys/statvfs.h. When getmntinfo was found, check its declaration and
49200         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49201
49202 2006-08-18  Bruno Haible  <bruno@clisp.org>
49203
49204         * m4/bison-i18n.m4: New file, from bison.
49205
49206 2006-08-18  Bruno Haible  <bruno@clisp.org>
49207
49208         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49209         (ME_DUMMY): Treat "kernfs" as a dummy.
49210         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49211
49212 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49213
49214         Update from coreutils.
49215
49216         2006-08-15  Jim Meyering  <jim@meyering.net>
49217
49218         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49219
49220         2006-01-17  Jim Meyering  <jim@meyering.net>
49221
49222         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49223
49224         2006-01-11  Jim Meyering  <jim@meyering.net>
49225
49226         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49227         Check for the lchmod function.
49228
49229 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49230
49231         Update from coreutils.
49232
49233         * lib/__fpending.h: Add copyright notice.
49234         * lib/fprintftime.h: Likewise.
49235         * lib/savedir.c: Use (C) in copyright notice.
49236         * lib/savedir.h: Likewise.
49237
49238         2006-08-15  Jim Meyering  <jim@meyering.net>
49239
49240         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49241         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49242         in support of the EXPECTED_ERRNO macro.
49243         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49244         definitions.  Instead, define the appropriate symbols and include
49245         "at-func.c".
49246         * lib/mkdirat.c (mkdirat): Likewise.
49247         * lib/fchmodat.c (fchmodat): Likewise.
49248         (ENOSYS): Remove definition.
49249         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49250         it.  Don't include "unistd--.h" -- it wasn't ever used.
49251
49252         2006-01-17  Jim Meyering  <jim@meyering.net>
49253
49254         Rewrite fts.c not to change the current working directory,
49255         by using openat, fstatat, fdopendir, etc..
49256
49257         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49258         (HAVE_OPENAT_SUPPORT): Define.
49259         [_LIBC] (fchdir): Don't undef or define; no longer used.
49260         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49261         Now, this `function' always succeeds, and consumes its file descriptor
49262         parameter -- so callers must not close such FDs.  Update callers.
49263         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49264         (diropen): Add parameter, SP.  Adjust all callers.
49265         Implement using diropen_fd, rather than open.
49266         (fts_open): Initialize new member, fts_cwd_fd.
49267         Remove fts_rft-setting code.
49268         (fts_close): Close fts_cwd_fd, if necessary.
49269         (__opendir2): Define in terms of opendir or opendirat,
49270         depending on whether the FST_NOCHDIR flag is set.
49271         (fts_build): Since fts_safe_changedir consumes its FD, and since
49272         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49273         and close the dup'd file descriptor upon failure.
49274         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49275         (fts_safe_changedir): Tweak semantics to reflect that this function
49276         now calls cwd_advance_fd and hence consumes its FD argument.
49277         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49278         [struct FTS] (fts_rft): Remove now-unused member.
49279         [struct FTS] (fts_cycle.state): Improve comment.
49280
49281         * lib/openat.c (openat_needs_fchdir): New function.
49282         * lib/openat.h (openat_needs_fchdir): Declare it.
49283
49284 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49285
49286         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49287         Problem and fix reported by Pádraig Brady in
49288         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49289
49290 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49291
49292         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49293
49294 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49295
49296         * lib/memcoll.c (memcoll): Optimize for the common case where the
49297         arguments are bytewise equal.
49298
49299 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49300
49301         * doc/regexprops-generic.texi: Add a copyright notice.
49302
49303 2006-08-15  Bruno Haible  <bruno@clisp.org>
49304
49305         * modules/tmpdir (License): Change to LGPL.
49306
49307 2006-08-15  Bruno Haible  <bruno@clisp.org>
49308
49309         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49310         module.
49311
49312 2006-08-14  Simon Josefsson  <jas@extundo.com>
49313
49314         * config/srclist.txt: Add gnupload.
49315
49316 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49317
49318         Change copyright notice from LGPL 2 to GPL 2, since that's the
49319         standard form used in the gnulib repository.
49320         * tests/test-lock.c: Likewise.
49321         * tests/test-stdint.c: Likewise.
49322         * tests/test-tls.c: Likewise.
49323
49324         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49325         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49326         Add copyright notice.
49327
49328         * check-module: Add copyright notice.  Output a copyright
49329         notice if "--version" is specified.
49330         * modules/COPYING: New file.
49331         * tests/test-getaddrinfo.c: Add copyright notice.
49332         * tests/test-verify.c: Likewise.
49333
49334 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49335
49336         Change copyright notice from LGPL 2 to GPL 2, since that's the
49337         standard form used in the gnulib repository.
49338         * lib/lock.c: LGPL -> GPL.
49339         * lib/lock.h: Likewise.
49340         * lib/strnlen1.c: Likewise.
49341         * lib/strnlen1.h: Likewise.
49342         * lib/tls.c: Likewise.
49343         * lib/tls.h: Likewise.
49344         * lib/tmpdir.c: Likewise.
49345
49346         * lib/TODO: Remove; this belongs only in coreutils.
49347
49348 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49349
49350         Add copyright notices to long-enough files that lack them, since
49351         otherwise the files aren't clearly free.  Use the same notice that
49352         getdate.texi already uses.
49353         * doc/alloca-opt.texi: Add copyright notice.
49354         * doc/alloca.texi: Likewise.
49355         * doc/ctime.texi: Likewise.
49356         * doc/functions.texi: Likewise.
49357         * doc/gcd.texi: Likewise.
49358         * doc/gnulib-tool.texi: Likewise.
49359         * doc/inet_ntoa.texi: Likewise.
49360         * doc/visibility.texi: Likewise.
49361
49362         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49363         * doc/quote.texi: Add copyright notice.
49364
49365         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49366         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49367         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49368         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49369         is now obsolete, and give a pointer to the Sun list.
49370         Add copyright notice.
49371
49372 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49373
49374         * config/srclistvars.sh: Add copyright notice.
49375
49376 2006-08-14  Eric Blake  <ebb9@byu.net>
49377
49378         Import the following change from libc:
49379
49380         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49381
49382         Upstream bug 2997.
49383         * lib/misc/error.c: Add space between program name and message if file
49384         name is missing.
49385
49386 2006-08-12  Karl Berry  <karl@gnu.org>
49387
49388         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49389         remove, these originate in gnulib now.
49390
49391 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49392
49393         * doc/Makefile (standards.info standards.html standards.dvi):
49394         Also depend on make-stds.texi.
49395
49396 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49397
49398         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49399         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49400
49401         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49402         in wchar_t.  Problem reported by Eric Blake.
49403
49404         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49405         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49406         Also, help the compiler to keep LEN in a register.
49407
49408 2006-08-11  Eric Blake  <ebb9@byu.net>
49409
49410         * users.txt: Sort.  Add tar.
49411
49412 2006-08-11  Bruno Haible  <bruno@clisp.org>
49413
49414         * users.txt: New file.
49415
49416 2006-08-11  Bruno Haible  <bruno@clisp.org>
49417
49418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49419         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49420
49421 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49422
49423         * modules/snprintf (Depends-on): Remove minmax.
49424         (Maintainer): Add self and Bruno.
49425
49426 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49427
49428         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49429         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49430         (EOVERFLOW): Define if the system does not.
49431         Do not include "minmax.h"; it wasn't used.
49432         (snprintf): Don't assume size_t promotes to an unsigned type.
49433         Fix bug when generated string was too long for the buffer: the
49434         buffer's contents are supposed to be the initial prefix of the
49435         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49436         exceeds INT_MAX; do the check ourselves.
49437
49438         Import the following changes from libc:
49439
49440         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49441
49442         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49443         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49444         set wc to the byte which couldn't be converted.
49445         (re_string_reconstruct): Don't clear valid_raw_len before calling
49446         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49447         tip_context using re_string_context_at.
49448
49449         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49450
49451         * lib/posix/regex.h: g++ still cannot handled [restrict].
49452
49453         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49454
49455         * lib/posix/regex.h: Remove special handling for VMS.
49456
49457 2006-08-10  Jim Meyering  <jim@meyering.net>
49458
49459         * modules/same-inode: New module.
49460         * modules/dev-ino: New module.
49461         * modules/cycle-check: Depend on these modules, rather than simply
49462         including their .h files.
49463         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49464         required via m4/cycle-check.m4.
49465         * modules/same: Depend on new same-inode module, rather than
49466         including same-inode.h.
49467         * modules/chdir-safer: New file.
49468
49469         * modules/chown (Depends-on): Add stat-macros.
49470
49471 2006-08-10  Jim Meyering  <jim@meyering.net>
49472
49473         * m4/cycle-check.m4: New file.
49474         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49475         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49476
49477 2006-08-10  Eric Blake  <ebb9@byu.net>
49478
49479         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49480         in from original proposal.
49481
49482 2006-08-10  Eric Blake  <ebb9@byu.net>
49483         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49484
49485         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49486         namespace.
49487
49488 2006-08-10  Bruno Haible  <bruno@clisp.org>
49489
49490         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49491         as well.
49492
49493 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49494
49495         Sync from coreutils.
49496
49497         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49498
49499         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49500         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49501
49502 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49503
49504         * modules/restrict: Remove; no longer needed now that we assume
49505         Autoconf 2.59 or later.
49506         * MODULES.html.sh: Remove 'restrict'.
49507         * modules/argp (Depends-on): Remove 'restrict'.
49508         * modules/base64 (Depends-on): Likewise.
49509         * modules/gc (Depends-on): Likewise.
49510         * modules/getaddrinfo (Depends-on): Likewise.
49511         * modules/glob (Depends-on): Likewise.
49512         * modules/inet_ntop (Depends-on): Likewise.
49513         * modules/inet_pton (Depends-on): Likewise.
49514         * modules/memxor (Depends-on): Likewise.
49515         * modules/regex (Depends-on): Likewise.
49516         * modules/strtok_r (Depends-on): Likewise.
49517         * modules/time_r (Depends-on): Likewise.
49518
49519 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49520
49521         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49522         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49523         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49524         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49525         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49526         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49527         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49528         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49529
49530         Merge from coreutils.
49531         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49532         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49534         * m4/time_r.m4 (gl_TIME_R): Likewise.
49535
49536 2006-08-09  Karl Berry  <karl@gnu.org>
49537
49538         * config/srclist.txt: no more gettext-tools, per Bruno.
49539
49540 2006-08-08  Eric Blake  <ebb9@byu.net>
49541
49542         * modules/verror: New module.
49543         * MODULES.html.sh: Document it.
49544
49545 2006-08-08  Eric Blake  <ebb9@byu.net>
49546
49547         * lib/verror.h, lib/verror.c: New files.
49548
49549 2006-08-08  Eric Blake  <ebb9@byu.net>
49550
49551         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
49552         verror_at_line output complies with GNU Coding Standards even when
49553         file is NULL.
49554
49555 2006-08-07  Bruno Haible  <bruno@clisp.org>
49556
49557         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
49558         versions of AIX.
49559         Reported by Ralf Wildenhues.
49560
49561 2006-08-07  Bruno Haible  <bruno@clisp.org>
49562
49563         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
49564         in an AC_DEFUN. Needed so that the autoconf snippets can use
49565         AC_REQUIRE.
49566
49567 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49568
49569         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49570         Initialize pkgdata_DATA.
49571         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
49572         overriding it.
49573
49574 2006-08-06  Eric Blake  <ebb9@byu.net>
49575
49576         * lib/error.h: Fold in some upstream changes from glibc.
49577         * lib/error.c: Likewise.
49578
49579 2006-08-04  Bruno Haible  <bruno@clisp.org>
49580
49581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49582         Make the mostlyclean-local rule depend on mostlyclean-generic.
49583         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
49584
49585 2006-07-31  Bruno Haible  <bruno@clisp.org>
49586
49587         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
49588         <stdlib.h>, <string.h>.
49589
49590 2006-07-30  Bruno Haible  <bruno@clisp.org>
49591
49592         * modules/readlink (License): Change to LGPL.
49593
49594 2006-07-30  Bruno Haible  <bruno@clisp.org>
49595
49596         * modules/javaversion (Makefile.am): Distribute javaversion.java and
49597         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
49598         set PKGDATADIR to point to it.
49599
49600 2006-07-30  Bruno Haible  <bruno@clisp.org>
49601
49602         * modules/csharpexec (configure.ac): Comment out macro invocation.
49603         * modules/javaexec (configure.ac): Likewise.
49604         * modules/javacomp-script (configure.ac): Likewise.
49605
49606         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
49607
49608 2006-07-30  Bruno Haible  <bruno@clisp.org>
49609
49610         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
49611         linked-list.
49612
49613 2006-07-30  Bruno Haible  <bruno@clisp.org>
49614
49615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
49616
49617 2006-07-30  Bruno Haible  <bruno@clisp.org>
49618
49619         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49620         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
49621         get removed.
49622
49623 2006-07-29  Bruno Haible  <bruno@clisp.org>
49624
49625         Make it possible for gnulib-tool to work with locally modified or
49626         augmented gnulib repositories.
49627         * gnulib-tool (func_usage): Document --local-dir option.
49628         (local_gnulib_dir): New variable.
49629         Handle --local-dir option.
49630         (func_lookup_file): New function.
49631         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
49632         (func_get_description, func_get_filelist, func_get_description,
49633         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
49634         func_get_automake_snippet, func_get_include_directive,
49635         func_get_license, func_get_maintainer): Use func_lookup_file.
49636         (func_import, func_create_testdir): Use func_lookup_file.
49637
49638 2006-07-29  Bruno Haible  <bruno@clisp.org>
49639
49640         * modules/setenv (Depends-on): Add unistd.
49641
49642 2006-07-29  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
49645
49646 2006-07-29  Bruno Haible  <bruno@clisp.org>
49647
49648         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
49649
49650 2006-07-29  Bruno Haible  <bruno@clisp.org>
49651
49652         * gnulib-tool (import, update): If there is no Makefile.am, look at
49653         aclocal.m4, instead of bailing out.
49654
49655 2006-07-29  Bruno Haible  <bruno@clisp.org>
49656
49657         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
49658         Categorize the options by when they are useful.
49659
49660 2006-07-29  Bruno Haible  <bruno@clisp.org>
49661
49662         * gnulib-tool (func_usage): Document option --no-libtool.
49663         Handle option --no-libtool.
49664         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
49665         for changed semantics of $libtool variable.
49666         (func_import): Likewise. If libtool is not used, show this through
49667         an option --no-libtool.
49668         (func_create_testdir): Update.
49669
49670 2006-07-29  Bruno Haible  <bruno@clisp.org>
49671
49672         * gnulib-tool (func_import): Extend error message about missing
49673         --doc-base.
49674
49675 2006-07-29  Bruno Haible  <bruno@clisp.org>
49676
49677         * gnulib-tool (func_import): Don't create the $docbase directory if
49678         there is no file to store there.
49679
49680 2006-07-29  Bruno Haible  <bruno@clisp.org>
49681
49682         * gnulib-tool (autoconf_minversion): If a --dir option is given and
49683         relevant, look for configure.ac there, not in the current directory.
49684         Also use a simple search for AC_PREREQ, not "autoconf --trace".
49685
49686 2006-07-29  Bruno Haible  <bruno@clisp.org>
49687
49688         * gnulib-tool (SORT): New variable.
49689         (func_usage): Undocument --assume-autoconf option.
49690         Remove --assume-autoconf option handling.
49691         (autoconf_minversion): Determine from the contents of configure.ac.
49692         (func_import): Remove autoconf_minversion handling.
49693         Suggested by Eric Blake.
49694
49695 2006-07-29  Bruno Haible  <bruno@clisp.org>
49696
49697         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
49698
49699 2006-07-29  Bruno Haible  <bruno@clisp.org>
49700
49701         * config/srclist.txt (*setenv.[ch]): Remove rules.
49702
49703 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49704
49705         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
49706
49707 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49708
49709         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
49710         arpa/inet.h.
49711
49712 2006-07-28  Simon Josefsson  <jas@extundo.com>
49713
49714         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
49715         * modules/inet_pton (Depends-on): Likewise.
49716
49717 2006-07-28  Simon Josefsson  <jas@extundo.com>
49718
49719         * m4/netinet_in_h.m4: New file.
49720
49721 2006-07-28  Simon Josefsson  <jas@extundo.com>
49722
49723         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
49724         #include's.
49725
49726 2006-07-28  Simon Josefsson  <jas@extundo.com>
49727
49728         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
49729         #include's.
49730
49731 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
49732
49733         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
49734         setgid on directories only if they set these bits.
49735         * lib/modechange.h: Remove obsolete comment about masks.
49736
49737 2006-07-28  Eric Blake  <ebb9@byu.net>
49738
49739         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
49740         macro expansion.
49741
49742 2006-07-28  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
49745
49746 2006-07-28  Bruno Haible  <bruno@clisp.org>
49747
49748         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
49749
49750 2006-07-28  Bruno Haible  <bruno@clisp.org>
49751
49752         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49753         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49754         Define fallbacks.
49755         Avoids link error on FreeBSD 4.x.
49756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49757
49758         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
49759         encoding.
49760         * lib/mbswidth.c (iswcntrl): Likewise.
49761
49762 2006-07-27  Bruno Haible  <bruno@clisp.org>
49763
49764         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
49765         test.
49766
49767 2006-07-27  Bruno Haible  <bruno@clisp.org>
49768
49769         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
49770         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
49771         defined.
49772
49773 2006-07-26  Eric Blake  <ebb9@byu.net>
49774
49775         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
49776
49777 2006-07-26  Eric Blake  <ebb9@byu.net>
49778
49779         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
49780         like mingw that lack mkstemp.
49781         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
49782         avoid compilation warning on mingw.
49783
49784 2006-07-26  Bruno Haible  <bruno@clisp.org>
49785
49786         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
49787         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
49788         INT_FAST*_MIN, INTPTR_MIN.
49789
49790 2006-07-25  Bruno Haible  <bruno@clisp.org>
49791
49792         * modules/version-etc (Depends-on): Add stdarg.
49793
49794 2006-07-25  Bruno Haible  <bruno@clisp.org>
49795
49796         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
49797         complex commands.
49798
49799 2006-07-25  Bruno Haible  <bruno@clisp.org>
49800
49801         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
49802         defined in <stdarg.h> or config.h.
49803
49804 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49805
49806         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
49807         (gl_STDIO_SAFER): Remove.
49808
49809 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49810
49811         * MODULES.html.sh (File stream based Input/Output):
49812         Add fopen-safer, tmpfile-safer; remove stdio-safer.
49813         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
49814         * modules/fopen-safer, modules/tmpfile-safer: New files.
49815         * modules/stdio-safer: Remove.
49816
49817 2006-07-24  Bruno Haible  <bruno@clisp.org>
49818
49819         * modules/tmpdir: New file.
49820         * MODULES.html.sh (File system functions): Add it.
49821
49822 2006-07-24  Bruno Haible  <bruno@clisp.org>
49823
49824         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
49825         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
49826
49827 2006-07-24  Bruno Haible  <bruno@clisp.org>
49828
49829         * modules/clean-temp: New file.
49830
49831 2006-07-24  Bruno Haible  <bruno@clisp.org>
49832
49833         * m4/tmpdir.m4: New file, from GNU gettext.
49834
49835 2006-07-24  Bruno Haible  <bruno@clisp.org>
49836
49837         * lib/tmpdir.h: New file, from GNU gettext.
49838         * lib/tmpdir.c: New file, from GNU gettext.
49839
49840 2006-07-24  Bruno Haible  <bruno@clisp.org>
49841
49842         * lib/clean-temp.h: New file, from GNU gettext.
49843         * lib/clean-temp.c: New file, from GNU gettext.
49844
49845 2006-07-23  Eric Blake  <ebb9@byu.net>
49846
49847         * modules/stdio-safer (Files): Add tmpfile-safer.c.
49848         (Depends-on): Add binary-io.
49849
49850 2006-07-23  Eric Blake  <ebb9@byu.net>
49851
49852         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
49853
49854 2006-07-23  Eric Blake  <ebb9@byu.net>
49855
49856         * lib/tmpfile-safer.c: New file.
49857         * lib/stdio-safer.h (fopen_safer): Add prototype.
49858         * lib/stdio--.h (tmpfile): Make safer.
49859
49860 2006-07-23  Bruno Haible  <bruno@clisp.org>
49861
49862         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
49863         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
49864         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
49865         gl_linked_remove_at): Use it.
49866
49867 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49868         and Simon Josefsson <jas@extundo.com>
49869
49870         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
49871
49872         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
49873
49874 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49875
49876         * modules/close-stream: New file.
49877         * modules/closeout (Description): Make it clear that it exits
49878         with a diagnostic on error.
49879         (Depends-on): Add close-stream.  Remove fpending, stdbool.
49880         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
49881
49882 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49883
49884         * m4/close-stream.m4: New file.
49885
49886 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49887
49888         * lib/close-stream.c, lib/close-stream.h: New files.
49889
49890 2006-07-22  Bruno Haible  <bruno@clisp.org>
49891
49892         Merge from GNU gettext 0.15.
49893
49894         2006-05-01  Bruno Haible  <bruno@clisp.org>
49895
49896                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
49897
49898         2006-07-22  Bruno Haible  <bruno@clisp.org>
49899
49900                 * modules/javaversion: New file.
49901                 * MODULES.html.sh (Java): Add javaversion.
49902
49903         2006-03-12  Bruno Haible  <bruno@clisp.org>
49904
49905                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
49906
49907         2005-12-04  Bruno Haible  <bruno@clisp.org>
49908
49909                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
49910                 (untested).
49911
49912         2006-06-21  Bruno Haible  <bruno@clisp.org>
49913
49914                 Avoid warnings from recent versions of mcs.
49915                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
49916                 -o, -L, -r any more. Use options documented since mcs-1.0
49917                 instead. Similarly for -g.
49918
49919         2005-12-04  Bruno Haible  <bruno@clisp.org>
49920
49921                 * build-aux/csharpcomp.sh.in: Suffix for resources is
49922                 .resources, not .resource.
49923
49924         2005-07-09  Bruno Haible  <bruno@clisp.org>
49925
49926                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
49927                 add a .dll suffix.
49928                 Reported by Mark Junker <mjscod@gmx.de>.
49929
49930         2006-07-22  Bruno Haible  <bruno@clisp.org>
49931
49932                 * modules/gettext: Upgrade to gettext-0.15.
49933                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
49934                 m4/visibility.m4.
49935                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
49936
49937 2006-07-22  Bruno Haible  <bruno@clisp.org>
49938
49939         Merge from GNU gettext 0.15.
49940
49941         2006-03-25  Bruno Haible  <bruno@clisp.org>
49942
49943                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
49944
49945         2006-07-21  Bruno Haible  <bruno@clisp.org>
49946
49947                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
49948                 "1.1".
49949
49950         2006-05-09  Bruno Haible  <bruno@clisp.org>
49951
49952                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
49953                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
49954                 for the conftestver execution.
49955
49956         2006-05-01  Bruno Haible  <bruno@clisp.org>
49957
49958                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
49959                 optional target-version argument. Verify that the compiler
49960                 groks source of the specified source-version, or add -source
49961                 option as necessary. Verify that the compiler produces
49962                 bytecode in the specified target-version, or add -target and
49963                 -source options as necessary. Make the result of the test
49964                 available as variable CONF_JAVAC. Also log error output in
49965                 config.log.
49966
49967         2006-03-11  Bruno Haible  <bruno@clisp.org>
49968
49969                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
49970
49971         2006-05-09  Bruno Haible  <bruno@clisp.org>
49972
49973                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
49974                 CLASSPATH_SEPARATOR to a semicolon.
49975
49976         2006-03-12  Bruno Haible  <bruno@clisp.org>
49977
49978                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
49979                 available as variable CONF_JAVA, for subsequent autoconf
49980                 tests. Also log error output in config.log.
49981
49982         2006-07-19  Bruno Haible  <bruno@clisp.org>
49983
49984                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
49985                 that getline works on glibc2 systems. Needed to avoid trouble
49986                 in relocatable.c.
49987                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
49988
49989         2005-12-04  Bruno Haible  <bruno@clisp.org>
49990
49991                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
49992                 launcher (untested).
49993
49994         2005-12-04  Bruno Haible  <bruno@clisp.org>
49995
49996                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
49997
49998         2006-07-22  Bruno Haible  <bruno@clisp.org>
49999
50000                 * gettext.m4: Update from GNU gettext-0.15.
50001                 * nls.m4: Likewise.
50002                 * po.m4: Likewise.
50003                 * inttypes-pri.m4: Likewise.
50004                 * inttypes-h.m4: Renamed from inttypes.m4.
50005                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50006
50007 2006-07-22  Bruno Haible  <bruno@clisp.org>
50008
50009         Merge from GNU gettext 0.15.
50010
50011         2005-07-05  Bruno Haible  <bruno@clisp.org>
50012
50013                 * printf-args.c (printf_fetchargs): Work around broken
50014                 definition of wint_t on mingw.
50015
50016         2005-02-12  Bruno Haible  <bruno@clisp.org>
50017
50018                 * xallocsa.h: Add extern "C" for C++.
50019
50020         2006-05-17  Bruno Haible  <bruno@clisp.org>
50021
50022                 Cygwin portability.
50023                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50024
50025         2006-04-30  Bruno Haible  <bruno@clisp.org>
50026
50027                 * progreloc.c: Include <mach-o/dyld.h> if available.
50028                 (find_executable): Use _NSGetExecutablePath when possible.
50029
50030         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50031
50032                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50033                 function.
50034
50035         2005-12-29  Bruno Haible  <bruno@clisp.org>
50036
50037                 * progreloc.c (set_program_name_and_installdir): Fix
50038                 compilation error.
50039
50040         2005-12-04  Bruno Haible  <bruno@clisp.org>
50041
50042                 Cygwin portability.
50043                 * progreloc.c: Include <windows.h> also on Cygwin.
50044                 (find_executable): Add support for Cygwin.
50045                 (set_program_name_and_installdir): Handle also platforms with
50046                 nonempty EXEEXT.
50047
50048         2006-07-11  Bruno Haible  <bruno@clisp.org>
50049
50050                 * javacomp.c: Fix a comment.
50051                 Reported by Jim Meyering.
50052
50053         2006-04-30  Bruno Haible  <bruno@clisp.org>
50054
50055                 * javacomp.h (compile_java_class): Add source_version,
50056                 target_version arguments.
50057                 * javacomp.c: Rewritten to choose only a compiler that
50058                 respects the specified source_version and target_version.
50059
50060         2006-06-27  Bruno Haible  <bruno@clisp.org>
50061
50062                 Assume correct S_ISDIR macro.
50063                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50064
50065         2006-07-22  Bruno Haible  <bruno@clisp.org>
50066
50067                 * javaversion.h: New file, from GNU gettext.
50068                 * javaversion.c: New file, from GNU gettext.
50069                 * javaversion.java: New file, from GNU gettext.
50070                 * javaversion.class: New file, from GNU gettext.
50071
50072         2006-05-17  Bruno Haible  <bruno@clisp.org>
50073
50074                 Cygwin portability.
50075                 * javaexec.c (execute_java_class): Test for jview program
50076                 also on Cygwin.
50077
50078         2006-04-09  Bruno Haible  <bruno@clisp.org>
50079
50080                 * fatal-signal.c: Don't include string.h.
50081                 (at_fatal_signal): Use a copying loop instead of memcpy.
50082
50083         2005-12-04  Bruno Haible  <bruno@clisp.org>
50084
50085                 * csharpexec.c: Add support for 'clix' launcher (untested).
50086                 (execute_csharp_using_sscli): New function.
50087                 (execute_csharp_program): Call it.
50088
50089         2006-06-21  Bruno Haible  <bruno@clisp.org>
50090
50091                 Avoid warnings from recent versions of mcs.
50092                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50093                 -o, -L, -r any more. Use options documented since mcs-1.0
50094                 instead. Similarly for -g.
50095
50096         2005-07-09  Bruno Haible  <bruno@clisp.org>
50097
50098                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50099                 add a .dll suffix.
50100                 Reported by Mark Junker <mjscod@gmx.de>.
50101
50102         2006-06-17  Bruno Haible  <bruno@clisp.org>
50103
50104                 * config.charset: Update for NetBSD 3.0.
50105
50106         2006-05-17  Bruno Haible  <bruno@clisp.org>
50107
50108                 Cygwin portability.
50109                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50110
50111         2006-05-16  Bruno Haible  <bruno@clisp.org>
50112
50113                 * localcharset.c [CYGWIN]: Include <windows.h>.
50114                 (get_charset_aliases): For Cygwin, return the same CPxxx
50115                 aliases list as under WIN32.
50116                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50117                 the environment variables. Fall back to GetACP().
50118
50119         2006-04-05  Bruno Haible  <bruno@clisp.org>
50120
50121                 * config.charset: Update Juan Manuel Guerrero's address.
50122
50123         2005-02-12  Bruno Haible  <bruno@clisp.org>
50124
50125                 * allocsa.h: Add extern "C" for C++.
50126
50127         2005-02-10  Bruno Haible  <bruno@clisp.org>
50128
50129                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50130                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50131
50132         2006-07-22  Bruno Haible  <bruno@clisp.org>
50133
50134                 * gettext.h: Update to GNU gettext-0.15.
50135
50136 2006-07-22  Bruno Haible  <bruno@clisp.org>
50137
50138         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50139         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50140         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50141
50142 2006-07-21  Eric Blake  <ebb9@byu.net>
50143
50144         * modules/stdlib-safer: New file.
50145         * MODULES.html.sh (File stream based Input/Output): Add
50146         stdlib-safer.
50147
50148 2006-07-21  Eric Blake  <ebb9@byu.net>
50149
50150         * lib/stdlib-safer.h: New file from coreutils, required by
50151         stdlib--.h.
50152
50153 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50154
50155         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50156
50157 2006-07-20  Bruno Haible  <bruno@clisp.org>
50158
50159         * gnulib-tool: Recognize new option --assume-autoconf.
50160         (autoconf_minversion): New variable.
50161         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50162
50163 2006-07-20  Bruno Haible  <bruno@clisp.org>
50164
50165         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50166
50167 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50168
50169         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50170         Reindent and repaginate.
50171
50172 2006-07-19  Derek Price  <derek@ximbiot.com>
50173
50174         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50175         Correct grammar.
50176
50177 2006-07-17  Bruno Haible  <bruno@clisp.org>
50178
50179         * modules/list: New file.
50180         * modules/array-list: New file.
50181         * modules/carray-list, modules/carray-list-tests: New files.
50182         * modules/linked-list, modules/linked-list-tests: New files.
50183         * modules/avltree-list, modules/avltree-list-tests: New files.
50184         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50185         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50186         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50187         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50188         * modules/oset: New file.
50189         * modules/array-oset: New file.
50190         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50191         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50192         * tests/test-carray_list.c: New file.
50193         * tests/test-linked_list.c: New file.
50194         * tests/test-avltree_list.c: New file.
50195         * tests/test-rbtree_list.c: New file.
50196         * tests/test-linkedhash_list.c: New file.
50197         * tests/test-avltreehash_list.c: New file.
50198         * tests/test-rbtreehash_list.c: New file.
50199         * tests/test-avltree_oset.c: New file.
50200         * tests/test-rbtree_oset.c: New file.
50201         * MODULES.html.sh (Container data structures): New section.
50202
50203 2006-07-17  Bruno Haible  <bruno@clisp.org>
50204
50205         * m4/gl_list.m4: New file.
50206
50207 2006-07-17  Bruno Haible  <bruno@clisp.org>
50208
50209         * lib/gl_list.h: New file.
50210         * lib/gl_list.c: New file.
50211         * lib/gl_array_list.h: New file.
50212         * lib/gl_array_list.c: New file.
50213         * lib/gl_carray_list.h: New file.
50214         * lib/gl_carray_list.c: New file.
50215         * lib/gl_linked_list.h: New file.
50216         * lib/gl_linked_list.c: New file.
50217         * lib/gl_anylinked_list1.h: New file.
50218         * lib/gl_anylinked_list2.h: New file.
50219         * lib/gl_avltree_list.h: New file.
50220         * lib/gl_avltree_list.c: New file.
50221         * lib/gl_anyavltree_list1.h: New file.
50222         * lib/gl_anyavltree_list2.h: New file.
50223         * lib/gl_rbtree_list.h: New file.
50224         * lib/gl_rbtree_list.c: New file.
50225         * lib/gl_anyrbtree_list1.h: New file.
50226         * lib/gl_anyrbtree_list2.h: New file.
50227         * lib/gl_anytree_list1.h: New file.
50228         * lib/gl_anytree_list2.h: New file.
50229         * lib/gl_linkedhash_list.h: New file.
50230         * lib/gl_linkedhash_list.c: New file.
50231         * lib/gl_anyhash_list1.h: New file.
50232         * lib/gl_anyhash_list2.h: New file.
50233         * lib/gl_avltreehash_list.h: New file.
50234         * lib/gl_avltreehash_list.c: New file.
50235         * lib/gl_rbtreehash_list.h: New file.
50236         * lib/gl_rbtreehash_list.c: New file.
50237         * lib/gl_anytreehash_list1.h: New file.
50238         * lib/gl_anytreehash_list2.h: New file.
50239
50240         * lib/gl_oset.h: New file.
50241         * lib/gl_oset.c: New file.
50242         * lib/gl_array_oset.h: New file.
50243         * lib/gl_array_oset.c: New file.
50244         * lib/gl_avltree_oset.h: New file.
50245         * lib/gl_avltree_oset.c: New file.
50246         * lib/gl_rbtree_oset.h: New file.
50247         * lib/gl_rbtree_oset.c: New file.
50248         * lib/gl_anytree_oset.h: New file.
50249
50250 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50251
50252         * m4/mkancesdirs.m4: New file.
50253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50254         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50255         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50256         it.
50257
50258 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50259
50260         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50261         * lib/mkancesdirs.h: New files.
50262         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50263         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50264         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50265         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50266         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50267         callers changed.  Revamp internals significantly, by not
50268         attempting to create directories that are temporarily more
50269         permissive than the final results.  Do not attempt to use
50270         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50271         This removes some race conditions, fixes some bugs, and simplifies
50272         things.  Use new dirchownmod function to do owner and mode changes.
50273         * lib/mkdir-p.h: Likewise.
50274         * lib/modechange.c (octal_to_mode): New function.
50275         (struct mode_change): New member mentioned.
50276         (make_node_op_equals): New arg mentioned.  All callers changed.
50277         (mode_compile): Keep track of which mode bits the user has explicitly
50278         mentioned.
50279         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50280         New arg PMODE_BITS, to keep track of which mode bits the user
50281         mentioned; it treats S_ISUID and S_ISGID speciall.
50282         All callers changed.
50283         * lib/modechange.h: Likewise.
50284
50285 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50286
50287         * MODULES.html.sh: Add mkancestors.
50288         * modules/mkancesdirs: New module.
50289         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50290         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50291         The chdir-safer and afs files are now orphans; I'll remove them
50292         unless someone speaks up.
50293         Add lib/dirchownmod.c, lib/dirchownmod.h.
50294         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50295         Add lchown, mkancesdirs.
50296         (Maintainer): Add self.
50297
50298 2006-07-15  Karl Berry  <karl@gnu.org>
50299
50300         * gnulib-tool: help message wording/arrangement.
50301
50302 2006-07-14  Simon Josefsson  <jas@extundo.com>
50303
50304         * doc/gnulib.texi (Libtool and Windows): New section.
50305
50306 2006-07-12  Simon Josefsson  <jas@extundo.com>
50307
50308         * modules/gendocs (License): Fix license, approved by Karl.
50309
50310 2006-07-12  Eric Blake  <ebb9@byu.net>
50311
50312         * MODULES.html.sh: Add gendocs.
50313
50314 2006-07-11  Eric Blake  <ebb9@byu.net>
50315
50316         * modules/fdl: New module, to install doc/fdl.texi.
50317         * MODULES.html.sh: Add new section for documentation modules.
50318         * gnulib-tool: Avoid space-tab.
50319         (--doc-base): New option, to manage files from doc.
50320
50321 2006-07-11  Eric Blake  <ebb9@byu.net>
50322
50323         * m4/absolute-header.m4: Fix comments to match recent change.
50324
50325 2006-07-11  Eric Blake  <ebb9@byu.net>
50326
50327         * gnulib-tool: List --doc-base before --tests-base.
50328
50329 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50330
50331         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50332
50333 2006-07-11  Bruno Haible  <bruno@clisp.org>
50334
50335         * README: Mention where to put documentation.
50336
50337 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50338
50339         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50340
50341 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50342
50343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50344         to stdint.m4.
50345
50346 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50347
50348         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50349         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50350         "no/such/file/stdint.h" when there is no such file, so that
50351         the resulting C code can be parsed by dodgy compilers.
50352         Problems reported by Bob Proulx.
50353
50354 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50355
50356         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50357         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50358         macros into the GNU _D_EXACT_NAMLEN.
50359         * lib/savedir.c:  Likewise.
50360         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50361
50362 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50363         and Paul Eggert  <eggert@cs.ucla.edu>
50364
50365         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50366         * m4/savedir.m4:
50367         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50368         macros into the GNU _D_EXACT_NAMLEN.
50369
50370 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50371
50372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50373         around the absolute name, to work around a problem with the HP-UX
50374         11.23 native C compiler, reported by Bob Proulx.
50375
50376 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         * doc/maintain.texi, make-stds.texi: Sync from
50379         <http://savannah.gnu.org/projects/gnustandards>.
50380
50381 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50382
50383         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50384
50385 2006-07-09  Jim Meyering  <jim@meyering.net>
50386
50387         * m4/glob.m4: Remove a doubled word in a comment.
50388
50389 2006-07-09  Jim Meyering  <jim@meyering.net>
50390
50391         * lib/argp-pv.c: Remove a doubled word in a comment.
50392         * lib/check-version.c (check_version): Likewise.
50393         * lib/javacomp.c (compile_java_class): Likewise.
50394
50395 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50396
50397         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50398         for the benefit of people using Autoconf 2.60.  If you want to
50399         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50400         (or m4/onceonly.m4, if pre-2.57) manually.
50401
50402 2006-07-08  Jim Meyering  <jim@meyering.net>
50403
50404         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50405         comment.
50406         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50407         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50408         comment.
50409
50410 2006-07-08  Jim Meyering  <jim@meyering.net>
50411
50412         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50413
50414 2006-07-07  Simon Josefsson  <jas@extundo.com>
50415
50416         * tests/test-crc.c: Change expected crc value, the test vector
50417         were probably computed using the old broken crc.c?
50418
50419 2006-07-06  Simon Josefsson  <jas@extundo.com>
50420
50421         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50422         now the canonical place for the M4 file).
50423
50424         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50425         from the sys_socket dependency now.
50426
50427         * modules/inet_pton (Files): Ditto.
50428
50429         * modules/inet_ntop (Files): Ditto.
50430
50431 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50432
50433         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50434         not gl_PREREQ_GETUSERSHELL.
50435
50436 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50437
50438         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50439         with only one argument, for Autoconf 2.60.
50440         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50441         expand to nothing, so add a shell command to avoid syntax error.
50442         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50443
50444 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50445
50446         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50447
50448 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50449
50450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50451         no longer needed.  Check for isblank decl.
50452         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50453         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50454         of existence.
50455
50456 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50457
50458         * lib/getloadavg.c: Use __VMS, not VMS.
50459         * lib/getopt.c: Likewise.
50460         * lib/getpagesize.h: Likewise.
50461         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50462         and probably does not work.
50463
50464 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50465
50466         * lib/.cppi-disable: Add wcwidth.
50467         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50468         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50469         (ISGRAPH): Remove.  All uses changed to isgraph.
50470         (FOLD) [!defined _LIBC]: Remove special case.
50471         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50472         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50473         HAVE_ISBLANK.
50474         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50475         case.
50476
50477 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50478
50479         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50480         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50481         brackets.  Other minor changes to suppress some compiler
50482         warnings.
50483
50484 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50485         and Paul Eggert  <eggert@cs.ucla.edu>
50486
50487         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50488         of invoking obsolescent AC_HEADER_DIRENT macro.
50489         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50490         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50493         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50494         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50495         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50496         * m4/readdir.m4: Remove; no longer needed.
50497
50498 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50499         and Paul Eggert  <eggert@cs.ucla.edu>
50500
50501         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50502         Don't worry about this obsolete case any more.
50503         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50504         directories.
50505         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50506         worry about this obsolete case any more.
50507         * lib/fts.c: Likewise.
50508         * lib/getcwd.c: Likewise.
50509         * lib/glob.h: Likewise.
50510         * lib/savedir.c: Likewise.
50511
50512 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50513
50514         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50515         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50516         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50517         needed.
50518         All uses removed.
50519         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50520         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50521         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50522         needed.
50523         * m4/getdate.m4 (gl_GETDATE): Likewise.
50524         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50525         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50526         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50527         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50528         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50529         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50530         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50531         needed.
50532
50533 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50534
50535         * lib/memcasecmp.c: Include <limits.h>.
50536         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50537         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50538         Don't assume isdigit succeeds only on '0' through '9'.
50539
50540 2006-07-05  Eric Blake  <ebb9@byu.net>
50541
50542         * modules/getaddrinfo (Depends-on): Add snprintf.
50543
50544 2006-07-05  Eric Blake  <ebb9@byu.net>
50545
50546         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50547         to avoid 'header present but could not be compiled' on cygwin.
50548
50549 2006-07-05  Eric Blake  <ebb9@byu.net>
50550
50551         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
50552         missing from netdb.h.
50553         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
50554
50555 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50556
50557         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
50558         no longer needed.
50559         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
50560         * m4/getdate.m4 (gl_GETDATE): Likewise.
50561         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50562         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50563         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50564         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50565         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50566
50567 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50568
50569         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
50570         All uses of is_space replaced by isspace.
50571         * lib/exit.h: Don't talk about STDC_HEADERS.
50572         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
50573         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
50574         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
50575         replaced by isprint etc.
50576         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
50577         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50578         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
50579         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
50580         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
50581         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50582
50583 2006-07-05  Bruno Haible  <bruno@clisp.org>
50584
50585         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
50586         the function exists, before testing against AIX.
50587         Reported by Martin Lambers <marlam@marlam.de>.
50588
50589 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50590
50591         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
50592         From Mark D. Baushke.
50593
50594 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50595
50596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
50597         to the absolute name, not just one, to bypass Sun C 5.8's
50598         "warning: #include of /usr/include/... may be non-portable".
50599
50600 2006-07-04  Eric Blake  <ebb9@byu.net>
50601
50602         * modules/dirname-tests: New test module.
50603         * tests/test-dirname.c: New file, replacing dirname.c
50604         TEST_DIRNAME section that was recently deleted.
50605
50606 2006-07-04  Bruno Haible  <bruno@clisp.org>
50607
50608         Assume ANSI C header files and <ctype.h> functions.
50609         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
50610         (mbsnwidth): Use isprint, iscntrl instead.
50611
50612 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50613
50614         Merge from coreutils.
50615         * MODULES.html.sh: Add xstrtold.
50616         * modules/xstrtold: New file.
50617         * modules/cycle-check (Files): Add lib/same-inode.h.
50618         * modules/dirname (Files): Add m4/double-slash-root.m4.
50619         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
50620         * modules/mkdir-p (Files): Add lib/same-inode.h.
50621         * modules/same (Files): Add lib/same-inode.h.
50622
50623 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50624
50625         * m4/absolute-header.m4: Renamed from full-header-path.m4.
50626         This is to keep the terminology clean; POSIX talks about
50627         "absolute pathnames", not "full pathnames", but the GNU
50628         Coding Standards say to use "path" for something else;
50629         so use "absolute" to keep both sides happy.
50630         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
50631         Set gl_absolute_header, not gl_full_header_path.
50632         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
50633         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
50634         All uses changed.
50635
50636         Merge from coreutils.
50637
50638         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50639
50640         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
50641         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
50642         want to require the building of c-strtod.o.
50643         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
50644         needs -lm directly.
50645         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
50646
50647         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50648
50649         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
50650         --as-needed option if available.  Problem reported by Albert Chin in
50651         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
50652         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
50653         cc merely issues a bunch of annoying warnings for --as-needed
50654         (this problem was reported by Bob Proulx).  Also, try linking with
50655         -lm to detect a bug in binutils 2.16 (this problem was reported
50656         by Ralf Wildenhues).
50657
50658         2006-06-18  Jim Meyering  <jim@meyering.net>
50659
50660         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
50661         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
50662         macro.
50663         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
50664         also check for glibc-2.4's abort-inducing bug.
50665
50666         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
50667         Low-probability clean-up should be to use rmdir to get rid of
50668         the just-created directory, not unlink.
50669
50670         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
50671         configure fail, and request a bug report to inform us about it.
50672         Add a comment that, barring reports to the contrary, in 2007 we'll
50673         assume ftruncate is universally available.
50674
50675         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
50676
50677         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
50678
50679         2006-03-12  Jim Meyering  <jim@meyering.net>
50680
50681         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
50682         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
50683         * m4/same.m4 (gl_SAME): Likewise.
50684         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
50685
50686         2006-03-11  Eric Blake  <ebb9@byu.net>
50687
50688         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
50689         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
50690         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
50691         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
50692
50693 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50694
50695         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
50696         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
50697         reported by Mark D. Baushke, one in
50698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
50699
50700         Merge from coreutils.
50701
50702         * lib/.cppi-disable: Add stdint_.h.
50703         * lib/.cvsignore: Add stdint.h.
50704
50705         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50706
50707         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
50708         both double and long double versions.
50709         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
50710         * lib/xstrtold.c: New file.
50711         * lib/xstrtod.h (xstrtold): New decl.
50712
50713         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         * lib/filemode.c (setst): Remove.
50716         (strmode): Rewrite to avoid setst.  This makes the code shorter,
50717         (arguably) clearer, and the generated code is a bit smaller on my
50718         Debian GNU/Linux stable x86 host.
50719
50720         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
50721
50722         * lib/filemode.c: Include "filemode.h" first, to test the interface.
50723         Assume that filemode.h includes sys/types.h and sys/stat.h.
50724         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
50725         (ftypelet): Reorder to put common cases first, for efficiency.
50726         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
50727         to do 'M'.
50728         (strmode): Renamed from mode_string, and now stores 12 bytes instead
50729         of 10, for compatibility with FreeBSD.  All callers changed.
50730         (filemodestring): Now stores 12 bytes instead of 10, and sets file
50731         types that can't be deduced solely from st_mode.  First arg is now a
50732         const pointer.
50733         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
50734         (strmode): Renamed from mode_string.
50735         (filemodestring): New decl.
50736         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
50737         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
50738         needed.
50739         (S_ISPORT, S_ISWHT): New macros, if not already defined.
50740
50741         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50742
50743         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
50744         fsusage.h now does that.  Include fsusage.h first, to test interface.
50745         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
50746         at most one method (the old code could have generated decls that
50747         didn't conform to C89, not that this was ever exercised).
50748         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
50749
50750         2006-03-19  Jim Meyering  <jim@meyering.net>
50751
50752         Work even in a chroot where d_ino values for entries in "/"
50753         don't match the stat.st_ino values for the same names.
50754         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
50755         number, iterate through all entries again, using lstat instead.
50756         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
50757         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
50758
50759         * lib/getcwd.c (__getcwd): Clarify a comment.
50760         Use memcpy in place of a call to strcpy.
50761
50762         2006-03-12  Jim Meyering  <jim@meyering.net>
50763
50764         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
50765         matches that of the current directory (which we're about to chdir ".."
50766         out of), then save the dev-ino of the parent, instead.
50767
50768         * lib/same-inode.h (SAME_INODE): New file/macro.
50769         * lib/chdir-safer.c (SAME_INODE): Remove definition.
50770         Include "same-inode.h", instead.
50771         * lib/same.c: Likewise.
50772         * lib/cycle-check.h: Include "same-inode.h".
50773         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
50774         * lib/cycle-check.c (SAME_INODE): Remove definition.
50775         * lib/root-dev-ino.h: Include "same-inode.h".
50776
50777         2006-03-11  Eric Blake  <ebb9@byu.net>
50778
50779         * lib/same.c (same_name): s/base_name/last_component/
50780         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
50781         * lib/filenamecat.c (file_name_concat): Likewise.
50782
50783         2006-03-11  Eric Blake  <ebb9@byu.net>,
50784                     Paul Eggert  <eggert@cs.ucla.edu>
50785
50786         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
50787         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
50788         drive prefix.
50789         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
50790         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
50791         (last_component): New method.
50792         * lib/dirname.c (dir_len): Determine when drive letters need a
50793         subsequent slash.  Preserve // when it is special.
50794         (dir_name): Don't append dot when drive letter is absolute.
50795         [TEST_DIRNAME]: Move into a full-blown gnulib test.
50796         * lib/basename.c (base_name): New semantics - malloc the result.
50797         Preserve // when it is special.  Preserve relative files that look
50798         like drive letters.
50799         (base_len): Preserve // when it is special.
50800         (last_component): New method, similar to old base_name semantics.
50801         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
50802         base_name.  Strip redundant slashes from ///.
50803
50804 2006-07-03  Jim Meyering  <jim@meyering.net>
50805
50806         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
50807         macro is used before the first cycle_check call.
50808
50809 2006-07-03  Eric Blake  <ebb9@byu.net>
50810
50811         * modules/dirname (Depends-on): Add xstrndup.
50812
50813 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50814
50815         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
50816         test cases, so that config.log is a bit easier to follow.
50817
50818 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50819
50820         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
50821         both are 64 bits, since this seems to be the tradition, and this
50822         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
50823         we ever run into a host that prefers long long to long in this
50824         case, we'll need another configure-time test.  Problem reported by
50825         Jim Meyering.
50826
50827 2006-07-02  Eric Blake  <ebb9@byu.net>
50828
50829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
50830
50831 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50832
50833         * modules/inttypes (Depends-on): No longer depends on stdint.
50834         * modules/stdint (Description): Say more about assumptions.
50835         Say that the fast types might differ.  Say macros are used.
50836         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
50837         (Makefile.am): Revise list of substituted symbols to match
50838         new stdint.m4.
50839         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
50840         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
50841         * tests/test-stdint.c (verify_same_types)
50842         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
50843         the code conforms to C99/C89.
50844         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
50845         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
50846
50847 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50848
50849         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
50850         but fix a bug, by requiring at least 64 bits.
50851         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50852         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
50853         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
50854         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
50855
50856         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
50857         changes.  Make 2.59 a prerequisite.  Check and substitute for
50858         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
50859         inttypes.h.  Do not use special include files; just use the
50860         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
50861         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
50862         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
50863         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
50864         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
50865         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
50866         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
50867         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
50868         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
50869         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
50870         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
50871         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
50872         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
50873         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
50874         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
50875         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
50876         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
50877         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
50878         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
50879         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
50880         WINT_MAX.  Check for C99 conformance more strictly, by detecting
50881         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
50882         not check for things that C99 does not require, e.g., int8_t.  If
50883         a test isn't needed unless <stdint.h> isn't working, and is
50884         unlikely to be needed for any other reason, then don't do it
50885         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
50886         size_t, since we assume C89 freestanding at least.  Do not check
50887         for sig_atomic_t, wchar_t, or wint_t, since the code now does
50888         the right thing even if the types are not defined.  Instead use:
50889         (gl_STDINT_TYPE_PROPERTIES): New macro.
50890         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
50891         testing whether <sys/types.h> clashes, as Autoconf does this for
50892         us now.  All uses removed.
50893         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
50894         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
50895         (gl_CHECK_TYPE_SAME):
50896         Remove; no longer needed.
50897         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
50898         exists, since we'll return 0 anyway in that case.
50899         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
50900
50901 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50902
50903         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
50904         possible collision with system files.
50905         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
50906         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
50907         WCHAR_MIN and WCHAR_MAX in this case.
50908         (<stddef.h>): Do not include; no longer needed.
50909         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
50910         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
50911         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
50912         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
50913         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
50914         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
50915         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
50916         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
50917         !defined(__c99))]: Include in this case too, since it's harmless
50918         now.
50919         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
50920         dangerous to do so.
50921         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
50922         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
50923         (_STDINT_MIN, _STDINT_MAX): New macros.
50924         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
50925         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
50926         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
50927         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
50928         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
50929         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
50930         macros, not typedefs; this simplifies things quite a bit.
50931         Use long int for all types narrower than int64_t.
50932         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
50933         Define in terms of long long int or int64_t or long int,
50934         not int64_t or int32_t.  This saves some compile-time testing.
50935         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
50936         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
50937         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
50938         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
50939         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
50940         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
50941         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
50942         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
50943         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
50944         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
50945         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50946         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50947         undef any previous version and define our own version, for
50948         simplicity and consistency with the new macros for types.
50949         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50950         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50951         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
50952         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
50953         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
50954         @WINT_T_SUFFIX@ to keep things simple here.
50955         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
50956         Simplify by assuming typical 8/16/32/64 host, since we're
50957         already doing that elsewhere anyway.
50958         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
50959         and assume long long int is 64 bits if available.  This
50960         speeds up 'configure'.
50961
50962 2006-07-01  Eric Blake  <ebb9@byu.net>
50963
50964         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
50965         Reported by Andreas Buening.
50966
50967 2006-07-01  Eric Blake  <ebb9@byu.net>
50968
50969         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
50970
50971 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50972
50973         * lib/getaddrinfo.c: fixed typo
50974
50975 2006-06-29  Jim Meyering  <jim@meyering.net>
50976
50977         * modules/strftime (Maintainer): Add my name, since with the
50978         FPRINTFTIME changes strftime.c has forked from glibc.
50979
50980 2006-06-29  Eric Blake  <ebb9@byu.net>
50981
50982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
50983
50984 2006-06-29  Eric Blake  <ebb9@byu.net>
50985
50986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
50987
50988 2006-06-29  Eric Blake  <ebb9@byu.net>
50989
50990         * lib/stat_.h: New file.
50991
50992 2006-06-29  Eric Blake  <ebb9@byu.net>
50993
50994         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
50995         unused static function.
50996
50997 2006-06-29  Eric Blake  <ebb9@byu.net>
50998
50999         * doc/functions.texi (Function Portability): Document missing lstat
51000         on mingw.
51001
51002 2006-06-29  Eric Blake  <ebb9@byu.net>
51003
51004         * MODULES.html.sh: Add sys_stat.
51005         * modules/sys_stat: New module.
51006         * modules/mkstemp (Depends-on): Add sys_stat.
51007
51008 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51009
51010         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51011
51012 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51013
51014         * m4/c-bs-a.m4: Removed.
51015
51016 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51017
51018         * lib/strftime.c: Assume strftime() exists.
51019
51020 2006-06-29  Derek Price  <derek@ximbiot.com>
51021
51022         * modules/c-bs-a: Removed - \a is C89.
51023         * MODULES.html.sh: Remove c-bs-a.
51024
51025 2006-06-29  Bruno Haible  <bruno@clisp.org>
51026
51027         * modules/wcwidth (License): Change to LGPL.
51028
51029 2006-06-28  Simon Josefsson  <jas@extundo.com>
51030
51031         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51032         on _WIN32.
51033
51034         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51035         getnameinfo.
51036
51037 2006-06-28  Simon Josefsson  <jas@extundo.com>
51038
51039         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51040
51041 2006-06-28  Simon Josefsson  <jas@extundo.com>
51042
51043         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51044         functions there.  It will succeed on Windows XP, but on Windows
51045         2000 and (presumably) earlier, it will fail, and use the internal
51046         re-implementation.
51047         (use_win32_p): New function.
51048         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51049         Support AI_NUMERICSERV to disable getservbyname.
51050         (getnameinfo): New function, only supports
51051         NI_NUMERICHOST|NI_NUMERICSERV for now.
51052
51053         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51054         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51055         getnameinfo.
51056
51057 2006-06-28  Eric Blake  <ebb9@byu.net>
51058
51059         * modules/wcwidth: New file.
51060         * modules/mbchar (Depends-on): Add wcwidth.
51061         * modules/mbswidth (Depends-on): Add wcwidth.
51062         * MODULES.html.sh: Add wcwidth.
51063
51064 2006-06-28  Eric Blake  <ebb9@byu.net>
51065
51066         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51068
51069 2006-06-28  Eric Blake  <ebb9@byu.net>
51070
51071         * lib/xvasprintf.h: Fix comments.
51072
51073 2006-06-28  Eric Blake  <ebb9@byu.net>
51074
51075         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51076         * lib/mbswidth.c (wcwidth): Move from here...
51077         * lib/wcwidth.h: ...to this new file.
51078
51079 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51080
51081         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51082
51083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51084         it's obsolete.
51085         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51086
51087 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51088
51089         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51090         Autoconf 2.60 says this stuff was obsolete.
51091
51092 2006-06-28  Bruno Haible  <bruno@clisp.org>
51093
51094         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51095
51096 2006-06-28  Bruno Haible  <bruno@clisp.org>
51097
51098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51099         gt_TYPE_WCHAR_T.
51100
51101 2006-06-28  Bruno Haible  <bruno@clisp.org>
51102
51103         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51104         declaration for wcwidth.
51105         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51106
51107 2006-06-28  Bruno Haible  <bruno@clisp.org>
51108
51109         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51110         (mkdir): Define using _mkdir.
51111
51112 2006-06-28  Bruno Haible  <bruno@clisp.org>
51113
51114         * lib/getaddrinfo.h: Fix POSIX URL.
51115         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51116         _WIN32.
51117         (use_win32_p): Make static.
51118         (getaddrinfo): Reject service name if it is empty or does not consist
51119         solely of decimal digits, or if its value is > 65535.
51120         (getnameinfo): Remove useless casts.
51121
51122 2006-06-27  Simon Josefsson  <jas@extundo.com>
51123
51124         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51125         Eggert and Martin Lambers.
51126
51127 2006-06-27  Simon Josefsson  <jas@extundo.com>
51128
51129         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51130         Eggert and Martin Lambers.
51131
51132 2006-06-27  Bruno Haible  <bruno@clisp.org>
51133
51134         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51135         result to 0, not to empty.
51136         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51137
51138 2006-06-27  Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51141
51142 2006-06-26  Simon Josefsson  <jas@extundo.com>
51143
51144         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51145         present.
51146
51147 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51148
51149         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51150         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51151         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51152
51153 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51154
51155         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51156
51157 2006-06-26  Bruno Haible  <bruno@clisp.org>
51158
51159         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51160
51161 2006-06-26  Bruno Haible  <bruno@clisp.org>
51162
51163         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51164
51165 2006-06-26  Bruno Haible  <bruno@clisp.org>
51166
51167         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51168         SGI C compiler in pre-C99 mode.
51169         Suggested by Mark D. Baushke and Larry Jones.
51170
51171 2006-06-26  Bruno Haible  <bruno@clisp.org>
51172
51173         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51174         WCHAR_MAX.
51175         Reported by Mark D. Baushke and Larry Jones.
51176
51177 2006-06-26  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51180         in pre-C99 mode.
51181         Suggested by Mark D. Baushke and Larry Jones.
51182
51183 2006-06-23  Simon Josefsson  <jas@extundo.com>
51184             Bruno Haible  <bruno@clisp.org>
51185
51186         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51187         Emit mostlyclean-local rule.
51188         (func_emit_tests_Makefile_am): Likewise.
51189         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51190
51191 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51192
51193         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51194
51195 2006-06-23  Bruno Haible  <bruno@clisp.org>
51196
51197         * tests/test-stdint.c: Update to match ISO C 99 Technical
51198         Corrigendum 1.
51199
51200 2006-06-23  Bruno Haible  <bruno@clisp.org>
51201
51202         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51203
51204 2006-06-23  Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/stdint_.h: Treat IRIX like OpenBSD.
51207
51208 2006-06-23  Bruno Haible  <bruno@clisp.org>
51209
51210         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51211         ISO C 99 Technical Corrigendum 1.
51212
51213 2006-06-22  Simon Josefsson  <jas@extundo.com>
51214
51215         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51216         MinGW.
51217
51218 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51221         needed.  Some compiler complained about some of them.  Problem reported
51222         by Larry Jones in
51223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51224
51225 2006-06-21  Simon Josefsson  <jas@extundo.com>
51226
51227         * tests/test-getaddrinfo.c: New file.
51228
51229         * modules/getaddrinfo-tests: New file.
51230
51231         * MODULES.html.sh: Add inet_pton.
51232
51233         * modules/inet_pton: New file.
51234
51235 2006-06-21  Simon Josefsson  <jas@extundo.com>
51236
51237         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51238         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51239         of using the (limited) gnulib implementation on Windows XP.
51240
51241         * m4/inet_pton.m4: New file.
51242
51243 2006-06-21  Simon Josefsson  <jas@extundo.com>
51244
51245         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51246         variable.
51247
51248         * lib/socket_.h: Don't define WINVER.
51249
51250         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51251         slightly modified to work in gnulib.
51252
51253 2006-06-21  Simon Josefsson  <jas@extundo.com>
51254
51255         * doc/gnulib.texi (Windows sockets): Add.
51256
51257 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         * lib/read-file.c (fread_file): Start with buffer allocation of
51260         0 bytes rather than 1 byte; this simplifies the code.
51261         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51262         code to free buffer and save/restore errno.
51263         (internal_read_file): Remove unused local.
51264
51265 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51266
51267         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51268         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51269         Problem reported by Denis Excoffier in
51270         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51271
51272 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51273
51274         * modules/sys_socket, modules/socklen: Include sys/types since
51275         FreeBSD 4.x's sys/socket.h needs it.
51276
51277 2006-06-19  Simon Josefsson  <jas@extundo.com>
51278
51279         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51280
51281 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51282
51283         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51284
51285 2006-06-19  Bruno Haible  <bruno@clisp.org>
51286
51287         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51288         and FULL_PATH_INTTYPES_H in angle brackets.
51289         Reported by Mark D. Baushke <mdb@gnu.org>.
51290
51291 2006-06-17  Eric Blake  <ebb9@byu.net>
51292
51293         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51294         errno.
51295
51296 2006-06-17  Bruno Haible  <bruno@clisp.org>
51297
51298         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51299         <sys/inttypes.h>.
51300
51301 2006-06-17  Bruno Haible  <bruno@clisp.org>
51302
51303         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51304         whether errno is declared. Assume <errno.h> declares errno.
51305
51306 2006-06-17  Bruno Haible  <bruno@clisp.org>
51307
51308         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51309
51310 2006-06-17  Bruno Haible  <bruno@clisp.org>
51311
51312         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51313         problem on Solaris 2.5.1.
51314
51315 2006-06-16  Eric Blake  <ebb9@byu.net>
51316
51317         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51318         * lib/unicodeio.c [!defined errno]: Likewise.
51319         * lib/strtol.c [!defined errno]: Likewise.
51320         * lib/strtod.c [!defined errno]: Likewise.
51321
51322 2006-06-15  Eric Blake  <ebb9@byu.net>
51323
51324         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51325
51326 2006-06-15  Eric Blake  <ebb9@byu.net>
51327
51328         * config/srclist.txt (ssize_t.m4): Lose sync.
51329
51330 2006-06-15  Bruno Haible  <bruno@clisp.org>
51331
51332         * modules/stdint (Files): Include m4/full-header-path.m4,
51333         m4/size_max.m4, m4/wchar_t.m4.
51334         (Makefile.am): Many more substitutions.
51335         * modules/stdint-tests: New file.
51336         * tests/test-stdint.c: New file.
51337
51338 2006-06-15  Bruno Haible  <bruno@clisp.org>
51339
51340         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51341         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51342         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51343         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51344         gl_CHECK_TYPE_SAME): New macros.
51345
51346 2006-06-15  Bruno Haible  <bruno@clisp.org>
51347
51348         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51349
51350 2006-06-15  Bruno Haible  <bruno@clisp.org>
51351
51352         * lib/stdint_.h: Rewritten to be fully auto-configured.
51353         Fixes bug on HP-UX/IA64.
51354
51355 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51356
51357         * lib/getdate.y (__attribute__): Don't define if already defined.
51358         Problem reported by Larry Jones.
51359         * lib/utimens.c (__attribute__): Likewise.
51360
51361 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51362
51363         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51364         reported by Andreas Schwab.
51365
51366 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51367             Bruno Haible  <bruno@clisp.org>
51368
51369         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51370         check for the declaration of strnlen and a run test that exposes the
51371         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51372         rpl_strndup.
51373
51374 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51375             Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51378
51379 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51380
51381         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51382         compile test, for Tru64 4.0D.
51383
51384 2006-05-28  Karl Berry  <karl@gnu.org>
51385
51386         * config/srclist.txt (printf-args.c): lose sync.
51387
51388 2006-05-26  Martin Lambers  <marlam@marlam.de>
51389
51390         * lib/getpass.c: Updates the test for the native W32 API, and adds
51391         missing includes, thus fixing compilation warnings.
51392
51393 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51394
51395         * lib/exclude.c (exclude_fnmatch): New function.
51396         (excluded_file_name): Call exclude_fnmatch.
51397         * lib/exclude.h (excluded_file_name): New prototype
51398
51399 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51400
51401         * lib/tempname.c (small_open, large_open): New macros.
51402         (__open, __open64) [!_LIBC]: Remove.
51403         (__gen_tempname): Use small_open and large_open instead of __open
51404         and __open64.  This fixes a portability bug on HP-UX 11.11i
51405         reported by Simon Wing-Tang in
51406         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51407
51408 2006-05-24  Bruno Haible  <bruno@clisp.org>
51409
51410         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51411         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51412         Reported by Thorsten Maerz <torte@netztorte.de> via
51413         Aaron Stone <aaron@serendipity.cx>.
51414
51415 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51416
51417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51418         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51419         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51420         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51421         not really conditional on the cache.
51422         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51423
51424 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51425
51426         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51427         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51428         (my_usleep): Don't mishandle maximum value.
51429
51430 2006-05-19  Jim Meyering  <jim@meyering.net>
51431
51432         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51433
51434 2006-05-17  Bruno Haible  <bruno@clisp.org>
51435
51436         Cygwin portability.
51437         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51438
51439 2006-05-17  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/stdint_.h: Fix recognition of Cygwin.
51442
51443 2006-05-15  Bruno Haible  <bruno@clisp.org>
51444
51445         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51446         on libtool patch by Ralf Wildenhues.
51447
51448 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51449
51450         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51451         test for C99 conformance; (bool) 0.5 is an integer constant
51452         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51453         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51454
51455 2006-05-11  Simon Josefsson  <jas@extundo.com>
51456
51457         * m4/xvasprintf.m4: Fix obvious typo.
51458
51459 2006-05-11  Jim Meyering  <jim@meyering.net>
51460
51461         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51462         James Lemley.
51463
51464 2006-05-10  Simon Josefsson  <jas@extundo.com>
51465
51466         * lib/md4.c: Typo fix, update copyright years.
51467         (K1, K2): Don't use L because it turn computations into 64-bit on
51468         64-bit platforms.
51469
51470 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51471
51472         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51473         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51474         unwanted sign propagation, e.g., on hosts with 64-bit int.
51475         There still are some problems with reeelly weird theoretical hosts
51476         (e.g., 33-bit int) but it's not worth worrying about now.
51477         * lib/sha1.c (rol): Likewise.
51478         (K1, K2, K3, K4): Remove unnecessary L suffix.
51479
51480 2006-05-10  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/des.c: Cast to avoid warnings.
51483
51484 2006-05-09  Bruno Haible  <bruno@clisp.org>
51485
51486         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51487         (Depends-on): Depend also on xsize, stdarg.
51488         (configure.ac): Add gl_XVASPRINTF.
51489
51490 2006-05-09  Bruno Haible  <bruno@clisp.org>
51491
51492         * m4/xvasprintf.m4: New file.
51493
51494 2006-05-09  Bruno Haible  <bruno@clisp.org>
51495
51496         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51497         (EOVERFLOW): Define fallback value.
51498         (xstrcat): New function.
51499         (xvasprintf): Recognize the special case of a string concatenation.
51500
51501 2006-05-08  Eric Blake  <ebb9@byu.net>
51502
51503         * gnulib-tool (func_version): Base copyright year on CVS date.
51504         (func_emit_copyright_notice): New function.
51505         (func_emit_lib_Makefile_am): Use it.
51506         (func_emit_tests_Makefile_am): Likewise.
51507         (func_import): Likewise.
51508
51509 2006-05-08  Bruno Haible  <bruno@clisp.org>
51510
51511         * modules/stdarg: New file.
51512         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51513
51514 2006-05-08  Bruno Haible  <bruno@clisp.org>
51515
51516         * m4/stdarg.m4: New file, from GNU gettext.
51517
51518 2006-05-08  Bruno Haible  <bruno@clisp.org>
51519
51520         * config/srclist.txt (build-aux/config.rpath): different from latest
51521         release.
51522
51523 2006-05-08  Bruno Haible  <bruno@clisp.org>
51524
51525         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51526
51527 2006-05-05  Jim Meyering  <jim@meyering.net>
51528
51529         * m4/warning.m4: New file, derived from bison's file by the same name.
51530
51531 2006-05-03  Bruno Haible  <bruno@clisp.org>
51532
51533         * lib/stdint_.h: Shorter URL.
51534         * lib/inttypes.h: Likewise.
51535
51536 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51537
51538         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51539
51540 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * lib/verify.h: Document the internals better.  Most of this change
51543         was written by Bruno Haible.
51544
51545 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51546
51547         * doc/verify.texi: New file, partly based on a proposal by
51548         Bruno Haible.
51549
51550 2006-05-02  Bruno Haible  <bruno@clisp.org>
51551
51552         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
51553         test from here...
51554         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
51555
51556 2006-04-29  Bruno Haible  <bruno@clisp.org>
51557
51558         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
51559         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
51560
51561 2006-04-29  Bruno Haible  <bruno@clisp.org>
51562
51563         * gnulib-tool: Make --update option actually work.
51564
51565 2006-04-29  Bruno Haible  <bruno@clisp.org>
51566
51567         * doc/gcd.texi: New file.
51568         * doc/gnulib.texi: Include it.
51569
51570 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
51571
51572         * lib/getdate.y (get_date): When adding relative date, start with the
51573         initial time, not with the result of the first mktime call.
51574
51575 2006-04-25  Bruno Haible  <bruno@clisp.org>
51576
51577         * gnulib-tool (func_import): Output the include directives in three
51578         blocks, sorted separately.
51579         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51580
51581 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51582
51583         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
51584         to define main with arguments, for C++.  Reported by Eric Blake.
51585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51586         Prefer 'int main ()' to 'int main (void)', for C++.
51587         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
51588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
51589         for 'main', for C99 and C++.
51590
51591 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
51594         Don't assume that exit status -1 is valid.
51595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51596         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51597         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
51598         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
51599         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
51600         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
51601         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
51602         functions can be used without declaring them, or that you can
51603         exit with status -1.
51604         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
51605
51606 2006-04-24  Karl Berry  <karl@gnu.org>
51607
51608         * config/srclist.txt (longdouble.m4): sync lost.
51609
51610 2006-04-24  Eric Blake  <ebb9@byu.net>
51611
51612         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
51613
51614 2006-04-24  Bruno Haible  <bruno@clisp.org>
51615
51616         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
51617         poll() implementation in AIX.
51618         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51619
51620 2006-04-24  Bruno Haible  <bruno@clisp.org>
51621
51622         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
51623         assigned exactly once.
51624
51625 2006-04-23  Claudio Fontana  <claudio@gnu.org>
51626             Bruno Haible  <bruno@clisp.org>
51627
51628         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
51629         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
51630         for AM_CPPFLAGS.
51631
51632 2006-04-23  Bruno Haible  <bruno@clisp.org>
51633
51634         * modules/copy-file: Depend on unistd.
51635         * modules/execute: Likewise.
51636         * modules/fatal-signal: Likewise.
51637         * modules/findprog: Likewise.
51638         * modules/mkdtemp : Likewise.
51639         * modules/pipe: Likewise.
51640         * modules/wait-process: Likewise.
51641
51642 2006-04-23  Bruno Haible  <bruno@clisp.org>
51643
51644         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
51645         condition was already detected.
51646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51647
51648 2006-04-23  Bruno Haible  <bruno@clisp.org>
51649
51650         * lib/copy-file.c: Include <unistd.h> unconditionally.
51651         * lib/execute.c: Likewise.
51652         * lib/fatal-signal.c: Likewise.
51653         * lib/findprog.c: Likewise.
51654         * lib/mkdtemp.c: Likewise.
51655         * lib/pipe.h: Likewise.
51656         * lib/pipe.c: Likewise.
51657         * lib/wait-process.h: Likewise.
51658
51659 2006-04-23  Bruno Haible  <bruno@clisp.org>
51660
51661         * gnulib-tool (func_usage): Fix --import description. Document
51662         --update.
51663         (func_import): Create temporary file in a temporary directory, if
51664         --dry-run is specified. Silence errors from 'grep' when there are no
51665         m4 files in $m4dir.
51666         (func_create_testdir): Silence errors from 'grep' when there are no
51667         m4 files in $m4dir.
51668         Reported by Karl Berry <karl@freefriends.org>.
51669
51670 2006-04-20  Bruno Haible  <bruno@clisp.org>
51671
51672         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
51673         one argument, so that the code will be portable to Autoconf 2.60.
51674         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
51675         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
51676         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
51677
51678 2006-04-19  Derek Price  <derek@ximbiot.com>
51679             Eric Blake  <ebb9@byu.net>
51680
51681         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
51682         rather than "/full/path.h".  Update comment to match.  Shorten &
51683         generalize m4_translit call via AS_TR_CPP.
51684
51685 2006-04-19  Derek Price  <derek@ximbiot.com>
51686             Eric Blake  <ebb9@byu.net>
51687
51688         * lib/inttypes.h: Correct grammar in comment.
51689
51690 2006-04-18  Derek Price  <derek@ximbiot.com>
51691             Paul Eggert  <eggert@cs.ucla.edu>
51692
51693         * modules/inttypes: New file.
51694         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
51695
51696 2006-04-18  Derek Price  <derek@ximbiot.com>
51697             Paul Eggert  <eggert@cs.ucla.edu>
51698
51699         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
51700         New files.
51701
51702 2006-04-18  Derek Price  <derek@ximbiot.com>
51703             Paul Eggert  <eggert@cs.ucla.edu>
51704
51705         * lib/inttypes.h: New file.
51706         * lib/strtoimax.c: Assume <inttypes.h>.
51707
51708 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
51709
51710         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
51711         isn't mounted.  Problem reported by Kir Kolyshkin.
51712
51713 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51714
51715         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
51716         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
51717         Derek R. Price.
51718         * lib/regex.h (RE_DUP_MAX): Update comment to match current
51719         implementation.
51720
51721 2006-04-12  Eric Blake  <ebb9@byu.net>
51722
51723         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
51724         is now done automatically by the corresponding Autoconf macro.
51725
51726 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
51727
51728         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
51729         time_r.h.
51730
51731 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51732
51733         Merge regex changes from libc, removing some of our
51734         POSIX-conformance changes that were rejected and redoing them in a
51735         less-intrusive way.
51736
51737         * lib/regcomp.c (re_compile_internal, init_dfa):
51738         Length arg is now size_t, not Idx.  All uses changed.
51739         (peek_token): Forward decl now says internal_function.
51740         (__re_error_msgid, __re_error_msgid_idx):
51741         Now static rather than extern with attribute_hidden.
51742         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
51743         For some reason libc prefers K&R style defns for external functions.
51744         (regerror) [!defined _LIBC]: Likewise.
51745         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
51746         (seek_collating_symbol_entry, lookup_collation_sequence_value):
51747         (build_range_exp, build_collating_symbol):
51748         Use K&R-style defn.
51749         (re_compile_fastmap): Use '\0' to memset, not 0.
51750         (utf8_sb_map): Make the calculations more obvious.
51751         (init_dfa, parse_bracket_exp, build_charclass_op):
51752         Call calloc and cast result, as glibc does.
51753         (init_word_char, fetch_token, peek_token, peek_token_bracket):
51754         (build_range_exp, build_collating_symbol):
51755         Now internal functions.
51756
51757         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
51758
51759         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
51760         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
51761         Don't depend on VMS; depend on __VMS instead, for POSIX
51762         namespace cleanness.
51763         (regoff_t): Define to ssize_t, not long int.
51764
51765         Remove the REG_ macros named below.  Instead, make the old names
51766         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
51767         __USE_GNU_REGEX.
51768         (REG_BACKSLASH_ESCAPE_IN_LISTS):
51769         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
51770         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
51771         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
51772         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
51773         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
51774         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
51775         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
51776         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
51777         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
51778         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
51779         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
51780         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
51781         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
51782         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
51783         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
51784         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
51785         (REG_NREGS):
51786         Remove.  All uses replaced by the old RE_* names.
51787         (RE_BACKSLASH_ESCAPE_IN_LISTS):
51788         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
51789         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
51790         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
51791         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
51792         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
51793         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
51794         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
51795         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
51796         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
51797         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
51798         Don't bother having these macros be independent of each others'
51799         values, since they no longer exist in the POSIX name space.
51800
51801         Rename the following member names back to their old names,
51802         unless !__USE_GNU_REGEX.  All uses changed back.
51803         (buffer): Renamed from re_buffer.
51804         (allocated): Renamed from re_allocated.
51805         (used): Renamed from re_used.
51806         (syntax): Renamed from re_syntax.
51807         (fastmap): Renamed from re_fastmap.
51808         (translate): Renamed from re_translate.
51809         (can_be_null): Renamed from re_can_be_null.
51810         (regs_allocated): Renamed from re_regs_allocated.
51811         (fastmap_accurate): Renamed from re_fastmap_accurate.
51812         (no_sub): Renamed from re_no_sub.
51813         (not_bol): Renamed from re_not_bol.
51814         (not_eol): Renamed from re_not_eol.
51815         (newline_anchor): Renamed from re_newline_anchor.
51816         (num_regs): Renamed from rm_num_regs.
51817         (start): Renamed from rm_start.
51818         (end): Renamed from rm_end.
51819
51820         (free_state): Move up a bit.
51821
51822         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
51823         #define to be empty.
51824         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
51825         when that is what is intended.
51826         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
51827         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
51828         (MAX): New macro.
51829         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
51830         All uses changed back to re_malloc, etc.  It's now the caller's
51831         responsibility to check for overflow; all callers changed.
51832         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
51833         (re_x2nrealloc): Remove.
51834         (free_state): Remove decl.
51835
51836         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
51837         (re_set_registers, re_exec):
51838         Use K&R-style defn.
51839
51840         2006-01-31  Roland McGrath  <roland@redhat.com>
51841
51842         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
51843         Reported by Mike Frysinger <vapier@gentoo.org>.
51844
51845         2006-01-15  Andreas Jaeger  <aj@suse.de>
51846
51847         [BZ #1950]
51848         * lib/regex_internal.c (re_string_reconstruct): Adjust for
51849         build_wcs_upper_buffer change.
51850         (build_wcs_upper_buffer): Change return type.
51851
51852         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
51853
51854         * lib/regex_internal.h: Include <stdint.h> if available.
51855
51856         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
51857
51858         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
51859
51860         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51861
51862         * lib/regcomp.c: Adjust for changed secondary hash function.
51863
51864         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
51865
51866         * lib/regex.h: Pretty printing.
51867         Clean up namespace a bit.
51868
51869         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
51870
51871         * lib/regexec.c (update_cur_sifted_state, check_arrival,
51872         check_arrival_add_next_nodes): Avoid using uninitialized variable.
51873
51874         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51875                     Ulrich Drepper  <drepper@redhat.com>
51876
51877         [BZ #1302]
51878         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
51879         changed.
51880         (bitset_word_t): Renamed from bitset_word.  All uses changed.
51881
51882         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
51883
51884         [BZ #281]
51885         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
51886         * lib/regcomp.c: Remove unnecessary uses of
51887         unsigned RE_TRANSLATE_TYPE.
51888         * lib/regex_internal.h: Likewise.
51889         * lib/regex_internal.c: Likewise.
51890         * lib/regexec.c: Likewise.
51891         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
51892
51893         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
51894
51895         * lib/regexec.c (find_recover_state): Remove unnecessary
51896         initialization.
51897         (transit_state_bkref): Make DFA a const pointer.
51898         (get_subexp): Likewise.
51899         (check_arrival): Likewise.
51900         (update_cur_sifted_state): Likewise.
51901         (re_search_internal): Likewise.
51902         (prune_impossible_nodes): Likewise.
51903         (acquire_init_state_context): Likewise.
51904         (proceed_next_node): Likewise.
51905         (set_regs): Likewise.
51906         (free_fail_stack_return): Likewise.
51907         (check_arrival_expand_ecl): Mark DFA parameter as const.
51908         (check_arrival_expand_ecl_sub): Likewise.
51909         (check_subexp_limits): Likewise.
51910         (sub_epsilon_src_nodes):  Likewise.
51911         (add_epsilon_src_nodes):  Likewise.
51912         (merge_state_array): Likewise.
51913         (update_regs): Likewise.
51914         (build_trtable): Likewise.
51915         (sift_states_backward): Mark MCTX parameter as const.
51916         (build_sifted_states): Likewise.
51917         (update_cur_sifted_state): Likewise.
51918         (sift_states_mkref): Likewise.
51919         (check_arrival_expand_ecl): Mark eclosure as const.
51920         (check_dst_limits_calc_pos_1): Likewise.
51921         * lib/regex_internal.h (re_match_context_t): Make dfa a const
51922         pointer.
51923
51924         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
51925
51926         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
51927         (transit_state_sb): Likewise.
51928         (transit_state_mb): Likewise.
51929         (sift_states_iter_mb): Likewise.
51930         (check_arrival_add_next_nodes): Likewise.
51931         (check_node_accept_bytes): Change first parameter to pointer-to-const.
51932         [_LIBC] (re_search_2_stub): Use mempcpy.
51933
51934         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
51935         mbrtowc for very simple UTF-8 case.
51936
51937         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
51938         a pointer-to-const.
51939         (re_acquire_state_context): Likewise.
51940         * lib/regex_internal.h: Adjust prototypes.
51941
51942         * lib/regex.c: Prevent using C++ compilers.
51943
51944         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
51945         (re_acquire_state_context): Likewise.
51946
51947 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51948
51949         * modules/regex (Depends-on): Add ssize_t.
51950
51951 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51952
51953         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
51954         translation table.
51955
51956 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51957
51958         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
51959
51960 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
51961             Bruno Haible  <bruno@clisp.org>
51962
51963         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
51964         <sys/types.h> and <inttypes.h>.
51965
51966 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51967
51968         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
51969         `__error_t_defined', so argp.h will not typedef the former.
51970
51971 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
51972
51973         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
51974         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
51975         glibc names.  Even if glibc is changed to conform to POSIX, the
51976         traditional names will be available anyway, since regex depends on
51977         the extensions module.  Also, fix a longstanding typo in the
51978         implementation of Spencer ERE test #75 from grep 2.3.  Problems
51979         reported by Emanuele Giaquinta.  Also, change sense of cached
51980         variable, so that the message makes sense.
51981
51982 2006-03-24  Simon Josefsson  <jas@extundo.com>
51983
51984         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
51985         including some doc fixes.
51986         (base64_encode_alloc): Fix +1 bug on allocation failures.
51987
51988 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51989
51990         * lib/base64.c (base64_encode): Do not read past end of array with
51991         unsanitized input on systems with CHAR_BIT > 8.
51992
51993 2006-03-24  Eric Blake  <ebb9@byu.net>
51994
51995         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
51996
51997 2006-03-22  Karl Berry  <karl@gnu.org>
51998
51999         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52000         * config/srclistvars.sh (COREUTILS): new var.
52001
52002 2006-03-17  Jim Meyering  <jim@meyering.net>
52003
52004         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52005         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52006
52007 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52008
52009         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52010         no longer needs it.  Instead, check that regoff_t is as least
52011         as wide as ptrdiff_t.
52012
52013         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52014         so that our regex.h stays compatible with the installed regex.
52015         This is helpful for installers who configure --without-included-regex.
52016         Problem reported by Emanuele Giaquinta.
52017
52018 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52019
52020         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52021         Typedef to long int, not to off_, as POSIX will likely change
52022         in that direction.
52023
52024 2006-03-15  Eric Blake  <ebb9@byu.net>
52025
52026         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52027
52028 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52029
52030         * lib/argp-help.c (validate_uparams): Fix typo
52031         * lib/argp-parse.c (argp_default_options): Consistently begin help
52032         messages with a lowercase letter.
52033
52034 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52035
52036         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52037         overrun buffers and shouldn't be used (much as gets shouldn't be
52038         used).
52039         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52040
52041 2006-03-08  Simon Josefsson  <jas@extundo.com>
52042
52043         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52044         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52045
52046 2006-03-08  Simon Josefsson  <jas@extundo.com>
52047
52048         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52049         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52050
52051 2006-03-08  Simon Josefsson  <jas@extundo.com>
52052
52053         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52054         signal that configure disabled the device.
52055
52056 2006-03-08  Simon Josefsson  <jas@extundo.com>
52057
52058         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52059         languages.
52060
52061 2006-03-07  Simon Josefsson  <jas@extundo.com>
52062
52063         * modules/getopt (Depends-on): Add unistd.
52064
52065         * modules/unistd: New file.
52066
52067 2006-03-07  Simon Josefsson  <jas@extundo.com>
52068
52069         * modules/gc-random: New file.
52070
52071 2006-03-07  Simon Josefsson  <jas@extundo.com>
52072
52073         * m4/unistd_h.m4: New file.
52074
52075 2006-03-07  Simon Josefsson  <jas@extundo.com>
52076
52077         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52078         test to be side-effect free by storing the result in the cache
52079         variable gl_cv_lib_readline, and moving the assignment of
52080         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52081         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52082
52083 2006-03-07  Simon Josefsson  <jas@extundo.com>
52084
52085         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52086         error on missing devices (the functions will return an error).
52087
52088         * m4/gc.m4: Move random stuff to gc-random.m4
52089
52090 2006-03-07  Simon Josefsson  <jas@extundo.com>
52091
52092         * lib/unistd_.h: New file.
52093
52094 2006-03-07  Simon Josefsson  <jas@extundo.com>
52095
52096         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52097
52098 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52099
52100         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52101         Problem reported by Juan Manuel Guerrero.
52102
52103 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52104
52105         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52106         the unistd module.
52107         * lib/getlogin_r.c: Likewise.
52108         * lib/getlogin_r.h: Likewise.
52109         * lib/glob.c: Likewise.
52110         * lib/pagealign_alloc.c: Likewise.
52111         * lib/unistd_.h: Remove; no longer needed.
52112
52113 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52114
52115         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52116         Add unistd.
52117         * modules/c-stack (Depends-on): Add unistd.
52118         * modules/getlogin_r: Likewise.
52119         * modules/glob: Likewise.
52120         * modules/pagealign_alloc: Likewise.
52121         * modules/unistd (Files): Remove lib/unistd_.h.
52122         (EXTRA_DIST): Remove.
52123         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52124         need unistd_.h.
52125         (MOSTLYCLEANFILES): Remove unistd.h-t.
52126
52127 2006-03-03  Simon Josefsson  <jas@extundo.com>
52128
52129         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52130
52131 2006-03-03  Simon Josefsson  <jas@extundo.com>
52132
52133         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52134         libidn and bison.
52135
52136 2006-03-03  Simon Josefsson  <jas@extundo.com>
52137
52138         * build-aux/maint.mk: Add indent target.
52139
52140 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52141
52142         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52143         our replacement poll.h in any case, to avoid a differing
52144         declaration from a system header.  Seen on AIX.
52145
52146 2006-03-01  Simon Josefsson  <jas@extundo.com>
52147
52148         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52149         <kasal@ucw.cz>.
52150
52151 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         * modules/gettime (Depends-on): Add extensions module.
52154         * modules/nanosleep (Depends-on): Likewise.
52155         * modules/settime (Depends-on): Likewise.
52156
52157 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52158
52159         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52160         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52161         pedantically.
52162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52163         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52164
52165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52166         not "==".  Reported by Ralf Wildenhues.
52167
52168 2006-03-01  Karl Berry  <karl@gnu.org>
52169
52170         * doc/Copyright/request-*: new files, synced from gnuorg.
52171
52172 2006-03-01  Karl Berry  <karl@gnu.org>
52173
52174         * config/srclist.txt (Copyright/*): new entries.
52175
52176 2006-02-28  Simon Josefsson  <jas@extundo.com>
52177
52178         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52179
52180 2006-02-27  Simon Josefsson  <jas@extundo.com>
52181
52182         * lib/base64.h: Indent #define's.  From Jim Meyering
52183         <jim@meyering.net>.
52184
52185 2006-02-27  Jim Meyering  <jim@meyering.net>
52186
52187         Revert the change of 2006-02-24, so these files can continue
52188         to be sync'd from gettext.
52189         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52190         of `config.h'.
52191
52192 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52193
52194         * modules/intprops: New file.
52195         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52196         Add intprops.
52197         * modules/getloadavg (Files): Remove lib/intprops.h.
52198         (Depends-on): Add intprops.
52199         * modules/human: Likewise.
52200         * modules/inttostr: Likewise.
52201         * modules/openat: Likewise.
52202         * modules/sig2str: Likewise.
52203         * modules/userspec: Likewise.
52204         * modules/utimecmp: Likewise.
52205         * modules/xnanosleep: Likewise.
52206         * modules/xstrtol: Likewise.
52207
52208 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52209
52210         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52211         * modules/lock-tests (TESTS): Use $(EXEEXT).
52212         * modules/tls-tests: Likewise.
52213         * modules/argp-tests: Likewise.
52214         (check_PROGRAMS): New var, replacing...
52215         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52216
52217 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52218
52219         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52220         `config.h'.
52221
52222 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52223
52224         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52225
52226 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52227
52228         Sync from coreutils.
52229         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52230         gl_CHDIR_SAFER.
52231
52232 2006-02-22  Jim Meyering  <jim@meyering.net>
52233
52234         Sync from coreutils.
52235         * m4/chdir-safer.m4: New file.
52236
52237 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52238
52239         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52240         AT_FDCWD exceeds INT_MAX.
52241         * lib/openat.h (AT_FDCWD): Likewise.
52242
52243 2006-02-17  Eric Blake  <address@hidden>
52244
52245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52246
52247 2006-02-16  Simon Josefsson  <jas@extundo.com>
52248
52249         * modules/getaddrinfo (Depends-on): Add sys_socket.
52250
52251 2006-02-15  Simon Josefsson  <jas@extundo.com>
52252
52253         * build-aux/maint.mk: Add dsyntax-check rule.
52254
52255 2006-02-15  Eric Blake  <ebb9@byu.net>
52256
52257         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52258         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52259         'present but cannot compile' warnings on cygwin.
52260         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52261         use ws2tcpip.h if sys/socket.h works.
52262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52263         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52264
52265 2006-02-14  Simon Josefsson  <jas@extundo.com>
52266
52267         * modules/maintainer-makefile (Files): Rename.
52268
52269         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52270         and (the local) Makefile.cfg to maint-cfg.mk.
52271
52272         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52273         to the latter.
52274
52275         * modules/maintainer-makefile: New module.
52276
52277         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52278         severaly stripped to make it possible to build it up from scratch
52279         with reliable tests.
52280
52281         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52282         fixes to permit overriding the default actions when configure and
52283         makefile are not available.
52284
52285 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52286
52287         Sync from coreutils.
52288         * modules/lstat (Depends-on): Don't depend on xalloc.
52289         (License): Change from GPL to LGPL, since this is now simply a
52290         replacement for a libc function.
52291
52292 2006-02-14  Jim Meyering  <jim@meyering.net>
52293
52294         Sync from coreutils.
52295
52296         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52297         failure on deficient systems, and simplify gnulib lgpl dependencies.
52298         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52299         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52300
52301         * lib/xalloc-die.c: Remove unused definition of N_.
52302
52303 2006-02-14  Jim Meyering  <jim@meyering.net>
52304
52305         Sync from coreutils.
52306         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52307         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52308         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52309         double-quote uses of that variable, to accommodate the rare case in
52310         which getmntent is available in none of the libraries checked.  This
52311         happens at least on FreeBSD 5.0.
52312
52313 2006-02-13  Simon Josefsson  <jas@extundo.com>
52314
52315         * gnulib-tool (Usage): Fix --import, from
52316         karl@freefriends.org (Karl Berry).
52317
52318 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52319
52320         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52321
52322 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52323
52324         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52325         "autoupdate" on 2005-12-12.
52326
52327 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52328
52329         * modules/closeout (Depends-on): Remove atexit.
52330
52331 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52332
52333         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52334         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52335
52336 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52337
52338         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52339         __EXTENSIONS__ if this causes compilation to fail.  Problem
52340         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52341         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52342
52343 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52344
52345         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52346         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52348         All uses changed.
52349
52350 2006-01-26  Simon Josefsson  <jas@extundo.com>
52351
52352         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52353         prototype is visible on mingw32.
52354
52355         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52356         for mingw32.
52357
52358         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52359         mingw32).
52360
52361 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52362
52363         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52364         attempt to open for write; this always fails, at least on POSIX
52365         hosts.  This reinstates the 2006-01-09 change, which was
52366         inadvertently removed.
52367
52368 2006-01-26  Bruno Haible  <bruno@clisp.org>
52369
52370         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52371         Reported by Paul Eggert.
52372
52373 2006-01-26  Bruno Haible  <bruno@clisp.org>
52374             Paul Eggert  <eggert@cs.ucla.edu>
52375
52376         * lib/stdbool_.h (_Bool)
52377         [(! (defined __cplusplus || defined __BEOS__)
52378           && !defined __GNUC__
52379           && !(defined __HP_cc || defined __xlc__
52380                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52381                || defined __sgi))]:
52382         #define to signed char in these cases too; this simplifies
52383         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52384         etc., separately) and makes it more conservative.
52385
52386 2006-01-25  Simon Josefsson  <jas@extundo.com>
52387
52388         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52389         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52390         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52391
52392 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52393
52394         * lib/argp-namefrob.h: Bugfix. Remove stray #
52395
52396 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52397
52398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52399         so that we test the test.
52400         Check for yet another HP-UX cc bug involving *bool |= bool.
52401
52402 2006-01-25  Karl Berry  <karl@gnu.org>
52403
52404         * config/srclist.txt (vasnprintf.c): sync lost.
52405
52406 2006-01-25  Jim Meyering  <jim@meyering.net>
52407
52408         Sync from the stable (b5) branch of coreutils:
52409
52410         * lib/fts.c (fts_children): Don't let close() clobber errno from
52411         failed fchdir().
52412
52413         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52414         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52415         a dangling symlink.  That can also happen at least for ELOOP.
52416         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52417         FYI, this bug predates the inclusion of fts.c in coreutils.
52418
52419         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52420         in their own block, so pre-c99 compilers don't object.
52421
52422         Avoid the double-free (first in fts_read, second in fts_close) that
52423         would occur when an `active' directory is made inaccessible (e.g.,
52424         via chmod a-x) during a traversal.
52425         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52426         before returning.  Reproduce this failure by
52427         mkdir -p a/b; cd a; chmod a-x . b
52428         Reported by Stavros Passas.
52429
52430 2006-01-25  Jim Meyering  <jim@meyering.net>
52431
52432         * lib/fileblocks.c: Remove more useless parentheses.
52433         * lib/readutmp.h: Likewise.
52434
52435 2006-01-25  Bruno Haible  <bruno@clisp.org>
52436
52437         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52438         warnings.
52439         Reported by Paul Eggert.
52440
52441 2006-01-25  Bruno Haible  <bruno@clisp.org>
52442
52443         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52444         rid of a trap command. For Solaris sh.
52445         Reported by Mark D. Baushke <mdb@gnu.org>.
52446
52447 2006-01-24  Simon Josefsson  <jas@extundo.com>
52448
52449         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52450         Bruno.
52451
52452 2006-01-24  Karl Berry  <karl@gnu.org>
52453
52454         * config/srclist.txt (argp-namefrob.h): sync lost.
52455
52456 2006-01-24  Jim Meyering  <jim@meyering.net>
52457
52458         * modules/openat (Files): Add lib/intprops.h.
52459         From Mark D. Baushke.
52460
52461 2006-01-24  Jim Meyering  <jim@meyering.net>
52462
52463         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52464         Reported by Mark D. Baushke.
52465
52466 2006-01-24  Jim Meyering  <jim@meyering.net>
52467
52468         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52469
52470 2006-01-24  Bruno Haible  <bruno@clisp.org>
52471
52472         * modules/strnlen (Maintainer): Change from glibc to all.
52473
52474 2006-01-24  Bruno Haible  <bruno@clisp.org>
52475
52476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52477         Patch by Paul Eggert.
52478
52479 2006-01-24  Bruno Haible  <bruno@clisp.org>
52480
52481         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52482         already has it.
52483         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52484         2005-11-26.
52485
52486         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52487         'signed char' to avoid problems with the built-in _Bool type.
52488         Reported by Paul Eggert on 2005-11-26.
52489
52490 2006-01-24  Bruno Haible  <bruno@clisp.org>
52491
52492         * gnulib-tool (func_import): Avoid constructing complicated sed
52493         expressions inside backquote.
52494         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52495
52496 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52497
52498         These changes imported from libc.
52499         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52500         test and two separate function calls.
52501         * lib/strndup.c (__strndup): Add libc_hidden_def.
52502
52503 2006-01-23  Simon Josefsson  <jas@extundo.com>
52504
52505         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52506         Remove the test_*_SOURCES variable: automake infers it by default.
52507         * modules/tls-tests: Likewise.
52508
52509 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52510
52511         Work around porting bugs reported by Dieter in
52512         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52513         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52514         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52515         Include "getopt.h" first, to check interface.
52516         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52517         !HAVE_DECL_GETENV.
52518         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52519         (__strndup): Revert to K&R-style function dfns, the glibc style.
52520         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52521         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52522         Include strnlen.h first, to get prototype properly.
52523         (strnlen): Renamed from __strnlen.
52524         Remove weak alias.
52525
52526 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52527
52528         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52529
52530 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52531
52532         * config/srclist.txt: Adjust to reflect glibc reorganization.
52533         This affects only comments.
52534
52535 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52536
52537          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52538          Reported by Bruce Korb <bkorb@gnu.org>.
52539
52540 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52541
52542         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52543         to pacify gcc -Wswitch-default.
52544
52545 2006-01-22  Bruno Haible  <bruno@clisp.org>
52546
52547         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
52548         temporary buffer for sprintf, take into account the precision also
52549         for 'd', 'i', 'u', 'o', 'x', 'X'.
52550
52551 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52552
52553         * modules/argp-tests: New module
52554         * tests/test-argp.c: New file
52555         * tests/test-argp-2.sh: New file
52556
52557 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52558
52559         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
52560         (__argp_base_name): Removed
52561         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
52562         typo.
52563         (__argp_base_name): Provide macro definition or extern declaration
52564         depending on the configuration
52565
52566 2006-01-20  Simon Josefsson  <jas@extundo.com>
52567
52568         * modules/inet_ntop (Depends-on): Depend on sys_socket.
52569
52570 2006-01-20  Simon Josefsson  <jas@extundo.com>
52571
52572         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
52573
52574 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52575
52576         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
52577         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
52578         Suggested by Bruno Haible.
52579
52580 2006-01-20  Karl Berry  <karl@gnu.org>
52581
52582         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
52583         until changes propagate, I guess.
52584
52585 2006-01-19  Simon Josefsson  <jas@extundo.com>
52586
52587         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
52588
52589 2006-01-19  Simon Josefsson  <jas@extundo.com>
52590
52591         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
52592
52593 2006-01-19  Simon Josefsson  <jas@extundo.com>
52594
52595         * gnulib-tool: Set check_PROGRAMS.
52596
52597         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52598         modules/des-tests, modules/gc-arcfour-tests,
52599         modules/gc-arctwo-tests, modules/gc-des-tests,
52600         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52601         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52602         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52603         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52604         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52605         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
52606         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
52607         test_*_SOURCES.
52608
52609 2006-01-18  Simon Josefsson  <jas@extundo.com>
52610
52611         * modules/socklen (Depends-on): Depend on sys_socket.
52612
52613 2006-01-18  Simon Josefsson  <jas@extundo.com>
52614
52615         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52616         modules/des-tests, modules/gc-arcfour-tests,
52617         modules/gc-arctwo-tests, modules/gc-des-tests,
52618         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52619         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52620         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52621         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52622         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52623         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
52624         $(EXEEXT) to automake TESTS variable, for mingw32.
52625
52626 2006-01-17  Simon Josefsson  <jas@extundo.com>
52627
52628         * modules/socklen (Include): Need sys/socket.h.
52629
52630 2006-01-17  Bruno Haible  <bruno@clisp.org>
52631
52632         * modules/ssize_t (Include): Add <sys/types.h>.
52633
52634 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
52635
52636         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
52637         it's not portable and it doesn't work with cross-compiles.
52638         Problem reported by Bruno Haible.  Fix missing-$ typo in
52639         'test "gl_cv_ignore_unused_libraries" ...' that prevented
52640         -zignore from being used with Sun's C compiler.
52641
52642 2006-01-12  Simon Josefsson  <jas@extundo.com>
52643
52644         * lib/base64.c: Fix warning, reported by Bruno Haible
52645         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
52646
52647 2006-01-12  Bruno Haible  <bruno@clisp.org>
52648
52649         * modules/ldd: New file.
52650         * build-aux/ldd.sh.in: New file.
52651         * MODULES.html.sh (Support for building libraries and executables): Add
52652         ldd.
52653
52654 2006-01-12  Bruno Haible  <bruno@clisp.org>
52655
52656         * m4/ldd.m4: New file.
52657
52658 2006-01-12  Bruno Haible  <bruno@clisp.org>
52659
52660         * gnulib-tool (func_import, func_create_testdir): Don't go into an
52661         endless loop while replacing $auxdir with build-aux.
52662
52663 2006-01-11  Simon Josefsson  <jas@extundo.com>
52664
52665         * lib/stdint_.h (SIZE_MAX): Add missing (.
52666
52667 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
52668
52669         Sync from coreutils.
52670         * lib/md5.c: Fix commentary typos.
52671         (alignof, UNALIGNED_P): No need for a GCC-specific version.
52672         * lib/md5.h (__attribute__): Remove; unused.
52673         * lib/sha1.c: Fix commentary to match md5 better.
52674         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
52675         so that we don't need to worry about alignment.  All uses changed.
52676         This merges the 2005-10-28 md5 change into sha1.
52677
52678 2006-01-11  Jim Meyering  <jim@meyering.net>
52679
52680         Sync from coreutils.
52681         * lib/md5.c (OP): Fix spacing.
52682
52683 2006-01-11  Bruno Haible  <bruno@clisp.org>
52684
52685         Ensure automatic ordering between gl_LOCK and gl_ARGP.
52686         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
52687         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
52688
52689 2006-01-11  Bruno Haible  <bruno@clisp.org>
52690
52691         Ensure automatic ordering between gl_LOCK and gl_ARGP.
52692         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
52693         the "early" section as well.
52694
52695 2006-01-11  Bruno Haible  <bruno@clisp.org>
52696
52697         Avoid "ar: no archive members specified" error on MacOS X.
52698         * gnulib-tool (func_modules_add_dummy): New function.
52699         (func_import, func_create_testdir): Invoke it.
52700
52701 2006-01-11  Bruno Haible  <bruno@clisp.org>
52702
52703         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
52704         with $auxdir in AC_CONFIG_FILES statements.
52705
52706 2006-01-11  Bruno Haible  <bruno@clisp.org>
52707
52708         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52709         Initialize also noinst_HEADERS to empty.
52710
52711 2006-01-11  Bruno Haible  <bruno@clisp.org>
52712
52713         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
52714         variables.
52715         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
52716         autoreconf.
52717
52718 2006-01-11  Bruno Haible  <bruno@clisp.org>
52719
52720         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
52721         overridable by the user.
52722         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52723
52724 2006-01-10  Simon Josefsson  <jas@extundo.com>
52725
52726         * modules/sys_socket: New file.
52727
52728 2006-01-10  Simon Josefsson  <jas@extundo.com>
52729
52730         * m4/sys_socket_h.m4: New file.
52731
52732 2006-01-10  Simon Josefsson  <jas@extundo.com>
52733
52734         * lib/socket_.h: New file.
52735
52736 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         * modules/readutmp (Maintainer): Add myself.
52739
52740 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52741
52742         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
52743         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
52744         People who are still concerned with buggy memcmp implementations
52745         can invoke gl_FUNC_MEMCMP themselves.
52746
52747 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52748
52749         * lib/regex_internal.h (BITSET_WORD_BITS):
52750         Work around a bug in 64-bit PGC (before version 6.1-2), where the
52751         preprocessor mishandles large unsigned values as if they were signed.
52752         Problem reported by Claudio Fontana in
52753         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
52754
52755 2006-01-10  Jim Meyering  <jim@meyering.net>
52756
52757         Avoid the double-free (first in fts_read, second in fts_close) that
52758         would occur when an `active' directory is made inaccessible (e.g.,
52759         via chmod a-x) during a traversal.
52760         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52761         before returning.  Reproduce this failure by
52762         mkdir -p a/b; cd a; chmod a-x . b
52763         Reported by Stavros Passas.
52764
52765         Sync from coreutils.
52766         * lib/sha1.c: Tweak grammar in a comment.
52767
52768 2006-01-10  Jim Meyering  <jim@meyering.net>
52769
52770         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
52771         Patch by Joerg Sonnenberger.
52772
52773 2006-01-10  Bruno Haible  <bruno@clisp.org>
52774
52775         * modules/readutmp: Depend on module free.
52776         * modules/strtok_r: Depend on module restrict.
52777
52778 2006-01-10  Bruno Haible  <bruno@clisp.org>
52779
52780         * modules/gettext (configure.ac): Add an invocation of
52781         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
52782
52783 2006-01-10  Bruno Haible  <bruno@clisp.org>
52784
52785         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
52786         Reported by Werner Lemberg <wl@gnu.org>.
52787
52788 2006-01-10  Bruno Haible  <bruno@clisp.org>
52789
52790         * lib/localcharset.c: Update from GNU gettext.
52791
52792 2006-01-10  Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/argp.h (__const): Remove macro. Use const instead.
52795         * lib/argp-fmtstream.h (__const): Likewise.
52796         * lib/glob_.h (__const): Remove macro.
52797         * lib/glob-libc.h: Use const instead of __const.
52798
52799 2006-01-10  Bruno Haible  <bruno@clisp.org>
52800
52801         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
52802         variable.
52803         Needed to avoid an automake error regarding the 'gettext' module.
52804
52805 2006-01-09  Simon Josefsson  <jas@extundo.com>
52806
52807         * modules/inet_ntop (Depends-on): Add restrict.
52808
52809 2006-01-09  Simon Josefsson  <jas@extundo.com>
52810
52811         * modules/gc-rijndael-tests (License): Put under LGPL.
52812
52813         * modules/gc-des-tests (License): Likewise.
52814
52815         * modules/gc-arcfour-tests (License): Likewise.
52816
52817         * modules/gc-arctwo-tests (License): Likewise.
52818
52819         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
52820
52821         * modules/gc-hmac-sha1-tests (Files): Likewise.
52822
52823         * modules/gc-hmac-md5-tests (License): Likewise.
52824
52825         * modules/gc-sha1-tests (License): Likewise.
52826
52827         * modules/gc-md5-tests (License): Likewise.
52828
52829         * modules/gc-md4-tests (License): Likewise.
52830
52831         * modules/gc-md2-tests (License): Likewise.
52832
52833         * modules/gc-tests (License): Likewise.
52834
52835         * modules/des-tests (License): Likewise.
52836
52837         * modules/md4-tests (License): Likewise.
52838
52839         * modules/md2-tests (License): Likewise.
52840
52841 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52842
52843         Sync from coreutils:
52844
52845         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
52846         * modules/lib-ignore: New file.
52847         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
52848         chdir-safer.m4, lchmod.m4.
52849         * modules/openat: Add mkdirat.c, openat-priv.h.
52850
52851 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52852
52853         Sync from coreutils.
52854         * m4/lib-ignore.m4: New file.
52855         * m4/lchmod.m4: New file.
52856
52857 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52858
52859         Sync from coreutils.
52860         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
52861         for write access: POSIX says that must fail.
52862         * lib/fts.c (diropen): Likewise.
52863         * lib/save-cwd.c (save_cwd): Likewise.
52864         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
52865         well, for minor improvements on hosts that lack O_DIRECTORY.
52866         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
52867         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
52868         Fall back on chown if open failed with EACCES.
52869
52870         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
52871         Report an error at compile-time if only a 1-second nominal clock
52872         resolution is found.
52873
52874         * lib/lchmod.h: New file.
52875         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
52876         (make_dir_parents): Use lchown rather than chown, and
52877         lchmod rather than chmod.
52878
52879         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
52880         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
52881         "proc" reported by n0dalus.
52882
52883         * lib/mountlist.c: Include <limits.h>.
52884         (dev_from_mount_options)
52885         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
52886         New function.  It no longer assumes "dev=" has the System V meaning
52887         on Linux (since it doesn't).  It also parses "dev=" more carefully.
52888         (read_file_system_list)
52889         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
52890         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
52891         dev= in that case.
52892
52893         * lib/posixtm.h (PDS_PRE_2000): New macro.
52894         * lib/posixtm.c (year): Arg is now syntax_bits rather than
52895         allow_century.  All usages changed.  Reject dates outside the range
52896         1969-1999 if PDS_PRE_2000 is used.
52897
52898 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52899
52900         Sync from coreutils.
52901         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
52902         (Time of day items): Mention the possibility of leap seconds.
52903         Problem reported by Dr. David Alan Gilbert.
52904
52905 2006-01-09  Jim Meyering  <jim@meyering.net>
52906
52907         Sync from coreutils.
52908
52909         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
52910
52911         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
52912
52913         * lib/modechange.c (mode_compile): Reject an invalid mode string
52914         that starts with an octal digit.  From Andreas Gruenbacher.
52915
52916         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
52917         and dup to open_safer and dup_safer, respectively.
52918         (openat_permissive): Fix typo in comment.
52919
52920         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
52921         "gettext.h"; either no longer needed or are guaranteed by openat.h.
52922         (_): Remove; no longer needed.
52923         (openat): Renamed from rpl_openat; no need for rpl_openat
52924         since openat.h renames openat for us.
52925         Replace most of the body with a call to openat_permissive,
52926         to avoid duplicate code.
52927         Port to (probably hypothetical) environments were mode_t is
52928         wider than int.
52929         (openat_permissive): Require mode arg, so that we can check
52930         types better.  Put it just after flags.  Change cwd failure
52931         indicator from pointer-to-bool to pointer-to-errno-value.
52932         All callers changed.
52933         Invoke openat_save_fail and/or openat_restore_fail if
52934         cwd_errno is null, so that openat can call us.
52935         (openat_permissive, fdopendir, fstatat, unlinkat):
52936         Simplify errno handling to avoid some duplicate code,
52937         as it's OK to set errno on success.
52938         * lib/openat.h: Revamp code so that function macros depend on
52939         __OPENAT_PREFIX only, not also on AT_FDCWD.
52940         (openat_ro): Remove.  Caller changed to use openat_permissive.
52941         (openat_permissive): Now a macro, if not a function.
52942         (openat_restore_fail, openat_save_fail): Now always functions,
52943         since mkdirat needs them even if __OPENAT_PREFIX is defined.
52944
52945         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
52946         and openat.c.
52947         * lib/mkdirat.c: Include openat-priv.h.
52948         Remove definitions of macros defined therein.
52949         * lib/openat.c: Likewise.
52950
52951         * lib/mkdirat.c (mkdirat): New file and function.
52952         * lib/openat.h (mkdirat): Declare.
52953
52954         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
52955
52956         * lib/openat.h (openat_permissive): Declare.
52957         (openat_ro): Define.
52958
52959         * lib/openat.c (EXPECTED_ERRNO): New macro.
52960         (openat_permissive): New function -- used in remove.c rewrite.
52961         (all functions): Set errno just before returning, only if there
52962         was an actual failure.
52963         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
52964
52965         Emulate openat-family functions using Linux's procfs, if possible.
52966         Idea and some code based on Ulrich Drepper's glibc changes.
52967
52968         * lib/openat.c: (BUILD_PROC_NAME): New macro.
52969         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
52970         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
52971         before falling back on save_cwd and restore_cwd.
52972         (fdopendir, fstatat, unlinkat): Likewise.
52973
52974         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
52975         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
52976
52977         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
52978         as second argument to va_arg.  Otherwise, some versions of gcc
52979         warn that `if this code is reached, the program will abort'.
52980
52981 2006-01-09  Jim Meyering  <jim@meyering.net>
52982
52983         Sync from coreutils.
52984         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
52985         Require openat-priv.h.
52986
52987 2006-01-09  Bruno Haible  <bruno@clisp.org>
52988
52989         * modules/strnlen (Include): Use strnlen.h.
52990
52991 2006-01-09  Bruno Haible  <bruno@clisp.org>
52992
52993         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
52994
52995 2006-01-09  Bruno Haible  <bruno@clisp.org>
52996
52997         * lib/sysexit_.h (EX_OK): New macro.
52998         Suggested by Martin Lambers <marlam@marlam.de>.
52999
53000 2006-01-09  Bruno Haible  <bruno@clisp.org>
53001
53002         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53003         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53004
53005 2006-01-09  Bruno Haible  <bruno@clisp.org>
53006
53007         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53008         numbers.
53009
53010 2006-01-09  Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53013         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53014         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53015         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53016
53017 2006-01-09  Bruno Haible  <bruno@clisp.org>
53018
53019         * build-aux/javacomp.sh.in: New file, moved from lib/.
53020         * modules/javacomp-script (Files): Update.
53021         (configure.ac): Add AC_CONFIG_FILES invocation.
53022         (EXTRA_DIST): Remove variable.
53023
53024         * build-aux/javaexec.sh.in: New file, moved from lib/.
53025         * modules/javaexec (Files): Update.
53026         (configure.ac): Add AC_CONFIG_FILES invocation.
53027         (EXTRA_DIST): Remove javaexec.sh.in.
53028
53029         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53030         * modules/csharpcomp-script (Files): Update.
53031         (configure.ac): Add AC_CONFIG_FILES invocation.
53032         (EXTRA_DIST): Remove variable.
53033
53034         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53035         * modules/csharpexec (Files): Update.
53036         (configure.ac): Add AC_CONFIG_FILES invocation.
53037         (EXTRA_DIST): Remove csharpexec.sh.in.
53038
53039 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53040
53041         Sync from coreutils.
53042
53043         Add POSIX ACL support
53044         * lib/acl.h (copy_acl, set_acl): Add declarations.
53045         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53046         systems other than Linux.
53047         (chmod_or_fchmod): New function: use fchmod when possible,
53048         and chmod otherwise.
53049         (file_has_acl): Add a POSIX ACL implementation, with a
53050         Linux-specific subcase.
53051         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53052         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53053         acls are unsupported.
53054         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53055         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53056         are unsupported.
53057
53058 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53059
53060         Sync from coreutils.
53061         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53062
53063 2006-01-07  Bruno Haible  <bruno@clisp.org>
53064
53065         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53066         gl_EARLY.
53067
53068 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53069
53070         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53071         Problem reported for Mingw by Mark Junker.
53072
53073 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53074
53075         * README: Gnulib normally doesn't generate a tarball.
53076
53077 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53078
53079         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53080         long int, not int, for nanosecond counts, so that people who are
53081         used to POSIX struct timespec won't be surprised.  Reported by Jim
53082         Meyering.
53083
53084 2005-12-28  Bruno Haible  <bruno@clisp.org>
53085
53086         * build-aux/config.rpath: Update from GNU gettext.
53087
53088 2005-12-16  Jim Meyering  <jim@meyering.net>
53089
53090         * modules/fprintftime: New module.
53091         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53092
53093 2005-12-16  Jim Meyering  <jim@meyering.net>
53094
53095         * m4/fprintftime.m4: New file.
53096
53097 2005-12-16  Jim Meyering  <jim@meyering.net>
53098
53099         * lib/fprintftime.c, lib/fprintftime.h: New files.
53100
53101 2005-12-15  Simon Josefsson  <jas@extundo.com>
53102
53103         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53104         new m4/socklen.m4.
53105
53106 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53107
53108         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53109         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53110
53111 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53112
53113         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53114         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53115         struct uparams is valid. Fall back to the default values if it is
53116         not.
53117
53118 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53119
53120         * modules/argp (Files): Add argp-pin.c
53121         (Depends-on): dirname
53122         (lib_SOURCES): Add argp-pin.c
53123
53124 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53125
53126         * m4/argp.m4:  Check if program_invocation_name and
53127         program_invocation_short_name are declared and define appropriate
53128         macros if they are not.
53129
53130 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53131
53132         * lib/argp-help.c (__argp_base_name): New function
53133         (__argp_short_program_name): Rewrite using __argp_base_name
53134         * lib/argp-namefrob.h: Define program_invocation_name and
53135         program_invocation_short_name if requested
53136         (__argp_base_name): Add prototype
53137         * lib/argp-parse.c (argp_def): Use gettext wrappers
53138         (argp_default_parser): Use __argp_base_name
53139         * lib/argp-pin.c: New file. Defines program_invocation_name and
53140         program_invocation_short_name on systems that lack them.
53141
53142 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53145         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53146         porting problem reported by Georg Schwarz in
53147         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53148
53149 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53150
53151         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53152         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53153         porting problem reported by Georg Schwarz in
53154         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53155
53156 2005-12-05  Bruno Haible  <bruno@clisp.org>
53157
53158         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53159         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53160         Reported by Mark Junker <mjscod@gmx.de>.
53161
53162 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53163
53164         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53165         Use implementation from Albert Chin, with some
53166         comments/corrections by Stepan Kasal and myself.
53167
53168 2005-12-02  Bruno Haible  <bruno@clisp.org>
53169
53170         * gnulib-tool (func_import): Accept GPLed build tool modules when
53171         --lgpl is given.
53172         * modules/csharpcomp-script: New file.
53173         * modules/csharpcomp: Depend on it.
53174         * modules/javacomp-script: New file.
53175         * modules/javacomp: Depend on it.
53176         Suggested by Simon Josefsson.
53177
53178 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53179
53180         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53181         statement, to work around an HP-UX 10.20 compiler bug reported by
53182         Peter O'Gorman.
53183
53184 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53185
53186         * modules/savedir (Depends-on): Add openat.
53187
53188 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53189
53190         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53191         (uintmax_t) [defined uintmax_t]: Do not declare.
53192         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53193         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53194         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53195         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53196         sake of portability to weird hosts that C allows (though we don't
53197         know of any practical examples).
53198
53199         * lib/savedir.h (fdsavedir): New decl.
53200         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53201         contains most of the former guts of savedir.
53202         (savedir): Use savedirstream.
53203         Include "openat.h".
53204
53205 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53206
53207         * modules/obstack (Files): Add m4/ulonglong.m4.
53208         Problem reported by Davide Angelocola.
53209
53210 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53211
53212         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53213         coreutils no longer futzes with rounding modes.
53214
53215 2005-11-14  Jim Meyering  <jim@meyering.net>
53216
53217         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53218         replacement of mkstemp.
53219
53220 2005-11-10  Simon Josefsson  <jas@extundo.com>
53221
53222         * lib/readline.c: Remove EOL.
53223
53224 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53225
53226         * modules/gethrxtime (Depends-on): Add gettime.
53227
53228 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53229
53230         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53231         or gettimeofday; no longer needed.
53232
53233 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53234
53235         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53236         time business.
53237         (gethrxtime) [! (HAVE_NANOUPTIME
53238         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53239         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53240         our own approximation.
53241
53242 2005-11-08  Eric Blake  <ebb9@byu.net>
53243
53244         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53245
53246 2005-11-08  Eric Blake  <ebb9@byu.net>
53247
53248         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53249
53250 2005-11-04  Bruno Haible  <bruno@clisp.org>
53251
53252         * gnulib-tool: Implement --update mode.
53253
53254 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53255
53256         Fix porting problem reported by Theodoros V. Kalamatianos.
53257         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53258         Don't assume that futimes failing means we must fail.
53259
53260 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53261
53262         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53263         variables to suggest the intended function of the PATH_MAX check.
53264
53265 2005-10-30  Kean Johnston  <jkj@sco.com>
53266
53267         Trivial changes to support SCO systems.
53268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53269         as PATH_MAX.
53270         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53271         where __ptr is null when no I/O is pending.
53272
53273 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53274
53275         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53276         leave errno alone.  Problem reported by Dmitry V. Levin.
53277
53278 2005-10-28  Simon Josefsson  <jas@extundo.com>
53279
53280         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53281         Test more.
53282
53283         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53284
53285         * modules/md2, modules/md2-tests: New files.
53286
53287 2005-10-28  Simon Josefsson  <jas@extundo.com>
53288
53289         * m4/inet_ntop.m4: More tests.
53290
53291         * m4/gc-md2.m4, md2.m4: New file.
53292
53293 2005-10-28  Simon Josefsson  <jas@extundo.com>
53294
53295         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53296         "restrict" keywords, as per POSIX.  Protect the function
53297         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53298         Don't use K&R prototypes.  Check the sprintf return values.
53299         Re-define EAFNOSUPPORT if not present.  Indent.
53300
53301         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53302         suggested by Bruno Haible <bruno@clisp.org>.
53303
53304         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53305
53306         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53307
53308         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53309         libgcrypt).
53310
53311         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53312
53313         * lib/md2.h, lib/md2.c: New files.
53314
53315 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53316
53317         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53318         errno alone.  Problem reported by Frederic Jolliton.
53319
53320 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53321
53322         * modules/verify (License): Change from GPL to LGPL.  This is a
53323         tiny module and there are apparently near-equivalents that are
53324         under the BSD license.
53325
53326 2005-10-24  Simon Josefsson  <jas@extundo.com>
53327
53328         * modules/sha1: Relicense to LGPL.
53329
53330 2005-10-24  Simon Josefsson  <jas@extundo.com>
53331
53332         * lib/md4.h: Shrink buffer size, now that we changed the type.
53333
53334 2005-10-23  Simon Josefsson  <jas@extundo.com>
53335
53336         * gnulib-tool (func_import): Fix --tests-base.
53337
53338 2005-10-22  Simon Josefsson  <jas@extundo.com>
53339
53340         * modules/arcfour (Depends-on): Need stdint.
53341
53342 2005-10-22  Simon Josefsson  <jas@extundo.com>
53343
53344         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53345         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53346
53347 2005-10-22  Simon Josefsson  <jas@extundo.com>
53348
53349         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53350         suggested by Bruno Haible <bruno@clisp.org>.
53351
53352 2005-10-22  Simon Josefsson  <jas@extundo.com>
53353
53354         * lib/crc.h: Include stddef.h, for size_t.
53355
53356 2005-10-22  Simon Josefsson  <jas@extundo.com>
53357
53358         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53359         arcfour_context struct (simplify test vector testing in GNU
53360         Shishi).
53361
53362 2005-10-21  Simon Josefsson  <jas@extundo.com>
53363
53364         * modules/des, modules/des-tests: New files.
53365
53366         * modules/gc-des, modules/gc-des-tests: New files.
53367
53368         * tests/test-des.c, tests/test-gc-des.c: New file.
53369
53370 2005-10-21  Simon Josefsson  <jas@extundo.com>
53371
53372         * modules/arctwo, modules/arctwo-tests: New files.
53373
53374         * tests/test-arctwo.c: New file.
53375
53376         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53377
53378         * tests/test-gc-arctwo.c: New file.
53379
53380 2005-10-21  Simon Josefsson  <jas@extundo.com>
53381
53382         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53383         Bruno Haible <bruno@clisp.org>.
53384
53385         * m4/gc-des.m4: New file.
53386
53387 2005-10-21  Simon Josefsson  <jas@extundo.com>
53388
53389         * m4/arctwo.m4: New file.
53390
53391         * m4/gc-arctwo.m4: New file.
53392
53393 2005-10-21  Simon Josefsson  <jas@extundo.com>
53394
53395         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53396         block.
53397
53398 2005-10-21  Simon Josefsson  <jas@extundo.com>
53399
53400         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53401         <bruno@clisp.org>.
53402
53403         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53404
53405         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53406         Bruno Haible <bruno@clisp.org>.
53407
53408         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53409         <bruno@clisp.org>.
53410
53411 2005-10-21  Simon Josefsson  <jas@extundo.com>
53412
53413         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53414
53415 2005-10-21  Simon Josefsson  <jas@extundo.com>
53416
53417         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53418
53419 2005-10-21  Simon Josefsson  <jas@extundo.com>
53420
53421         * lib/des.h, lib/des.c: New files.
53422
53423         * lib/gc-gnulib.c: Support DES.c
53424
53425 2005-10-21  Simon Josefsson  <jas@extundo.com>
53426
53427         * lib/arctwo.h, lib/arctwo.c: New files.
53428
53429         * lib/gc-gnulib.c: Support ARCTWO.
53430
53431 2005-10-21  Simon Josefsson  <jas@extundo.com>
53432
53433         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53434         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53435
53436 2005-10-21  Simon Josefsson  <jas@extundo.com>
53437
53438         * gnulib-tool (func_import, func_create_testdir): Define automake
53439         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53440         Makefile.am snippet),
53441         suggested by Bruno Haible <bruno@clisp.org>.
53442
53443         * modules/gc (Makefile.am): Use it.
53444
53445 2005-10-21  Bruno Haible  <bruno@clisp.org>
53446
53447         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53448         patch.
53449
53450 2005-10-19  Simon Josefsson  <jas@extundo.com>
53451
53452         * tests/test-gc-rijndael.c: New file.
53453
53454         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53455
53456 2005-10-19  Simon Josefsson  <jas@extundo.com>
53457
53458         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53459         interface too.
53460
53461 2005-10-19  Simon Josefsson  <jas@extundo.com>
53462
53463         * tests/test-gc-arcfour.c: New file.
53464
53465         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53466
53467 2005-10-19  Simon Josefsson  <jas@extundo.com>
53468
53469         * modules/gc-md4, modules/gc-md4-tests: New file.
53470
53471         * tests/test-gc-md4.c: New file.
53472
53473 2005-10-19  Simon Josefsson  <jas@extundo.com>
53474
53475         * m4/gc-md4.m4: New file.
53476
53477 2005-10-19  Simon Josefsson  <jas@extundo.com>
53478
53479         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53480         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53481         <kasal@ucw.cz>.
53482
53483 2005-10-19  Simon Josefsson  <jas@extundo.com>
53484
53485         * m4/gc-arcfour.m4: New file.
53486
53487         * m4/gc-rijndael.m4: New file.
53488
53489 2005-10-19  Simon Josefsson  <jas@extundo.com>
53490
53491         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53492
53493 2005-10-19  Simon Josefsson  <jas@extundo.com>
53494
53495         * lib/gc-gnulib.c: Support ARCFOUR.
53496
53497 2005-10-19  Simon Josefsson  <jas@extundo.com>
53498
53499         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53500         support.
53501
53502         * lib/gc.h: Add ECB enum type.
53503
53504         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53505
53506 2005-10-18  Simon Josefsson  <jas@extundo.com>
53507
53508         * tests/test-md5.c: New file.
53509
53510         * modules/md5-tests: New file.
53511
53512 2005-10-18  Simon Josefsson  <jas@extundo.com>
53513
53514         * tests/test-md4.c: New file.
53515
53516         * modules/md4, modules/md4-tests: New files.
53517
53518 2005-10-18  Simon Josefsson  <jas@extundo.com>
53519
53520         * m4/md4.m4: New file.
53521
53522 2005-10-18  Simon Josefsson  <jas@extundo.com>
53523
53524         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53525
53526 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53527
53528         * gnulib-tool (func_create_testdir): Omit the second check whether
53529         BUILT_SOURCES in nonempty.
53530
53531 2005-10-17  Simon Josefsson  <jas@extundo.com>
53532
53533         * tests/test-rijndael.c: New file.
53534
53535 2005-10-17  Simon Josefsson  <jas@extundo.com>
53536
53537         * modules/sha1: Depend on stdint instead of md5.
53538
53539         * modules/md5: Depend on stdint, remove uint32_t.
53540
53541 2005-10-17  Simon Josefsson  <jas@extundo.com>
53542
53543         * modules/gc-sha1-tests: New file.
53544
53545         * tests/test-gc-sha1.c: New file.
53546
53547 2005-10-17  Simon Josefsson  <jas@extundo.com>
53548
53549         * m4/md5.m4: Remove call to uint32_t.m4.
53550
53551 2005-10-17  Simon Josefsson  <jas@extundo.com>
53552
53553         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
53554
53555         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
53556         md5.h.
53557
53558         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
53559
53560         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
53561
53562 2005-10-17  Simon Josefsson  <jas@extundo.com>
53563
53564         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
53565
53566 2005-10-17  Simon Josefsson  <jas@extundo.com>
53567
53568         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
53569
53570 2005-10-17  Simon Josefsson  <jas@extundo.com>
53571
53572         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
53573
53574         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
53575
53576 2005-10-17  Bruno Haible  <bruno@clisp.org>
53577
53578         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
53579         that it can also be used in a test.
53580
53581 2005-10-16  Bruno Haible  <bruno@clisp.org>
53582
53583         * gnulib-tool (func_emit_tests_Makefile_am): Also define
53584         TESTS_ENVIRONMENT, so that individual tests can augment it.
53585
53586         * gnulib-tool (func_create_testdir): Use an intermediate target for
53587         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
53588         macros, like $(ALLOCA_H), which cannot be passed through the command
53589         line.
53590
53591 2005-10-15  Simon Josefsson  <jas@extundo.com>
53592
53593         * modules/rijndael-tests: New file.
53594
53595         * modules/rijndael: New file.
53596
53597 2005-10-15  Simon Josefsson  <jas@extundo.com>
53598
53599         * m4/rijndael.m4: New file.
53600
53601 2005-10-15  Simon Josefsson  <jas@extundo.com>
53602
53603         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
53604
53605         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
53606
53607 2005-10-14  Simon Josefsson  <jas@extundo.com>
53608
53609         * tests/test-arcfour.c: New file.
53610
53611         * modules/arcfour, modules/arcfour-tests: New files.
53612
53613 2005-10-14  Simon Josefsson  <jas@extundo.com>
53614
53615         * m4/arcfour.m4: New file.
53616
53617 2005-10-14  Simon Josefsson  <jas@extundo.com>
53618
53619         * lib/arcfour.h, lib/arcfour.c: New files.
53620
53621 2005-10-14  Roland McGrath  <roland@redhat.com>
53622
53623         Import from libc.  [BZ #1331]
53624         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
53625         macro argument.
53626         Reported by Matej Vela <vela@debian.org>.
53627
53628 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53629
53630         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
53631         include <wchar.h>; no longer needed.
53632
53633 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53634
53635         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
53636
53637 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
53638         and  Ulrich Drepper  <drepper@redhat.com>
53639
53640         Import from libc.
53641         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
53642         instead of inline stream orientation test and two separate
53643         function calls.  Pay no attention to USE_IN_LIBIO.
53644
53645 2005-10-13  Simon Josefsson  <jas@extundo.com>
53646
53647         * modules/gc-hmac-md5-tests: New file.
53648
53649         * tests/test-gc-hmac-sha1.c: New file.
53650
53651         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
53652
53653         * modules/gc-hmac-md5-tests: New file.
53654
53655         * tests/test-gc-md5.c: New file.
53656
53657         * modules/gc-md5-tests: New file.
53658
53659 2005-10-13  Simon Josefsson  <jas@extundo.com>
53660
53661         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
53662         Move memory allocation outside of loop.
53663
53664 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
53665
53666         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
53667         intermediate directory is in a read-only file system.  Problem
53668         reported by Eric Blake.
53669
53670 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
53671
53672         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
53673
53674 2005-10-12  Simon Josefsson  <jas@extundo.com>
53675
53676         * tests/test-hmac-sha1.c: New file.
53677
53678         * modules/hmac-sha1-tests: New file.
53679
53680         * modules/hmac-sha1: New file.
53681
53682 2005-10-12  Simon Josefsson  <jas@extundo.com>
53683
53684         * modules/gc-sha1: New file.
53685
53686 2005-10-12  Simon Josefsson  <jas@extundo.com>
53687
53688         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
53689
53690         * tests/test-gc-pbkdf2-sha1.c: New file.
53691
53692 2005-10-12  Simon Josefsson  <jas@extundo.com>
53693
53694         * modules/gc-md5, modules/gc-hmac-md5: New files.
53695
53696         * modules/gc (Files): Remove md5, memxor and hmac files.
53697
53698 2005-10-12  Simon Josefsson  <jas@extundo.com>
53699
53700         * m4/gc-pbkdf2-sha1.m4: New file.
53701
53702         * m4/gc-hmac-sha1.m4: New file.
53703
53704         * m4/gc-sha1: New file.
53705
53706         * m4/hmac-sha1.m4: New file.
53707
53708 2005-10-12  Simon Josefsson  <jas@extundo.com>
53709
53710         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
53711
53712         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
53713
53714 2005-10-12  Simon Josefsson  <jas@extundo.com>
53715
53716         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
53717         suggested by Bruno Haible <bruno@clisp.org>.
53718
53719 2005-10-12  Simon Josefsson  <jas@extundo.com>
53720
53721         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
53722
53723 2005-10-12  Simon Josefsson  <jas@extundo.com>
53724
53725         * lib/gc-pbkdf2-sha1.c: New file.
53726
53727         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
53728
53729 2005-10-12  Simon Josefsson  <jas@extundo.com>
53730
53731         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
53732
53733         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
53734
53735 2005-10-12  Simon Josefsson  <jas@extundo.com>
53736
53737         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
53738         GC_USE_HMAC_MD5, respectively.
53739
53740         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
53741         (gc_md5): Fix typo.
53742
53743         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
53744
53745         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
53746
53747         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
53748
53749 2005-10-12  Bruno Haible  <bruno@clisp.org>
53750
53751         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
53752         Reported by Stepan Kasal <kasal@ucw.cz>.
53753
53754 2005-10-11  Simon Josefsson  <jas@extundo.com>
53755
53756         * tests/test-crc.c: New file.
53757
53758         * modules/crc, modules/crc-tests: New files.
53759
53760 2005-10-11  Simon Josefsson  <jas@extundo.com>
53761
53762         * m4/crc.m4: New file.
53763
53764 2005-10-11  Simon Josefsson  <jas@extundo.com>
53765
53766         * lib/gc.h: Add gc_hash and gc_hash_buffer.
53767
53768         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
53769
53770         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
53771
53772 2005-10-11  Simon Josefsson  <jas@extundo.com>
53773
53774         * lib/crc.h, lib/crc.c: New files.
53775
53776         * lib/gc.h (gc_hash_buffer): Add doc.
53777
53778 2005-10-11  Bruno Haible  <bruno@clisp.org>
53779
53780         * modules/c-strcasestr: New file.
53781         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
53782
53783 2005-10-11  Bruno Haible  <bruno@clisp.org>
53784
53785         * modules/c-strcase: New file.
53786         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
53787
53788 2005-10-11  Bruno Haible  <bruno@clisp.org>
53789
53790         * lib/strcasecmp.c: Include limits.h.
53791         (strcasecmp): Avoid integer overflow on exotic platforms.
53792         * lib/strncasecmp.c: Include limits.h.
53793         (strncasecmp): Avoid integer overflow on exotic platforms.
53794         Reported by Paul Eggert.
53795
53796 2005-10-11  Bruno Haible  <bruno@clisp.org>
53797
53798         * lib/c-strcasestr.h: New file, from GNU gettext.
53799         * lib/c-strcasestr.c: New file, from GNU gettext.
53800
53801 2005-10-11  Bruno Haible  <bruno@clisp.org>
53802
53803         * lib/c-strcase.h: New file, from GNU gettext.
53804         * lib/c-strcasecmp.c: New file, from GNU gettext.
53805         * lib/c-strncasecmp.c: New file, from GNU gettext.
53806
53807 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         * modules/mempcpy (License): GPL -> LGPL.
53810         * modules/strchrnul (License): Likewise.
53811         * modules/sysexits (License): Likewise.
53812
53813 2005-10-08  Simon Josefsson  <jas@extundo.com>
53814
53815         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
53816
53817 2005-10-07  Simon Josefsson  <jas@extundo.com>
53818
53819         * m4/memxor.m4: Remove gl_C_RESTRICT call.
53820
53821 2005-10-06  Simon Josefsson  <jas@extundo.com>
53822
53823         * tests/test-hmac-md5.c: New file.
53824
53825         * modules/hmac-md5-tests: New file.
53826
53827         * modules/hmac-md5: New file.
53828
53829 2005-10-06  Simon Josefsson  <jas@extundo.com>
53830
53831         * m4/hmac-md5.m4: New file.
53832
53833         * m4/memxor.m4: Require gl_C_RESTRICT.
53834
53835 2005-10-06  Simon Josefsson  <jas@extundo.com>
53836
53837         * lib/memxor.c (memxor): Avoid casts and warnings.
53838
53839 2005-10-06  Simon Josefsson  <jas@extundo.com>
53840
53841         * lib/hmac-md5.c: New file.
53842
53843         * lib/hmac.h: New file.
53844
53845 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53846
53847         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
53848         promotes to int, not unsigned int, to catch the AIX 5.3
53849         compiler bug.
53850
53851 2005-10-05  Simon Josefsson  <jas@extundo.com>
53852
53853         * modules/memxor: New file.
53854
53855         * modules/iconv (Files): Move config.rpath to havelib, it is used
53856         there.
53857
53858         * modules/havelib (Files): Add config.rpath.
53859
53860 2005-10-05  Simon Josefsson  <jas@extundo.com>
53861
53862         * m4/memxor.m4: New file.
53863
53864 2005-10-05  Simon Josefsson  <jas@extundo.com>
53865
53866         * lib/memxor.c (memxor): Fix compiler error.
53867
53868         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
53869         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
53870
53871         * lib/memxor.h, lib/memxor.c: New files.
53872
53873         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
53874         we assume all systems have it, suggested by Jim Meyering
53875         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
53876         any systems lack sys/socket.h; mingw32 is known to lack it, but we
53877         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
53878         same reasons.
53879
53880 2005-10-05  Simon Josefsson  <jas@extundo.com>
53881
53882         * config/srclist.txt: Add glibc bug 1423 for md5.h.
53883
53884 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53885
53886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
53887         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
53888         needed, since the source code now assumes these .h files.
53889
53890 2005-10-05  Derek Price  <derek@ximbiot.com>
53891
53892         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
53893
53894 2005-10-05  Bruno Haible  <bruno@clisp.org>
53895
53896         * modules/stdint (License): Change to LGPL.
53897
53898 2005-10-04  Simon Josefsson  <jas@extundo.com>
53899
53900         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
53901         D. Baushke" <mdb@gnu.org>.
53902
53903 2005-10-04  Bruno Haible  <bruno@clisp.org>
53904
53905         * lib/verify.h (verify_true): Provide alternative definition for C++.
53906
53907 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
53910         (SSIZE_MAX): New macro, if not already defined.
53911         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
53912         than 2 GiB.
53913
53914 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53915
53916         Sync from coreutils.
53917         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
53918         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
53919         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
53920         ULLONG_MAX doesn't work with 2.7.2.1.
53921
53922 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53923
53924         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
53925         From Ben Pfaff.
53926
53927         * modules/exclude (Depends-on): Depend on verify.
53928         * modules/strtoimax (Depends-on): Likewise.
53929         * modules/utimecmp (Depends-on): Likewise.
53930
53931 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53932
53933         * lib/exclude.c: Include verify.h.
53934         (verify): Remove.  All callers changed to use verify.h's version.
53935         * lib/strtoimax.c: Likewise.
53936         * lib/utimecmp.c: Likewis.e
53937
53938         Sync from coreutils.
53939         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
53940         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
53941         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
53942         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
53943         bother returning ENOSYS if settimeofday or stime fails; just let
53944         them return whatever errno they want to return.
53945         * lib/utimens.c: Include unistd.h, for dup2.
53946         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
53947         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
53948
53949 2005-10-02  Jim Meyering  <jim@meyering.net>
53950
53951         Sync from coreutils.
53952         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
53953         from glibc-2.2.5 that fails for read-only files.
53954
53955 2005-10-02  Jim Meyering  <jim@meyering.net>
53956
53957         Sync from coreutils.
53958         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
53959         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
53960         `#if HAVE_CONFIG_H'.
53961         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
53962         Remove AT_FDCWD test.
53963         Do not consume the fd unless successful.
53964         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
53965         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
53966         block, so that we don't even try to compile it if settimeofday is
53967         available.  This works around a compilation failure on OSF1 V5.1,
53968         due to stime requiring a `long int*' while tv_sec is `int'.
53969
53970 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
53971
53972         Sync from coreutils.
53973         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
53974         against `yes', rather than just testing for nonempty.
53975
53976 2005-10-01  Simon Josefsson  <jas@extundo.com>
53977
53978         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
53979         and Darwin.
53980
53981         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
53982         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
53983         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
53984         freeaddrinfo and gai_strerror are declared by the POSIX headers.
53985         Check if struct addrinfo is declared.
53986
53987 2005-10-01  Simon Josefsson  <jas@extundo.com>
53988
53989         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
53990         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
53991         AI_* and EAI_* definitions.  Protect function declarations.
53992
53993 2005-10-01  Jim Meyering  <jim@meyering.net>
53994
53995         Sync from coreutils.
53996
53997         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
53998         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
53999         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54001         in the inet and nsl libraries.  Required on Solaris 5.7.
54002
54003 2005-10-01  Jim Meyering  <jim@meyering.net>
54004
54005         Sync from coreutils.
54006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54007         in the inet and nsl libraries.  Required on Solaris 5.7.
54008
54009 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54010
54011         * lib/getdelim.c (getdelim): Remove unused variables.
54012
54013 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54014
54015         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54016         so that the code works even with ancient cpp.  Portability problem
54017         with GCC 2.7.2.1 reported by Thomas M.Ott.
54018
54019 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54020
54021         * modules/regex (Depends-on): Add strcase.
54022
54023         * modules/gethostname (Licence): Change from GPL to LGPL, since
54024         gethostname.c is a trivial implementation of a standard library
54025         function.
54026         * modules/poll (License): Change from GPL to LGPL, since it's
54027         derived from LGPL code.
54028
54029 2005-09-27  Jim Meyering  <jim@meyering.net>
54030
54031         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54032         HAVE_CONFIG_H.
54033
54034         * lib/intprops.h (signed_type_or_expr__): Define.
54035         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54036         for unsigned types.
54037
54038 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         * lib/verify.h (verify_expr): Remove, replacing with:
54041         (verify_true): New macro that returns true instead of void.
54042         (verify_type__): Remove.
54043         (verify): Use verify_true rather than verify_type__.
54044
54045 2005-09-26  Bruno Haible  <bruno@clisp.org>
54046
54047         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54048         is necessary.
54049         (lib_SOURCES): Remove mbchar.c.
54050         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54051         (Files): Add m4/mbrtowc.m4.
54052         * modules/mbiter: Likewise.
54053         * modules/mbuiter: Likewise.
54054
54055 2005-09-26  Bruno Haible  <bruno@clisp.org>
54056
54057         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54058         compile mbchar.c if they are not both present.
54059         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54060         * m4/mbiter.m4 (gl_MBITER): Likewise.
54061         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54062         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54063         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54064
54065 2005-09-25  Jim Meyering  <jim@meyering.net>
54066
54067         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54068         also uses socklen_t.
54069
54070 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54071
54072         * lib/utimens.c (ENOSYS): Define if not already defined.
54073         (futimens): Support having a null PATH if the file descriptor
54074         is nonnegative.
54075
54076         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54077         Remove.
54078         (__attribute): Define to empty unless GCC 3.1 or later.
54079         This works around a core dump on OpenBSD 3.4, which has GCC
54080         2.95.3, which dumps core when given __attribute__(()).  It also
54081         simplifies other tests, since we really don't want to bother with
54082         worrying about which ancient version of GCC supported what.
54083         Original problem reported by Yoann Vandoorselaere, with part of
54084         the fix suggested by Derek Price.
54085
54086 2005-09-24  Jim Meyering  <jim@meyering.net>
54087
54088         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54089         so we can once again use a positive bitfield width of 1 -- now we
54090         don't have to explain why we were using a bitfield width of 2.
54091
54092 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54093
54094         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54095         and similarly for the other external symbols.  Problem reported
54096         by James Gallager.
54097
54098         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54099         bug reported by Jim Meyering.
54100
54101         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54102         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54103         not needed, since socklen is a prerequisite module.
54104
54105 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54106
54107         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54108         Problem reported by Eric Blake.
54109         (getaddrinfo): Initialize se so that it's not garbage.
54110         Redo internal storage allocation so that it doesn't make unportable
54111         assumptions about alignment.
54112         Fix a memory leak.
54113
54114         * lib/utimens.c (futimens): Use futimesat if available.
54115         Prefer it to futimes since it doesn't have the futimes bug.
54116
54117         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54118         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54119         Instead, declare a function that returns a pointer to an array,
54120         and use verify_type__ to declare the size of the array.
54121         Problem and germ of a solution reported by Bruno Haible.
54122         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54123         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54124
54125 2005-09-23  Jim Meyering  <jim@meyering.net>
54126
54127         Sync from coreutils.
54128         Correct build failure (socklen_t not defined) on at least
54129         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54130         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54131
54132 2005-09-23  Jim Meyering  <jim@meyering.net>
54133
54134         * modules/getaddrinfo (Depends-on): Add socklen.
54135
54136 2005-09-23  Bruno Haible  <bruno@clisp.org>
54137
54138         * tests/test-verify.c: New file.
54139
54140 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54141
54142         Sync from coreutils.
54143
54144         * modules/argmatch (Depends-on): Add verify.
54145         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54146         unistd-safer.
54147         * modules/save-cwd (Depends-on): Likewise.
54148
54149         * modules/openat (Files): Add lib/openat-die.c.
54150         (Depends-on): Remove error, exitfail.
54151         Add dirname.
54152
54153         * modules/verify: New file.
54154         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54155         with "verify" module.
54156
54157 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54158
54159         Sync from coreutils.
54160
54161         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54162         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54163         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54164         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54165         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54166         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54167         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54168         Don't bother checking for string.h, stdlib.h, unistd.h.
54169         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54170         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54171         module's job.
54172         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54173         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54174
54175         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54176         (gl_GETDATE): Use it.
54177
54178         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54179
54180 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54181
54182         Sync from coreutils.
54183
54184         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54185         stat-time.h.
54186         * lib/argmatch.h: Include verify.h
54187         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54188         (ARGMATCH_ASSERT): Remove; unused.
54189         * lib/canonicalize.c: Assume STDC_HEADERS.
54190         * lib/exclude.c: Include "strcase.h".
54191         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54192         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54193         and stdio-safer.h.
54194         (getusershell): Call fopen, not fopen_safer.
54195         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54196         Do not include unistd-safer.h.
54197         (save_cwd): Don't call fd_safer; no longer needed
54198         now that we include fcntl--.h.
54199
54200         * lib/getdate.y (relative_time): New type.
54201         (RELATIVE_TIME_0): New constant.
54202         (parser_control): Use relative_time instead of doing it ourselves.
54203         (%union): Add new relative_time rel member.
54204         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54205         Now typeless.
54206         (relunit, relunit_snumber): Now of type rel.
54207         (zone, rel, relunit, get_date): Adjust to above changes.
54208
54209         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54210         Do not include unistd-safer.h.
54211         (getloadavg): Don't call fd_safer; no longer needed
54212         now that we include fcntl--.h.
54213
54214         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54215         (make_dir_parents): Treat ENOSYS like EEXIST.
54216
54217         Improve quality of diagnostics on restore_cwd failure.
54218         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54219         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54220         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54221         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54222         each time through the loop.  Do not diagnose restore_cwd failure;
54223         that is the caller's job (and perhaps the caller does not care).
54224
54225         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54226         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54227         If the file already exists but is not a directory, don't bother
54228         to try to make its parents.
54229         Close potential file descriptor leak if we can't chdir("/") (!).
54230         Don't always return true if chdir($PWD) fails; return true only
54231         if the requested action was done successfully (except for the
54232         chdir($PWD)).
54233         Don't log final directory unless we actually made it.
54234         Refactor to avoid duplicate code to fix up permissions.
54235         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54236
54237         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54238         to make it a bit faster and (I hope) clearer.
54239         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54240         Fix bug in formats like %2N.
54241
54242         * lib/verify.h: New file.
54243
54244 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54245
54246         Sync from coreutils.
54247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54248
54249 2005-09-22  Jim Meyering  <jim@meyering.net>
54250
54251         Sync from coreutils.
54252
54253         * m4/lstat.m4 (gl_FUNC_LSTAT):
54254         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54255         Remove obsolete comment.
54256         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54257         * m4/xstrtod.m4: Likewise.
54258
54259         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54260
54261 2005-09-22  Jim Meyering  <jim@meyering.net>
54262
54263         Sync from coreutils.
54264
54265         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54266
54267         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54268         the .tm_year member, since otherwise gcc-4.0 would now warn about
54269         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54270
54271         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54272         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54273
54274         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54275         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54276         when run in a time zone for which daylight savings time is in effect
54277         for the starting date.
54278
54279         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54280         stop us from restricting permissions of just-created absolute-named
54281         directories.
54282         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54283         to restore initial working directory.
54284         * lib/mkdir-p.c (make_dir_parents): New parameter:
54285         different_working_dir, to tell caller if/when we change the working
54286         directory and are unable to return to the initial one.
54287         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54288         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54289         `return false'.  This fixes a bug introduced on 2004-07-30.
54290
54291         * lib/openat.c (fdopendir): Be sure to close the supplied
54292         file descriptor before returning.  This makes our replacement
54293         implementation a little closer to Solaris's, where fdopendir
54294         ties the file descriptor to the returned DIR* pointer.
54295         * lib/openat.c (unlinkat): New function.
54296         * lib/openat.h (unlinkat): Add prototype.
54297         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54298         (openat_restore_fail): Rename from openat_restore_die.
54299         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54300
54301         Provide an alternative to exiting immediately upon save_cwd or
54302         restore_cwd failure.  Now, an application can arrange e.g.,
54303         to perform a longjump in that case.
54304         * lib/openat.c: Include dirname.h.
54305         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54306         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54307         and openat_restore_die rather than calling error directly.
54308         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54309
54310         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54311         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54312         define.
54313
54314         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54315         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54316                             int utc, int nanoseconds);
54317         Background:
54318         date should not have to allocate a megabyte of virtual memory to
54319         handle a format argument like +%1048575T.  When implemented with
54320         strftime, it must allocate such a buffer, use strftime to fill it
54321         in, print it, then free it.
54322         With fprintftime, it simply prints everything and exits.
54323         With no need for memory allocation, that's one fewer way to fail.
54324         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54325         optional field width, not before, so we accept %9:z, not %:9z.
54326         (my_strftime): Be sure to use L_('x') for literals.
54327
54328         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54329         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54330         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54331         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54332         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54333         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54334         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54335         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54336         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54337         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54338         * lib/xgethostname.c, lib/xreadlink.c:
54339         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54340
54341         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54342         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54343         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54344         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54345         and don't include <sys/file.h>).
54346
54347 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54348
54349         Sync from coreutils.
54350
54351         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54352         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54353         [!LDAV_DONE]: Avoid unused variable warning.
54354
54355 2005-09-21  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/unicodeio.h (unicode_to_mb): New declaration.
54358
54359 2005-09-20  Derek Price  <derek@ximbiot.com>
54360
54361         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54362         getaddrinfo.h.
54363
54364 2005-09-20  Bruno Haible  <bruno@clisp.org>
54365
54366         * gnulib-tool: Remove trailing slashes from the values specified for
54367         --source-base, --m4-base, --tests-base, --aux-dir.
54368         Suggested by Simon Josefsson <jas@extundo.com>.
54369
54370 2005-09-20  Bruno Haible  <bruno@clisp.org>
54371
54372         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54373         func_modules_to_filelist, func_import, func_create_testdir): Make all
54374         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54375         change when gnulib-tool is invoked in a different locale.
54376
54377 2005-09-19  Simon Josefsson  <jas@extundo.com>
54378
54379         * m4/socklen.m4: Fix typo.
54380
54381 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54382
54383         Use a consistent style for including <config.h>.
54384         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54385         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54386         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54387         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54388         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54389         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54390         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54391         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54392         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54393         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54394         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54395         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54396         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54397         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54398         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54399         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54400         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54401         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54402         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54403         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54404         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54405         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54406         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54407         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54408         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54409         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54410         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54411         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54412         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54413         lib/xstrtoumax.c, lib/yesno.c:
54414         Standardize inclusion of config.h.
54415         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54416         lib/inttostr.h:  Removed inclusion of config.h from header files.
54417         * lib/inttostr.c:  Adjusted in-tree users.
54418         * lib/timespec.h: Remove superfluous warning to include config.h.
54419         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54420         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54421         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54422         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54423         config.h with HAVE_CONFIG_H.
54424
54425 2005-09-19  Jim Meyering  <jim@meyering.net>
54426
54427         * modules/pathmax (License): Change to LGPL.
54428
54429 2005-09-19  Derek Price  <derek@ximbiot.com>
54430
54431         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54432
54433 2005-09-19  Bruno Haible  <bruno@clisp.org>
54434
54435         * gnulib-tool (import): Provide default for --tests-base.
54436
54437 2005-09-19  Bruno Haible  <bruno@clisp.org>
54438
54439         * doc/quote.texi: New file, extracted from gnulib.texi.
54440         * doc/ctime.texi: New file, extracted from gnulib.texi.
54441         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54442         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54443         * doc/gnulib.texi: Include them.
54444
54445 2005-09-18  Bruno Haible  <bruno@clisp.org>
54446
54447         Portability fix.
54448         * gnulib-tool (func_readlink): New function.
54449         (func_ln_if_changed): Use it.
54450
54451 2005-09-18  Bruno Haible  <bruno@clisp.org>
54452
54453         * gnulib-tool: Support --with-tests also with --import.
54454         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54455         (func_import): Use variables $testsbase and $inctests. Emit a
54456         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54457         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54458         SUBDIRS += $testsdir.
54459         (func_create_testdir): Update.
54460
54461 2005-09-18  Bruno Haible  <bruno@clisp.org>
54462
54463         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54464         instead of $dry_run.
54465         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54466         (func_ln_if_changed): Don't handle dry-run here.
54467         (func_import): In dry-run mode, detect more precisely which actions
54468         would be performed, and don't use "...ing" verbs.
54469
54470 2005-09-18  Bruno Haible  <bruno@clisp.org>
54471
54472         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54473         (func_import): Use join on two temporary files instead of three nested
54474         loops, in order to determine which files are new or old.
54475
54476 2005-09-18  Bruno Haible  <bruno@clisp.org>
54477
54478         * gnulib-tool (func_import): Comment out code that spits out the
54479         new files with --dry-run.
54480
54481 2005-09-18  Bruno Haible  <bruno@clisp.org>
54482
54483         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54484
54485 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         * lib/stat-time.h: New file.
54488         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54489         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54490         in a different way.
54491         (timespec_cmp): New function.
54492         * lib/utimecmp.c: Include stat-time.h.
54493         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54494         members exist, not on the obsolescent ST_MTIM_NSEC.
54495         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54496
54497 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54498
54499         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54500
54501 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54502
54503         * MODULES.html.sh (File system functions): Add stat-time.
54504         * modules/stat-time: New file.
54505         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54506         is now done in a different way, by the stat-time module.
54507         * modules/utimecmp (Depends-on): Add stat-time.
54508
54509 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54510
54511         * m4/st_mtim.m4: Remove.  Superseded by...
54512         * m4/stat-time.m4: New file.
54513         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54514         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54515
54516 2005-09-15  Derek Price  <derek@ximbiot.com>
54517
54518         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54519
54520 2005-09-15  Derek Price  <derek@ximbiot.com>
54521
54522         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54523         * lib/regex_internal.c: Ditto, using this...
54524         (__GNUC_PREREQ): ...new macro.
54525         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54526         using...
54527         (__GNUC_PREREQ): ...this new macro.
54528
54529         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54530
54531 2005-09-15  Derek Price  <derek@ximbiot.com>
54532             Paul Eggert  <eggert@cs.ucla.edu>
54533
54534         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54535         changes, consolidating in...
54536         * lib/regex_internal.h: ...this file.
54537
54538 2005-09-13  Jim Meyering  <jim@meyering.net>
54539
54540         * lib/canon-host.c: Filter through gnu indent and reword comments
54541         slightly.
54542         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54543
54544 2005-09-13  Derek Price  <derek@ximbiot.com>
54545
54546         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54547         failure.
54548         Reported by Jim Meyering  <jim@meyering.net>.
54549
54550 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54551
54552         * lib/base64.c: Typo.
54553         (base64_encode): Put b64str in initialized data section.
54554
54555 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54556
54557         Merge glibc and coreutils changes into gnulib, plus a few
54558         extra fixes.
54559         * lib/md5.c: Use #error rather than a string.
54560         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
54561         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
54562         (__attribute__): Define to empty for non recent-GCC.
54563         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
54564         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
54565         Renamed from their non-__ counterparts, with new macros replacing
54566         them if not _LIBC.  Add __THROW attribute.
54567         (rol): Remove.
54568         (struct md5_ctx): Align buffer if using GCC.
54569         * lib/sha1.h (struct sha1_ctx): Likewise.
54570         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
54571         The old name was backwards.
54572         (NOTSWAP): Remove; not used.
54573         (rol): New macro, moved here from md5.h.
54574         (sha1_process_block): Remove a FIXME that doesn't make sense.
54575
54576 2005-09-12  Derek Price  <derek@ximbiot.com>
54577
54578         Return usable errors from canon-host.
54579         * lib/canon-host.h: New file.
54580         * lib/canon-host.c (canon_host): Wrap...
54581         (canon_host_r): ...this new function, which now relies exclusively on
54582         getaddrinfo.
54583         (ch_strerror): New function.
54584         (last_cherror): New global.
54585         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
54586         interface.
54587         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
54588         void *.
54589         (freeaddrinfo): Free ai->ai_canonname when set.
54590
54591 2005-09-12  Derek Price  <derek@ximbiot.com>
54592
54593         Make canon-host require getaddrinfo.
54594         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
54595         AC_LIBSOURCE canon-host.h.  Call...
54596         (gl_PREREQ_CANON_HOST): ...this new function, which requires
54597         gl_GETADDRINFO.
54598         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
54599
54600 2005-09-12  Derek Price  <derek@ximbiot.com>
54601
54602         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
54603         LGPL.
54604         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
54605
54606 2005-09-12  Derek Price  <derek@ximbiot.com>
54607
54608         * lib/gai_strerror.c: Include config.h when available.  Include
54609         getaddrinfo.h before other headers to test interface.
54610         Reported by Larry Jones <lawrence.jones@ugs.com>.
54611
54612 2005-09-12  Derek Price  <derek@ximbiot.com>
54613             Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         * modules/glob (Files): Add glob-libc.h.
54616
54617 2005-09-12  Derek Price  <derek@ximbiot.com>
54618             Paul Eggert  <eggert@cs.ucla.edu>
54619
54620         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
54621         glob_.h, glob-libc.h.
54622         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
54623
54624 2005-09-12  Derek Price  <derek@ximbiot.com>
54625             Paul Eggert  <eggert@cs.ucla.edu>
54626
54627         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
54628         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
54629         protecting things that should be done only in gnulib contexts.
54630         * lib/glob_.h: New file, containing only the glob things needed for
54631         gnulib.
54632         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
54633         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
54634         (glob, globfree, glob_pattern_p): Now defined simply in terms of
54635         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
54636         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
54637         and to respect the namespace rules better.
54638
54639 2005-09-08  Simon Josefsson  <jas@extundo.com>
54640
54641         * modules/socklen: New file.
54642
54643 2005-09-08  Simon Josefsson  <jas@extundo.com>
54644
54645         * m4/socklen.m4: New file.
54646
54647 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * modules/utimens (Files): Add m4/utimbuf.m4, since
54650         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
54651         Reported by Sergey Poznyakoff.
54652
54653 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54654
54655         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
54656         definitions, since that's the preferred style in glibc.
54657         Fix a minor spacing issue, and update copyright notice to match
54658         glibc's.
54659
54660 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54661
54662         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
54663
54664 2005-09-06  Simon Josefsson  <jas@extundo.com>
54665
54666         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
54667         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
54668
54669 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54670
54671         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
54672         warning.
54673
54674 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54675
54676         * config/srclist.txt: Add glibc bug 1302.
54677
54678 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
54679
54680         Change bitset word type from unsigned int to unsigned long int,
54681         as this has better performance on typical 64-bit hosts.
54682         Port bitset code to hosts with unusual word sizes.
54683         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
54684         (build_collating_symbol):
54685         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
54686         argument is a bitset.  This is merely a style issue, but it makes
54687         it clearer that an entire array is expected.
54688         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
54689         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
54690         Port to the case where bitset_word is not the same as unsigned int.
54691         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54692         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
54693         Likewise.
54694         * lib/regexec.c (check_dst_limits_calc_pos_1,
54695         check_subexp_matching_top):
54696         (build_trtable, group_nodes_into_DFAstates):
54697         Likewise.
54698         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
54699         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
54700         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
54701         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
54702         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
54703         * lib/regcomp.c (optimize_subexps, lower_subexp):
54704         Work even if bitset_word has holes in its bitwise representation.
54705         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
54706         * lib/regexec.c (check_dst_limits_calc_pos_1,
54707         check_subexp_matching_top):
54708         Likewise.
54709         * lib/regex_internal.c (re_string_reconstruct):
54710         Don't assume UCHAR_MAX == 255.
54711         * lib/regex_internal.h (bitset_set_all): Likewise.
54712         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
54713         All uses changed.
54714         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
54715         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
54716         All uses changed.
54717         (BITSET_WORD_MAX): New macro.
54718         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
54719         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
54720         (bitset_empty, bitset_copy):
54721         Prefer sizeof (bitset) to multiplying it out ourselves.
54722         (bitset_not_merge): Remove; unused.
54723         (bitset_contain): Return bool, not unsigned int with one bit on.
54724         All callers changed.
54725         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
54726         alignment than re_node_set; do this by defining a new internal
54727         type struct dests_alloc and using it to allocate memory.
54728
54729 2005-09-05  Bruno Haible  <bruno@clisp.org>
54730
54731         * gnulib-tool (func_import): Fix comparison in handling of symbolic
54732         links.
54733
54734 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
54735
54736         * modules/size_max (Makefile.am): Add size_max.h
54737
54738 2005-09-04  Derek Price  <derek@ximbiot.com>
54739
54740         * gnulib-tool (func_import): Fix reversed $symbolic logic.
54741
54742 2005-09-03  Simon Josefsson  <jas@extundo.com>
54743
54744         * gnulib-tool: Fix typo.
54745
54746 2005-09-03  Simon Josefsson  <jas@extundo.com>
54747
54748         * config/srclist.txt: Add glibc bug 1293.
54749
54750 2005-09-03  Derek Price  <derek@ximbiot.com>
54751
54752         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
54753         From Larry Jones <lawrence.jones@ugs.com>.
54754
54755 2005-09-02  Simon Josefsson  <jas@extundo.com>
54756
54757         * modules/socklen: New file.
54758
54759 2005-09-02  Simon Josefsson  <jas@extundo.com>
54760
54761         * modules/havelib: New module.
54762
54763         * modules/gettext, modules/iconv, modules/lock, modules/readline:
54764         Use havelib.
54765
54766 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54767
54768         Check for arithmetic overflow when calculating sizes, to prevent
54769         some buffer-overflow issues.  These patches are conservative, in the
54770         sense that when I couldn't determine whether an overflow was possible,
54771         I inserted a run-time check.
54772         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
54773         macros.
54774         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
54775         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
54776         (re_xnrealloc, re_x2nrealloc): New inline functions.
54777         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
54778         parse_bracket_exp):
54779         (build_equiv_class, build_charclass): Check for arithmetic overflow
54780         in size expression calculations.
54781         * lib/regex_internal.c (re_string_realloc_buffers):
54782         (build_wcs_upper_buffer, re_node_set_add_intersect):
54783         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
54784         (re_dfa_add_node, register_state): Likewise.
54785         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
54786         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
54787         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
54788         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
54789
54790 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54791
54792         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54793         m4/ulonglong.m4.  Problem reported by Martin Lambers.
54794
54795 2005-09-02  Bruno Haible  <bruno@clisp.org>
54796
54797         Support for lib vs. lib64 distinction on biarch platforms.
54798         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
54799         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
54800         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
54801
54802 2005-09-02  Bruno Haible  <bruno@clisp.org>
54803
54804         * gnulib-tool (import): In the other first-use case, provide defaults
54805         as well.
54806
54807 2005-09-02  Bruno Haible  <bruno@clisp.org>
54808
54809         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
54810         patches not yet found in the latest gettext release.
54811
54812 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
54815         to avoid a collision with bits/local_lim.h in glibc.
54816         All uses changed.  Problem reported by Dmitry V. Levin in
54817         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
54818
54819         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
54820         bugs in int versus size_t comparisons.
54821         (re_string_context_at): Fix bug where the code assumed that
54822         Idx is signed.
54823
54824         Use bool where appropriate.
54825         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
54826         All callers changed.
54827         (calc_eclosure_iter): Likewise, for ROOT arg.
54828         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
54829         (build_charclass_op): Likewise, for NON_MATCH arg.
54830         * lib/regex_internal.c (re_string_allocate, re_string_construct):
54831         (re_string_construct_common): Likewise, for ICASE arg.
54832         * lib/regexec.c (re_search_2_stub, re_search_stub):
54833         Likewise, for RET_LEN arg.
54834         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
54835         (set_regs): Likewise, for FL_BACKTRACK arg.
54836         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
54837         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
54838         (calc_eclosure_iter, parse_bracket_exp):
54839         Use bool for internal variables that are booleans.
54840         * lib/regexec.c (re_search_internal, check_matching,
54841         proceed_next_node):
54842         (set_regs, build_sifted_states, sift_states_bkref):
54843         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
54844         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54845         (find_collation_sequence_value):
54846         Likewise.
54847         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
54848         (re_node_set_compare):
54849         Return bool, not int. All callers changed.
54850         * lib/regexec.c (check_halt_node_context, check_dst_limits):
54851         (build_trtable, check_node_accept): Likewise.
54852         * lib/regex_internal.h: Include stdbool.h.
54853
54854         Fix bugs uncovered when converting to bool.
54855         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
54856         failure instead of charging ahead blindly.
54857         * lib/regex_internal.c (register_state): Likewise.
54858         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
54859         for freeing internal storage.
54860         (group_nodes_into_DFA_states): Use unsigned int, not int, for
54861         bitset pieces used as boolean, to avoid undefined behavior
54862         on hosts that do int overflow checking.
54863
54864 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54865
54866         * config/srclist.txt: Add glibc bugs 1285-1287.
54867
54868 2005-09-01  Jim Meyering  <jim@meyering.net>
54869
54870         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
54871         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
54872         Require gl_STAT_MACROS, too.
54873
54874 2005-09-01  Bruno Haible  <bruno@clisp.org>
54875
54876         * gnulib-tool (import): In the first-use case, provide defaults.
54877
54878 2005-09-01  Bruno Haible  <bruno@clisp.org>
54879
54880         * gnulib-tool (func_import): Remove the .tmp files.
54881
54882 2005-09-01  Bruno Haible  <bruno@clisp.org>
54883
54884         * gnulib-tool (func_import): Fix handling of symbolic links.
54885
54886 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54887
54888         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
54889         old glibc regex code mishandles strings longer than 2**31 bytes.
54890         This patch fixes this when the regex code is used in gnulib
54891         (i.e., outside glibc).
54892
54893         This patch should not affect the use of the regex code inside
54894         glibc.  No doubt this problem also needs to be handled for glibc
54895         as well, but the result will be an incompatible change to the
54896         glibc ABI, and the old ABI will have to be supported too.  That
54897         can be the the subject for another patch.
54898
54899         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
54900         governing whether the rest of this patch is active.  By default,
54901         the macro is disabled and the patch has no effect.
54902         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
54903         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
54904         (struct re_pattern_buffer, re_search, re_search_2, re_match):
54905         (re_match_2, re_set_registers): Use the new types.
54906         * lib/regex_internal.h (Idx, re_hashval_t): New types.
54907         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
54908         New macros.
54909         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
54910         (re_string_context_at, bin_tree_t, re_dfastate_t):
54911         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
54912         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
54913         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
54914         (re_string_char_size_at, re_string_wchar_at):
54915         (re_string_elem_size_at):
54916         Use the new types and macros to port to 64-bit hosts.
54917         Use unsigned types for internal values, so that the code
54918         mostly works even for arrays larger than SSIZE_MAX.
54919         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
54920         (search_duplicated_node, calc_eclosure_iter, fetch_number):
54921         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
54922         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
54923         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
54924         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
54925         (calc_inveclosure, parse_dup_op, build_range_exp):
54926         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
54927         (fetch_number, create_token_tree, mark_opt_subexp):
54928         Likewise.
54929         * lib/regex_internal.c (re_string_construct_common,
54930         create_ci_newstate):
54931         (create_cd_newstate, re_string_allocate, re_string_construct):
54932         (re_string_realloc_buffers, build_wcs_upper_buffer):
54933         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54934         (re_string_reconstruct, re_string_peek_byte_case):
54935         (re_string_fetch_byte_case, re_string_context_at):
54936         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54937         (re_node_set_init_copy, re_node_set_add_intersect):
54938         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54939         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54940         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54941         (re_acquire_state, re_acquire_state_context, register_state):
54942         Likewise.
54943         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
54944         search_cur_bkref_entry):
54945         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
54946         (re_search_internal, re_search_2_stub, re_search_stub)
54947         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
54948         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
54949         (update_cur_sifted_state, check_dst_limits):
54950         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54951         (check_subexp_limits, sift_states_bkref, merge_state_array):
54952         (check_subexp_matching_top, get_subexp, get_subexp_sub):
54953         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
54954         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54955         (expand_bkref_cache, check_node_accept_bytes):
54956         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
54957         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
54958         (acquire_init_state_context, check_halt_node_context):
54959         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
54960         (sift_states_backward, clean_state_log_if_needed):
54961         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
54962         (find_recover_state, transit_state_sb, transit_state_mb):
54963         (transit_state_bkref, build_trtable, match_ctx_clean):
54964         Likewise.
54965         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
54966         to work around an assumption that REG_MISSING is negative.
54967
54968         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
54969         (seek_collating_symbol_entry) [defined _LIBC]:
54970         (lookup_collation_sequence_value) [defined _LIBC]:
54971         (build_range_exp, build_collating_symbol) [defined _LIBC]:
54972         Use prototypes rather than old-style function definitions.
54973         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
54974         (transit_state_sb) [0]:
54975         (find_collation_sequence_value) [defined _LIBC]: Likewise.
54976
54977         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
54978         rm_eo.
54979
54980         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
54981         (optimize_subexps, lower_subexp):
54982         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
54983         since the signed shift might overflow.  Use 1u<<31 instead.
54984         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54985         Likewise.
54986         * lib/regexec.c (check_dst_limits_calc_pos_1,
54987         check_subexp_matching_top): Likewise.
54988
54989         * lib/regcomp.c (optimize_subexps, lower_subexp):
54990         Use CHAR_BIT rather than 8, for clarity.
54991         * lib/regexec.c (check_dst_limits_calc_pos_1):
54992         (check_subexp_matching_top): Likewise.
54993         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
54994         have to worry about portability issues when shifting it left.
54995         Remove no-longer-needed test for table_size > 0.
54996         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
54997         in a word, as the resulting behavior is undefined.
54998         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
54999         in one case, a <= should have been an <, and in another case the
55000         whole test was missing.
55001         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55002         the standard name CHAR_BIT.
55003         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55004         this is not true on one's complement and signed-magnitude hosts.
55005
55006         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55007         next_last_offset.
55008         (struct re_dfa_t): Remove unused member states_alloc.
55009         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55010
55011 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55012
55013         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55014         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55015         and large-file glibc and in 32-bit large-file Solaris.
55016
55017 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55018
55019         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55020         lengths fit in regoff_t; this isn't true if regoff_t is the same
55021         width as size_t.
55022         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55023         (= START + RANGE) instead of RANGE.  This avoids overflow
55024         problems when regoff_t is the same width as size_t.
55025         All callers changed.
55026         (re_search_2_stub): Check for overflow when adding the
55027         sizes of the two strings.
55028         (re_search_stub): Check for overflow when adding START
55029         to RANGE; if it occurs, substitute the extreme value.
55030
55031 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55032
55033         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55034
55035 2005-08-31  Jim Meyering  <jim@meyering.net>
55036
55037         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55038         a pointer-to-const.
55039         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55040         (register_state): Likewise.
55041         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55042         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55043         (group_nodes_into_DFAstates): Likewise.
55044
55045 2005-08-31  Jim Meyering  <jim@meyering.net>
55046
55047         * check-module: Add a FIXME comment.
55048
55049 2005-08-31  Eric Blake  <ebb9@byu.net>
55050
55051         * modules/unistd-safer (Files): Add unistd--.h.
55052         * modules/stdio-safer (Files): Add stdio--.h.
55053
55054 2005-08-31  Derek Price  <derek@ximbiot.com>
55055
55056         * lib/getdelim.c (getdelim): Return EOF on EOF.
55057         Reported by Larry Jones <lawrence.jones@ugs.com>.
55058
55059 2005-08-31  Bruno Haible  <bruno@clisp.org>
55060
55061         Avoid unnecessary diffs in the generated lib/Makefile.am.
55062         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55063         the generated files.
55064         (func_import): Don't set cmd.
55065
55066 2005-08-31  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/strstr.c: Include <stddef.h>, for NULL.
55069         * lib/strcasestr.c: Likewise.
55070         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55071
55072 2005-08-31  Bruno Haible  <bruno@clisp.org>
55073
55074         * gnulib-tool: New option --macro-prefix.
55075         (func_import): Use macro_prefix.
55076         (import): Handle option --macro-prefix.
55077
55078 2005-08-31  Bruno Haible  <bruno@clisp.org>
55079
55080         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55081         Also use new variables cached_lgpl, cached_libtool.
55082
55083 2005-08-31  Bruno Haible  <bruno@clisp.org>
55084
55085         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55086         always instantiating them.
55087
55088 2005-08-31  Bruno Haible  <bruno@clisp.org>
55089
55090         * gnulib-tool (func_import): Read the previous cached settings
55091         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55092         earlier added by gnulib but are now dropped. Warn when a gnulib file
55093         overwrites a non-gnulib file.
55094
55095 2005-08-31  Bruno Haible  <bruno@clisp.org>
55096
55097         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55098         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55099         projects that don't keep autogenerated files in CVS. Put into
55100         actioncmd only the specified modules, not the transitive closure.
55101
55102 2005-08-31  Bruno Haible  <bruno@clisp.org>
55103
55104         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55105         Create directories that shall be filled.
55106         (import): Don't look for gl_* macros in configure.ac. Recurse across
55107         all directories containing a gnulib-cache.m4 files, if meaningful.
55108
55109 2005-08-31  Bruno Haible  <bruno@clisp.org>
55110
55111         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55112         (import): Set seen_libtool when we see gl_LIBTOOL.
55113
55114 2005-08-31  Bruno Haible  <bruno@clisp.org>
55115
55116         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55117         declaration macro definitions from generated gnulib.m4.
55118
55119 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55120
55121         * lib/iconvme.h: Add prototype for iconv_alloc.
55122
55123 2005-08-29  Simon Josefsson  <jas@extundo.com>
55124
55125         * lib/iconvme.c: Fix errno.
55126
55127 2005-08-29  Bruno Haible  <bruno@clisp.org>
55128
55129         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55130         that it works when the directory contains spaces.
55131
55132 2005-08-29  Bruno Haible  <bruno@clisp.org>
55133
55134         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55135
55136 2005-08-29  Bruno Haible  <bruno@clisp.org>
55137
55138         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55139         Emit more advice.
55140
55141 2005-08-29  Bruno Haible  <bruno@clisp.org>
55142         and Stepan Kasal  <kasal@ucw.cz>
55143
55144         * check-module: If more parameters are given, check each of them
55145         separately; add more exceptions, as noted by Jim Meyering.
55146         (check_module): New procedure.
55147         (%exempt_header): Now contains all exceptions.
55148
55149 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55150
55151         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55152
55153 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55154
55155         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55156
55157 2005-08-28  Bruno Haible  <bruno@clisp.org>
55158
55159         * m4/gnulib-tool.m4: New file.
55160
55161 2005-08-27  Jim Meyering  <jim@meyering.net>
55162
55163         * modules/unistd-safer (Files): Add pipe-safer.c.
55164         * modules/fcntl-safer (Files): Add creat-safer.c.
55165
55166 2005-08-27  Jim Meyering  <jim@meyering.net>
55167
55168         * m4/stdlib-safer.m4: New file.  From coreutils.
55169         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55170         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55171         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55172         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55173         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55174
55175 2005-08-27  Jim Meyering  <jim@meyering.net>
55176
55177         * lib/fopen-safer.c: Merge minor changes from coreutils.
55178         * lib/dup-safer.c: Likewise.
55179         * lib/fd-safer.c: Likewise.
55180
55181         Merge from coreutils.
55182         * lib/stdio--.h: New file.
55183         * lib/stdlib--.h: New file.
55184         * lib/mkstemp-safer.c: New file.
55185
55186         GNU tar needs these.
55187         * lib/pipe-safer.c: New file.
55188         * lib/creat-safer.c: New file.
55189         * lib/fcntl--.h (creat): Define to creat_safer.
55190         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55191         * lib/unistd--.h (pipe): Define to pipe_safer.
55192         * lib/unistd-safer.h: Declare pipe_safer.
55193
55194 2005-08-26  Simon Josefsson  <jas@extundo.com>
55195
55196         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55197         Haible <bruno@clisp.org>.
55198
55199 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55200
55201         * lib/regex_internal.h: Remove all references to
55202         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55203         or better.
55204         (bitset_not, bitset_merge, bitset_not_merge):
55205         (bitset_mask, re_string_allocate, re_string_construct):
55206         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55207         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55208         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55209         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55210         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55211         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55212         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55213         (re_acquire_state_context):
55214         Remove unnecessary forward decls.
55215         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55216         Put __attribute at function definition,
55217         now that the function decl has been removed.
55218         * lib/regex_internal.c (re_string_peek_byte_case):
55219         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55220         Likewise.
55221
55222 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55223
55224         * m4/regex.m4: Add AC_PREREQ(2.50).
55225         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55226
55227 2005-08-25  Simon Josefsson  <jas@extundo.com>
55228
55229         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55230         __fsetlocking.
55231
55232 2005-08-25  Simon Josefsson  <jas@extundo.com>
55233
55234         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55235         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55236         GLIBC specific code.
55237
55238 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55239
55240         Make regex safe for g++.  This fixes one real bug (an "err"
55241         that should have been "*err").  g++ problem reported by
55242         Sam Steingold.
55243         * lib/regex_internal.h (re_calloc): New macro, consistent with
55244         re_malloc etc.  All callers of calloc changed to use re_calloc.
55245         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55246         not int.  All callers changed.
55247         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55248         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55249         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55250         (find_recover_state): Change "err" to "*err"; this fixes what
55251         appears to be a real bug.
55252         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55253         versus int.
55254
55255 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         * modules/regex (Depends-on): Add malloc, since the code
55258         assumes that !malloc(0) means failure.
55259
55260 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55261
55262         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55263
55264         alloca modernization/simplification for regex.
55265         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55266         needs to be at the start of the file, and can be moved into
55267         regex_internal.h and simplified.
55268         * lib/regex_internal.h: Include <alloca.h>.
55269         (__libc_use_alloca) [!defined _LIBC]: New macro.
55270         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55271         now works outside glibc.
55272
55273 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55274
55275         * config/srclist.txt: Add glibc bugs 1241, 1245.
55276
55277 2005-08-25  Jim Meyering  <jim@meyering.net>
55278
55279         * lib/open-safer.c: Include <config.h>.
55280         Otherwise, we'd lose LARGEFILE support in any file using
55281         e.g. "fcntl--.h"
55282
55283 2005-08-25  Bruno Haible  <bruno@clisp.org>
55284
55285         * m4/minmax.m4: Require autoconf 2.52.
55286         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55287         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55288         alternatives of translit over the alphabet.
55289         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55290
55291 2005-08-24  Simon Josefsson  <jas@extundo.com>
55292
55293         * tests/test-getpass.c: New file.
55294
55295 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55296
55297         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55298         for GNU regex features.
55299
55300 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55301
55302         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55303         * lib/regex.h (regerror): Likewise.
55304
55305         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55306         requires this.  (The code never needed it.)
55307
55308         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55309         All uses of recently-renamed identifiers changed to use the new,
55310         POSIX-compliant names.  The code will build and run just fine
55311         without these changes, but it's better to eat our own dog food
55312         and use the standard-conforming names.
55313
55314         * lib/regex.h: Fix a multitude of POSIX name space violations.
55315         These changes have an effect only for programs that define
55316         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55317         do not change anything for programs compiled in the normal way.
55318         Also, there is no effect on the ABI.
55319
55320         (_REGEX_SOURCE): New macro.
55321         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55322         defined and _GNU_SOURCE is not; this fixes a name space violation.
55323
55324         Rename the following macros to obey POSIX requirements.
55325         The old names are still visible as macros if _REGEX_SOURCE is defined.
55326         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55327         RE_BACKSLASH_ESCAPE_IN_LISTS.
55328         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55329         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55330         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55331         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55332         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55333         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55334         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55335         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55336         (REG_INTERVALS): renamed from RE_INTERVALS.
55337         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55338         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55339         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55340         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55341         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55342         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55343         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55344         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55345         RE_UNMATCHED_RIGHT_PAREN_ORD.
55346         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55347         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55348         (REG_DEBUG): renamed from RE_DEBUG.
55349         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55350         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55351         unusual, since we can't clash with the POSIX REG_ICASE.
55352         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55353         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55354         (REG_NO_SUB): renamed from RE_NO_SUB.
55355         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55356         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55357         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55358         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55359         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55360         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55361         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55362         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55363         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55364         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55365         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55366         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55367         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55368         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55369         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55370         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55371         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55372         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55373         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55374         (REG_FIXED): Renamed from REGS_FIXED.
55375         (REG_NREGS): Renamed from RE_NREGS.
55376
55377         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55378         of other REG_* macros, since POSIX says the user is allowed to
55379         #undef these macros selectively.
55380
55381         (reg_errcode_t): Update comment stating what other tables need
55382         to be consistent.
55383
55384         Rename the following enum values to obey POSIX requirements.
55385         The old names are still visible as macros.
55386         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55387         is not defined, since GNU is supposed to be a superset of POSIX as
55388         much as possible, and since we want reg_errcode_t to be a signed
55389         type for implementation consistency.
55390         (_REG_NOERROR): Renamed from REG_NOERROR.
55391         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55392         (_REG_BADPAT): Renamed from REG_BADPAT.
55393         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55394         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55395         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55396         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55397         (_REG_EBRACK): Renamed from REG_EBRACK.
55398         (_REG_EPAREN): Renamed from REG_EPAREN.
55399         (_REG_EBRACE): Renamed from REG_EBRACE.
55400         (_REG_BADBR): Renamed from REG_BADBR.
55401         (_REG_ERANGE): Renamed from REG_ERANGE.
55402         (_REG_ESPACE): Renamed from REG_ESPACE.
55403         (_REG_BADRPT): Renamed from REG_BADRPT.
55404         (_REG_EEND): Renamed from REG_EEND.
55405         (_REG_ESIZE): Renamed from REG_ESIZE.
55406         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55407         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55408         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55409         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55410         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55411
55412         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55413         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55414         changed.  But support the old name if the new one is not defined
55415         and if _REGEX_SOURCE.
55416
55417         Change the following member names in struct re_pattern_buffer.
55418         The old names are still supported if !_REGEX_SOURCE.
55419         The new names are always supported, regardless of _REGEX_SOURCE.
55420         (re_buffer): Renamed from buffer.
55421         (re_allocated): Renamed from allocated.
55422         (re_used): Renamed from used.
55423         (re_syntax): Renamed from syntax.
55424         (re_fastmap): Renamed from fastmap.
55425         (re_translate): Renamed from translate.
55426         (re_can_be_null): Renamed from can_be_null.
55427         (re_regs_allocated): Renamed from regs_allocated.
55428         (re_fastmap_accurate): Renamed from fastmap_accurate.
55429         (re_no_sub): Renamed from no_sub.
55430         (re_not_bol): Renamed from not_bol.
55431         (re_not_eol): Renamed from not_eol.
55432         (re_newline_anchor): Renamed from newline_anchor.
55433
55434         Change the following member names in struct re_registers.
55435         The old names are still supported if !_REGEX_SOURCE.
55436         The new names are always supported, regardless of _REGEX_SOURCE.
55437         (rm_num_regs): Renamed from num_regs.
55438         (rm_start): Renamed from start.
55439         (rm_end): Renamed from end.
55440
55441         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55442         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55443         Prepend __ to parameter names.
55444
55445         Undo yesterday's changes.
55446
55447 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55448
55449         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55450         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55451         lib/regex.c.
55452
55453 2005-08-24  Jim Meyering  <jim@meyering.net>
55454
55455         Sync from coreutils.
55456         * m4/fcntl-safer.m4: New file.
55457
55458         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55459         and object files for this module.
55460
55461 2005-08-24  Jim Meyering  <jim@meyering.net>
55462
55463         Sync from coreutils.
55464         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55465
55466 2005-08-24  Jim Meyering  <jim@meyering.net>
55467
55468         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55469         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55470
55471 2005-08-24  Jim Meyering  <jim@meyering.net>
55472
55473         * modules/fcntl-safer: New module.
55474         * modules/fts (Depends-on): Add fcntl-safer.
55475         * MODULES.html.sh (File descriptor based Input/Output):
55476         Add fcntl-safer.
55477
55478 2005-08-24  Bruno Haible  <bruno@clisp.org>
55479
55480         Support for unit test modules.
55481         * modules/README: Mention tests modules.
55482         * modules/TEMPLATE-TESTS: New file.
55483         * gnulib-tool: New options --extract-tests-module, --with-tests and
55484         --tests-base (unused for the moment).
55485         (testsbase, inctests): New variables.
55486         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55487         (func_verify_module): Exclude TEMPLATE-TESTS.
55488         (func_verify_nontests_module, func_verify_tests_module): New functions.
55489         (func_get_dependencies): Add implicit dependency for tests modules.
55490         (func_get_tests_module): New function.
55491         (func_modules_transitive_closure): When --with-tests was specified,
55492         include the unit tests as well, unless explicitly avoided.
55493         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55494         (func_emit_tests_Makefile_am): New function.
55495         (func_create_testdir): When --with-tests was specified, emit a
55496         tests/ directory.
55497         * MODULES.html.sh (Future developments): Update.
55498
55499 2005-08-24  Bruno Haible  <bruno@clisp.org>
55500
55501         * modules/tls-tests: New file.
55502         * tests/test-tls.c: New file, from GNU gettext.
55503
55504 2005-08-24  Bruno Haible  <bruno@clisp.org>
55505
55506         * modules/lock-tests: New file.
55507         * tests/test-lock.c: New file, from GNU gettext.
55508
55509 2005-08-24  Bruno Haible  <bruno@clisp.org>
55510
55511         * lib/lock.h: Add multiple inclusion guard.
55512         * lib/tls.h: Add multiple inclusion guard.
55513
55514 2005-08-24  Bruno Haible  <bruno@clisp.org>
55515
55516         * gnulib-tool: Add support for the --aux-dir option to
55517         --create-testdir, --create-megatestdir, --test, --megatest.
55518         (func_create_testdir, func_create_megatestdir): Optionally emit a
55519         AC_CONFIG_AUX_DIR directive.
55520         (create-testdir, create-megatestdir, test, megatest): Provide a
55521         default value for $auxdir.
55522
55523 2005-08-24  Bruno Haible  <bruno@clisp.org>
55524
55525         * gnulib-tool (import): Use compound statement instead of subshell
55526         where possible.
55527
55528 2005-08-24  Bruno Haible  <bruno@clisp.org>
55529
55530         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55531
55532 2005-08-24  Bruno Haible  <bruno@clisp.org>
55533
55534         * gnulib-tool (func_version): Update.
55535
55536 2005-08-24  Bruno Haible  <bruno@clisp.org>
55537
55538         * gnulib-tool (func_import, func_create_testdir,
55539         func_create_megatestdir): Quote all autoconf macro arguments.
55540
55541 2005-08-24  Bruno Haible  <bruno@clisp.org>
55542
55543         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55544         option --force, because --force causes the aclocal.m4 of each
55545         subdirectory to be newer than the corresponding config.h.in.
55546
55547 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55548
55549         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
55550         All contents moved to gl_REGEX.
55551         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
55552         assume that it does.
55553
55554 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55555
55556         * lib/regex.h (REG_NOSYS)
55557         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
55558         Define, since POSIX requires it as of 2001.
55559         (_REG_ENOSYS)
55560         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
55561         New private symbol, used to keep the enum signed in all cases.
55562         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
55563         Youngman in
55564         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
55565
55566         * lib/regex_internal.c (re_string_skip_chars, register_state):
55567         (calc_state_hash):
55568         Remove forward decls; no longer needed now that we use prototypes.
55569         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
55570         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
55571         (clean_state_log_if_needed): Likewise.
55572
55573 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55574
55575         * config/srclist.txt: Add glibc bugs 1231-1233.
55576
55577 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55578
55579         Fix problems reported by Sam Steingold in
55580         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
55581         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
55582         assumed that reg_errcode_t is a signed type, which is not
55583         necessarily true if _XOPEN_SOURCE is not defined.
55584         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
55585         since some compilers warn about it otherwise.
55586
55587 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55588
55589         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
55590         (init_word_char, create_initial_state, duplicate_node_closure):
55591         (fetch_token, peek_token_bracket, build_range_exp):
55592         (build_collating_symbol): Remove forward decls; no longer needed
55593         now that we use prototypes.
55594
55595         * lib/regcomp.c:
55596         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
55597         (re_compile_fastmap_iter, regcomp, regerror, regfree):
55598         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
55599         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
55600         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
55601         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
55602         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
55603         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
55604         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
55605         (build_range_exp, build_collating_symbol, parse_bracket_exp):
55606         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
55607         (build_charclass, build_charclass_op, fetch_number, create_tree):
55608         (create_token_tree, mark_opt_subexp, duplicate_tree):
55609         Use prototypes rather than old-style definitions.
55610
55611         * lib/regex_internal.c:
55612         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
55613         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
55614         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55615         (re_string_reconstruct, re_string_peek_byte_case):
55616         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
55617         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55618         (re_node_set_init_copy, re_node_set_add_intersect):
55619         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55620         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55621         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55622         (re_acquire_state, re_acquire_state_context, register_state):
55623         (create_ci_newstate, create_cd_newstate, free_state):
55624         Likewise.
55625         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
55626         re_search_2):
55627         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
55628         (re_search_internal, prune_impossible_nodes):
55629         (acquire_init_state_context, check_matching, static):
55630         (check_halt_node_context, check_halt_state_context, proceed_next_node):
55631         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
55632         (update_regs, sift_states_backward, build_sifted_states):
55633         (clean_state_log_if_needed, merge_state_array):
55634         (update_cur_sifted_state, add_epsilon_src_nodes):
55635         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
55636         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
55637         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
55638         (find_recover_state, check_subexp_matching_top, transit_state_mb):
55639         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
55640         (check_arrival, check_arrival_add_next_nodes):
55641         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55642         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55643         (check_node_accept_bytes, check_node_accept, extend_buffers):
55644         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
55645         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
55646         (sift_ctx_init):
55647         Likewise.
55648
55649         * lib/regex_internal.h:
55650         (re_string_allocate, re_string_construct, re_string_reconstruct):
55651         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
55652         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
55653         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
55654         (re_string_context_at, re_string_peek_byte_case):
55655         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
55656         is defined, since we now use prototypes always.
55657
55658         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
55659         C89 or better.  All uses removed.
55660
55661 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55662
55663         * config/srclist.txt: Add glibc bugs 1220-1227.
55664
55665 2005-08-20  Jim Meyering  <jim@meyering.net>
55666
55667         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
55668         of unused local, dfa.
55669
55670 2005-08-20  Bruno Haible  <bruno@clisp.org>
55671
55672         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
55673
55674 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55675
55676         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
55677         (re_node_set_insert_last, re_dfa_add_node):
55678         Rename local variables to avoid GCC shadowing warnings.
55679
55680 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55681
55682         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
55683         [defined lint]: Suppress bogus uninitialized-variable warnings.
55684
55685         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
55686         and let the caller return REG_ESPACE if out of space.  This
55687         removes an uninitialied-variable warning with GCC 4.0.1, and also
55688         avoids taking the address of a local variable.  All callers
55689         changed.
55690
55691 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55692
55693         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
55694         $LIBCSRC/posix/regexec.c.
55695         Add glibc bug 1217 for regcomp.c.
55696
55697 2005-08-19  Jim Meyering  <jim@meyering.net>
55698
55699         * lib/regexec.c (proceed_next_node): Redo local variables to
55700         avoid GCC shadowing warnings.
55701
55702 2005-08-18  Bruno Haible  <bruno@clisp.org>
55703
55704         * lib/strstr.c (strstr): Fix return value in multibyte case.
55705         * lib/strcasestr.c (strcasestr): Likewise.
55706
55707 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
55710
55711 2005-08-17  Jim Meyering  <jim@meyering.net>
55712
55713         Make the %s format (seconds since the epoch) work for a negative
55714         number and when used with a zero-padded field width, e.g. %015s.
55715
55716         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
55717         label so that it precedes the code to set `digits'.  Otherwise,
55718         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
55719         print `00-22'.  Now, it prints `-0022', as it should.
55720
55721 2005-08-17  Bruno Haible  <bruno@clisp.org>
55722
55723         * modules/strstr (Files): Add m4/mbrtowc.m4.
55724         (Depends-on): Add mbuiter.
55725
55726 2005-08-17  Bruno Haible  <bruno@clisp.org>
55727
55728         * modules/strcasestr: New file.
55729         * MODULES.html.sh (String handling, based on ANSI C 89): Add
55730         strcasestr.
55731
55732 2005-08-17  Bruno Haible  <bruno@clisp.org>
55733
55734         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
55735
55736 2005-08-17  Bruno Haible  <bruno@clisp.org>
55737
55738         * modules/mbuiter: New file.
55739         * MODULES.html.sh (Extended multibyte and wide character utilities):
55740         Add mbuiter.
55741
55742 2005-08-17  Bruno Haible  <bruno@clisp.org>
55743
55744         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
55745         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
55746
55747 2005-08-17  Bruno Haible  <bruno@clisp.org>
55748
55749         * m4/strcasestr.m4: New file.
55750
55751 2005-08-17  Bruno Haible  <bruno@clisp.org>
55752
55753         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
55754         * lib/strstr.c: Completely rewritten, with multibyte locale support.
55755
55756 2005-08-17  Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/strcasestr.h: New file.
55759         * lib/strcasestr.c: New file.
55760
55761 2005-08-17  Bruno Haible  <bruno@clisp.org>
55762
55763         * lib/strcasecmp.c: Use mbuiter.h.
55764
55765 2005-08-17  Bruno Haible  <bruno@clisp.org>
55766
55767         * lib/mbuiter.h: New file.
55768
55769 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55770
55771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
55772         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
55773         and gl_GETOPT are both invoked via different paths (as happens
55774         with GNU tar CVS because it uses both argp and getopt), the former
55775         wins.
55776
55777 2005-08-16  Bruno Haible  <bruno@clisp.org>
55778
55779         * modules/tls: New file.
55780         * MODULES.html.sh (Multithreading): Add tls.
55781
55782 2005-08-16  Bruno Haible  <bruno@clisp.org>
55783
55784         * modules/strnlen1: New file.
55785         * MODULES.html.sh (String handling): Add strnlen1.
55786
55787 2005-08-16  Bruno Haible  <bruno@clisp.org>
55788
55789         * modules/strcase (Files): Add m4/mbrtowc.m4.
55790         (Depends-on): Add strnlen1, mbchar.
55791
55792 2005-08-16  Bruno Haible  <bruno@clisp.org>
55793
55794         * modules/mbiter: New file.
55795         * MODULES.html.sh (Extended multibyte and wide character utilities):
55796         Add mbiter.
55797
55798 2005-08-16  Bruno Haible  <bruno@clisp.org>
55799
55800         * modules/mbfile: New file.
55801         * MODULES.html.sh (Extended multibyte and wide character utilities):
55802         Add mbfile.
55803
55804 2005-08-16  Bruno Haible  <bruno@clisp.org>
55805
55806         * modules/mbchar: New file.
55807         * MODULES.html.sh (Extended multibyte and wide character utilities):
55808         New section.
55809
55810 2005-08-16  Bruno Haible  <bruno@clisp.org>
55811
55812         * m4/tls.m4: New file, from GNU gettext.
55813
55814 2005-08-16  Bruno Haible  <bruno@clisp.org>
55815
55816         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
55817         always.
55818         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
55819
55820 2005-08-16  Bruno Haible  <bruno@clisp.org>
55821
55822         * m4/mbiter.m4: New file.
55823
55824 2005-08-16  Bruno Haible  <bruno@clisp.org>
55825
55826         * m4/mbfile.m4: New file.
55827
55828 2005-08-16  Bruno Haible  <bruno@clisp.org>
55829
55830         * m4/mbchar.m4: New file.
55831
55832 2005-08-16  Bruno Haible  <bruno@clisp.org>
55833
55834         * lib/tls.h: New file, from GNU gettext.
55835         * lib/tls.c: New file, from GNU gettext.
55836
55837 2005-08-16  Bruno Haible  <bruno@clisp.org>
55838
55839         * lib/strnlen1.h: New file.
55840         * lib/strnlen1.c: New file.
55841
55842 2005-08-16  Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
55845         (mbi_init): Update.
55846         (mbi_avail, mbi_advance): Let the iteration end before the terminating
55847         NUL byte, not after it.
55848
55849 2005-08-16  Bruno Haible  <bruno@clisp.org>
55850
55851         * lib/strcase.h (strcasecmp): Add note in comments.
55852         * lib/strncasecmp.c: Use code from strcasecmp.c.
55853         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
55854         (strcasecmp): Work correctly in multibyte locales.
55855
55856 2005-08-16  Bruno Haible  <bruno@clisp.org>
55857
55858         * lib/mbiter.h: New file.
55859
55860 2005-08-16  Bruno Haible  <bruno@clisp.org>
55861
55862         * lib/mbfile.h: New file.
55863
55864 2005-08-16  Bruno Haible  <bruno@clisp.org>
55865
55866         * lib/mbchar.h: New file.
55867         * lib/mbchar.c: New file.
55868
55869 2005-08-16  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
55872         the valid ones. Makes the comparison operations transitive:
55873         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
55874         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
55875
55876 2005-08-15  Simon Josefsson  <jas@extundo.com>
55877
55878         * modules/ssize_t (License): Change to 'unlimited'.
55879
55880         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
55881
55882 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55883
55884         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
55885         Add comments for each pending glibc patch.
55886
55887 2005-08-15  Bruno Haible  <bruno@clisp.org>
55888
55889         * lib/regex.h (__restrict_arr): Don't define to __restrict if
55890         __cplusplus is defined.
55891
55892 2005-08-14  Jim Meyering  <jim@meyering.net>
55893
55894         Sync from coreutils.
55895
55896         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
55897         Use the hash-table-based cycle-detection code not just when
55898         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
55899         Reported by James Youngman in
55900         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
55901         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
55902         FTS_TIGHT_CYCLE_CHECK.
55903         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
55904         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
55905         once again.
55906         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
55907         * lib/fts.c (fd_safer): Remove decl.
55908         Include fcntl--.h rather than unistd-safer.h
55909         (fts_safe_changedir): Don't call fd_safer; no longer needed
55910         now that we include fcntl--.h.
55911
55912 2005-08-12  Simon Josefsson  <jas@extundo.com>
55913
55914         * modules/getndelim2: Use ssize_t module.
55915         * modules/getnline: Likewise.
55916         * modules/safe-read: Likewise.
55917         * modules/xreadlink: Likewise.
55918
55919         * modules/ssize_t: New file.
55920
55921 2005-08-12  Simon Josefsson  <jas@extundo.com>
55922
55923         * m4/readline.m4: Look for termcap, curses or ncurses if required.
55924
55925 2005-08-12  Simon Josefsson  <jas@extundo.com>
55926
55927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55928         ssize_t.
55929
55930 2005-08-12  Simon Josefsson  <jas@extundo.com>
55931
55932         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
55933         readline, getdelim and check_version.
55934         (Support for systems lacking ISO C 99: Sizes of integer types):
55935         Add size_max.
55936
55937 2005-08-12  Bruno Haible  <bruno@clisp.org>
55938
55939         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
55940
55941 2005-08-11  Simon Josefsson  <jas@extundo.com>
55942
55943         * modules/readline: New file.
55944
55945         * modules/strnlen (Files): Add strnlen.h.
55946
55947 2005-08-11  Simon Josefsson  <jas@extundo.com>
55948
55949         * m4/readline.m4: New file.
55950
55951 2005-08-11  Simon Josefsson  <jas@extundo.com>
55952
55953         * lib/readline.h, readline.c: New file.
55954
55955 2005-08-11  Simon Josefsson  <jas@extundo.com>
55956
55957         * doc/gnulib.texi (Initial import, Finishing touches): Mention
55958         gl_AVOID.
55959
55960 2005-08-11  Bruno Haible  <bruno@clisp.org>
55961
55962         * lib/strnlen.h (strnlen): Change parameter name to match comment.
55963
55964 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
55965
55966         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
55967
55968 2005-08-10  Simon Josefsson  <jas@extundo.com>
55969
55970         * tests/test-iconvme.c: New file.
55971
55972 2005-08-10  Simon Josefsson  <jas@extundo.com>
55973
55974         * m4/strnlen.m4: New file.
55975
55976         * m4/strndup.m4: Don't check for strnlen declaration, done in
55977         strnlen.m4.
55978
55979 2005-08-10  Simon Josefsson  <jas@extundo.com>
55980
55981         * lib/strndup.c: Use strnlen.h.
55982
55983         * lib/strnlen.h: New file.
55984
55985 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55986
55987         * README: Typos.
55988
55989 2005-08-02  Simon Josefsson  <jas@extundo.com>
55990
55991         * modules/readline: New file.
55992
55993 2005-08-02  Simon Josefsson  <jas@extundo.com>
55994
55995         * modules/getdelim: New file.
55996
55997         * modules/getline: Rewrite, don't use getndelim2.
55998
55999 2005-08-02  Simon Josefsson  <jas@extundo.com>
56000
56001         * m4/getline.m4: Separate out getdelim stuff into separate module.
56002
56003         * m4/getdelim.m4: New file.
56004
56005 2005-08-02  Simon Josefsson  <jas@extundo.com>
56006
56007         * lib/getline.h, getline.c: Rewrite.
56008
56009         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56010
56011 2005-07-31  Bruno Haible  <bruno@clisp.org>
56012
56013         * lib/lock.h (gl_lock_initializer): New macro.
56014         (gl_lock_define_initialized): Use it.
56015         (gl_rwlock_initializer): New macro.
56016         (gl_rwlock_define_initialized): Use it.
56017         (gl_recursive_lock_initializer): New macro.
56018         (gl_recursive_lock_define_initialized): Use it.
56019
56020 2005-07-30  Karl Berry  <karl@gnu.org>
56021
56022         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56023         Report from Ben Pfaff, regarding getopt.
56024
56025 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56028         normal way.
56029         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56030         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56031         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56032         (gl_GETOPT): Use the new macros.  Most of the implementation
56033         is moved to the new macros.  This is for programs like Emacs
56034         that don't want all the functionality of gl_GETOPT.
56035
56036 2005-07-26  Bruno Haible  <bruno@clisp.org>
56037
56038         * m4/lock.m4: Update from GNU gettext.
56039
56040 2005-07-26  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/lock.h: Update from GNU gettext.
56043         * lib/lock.c: Update from GNU gettext.
56044
56045 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56046
56047         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56048         obsolescent AC_TRY_RUN.  Include the default includes files, for
56049         'exit'.
56050
56051 2005-07-24  Bruno Haible  <bruno@clisp.org>
56052
56053         * modules/visibility: New file.
56054         * MODULES.html.sh (Misc): Add visibility.
56055
56056 2005-07-24  Bruno Haible  <bruno@clisp.org>
56057
56058         * m4/visibility.m4: New file.
56059
56060 2005-07-24  Bruno Haible  <bruno@clisp.org>
56061
56062         * doc/visibility.texi: New file.
56063
56064 2005-07-22  Bruno Haible  <bruno@clisp.org>
56065
56066         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56067         $(ALLOCA_H), redundant through BUILT_SOURCES.
56068         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56069         redundant through BUILT_SOURCES.
56070         * modules/byteswap (Makefile.am): Remove explicit dependency on
56071         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56072         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56073         $(FNMATCH_H), redundant through BUILT_SOURCES.
56074         * modules/getopt (Makefile.am): Remove explicit dependency on
56075         $(GETOPT_H), redundant through BUILT_SOURCES.
56076         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56077         redundant through BUILT_SOURCES.
56078         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56079         redundant through BUILT_SOURCES.
56080         * modules/stdbool (Makefile.am): Remove explicit dependency on
56081         $(STDBOOL_H), redundant through BUILT_SOURCES.
56082         * modules/stdint (Makefile.am): Remove explicit dependency on
56083         $(STDINT_H), redundant through BUILT_SOURCES.
56084         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56085         Remove explicit dependency on $(SYSEXITS_H).
56086         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56087
56088 2005-07-18  Simon Josefsson  <jas@extundo.com>
56089
56090         * lib/check-version.c (check_version): Accept identical versions too.
56091
56092 2005-07-18  Bruno Haible  <bruno@clisp.org>
56093
56094         * modules/lock: New file.
56095         * MODULES.html.sh (Multithreading): New section.
56096
56097 2005-07-18  Bruno Haible  <bruno@clisp.org>
56098
56099         * m4/lock.m4: New file, from GNU gettext.
56100
56101 2005-07-18  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/lock.h: New file, from GNU gettext.
56104         * lib/lock.c: New file, from GNU gettext.
56105
56106 2005-07-18  Bruno Haible  <bruno@clisp.org>
56107
56108         * lib/lock.h (gl_once_t): New type.
56109         (gl_once_define, gl_once): New macros.
56110         * lib/lock.c (fresh_once): New variable.
56111         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56112         functions.
56113
56114 2005-07-16  Simon Josefsson  <jas@extundo.com>
56115
56116         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56117         workaround, suggested by Bruno.
56118
56119 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56120
56121         * modules/xalloc (Depends-on): Add xalloc-die.
56122         * modules/xvasprintf (Depends-on): Add xalloc-die.
56123
56124 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56127         with a minor change.
56128
56129 2005-07-15  Bruno Haible  <bruno@clisp.org>
56130
56131         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56132         When using lib/poll.c, define poll as rpl_poll.
56133
56134 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56135
56136         * modules/argp (Depends-on): Remove unlocked-io.
56137
56138 2005-07-14  Derek Price  <derek@ximbiot.com>
56139
56140         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56141         for glob symlink bug.
56142
56143 2005-07-14  Bruno Haible  <bruno@clisp.org>
56144
56145         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56146         Instead, test for *_unlocked function declarations directly.
56147
56148 2005-07-11  Simon Josefsson  <jas@extundo.com>
56149
56150         * modules/size_max: New file.
56151
56152         * modules/xsize: Depend on size_max module for size_max.m4.
56153
56154 2005-07-11  Simon Josefsson  <jas@extundo.com>
56155
56156         * lib/size_max.h: New file.
56157
56158 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56159
56160         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56161         copyright symbol and the year.
56162         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56163         (version_etc_va): Use parameterized copyright notice.
56164         Reword to conform to the current GNU coding standards.
56165
56166 2005-07-11  Karl Berry  <karl@gnu.org>
56167
56168         * doc/gnulib.texi (Quoting): new node.
56169         (Initial import): more info, from Patrice.
56170
56171 2005-07-11  Bruno Haible  <bruno@clisp.org>
56172
56173         * gnulib-tool (func_usage): Document option --avoid.
56174         (Command line options): Handle --avoid.
56175         (func_acceptable): New function.
56176         (func_modules_transitive_closure): Use it.
56177
56178 2005-07-11  Bruno Haible  <bruno@clisp.org>
56179
56180         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56181         Reported by Jim Meyering.
56182
56183 2005-07-10  Bruno Haible  <bruno@clisp.org>
56184
56185         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56186         Needed when size_t is smaller than 'unsigned int'.
56187         Reported by Paul Eggert.
56188
56189 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56190
56191         * modules/argp (Depends-on): Add unlocked-io
56192
56193 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56194
56195         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56196         block of defines.
56197
56198 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56199
56200         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56201         fix now.
56202
56203 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56204         and Paul Eggert  <eggert@cs.ucla.edu>
56205
56206         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56207         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56208
56209 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56210
56211         * modules/regex (Files): Add lib/regex_internal.c,
56212         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56213         (Depends-on): Add extensions.
56214         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56215
56216 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56217
56218         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56219         pathconf.
56220         * m4/same.m4 (gl_SAME): Likewise.
56221         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56222
56223         * m4/regex.m4: Adjust to new libc regex implementation.
56224         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56225         all the .c and .h parts of (the new) regex.
56226         Quote the m4 stuff better.
56227         Check for RE_ICASE bug of old gnulib.
56228         Check for REG_STARTEND of recent libc.
56229         Rename local variables from jm_* to gl_*.
56230         Quote operand of "test -f".
56231         Say "recent enough" version of libc, not "version 2".
56232         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56233         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56234         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56235         Remove check for btowc, isascii.
56236         Require AM_LANGINFO_CODESET.
56237
56238 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56239
56240         * lib/regex.c, regex.h: Sync from libc.
56241         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56242         * lib/regexec.c:
56243         New files, synced from libc, except that regex_internal.h
56244         currently has a small porting fix.
56245
56246 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56247
56248         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56249         regex_internal.c, regexec.c.
56250         Add regex_internal.h too, but as a comment, since the libc version
56251         is currently broken in gnulib mode.
56252
56253 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56254
56255         Support programs like Emacs that use gnulib but not gettext.
56256         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56257         * modules/gettext-h: New file.
56258         * modules/gettext (Files): Remove lib/gettext.h.
56259         (Depends-on): Add gettext-h.
56260         (Makefile.am): Remove lib_SOURCES.
56261         * modules/argmatch, modules/c-stack, modules/closeout:
56262         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56263         * modules/execute, modules/file-type, modules/getaddrinfo:
56264         * modules/getopt, modules/human, modules/javacomp:
56265         * modules/javaexec, modules/mkdir-p, modules/obstack:
56266         * modules/openat, modules/pagealign_alloc, modules/pipe:
56267         * modules/quotearg, modules/regex, modules/rpmatch:
56268         * modules/unicodeio, modules/userspec, modules/version-etc:
56269         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56270         * modules/xsetenv:
56271         Depend on gettext-h, not gettext.
56272
56273 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56274
56275         * gnulib-tool (func_import): Add support for 'public domain' license.
56276         * modules/alloca, modules/atexit, modules/memmove:
56277         Now public domain, not GPL.
56278         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56279         * modules/realloc, modules/strerror, modules/strtod:
56280         Now LGPL, not GPL.
56281
56282 2005-07-05  Bruno Haible  <bruno@clisp.org>
56283
56284         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56285         autoconf CVS. Needed for mingw.
56286
56287 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56288
56289         Remove the dependency of the strftime module on the tzset module.
56290         * modules/strftime (Depends-on): Remove dependency on tzset.
56291
56292 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56293
56294         Remove the dependency of the strftime module on the tzset module.
56295         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56296         gl_FUNC_TZSET_CLOBBER.
56297
56298 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56299
56300         Remove the dependency of the strftime module on the tzset module.
56301         * lib/strftime.c (my_strftime)
56302         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56303         Copy the input structure, to work around some of the bug with
56304         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56305         Solaris releases, you should also use the tzset module, but we won't
56306         require it as a dependency any more since we don't want LGPLed code
56307         to depend on GPLed code.
56308
56309 2005-07-02  Jim Meyering  <jim@meyering.net>
56310
56311         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56312         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56313         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56314         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56315
56316 2005-07-02  Jim Meyering  <jim@meyering.net>
56317
56318         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56319
56320 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56321
56322         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56323         declares only 'struct timespec;' (!).
56324
56325 2005-07-01  Jim Meyering  <jim@meyering.net>
56326
56327         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56328         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56329         * lib/save-cwd.c, tempname.c:
56330         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56331         and don't include <sys/file.h>).
56332
56333 2005-06-29  Jim Meyering  <jim@meyering.net>
56334
56335         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56336         type name.  Use the variable name instead.
56337         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56338         Likewise.
56339
56340 2005-06-28  Simon Josefsson  <jas@extundo.com>
56341
56342         * modules/check-version (Files): Add check-version.m4.
56343
56344 2005-06-28  Simon Josefsson  <jas@extundo.com>
56345
56346         * m4/check-version.m4: New file, suggested by Jim Meyering
56347         <jim@meyering.net>.
56348
56349 2005-06-28  Simon Josefsson  <jas@extundo.com>
56350
56351         * lib/check-version.h, lib/check-version.c: New files.
56352
56353 2005-06-28  Simon Josefsson  <jas@extundo.com>
56354
56355         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56356         collision with global variable.  Better indentation.  Don't
56357         increment buffer pointer beyond buffer end.  Based on comments
56358         from Paul Eggert <eggert@cs.ucla.edu>.
56359
56360         * lib/base64.h: Indent.
56361
56362 2005-06-28  Simon Josefsson  <jas@extundo.com>
56363
56364         * doc/gnulib.texi (Library version handling): New section.
56365
56366 2005-06-28  Jim Meyering  <jim@meyering.net>
56367
56368         * check-module (find_included_lib_files): Hard-code another
56369         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56370         but modules/fts-lgpl (correctly) does not list those files.
56371
56372         * modules/canonicalize (Files): Add lib/pathmax.h.
56373
56374 2005-06-25  Simon Josefsson  <jas@extundo.com>
56375
56376         * modules/check-version: New file.
56377
56378 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56379
56380         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56381         initializer of struct addrinfo, as an indication that we don't
56382         care how many members the structure has.
56383
56384 2005-06-24  Derek Price  <derek@ximbiot.com>
56385         and Bruno Haible  <bruno@clisp.org>
56386
56387         Remove stat module & update lstat.
56388         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56389         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56390         * m4/stat.m4: Remove this file.
56391
56392 2005-06-24  Derek Price  <derek@ximbiot.com>
56393         and Bruno Haible  <bruno@clisp.org>
56394
56395         Remove stat module & update lstat.
56396         * lib/stat.c: Remove this file...
56397         (slash_aware_lstat): ...moving this content and its support...
56398         * lib/lstat.c (rpl_lstat): ...into here.
56399         * lib/lstat.h: New file.
56400
56401 2005-06-24  Derek Price  <derek@ximbiot.com>
56402         and Bruno Haible  <bruno@clisp.org>
56403
56404         Remove stat module & update lstat.
56405         * config/srclist.txt (libc sources): Remove stat.
56406
56407 2005-06-24  Derek Price  <derek@ximbiot.com>
56408         and Bruno Haible  <bruno@clisp.org>
56409
56410         Remove stat module & update lstat.
56411         * MODULES.html.sh (stat): Remove.
56412         * MODULES.html: Regenerated.
56413         * modules/lstat (Description): Correct function name.
56414         (Files): Add "lstat.h".
56415         (Depends-on): Remove stat, add xalloc, stat-macros.
56416         * modules/stat: Remove this file.
56417         (Include): Add "lstat.h", remove <sys/stat.h>.
56418
56419 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56420
56421         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56422         (ranged_convert): Don't save conversion in a temporary struct.
56423         This causes a warning with GCC 4.0.0, and anyway in the typical
56424         case it's not worth the extra 100 bytes or so of code.
56425         (ranged_convert, __mktime_internal): When calling a function via a
56426         pointer P, use P () rather than (*P) (), as we now assume C89 or
56427         better.
56428
56429 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56430
56431         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56432         "who -r" failed to give output.  Problem reported by Tim Waugh.
56433
56434         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56435         (xcalloc): Use it to avoid needless tests.
56436         Problem reported by Jim Meyering.
56437
56438 2005-06-20  Derek Price  <derek@ximbiot.com>
56439
56440         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56441         unnecessary for Autoconfs > 2.59c.
56442
56443 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56444
56445         * lib/argp.h (__option_is_short): Check upper limit of
56446         __key. Isprint() requires its argument to have the value
56447         of an unsigned char or EOF.
56448
56449 2005-06-16  Jim Meyering  <jim@meyering.net>
56450
56451         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56452         when either N or S is zero.
56453
56454 2005-06-16  Derek Price  <derek@ximbiot.com>
56455
56456         * m4/bison.m4: Declare YACC & YFLAGS precious.
56457
56458 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56461         multibyte string or pattern, fall back on unibyte matching.
56462         Problem reported by James Youngman.
56463
56464 2005-06-08  Bruno Haible  <bruno@clisp.org>
56465
56466         * modules/csharpcomp: New file.
56467         * MODULES.html.sh (C#): Add csharpcomp.
56468
56469 2005-06-08  Bruno Haible  <bruno@clisp.org>
56470
56471         * m4/csharpcomp.m4: New file, from GNU gettext.
56472
56473 2005-06-08  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/csharpcomp.h: New file, from GNU gettext.
56476         * lib/csharpcomp.c: New file, from GNU gettext.
56477         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56478
56479 2005-06-08  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56482         warning on mingw.
56483
56484 2005-06-07  Derek Price  <derek@ximbiot.com>
56485
56486         Sync from CVS.
56487         * lib/glob_.h: Indent nested #ifdef.
56488
56489 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56490
56491         Sync from coreutils.
56492         Use "file name" when talking about file names, instead of "filename"
56493         or "path", as per the GNU coding standards.
56494         * lib/mkdir-p.c: Renamed from makepath.c.
56495         (make_dir_parents): Renamed from make_path.  All callers changed.
56496         * lib/mkdir-p.h: Likewise.  All includers changed.
56497         * lib/filenamecat.c: Renamed from path-concat.c.
56498         (file_name_concat): Renamed from path_concat.  All callers changed.
56499         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56500         * lib/filenamecat.h: Likewise.  All includers changed.
56501         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56502         in comments or local variable names.
56503         * lib/basename.c: Likewise.
56504         * lib/canonicalize.c, canonicalize.h: Likewise.
56505         * lib/dirname.c, dirname.h: Likewise.
56506         * lib/euidaccess.c: Likewise.
56507         * lib/exclude.c: Likewise
56508         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56509         * lib/fsusage.c, fsuage.h: Likewise.
56510         * lib/fts.c, fts_.h: Likewise.
56511         * lib/getcwd.c: Likewise.
56512         * lib/getloadavg.c: Likewise.
56513         * lib/mkstemp.c: Likewise.
56514         * lib/mountlist.c, mountlist.h: Likewise.
56515         * lib/openat.c, openat.h: Likewise.
56516         * lib/readlink-stub.c: Likewise.
56517         * lib/readutmp.c, readutmp.h: Likewise.
56518         * lib/rename.c: Likewise.
56519         * lib/rmdir.c: Likewise.
56520         * lib/same.c: Likewise.
56521         * lib/savedir.c: Likewise.
56522         * lib/stripslash.c: Likewise.
56523         * lib/tempname.c: Likewise.
56524         * lib/xreadlink.c: Likewise.
56525         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56526         All uses changed.
56527         * lib/exclude.h: Likewise.
56528
56529         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56530         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56531         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56532         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56533         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56534         files have been getting away with it for years (MORE/BSD 4.3
56535         is extinct now).
56536         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56537         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56538
56539         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56540         Define to 256, not 255, as per modern POSIX.
56541
56542 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56543
56544         Sync from coreutils.
56545         Use "file name" when talking about file names, instead of "filename"
56546         or "path", as per the GNU coding standards.
56547         * MODULES.html.sh: mkdir-p renamed from makepath.
56548         filenamecat renamed from path-concat.
56549         * modules/filenamecat: Renamed from modules/path-concat.
56550         (Files): filenamecat.h and filenamecat.c renamed from
56551         path-concat.h and path-concat.c.
56552         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
56553         (Include): filenamecat.h, not path-concat.h.
56554         * modules/mkdir-p: Renamed from modules/makepath.
56555         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
56556         makepath.c.
56557         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
56558         (Include): mkdir-p.h, not makepath.h.
56559
56560 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56561
56562         Sync from coreutils.
56563         * m4/mkdir-p.m4: Renamed from makepath.m4.
56564         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
56565         Rename files from makepath.c to mkdir-p.c, and from
56566         makepath.h to mkdir-p.h.
56567         * m4/filenamecat.m4: Renamed from path-concat.m4.
56568         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
56569         Rename files from path-concat.c to filenamecat.c,
56570         and from path-concat.h to filenamecat.h.
56571         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
56572         "file name" in local variables or comments.
56573         * m4/rename.m4: Likewise.
56574
56575 2005-06-01  Bruno Haible  <bruno@clisp.org>
56576
56577         * modules/csharpexec: New file.
56578         * MODULES.html.sh (C#): New section.
56579
56580 2005-06-01  Bruno Haible  <bruno@clisp.org>
56581
56582         * m4/csharp.m4: New file, from GNU gettext.
56583         * m4/csharpexec.m4: New file, from GNU gettext.
56584
56585 2005-06-01  Bruno Haible  <bruno@clisp.org>
56586
56587         * lib/csharpexec.h: New file, from GNU gettext.
56588         * lib/csharpexec.c: New file, from GNU gettext.
56589         * lib/csharpexec.sh.in: New file, from GNU gettext.
56590
56591 2005-05-31  Derek Price  <derek@ximbiot.com>
56592             Paul Eggert  <eggert@cs.ucla.edu>
56593
56594         Sync from cvs.
56595         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56596
56597 2005-05-31  Derek Price  <derek@ximbiot.com>
56598             Paul Eggert  <eggert@cs.ucla.edu>
56599
56600         Sync from cvs.
56601         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56602
56603 2005-05-29  Derek Price  <derek@ximbiot.com>
56604
56605         * config/srclist.txt (glob_.h, glob.c): Add these files.
56606
56607 2005-05-29  Derek Price  <derek@ximbiot.com>
56608
56609         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
56610         * modules/glob: New file.
56611         * modules/getlogin_r: Add link to POSIX spec in description.
56612
56613 2005-05-29  Derek Price  <derek@ximbiot.com>
56614             Paul Eggert  <eggert@cs.ucla.edu>
56615
56616         * m4/glob.m4: New file.
56617
56618 2005-05-29  Derek Price  <derek@ximbiot.com>
56619             Paul Eggert  <eggert@cs.ucla.edu>
56620
56621         * lib/glob_.h, lib/glob.c: New files.
56622
56623 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56624
56625         * modules/fts (Files): Remove m4/inttypes-pri.m4.
56626         * modules/fts-lgpl (Depends-on): Remove gettext.
56627
56628 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56629
56630         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
56631         and don't require gt_INTTYPES_PRI.
56632
56633 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56634
56635         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
56636
56637         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
56638         the configuration hassle isn't worth it.
56639         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
56640         (LONGEST_MODIFIER, PRIuMAX): Remove.
56641
56642 2005-05-27  Bruno Haible  <bruno@clisp.org>
56643
56644         * lib/getlogin_r.h: Remove second include of <stddef.h>.
56645
56646 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
56647
56648         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
56649         _POSIX_PTHREAD_SEMANTICS for Solaris.
56650
56651 2005-05-25  Derek Price  <derek@ximbiot.com>
56652
56653         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
56654
56655 2005-05-25  Derek Price  <derek@ximbiot.com>
56656             Paul Eggert  <eggert@cs.ucla.edu>
56657
56658         * modules/getlogin_r, m4/getlogin_r.m4: New files.
56659         * lib/getlogin_r.c, getlogin_r.h: New files.
56660
56661 2005-05-25  Bruno Haible  <bruno@clisp.org>
56662             Derek Price  <derek@ximbiot.com>
56663
56664         * lib/getlogin_r.h: Simplify API documentation.
56665
56666 2005-05-23  Derek Price  <derek@ximbiot.com>
56667
56668         * modules/minmax (Files): Add m4/minmax.m4.
56669         (configure.ac): Add gl_MINMAX.
56670
56671 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56672
56673         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
56674         so that unistd-safer.h (GPL'ed code) need not be included.
56675
56676 2005-05-22  Bruno Haible  <bruno@clisp.org>
56677
56678         * m4/minmax.m4: New file.
56679         Based on a patch by Derek Price <derek@ximbiot.com>.
56680
56681 2005-05-22  Bruno Haible  <bruno@clisp.org>
56682
56683         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
56684         (INT64_MIN): Fix definition.
56685         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
56686
56687         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
56688         NEED_SIGNED_INT_TYPES.
56689
56690         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
56691         HAVE_SYSTEM_INTTYPES.
56692
56693 2005-05-22  Bruno Haible  <bruno@clisp.org>
56694
56695         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
56696         Also include <sys/param.h> if it defines MIN, MAX.
56697         Based on a patch by Derek Price <derek@ximbiot.com>.
56698
56699 2005-05-21  Jim Meyering  <jim@meyering.net>
56700
56701         * modules/fts (Files): Add m4/inttypes-pri.m4.
56702         (Depends-on): Add lstat and remove gettext.  Alphabetize.
56703
56704 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56705
56706         New fts module.
56707         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
56708         (setup_dir, free_dir): New functions.
56709         (enter_dir, leave_dir): Define trivial
56710         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
56711         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
56712         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
56713         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
56714         Move to fts-cycle.c.
56715         (fts_open): Use setup_dir.
56716         (fts_close): Use free_dir.
56717         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
56718         This adds a label and some gotos, but the alternatives were messier.
56719         Check for memory allocation failure when entering a dir.
56720         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
56721         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
56722         (FTS): New member fts_cycle, that is a union that contains the
56723         old active_dir_ht and cycle_state.  All uses changed to mention
56724         fts_cycle.ht and fts_cycle.state.
56725         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
56726         fts.c, with the following changes:
56727         (setup_dir, free_dir): New functions.
56728         (enter_dir): Now returns bool.  Return true if successful, false
56729         if memory exhausted.  All callers changed.
56730         Do not bother partly cleaning up on
56731         memory allocation failure; that is free_dir's job.
56732         However, free ad if hash_insert fails, to avoid memory leak.
56733         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
56734         fts->fts_options to see which union member to use.
56735
56736 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56737
56738         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
56739         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
56740
56741 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56742
56743         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
56744
56745 2005-05-20  Jim Meyering  <jim@meyering.net>
56746
56747         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
56748         Now a macro, to pacify GCC.
56749
56750 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
56751
56752         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
56753         of -1.
56754
56755 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
56756
56757         * lib/chown.c (rpl_chown): Return -1 on failure.
56758
56759 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
56760
56761         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
56762         Don't check for stddef.h.
56763         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
56764         don't use its results.
56765         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
56766         since we include them unconditionally.  Don't require
56767         AM_STDBOOL_H, since stdbool is a prerequisite.
56768         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
56769         since we assume C89 or better.
56770         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
56771         as we don't use their results.
56772         Don't check for fchdir, memmove, memset, strrchr, as we use
56773         them unconditionally.
56774         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
56775         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
56776
56777 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
56778
56779         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
56780         Include <stddef.h> unconditionally, since we assume C89 now.
56781         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
56782         * lib/fts.c: Include fts_.h first, to check interface.
56783         Do not include intprops.h; no longer needed.
56784         Include cycle-check.h and hash.h, since fts_.h no longer does.
56785         Remove unnecessary casts of closedir to void.
56786         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
56787         decide whether to decrement nlinks.
56788         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
56789         (FTS): Use struct hash_table * instead of Hash_table, so that
56790         we no longer need to include hash.h here.
56791
56792 2005-05-18  Jim Meyering  <jim@meyering.net>
56793
56794         * modules/dirfd (License): Change to LGPL.  Most of the code
56795         is already in the public domain.
56796
56797 2005-05-18  Jim Meyering  <jim@meyering.net>
56798
56799         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
56800         Reported by Yoann Vandoorselaere.
56801
56802 2005-05-17  Jim Meyering  <jim@meyering.net>
56803
56804         * m4/fts.m4: New file, from coreutils.
56805
56806 2005-05-17  Jim Meyering  <jim@meyering.net>
56807
56808         * lib/fts.c, lib/fts_.h: New files, from coreutils.
56809
56810 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56811
56812         Sync from coreutils.
56813         * m4/unlinkdir.m4: New file.
56814
56815 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56816
56817         Sync from coreutils.
56818         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
56819         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
56820         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
56821         White space changes only.
56822         * lib/makepath.c (make_path): Port to hosts where leading "//" is
56823         special.
56824         * lib/yesno.c: Include getline.h, not ctype.h.
56825         (yesno): Don't remove leading white space; POSIX doesn't allow it.
56826         Use getline to remove arbitrary restriction on response length.
56827
56828 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56829
56830         * config/srclist-update: Spell out "Street" in FSF postal
56831         mail address; this is the style the FSF seems to prefer.
56832
56833         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
56834         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
56835         this updates FSF postal mail address.
56836
56837         Sync from coreutils.
56838         * modules/unlinkdir: New file.
56839         * modules/yesno (Depends-on): Add getline.
56840         * MODULES.html.sh (File system functions): Add unlinkdir.
56841
56842 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56843
56844         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
56845         lib/strsep.h:
56846         Change the initial comment to refer to GPL, not LGPL.
56847         gnulib-tool will change it to LGPL as needed.
56848
56849         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
56850         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
56851         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
56852         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
56853         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
56854         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
56855         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
56856         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
56857         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
56858         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
56859         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
56860         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
56861         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
56862         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
56863         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
56864         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
56865         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
56866         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
56867         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
56868         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
56869         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
56870         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
56871         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
56872         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
56873         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
56874         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
56875         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
56876         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
56877         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
56878         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
56879         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
56880         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
56881         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
56882         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
56883         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
56884         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
56885         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
56886         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
56887         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
56888         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
56889         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
56890         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
56891         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
56892         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
56893         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
56894         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
56895         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
56896         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
56897         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
56898         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
56899         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
56900         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
56901         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
56902         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
56903         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
56904         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
56905         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
56906         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
56907         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
56908         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
56909         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
56910         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
56911         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
56912         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
56913         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
56914         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
56915         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
56916         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
56917         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
56918         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
56919         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
56920         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
56921         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
56922         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
56923         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
56924         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
56925         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
56926         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
56927         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
56928         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
56929         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
56930         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
56931         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
56932         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
56933         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
56934         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
56935         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
56936         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
56937         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
56938         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
56939         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
56940         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
56941         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
56942         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
56943         lib/yesno.c, lib/yesno.h:
56944         Update FSF postal mail address.
56945
56946 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56947
56948         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
56949         tests/test-memmem.c, tests/test-stpncpy.c:
56950         Update FSF postal mail address.
56951
56952 2005-05-13  Bruno Haible  <bruno@clisp.org>
56953
56954         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
56955         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
56956         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
56957         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
56958         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
56959         Add support for 64-bit integers in the MSVC compiler.
56960
56961 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56962
56963         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
56964
56965 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
56966
56967         * gnulib-tool (func_import): Sort and uniquify recommended includes.
56968
56969 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
56970
56971         * doc/getdate.texi (General date syntax): Don't say that date
56972         date --iso-8601=ns generates acceptable dates; it doesn't yet.
56973         Problem reported by Nic Ferrier.
56974
56975 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56976
56977         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
56978         specified in ai_socktype. Fix invalid ai_protocol
56979         check. ai_protocol is usually set to 0 or depending on
56980         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
56981         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
56982         ai_socktype / ai_protocol in the returned addrinfo structure.
56983
56984 2005-05-10  Simon Josefsson  <jas@extundo.com>
56985
56986         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
56987         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56988
56989 2005-05-10  Karl Berry  <karl@gnu.org>
56990
56991         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
56992         (from http://www.gnu.org/licenses).
56993         * doc/COPYING.LIB: also rename to COPYING.LESSER.
56994         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
56995         fdl.texi suffices.
56996
56997 2005-05-10  Karl Berry  <karl@gnu.org>
56998
56999         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57000         (COPYING.DOC): remove.
57001
57002         * config/srclist-update: new FSF address.
57003
57004 2005-05-10  Derek Price  <derek@ximbiot.com>
57005
57006         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57007         possible.
57008
57009 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57010             Bruno Haible  <bruno@clisp.org>
57011
57012         * modules/inet_ntop: New file.
57013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57014         inet_ntop.
57015
57016 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57017             Bruno Haible  <bruno@clisp.org>
57018
57019         * m4/inet_ntop.m4: New file.
57020
57021 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57022             Bruno Haible  <bruno@clisp.org>
57023
57024         * lib/inet_ntop.h: New file.
57025         * lib/inet_ntop.c: New file, from glibc with modifications.
57026
57027 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57028
57029         * modules/time_r (License): Change to LGPL.
57030         * modules/extensions (License): Change to LGPL.  Actually,
57031         the license is more permissive than that, but currently gnulib-tool
57032         doesn't know how to handle more-permissive licenses.
57033
57034         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57035         Problem reported by Dave Love.
57036
57037 2005-05-08  Jim Meyering  <jim@meyering.net>
57038
57039         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57040         blank.
57041
57042 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57043
57044         * modules/argmatch (Depends-on): Add stdbool.
57045         * modules/backupfile (Depends-on): Likewise.
57046         * modules/chdir-long (Depends-on): Likewise.
57047         * modules/closeout (Depends-on): Likewise.
57048         * modules/cycle-check (Depends-on): Likewise.
57049         * modules/dirname (Depends-on): Likewise.
57050         * modules/fnmatch (Depends-on): Likewise.
57051         * modules/fsusage (Depends-on): Likewise.
57052         * modules/fwriteerror (Depends-on): Likewise.
57053         * modules/getcwd (Depends-on): Likewise.
57054         * modules/getloadavg (Depends-on): Likewise.
57055         * modules/hard-locale (Depends-on): Likewise.
57056         * modules/makepath (Depends-on): Likewise.
57057         * modules/mountlist (Depends-on): Likewise.
57058         * modules/nanosleep (Depends-on): Likewise.
57059         * modules/posixtm (Depends-on): Likewise.
57060         * modules/quotearg (Depends-on): Likewise.
57061         * modules/readtokens (Depends-on): Likewise.
57062         * modules/readtokens0 (Depends-on): Likewise.
57063         * modules/readutmp (Depends-on): Likewise.
57064         * modules/save-cwd (Depends-on): Likewise.
57065         * modules/strftime (Depends-on): Likewise.
57066         * modules/userspec (Depends-on): Likewise.
57067         * modules/utimecmp (Depends-on): Likewise.
57068         * modules/xgetcwd (Depends-on): Likewise.
57069         * modules/xnanosleep (Depends-on): Likewise.
57070         * modules/xstrtod (Depends-on): Likewise.
57071         * modules/yesno (Depends-on): Likewise.
57072
57073 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57074
57075         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57076         needless checks.
57077
57078 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57079
57080         Merge from coreutils.  Among other things,
57081         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57082         * lib/fd-safer.c: New file.
57083         * lib/fcntl-safer.h, open-safer.c: Remove.
57084         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57085         * lib/dup-safer.c: Include unistd-safer.h first.
57086         Don't include errno.h.
57087         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57088         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57089         * lib/file-type.c: Rely on file-type.h change.
57090         * lib/getloadavg.c: Include unistd-safer.h.
57091         (getloadavg): Use safer open.
57092         * lib/getusershell.c: Include "stdio-safer.h".
57093         (getusershell): Use safer fopen.
57094         * lib/long-options.c (long_options): Use NULL rather than 0.
57095         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57096         'free'.
57097         * lib/modechange.c: Likewise.
57098         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57099         (MODE_DONE): New constant.
57100         (struct mode_change): Remove 'next' member.
57101         (make_node_op_equals): New function; like the old one of the
57102         same name, except it allocates an array.
57103         (mode_compile, mode_create_from_ref): Use it.
57104         (mode_compile): Allocate result as an array, not a linked list.
57105         Parse octal string ourself, so that we catch mistakes like "+0".
57106         (mode_adjust): Arg is an array, not a linked list.
57107         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57108         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57109         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57110         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57111         Remove.  This is now stat-macros.h's job.
57112         (talloc): Remove.  All callers replaced by xalloc, so that
57113         our invokers don't have to worry about reporting memory failures.
57114         (make_node_op_equals): Remove.
57115         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57116         New constants.
57117         (struct mode_change): Moved here from modechange.h.
57118         (mode_append_entry): Remove.
57119         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57120         apps to have incorrect behavior.  Use simpler algorithm for head
57121         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57122         Detect more invalid usages rather than having somewhat-random behavior.
57123         Don't insert an "a=" action, as that leads to incorrect behavior.
57124         (mode_compile, mode_create_from_ref): Return NULL on error instead
57125         of an enum, since now there's only one way to have an error.  All
57126         callers changed.
57127         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57128         at the correct time.  Simplify calculation of "+u" and its ilk.
57129         Don't mishandle "+X".
57130         (mode_free): Remove "register" and localize decls.
57131         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57132         (struct mode_change): Move to modechange.c; callers don't
57133         need to see this stuff.
57134         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57135         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57136         (mode_change, mode_adjust): Reflect the new signatures noted above.
57137         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57138         that might redefine system include files.
57139         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57140         (my_usleep): Use NULL rather than (void *) 0.
57141         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57142         Use siginterrupt to specify that system calls should be interrupted.
57143         (rpl_nanosleep): Move initialization of suspended closer to call of
57144         my_usleep.
57145         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57146         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57147         (desirable_utmp_entry): New function.
57148         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57149         using x2nrealloc, to simplify logic.
57150         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57151         size calculation.  Do not assume utmp file is a regular file.
57152         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57153         (READ_UTMP_CHECK_PIDS): New constant.
57154         * lib/save-cwd.c: Include unistd-safer.h.
57155         (save_cwd): Use fd_safer.
57156         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57157         [!_LIBC] Include "stat-macros.h" instead.
57158         * lib/unistd-safer.h (fd_safer): New decl.
57159
57160 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57161
57162         * modules/getloadavg (Depends-on): Add unistd-safer.
57163         * modules/getusershell (Depends-on): Add stdio-safer.
57164         * modules/lstat (Depends-on): Remove xalloc.
57165         * modules/mkstemp (Depends-on): Add stat-macros.
57166         * modules/modechange (Depends-on): Remove xstrtol.
57167         Add stat-macros, xalloc.
57168         * modules/save-cwd (Depends-on): Add unistd-safer.
57169         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57170         * modules/unistd-safer (Files): Add lib/fd-safer.c
57171         (Makefile.am): Remove lib_SOURCES.
57172
57173         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57174         Remove fcntl-safer; unistd-safer supersedes it.
57175
57176 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57177
57178         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57179         AC_HEADER_STAT.
57180         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57181         (gl_PREREQ_CHOWN): Remove.
57182         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57183         it.  Don't require AC_HEADER_STAT.
57184         (gl_PREREQ_LSTAT): Remove.
57185         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57186         Don't require AC_HEADER_STAT.
57187         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57188         (gl_PREREQ_RMDIR): Remove.
57189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57190         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57191         the stat-macros module a prerequisite.
57192         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57193         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57194         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57195         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57196         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57197         variable names.
57198         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57199         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57200         variable prefixes.
57201         * m4/fcntl-safer.m4: Remove.
57202         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57203         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57204         Invoke gl_PREREQ_FD_SAFER.
57205         (gl_PREREQ_FD_SAFER): New macro.
57206         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57207         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57208         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57209         Remove duplicate call to AC_LIBOBJ(readutmp).
57210         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57211
57212         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57213         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57214
57215 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57216
57217         * MODULES.html.sh (Misc): Add byteswap.
57218
57219 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57220
57221         * modules/getcwd (Depends-on): Add extensions.
57222         * modules/openat (Depends-on): Likewise.
57223
57224 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57225
57226         * modules/byteswap: New file.
57227
57228 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57229
57230         * m4/byteswap.m4: New file.
57231
57232 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57233
57234         * lib/byteswap_.h: New file.
57235
57236 2005-04-25  Karl Berry  <karl@gnu.org>
57237
57238         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57239
57240 2005-04-25  Albert Chin  <china@thewrittenword.com>
57241
57242         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57243         Toolkit C bug.
57244
57245 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57246
57247         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57248         (func_ln_if_changed) Remove forcibly for no error message
57249         in case file does not exist.
57250
57251 2005-04-19  Simon Josefsson  <jas@extundo.com>
57252
57253         * gnulib-tool (Options): Make --symlink mean --symbolic.
57254
57255 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57256
57257         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57258
57259 2005-04-16  Simon Josefsson  <jas@extundo.com>
57260
57261         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57262
57263 2005-04-15  Simon Josefsson  <jas@extundo.com>
57264
57265         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57266
57267 2005-04-15  Simon Josefsson  <jas@extundo.com>
57268
57269         * gnulib-tool: Rename --symlink to --symbolic.
57270
57271 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57272
57273         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57274         symbolic links to files instead of copying/moving.  Add --aux-dir,
57275         specifying directory relative --dir where auxiliary build tools
57276         are placed.
57277
57278 2005-04-14  Bruno Haible  <bruno@clisp.org>
57279
57280         * modules/allocsa (License): Change to LGPL.
57281         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57282
57283 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57284
57285         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57286         that "UTC +1 second" continues to work.  Problem reported
57287         by Dmitry V. Levin.
57288         (relunit_snumber): New rule.
57289         (relunit): Use it.
57290
57291 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         * lib/getdate.y (universal_time_zone_table): New constant.
57294         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57295         universal_time_zone_table.
57296         (lookup_zone): Prefer universal_time_zone_table to
57297         local_time_zone_table, so that "GMT" time stamps are allowed in
57298         London during the summer.  Problem reported by Ian Abbott.
57299
57300 2005-04-12  Jim Meyering  <jim@meyering.net>
57301
57302         * lib/human.c (humblock): Set *options even when returning due to
57303         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57304         warning from gcc-4.
57305
57306 2005-04-09  Jim Meyering  <jim@meyering.net>
57307
57308         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57309         -Wuninitialized: initialize tm0.tm_year.
57310
57311 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57312
57313         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57314         count, since there's no maximum.  All uses changed.
57315         Add member dsts_seen.
57316         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57317         not being INT_MAX.
57318         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57319         Use pc_rels_seen to decide whther a date is absolute.
57320
57321         * lib/getdate.y (number): Don't overwrite year.
57322         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57323         check.
57324
57325 2005-04-02  Simon Josefsson  <jas@extundo.com>
57326
57327         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57328         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57329
57330 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57331
57332         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57333         where no absolute path name can be longer than PATH_MAX.
57334
57335 2005-03-27  Jim Meyering  <jim@meyering.net>
57336
57337         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57338
57339 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57340
57341         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57342         "one's complement" -> "ones' complement" in comment, as per Knuth.
57343         "value of type" -> "type or expression" in comment.
57344         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57345
57346 2005-03-26  Jim Meyering  <jim@meyering.net>
57347
57348         Comment nits.
57349         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57350         Correct typos: s/or/of/.
57351
57352 2005-03-26  Jim Meyering  <jim@meyering.net>
57353
57354         * modules/check-include-files: Move to ../ and rename to...
57355         * check-module: ...this.
57356
57357 2005-03-25  Jim Meyering  <jim@meyering.net>
57358
57359         * modules/xvasprintf (Files): Add xalloc.h.
57360
57361 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         * modules/gettext (Files): config/config.rpath ->
57364         build-aux/config.rpath
57365         * modules/iconv (Files): Likewise.
57366         Problem reported by Oskar Liljeblad.
57367
57368 2005-03-23  Jim Meyering  <jim@meyering.net>
57369
57370         * modules/check-include-files: New script to check for
57371         missing dependencies, multiple includes, etc.
57372
57373         * modules/c-strtold (Depends-on): Add xalloc.
57374         * modules/c-strtod (Depends-on): Add xalloc.
57375         * modules/hash (Depends-on): Add xalloc.
57376         (Files): Remove lib/xalloc.h.
57377
57378         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57379         * modules/userspec (Files): Add lib/inttostr.h.
57380
57381 2005-03-23  Jim Meyering  <jim@meyering.net>
57382
57383         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57384
57385 2005-03-22  Jim Meyering  <jim@meyering.net>
57386
57387         * modules/stat-macros: New module.
57388         * modules/canonicalize, modules/euidaccess, modules/file-type,
57389         * modules/filemode, modules/lchown, modules/makepath,
57390         * modules/rmdir, modules/stat: Depend on new stat-macros module
57391         rather than listing lib/stat-macros.h manually.
57392         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57393
57394 2005-03-22  Jim Meyering  <jim@meyering.net>
57395
57396         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57397
57398 2005-03-22  Bruno Haible  <bruno@clisp.org>
57399
57400         * config/srclist.txt: Replace target directory 'config' with
57401         'build-aux'.
57402         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57403         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57404         ../build-aux/.
57405
57406 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57407
57408         * modules/chdir-long (Depends-on): Add mempcpy.
57409
57410         * modules/acl, modules/backupfile, modules/c-strtod,
57411         modules/c-strtold, modules/canon-host, modules/canonicalize,
57412         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57413         modules/exclude, modules/exitfail, modules/file-type,
57414         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57415         modules/getdate, modules/getline, modules/getpagesize,
57416         modules/getpass, modules/getugroups, modules/group-member,
57417         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57418         modules/inttostr, modules/long-options, modules/makepath,
57419         modules/md5, modules/memcasecmp, modules/memcoll,
57420         modules/modechange, modules/mountlist, modules/path-concat,
57421         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57422         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57423         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57424         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57425         modules/strftime, modules/strndup, modules/strverscmp,
57426         modules/timespec, modules/unlocked-io, modules/userspec,
57427         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57428         modules/yesno:
57429         Remove lib_SOURCES line from Makefile.am section, as this is now
57430         done automatically by the corresponding Autoconf macro.
57431
57432 2005-03-21  Jim Meyering  <jim@meyering.net>
57433
57434         Changes imported from coreutils.
57435
57436         * lib/cycle-check.c: Don't include xalloc.h.
57437
57438         * lib/path-concat.c: Don't include assert.h.
57439         (path_concat): Remove assertion that would have triggered
57440         for ABASE starting with more than one slash.
57441         Reported by Andreas Schwab.
57442
57443         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57444         properly when ABASE is an absolute file name.
57445         Correct the description of this function.
57446         Include <assert.h>.
57447         Add an assertion and a test driver.
57448         This fixes a bug introduced on 2004-07-02.
57449         Andreas Schwab reported the resulting failure of cp --parents:
57450         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57451
57452 2005-03-21  Jim Meyering  <jim@meyering.net>
57453
57454         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57455         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57456
57457 2005-03-21  Jim Meyering  <jim@meyering.net>
57458         and  Paul Eggert  <eggert@cs.ucla.edu>
57459
57460         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57461         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57462         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57463         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57464         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57465         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57466         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57467         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57468         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57469         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57470         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57471         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57472         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57473         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57474         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57475         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57476         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57477         for these modules.
57478
57479 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57480
57481         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57482         (which shouldn't happen), generate nothing instead of returning 0
57483         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57484
57485 2005-03-16  Bruno Haible  <bruno@clisp.org>
57486
57487         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57488         HAVE_LONGLONG_64BIT.
57489
57490 2005-03-16  Bruno Haible  <bruno@clisp.org>
57491
57492         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57493         HAVE_LONGLONG_64BIT.
57494
57495 2005-03-16  Bruno Haible  <bruno@clisp.org>
57496
57497         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57498         HAVE_LONGLONG_64BIT.
57499
57500 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57501
57502         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57503         reliably distinguish strftime failure from empty output on POSIX
57504         hosts.
57505
57506 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57507
57508         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57509         (iconv_string): Don't guess a size-zero buffer, as that might cause
57510         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57511         result would be 'too large', where 'too large' is (heuristically)
57512         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57513         overflow concerns.  This will prevent some unwanted malloc failures
57514         when the inputs are very large.
57515
57516 2005-03-15  Karl Berry  <karl@gnu.org>
57517
57518         * config/srclist.txt (config.rpath): from gettext.
57519         * config/config.rpath: update.
57520
57521 2005-03-15  Bruno Haible  <bruno@clisp.org>
57522
57523         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57524         to 'negate'.
57525
57526         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57527         variable.
57528
57529         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57530         results.
57531
57532 2005-03-14  Simon Josefsson  <jas@extundo.com>
57533
57534         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57535         <fx@gnu.org>.
57536
57537 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57538
57539         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57540         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57541         intprops.h.
57542         * lib/strtol.c: Likewise.
57543
57544 2005-03-14  Jim Meyering  <jim@meyering.net>
57545
57546         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57547         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
57548         to be nonzero so that we (and caller) can detect the difference
57549         between a valid zero-length expansion and an error return, even
57550         when the underlying strftime fails before writing anything into
57551         that location.
57552
57553 2005-03-14  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
57556         Update from GNU gettext 0.14.3.
57557
57558 2005-03-10  Jim Meyering  <jim@meyering.net>
57559
57560         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
57561
57562 2005-03-10  Jim Meyering  <jim@meyering.net>
57563
57564         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
57565         so that this module works on systems without fchdir.
57566
57567 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
57568
57569         Factor int-properties macros into a single file, except for
57570         glibc-related files.
57571         * lib/intprops.h: New file.
57572         * lib/getloadavg.c: Include it instead of limits.h.
57573         (INT_STRLEN_BOUND): Remove.
57574         * lib/human.c: Include intprops.h.
57575         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
57576         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
57577         302/1000.
57578         * lib/inttostr.h: Include intprops.h instead of limits.h.
57579         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
57580         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
57581         for consistency with intprops.h.
57582         (time_t_is_integer, twos_complement_arithmetic): Use them.
57583         * lib/sig2str.h: Include <signal.h>, intprops.h.
57584         (INT_STRLEN_BOUND): Remove.
57585         * lib/strftime.c (TYPE_SIGNED): Remove.
57586         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
57587         * lib/strtol.c: Adjust comments to match intprops.h.
57588         * lib/userspec.c: Include intprops.h.
57589         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
57590         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
57591         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
57592         instead of rolling our own expressions.
57593         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
57594
57595         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
57596         instead of int.
57597         (my_strftime): Do not mishandle years close to INT_MAX, by doing
57598         the right thing even if adding 1900 would overflow.  Similarly
57599         for tm_mon + 1 and tm_yday + 1.
57600         Make %Y always equivalent to %C%y, and similarly for %G and %g.
57601         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
57602         (DO_SIGNED_NUMBER): New macro.
57603         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
57604
57605 2005-03-07  Bruno Haible  <bruno@clisp.org>
57606
57607         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
57608
57609 2005-03-07  Bruno Haible  <bruno@clisp.org>
57610
57611         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
57612
57613 2005-03-04  Derek R. Price  <derek@ximbiot.com>
57614
57615         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
57616         (func_import): Only replace files via --import when they have actually
57617         changed.
57618
57619 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57620
57621         * m4/mmap-anon.m4: New file.
57622         * m4/pagealign_alloc.m4: New file.
57623
57624 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57625             Bruno Haible  <bruno@clisp.org>
57626
57627         * modules/pagealign_alloc: New file.
57628         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
57629
57630 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57631             Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/pagealign_alloc.h: New file.
57634         * lib/pagealign_alloc.c: New file.
57635
57636 2005-03-03  Bruno Haible  <bruno@clisp.org>
57637
57638         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
57639         Use an all-permissive copyright notice, recommended by RMS.
57640
57641 2005-03-02  Bruno Haible  <bruno@clisp.org>
57642
57643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
57644         of AIX, the replacement has to be done only after <string.h> is
57645         included, therefore not in config.h. stpncpy.h does the replacement,
57646         and stpncpy.c uses it.
57647
57648 2005-03-02  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
57651         stpncpy.c uses it.
57652
57653 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57654
57655         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
57656         The workaround isn't strictly needed for POSIX conformance, and
57657         it's too much of a pain to configure and maintain.  We'll ask
57658         people to fix their kernels instead.
57659         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
57660         (NANOSLEEP_BUG_WORKAROUND): Remove.
57661         (xnanosleep): Remove the workaround.
57662
57663 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57664
57665         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
57666         Reported by Derek Price.
57667         (Include): Add "timespec.h".
57668
57669         * modules/xnanosleep (Depends-on): Remove gethrxtime.
57670
57671 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57672
57673         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
57674         to detect nanosleep bug.
57675
57676 2005-03-01  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
57679
57680 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57681
57682         * modules/gethrxtime: New file.
57683         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
57684         (Depends-on): Add gethrxtime.
57685         (configure.ac): Add gl_XNANOSLEEP.
57686         (Makefile.am): Remove lib_SOURCES line.
57687
57688 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
57691         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
57692
57693 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
57696         * lib/timespec.h (gettime): Return void, since it always
57697         succeeds now.  All uses changed.
57698         * lib/gettime.c (gettime) Likewise.
57699         [HAVE_NANOTIME]: Prefer nanotime.
57700         Assume gettimeofday succeeds, as POSIX requires.
57701         Assime time () succeeds, since other code already does.
57702         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
57703         (timespec_subtract): Remove.
57704         (NANOSLEEP_BUG_WORKAROUND): New constant.
57705         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
57706         things considerably.  Use it only on GNU/Linux hosts, since the
57707         workaround shouldn't be needed elsewhere.
57708
57709 2005-02-24  Bruno Haible  <bruno@clisp.org>
57710
57711         * modules/gettext (Files): Add m4/glibc2.m4.
57712
57713 2005-02-24  Bruno Haible  <bruno@clisp.org>
57714
57715         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
57716         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
57717         * m4/progtest.m4:
57718         Update from GNU gettext 0.14.2.
57719         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
57720
57721 2005-02-24  Bruno Haible  <bruno@clisp.org>
57722
57723         * lib/localcharset.c: Update from GNU gettext 0.14.2.
57724         * lib/config.charset: Update from GNU gettext 0.14.2.
57725
57726 2005-02-24  Bruno Haible  <bruno@clisp.org>
57727
57728         * lib/gettext.h: Update from GNU gettext 0.14.2.
57729
57730 2005-02-23  Simon Josefsson  <jas@extundo.com>
57731
57732         * m4/iconvme.m4: New file.
57733
57734 2005-02-23  Jim Meyering  <jim@meyering.net>
57735
57736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
57737         change.
57738         Thanks to Bruno Haible for catching it.
57739
57740 2005-02-22  Simon Josefsson  <jas@extundo.com>
57741
57742         * modules/iconvme: New file.
57743
57744         * MODULES.html.sh: Add iconvme.
57745
57746 2005-02-22  Simon Josefsson  <jas@extundo.com>
57747
57748         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
57749
57750 2005-02-22  Simon Josefsson  <jas@extundo.com>
57751
57752         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
57753
57754 2005-02-22  Jim Meyering  <jim@meyering.net>
57755
57756         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
57757         s/ifndef/ifdef/.
57758
57759 2005-02-20  Neil Conway  <neilc@samurai.com>
57760
57761         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
57762         returned by OSX/Darwin if the specified buffer is not large
57763         enough for the hostname.
57764
57765 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57766
57767         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
57768         pass it to _help, otherwise the latter coredumps trying to
57769         dereference state.root_argp.
57770
57771 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57772
57773         * modules/chdir-long (Depends-on): Add memrchr.
57774         * modules/memrchr (Files): Add lib/memrchr.h.
57775         (Include): "memrchr.h".
57776
57777 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57778
57779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
57780
57781 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57782
57783         * lib/memrchr.h: New file.
57784         * lib/chdir-long.c: Include it.
57785         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
57786         Don't bother including stddef.h.
57787
57788 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57789
57790         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
57791         inclusion.
57792         Include <sys/types.h>, for dev_t.
57793         (ME_DUMMY, ME_REMOTE): Move from here....
57794         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
57795         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
57796         Dmitry V. Levin.
57797         Include mountlist.h first, to test the interface.
57798
57799 2005-01-29  Bruno Haible  <bruno@clisp.org>
57800
57801         * lib/progname.c (program_name): Initialize.
57802         Needed when linking statically on MacOS X.
57803
57804 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57805
57806         Sync from coreutils.
57807         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
57808         (Depends-on): Add c-strtod.
57809         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
57810
57811 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57812
57813         Sync from coreutils.
57814         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
57815
57816         Remove files that are specific to coreutils.
57817         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
57818
57819 2005-01-28  Bruno Haible  <bruno@clisp.org>
57820
57821         * modules/javacomp: New file.
57822         * MODULES.html.sh (Java): Add javacomp.
57823
57824 2005-01-28  Bruno Haible  <bruno@clisp.org>
57825
57826         * m4/javacomp.m4: New file, from GNU gettext.
57827
57828 2005-01-28  Bruno Haible  <bruno@clisp.org>
57829
57830         * lib/javacomp.sh.in: New file, from GNU gettext.
57831         * lib/javacomp.h: New file, from GNU gettext.
57832         * lib/javacomp.c: New file, from GNU gettext.
57833
57834 2005-01-26  Simon Josefsson  <jas@extundo.com>
57835
57836         * lib/gai_strerror.c: Use GPL in header.
57837
57838 2005-01-26  Bruno Haible  <bruno@clisp.org>
57839
57840         * modules/javaexec: New file.
57841         * MODULES.html.sh (Java): Add javaexec.
57842
57843 2005-01-26  Bruno Haible  <bruno@clisp.org>
57844
57845         * m4/javaexec.m4: New file, from GNU gettext.
57846
57847 2005-01-26  Bruno Haible  <bruno@clisp.org>
57848
57849         * lib/javaexec.sh.in: New file, from GNU gettext.
57850         * lib/javaexec.h: New file, from GNU gettext.
57851         * lib/javaexec.c: New file, from GNU gettext.
57852
57853 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57854
57855         * modules/lchown (Depends-on): Remove lchown.h
57856
57857 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57858
57859         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
57860         must be defined if the header file was not found, in order
57861         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
57862
57863 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57864
57865         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
57866         initializers for struct pentry_state.
57867         (__argp_error): Check return value of __asprintf
57868         (__argp_failure): Translate error message
57869
57870         * lib/argp-parse.c: Removed braces around the expansion of N_()
57871
57872 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57873
57874         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
57875         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
57876         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
57877         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
57878         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
57879         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
57880         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
57881         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
57882         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
57883         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
57884         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
57885         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
57886         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
57887         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
57888         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
57889         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
57890         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
57891         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
57892         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
57893         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
57894         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
57895         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
57896         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
57897         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
57898         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
57899         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
57900         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
57901         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
57902         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
57903         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
57904         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
57905         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
57906         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
57907         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
57908         xstrtol.m4, xstrtoumax.m4, yesno.m4:
57909         Use an all-permissive copyright notice, recommended by RMS.
57910
57911 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57912
57913         * modules/chdir-long (Depends-on): Remove mempcpy.
57914
57915 2005-01-21  Jim Meyering  <jim@meyering.net>
57916
57917         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
57918         same value as for Solaris 9.
57919
57920         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
57921         component length.  This included changing the parameter to be
57922         of type `char *' rather than `char const *'.
57923         * lib/chdir-long.h (chdir_long): Update prototype.
57924
57925         * lib/openat.c (fdopendir, fstatat): New functions.
57926         * lib/openat.h: Include headers required for use of DIR and struct
57927         stat.
57928         [AT_SYMLINK_NOFOLLOW]: Define.
57929         (fdopendir, fstatat): Add prototypes.
57930
57931 2005-01-21  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/classpath: New file.
57934         * MODULES.html.sh (Java): Add classpath.
57935
57936 2005-01-21  Bruno Haible  <bruno@clisp.org>
57937
57938         * lib/classpath.h: New file, from GNU gettext.
57939         * lib/classpath.c: New file, from GNU gettext.
57940
57941 2005-01-20  Simon Josefsson  <jas@extundo.com>
57942
57943         * modules/version-etc-fsf: New file.
57944
57945 2005-01-20  Simon Josefsson  <jas@extundo.com>
57946
57947         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
57948         * lib/version-etc.c: Remove version_etc_copyright.
57949         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
57950         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
57951
57952 2005-01-20  Simon Josefsson  <jas@extundo.com>
57953
57954         * lib/base64.h (isbase64): Add.
57955
57956         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
57957         using a unsigned prototype, don't inline.
57958         (base64_decode): Use it.
57959
57960 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57961
57962         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
57963         it.
57964
57965 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57966
57967         * lib/save-cwd.c (save_cwd): Remove code to support the case
57968         where fchdir is missing or flaky.
57969
57970 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57971
57972         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
57973
57974 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57975
57976         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
57977         AC_LIBSOURCES now does this.
57978         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
57979         with new ullong_max module.
57980
57981 2005-01-19  Bruno Haible  <bruno@clisp.org>
57982
57983         * modules/sh-quote: New file.
57984         * MODULES.html.sh (Executing programs): Add sh-quote.
57985
57986 2005-01-19  Bruno Haible  <bruno@clisp.org>
57987
57988         * lib/sh-quote.h: New file, from GNU gettext.
57989         * lib/sh-quote.c: New file, from GNU gettext.
57990
57991 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57992
57993         Merge from coreutils.
57994         * m4/ullong_max.m4: New file.
57995         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
57996         (gl_MACROS): Assume localeconv exists.
57997
57998 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57999
58000         Merge changes from coreutils, as described below in several
58001         changelogs dated today.
58002
58003         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58004         (O_DIRECTORY): Remove; not needed here, since "." must be
58005         a directory.  All uses removed.
58006         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58007         universal on Suns, and we also need to test for IRIX.
58008         Revamp code to use 'if' rather than '#if'.
58009         Avoid unnecessary comparison of cwd->desc to 0.
58010
58011         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58012         for known valid error numbers rather than observed invalid ones.
58013
58014 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58015
58016         * modules/ullong_max: New file.
58017
58018         * modules/chdir-long, modules/openat: New files.
58019         * modules/save-cwd (Depends-on): Depend on chdir-long.
58020         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58021
58022 2005-01-18  Jim Meyering  <jim@meyering.net>
58023
58024         Merge from coreutils.
58025         * m4/chdir-long.m4, m4/openat.m4: New files.
58026         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58027         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58028         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58029         is sane and DOES follow symlinks.  Besides, testing 20 different
58030         systems found no broken chown implementations.
58031         Prompted by a change in rsync's copy of this macro.
58032         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58033
58034         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58035
58036         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58037         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58038         NULL-means-set-to-current-time semantics.
58039         Remove temporary file immediately, rather than waiting
58040         for configure's at-exit trap code to do it.
58041
58042 2005-01-18  Jim Meyering  <jim@meyering.net>
58043
58044         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58045
58046         * lib/utimens.c (futimens): Account for the fact that futimes
58047         can also fail with errno == ENOSYS or errno == ENOENT.
58048         Patch from Dmitry V. Levin.
58049
58050         Change the name of the robust chdir function from chdir to chdir_long.
58051         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58052         (restore_cwd): Use chdir_long, not chdir.
58053         * lib/chdir-long.c: Renamed from chdir.c.
58054         * lib/chdir-long.h: Renamed from chdir.h.
58055         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58056         Hurd.
58057
58058 2005-01-18  Bruno Haible  <bruno@clisp.org>
58059
58060         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58061         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58062         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58063         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58064         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58065         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58066         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58067         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58068         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58069         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58070         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58071         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58072         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58073         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58074         Use an all-permissive copyright notice, recommended by RMS.
58075
58076 2005-01-18  Bob Proulx  <bob@proulx.com>
58077
58078         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58079         simplify offsetof() macro construct to avoid compile failure with
58080         native HP-UX 11.0 ANSI C compiler.
58081
58082 2005-01-17  Bruno Haible  <bruno@clisp.org>
58083
58084         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58085         redundant because stpncpy.m4 takes care of it.
58086
58087 2005-01-17  Bruno Haible  <bruno@clisp.org>
58088
58089         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58090
58091 2005-01-17  Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58094         used.
58095
58096 2005-01-17  Bruno Haible  <bruno@clisp.org>
58097
58098         * lib/fwriteerror.h (fwriteerror): Change specification to include
58099         fclose.
58100         * lib/fwriteerror.c: Include <stdbool.h>.
58101         (fwriteerror): At the end, close the file stream. Record whether
58102         stdout was already closed.
58103
58104 2005-01-17  Bruno Haible  <bruno@clisp.org>
58105
58106         * lib/execute.c (environ): Declare if needed.
58107         * lib/pipe.c (environ): Likewise.
58108         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58109
58110 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58111
58112         * modules/argp: Depend on vsnprintf
58113
58114 2005-01-10  Jim Meyering  <jim@meyering.net>
58115
58116         * modules/closeout (Depends-on): Add atexit.
58117
58118 2005-01-06  Bruno Haible  <bruno@clisp.org>
58119
58120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58121
58122 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58123
58124         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58125         definitions to be after all include files, to avoid collisions.
58126         Problem reported by Bob Proulx.
58127
58128 2005-01-04  Jim Meyering  <jim@meyering.net>
58129
58130         Changes imported from coreutils.
58131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58132         as the mkstemp template, use a temporary directory and an
58133         8.3-friendly template to avoid trouble on systems like DJGPP.
58134         Reported by Juan M. Guerrero via Stepan Kasal.
58135         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58136         close. Remove the temporary directory right away, rather than waiting
58137         for configure's at-exit trap code to do it.
58138         Suggestion from Stepan Kasal.
58139
58140 2005-01-01  Simon Josefsson  <jas@extundo.com>
58141
58142         * gnulib-tool: Print #include directives when --import'ing.
58143
58144 2004-12-28  Simon Josefsson  <jas@extundo.com>
58145
58146         * tests/test-base64.c: Include required header files.  Remove
58147         unused variables.
58148
58149 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         * modules/error (Depends-on): Remove gettext.
58152
58153 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58154
58155         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58156         not needed.  This removes a dependency on the gettext module.
58157         [defined _LIBC]: Do not include <libintl.h>; not needed.
58158
58159 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58160
58161         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58162         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58163
58164 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58165
58166         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58167         HAVE_DECL_STRTOLD.
58168
58169 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58170
58171         * modules/getdate (Depends-on): Remove alloca-opt.
58172
58173 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58174
58175         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58176
58177 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58178
58179         * lib/argp-parse.c: Include <stddef.h>.
58180         (alignof, alignto): New macros.
58181         (parser_init): Don't assume that void * is aligned sufficiently
58182         for struct option.
58183
58184         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58185         need to extend the stack.
58186         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58187         large.
58188
58189 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58190
58191         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58192
58193 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58194
58195         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58196         (2004-10-24) change.  Apparently this was a false alarm.
58197
58198         * modules/getdate: Depend on alloca-opt, not alloca.
58199
58200 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58201
58202         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58203         Remove now-obsolete comment about AIX.
58204         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58205         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58206         (YYMAXDEPTH): New macro.
58207
58208 2004-12-18  Simon Josefsson  <jas@extundo.com>
58209
58210         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58211
58212 2004-12-18  Bruno Haible  <bruno@clisp.org>
58213
58214         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58215
58216 2004-12-18  Bruno Haible  <bruno@clisp.org>
58217
58218         * lib/fatal-signal.c (fatal_signals): Make non-const.
58219         (init_fatal_signals): New function.
58220         (uninstall_handlers, install_handlers): Ignore signals that were set to
58221         SIG_IGN.
58222         (at_fatal_signal): Call init_fatal_signals.
58223         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58224         SIG_IGN.
58225         Reported by Paul Eggert.
58226
58227 2004-12-18  Bruno Haible  <bruno@clisp.org>
58228
58229         * doc/alloca.texi: New file.
58230         * doc/alloca-opt.texi: New file.
58231
58232 2004-12-17  Jim Meyering  <jim@meyering.net>
58233
58234         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58235         Otherwise, install-sh could exit with improper exit status when
58236         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58237
58238 2004-12-16  Simon Josefsson  <jas@extundo.com>
58239
58240         * tests/test-base64.c: Add license.
58241
58242 2004-12-15  Stepan Kasal  <address@hidden>
58243
58244         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58245
58246 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58247
58248         * modules/getcwd (Files): Add m4/d-ino.m4.
58249         Suggested by Mark D. Baushke.
58250
58251 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58252
58253         * lib/getdate.y (textint): New member "negative".
58254         (time_zone_hhmm): New function.
58255         Expect 14 shift-reduce conflicts, not 13.
58256         (o_colon_minutes): New rule.
58257         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58258         (yylex): Set the "negative" member of signed numbers.
58259
58260 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58261
58262         * doc/getdate.texi (Time of day items, Time zone items):
58263         Describe new formats +00:00, UTC+00:00.
58264
58265 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58266
58267         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58268         spurious "-l"s.  Problem reported by Stepan Kasal.
58269
58270 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58271
58272         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58273         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58274
58275 2004-12-04  Simon Josefsson  <jas@extundo.com>
58276
58277         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58278         Vandoorselaere <yoann@prelude-ids.org>.
58279
58280 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58281
58282         Changes imported from coreutils.
58283         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58284         exist.
58285         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58286
58287 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         Changes imported from coreutils.
58290         * lib/hard-locale.c: Assume <locale.h> exists.
58291         Include "strdup.h".
58292         (GLIBC_VERSION): New macro.
58293         (hard_locale): Assume setlocale exists.
58294         Rewrite to avoid #ifdef.
58295         Use strdup rather than malloc + strcpy.
58296         * lib/human.c: Assume <locale.h> exists.
58297         (human_readable): Assume localeconv exists.
58298
58299 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58300
58301         * modules/hard-locale (Depends-on): Add strdup.
58302
58303 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58304
58305         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58306         convert T2, not T.  (Imported from libc.)
58307
58308 2004-11-30  Simon Josefsson  <jas@extundo.com>
58309
58310         * modules/restrict (License): Change to LGPL.
58311
58312 2004-11-30  Simon Josefsson  <jas@extundo.com>
58313
58314         * m4/restrict.m4: Add copyright and copying conditions.
58315
58316 2004-11-30  Simon Josefsson  <jas@extundo.com>
58317
58318         * m4/base64.m4: New file.
58319
58320 2004-11-30  Simon Josefsson  <jas@extundo.com>
58321
58322         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58323         base64.
58324
58325         * tests/test-base64.c: New file.
58326
58327         * modules/base64: New file.
58328
58329 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58332         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58333
58334         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58335
58336 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58337
58338         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58339         (__getcwd.c): Don't restore errno; glibc doesn't.
58340         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58341         first, falling back to our code only if its results look suspicious.
58342         Ensure that the resulting buffer is only as large as necessary.
58343
58344         * lib/readutmp.c: Include readutmp.h first.
58345         Include <errno.h>, since readutmp.h no longer does that.
58346         * lib/readutmp.h: Don't include <errno.h>,
58347         <sys/param.h>, <time.h>; not needed to establish interface.
58348         (errno): Remove decl.
58349         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58350         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58351         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58352
58353 2004-11-28  Simon Josefsson  <jas@extundo.com>
58354
58355         * lib/base64.h, base64.c: New file.
58356
58357 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58358
58359         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58360
58361 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58362
58363         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58364         (Depends-on): Remove pathmax, same.  Add mempcpy.
58365         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58366         (Makefile.am): Append getcwd.h to lib_SOURCES.
58367         (Include): Add getcwd.h.
58368         (Maintainer): Change from Jim Meyering to "all, glibc",
58369         since getdate now uses intended-for-glibc code.
58370         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58371         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58372
58373 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58374
58375         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58376         HP's ANSI C compiler.
58377         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58378         Declaring int functions causes warnings on some modern systems and
58379         shouldn't be needed to compile on ancient ones.
58380         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58381         defined.
58382
58383         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58384         with the following changes.
58385         (__set_errno): Parenthesize properly.
58386         Include <stdbool.h>.
58387         (MIN, MAX, MATCHING_INO): New macros.
58388         (__getcwd): Define with prototype, not K&R form.
58389         Use heuristics to allocate default buffer on stack if possible.
58390         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58391         behavior, and to avoid the PATH_MAX limit when computing
58392         ../../../../...
58393         Use MATCHING_INO to compare inode number to file.
58394         Check for arithmetic overflow in size calculations.
58395         Fix bug in reallocation of dot array that caused getcwd to fail
58396         on directories nested deeper than 75.
58397         Be more careful about saving errno on error.
58398         Do not use realloc; use only free+malloc, as this is a bit
58399         more flexible and avoids a needless copy operation.
58400         Do not inspect st_dev and st_ino for symbolic links; POSIX
58401         doesn't specify the latter.
58402         Check for closedir errors.
58403         Avoid needless casts.
58404         Use "#ifdef weak_alias" around weak_alias, to be like other
58405         glibc code.
58406         The following changes to getcwd.c have effect only when used in
58407         gnulib; they have no effect inside glibc proper.
58408         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58409         as alloca isn't used.
58410         (alloca, __alloca): Likewise.
58411         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58412         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58413         unconditionally, as gnulib assumes C89 or better.
58414         Do not include <sys/param.h>.
58415         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58416         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58417         better.
58418         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58419         Include <dirent.h> in a way that is compatible with modern Autoconf.
58420         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58421         New macros, if not already defined.
58422         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58423         Use "_LIBC", not "defined _LIBC", for consistency.
58424         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58425         a mempcpy module.
58426         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58427         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58428         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58429         credit only to Jim Meyering and adjust the copyright dates.
58430         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58431         <stdlib.h>, <unistd.h>, "pathmax.h".
58432         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58433         (INITIAL_BUFFER_SIZE): Remove.
58434         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58435
58436 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58437
58438         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58439         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58440         Use the _ONCE methods, for efficiency.
58441         Check for fcntl.h.  In test program, include <errno.h>
58442         and <fcntl.h> if available.  Remove old K&R cruft from
58443         test program.  Check for common errors in GNU/Linux,
58444         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58445         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58446         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58447         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58448         name accordingly.
58449         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58450         accommodate new getcwd.c.
58451         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58452         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58453         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58454         that's all we need now.
58455
58456 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58457
58458         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58459         argp-parse.c depends on getopt internals, that means we should
58460         always use our getopt, to be on the safe side.
58461         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58462         order not to spoil the result of an eventual previous invocation
58463         of gl_GETOPT_SUBSTITUTE.
58464
58465 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58466
58467         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58468         redefinition warnings. To avoid them, include the defines
58469         in `#if !defined __need_getopt ... #endif'. The only place
58470         where __getopt_argv_const is used is in definitions
58471         of getopt_long and getopt_long_only below, which are as well
58472         protected by `#ifndef __need_getopt'.
58473         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58474         __need_getopt after including <stdio.h> and <unistd.h> These
58475         headers might have defined it.
58476
58477 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58478
58479         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58480
58481 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58482
58483         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58484         (futimens): New function, which uses futimes if available.
58485         (futimens, utimens): Support timespec==NULL, with same semantics
58486         as utime and utimens.
58487         * lib/utimens.h (futimens): New decl.
58488
58489 2004-11-23  Jim Meyering  <jim@meyering.net>
58490
58491         * lib/getopt_.h: Remove trailing blanks.
58492
58493 2004-11-23  Jim Meyering  <jim@meyering.net>
58494
58495         * lib/__fpending.c: Add comment.
58496
58497 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         * modules/canonicalize (Depends-on): Add xreadlink.
58500         Problem reported by James Youngman.
58501
58502 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58503
58504         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58505         New macros.
58506         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58507         optopt): Use them instead of invoking ## directly; otherwise, the
58508         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58509
58510 2004-11-19  Bruno Haible  <bruno@clisp.org>
58511
58512         * lib/strtok_r.c: Move comments from here...
58513         * lib/strtok_r.h: ... to here.
58514
58515 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58516
58517         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58518         implementations that mishandle size_t overflow.
58519
58520 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58521
58522         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58523         might fail.  Problem reported by Yoann Vandoorselaere.
58524         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58525         implementations that mishandle size_t overflow.
58526
58527 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58528
58529         * modules/canon-host (Depends-on): Add strdup.
58530
58531 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58532
58533         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58534
58535 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         * lib/canon-host.c: Include "strdup.h".
58538         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58539         Use strdup instead of malloc/strcpy to duplicate strings.
58540
58541         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58542         (human_space_before_unit): New constant.
58543         * lib/human.c (human_readable): Support it.
58544
58545         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58546         (xgetcwd): Set errno correctly when failing.
58547         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
58548         the failure is actually due to a PATH_MAX problem.
58549
58550         Further getopt changes to make it more likely that glibc will
58551         buy the changes back.
58552         * lib/getopt.c (POSIXLY_CORRECT): New constant.
58553         (getopt): Use it, so to preserve glibc semantic
58554         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
58555         when compiling for libc.
58556         * lib/getopt_.h (__getopt_argv_const): Bring it back.
58557         (getopt_long, getopt_long_only): Use it.
58558
58559         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58560         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
58561         (getopt): Argv is now char * const *, as per standard.
58562         (_getopt_internal_r, _getopt_internal): Argv is now char **,
58563         not char *__getopt_argv_const *.
58564         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58565         _getopt_long_only_r): Likewise.
58566         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
58567         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58568         _getopt_long_r, _getopt_long_only_r): Likewise.
58569         * lib/getopt_.h (__getopt_argv_const): Remove.
58570         (getopt): Argv is now char * const *, as per standard.
58571
58572         * lib/getdate.y (tORDINAL): New token.
58573         (day, relunit): Allow it for relative times.
58574         (relative_time_table): Use tORDINAL for ordinals.
58575
58576 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
58579         Document that "second" isn't allowed as an ordinal number.
58580
58581 2004-11-16  Jim Meyering  <jim@meyering.net>
58582
58583         * modules/closeout (Depends-on): Add fpending.
58584
58585 2004-11-15  Jim Meyering  <jim@meyering.net>
58586
58587         * lib/closeout.c: Include "__fpending.h" once again.
58588         Include <stdbool.h>.
58589         (close_stdout): Don't fail just because stdout was closed initially,
58590         since some programs don't write to stdout in the normal course of
58591         operation (other than --version and --help), and we don't want this
58592         function to make e.g. `touch file >&-' fail.
58593         But do fail if it was closed and someone has tried to write to it.
58594         E.g., `printf foo >&-' must fail.
58595
58596 2004-11-13  Jim Meyering  <jim@meyering.net>
58597
58598         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
58599
58600 2004-11-12  Simon Josefsson  <jas@extundo.com>
58601
58602         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
58603         small doc fix is still pending.
58604
58605 2004-11-11  Simon Josefsson  <jas@extundo.com>
58606
58607         * modules/strtok_r: New file.
58608
58609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58610         strtok_r.
58611
58612 2004-11-11  Simon Josefsson  <jas@extundo.com>
58613
58614         * m4/strtok_r.m4: New file.
58615
58616         * m4/getopt.m4: Replace opterr.
58617
58618 2004-11-11  Simon Josefsson  <jas@extundo.com>
58619
58620         * lib/strtok_r.h, strtok_r.c: New file.
58621
58622 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58623
58624         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
58625         of replacing opterr, getopt, etc.  This should handle the
58626         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
58627
58628 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58629
58630         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
58631         we can stop lying to compilers about the constness of argv when we
58632         are compiled outside glibc.
58633         (getopt, getopt_long, getopt_long_only): Use it.
58634         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58635         _getopt_internal, getopt): Likewise.
58636         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58637         _getopt_long_only_r): Likewise.
58638         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58639         _getopt_long_r, _getopt_long_only_r): Likewise.
58640
58641         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
58642         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
58643         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
58644         the other external symbols.
58645         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
58646         declaration, since the above renaming now works around collisions.
58647
58648 2004-11-11  Jim Meyering  <jim@meyering.net>
58649
58650         * lib/linebreak.c: Remove trailing blanks.
58651         * lib/alloca_.h: Likewise.
58652         * lib/acosl.c: Likewise.
58653         * lib/euidaccess.c: Likewise.
58654         * lib/allocsa.h: Likewise.
58655
58656 2004-11-10  Simon Josefsson  <jas@extundo.com>
58657
58658         * m4/getaddrinfo.m4: New file.
58659
58660 2004-11-10  Simon Josefsson  <jas@extundo.com>
58661
58662         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
58663
58664 2004-11-10  Simon Josefsson  <jas@extundo.com>
58665
58666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58667         getaddrinfo.
58668
58669         * modules/getaddrinfo: New file.
58670
58671 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
58674
58675 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58676
58677         * lib/mktime.c (SHR): New macro, which is a portable
58678         substitute for >> that should work even on Crays.
58679         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
58680         Problem reported by Mark D. Baushke in
58681         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
58682         * lib/getdate.y (SHR): Likewise.
58683         (tm_diff): Use it.
58684         * lib/strftime.c (SHR): Likewise.
58685         (tm_diff): Use it.
58686         * lib/quotearg.c (struct quoting_options): Use unsigned int for
58687         quote_these_too, so that right shifts are well defined.  All uses
58688         changed.
58689
58690 2004-11-10  Jim Meyering  <jim@meyering.net>
58691
58692         Ensure that no close failure goes unreported.
58693         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
58694         return early when it seems there's nothing to flush.
58695         Don't include __fpending.h.
58696
58697 2004-11-10  Jim Meyering  <jim@meyering.net>
58698
58699         * modules/closeout (Depends-on): Remove fpending.
58700
58701 2004-11-10  Jim Meyering  <jim@meyering.net>
58702
58703         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
58704
58705 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58706
58707         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
58708         gl_FUNC_STRFTIME.
58709         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
58710         and AC_REQUIRE when possible, to avoid duplicate checks.
58711         Check for <wchar.h>.
58712
58713 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58714
58715         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
58716
58717 2004-11-09  Bruno Haible  <bruno@clisp.org>
58718
58719         * m4/sockpfaf.m4: New file.
58720
58721 2004-11-05  Bruno Haible  <bruno@clisp.org>
58722
58723         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
58724         Reported by Mark D. Baushke <mdb@cvshome.org>.
58725
58726 2004-11-04  Bruno Haible  <bruno@clisp.org>
58727
58728         2004-09-11  Bruno Haible  <bruno@clisp.org>
58729                 * allocsa.valgrind: New file.
58730         2004-02-06  Bruno Haible  <bruno@clisp.org>
58731                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
58732                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
58733                 Reported by Christopher Seip <chris.seip@hp.com>.
58734
58735 2004-11-04  Bruno Haible  <bruno@clisp.org>
58736
58737         * modules/allocsa (Files): Add lib/allocsa.valgrind.
58738         (Makefile.am): Distribute it.
58739
58740 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58741
58742         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
58743         with errno == ERANGE if the buffer is too small.
58744         Problem reported by Mark D. Baushke.
58745
58746 2004-11-03  Albert Chin  <china@thewrittenword.com>
58747             Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
58750         equivalent, substitute $ac_type for equivalent type rather than
58751         blindly using uint32_t *always* which won't work if uint32_t is not
58752         available.  Define _UINT32_T to work around typedef of uint32_t if
58753         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
58754         2.5.1.
58755
58756 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58757
58758         * m4/jm-macros.m4: Sync from coreutils.
58759         (gl_MACROS): Check for mbrlen, for pathchk.
58760         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
58761
58762 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58763
58764         * lib/xreadlink.c (MAXSIZE): New macro.
58765         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
58766         size does not exceed MAXSIZE.  Avoid cast.
58767         As suggested by Mark D. Baushke in
58768         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
58769         if readlink fails with buffer size just under MAXSIZE, try again
58770         with MAXSIZE.
58771
58772 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58773
58774         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
58775
58776 2004-11-02  Derek R. Price  <derek@ximbiot.com>
58777         and  Paul Eggert  <eggert@cs.ucla.edu>
58778
58779         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
58780         (get_date): Overparenthesize to avoid GCC warning.
58781
58782 2004-11-02  Bruno Haible  <bruno@clisp.org>
58783
58784         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
58785         returns void.
58786
58787 2004-11-02  Bruno Haible  <bruno@clisp.org>
58788
58789         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
58790         function returns void.
58791
58792 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58793
58794         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
58795         fflush_unlocked, flockfile, funlockfile, funlockfile,
58796         fputs_unlocked, putc_unlocked.
58797
58798 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58801         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
58802         already declared.
58803
58804 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58805
58806         * modules/getdate (Files): Add doc/getdate.texi.
58807         (Depends-on): Add setenv, xalloc.
58808
58809 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58810
58811         * lib/getdate.y: Add support for TZ="foo" within a date string.
58812         Fix some bugs near time_t boundaries.  Reject dates with
58813         out-of-range components, e.g., "Sept 31".
58814         Include <stdlib.h>, "setenv.h", "xalloc.h".
58815         (ISDIGIT_LOCALE): Remove; unused.
58816         Note that the TZ and time functions used here are not reentrant.
58817         (mktime_ok, get_tz): New functions.
58818         (TZBUFSIZE): New constant.
58819         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
58820         This requires that we sometimes generate our own TZ="XXX..." setting.
58821
58822 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         * doc/getdate.texi: New file, from coreutils with modifications for
58825         the new TZ parsing.
58826
58827 2004-10-27  Derek R. Price  <derek@ximbiot.com>
58828
58829         * lib/mktime.c (not_equal_tm): Remove redundant check.
58830
58831 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58832
58833         * modules/regex (lib_SOURCES): Add regex.c.
58834         Reported by James Youngman in
58835         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
58836
58837 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58838
58839         * lib/getdate.y: Use Bison 1.875 features, and some minor
58840         code cleanups.  This change does not affect semantics.
58841         Don't include <stdlib.h>; no longer needed.
58842         Don't include unlocked-io.h; only the "#if TEST" code uses
58843         stdio, and performance isn't crucial there.
58844         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
58845         Bison 1.875 features as described below.
58846         All uses of "PC." replaced by "pc->".
58847         (YYSTYPE): Add a forward declaration.
58848         (yylex, yyerror): Use full prototypes in forward decls.
58849         Use "%pure-parser" rather than obsolescent "%pure_parser".
58850         Use %parse-param and %lex-param instead of obsolescent
58851         YYPARSE_PARAM and YYLEX_PARAM.
58852         (meridian_table, month_and_day_table, time_units_table,
58853         relative_time_table, time_zone_table, military_table,
58854         lookup_zone, lookup_word, get_date):
58855         Use NULL instead of 0 where appropriate.
58856         (to_hour): Avoid abort (), to avoid a dependency on
58857         stdlib.h.
58858         (yyerror, yylex): Now accepts parser_control * arg.
58859         (main) [TEST]: Use '\0' rather than 0 for char.
58860
58861 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58862
58863         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
58864
58865 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58866
58867         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
58868         It's now the caller's responsibility to handle the case where
58869         !HAVE_GETPAGESIZE && !defined getpagesize.
58870
58871         * lib/mktime.c (leapyear): Arg is long int, not int.
58872
58873 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
58874
58875         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
58876
58877 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58878
58879         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
58880         missing.  Problem reported by James Youngman.
58881
58882 2004-10-16  Simon Josefsson  <jas@extundo.com>
58883
58884         * gnulib-tool: Fix comments.  Fix parse problem.
58885         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
58886
58887 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
58888
58889         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
58890         implementation of getopt_long.  Problem reported by Alexander Taler in:
58891         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
58892
58893 2004-10-15  Bruno Haible  <bruno@clisp.org>
58894
58895         * gnulib-tool: Untabify. Initialize supplied_libname.
58896         (func_usage): More homogenous output.
58897         (func_modules_transitive_closure, func_modules_to_filelist,
58898         func_emit_lib_Makefile_am): New functions.
58899         (func_import): New function, extracted from big case statement. Use
58900         func_get_license, func_modules_transitive_closure,
58901         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
58902         opt_lgpl. Don't use test -a, as it's not portable.
58903         (func_create_testdir): Use func_modules_transitive_closure,
58904         func_modules_to_filelist, func_emit_lib_Makefile_am.
58905
58906 2004-10-15  Bruno Haible  <bruno@clisp.org>
58907
58908         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
58909
58910 2004-10-15  Bruno Haible  <bruno@clisp.org>
58911
58912         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
58913         the portions belonging to each module.
58914         Suggested by Derek Robert Price <derek@ximbiot.com>.
58915
58916 2004-10-12  Simon Josefsson  <jas@extundo.com>
58917
58918         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58919         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
58920         to real functions.
58921
58922 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58923
58924         * modules/vsnprintf: New file.
58925
58926 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58927
58928         * m4/vsnprintf.m4: New file.
58929
58930 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58931
58932         * lib/vsnprintf.h: New file.
58933         * lib/vsnprintf.c: New file.
58934
58935 2004-10-11  Bruno Haible  <bruno@clisp.org>
58936
58937         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
58938         vsnprintf.
58939
58940 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58941
58942         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
58943
58944 2004-10-07  Bruno Haible  <bruno@clisp.org>
58945
58946         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
58947         fits into the provided buffer.
58948
58949 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58950
58951         * lib/diacrit.c, diacrit.h: Add GPL notice.
58952
58953         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
58954         notice.
58955         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
58956         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
58957         This avoids a potential constant-folding bug.
58958
58959 2004-10-05  Bruno Haible  <bruno@clisp.org>
58960
58961         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
58962         for the declaration of strsep.
58963
58964 2004-10-05  Bruno Haible  <bruno@clisp.org>
58965
58966         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
58967
58968 2004-10-04  Simon Josefsson  <jas@extundo.com>
58969
58970         * modules/memmem: New file.
58971         * tests/test-memmem.c: New file.
58972         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
58973
58974 2004-10-04  Simon Josefsson  <jas@extundo.com>
58975
58976         * m4/memmem.m4: New file.
58977
58978 2004-10-04  Simon Josefsson  <jas@extundo.com>
58979
58980         * lib/memmem.h: New file.
58981         * lib/memmem.c: New file, taken from glibc.
58982
58983 2004-10-04  Simon Josefsson  <jas@extundo.com>
58984
58985         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
58986         '#ifdef USE_UNLOCKED_IO'.
58987
58988 2004-10-04  Simon Josefsson  <jas@extundo.com>
58989
58990         * config/srclist.txt: Add memmem from glibc.
58991
58992 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58993
58994         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
58995
58996         * modules/argmatch, modules/argp, modules/closeout, modules/error,
58997         modules/exclude, modules/getdate, modules/getline,
58998         modules/getndelim2, modules/getpass, modules/getpass-gnu,
58999         modules/getusershell, modules/linebuffer, modules/md5,
59000         modules/mountlist, modules/posixtm, modules/readtokens,
59001         modules/readutmp, modules/regex, modules/sha1,
59002         modules/version-etc, modules/yesno:
59003         Remove dependency on unlocked-io.
59004
59005 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59006
59007         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59008
59009         * m4/unlocked-io.m4: Add copyright notice.
59010         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59011
59012 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59013
59014         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59015         * lib/xmalloc.c (xmemdup): Likewise.
59016         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59017         XFREE): Remove these long-obsolescent macros.
59018         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59019         * lib/xstrdup.c: Remove.
59020
59021         * lib/regex.c (re_comp): Cast gettext return value to char *,
59022         Problem reported by Martin Neitzel via Mark D. Baushke.
59023
59024 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59025
59026         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59027         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59028         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59029         regex.c, sha1.c, version-etc.c, yesno.c:
59030         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59031         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59032         the includer's responsibility.
59033
59034         Sync from coreutils.
59035
59036         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59037         points to the start of a string, as the C Standard says the
59038         resulting behavior is undefined.
59039
59040         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59041         simple -> simple_backups, numbered_existing ->
59042         numbered_existing_backups, numbered -> numbered_backups
59043         to avoid shadowing problems.  All uses changed.
59044         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59045         * lib/backupfile.c (check_extension, numbered_backup):
59046         Rename locals to avoid shadowing 'basename'.
59047         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59048         once.
59049
59050         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59051         * lib/.cvsignore: Add getopt.h.
59052
59053 2004-10-04  Bruno Haible  <bruno@clisp.org>
59054
59055         * modules/README: New file.
59056         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59057         not a module.
59058
59059 2004-10-02  Jim Meyering  <jim@meyering.net>
59060
59061         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59062
59063 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59064
59065         * modules/strsep: New file.
59066
59067 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59068
59069         * m4/strsep.m4: New file.
59070
59071 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59072
59073         * lib/strsep.h: New file.
59074         * lib/strsep.c: New file.
59075
59076 2004-10-01  Simon Josefsson  <jas@extundo.com>
59077
59078         * lib/snprintf.c (snprintf): Handle size==0.
59079
59080 2004-10-01  Simon Josefsson  <jas@extundo.com>
59081             Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59084         (snprintf): Declare 'args'.
59085
59086 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59087
59088         * lib/snprintf.c: Remove comments as to why each header is needed.
59089
59090 2004-10-01  Bruno Haible  <bruno@clisp.org>
59091
59092         * MODULES.html.sh: Add strsep.
59093
59094 2004-09-30  Simon Josefsson  <jas@extundo.com>
59095
59096         * modules/snprintf: New file.
59097
59098 2004-09-30  Simon Josefsson  <jas@extundo.com>
59099
59100         * m4/snprintf.m4: New file.
59101
59102 2004-09-30  Simon Josefsson  <jas@extundo.com>
59103
59104         * lib/snprintf.h, lib/snprintf.c: New files.
59105
59106 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59107
59108         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59109         (hol_entry_help): Never translate an empty string.
59110         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59111         * lib/argp.h (OPTION_NO_TRANS): New option.
59112
59113 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59114
59115         * modules/argp (Maintainer): Replace Simon Josefsson
59116         by Sergey Poznyakoff.
59117
59118 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59119
59120         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59121         changes merged back into glibc.
59122
59123 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59124
59125         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59126
59127 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59128
59129         * lib/xvasprintf.c: Include xalloc.h.
59130         (xvasprintf): Use xalloc_die, not xmalloc_die.
59131
59132 2004-09-29  Bruno Haible  <bruno@clisp.org>
59133
59134         * modules/alloca-opt: New file, derived from modules/alloca.
59135         * modules/allocsa: Depend on alloca-opt instead of alloca.
59136         * modules/setenv: Likewise.
59137         * modules/vasnprintf: Likewise.
59138         * MODULES.html.sh: Add alloca-opt.
59139
59140 2004-09-28  Simon Josefsson  <jas@extundo.com>
59141
59142         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59143         LGPL, and to replace license template from GPL to LGPL.
59144
59145 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59146
59147         * modules/dummy: Change license to LGPL.
59148
59149 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59150
59151         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59152
59153 2004-09-24  Simon Josefsson  <jas@extundo.com>
59154
59155         * modules/minmax (License): Change from GPL to LGPL.
59156
59157 2004-09-23  Simon Josefsson  <jas@extundo.com>
59158
59159         * gnulib-tool (--import): Typo.
59160
59161 2004-09-23  Simon Josefsson  <jas@extundo.com>
59162
59163         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59164
59165 2004-09-22  Bruno Haible  <bruno@clisp.org>
59166
59167         * modules/*: Add 'License' field.
59168         * gnulib-tool: Accept --extract-license option.
59169         (func_get_license): New function.
59170
59171 2004-09-21  Bruno Haible  <bruno@clisp.org>
59172
59173         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59174         Reported by Simon Josefsson.
59175
59176 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59177
59178         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59179         gl_AC_TYPE_LONG_LONG.
59180
59181 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59184
59185 2004-09-18  Simon Josefsson  <jas@extundo.com>
59186         and  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59189         calls with autoreconf.  Define GL_LIB.
59190
59191 2004-09-14  Karl Berry  <karl@gnu.org>
59192
59193         * config/srclist.txt: unsync setenv.c, sigh.
59194
59195 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59196
59197         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59198         Problem reported by Bruno Haible in:
59199         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59200
59201 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         * config/srclist.txt: Comment out argp-pvh.c.
59204
59205 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59206
59207         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59208         in case some system header has #define'd it.  Problem reported by
59209         Soeren D. Schulze in
59210         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59211
59212 2004-09-09  Karl Berry  <karl@gnu.org>
59213
59214         * regex.[ch]: delete from the root.  These were supposed to be
59215                 synced with emacs cvs, but this has not happened for about
59216                 a year, and anyway nothing else uses emacs regex.[ch].
59217                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59218                 lib/regex[.ch] is untouched.
59219
59220 2004-09-09  Bruno Haible  <bruno@clisp.org>
59221
59222         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59223
59224 2004-09-09  Bruno Haible  <bruno@clisp.org>
59225
59226         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59227         modifications.
59228         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59229
59230 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59231
59232         * modules/xvasprintf: New file.
59233         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59234
59235 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59236
59237         * lib/xvasprintf.h: New file.
59238         * lib/xvasprintf.c: New file.
59239         * lib/xasprintf.c: New file.
59240
59241 2004-09-08  Bruno Haible  <bruno@clisp.org>
59242
59243         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59244
59245 2004-09-08  Bruno Haible  <bruno@clisp.org>
59246
59247         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59248         length is > INT_MAX.
59249         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59250         more.
59251
59252 2004-09-08  Bruno Haible  <bruno@clisp.org>
59253
59254         * lib/stdint_.h: New file, taken from GNU clisp.
59255
59256 2004-09-08  Bruno Haible  <bruno@clisp.org>
59257             Oskar Liljeblad  <oskar@osk.mine.nu>
59258
59259         * modules/stdint: New file.
59260         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59261
59262 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59263
59264         Import from coreutils.
59265         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59266         strings on unbounded length.  alloca's performance benefits aren't
59267         that important here.
59268         (V_STRDUP): Remove.
59269         (parse_with_separator): New function, with most of the internals
59270         of the old parse_user_spec.  Allow user to omit both user and group,
59271         for compatibility with FreeBSD.
59272         Clone only the user name, not the entire spec.
59273         Do not set *uid, *gid unless entirely successful.
59274         Avoid memory leak in some failing cases.
59275         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59276         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59277         (parse_user_spec): Rewrite to use parse_with_separator.
59278
59279 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59280
59281         * modules/userspec: Don't depend on alloca.
59282
59283 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59286
59287 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59288
59289         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59290         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59291         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59292
59293 2004-08-16  Simon Josefsson  <jas@extundo.com>
59294
59295         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59296         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59297         Add --dry-run for --import.
59298         Let user provided command line parameters override configure.ac
59299         settings.
59300
59301 2004-08-12  Simon Josefsson  <jas@extundo.com>
59302
59303         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59304         as discussed with Paul Eggert in threads rooted at
59305         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59306         and
59307         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59308         Before, the test was empty, and relied on ELIDE_CODE in source
59309         code.)
59310         (gl_PREREQ_GETOPT): New macro.
59311         (gl_GETOPT): Use them.
59312
59313 2004-08-12  Simon Josefsson  <jas@extundo.com>
59314
59315         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59316         * lib/getopt_.h: Renamed from getopt.h.
59317
59318 2004-08-12  Simon Josefsson  <jas@extundo.com>
59319
59320         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59321         Change default library name from libfoo to libgnu.
59322         Now, if you have a configure.ac that says:
59323                 gl_SOURCE_BASE(gl)
59324                 gl_M4_BASE(gl/m4)
59325                 gl_MODULES(error getopt etcetera)
59326                 gl_INIT
59327         you can import all you need by running:
59328                 ../gnulib/gnulib-tool --import
59329
59330         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59331         (Makefile.am): Rewrite, use logic from argz.
59332         (Include): Use <getopt.h> instead of "getopt.h".
59333
59334 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59335
59336         * modules/argp (Files): Add m4/unlocked-io.m4.
59337         (Depends-on): Add extensions.
59338
59339 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59340
59341         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59342         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59343         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59344         Check for program_invocation_name, program_invocation_short_name,
59345         flockfile, funlockfile, features.h, _getopt_long_only_r.
59346
59347 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59348
59349         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59350         its complicated substitute.
59351         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59352         and program_invocation_name.
59353         (__argp_basename) [!_LIBC]: Remove; the only use was
59354         replaced by its body.
59355         (__argp_short_program_name): Change condition from
59356         !defined __argp_short_program_name to
59357         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59358         to match argp-namefrob.h.
59359         (__argp_failure): Don't assume strerror_r returns char *.
59360         * lib/argp-parse.c (N_): Define unconditionally.
59361         (argp_default_options): Fill out initializers with 0 to avoid
59362         gcc warnings.
59363
59364 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59365
59366         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59367         getopt1.c.
59368
59369 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59370
59371         Merge from coreutils.
59372
59373         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59374
59375         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59376         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59377
59378 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59379
59380         Merge from coreutils.
59381
59382         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59383         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59384         for Reliant Unix 5.43.
59385
59386         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59387         (union fooround): Use uintmax_t, not long int.
59388         The rest is a merge from libc:
59389         [defined _LIBC]: Include <shlib-compat.h>.
59390         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59391
59392         * lib/settime.c (settime): Recode to avoid warning with
59393         Sun Forte C 6U2.
59394
59395         * lib/strverscmp.c: Convert to UTF-8.
59396
59397 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59398
59399         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59400         m4/uintmax_t.m4.
59401
59402 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59403
59404         * modules/xalloc-die: New file.
59405         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59406
59407         * modules/md5 (Files): Add m4/uint32_t.m4.
59408         * modules/sha1: Renamed from modules/sha.
59409         (Files):
59410         Rename lib/sha.h to lib/sha1.h.
59411         Rename lib/sha.c to lib/sha1.c.
59412         Rename m4/sha.m4 to m4/sha1.m4.
59413         (lib_SOURCES): Likewise.
59414         (configure.ac): Rename gl_SHA to gl_SHA1.
59415         (Include): sha.h -> sha1.h.
59416
59417 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59418
59419         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59420         * m4/sha1.m4: Renamed from sha.m4.
59421         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59422
59423 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         * lib/obstack.h (obstack_empty_p):
59426         Don't assume that chunk->contents is suitably aligned.
59427         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59428         Likewise. Problem reported by Benno in
59429         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59430
59431         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59432         readable.  This could be improved further but it'd take some work.
59433
59434 2004-08-08  Simon Josefsson  <jas@extundo.com>
59435
59436         * modules/xgethostname (Depends-on): Remove exit and error (not
59437         used).
59438
59439         * modules/getpass-gnu: Add getpass.h.
59440         (Depends-on): Add stdbool.
59441         * modules/getpass: Add getpass.h.
59442
59443 2004-08-08  Simon Josefsson  <jas@extundo.com>
59444
59445         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59446         Check getpass declaration.
59447
59448 2004-08-08  Simon Josefsson  <jas@extundo.com>
59449
59450         * lib/xgethostname.c: Don't include error.h (not used).
59451
59452         * lib/getpass.h: Add.
59453         * lib/getpass.c: Include getpass.h first.
59454
59455 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59456
59457         * lib/xalloc-die.c: New file.
59458         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59459         All uses removed.
59460         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59461         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59462         xalloc-die.c.
59463         (_, N_, xalloc_die): Move to xalloc-die.c.
59464         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59465         so that we needn't mess with xalloc_msg_memory_exhausted.
59466
59467         * lib/sha1.h: Renamed from sha.h.
59468         (SHA1_H): Renamed from _SHA_H.
59469         (sha1_ctx): Renamed from sha_ctx.
59470         (sha1_init_ctx): Renamed from sha_init_ctx.
59471         (sha1_process_block): Renamed from sha_process_block.
59472         (sha1_process_bytes): Renamed from sha_process_bytes.
59473         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59474         (sha1_read_ctx): Renamed from sha_read_ctx.
59475         (sha1_stream): Renamed from sha_stream.
59476         (sha1_buffer): Renamed from sha_buffer.
59477         * lib/sha1.c: Likewise; renamed from sha.c.
59478         Do not include <sys/types.h>.
59479         Include <stddef.h> rather than <stdlib.h>.
59480
59481 2004-08-08  Bruno Haible  <bruno@clisp.org>
59482
59483         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59484         FILESYSTEM_PREFIX_LEN.
59485         * lib/progreloc.c: Likewise.
59486         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59487
59488 2004-08-06  Simon Josefsson  <jas@extundo.com>
59489
59490         * modules/progname (Depends-on): Don't depend on stdbool.
59491
59492 2004-08-06  Simon Josefsson  <jas@extundo.com>
59493
59494         * modules/getsubopt: New file.
59495         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59496         getsubopt.
59497
59498 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59499
59500         More merge from coreutils.
59501
59502         * m4/utimens.m4, m4/utimecmp.m4: New files.
59503         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59504         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59505         prereq.m4, sha.m4: Import changes from coreutils.
59506
59507 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         More merge from coreutils.
59510         * modules/raise, modules/readtokens0, modules/utimens:
59511         * modules/utimecmp, module/xnanosleep: New files.
59512         * modules/strftime: Add lib/strftime.h.
59513         Change include from <time.h> to "strftime.h".
59514         * modules/yesno: Add lib/yesno.h.
59515         * modules/backupfile: Remove lib/addext.c.
59516         * modules/euidaccess: Add stat-macros.h.
59517         * modules/canonicalize, modules/euidaccess,
59518         modules/filemode, modules/lchown, modules/makepath,
59519         modules/rmdir, modules/stat: Likewise.
59520
59521 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         Merge from tar.
59524         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59525         SIZE_MAX is a valid preprocessor constant.
59526         (__argp_basename): Change from "#ifndef _LIBC"
59527         to "#ifndef __argp_short_program_name", so that
59528         we don't compile these functions for tar.
59529
59530         More merges from coreutils.
59531         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59532         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59533         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59534         * lib/addext.c: Remove; no longer needed.
59535         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59536         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59537         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59538         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59539         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59540         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59541         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59542         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59543         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59544         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59545         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59546         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59547         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
59548         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
59549         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
59550         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
59551         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
59552         Import changes from coreutils.
59553
59554 2004-08-05  Simon Josefsson  <jas@extundo.com>
59555
59556         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
59557
59558 2004-08-05  Simon Josefsson  <jas@extundo.com>
59559
59560         * m4/getsubopt.m4: New file.
59561
59562 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59563
59564         Merge from coreutils.
59565
59566         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
59567         * m4/getcwd-path-max.m4: New files.
59568
59569         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
59570         FILESYSTEM_PREFIX_LEN ->
59571         FILE_SYSTEM_PREFIX_LEN.
59572         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
59573         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
59574         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
59575         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
59576
59577         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
59578         prerequisite modules now handle the DOS stuff.
59579         Don't check for unistd.h.
59580
59581 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59582
59583         Merge from coreutils.
59584
59585         * lib/.gdb-history: Remove; this doesn't belong here.
59586
59587         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
59588         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
59589         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
59590         * lib/getcwd.c: New files.
59591
59592         * lib/dirname.h: Include <stdbool.h>.
59593         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
59594         for consistency with POSIX terminology.  All uses changed.
59595         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
59596         (strip_trailing_slashes): Use bool for booleans.
59597         * lib/stripslash.c (strip_trailing_slashes): Likewise.
59598
59599         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
59600         sometimes returns a positive errno value even when it succeeds.
59601         (print_errno_message) [!LIBC]: Fall back on strerror if
59602         __strerror_r fails.
59603
59604         * lib/path-concat.c (mempcpy): Don't define if a system header defines
59605         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
59606         (longest_relative_suffix): New function.
59607         (path_concat): Use it.  Assume first argument is not NULL.
59608         Port to DOS.  Omit redundant separators.
59609         Report an error instead of returning NULL.
59610         Use mempcpy instead of memcpy.
59611         (xpath_concat): Remove: not declared or used.
59612
59613         * lib/same.h: Include <stdbool.h>
59614         (same_name): Return bool, not int.
59615         * lib/same.c (same_name): Likewise.
59616         (errno): Don't declare; we assume C89 or better now.
59617
59618         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
59619         if not already defined.
59620
59621         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
59622         * lib/dup-safer.c (errno): Likewise.
59623
59624 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59625
59626         Merge from coreutils.
59627         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
59628         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
59629         * modules/path-concat: Don't depend on strdup.
59630
59631 2004-08-03  Simon Josefsson  <jas@extundo.com>
59632
59633         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
59634         * lib/progname.h: Don't include stdbool.h.
59635
59636 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59637
59638         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
59639         * MODULES.html.sh (func_all_modules): Remove fatal.
59640
59641 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59642
59643         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
59644
59645 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59646
59647         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
59648         working.
59649
59650 2004-08-02  Simon Josefsson  <jas@extundo.com>
59651
59652         * lib/getsubopt.h: New file, with comments from Bruno Haible.
59653         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
59654         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
59655
59656 2004-08-01  Simon Josefsson  <jas@extundo.com>
59657
59658         * lib/xgetdomainname.c: Include stdlib.h, for free().
59659
59660 2004-07-19  Bruno Haible  <bruno@clisp.org>
59661
59662         * MODULES.html.sh (func_all_modules): Add dummy.
59663
59664 2004-07-16  Simon Josefsson  <jas@extundo.com>
59665
59666         * modules/dummy: New file.
59667
59668 2004-07-16  Simon Josefsson  <jas@extundo.com>
59669
59670         * lib/dummy.c: New file.
59671
59672 2004-07-16  Bruno Haible  <bruno@clisp.org>
59673
59674         * lib/backupfile.h: Add extern "C" for C++.
59675         * lib/closeout.h: Likewise.
59676         * lib/copy-file.h: Likewise.
59677         * lib/findprog.h: Likewise.
59678         * lib/full-write.h: Likewise.
59679         * lib/pathname.h: Likewise.
59680         * lib/progname.h: Likewise.
59681         * lib/stpcpy.h: Likewise.
59682         * lib/stpncpy.h: Likewise.
59683         * lib/strcase.h: Likewise.
59684         * lib/strstr.h: Likewise.
59685         * lib/xalloc.h: Likewise.
59686
59687         * lib/mbswidth.h: Add extern "C" for C++.
59688         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
59689
59690 2004-07-13  Robert Millan  <robertmh@gnu.org>
59691
59692         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
59693
59694 2004-07-09  Simon Josefsson  <jas@extundo.com>
59695
59696         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
59697         failed without this.)
59698
59699 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59700
59701         * modules/chown (Files): Add lib/fchown-stub.c, since
59702         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
59703
59704 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59705
59706         * lib/fchown-stub.c: New file.
59707
59708 2004-06-24  Jim Meyering  <jim@meyering.net>
59709
59710         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
59711
59712 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59713
59714         * modules/argz: Omit "#include".
59715
59716         * MODULES.html.sh (func_all_modules): Add calloc, to match
59717         2004-06-01 addition of calloc module.
59718
59719 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59720
59721         * m4/argz.m4: New file, which is autoupdated from libtool.
59722
59723 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
59726         libtool.
59727
59728 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         * config/srclist-update: Don't insist on "USA." before the
59731         close-comment, as libtool omits the period and puts the */ on a
59732         separate line.
59733         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
59734         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
59735
59736 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
59737
59738         * modules/argz: New file.
59739         * MODULES.html.sh (func_all_modules): Add argz.
59740
59741 2004-06-12  Jim Meyering  <jim@meyering.net>
59742         and  Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * modules/hash (Files): Add lib/xalloc.h.
59745         * modules/pipe (Depends-on): Add wait-process.
59746         * modules/stat (Depends-on): Add xalloc.
59747         * modules/userspec (Files): Add lib/userspec.h.
59748         * modules/xstrto
59749
59750         Upgrade from gettext-0.13.
59751         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
59752         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
59753         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
59754
59755 2004-06-10  Jim Meyering  <jim@meyering.net>
59756
59757         * lib/calloc.c: New file.
59758
59759 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59760
59761         * lib/getdate.y (yylex): Allow space between sign and number.
59762         Problem reported by Dan Jacobson.
59763
59764 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
59765
59766         Merge from coreutils CVS.
59767
59768         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
59769         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
59770         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
59771         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
59772         xstrtol.m4: Fix copyright date and/or serial number.
59773
59774         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
59775         See if we need an fchown replacement.
59776         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
59777         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
59778         and use the replacement function if we detect either defect.
59779
59780         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
59781         gl_UTIMECMP.
59782
59783 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
59784         and  Jim Meyering  <jim@meyering.net>
59785
59786         Merge from coreutils CVS.
59787
59788         * lib/stat-macros.h: New file, with contents from file-type.h
59789         and coreutils' system.h.
59790         * lib/file-type.c: Include "stat-macros.h".
59791         * lib/file-type.h (file_type): Move all macro definitions to new file,
59792         stat-macros.h.
59793
59794         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
59795         Wrap old code with this conditional.
59796         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
59797         function that does not dereference symlinks.
59798         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
59799
59800         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
59801         dependency problems.
59802         (xreadlink): Accept new arg SIZE, for efficiency.
59803         All decls and uses changed.
59804         * lib/xreadlink.h: Include <stddef.h>, for size_t.
59805
59806         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
59807         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
59808
59809         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
59810         sysexits.h.
59811
59812 2004-06-01  Jim Meyering  <jim@meyering.net>
59813
59814         * m4/calloc.m4: New file.
59815
59816 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
59817
59818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
59819         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
59820         Also, fix a typo in a diagnostic.
59821
59822 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59823
59824         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
59825         or AC_FUNC_REALLOC.
59826
59827 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59828
59829         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
59830         macros to be defined.
59831         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
59832         the allocator returns NULL because the requested size is zero.
59833
59834 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59835
59836         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
59837         var.  Add comment explaining why libc still defines it.  This
59838         merges the following patch from glibc:
59839         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
59840
59841 2004-05-20  Andreas Schwab  <schwab@suse.de>
59842
59843         * m4/free.m4: Replace free if it not known to work, not the other
59844         way round.
59845
59846 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59847
59848         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
59849         present in glibc since revision 1.1 of this file.
59850         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
59851         obstack_alignment_mask, obstack_alloc, obstack_base,
59852         obstack_blank, obstack_blank_fast, obstack_chunk_size,
59853         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
59854         obstack_grow0, obstack_init, obstack_int_grow,
59855         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
59856         obstack_next_free, obstack_object_size, obstack_ptr_grow,
59857         obstack_ptr_grow_fast, obstack_room): Remove declarations of
59858         nonexistent functions.
59859
59860 2004-05-18  Karl Berry  <karl@gnu.org>
59861
59862         * config/srclist.txt: break link for vasnprintf.c.
59863
59864 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59865
59866         Port obstack to the AS/400, where pointers are 16 bytes wide and
59867         you cannot cast an integer to a valid pointer.  This patch is
59868         currently waiting to be integrated into glibc; see
59869         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
59870
59871         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
59872         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
59873         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
59874         (struct obstack): temp member is now a union of a pointer and
59875         an integer, instead of an integer.  All integer uses changed.
59876         This does not affect the physical layout of struct obstack,
59877         except on hosts (like the AS/400) where the size or alignment of
59878         void * is greater than that of ptrdiff_t.
59879         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
59880         __STDC__)]: Store temporary in pointer member of union, not
59881         integer member.
59882         * lib/obstack.c: Include <stddef.h>, for offsetof.
59883         (struct fooalign): Remove; it doesn't need a name.
59884         (union fooround): Change double to long double, and add void *.
59885         (DEFAULT_ALIGNMENT): Use offsetof to compute.
59886         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
59887         not a macro.  Hence the values are always int; so remove all
59888         casts-to-int in uses.
59889
59890 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
59893         we can get this patch merged into glibc.
59894
59895 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59896             Paul Eggert  <eggert@cs.ucla.edu>
59897
59898         * m4/argp: Depend on alloca.
59899
59900 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59901             Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
59904         freecoding.
59905
59906 2004-05-17  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
59909         precision that consists of a '.' followed by an empty digit string.
59910         Patch by Tor Lillqvist <tml@iki.fi>.
59911
59912 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59913
59914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
59915         for backward compatibility with older code.  We need our own
59916         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
59917         it under some other name, and our alloca.h will define it.
59918
59919 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59920             Derek Price  <derek@ximbiot.com>
59921
59922         * lib/alloca.c: Include <alloca.h>, to get our interface.
59923         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
59924         include <alloca.h> first.  Use C89 prototype for alloca; this
59925         requires including <stddef.h> for size_t.  Use extern "C" if C++.
59926         Use #elif for simplicity, since we can assume C89 now.
59927         Don't try to source the system alloca.h since it will not be found
59928         and to prevent recursively including its replacement.
59929         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
59930         * lib/regex.c: Likewise.
59931
59932 2004-05-16  Derek Price  <derek@ximbiot.com>
59933             Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         getline cleanup.  This changes the getndelim2 API: both order of
59936         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
59937         no delimiter).
59938
59939         * lib/getline.c: Don't include stddef.h or stdio.h, since our
59940         interface does that.
59941         (getline): Always use getdelim, so that we don't have two
59942         copies of this code.
59943         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
59944         if available.
59945         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
59946         (GETNDELIM2_MAXIMUM): New macro.
59947         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
59948         instead of the old practice of delim2==0.  All callers changed.
59949         Return -1 on overflow, instead of returning junk.
59950         Do not set *linesize unless allocation succeeds.
59951         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
59952         that we include sys/types.h.
59953         * lib/getnline.h: Likewise.
59954         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
59955         (getndelim2): Reorder arguments.
59956         * lib/getnline.c (getnline, getndelim):
59957         Don't discard the NMAX argument.
59958         (getnline): Invoke getndelim, to avoid code duplication.
59959         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
59960         of (size_t) -1 by callers of the getnline family.
59961
59962 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59963
59964         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
59965         Check for gettimeofday.
59966         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
59967         Check for settimeofday, stime.
59968
59969 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59970
59971         * lib/nanosleep.c (suspended): Change its type from int to
59972         sig_atomic_t volatile.
59973         (first_call): Make it private to rpl_nanosleep, and have it
59974         be zero initially as that's a bit faster.
59975         (my_usleep): Round up fractional times instead of truncating them,
59976         as this is the usual meaning for 'sleep'.
59977
59978         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
59979         doesn't work.
59980         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
59981         (ENOSYS): Define if not defined.
59982         (settime): Fall back on stime if it exists and settimeofday fails.
59983         But don't bother with fallbacks if a method fails with errno == EPERM.
59984
59985 2004-05-11  Jim Meyering  <jim@meyering.net>
59986
59987         Prior to this change, the save_cwd caller required read access to the
59988         current directory on most systems (ones with the fchdir function).
59989
59990         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
59991         fails, try write-only, and finally, resort to using xgetcwd.
59992
59993 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59994
59995         * lib/obstack.c, obstack.h: Import changes from libc.
59996
59997 2004-04-28  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60000         also implicitly appends .exe to executables.
60001         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60002         accepts Windows pathnames.
60003         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60004         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60005         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60006         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60007         Reported by Derek Robert Price <derek@ximbiot.com>.
60008
60009 2004-04-21  Karl Berry  <karl@gnu.org>
60010
60011         * config/srclist.txt (localcharset.c): break sync.
60012
60013 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60014
60015         * m4/host-os.m4: Add a copyright notice.
60016
60017 2004-04-20  Jim Meyering  <jim@meyering.net>
60018
60019         Change UTILS_ to gl_ in AC_DEFINE'd names.
60020         Change utils_- and jm_-prefixed variables, too.
60021         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60022         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60023         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60024
60025         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60026         Don't emit trailing blanks.
60027         Also rename jm_-prefixed variables to have gl_ prefix.
60028
60029         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60030         Also rename jm_-prefixed variables to have gl_ prefix.
60031
60032         * m4/jm-macros.m4: Reflect the renamings.
60033         * m4/prereq.m4: Likewise.
60034
60035 2004-04-20  Jim Meyering  <jim@meyering.net>
60036
60037         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60038         memory.
60039
60040 2004-04-20  Jim Meyering  <jim@meyering.net>
60041             Bruno Haible  <bruno@clisp.org>
60042
60043         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60044         memory when realloc fails.
60045
60046 2004-04-19  Jim Meyering  <jim@meyering.net>
60047
60048         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60049         now that readutmp.c may call `free (0)'.
60050
60051 2004-04-19  Bruno Haible  <bruno@clisp.org>
60052
60053         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60054         * m4/inttypes_h.m4: Likewise.
60055         * m4/stdint_h.m4: Likewise.
60056         * m4/intmax_t.m4: Likewise.
60057         * m4/uintmax_t.m4: Likewise.
60058
60059 2004-04-18  Jim Meyering  <jim@meyering.net>
60060
60061         * m4/prereq.m4: Don't forbid jm_ prefix.
60062
60063         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60064         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60065         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60066         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60067         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60068         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60069         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60070         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60071         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60072         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60073         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60074         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60075         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60076         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60077         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60078         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60079         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60080         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60081         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60082
60083 2004-04-18  Jim Meyering  <jim@meyering.net>
60084
60085         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60086         failure, don't leak memory and do call END_UTMP_ENT.
60087
60088 2004-04-16  Jim Meyering  <jim@meyering.net>
60089
60090         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60091         coreutils' stat program.
60092         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60093
60094 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60095
60096         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60097         C89.
60098         (CHAR_BIT): Remove, since we assume C89.
60099         Include <stdint.h> if available, as per current Autoconf CVS advice.
60100
60101 2004-03-31  Jim Meyering  <jim@meyering.net>
60102
60103         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60104         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60105         * m4/xalloc.m4: Likewise.
60106
60107 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60108
60109         Merge from coreutils.
60110
60111         * m4/inttostr.m4: New file.
60112         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60113         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60114         Require gl_CLOCK_TIME.
60115         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60116
60117 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60118
60119         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60120         not bool, to be more consistent with Unix conventions.
60121         Suggested by Bruno Haible.
60122
60123         Merge from coreutils.
60124
60125         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60126         * lib/umaxtostr.c: New files.
60127
60128         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60129         the usual <time.h> dance.
60130         (get_date): Change signature to support fractional time stamps.
60131         All callers changed.
60132         * lib/getdate.y: Include "getdate.h" first, as we can now
60133         assume C89 and don't need to worry about 'const'.
60134         Similarly, include "unlocked-io.h" near start, not in middle.
60135         Include <limits.h>.
60136         (textint.value): Use long int rather than int.
60137         (textint.digits): Use size_t rather than int.
60138         (BILLION, LOG10_BILLION): New constants.
60139         (parser_control): New member rel_ns.  Members day_ordinal,
60140         time_zone, month, day, hour, minutes, rel_year, rel_month,
60141         rel_day, rel_hour, rel_minutes, rel_seconds
60142         are now long int, not int.  Member seconds is now struct timespec,
60143         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60144         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60145         not int.
60146         (%union.intval): Now long int, not int.
60147         New member timespec.
60148         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60149         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60150         (spec): Now is a timespec or an item list.
60151         (timespec, items): New nonterminals.
60152         (time, rel, relunit, number, get_date):
60153         Add support for fractional seconds.
60154         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60155         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60156         (to_hour): First arg is now long int, not int.
60157         (to_year): Returns long int, not int.
60158         Don't treat year -70 like 70.
60159         (tm_diff): Returns long int, not int.
60160         (lookup_word): Use bool instead of int when appropriate.
60161         (yylex): Use size_t for count, not int.
60162         Detect overflow when parsing large integer constants.
60163         Add support for fractions.
60164         (get_date): Make pointers 'const' if possible.
60165         Use more-portable code to detect integer overflow.
60166         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60167         Don't use ctime; it's not reliable if the year has >4 digits.
60168
60169         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60170         This is for compatibility with BSD.
60171
60172         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60173         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60174         From coreutils' system.h.
60175
60176         * lib/userspec.c: Don't include "posixver.h".
60177         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60178         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60179         compatible extension.  Simplify code by removing a boolean int
60180         that was always nonzero if a string was nonnull.
60181
60182 2004-03-30  Jim Meyering  <jim@meyering.net>
60183
60184         Merge from coreutils.
60185
60186         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60187         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60188         on some systems one must include <grp.h> before it.
60189         Reported by Christian Krackowizer.
60190
60191 2004-03-30  Jim Meyering  <jim@meyering.net>
60192
60193         Merge from coreutils.
60194
60195         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60196
60197         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60198         an empty input stream.
60199
60200         * lib/readtokens.c: Include <stdbool.h>.
60201         (readtoken): Use `size_t' rather than int/long.
60202         All callers adjusted.
60203         Use `bool' rather than `int' where appropriate.
60204         Use memset rather than an explicit loop.
60205         Use x2nrealloc rather than xrealloc.
60206         Allow the use of `\0' as a delimiter.
60207         (readtokens): Likewise.
60208         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60209
60210 2004-03-30  Jim Meyering  <jim@meyering.net>
60211
60212         * m4/realloc.m4: Remove file, since now it does no more than
60213         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60214         the `configure.ac' section of module/realloc.
60215         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60216
60217 2004-03-30  Bruno Haible  <bruno@clisp.org>
60218
60219         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60220         nonnull.
60221
60222 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60223
60224         Merge changes to getloadavg.c from coreutils and Emacs.
60225
60226         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60227         Define to an expression, not to the empty string.
60228         Include cloexec.h and xalloc.h.
60229         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60230         Use set_cloexec_flag rather than rolling our own.
60231         * lib/cloexec.c, lib/cloexec.h: New files.
60232
60233 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60234
60235         * m4/cloexec.m4: New file.
60236
60237 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60238
60239         * lib/getopt.h: Sync with libc CVS.
60240
60241 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60242             Bruno Haible  <bruno@clisp.org>
60243
60244         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60245         mbswidth.
60246
60247 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60248             Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/mbswidth.h: Include <wchar.h> only if
60251         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60252         <wchar.h>.
60253         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60254
60255 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60256
60257         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60258         Sync with libc CVS.
60259         * lib/getopt_int.h: New file, also synced from libc.
60260
60261 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60262
60263         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60264         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60265         Bring back getopt.c, getopt.h, getopt1.c.
60266
60267 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60268
60269         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60270         All uses changed.  Check for sa_sigaction member; this fixes
60271         a bug first reported by Jason Andrade in
60272         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60273
60274 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60275
60276         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60277         '#if' expressions.  Unlike the code it replaces, it does not
60278         depend on (defined _SC_PAGESIZE).  However, it does depend on
60279         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60280         first reported by Jason Andrade in
60281         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60282
60283 2004-02-25  Simon Josefsson  <jas@extundo.com>
60284
60285         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60286
60287 2004-02-25  Simon Josefsson  <jas@extundo.com>
60288
60289         * lib/strdup.h: New file.
60290         * lib/strdup.c: Include it.
60291         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60292         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60293
60294 2004-02-23  Karl Berry  <karl@gnu.org>
60295
60296         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60297         (from fencepost.gnu.org:/gd/gnuorg).
60298
60299 2004-02-23  Karl Berry  <karl@gnu.org>
60300
60301         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60302         * config/srclist.txt: add maintain/standards documents.
60303
60304 2004-02-18  Bruno Haible  <bruno@clisp.org>
60305
60306         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60307         Reported by Derek Robert Price <derek@ximbiot.com>.
60308
60309 2004-02-16  Karl Berry  <karl@gnu.org>
60310
60311         * config/mkinstalldirs, install-sh: update from automake.
60312
60313 2004-02-06  Karl Berry  <karl@gnu.org>
60314
60315         * m4/po.m4: update from gettext 0.14.1.
60316
60317 2004-02-06  Karl Berry  <karl@gnu.org>
60318
60319         * lib/config.charset: update from gettext 0.14.1.
60320
60321 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60322
60323         Add comments and code, prompted by suggestions from Bruno Haible
60324         for sh-quote.
60325         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60326         describing the enum quoting_style values.
60327         * lib/quotearg.c (quotearg_alloc): New function.
60328         (quotearg_buffer_restyled): Treat lone { and } as special.
60329         Treat = as special.  Work around bug with older shells
60330         that "see" a '\' that is really the 2nd byte of a multibyte char.
60331         Quote empty string with shell_quoting_style.
60332
60333 2004-02-03  Bruno Haible  <bruno@clisp.org>
60334
60335         * m4/pipe.m4: New file, from GNU gettext.
60336
60337 2004-02-03  Bruno Haible  <bruno@clisp.org>
60338
60339         * lib/pipe.h: New file, from GNU gettext.
60340         * lib/pipe.c: New file, from GNU gettext.
60341
60342 2004-01-27  Bruno Haible  <bruno@clisp.org>
60343
60344         * m4/execute.m4: New file, from GNU gettext.
60345
60346 2004-01-27  Bruno Haible  <bruno@clisp.org>
60347
60348         * lib/execute.h: New file, from GNU gettext.
60349         * lib/execute.c: New file, from GNU gettext.
60350         * lib/w32spawn.h: New file, from GNU gettext.
60351
60352 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60353
60354         Merge from diffutils.
60355
60356         * lib/file-type.c (file_type): Add typed memory objects.
60357         * lib/file-type.h (S_TYPEISTMO): New macro.
60358
60359         * lib/c-stack.h (c_stack_action): Remove argv argument.
60360         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60361         (die): Don't calculate message unless segv_action returns.
60362         (get_stack_location, min_address_from_argv, max_address_from_argv,
60363         volatile stack_base, volatile_stack_size): Remove.
60364         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60365         that every segmentation violation is a stack overflow.  (Ouch!)
60366         See Debian bug 136249 (still outstanding) for more info about why
60367         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60368
60369 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60370
60371         Exit-status fix from coreutils.
60372
60373         Use exit_failure consistently in place of EXIT_FAILURE,
60374         so that program exit statuses are consistent on failure.
60375
60376         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60377         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60378         * lib/argmatch.h: Comment fix to match the above.
60379         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60380         Now a macro referring to exit_failure, instead of a separate
60381         variable.  Include "exitfail.h" to get it.
60382         * lib/xstrtol.h: Include "exitfail.h".
60383         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60384
60385         * lib/long-options.c (parse_long_options): Use prototype
60386         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60387         for clarity.
60388
60389 2004-01-21  Jim Meyering  <jim@meyering.net>
60390
60391         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60392         so as not to conflict with a different-sized __mktime_internal
60393         function in GNU libc.
60394         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60395         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60396
60397 2004-01-20  Karl Berry  <karl@gnu.org>
60398
60399         * config/config.guess: update from config.
60400
60401         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60402
60403 2004-01-20  Bruno Haible  <bruno@clisp.org>
60404
60405         Safer stack allocation.
60406         * lib/setenv.c: Include allocsa.h.
60407         (alloca): Remove fallback definition.
60408         (freea): Remove macro.
60409         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60410         instead of freea.
60411
60412 2004-01-20  Bruno Haible  <bruno@clisp.org>
60413
60414         * m4/eealloc.m4: New file, from GNU gettext.
60415
60416 2004-01-20  Bruno Haible  <bruno@clisp.org>
60417
60418         * m4/allocsa.m4: New file, from GNU gettext.
60419
60420 2004-01-20  Bruno Haible  <bruno@clisp.org>
60421
60422         * lib/xallocsa.h: New file, from GNU gettext.
60423         * lib/xallocsa.c: New file, from GNU gettext.
60424
60425 2004-01-20  Bruno Haible  <bruno@clisp.org>
60426
60427         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60428
60429 2004-01-20  Bruno Haible  <bruno@clisp.org>
60430
60431         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60432         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60433         specially.
60434
60435 2004-01-20  Bruno Haible  <bruno@clisp.org>
60436
60437         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60438         patch.
60439
60440 2004-01-20  Bruno Haible  <bruno@clisp.org>
60441
60442         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60443
60444 2004-01-20  Bruno Haible  <bruno@clisp.org>
60445
60446         * lib/eealloc.h: New file.
60447
60448 2004-01-20  Bruno Haible  <bruno@clisp.org>
60449
60450         * lib/binary-io.h: Avoid warnings on Cygwin.
60451
60452 2004-01-20  Bruno Haible  <bruno@clisp.org>
60453
60454         * lib/allocsa.h: New file, from GNU gettext.
60455         * lib/allocsa.c: New file, from GNU gettext.
60456
60457 2004-01-18  Karl Berry  <karl@gnu.org>
60458
60459         * doc/gpl.texi, doc/lgpl.texi: new files.
60460
60461 2004-01-18  Karl Berry  <karl@gnu.org>
60462
60463         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60464         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60465
60466 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60467
60468         Merge from coreutils.
60469
60470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60471         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60472         (gl_DEFAULT_POSIX2_VERSION): Move
60473         the documentation from 'configure' into 'config.hin',
60474         so that 'configure --help' isn't burdened by it and
60475         we don't have to worry about its formatting there.
60476         Reword the documentation so that it's more succinct
60477         and can be run together into a single paragraph.
60478         * m4/same.m4 (gl_SAME): Check for pathconf.
60479
60480 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60481
60482         Merge from coreutils.
60483
60484         * lib/posixver.c: Include posixver.h.
60485
60486         * lib/same.c: Include <stdbool.h>, <limits.h>.
60487         (_POSIX_NAME_MAX): Define if not defined.
60488         (MIN): New macro.
60489         (same_name): If file names are silently truncated, report
60490         that the file names are the same if they are the same after
60491         the silent truncation.
60492
60493         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60494         conversion function.
60495         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60496         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60497         longer needed.
60498
60499 2004-01-15  Jim Meyering  <jim@meyering.net>
60500
60501         Merge from coreutils.
60502
60503         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60504         if no library is required.
60505         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60506         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60507         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60508         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60509         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60510         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60511         value, $ac_cv_search_crypt, if it's "none required".
60512         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60513         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60514         not gl_FUNC_GETLOADAVG.
60515         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60516         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60517
60518 2004-01-15  Jim Meyering  <jim@meyering.net>
60519
60520         Merge from coreutils.
60521
60522         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60523         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60524         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60525
60526         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60527         optional configure-time default.
60528
60529         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60530
60531         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60532
60533 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60534
60535         Merge from coreutils.
60536
60537         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60538         value, $ac_cv_search_nanosleep, if it's "none required".
60539
60540 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60541
60542         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60543         with like-named macro in fnmatch.c.
60544         (EXT): Use an internal constant instead.
60545
60546         Merge fnmatch patches from glibc.
60547         * lib/fnmatch.c (mbsinit): Remove define.
60548         Add libc_hidden_ver (__fnmatch, fnmatch).
60549         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
60550         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
60551
60552 2004-01-14  Karl Berry  <karl@gnu.org>
60553
60554         * config/install-sh: update from automake.
60555
60556 2004-01-13  Karl Berry  <karl@gnu.org>
60557
60558         * config/install-sh: update from automake.
60559
60560 2004-01-09  Karl Berry  <karl@gnu.org>
60561
60562         * config/install-sh: update from automake.
60563
60564 2004-01-05  Karl Berry  <karl@gnu.org>
60565
60566         * config/config.{sub,guess}: update from config.
60567
60568 2003-12-31  Karl Berry  <karl@gnu.org>
60569
60570         * config/depcomp: update from automake.
60571
60572 2003-12-14  Karl Berry  <karl@gnu.org>
60573
60574         * lib/config.charset: update from gettext-runtime.
60575
60576 2003-12-03  Paul Eggert  <eggert@twinsun.com>
60577
60578         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
60579         Bug reported by Alfred M. Szmidt.
60580
60581 2003-12-03  Bruno Haible  <bruno@clisp.org>
60582
60583         * m4/gettext.m4: Upgrade from gettext-0.13.
60584         * m4/po.m4: Upgrade from gettext-0.13.
60585         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
60586         * m4/intmax.m4: New file, from gettext-0.13.
60587         * m4/printf-posix.m4: New file, from gettext-0.13.
60588
60589 2003-11-29  Karl Berry  <karl@gnu.org>
60590
60591         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
60592
60593 2003-11-25  Paul Eggert  <eggert@twinsun.com>
60594             Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/printf-parse.h: Don't include sys/types.h.
60597         (ARG_NONE): New macro.
60598         (char_directive): Change type of *arg_index fields to size_t.
60599         * lib/printf-parse.c: Don't include sys/types.h.
60600         (SSIZE_MAX): Remove macro.
60601         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
60602         Remove unnecessary overflow check.
60603         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
60604         fields.
60605
60606 2003-11-25  Bruno Haible  <bruno@clisp.org>
60607
60608         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
60609
60610 2003-11-25  Bruno Haible  <bruno@clisp.org>
60611
60612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
60613         gt_TYPE_SSIZE_T.
60614
60615 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60616
60617         * modules/alloca: Remove dependency on xalloc.
60618
60619 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60620
60621         * lib/alloca.c: Remove dependency on xalloc module.
60622         (xalloc_die): Remove.
60623         (memory_full) [!defined emacs]: New macro.
60624         [!defined emacs]: Don't include xalloc.h.
60625         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
60626         address arithmetic overflows.  Change datatypes a bit to avoid
60627         unnecessary casts.
60628
60629 2003-11-22  Jim Meyering  <jim@meyering.net>
60630
60631         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
60632         s/size/size_t/.
60633
60634 2003-11-21  Karl Berry  <karl@gnu.org>
60635
60636         * config/config.{sub,guess}: update from config.
60637
60638 2003-11-18  Karl Berry  <karl@gnu.org>
60639
60640         * config/config.{sub,guess}: update from config.
60641
60642         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
60643
60644 2003-11-17  Paul Eggert  <eggert@twinsun.com>
60645
60646         * README: Mention that S+T cannot overflow if S is the size of
60647         an existing object and T is sufficiently small.
60648
60649 2003-11-17  Jim Meyering  <jim@meyering.net>
60650
60651         On systems without utime and without a utimes function capable of
60652         dealing with a NULL struct utimbuf* argument, this utime replacement
60653         could -- in unusual circumstances -- leak a file descriptor.
60654         * lib/utime.c: Include <unistd.h> and <errno.h>.
60655         (utime_null): Be sure to close `fd' and to preserve errno.
60656         Reported by Geoff Collyer via Arnold Robbins.
60657
60658 2003-11-17  Bruno Haible  <bruno@clisp.org>
60659
60660         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
60661         (Depends-on): Add xsize.
60662
60663 2003-11-17  Bruno Haible  <bruno@clisp.org>
60664
60665         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
60666
60667 2003-11-17  Bruno Haible  <bruno@clisp.org>
60668
60669         * lib/vasnprintf.c (alloca): Remove fallback definition.
60670         (freea): Remove definition.
60671         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
60672         Reported by Paul Eggert.
60673
60674 2003-11-16  Paul Eggert  <eggert@twinsun.com>
60675             Bruno Haible  <bruno@clisp.org>
60676
60677         Protect against address arithmetic overflow.
60678         * lib/printf-args.h: Include stddef.h.
60679         (arguments): Change type of field 'count' to size_t.
60680         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
60681         'unsigned int' where appropriate.
60682         * lib/printf-parse.h: Include sys/types.h.
60683         (char_directive): Change type of *arg_index fields to ssize_t.
60684         (char_directives): Change type of fields 'count', max_*_length to
60685         size_t.
60686         * lib/printf-parse.c: Include sys/types.h and xsize.h.
60687         (SSIZE_MAX): Define fallback value.
60688         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
60689         instead of 'int' where appropriate. Check a_allocated, d_allocated
60690         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
60691         * lib/vasnprintf.c: Include xsize.h.
60692         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
60693         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
60694         overflow. Avoid wraparound when converting a width or precision from
60695         decimal to binary.
60696
60697 2003-11-16  Bruno Haible  <bruno@clisp.org>
60698
60699         Update from GNU gettext.
60700         * lib/printf-parse.c: Generalize to it can be compiled for wide
60701         strings.
60702         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
60703         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
60704         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
60705         SNPRINTF): New macros.
60706         Don't include <alloca.h> if the file is used inside libintl.
60707         (local_wcslen): New function, for Solaris 2.5.1.
60708         (VASNPRINTF): Use it instead of wcslen.
60709
60710 2003-11-16  Bruno Haible  <bruno@clisp.org>
60711
60712         * lib/xsize.h (xmax): New function.
60713         (xsum, xsum3, xsum4): Declare as "pure" functions.
60714
60715 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60716
60717         * modules/xalloc (Files): Undo latest change, since xalloc.h
60718         no longer needs SIZE_MAX or PTRDIFF_MAX.
60719
60720 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60721
60722         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
60723         gl_PTRDIFF_MAX.
60724
60725 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60726
60727         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
60728         "return", to pacify some unknown compiler.  Problem reported
60729         by Joerg Schilling.
60730
60731 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60732
60733         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
60734         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
60735         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
60736         heuristic is just as accurate as far as we know, and it removes a
60737         dependency on size_max.m4 and ptrdiff_max.m4.
60738
60739 2003-11-11  Bruno Haible  <bruno@clisp.org>
60740
60741         * modules/xsize (Files): Add m4/size_max.m4.
60742         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
60743
60744 2003-11-11  Bruno Haible  <bruno@clisp.org>
60745
60746         * m4/size_max.m4: New file.
60747         * m4/ptrdiff_max.m4: New file.
60748         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
60749         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
60750         (gl_XALLOC): Invoke it.
60751
60752 2003-11-11  Bruno Haible  <bruno@clisp.org>
60753
60754         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
60755         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
60756         defined.
60757
60758 2003-11-10  Paul Eggert  <eggert@twinsun.com>
60759
60760         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
60761         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
60762         rejected some allocations of exactly SIZE_MAX - 2 bytes.
60763         From Bruno Haible.
60764         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
60765         not (size_t) -1, since it's defined here.
60766
60767 2003-11-09  Karl Berry  <karl@gnu.org>
60768
60769         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
60770
60771 2003-11-06  Paul Eggert  <eggert@twinsun.com>
60772
60773         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
60774         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
60775         Reject sizes of exactly SIZE_MAX bytes.
60776         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
60777         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
60778
60779 2003-11-05  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/xsize.h: Include limits.h, to avoid a possible collision with
60782         SIZE_MAX defined in <limits.h> on Solaris.
60783
60784 2003-11-04  Jim Meyering  <jim@meyering.net>
60785
60786         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
60787         variable names, rather than @VAR@.
60788         * modules/poll: Likewise.
60789
60790 2003-11-04  Bruno Haible  <bruno@clisp.org>
60791
60792         * modules/xsize: New file.
60793         * modules/linebreak: Depend on xsize.
60794         * MODULES.html.sh (func_all_modules): Add xsize.
60795
60796 2003-11-04  Bruno Haible  <bruno@clisp.org>
60797
60798         * m4/xsize.m4: New file.
60799
60800 2003-11-04  Bruno Haible  <bruno@clisp.org>
60801
60802         * lib/xsize.h: New file.
60803         * lib/linebreak.c: Include xsize.h.
60804         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
60805         argument for overflow.
60806         Suggested by Paul Eggert.
60807
60808 2003-11-03  Karl Berry  <karl@gnu.org>
60809
60810         * config/config.{guess,sub}: update from config.
60811
60812 2003-11-03  Jim Meyering  <jim@meyering.net>
60813
60814         * modules/userspec (lib_SOURCES): Add userspec.h.
60815         (Include): Add "userspec.h".
60816         Improve description.
60817
60818 2003-11-03  Jim Meyering  <jim@meyering.net>
60819
60820         * lib/userspec.c: Include "userspec.h".
60821         * lib/userspec.h: New file.
60822
60823 2003-11-03  Bruno Haible  <bruno@clisp.org>
60824
60825         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
60826
60827 2003-11-03  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
60830         available, to avoid (extremely rare) race condition.
60831         Suggested by Paul Eggert.
60832
60833 2003-11-02  Karl Berry  <karl@gnu.org>
60834
60835         * config/srclist.txt (vasprintf.c): sync broken, sigh.
60836
60837 2003-10-31  Paul Eggert  <eggert@twinsun.com>
60838
60839         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
60840         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
60841         (read_filesystem_list): Set and use me_type_malloced.
60842         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
60843         whatever the type happens to be), for brevity and consistency.
60844         Check for size calculation overflow on Alphas running OSF/1.
60845
60846 2003-10-31  Jim Meyering  <jim@meyering.net>
60847
60848         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
60849
60850         * lib/linebuffer.c: Include <string.h> for declaration of memset.
60851
60852 2003-10-30  Paul Eggert  <eggert@twinsun.com>
60853             Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
60856         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
60857
60858 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60859
60860         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
60861         netbsd*-gnu*.  Suggested by Robert Millan.
60862
60863 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60864
60865         * modules/group-member: Depend on stdbool.
60866
60867 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60868
60869         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
60870
60871 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60872
60873         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
60874         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
60875         after the 'gnu' in these cases.  This fixes some bugs in the
60876         previous change, and is based on suggestions by Robert Millan.
60877
60878 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60879
60880         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
60881         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
60882         no longer needed.
60883         * lib/quotearg.c (quotearg_n_options): Use it.
60884         * lib/group-member.c: Include <stdbool.h>.
60885         (free_group_info): Arg is now const *; don't free arg.
60886         (get_group_info): Now returns bool and accepts struct group_info *,
60887         rather than returning a malloc'ed struct group_info *.
60888         All uses changed.  Check for overflow in internal size calculation.
60889
60890         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
60891         rather than xmalloc/xrealloc.
60892         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
60893         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
60894         conformance bug: the old code used a pointer after freeing the
60895         storage that it addressed.
60896         * lib/hash.c (hash_initialize): Simplify the code by using
60897         xalloc_oversized rather than doing it by hand.
60898         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
60899         the buffer preserved.  Use free and xmalloc instead.
60900         * lib/quotearg.c (quotearg_n_options): Likewise.
60901         Use a simpler test for size overflow.  Don't use xalloc_oversized
60902         because unsigned int might be wider than size_t (!); this suggests
60903         that we should switch from unsigned int to size_t for slot numbers.
60904
60905 2003-10-28  Paul Eggert  <eggert@twinsun.com>
60906
60907         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
60908         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
60909         NetBSD kernels.  Requested by Richard Stallman.
60910
60911 2003-10-27  Paul Eggert  <eggert@twinsun.com>
60912
60913         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
60914         to allocate the returned structure.  Do not allocate a subarray,
60915         as x2nrealloc will do that.
60916         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
60917         instead of xnrealloc.
60918         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
60919
60920 2003-10-27  Bruno Haible  <bruno@clisp.org>
60921
60922         * lib/stdbool_.h: Better support for BeOS.
60923
60924 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60925
60926         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
60927         now uses inline.
60928
60929 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60930
60931         * lib/xalloc.h (xalloc_oversized): New static inline function, for
60932         callers that want to do their own size-overflow checking.  Include
60933         <stdbool.h>, since xalloc_oversized returns bool.
60934         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
60935         to use xalloc_oversized.
60936
60937         Add two functions x2realloc, x2nrealloc, for programs that grow
60938         arrays dynamically by doubling their sizes.
60939         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
60940         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
60941         New functions.
60942
60943         Port to C99 semantics for 'inline' of external functions.
60944         Bug reported by Bruno Haible.
60945         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
60946         with the old contents of xnmalloc.
60947         (xnmalloc, xmalloc): Use it.
60948         (xnrealloc_inline): New static inline function,
60949         with the old contents of xnrealloc.
60950         (xnrealloc, xrealloc): Use it.
60951
60952         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
60953         that.
60954
60955 2003-10-26  Karl Berry  <karl@gnu.org>
60956
60957         * config/srclist.txt (COPYING.DOC): no longer available from
60958         /gd/gnuorg; don't know where the ultimate source is.
60959
60960 2003-10-25  Paul Eggert  <eggert@twinsun.com>
60961
60962         Fix several address-calculation bugs in the hash modules,
60963         plus some minor code cleanup.
60964
60965         * lib/hash.h: Include <stdbool.h>, for bool.
60966         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
60967         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
60968         hash_get_n_entries, hash_get_max_bucket_length,
60969         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
60970         hash_rehash): Use size_t rather than unsigned.
60971         * lib/hash.c (struct hash_table, hash_get_n_buckets,
60972         hash_get_n_buckets_used, hash_get_n_entries,
60973         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
60974         hash_get_entries, hash_do_for_each, hash_string, is_prime,
60975         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
60976         Likewise.
60977         (SIZE_MAX): Define if not defined.
60978         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
60979         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
60980         hash_print):
60981         Use const * when possible.
60982         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
60983         (check_tuning): Fix bug: if tuning parameters were very close to
60984         0 or 1, rounding errors could have caused subscript violations.
60985         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
60986         (hash_initialize): Add 'fail:' label
60987         to free table and return NULL, and use it to simplify code.
60988         Use calloc rather than clearing the storage ourself.
60989         (hash_initialize, hash_rehash): Check for arithmetic overflow in
60990         buffer size calculations.
60991         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
60992         Include <stddef.h>, for size_t.
60993         * lib/hash-pjw.c (hash_pjw): Likewise.
60994         Switch to method described by Bruno Haible.
60995         Include <limits.h>, for CHAR_BIT.
60996         (SIZE_BITS): New macro.
60997
60998 2003-10-23  Paul Eggert  <eggert@twinsun.com>
60999
61000         * m4/getline.m4 (AM_FUNC_GETLINE):
61001         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61002         hosts.  Problem reported by Derek Robert Price in
61003         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61004         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61005         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61006
61007 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61008
61009         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61010         ceiling the allocation at NMAX bytes rather than silently
61011         discarding input bytes before NMAX is reached.  This makes
61012         a difference only if NMAX exceeds SIZE_MAX / 2.
61013
61014         * lib/obstack.c: Merge from glibc.
61015         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61016         Add libc_hidden_def (_obstack_newchunk).
61017         (_obstack_free) [! defined _LIBC]: Remove.
61018         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61019         a clone of the function body.
61020         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61021         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61022
61023         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61024         glibc.
61025         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61026         arg to memcpy.
61027
61028         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61029         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61030         Don't use lvalue casts, as GCC plans to remove support for them
61031         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61032         was also present in the non-GCC version, indicating that this
61033         code had always been buggy and had never been widely used.
61034         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61035         Use the fast variant of each macro, rather than copying the
61036         definiens of the fast variant; that way, we'll be more likely to
61037         catch future bugs in the fast variants.
61038
61039 2003-10-20  Bruno Haible  <bruno@clisp.org>
61040
61041         * modules/wait-process: New file.
61042         * MODULES.html.sh (func_all_modules): Add wait-process.
61043
61044 2003-10-20  Bruno Haible  <bruno@clisp.org>
61045
61046         * m4/wait-process.m4: New file.
61047
61048 2003-10-20  Bruno Haible  <bruno@clisp.org>
61049
61050         * lib/wait-process.h: New file, from GNU gettext.
61051         * lib/wait-process.c: New file, from GNU gettext.
61052
61053 2003-10-19  Jim Meyering  <jim@meyering.net>
61054
61055         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61056         HPUX 10.20.
61057
61058 2003-10-18  Karl Berry  <karl@gnu.org>
61059
61060         * config/config.guess: update from config.
61061
61062 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61063
61064         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61065         (getgroups): First arg is int, not size_t.
61066         Don't let 'free' mangle errno.
61067
61068 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61069
61070         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61071
61072 2003-10-16  Karl Berry  <karl@gnu.org>
61073
61074         * config/config.{guess,sub}: update from config.
61075
61076 2003-10-16  Jim Meyering  <jim@meyering.net>
61077
61078         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61079         memcpy.
61080
61081 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61082
61083         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61084         (SIZE_MAX): Remove.
61085         (new_exclude, add_exclude_file): Initial size no longer needs to
61086         be a power of 2.
61087         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61088         our own address arithmetic overflow checking.
61089
61090         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61091         (fnmatch): Do not alloca more than 2000 wide characters;
61092         instead, use malloc for large buffers.
61093         Check for address arithmetic overflow, and return -1
61094         with errno set to ENOMEM in that case.
61095         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61096         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61097         instead, return -1.  Check for address arithmetic overflow.
61098
61099 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61100
61101         Handle invalid suffixes and overflow independently, so that
61102         callers can treat them independently as needed.  Fix some bugs in
61103         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61104         suffix for a human-readable blocksize.  The major caller-visible
61105         change is the addition of a new
61106         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61107         that both overflow and suffix chars were found.
61108
61109         * lib/human.c (humblock): Don't check separately for invalid suffix
61110         char; that is xstrtoumax's job (now that its bug is fixed).
61111         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61112         INTMAX_MAX]: New macros.
61113         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61114         TYPE_MAXIMUM): New macros.
61115         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61116         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61117         if overflow occurs, as it's what __strtol does and it's more useful
61118         in practice.
61119         (__xstrtol): If __strtol reports some error other than ERANGE,
61120         reflect it to the caller as LONGINT_INVALID.  If it reports
61121         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61122         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61123         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61124         value.
61125         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61126         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61127         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61128         [defined UINTMAX_MAX]: New macros.
61129
61130 2003-10-14  Bruno Haible  <bruno@clisp.org>
61131
61132         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61133
61134 2003-10-14  Bruno Haible  <bruno@clisp.org>
61135
61136         * m4/sig_atomic_t: New file, from GNU gettext.
61137         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61138
61139 2003-10-14  Bruno Haible  <bruno@clisp.org>
61140
61141         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61142         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61143         Also use volatile where needed.
61144
61145 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61146
61147         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61148         Change maintainer from Bruno Haible to 'all'.
61149
61150 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61151
61152         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61153
61154 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61155
61156         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61157         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61158         and define in terms of the other primitives.
61159         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61160         (SIZE_MAX): Define if not already defined.
61161         (array_size_overflow): New function.
61162         (xalloc_die): Abort instead of exiting if 'error' returns.
61163         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61164         (xmalloc, xrealloc): Use them.
61165         (xcalloc): Check for address arithmetic overflow.
61166         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61167         a bit faster than strcpy.
61168
61169 2003-10-10  Simon Josefsson  <jas@extundo.com>
61170
61171         * modules/argp (Depends-on): Add restrict and strcase.
61172
61173 2003-10-10  Simon Josefsson  <jas@extundo.com>
61174
61175         * m4/argp.m4: Add AC_C_INLINE.
61176
61177 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61178
61179         Merge getpass from libc, plus a few fixes.
61180
61181         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61182         Include <stdbool.h>.
61183         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61184         __fsetlocking to empty.
61185         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61186         do include <bits/libc-lock.h>.
61187         Do not include <fcntl.h>; not needed.
61188         [_LIBC]: Include <wchar.h>.
61189         (NOTCANCEL_MODE): New macro.
61190         (flockfile, funlockfile) [_LIBC]: New macros.
61191         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61192         [!_LIBC]: New macros.
61193         (call_fclose): New function.
61194         (getpass): Use it.  Save tty stream separately; this simplifies the
61195         code and makes it more reliable if stdin happens to equal stdout.
61196         Invoke __fsetlocking on tty.
61197         Handle thread cancellation if needed.
61198         Namespace cleanup (use __tcgetattr, __getline).
61199         Use bool for Booleans.
61200         [USE_IN_LIBIO]: Handle wide streams.
61201         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61202         stream might go where.
61203
61204         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61205         doesn't have to include <stdio.h> before us.
61206         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61207         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61208         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61209         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61210         if not declared, so that we can use getpass.c code from libc without
61211         rewriting it.
61212         (flockfile, ftrylockfile, funlockfile): New macros.
61213
61214 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61215
61216         * modules/getpass: Depend on stdbool.
61217
61218 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61219
61220         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61221
61222 2003-10-07  Karl Berry  <karl@gnu.org>
61223
61224         * config/config.{guess,sub}: update from config.
61225
61226 2003-10-06  Jim Meyering  <jim@meyering.net>
61227             Bruno Haible  <bruno@clisp.org>
61228
61229         This lets translators provide better translations for the
61230         "Written by ..." part of --version output.
61231         * lib/version-etc.h: Include stdarg.h.
61232         (version_etc_copyright): Declare as readonly.
61233         (version_etc): Make this function variadic with a NULL-terminated list
61234         of author name strings.
61235         (version_etc_va): New declaration.
61236         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61237         (version_etc_copyright): Declare as readonly.
61238         (version_etc_va): New function. Provide a different translatable string
61239         for each possible number of authors < 10. Abbreviate when there are 10
61240         authors or more.
61241         (version_etc): Make this function variadic. Call version_etc_va.
61242         Suggestion from Gary V. Vaughan.
61243
61244         * lib/long-options.h (parse_long_options): Change prototype: the
61245         authors string is moved to the end and becomes variadic.
61246         * lib/long-options.c: Include stdarg.h.
61247         (parse_long_options): Make this function variadic, too.
61248         Call version_etc_va, not version_etc.
61249
61250 2003-10-06  Bruno Haible  <bruno@clisp.org>
61251
61252         * modules/version-etc-2: Remove file.
61253         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61254
61255 2003-10-06  Bruno Haible  <bruno@clisp.org>
61256
61257         * modules/fatal-signal: New file.
61258         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61259
61260 2003-10-06  Bruno Haible  <bruno@clisp.org>
61261
61262         * m4/fatal-signal.m4: New file.
61263         * m4/signalblocking.m4: New file, from GNU gettext.
61264
61265 2003-10-06  Bruno Haible  <bruno@clisp.org>
61266
61267         * lib/version-etc-2.h: Remove file.
61268         * lib/version-etc-2.c: Remove file.
61269
61270 2003-10-06  Bruno Haible  <bruno@clisp.org>
61271
61272         * lib/fatal-signal.h: New file, from GNU gettext.
61273         * lib/fatal-signal.c: New file, from GNU gettext.
61274
61275 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61276
61277         * README: Rework advice for preventing empty .o files.
61278         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61279         not <sys/types.h>.
61280
61281 2003-10-04  Karl Berry  <karl@gnu.org>
61282
61283         * lib/argp*: update from libc.
61284
61285 2003-10-04  Karl Berry  <karl@gnu.org>
61286
61287         * config/config.{guess,sub}: update from config.
61288
61289 2003-10-02  Bruno Haible  <bruno@clisp.org>
61290
61291         * modules/lchown (Include): Add lchown.h.
61292         * modules/time_r (Include): Use "..." syntax.
61293         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61294
61295 2003-10-01  Simon Josefsson  <jas@extundo.com>
61296
61297         * MODULES.html.sh (func_all_modules): Move gethostname from section
61298         'based on' to section 'lacking' POSIX:2001.
61299
61300 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61301
61302         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61303         to output mode on the same stream.
61304
61305 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61306
61307         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61308         Fix arg typo in previous patch.
61309
61310 2003-09-28  Jim Meyering  <jim@meyering.net>
61311
61312         * lib/error.c: Correct cpp indentation.
61313
61314 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61315
61316         * modules/free: New file.
61317
61318 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61319
61320         * m4/free.m4: New file.
61321
61322 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61323
61324         * lib/minmax.h (MIN, MAX)
61325         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61326         Omit the special code that used __typeof__, since we worry that
61327         it could be more trouble than it's worth.  See:
61328         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61329         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61330
61331         * lib/free.c: New file.
61332
61333 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61334
61335         Trivial fixes to Makefile.am parts of module listings.
61336         * modules/strstr: Append strstr.h to lib_SOURCES.
61337         * modules/strcase: Likewise, for strcase.h.
61338
61339 2003-09-27  Karl Berry  <karl@gnu.org>
61340
61341         * config/mkinstalldirs: update from automake.
61342
61343 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61344
61345         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61346         (error_tail): Do not loop, reallocating temporary buffer, since
61347         the output cannot contain more wide characters than the input
61348         contains bytes, the size must be big enough already.  This avoids
61349         one potential size overflow calculation.  Check for size overflow
61350         when calculating temporary buffer size.  Free temporary buffer
61351         when done, if it was allocated with malloc; this plugs a memory
61352         leak.  Remove casts from void * to pointers, that are no longer
61353         needed now that we're assuming C89 or better.
61354
61355         Merge error changes from glibc.
61356
61357         * lib/error.c, error.h: Update copyright notice header to match glibc.
61358         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61359         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61360         Disable cancellation while printing error.
61361         * lib/error.h: Prepend __ to parameter names.
61362
61363 2003-09-26  Jim Meyering  <jim@meyering.net>
61364
61365         * lib/error.c (error_tail): Move some declarations
61366         into inner scope where the local variables are used.
61367
61368 2003-09-26  Bruno Haible  <bruno@clisp.org>
61369
61370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61371         stpncpy().
61372         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61373
61374 2003-09-26  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61377         (stpncpy): Define as alias for gnu_stpncpy.
61378         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61379
61380 2003-09-25  Simon Josefsson  <jas@extundo.com>
61381
61382         * lib/xgetdomainname.h: New file.
61383         * lib/xgetdomainname.c: New file.
61384
61385 2003-09-25  Simon Josefsson  <jas@extundo.com>
61386             Bruno Haible  <bruno@clisp.org>
61387
61388         * modules/getdomainname: New file.
61389         * modules/xgetdomainname: New file.
61390         * MODULES.html.sh (func_all_modules): Add getdomainname,
61391         xgetdomainname.
61392
61393 2003-09-25  Simon Josefsson  <jas@extundo.com>
61394             Bruno Haible  <bruno@clisp.org>
61395
61396         * m4/getdomainname.m4: New file.
61397
61398 2003-09-25  Simon Josefsson  <jas@extundo.com>
61399             Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/getdomainname.h: New file.
61402         * lib/getdomainname.c: New file.
61403
61404 2003-09-25  Karl Berry  <karl@gnu.org>
61405
61406         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61407
61408 2003-09-25  Karl Berry  <karl@gnu.org>
61409
61410         * config/install-sh: update from automake.
61411
61412 2003-09-25  Bruno Haible  <bruno@clisp.org>
61413
61414         * modules/version-etc-2: New file, from modules/version-etc with
61415         modifications.
61416         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61417
61418 2003-09-25  Bruno Haible  <bruno@clisp.org>
61419
61420         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61421         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61422
61423 2003-09-24  Simon Josefsson  <jas@extundo.com>
61424
61425         * modules/xgethostname: Add xgethostname.h.
61426
61427 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61428
61429         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61430         the buffer associated with the argument.  Bug reported by
61431         Simon Josefsson.
61432
61433 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61434
61435         * README: Document assumptions that 'int' is at least 32 bits
61436         wide, that integer arithmetic is 2's complement without overflow,
61437         that there are no holes in integer values, that adding sizes of
61438         two nonoverlapping objects can't overflow, and that all-bits-zero
61439         yields scalar zero.  Fix spelling and capitalization typos.
61440
61441 2003-09-19  Karl Berry  <karl@gnu.org>
61442
61443         * lib/argp.h: update from libc.
61444
61445 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61446
61447         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61448         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61449         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61450
61451 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61452
61453         * gnulib-tool: Use "test -h", not "test -L", for portability
61454         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61455         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61456         (sed_extract_prog): Issue s commands one-by-one, rather than
61457         using \| in one s command.
61458
61459 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61460
61461         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61462         input error, instead of returning NULL the next time we are called
61463         (and therefore losing track of errno).
61464
61465 2003-09-16  Bruno Haible  <bruno@clisp.org>
61466
61467         * gnulib-tool (func_create_testdir): Warn about duplicated
61468         dependencies.
61469
61470 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61471
61472         * modules/argmatch, modules/fatal, modules/obstack,
61473         modules/xalloc, modules/xgethostname: Sort dependencies by
61474         importance, not alphabetically.
61475
61476 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61477
61478         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61479         fails, so that the caller gets the proper errno.
61480
61481         * lib/readutmp.c (read_utmp): Likewise.
61482         Check for fstat error.  Close stream and free storage
61483         when failing.
61484
61485 2003-09-14  Karl Berry  <karl@gnu.org>
61486
61487         * config/srclist.txt (strdup.c): disable for c89 changes.
61488
61489 2003-09-14  Jim Meyering  <jim@meyering.net>
61490
61491         * lib/getloadavg.c: Correct cpp indentation.
61492         * lib/strdup.c: Likewise.
61493         * lib/vasnprintf.c: Likewise.
61494
61495 2003-09-14  Bruno Haible  <bruno@clisp.org>
61496
61497         * modules/fwriteerror: New file.
61498         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61499
61500 2003-09-14  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/fwriteerror.h: New file.
61503         * lib/fwriteerror.c: New file.
61504
61505 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61506
61507         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61508         modules/xgethostname, modules/xalloc: Depend on exit.
61509
61510 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61511
61512         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61513
61514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61515         and AC_MINIX, too, so that their extensions are available.
61516
61517         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61518         This macro has been superseded by gl_BACKUPFILE.
61519
61520         More patches to assume C89 or better.
61521
61522         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61523
61524         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61525         unconditionally.
61526         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61527         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61528         Include <string.h>, <stdlib.h> unconditionally.
61529         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61530         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61531         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61532         headers or for string.h.
61533         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61534         or strtoul.
61535
61536         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61537         headers.
61538         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61539         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61540         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61541         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61542         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61543         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61544         memcpy, memset.
61545         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61546         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61547         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
61548         strtol.
61549         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
61550         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
61551         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
61552         strtoul.
61553
61554 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61555
61556         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
61557         * lib/obstack.c [!defined _LIBC]: Likewise.
61558         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
61559         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
61560         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
61561
61562         More changes to assume C89 or better.
61563
61564         * lib/error.c (error_tail): Assume vprintf.
61565
61566         * lib/argmatch.c (getenv): Remove decl.
61567         * lib/progreloc.c (get_full_program_name): Define via prototype.
61568         * lib/setenv.c (clearenv): Likewise.
61569         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
61570         needed.
61571         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
61572         (malloc, memcpy): Remove decls.
61573         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
61574         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
61575         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61576         (memcpy): Remove macro.
61577         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
61578         (__P): Remove.  All uses removed.
61579         (PTR): Remove.  All uses changed to void *.
61580         (CHAR_BIT, NULL): Remove.
61581         (spaces, zeros, memset_space, memset_zero)
61582         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
61583         Remove.
61584         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
61585         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
61586         Define with prototype.
61587         Remove now-unnecessary prototype decl.
61588         (extra_args_spec): Assume ANSI C.  All uses changed.
61589         (extra_args_spec_iso): Remove.
61590         (my_strftime, emacs_strftimeu): Define via prototype.
61591         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
61592         unconditionally.
61593         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
61594         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
61595         (strtoul, strtol): Remove decls.
61596         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
61597         LONG_MAX): Remove.
61598         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61599         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
61600         (LOCALE_PARAM_PROTO): New macro.
61601         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
61602         (INTERNAL (strtol), strtol): Define with a prototype.
61603         (PARAMS): Remove.  All uses removed.
61604         * lib/tempname.c: Include <string.h> unconditionally.
61605         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
61606         * lib/xgethostname.c (main): Define with a prototype.
61607         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
61608         Include <stdlib.h> unconditionally.
61609         (calloc, malloc, realloc, free): Remove decls.
61610         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
61611         Include <stdlib.h> unconditionally.  Sort include file names.
61612         (strtod): Remove.
61613         (xstrtod): Define with a prototype.
61614         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
61615         (strtol, strtoul): Remove decls.
61616
61617 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61618
61619         More patches to assume C89 or better.
61620         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
61621         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
61622         string.h, memchr, STDC_HEADERS.
61623
61624 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61625
61626         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
61627         Include <stdlib.h>, <string.h> unconditionally.
61628         Remove now-unnecessary cast to char *.
61629         * lib/strnlen.c: Include <string.h> unconditionally.
61630         * lib/yesno.c (yesno): Define with a prototype.
61631
61632 2003-09-11  Bruno Haible  <bruno@clisp.org>
61633
61634         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
61635
61636 2003-09-10  Jim Meyering  <jim@meyering.net>
61637
61638         * lib/error.c: Correct indentation of cpp directives.
61639
61640 2003-09-10  Bruno Haible  <bruno@clisp.org>
61641
61642         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
61643         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
61644         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
61645         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
61646         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
61647         <stdlib.h> and <string.h> checks.
61648         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
61649         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
61650
61651 2003-09-10  Bruno Haible  <bruno@clisp.org>
61652
61653         * lib/strcspn.c: Include <string.h> unconditionally.
61654         * lib/strpbrk.c: Include <string.h> unconditionally.
61655         * lib/strstr.c: Include <string.h> unconditionally.
61656         * lib/unicodeio.c: Include <string.h> unconditionally.
61657         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
61658         * lib/unsetenv.c: Likewise.
61659         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
61660         * lib/yesno.c: Include <stdlib.h> unconditionally.
61661         (rpmatch): Add prototype.
61662
61663 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61664
61665         More patches to assume C89 or better.
61666         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
61667         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
61668         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
61669         or for string.h.
61670         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
61671         stdlib.h.
61672         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
61673         C headers.
61674         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
61675         string.h.
61676         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
61677         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
61678         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
61679         or for string.h.
61680         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
61681         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
61682         C headers.
61683         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
61684         memcpy.
61685         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
61686         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
61687         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
61688         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
61689         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
61690         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
61691         string.h, free.
61692         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
61693         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
61694         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
61695         C headers, or for string.h.
61696         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
61697         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
61698         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
61699         headers, memory.h, stdlib.h, string.h, strings.h.
61700         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
61701         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
61702         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
61703         strchr.
61704         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
61705         headers, memory.h, string.h.
61706         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
61707         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
61708         free.
61709         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
61710         headers.
61711         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
61712         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
61713         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
61714         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
61715         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
61716
61717 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61718
61719         More K&R removal.
61720
61721         * lib/acosl.c (main): Use a prototype.
61722         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
61723         tanl.c: Likewise.
61724
61725         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
61726
61727         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
61728         (getopt, etopt_long, getopt_long_only, _getopt_internal)
61729         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
61730         with a prototype.
61731         * lib/getopt.c (const): Remove macro.
61732         Include <string.h> unconditionally.
61733         (my_index): Remove; all uses changed to strchr.
61734         (strlen): Remove decl.
61735         (exchange): Remove forward decl; no longer needed.
61736         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
61737         Define with prototype.
61738         * lib/getopt1.c (const): Remove macro.
61739         (getopt_long, getopt_long_only, main): Define with prototype.
61740
61741         * lib/getugroups.c: Include <string.h> unconditionally.
61742
61743         * lib/getusershell.c: Include <stdlib.h> unconditionally.
61744         (getusershell, setusershell, endusershell, readname, main):
61745         Define with prototypes.
61746
61747         * lib/group-member.c: Include group-member.h first.
61748         Include <stdlib.h> unconditionally.
61749
61750         * lib/hard-locale.c: Include hard-locale.h first.
61751         Include <stdlib.h>, <string.h> unconditionally.
61752
61753         * lib/hash.c (free, malloc): Remove decls.
61754         Include <stdlib.h> unconditionally.
61755
61756         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
61757         (getenv): Do not declare.
61758
61759         * lib/idcache.c: Include <string.h> unconditionally.
61760
61761         * lib/long-options.c: Include long-options.h first, to test interface.
61762         Include <stdlib.h> unconditionally.
61763
61764         * lib/makepath.c: Include makepath.h first, to test interface.
61765         Include <stdlib.h> and <string.h> unconditionally.
61766
61767         * lib/linebuffer.c: Include <stdlib.h>.
61768         (free): Remove decl.
61769
61770         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
61771         stddef.h. rpl_malloc returns void *, not char *.
61772         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
61773         prototype.
61774
61775         * lib/md5.h: Include <limits.h> unconditionally.
61776         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
61777         (__P): Remove; all uses removed.
61778         * lib/md5.c: Include "md5.h" first.
61779         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
61780         md5_buffer, md5_process_bytes, md5_process_block):
61781         Define with prototypes.
61782         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
61783         * lib/sha.c: Include "sha.h" first.
61784         Include <stdlib.h>, <string.h> unconditionally.
61785
61786         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
61787         * lib/memcmp.c (__ptr_t): Likewise.
61788         * lib/memrchr.c (__ptr_t): Likewise.
61789         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
61790         Include <string.h> unconditionally.
61791         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
61792         * lib/memchr.c: Include <stdlib.h> unconditionally.
61793         * lib/memchr.c (LONG_MAX): Remove.
61794         * lib/memrchr.c (LONG_MAX): Likewise.
61795         * lib/memchr.c (__memchr): Define via a prototype.
61796         * lib/memrchr.c (__memrchr): Likewise.
61797         * lib/memcmp.c (__P): Remove, and remove all uses.
61798         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
61799         Remove forward decls; no longer needed.
61800         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
61801         Use types required by C89 in prototype.
61802
61803         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
61804         * lib/savedir.c: Likewise.
61805         * lib/mkdir.c (free): Remove decl.
61806         * lib/rmdir.c (rmdir): Define with a prototype.
61807         * lib/savedir.c: Include savedir.h first, to test interface.
61808
61809         * lib/mktime.c (STDC_HEADERS): Remove.
61810         Include <stdlib.h>, <string.h> unconditionally.
61811
61812         * lib/modechange.c: Include <stdlib.h> unconditionally.
61813         (malloc): Remove decl.
61814
61815         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
61816         (free): Remove decl.
61817
61818         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
61819         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
61820         (This type really should be intptr_t, but that's a C99ism.)
61821         (_obstack_memcpy): Remove: all uses changed to memcpy.
61822         Include <string.h> unconditionally.
61823         (struct obstack): Assume __STDC__ for types of members
61824         chunkfun, freefun, extra_arg.
61825         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
61826         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
61827         obstack_begin, obstack_specify_allocation,
61828         obstack_specify_allocation_with_arg, obstack_chunkfun,
61829         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
61830         Remove unprototyped decls and the macros that use them.
61831         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
61832         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
61833         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
61834         (defined __STDC__ && __STDC__)]:
61835         Remove nonprototyped code.
61836         Include <stdlib.h> unconditionally.
61837         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
61838         _obstack_allocated_p, _obstack_free, obstack_free,
61839         _obstack_memory_used, print_and_abort):
61840         Define using prototypes.
61841         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
61842         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
61843         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
61844         obstack_next_free, obstack_object_size, obstack_room) [0]:
61845         Remove unused, unprototyped code.
61846
61847         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
61848
61849         * lib/physmem.c (physmem_total, physmem_available, main): Define
61850         with prototypes.
61851
61852         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
61853         (main): Define with a prototype.
61854
61855         * lib/posixver.c (getenv): Remove decl.
61856
61857         * lib/putenv.c (malloc): Returns void *, not char *.
61858         Include <string.h> unconditionally.
61859         (strchr, memcpy, NULL): Do not define.
61860
61861         * lib/readtokens.c: Include readtokens.h first, to test interface.
61862         Include <stdlib.h>, <string.h> unconditionally.
61863         (init_tokenbuffer): Define with a prototype.
61864
61865         * lib/regex.c (PARAMS): Remove.  All uses removed.
61866         All uses of _RE_ARGS removed, too.
61867         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61868         unconditionally.
61869         (bzero): Assume memset exists.
61870         (memcmp, memcpy, NULL): Remove.
61871         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
61872         char, or assignments to local vars of type signed char.
61873         (init_syntax_once, PREFIX(extract_number_and_incr),
61874         PREFIX(print_partial_compiled_pattern),
61875         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
61876         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
61877         PREFIX(regex_grow_registers), PREFIX(regex_compile),
61878         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
61879         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
61880         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
61881         wcs_compile_range, byte_compile_range, truncate_wchar,
61882         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
61883         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
61884         count_mbs_length, wcs_re_match_2_internal,
61885         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
61886         PREFIX(alt_match_null_string_p),
61887         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
61888         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
61889         regfree, PREFIX(extract_number)): Define with prototype.  Remove
61890         now-unnecessary declaration, if any.
61891         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
61892         regcomp, regexec):
61893         Remove now-unnecessary casts among pointer types.
61894         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
61895
61896         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
61897         (free): Remove decl.
61898
61899         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
61900
61901         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
61902         (free): Remove decl.
61903
61904         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
61905         * lib/xgetcwd.c: Likewise.
61906
61907         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
61908         (free): Remove decl.
61909
61910         * lib/strchrnul.c (strchrnul): Define with a prototype.
61911         Fix bug: c_in was not converted to char before searching.
61912
61913         The following changes are not K&R related:
61914
61915         * lib/group-member.h: Include <sys/types.h>, so that this file is
61916         self-contained.
61917         * lib/makepath.h: Likewise.
61918
61919         * lib/getusershell.c (readname, default_index, line_size, readname):
61920         Use size_t, not int, for sizes.
61921         (readname): If the size overflows, report an error instead of
61922         looping forever.
61923
61924 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61925
61926         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
61927         libc.
61928
61929 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61930
61931         * README: New section: portability guidelines.
61932
61933 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61934
61935         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
61936         C89 spec.
61937
61938 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61939
61940         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
61941
61942 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61943
61944         Assume C89 or better; remove K&R cruft.
61945         A few of these changes were first proposed by Derek Robert Price
61946         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
61947
61948         * lib/addext.c: Include <string.h> unconditionally.
61949         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
61950         Don't declare getenv or malloc.
61951
61952         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
61953         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
61954         (NULL): Remove.
61955         (find_stack_direction, alloca): Use prototypes.
61956
61957         * lib/atexit.c (atexit): Define using a prototype.
61958
61959         * lib/basename.c, dirname.c, stripslash.c:
61960         Include <string.h> unconditionally.
61961
61962         * lib/bcopy.c: Include <stddef.h>.
61963         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
61964
61965         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
61966
61967         * lib/error.h (error, error_at_line, error_print_progname)
61968         [! (defined (__STDC__) && __STDC__)]: Remove decls.
61969         * lib/error.c: Include error.h first, to check interface.
61970         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61971         (VA_START): Remove; all uses changeed to va_start.
61972         (exit, strerror): Remove decls.
61973         (error_print_progname): Prototype uncondionally.
61974         Don't include <errno.h>; no longer needed.
61975         (private_strerror): Remove.
61976         (error_tail): Always define.
61977         (error, error_at_line): Assume C89 or better; always use prototypes.
61978         * lib/fatal.c: Include "fatal.h" first, to test interface.
61979         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61980         (VA_START): Remove; all uses changed to va_start.
61981         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
61982         this case.
61983         (exit): Remove decl.
61984         (fatal): Prototype unconditionally.  Assume va_start works.
61985         Abort at end, to pacify gcc.
61986
61987         * lib/euidaccess.c (main): Define with a prototype.
61988
61989         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
61990
61991         * lib/exitfail.c: Include <stdlib.h> unconditionally.
61992
61993         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
61994         prototypes.
61995         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
61996         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
61997         (getenv): Remove decl.
61998         (fnmatch): Define using a prototype.
61999         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62000         (FCT): Define using a prototype.
62001
62002         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62003
62004         * lib/gethostname.c: Include <stddef.h>.
62005         (gethostname): Define with prototype.  Length is size_t, not int.
62006
62007 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62008
62009         Assume C89 or better; remove K&R cruft.
62010         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62011         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62012         string.h, getenv, malloc.
62013         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62014         headers.
62015         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62016         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62017         do not check for strerror.
62018         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62019         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62020         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62021         do not check for doprnt or vprintf.
62022         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62023         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62024
62025 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62026
62027         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62028         getversion.c should have been removed then, but was accidentally
62029         preserved.
62030
62031         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62032         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62033
62034 2003-09-08  Karl Berry  <karl@gnu.org>
62035
62036         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62037                 config, forget about prep.
62038
62039         * config/depcomp, missing: update from automake.
62040
62041 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62042
62043         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62044         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62045
62046 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62047
62048         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62049         copy_tm_result.  Bug reported by Simon Josefsson in
62050         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62051
62052 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62053
62054         * m4/time_r.m4: New file.
62055         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62056         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62057         is. Check for timegm declaration.
62058         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62059         Do not check for gmtime_r.
62060         Replace mktime if __mktime_internal does not exist and if mktime
62061         hasn't been replaced already.
62062
62063 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62064
62065         * lib/time_r.c, lib/time_r.h: New files.
62066
62067         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62068         __localtime_r.
62069         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62070         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62071
62072         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62073         __gmtime_r.
62074         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62075         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62076         Include <time_r.h>.
62077
62078         * lib/timegm.c: Switch to glibc implementation, with the following
62079         changes:
62080         [defined HAVE_CONFIG_H]: Include <config.h>.
62081         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62082         (__mktime_internal) [!defined _LIBC]: New decl.
62083         (__gmtime_r) [!defined _LIBC]: New macro and function.
62084         (timegm): Use a prototype, since gnulib assumes C89.
62085         Do not bother declaring tmp to be const, as it's not really usefu.
62086         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62087         (timegm): Declare only if HAVE_DECL_TIMEGM.
62088
62089 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62090
62091         * MODULES.html.sh (func_all_modules): Add time_r.
62092         * modules/time_r: New file.
62093         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62094         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62095
62096 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62097
62098         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62099         Bug reported by Lute Kamstra in
62100         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62101
62102         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62103         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62104         course with correspondingly smaller numbers for tomorrow and
62105         yesterday.  From Tadayoshi Funaba.  Originally installed into
62106         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62107         coreutils merge?).
62108
62109 2003-08-31  Simon Josefsson  <jas@extundo.com>
62110
62111         * modules/timegm: New file.
62112         * MODULES.html.sh (func_all_modules): Add timegm.
62113
62114 2003-08-31  Simon Josefsson  <jas@extundo.com>
62115
62116         * m4/timegm.m4: New file.
62117
62118 2003-08-31  Simon Josefsson  <jas@extundo.com>
62119
62120         * lib/timegm.h: New file.
62121         * lib/timegm.c: New file.  Based on
62122         wget-1.8.2/src/http.c:mktime_from_utc.
62123
62124 2003-08-31  Karl Berry  <karl@gnu.org>
62125
62126         * lib/argp.h: update from libc.
62127
62128 2003-08-28  Bruno Haible  <bruno@clisp.org>
62129
62130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62131         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62132         followed by '#define fnmatch fnmatch_posix' gives an error.
62133
62134 2003-08-28  Bruno Haible  <bruno@clisp.org>
62135
62136         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62137         warning on QNX, which defines O_BINARY to 000000.
62138
62139 2003-08-27  Jim Meyering  <jim@meyering.net>
62140
62141         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62142         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62143         would fail after 32.  Reported by Danny Levinson.  Details here:
62144         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62145
62146 2003-08-24  Bruno Haible  <bruno@clisp.org>
62147
62148         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62149         MSVC7 <stdio.h> is included later.
62150
62151 2003-08-22  Simon Josefsson  <jas@extundo.com>
62152
62153         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62154
62155 2003-08-20  Karl Berry  <karl@gnu.org>
62156
62157         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62158
62159 2003-08-20  Bruno Haible  <bruno@clisp.org>
62160
62161         * modules/progname: New file.
62162         * MODULES.html.sh (func_all_modules): Add progname.
62163
62164 2003-08-20  Bruno Haible  <bruno@clisp.org>
62165
62166         * lib/progname.h: New file, from GNU gettext.
62167         * lib/progname.c: New file, from GNU gettext.
62168         * lib/progreloc.c: New file, from GNU gettext.
62169
62170 2003-08-19  Jim Meyering  <jim@meyering.net>
62171
62172         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62173         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62174
62175 2003-08-19  Bruno Haible  <bruno@clisp.org>
62176
62177         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62178         more.
62179
62180 2003-08-19  Bruno Haible  <bruno@clisp.org>
62181
62182         * lib/xstrdup.c: Assume <string.h> exists.
62183
62184 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62185
62186         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62187         in makefile rules.
62188
62189 2003-08-18  Jim Meyering  <jim@meyering.net>
62190
62191         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62192         * m4/lib-ld.m4: Likewise.
62193
62194 2003-08-18  Jim Meyering  <jim@meyering.net>
62195
62196         * lib/setenv.h: Indent nested cpp directive.
62197         * lib/vasnprintf.c: Remove trailing blanks.
62198
62199 2003-08-17  Simon Josefsson  <jas@extundo.com>
62200
62201         * modules/xstrndup: New file.
62202         * MODULES.html.sh (func_all_modules): Add xstrndup.
62203
62204 2003-08-17  Simon Josefsson  <jas@extundo.com>
62205
62206         * modules/argp: Fix autoconf macro name. Add more dependencies.
62207
62208 2003-08-17  Simon Josefsson  <jas@extundo.com>
62209
62210         * m4/xstrndup.m4: New file.
62211
62212 2003-08-17  Simon Josefsson  <jas@extundo.com>
62213
62214         * m4/argp.m4: New file.
62215
62216 2003-08-17  Simon Josefsson  <jas@extundo.com>
62217             Bruno Haible  <bruno@clisp.org>
62218
62219         * lib/xstrndup.h: New file.
62220         * lib/xstrndup.c: New file.
62221
62222 2003-08-17  Bruno Haible  <bruno@clisp.org>
62223
62224         * modules/strndup (Files, Include): Add lib/strndup.h.
62225
62226 2003-08-17  Bruno Haible  <bruno@clisp.org>
62227
62228         * modules/euidaccess (Files): Add lib/euidaccess.h.
62229
62230 2003-08-17  Bruno Haible  <bruno@clisp.org>
62231
62232         * lib/strndup.h: New file.
62233
62234 2003-08-17  Bruno Haible  <bruno@clisp.org>
62235
62236         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62237         like AC_GNU_SOURCE.
62238         * modules/extensions (configure.ac): Comment out the invocation of
62239         gl_USE_SYSTEM_EXTENSIONS.
62240
62241 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62242
62243         Merges from coreutils, etc.
62244         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62245         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62246         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62247         fixing a typo.
62248         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62249         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62250
62251 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62252
62253         Document merge from coreutils.
62254         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62255         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62256         * modules/utime: Add m4/utimes-null.m4.
62257
62258 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62259
62260         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62261         space, undoing this 2003-08-12 change:
62262         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62263
62264 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62265
62266         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62267         strtoul.c from libc, undoing this 2003-08-12 change:
62268         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62269
62270 2003-08-16  Jim Meyering  <jim@meyering.net>
62271
62272         Merges from coreutils.
62273         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62274         prefix.  Adjust cache variables similarly.  Create 500 rather than
62275         just 300 files, to exercise bug on Darwin6.5, too.
62276         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62277         $missing_dir.
62278         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62279         AM_SYS_POSIX_TERMIOS.
62280         Reported by mkc@mathdogs.com.
62281         Also change use of $am_cv_sys_posix_termios
62282         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62283         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62284         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62285         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62286         in /proc/mounts until it finds one with matching device number.  This
62287         is unnecessary when the FILE argument *is* a mount point.  No stat call
62288         is necessary in that case.  So, disable the statvfs-testing code on
62289         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62290         as RedHat bug# 84846.
62291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62292         to 1MB, so as not to render systems with no stack size limit (e.g.,
62293         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62294         Include <unistd.h>.  On some systems,
62295         it is required for the definition of _SC_PAGESIZE.
62296
62297 2003-08-16  Jim Meyering  <jim@meyering.net>
62298
62299         Merge from coreutils.
62300         * lib/xstrtoimax.c: #else #if -> #elif.
62301         * lib/xstrtoumax.c: Likewise.
62302
62303 2003-08-16  Jim Meyering  <jim@meyering.net>
62304
62305         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62306         * m4/utimes.m4: Removed.
62307         * m4/utimes-null.m4: Renamed from utimes.m4.
62308
62309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62310         to 1MB, so as not to render systems with no stack size limit (e.g.,
62311         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62312         Include <unistd.h>.  On some systems,
62313         it is required for the definition of _SC_PAGESIZE.
62314
62315 2003-08-16  Jim Meyering  <jim@meyering.net>
62316         and Paul Eggert  <eggert@cs.ucla.edu>
62317
62318         Merges from coreutils, etc.
62319
62320         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62321         using the latest version from cvs.  This avoids problems with #line
62322         directives using a vendor (Sun) compiler.
62323         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62324         Don't set GETGROUPS_LIB here; now it's
62325         done via getgroups.m4's wrapper function.
62326         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62327         rather than just in sh-util/configure.in, so that the
62328         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62329         same.
62330         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62331         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62332         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62333         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62334         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62335         Remove code that is now done by the newly-required macros.
62336         Append $(EXEEXT) to DF_PROG.
62337         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62338         Do not invoke or require the following here,
62339         since prereq.m4 or some gnulib .m4 now does this for us:
62340         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62341         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62342         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62343         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62344         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62345         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62346         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62347         AC_FUNC_OBSTACK.
62348         Do not replace the following functions, as this is now the job
62349         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62350         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62351         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62352         atexit getpass, strdup, getpagesize.
62353         Replace 'raise'.
62354         Do not check for the following functions, as this is now the job
62355         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62356         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62357         setregid.
62358         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62359         Check for sys/sysctl.h.
62360         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62361         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62362         of checking for ssize_t ourselves.
62363
62364         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62365         Require every macro that gnulib/modules/* suggests for us.
62366         (jm_PREREQ_ADDEXT): New macro.
62367         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62368         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62369
62370         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62371         (gl_PHYSMEM): Use it.
62372         Also check for `table' function.
62373         Check for new headers and functions.
62374         Add check for sys/sysmp.h.
62375         With suggestions from Kaveh Ghazi.
62376         Ignore headers that are present but cannot be compiled.  This
62377         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62378         C 5.4.
62379
62380 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62381
62382         Document merge from coreutils.
62383         * modules/userspec: Depend on posixver.
62384         * modules/strftime: Depend on tzset.
62385
62386 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62387
62388         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62389         rather than tab, after '#' in shell-script copyright notices.
62390         Suggested by Bruno Haible.
62391
62392 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62393
62394         * config/srclist-update: Use three spaces, rather than tab, after '#'
62395         in shell-script copyright notices.  Suggested by Bruno Haible.
62396         Remove unnecessary parenthesization in regular expression.
62397
62398 2003-08-15  Jim Meyering  <jim@meyering.net>
62399
62400         Merge from coreutils.
62401         * lib/xgethostname.c: Include <stdlib.h>.
62402         (xghostname): Don't exit for anything other than memory-related
62403         failure; just return NULL.
62404         * lib/userspec.c: Include "posixver.h".
62405         (parse_user_spec): Accept `.' as a separator only
62406         in pre-POSIX-200112 mode.
62407         * lib/strtoimax.c: Use #elif rather than #else #if.
62408         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62409         Remove function, now that we can rely on a working tzset function.
62410         [!_LIBC]: Ensure that the required autoconf test has been run.
62411         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62412         Use underlying_strftime for %r.
62413         * lib/sha.c: Merge in some clean-up and optimization changes from
62414         glibc.
62415         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62416         Ensure that it is a multiple of 64.
62417         Rearrange loop exit tests so as to avoid performing an
62418         additional fread after encountering an error or EOF.
62419         * lib/realloc.c: Update copyright date.
62420
62421 2003-08-15  Jim Meyering  <jim@meyering.net>
62422         and Paul Eggert  <eggert@twinsun.com>
62423
62424         Merge from coreutils.
62425         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62426         member but strut utmpx does not.  Needed for AIX 4.3.3.
62427         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62428
62429 2003-08-15  Jim Meyering  <jim@meyering.net>
62430         and Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         Merges from coreutils, etc.
62433         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62434         Require gl_FUNC_TZSET_CLOBBER.
62435         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62436         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62437         members.
62438
62439 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62440
62441         Help the merge from coreutils.
62442         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62443         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62444         * m4/tzset.m4: Use it too.
62445
62446 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62447
62448         * modules/tzset: New file.
62449
62450 2003-08-14  Jim Meyering  <jim@meyering.net>
62451
62452         Merges from coreutils.
62453         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62454         variable names, rather than @FNMATCH_H@.
62455         * modules/alloca: Likewise for $(ALLOCA_H).
62456
62457         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62458         the three copies of the literal target, `fnmatch.h'.
62459         * modules/alloca (alloca.h): Likewise.
62460
62461 2003-08-14  Jim Meyering  <jim@meyering.net>
62462
62463         Merge from coreutils.
62464         * m4/tzset.m4: New file.
62465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62466         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62467         otherwise, AIX 5.1 systems would end up using the latter.
62468         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62469         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62470         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62471         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62472
62473 2003-08-14  Jim Meyering  <jim@meyering.net>
62474
62475         Merge from coreutils.
62476         * lib/obstack.h: Whitespace changes.
62477         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62478         and xcalloc return values.
62479         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62480         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62481         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62482         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62483         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62484         error from mntctl.
62485         Use mntctl's return value to drive the entry-processing loop, since
62486         we can't rely on the value of the vmt_length member in the last
62487         entry.  On some systems doing so could result in exhausting
62488         virtual memory.  Based in part on a patch from Mike Jetzer.
62489
62490 2003-08-14  Jim Meyering  <jim@meyering.net>
62491         and Paul Eggert  <eggert@twinsun.com>
62492
62493         Merges from coreutils, plus other fixes.
62494         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62495         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62496         for credits and details.  Thanks to Kaveh Ghazi for helping
62497         to keep these files in sync.
62498         (ARRAY_SIZE): Define it.
62499         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62500         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62501         (memcasecmp): Don't assume size_t fits in unsigned int.
62502         Remove casts and duplicate code.
62503         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62504         (memcpy): Remove definition.
62505         Merge in some clean-up and optimization changes from glibc.
62506         [BLOCKSIZE]: Move definition to top of file.
62507         Ensure that it is a multiple of 64.
62508         Rearrange loop exit tests so as to avoid performing an
62509         additional fread after encountering an error or EOF.
62510         * lib/md5.h (md5_uintptr): Define.
62511         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62512         return to the initial working directory.  Preserve errno
62513         for caller.
62514         * lib/idcache.c: Include "xalloc.h".
62515         (xmalloc, xrealloc): Remove decls.
62516         (getuser): Remove casts no longer required in C89.
62517         * lib/human.c: Include stdio.h, for sprintf.
62518         * lib/group-member.c: Include "xalloc.h".
62519         (xmalloc, xrealloc): Remove decls.
62520         (get_group_info): Remove casts no longer required in C89.
62521         * lib/getusershell.c (readname): Remove casts no longer required in
62522         C89.
62523         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62524         * lib/getline.c: Whitespace fix, from coreutils.
62525
62526 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62527
62528         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62529         Check for isascii.
62530
62531         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62532         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62533         Undo previous (whitespace-only) change.
62534
62535 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62536
62537         * lib/exclude.c: Include <ctype.h>
62538         (IN_CTYPE_DOMAIN): New macro.
62539         (is_space): New fn.
62540         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62541         and empty lines.
62542
62543         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62544         Undo previous (whitespace-only) change.
62545
62546 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62547
62548         * config/srclist-update: Change update back to the old behavior,
62549         leaving whitespace alone.  Use one 'sed' command rather than a
62550         pipeline.
62551         (fixlicense): Now a variable, not a function.
62552         (remove_trailing_blanks): Remove.
62553         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
62554         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62555         Undo previous (whitespace-only) change.
62556
62557 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62558
62559         Merge from coreutils.
62560         * modules/euidaccess: Add lib_SOURCES, include for new
62561         file euidaccess.h
62562
62563 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62564
62565         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62566         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62567         Normalize leading white space and remove trailing white space.
62568
62569         Merge from coreutils
62570         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
62571
62572         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
62573         0.12.1.  These files are now being upgraded automatically by
62574         ../config/srclist-update.
62575
62576 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62577
62578         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62579         Normalize leading white space and remove trailing white space.
62580         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
62581         notice, as per ../config/srclist-update.
62582
62583         Merge from coreutils.
62584         * lib/euidaccess.h: New file.
62585         * lib/euidaccess.c: Include it.
62586         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
62587         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
62588         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
62589
62590 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62591
62592         * config/srclist-update: Add copyright notice.
62593         (remove_id_lines, remove_trailing_blanks): New constants.
62594         (fixfile): Use them to normalize spacing a bit in copied files.
62595         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62596         Normalize leading white space and remove trailing white space.
62597
62598         * config/texinfo.tex: Sync with texinfo.
62599
62600         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
62601         strtoul.c from libc, to merge coreutils whitespace changes.
62602
62603         * config/srclist.txt: Get the following m4 files from gettext:
62604         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
62605         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
62606         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
62607         wint_t.m4.
62608
62609 2003-08-12  Karl Berry  <karl@gnu.org>
62610
62611         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
62612         been made.
62613
62614 2003-08-11  Paul Eggert  <eggert@twinsun.com>
62615
62616         * modules/gnu-source, m4/gnu-source.m4:
62617         Remove; we're assuming Autoconf 2.54 or later now.
62618         Suggested by Bruno Haible.
62619         * MODULES.html.sh (func_all_modules): Remove gnu-source.
62620
62621 2003-08-11  Bruno Haible  <bruno@clisp.org>
62622
62623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
62624
62625 2003-08-11  Bruno Haible  <bruno@clisp.org>
62626
62627         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
62628         (vasnprintf): Use it instead of wcslen.
62629
62630 2003-08-11  Bruno Haible  <bruno@clisp.org>
62631
62632         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
62633         value to ensure that _Bool promotes to int. Use #define for _Bool when
62634         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
62635
62636 2003-08-10  Karl Berry  <karl@gnu.org>
62637
62638         * lib/regex.h: update from libc (whitespace fix).
62639
62640 2003-08-09  Paul Eggert  <eggert@twinsun.com>
62641
62642         Merge some files from coreutils.  These changes were
62643         originally made by Jim Meyering.
62644         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
62645         many older Unixes require this.
62646         * lib/alloca.c (alloca): Remove cast to argument of free;
62647         no longer needed in C89.
62648         * lib/alloca_.h, regex.h: Fix white space to match
62649         what GNU indent does.
62650
62651 2003-08-09  Paul Eggert  <eggert@twinsun.com>
62652
62653         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
62654         apparently Emacs's Unicode mode got confused before my 2003-08-05
62655         checkin.
62656
62657 2003-08-08  Paul Eggert  <eggert@twinsun.com>
62658
62659         * m4/extensions.m4: New file.
62660         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
62661         Require gl_USE_SYSTEM_EXTENSIONS.
62662         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
62663         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
62664
62665 2003-08-08  Paul Eggert  <eggert@twinsun.com>
62666
62667         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
62668         * modules/extensions, modules/gnu-source: New files.
62669         * modules/timespec, modules/unlocked-io: Depend on extensions.
62670
62671 2003-08-07  Paul Eggert  <eggert@twinsun.com>
62672
62673         * modules/restrict: New file.
62674         * MODULES.html.sh (func_all_modules): Add restrict.
62675         * modules/regex: Depend on restrict.
62676
62677 2003-08-07  Paul Eggert  <eggert@twinsun.com>
62678
62679         * m4/restrict.m4: New file.
62680         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
62681
62682 2003-08-07  Bruno Haible  <bruno@clisp.org>
62683
62684         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
62685         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
62686
62687 2003-08-07  Bruno Haible  <bruno@clisp.org>
62688
62689         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
62690         makes the module 'getndelim2' compatible with the module 'getline'.
62691
62692 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62693
62694         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
62695         byte with "\201" to avoid glitches when editing that source file
62696         with multi-gnome-terminal.
62697
62698 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62699
62700         * lib/bumpalloc.h: Remove.
62701
62702 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62703
62704         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
62705         * modules/bumpalloc: Remove.
62706
62707 2003-08-04  Paul Eggert  <eggert@twinsun.com>
62708
62709         * lib/getloadavg.c: Change copyright notice and spacing to conform to
62710         GNU coding style.
62711
62712         Merge from coreutils.
62713         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
62714         1. From glibc.
62715         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
62716         from Karl Berry, implemented by Jim Meyering.
62717         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
62718         from Dmitry V. Levin.
62719         Remove anachronistic cast of xrealloc.
62720         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
62721         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
62722         type. Otherwise, it wouldn't compile with at least /bin/cc on
62723         ymp-cray-unicos9.0.2.X.
62724         Combine two mostly-identical uses of alloca into one.
62725         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
62726
62727 2003-08-04  Dave Love  <d.love@dl.ac.uk>
62728
62729         [From Emacs.]
62730
62731         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
62732         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
62733         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
62734         obsolete NLIST_NAME_UNION.
62735         [__GNU__]: Undef BSD and FSCALE.
62736         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
62737
62738 2003-08-03  Paul Eggert  <eggert@twinsun.com>
62739
62740         * lib/stdbool_.h (_Bool): Make it signed char, instead of
62741         an enum type, so that it's guaranteed to promote to int.  See:
62742         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
62743
62744 2003-08-03  Karl Berry  <karl@gnu.org>
62745
62746         * config/depcomp: update from automake.
62747
62748 2003-07-31  Paul Eggert  <eggert@twinsun.com>
62749
62750         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
62751         (strerror): Don't assume that a printable int fits in 14 bytes.
62752
62753 2003-07-31  Bruno Haible  <bruno@clisp.org>
62754
62755         * modules/getpass-gnu: New file.
62756         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
62757
62758 2003-07-31  Bruno Haible  <bruno@clisp.org>
62759
62760         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
62761
62762 2003-07-24  Karl Berry  <karl@gnu.org>
62763
62764         * config/missing: update from automake.
62765
62766 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
62767             Bruno Haible  <bruno@clisp.org>
62768
62769         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
62770         * lib/getline.c (getline, getdelim): Likewise.
62771         Remove _GNU_SOURCE define; now it's defined in config.h through
62772         m4/getline.m4.
62773
62774 2003-07-23  Karl Berry  <karl@gnu.org>
62775
62776         * config/config.sub: update from prep.
62777
62778 2003-07-22  Paul Eggert  <eggert@twinsun.com>
62779
62780         * modules/xalloc (Depends-on): Add exitfail.
62781         * modules/xmemcoll: Likewise.
62782
62783 2003-07-22  Paul Eggert  <eggert@twinsun.com>
62784
62785         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
62786         over-parenthesization in macros.
62787
62788         Sync with coreutils.
62789
62790         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
62791         required by C99.
62792
62793         Use `exit_failure' for xalloc and xmemcoll instead of their own
62794         private exit-failure variables.
62795         * lib/xalloc.h (xalloc_exit_failure): Remove.
62796         * lib/xmalloc.c: Likewise.  Include exitfail.h.
62797         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
62798         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
62799         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
62800         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
62801
62802 2003-07-20  Jim Meyering  <jim@meyering.net>
62803
62804         * modules/closeout (Depends-on): Add exitfail.
62805         Suggestion from Bruno Haible.
62806
62807 2003-07-19  Karl Berry  <karl@gnu.org>
62808
62809         * config/config.sub: update from prep.
62810
62811 2003-07-18  Paul Eggert  <eggert@twinsun.com>
62812
62813         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
62814         Remove.
62815         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
62816         to test that it can stand by itself.  Include "exitfail.h".
62817         Clients should set exit_failure instead.
62818         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
62819
62820 2003-07-18  Bruno Haible  <bruno@clisp.org>
62821
62822         * modules/getndelim2: New file.
62823         * modules/getline: Share files with module getndelim2.
62824         * modules/getnline: Depend on getndelim2 instead of sharing files with
62825         it. Add getnline.c to lib_SOURCES.
62826         * MODULES.html.sh (func_all_modules): Add getndelim2.
62827
62828 2003-07-18  Bruno Haible  <bruno@clisp.org>
62829
62830         * m4/getndelim2.m4: New file.
62831         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
62832         invoke gl_PREREQ_GETNDELIM2.
62833         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
62834         gl_PREREQ_GETNDELIM2.
62835         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
62836         gl_GETNDELIM2.
62837
62838 2003-07-18  Bruno Haible  <bruno@clisp.org>
62839
62840         * lib/getndelim2.h: New file.
62841         * lib/getndelim2.c: Make into a module of its own. Include config.h,
62842         getndelim2.h.
62843         (getndelim2): Make non-static. Change return type to ssize_t.
62844         * lib/getline.h: Change argument names.
62845         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
62846         * lib/getnline.c: Include getndelim2.h.
62847
62848 2003-07-18  Andreas Schwab  <schwab@suse.de>
62849
62850         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
62851
62852 2003-07-17  Karl Berry  <karl@gnu.org>
62853
62854         * config/config.sub: update from prep.
62855
62856 2003-07-17  Bruno Haible  <bruno@clisp.org>
62857
62858         * modules/getnline: New file.
62859         * modules/getline: Add lib/getndelim2.c to source file list.
62860         * MODULES.html.sh (func_all_modules): Add getnline.
62861
62862 2003-07-17  Bruno Haible  <bruno@clisp.org>
62863
62864         * m4/getnline.m4: New file.
62865
62866 2003-07-17  Bruno Haible  <bruno@clisp.org>
62867
62868         * m4/Makefile.am.in: Remove file.
62869         * m4/Makefile.am: Remove file.
62870         * m4/Makefile.in: Remove file.
62871
62872 2003-07-17  Bruno Haible  <bruno@clisp.org>
62873
62874         * lib/getnline.h: New file.
62875         * lib/getnline.c: New file.
62876         * lib/getndelim2.c: New file, extracted from getline.c.
62877         (getndelim2): Renamed from getdelim2, with added nmax argument.
62878         * lib/getline.c: Include getndelim2.c.
62879         (getdelim2): Moved out to getndelim2.c.
62880         (getline, getdelim): Update.
62881
62882 2003-07-17  Bruno Haible  <bruno@clisp.org>
62883
62884         * lib/Makefile.am: Remove file.
62885         * lib/Makefile.in: Remove file.
62886
62887 2003-07-17  Bruno Haible  <bruno@clisp.org>
62888
62889         * configure.in: Remove file.
62890         * Makefile.in: Remove file.
62891
62892 2003-07-17  Bruno Haible  <bruno@clisp.org>
62893
62894         * MODULES.html.sh: Put the </BODY> right before </HTML>.
62895
62896 2003-07-16  Karl Berry  <karl@gnu.org>
62897
62898         * config/srclist-update: was running fixlicense twice, which caused
62899                 texinfo.tex to be nullified for some reason.  Simplify,
62900                 $gplsrc is no longer needed as far as I can see?
62901
62902 2003-07-16  Jim Meyering  <jim@meyering.net>
62903
62904         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
62905
62906 2003-07-15  Paul Eggert  <eggert@twinsun.com>
62907
62908         * config/srclist.txt: Get the following files from gettext-runtime/intl
62909         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
62910         ref-del.sin.  From Bruno Haible.
62911         * config/srclist-update (fixfile): Change grep pattern again, since the
62912         previous fix didn't work (there was another trailing $).  Use
62913         '[$]' to escape the $s.
62914
62915 2003-07-15  Karl Berry  <karl@gnu.org>
62916
62917         * lib/vasnprintf.c: update from gettext.
62918
62919 2003-07-15  Karl Berry  <karl@gnu.org>
62920
62921         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
62922         gets expanded when surrounded by '$'.
62923
62924 2003-07-15  Jim Meyering  <jim@meyering.net>
62925
62926         * modules/save-cwd: Don't depend on error.  From Derek Price.
62927
62928 2003-07-15  Jim Meyering  <jim@meyering.net>
62929
62930         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
62931
62932 2003-07-14  Simon Josefsson  <jas@extundo.com>
62933
62934         * modules/mempcpy: New file.
62935         * MODULES.html.sh (func_all_modules): Add mempcpy.
62936
62937 2003-07-14  Simon Josefsson  <jas@extundo.com>
62938
62939         * m4/mempcpy.m4: New file.
62940
62941 2003-07-14  Simon Josefsson  <jas@extundo.com>
62942
62943         * lib/mempcpy.h: New file.
62944         * lib/mempcpy.c: New file.
62945
62946 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62947
62948         * modules/getdate, modules/posixtm: Depend on mktime.
62949
62950 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62951
62952         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
62953         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
62954         unicodeio.c, unicodeio.h, unlocked-io.h:
62955         Switch from LGPL to GPL.
62956
62957 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62958
62959         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
62960         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
62961         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
62962         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
62963         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
62964         updated automatically by ../config/srclist-update.  This changes
62965         their license from LPGL to GPL.
62966
62967 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62968
62969         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
62970         assumed to refer to the root of the most recent stable gettext version.
62971         * config/srclistvars.sh: Add defaults for eggert.
62972         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
62973         Match "This program" as well as "The program".  This is needed
62974         for gettext.
62975
62976 2003-07-14  Jim Meyering  <jim@meyering.net>
62977
62978         Don't emit diagnostics.  Let callers do that.
62979         * lib/save-cwd.c: Don't include "error.h".
62980         (save_cwd): Don't call error.  Ensure that errno is valid
62981         when returning nonzero.
62982
62983         * lib/save-cwd.h (restore_cwd): Update prototype.
62984         * lib/save-cwd.c (restore_cwd): Remove two parameters.
62985         Simplify.  Don't call error upon failure.  Let callers do that.
62986         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
62987         when auditing is enabled.  But don't bother updating the #if.
62988
62989 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
62990
62991         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
62992         it breaks C++ compilation.
62993         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
62994
62995 2003-07-10  Simon Josefsson  <jas@extundo.com>
62996
62997         * modules/strchrnul (Makefile.am): Add strchrnul.h.
62998
62999 2003-07-10  Jim Meyering  <jim@meyering.net>
63000
63001         * m4/clock_time.m4: Remove trailing blank.
63002         * m4/intmax_t.m4: Likewise.
63003
63004 2003-07-10  Jim Meyering  <jim@meyering.net>
63005
63006         * lib/vasnprintf.c: Remove trailing blanks.
63007         Make cpp indentation consistent.
63008
63009 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63010
63011         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63012         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63013         Switch from LGPL to GPL.
63014
63015 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63016
63017         * config/srclist.txt: Sort sublists.  Add
63018         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63019         that differ from gnulib for one reason or another; we'd like this list
63020         to be smaller but for now let's document what we have.
63021
63022 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63023
63024         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63025         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63026         and sweeter "eval x=$x".
63027         * config/srclist.txt: Get lib/argp* from glibc.
63028
63029 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63030
63031         * lib/mktime.c: Fix some boundary cases and remove need for floating
63032         point.
63033
63034         Issue a compile-time diagnostic if time_t is floating point, or if
63035         two's complement arithmetic is not in effect, or if arithmetic
63036         right shift does not propagate the sign.  These assumptions were
63037         all in the original code but they weren't checked.
63038
63039         (TIME_T_MIDPOINT, verify): New macros.
63040         (__isleap): Remove; it has integer overflow problems.
63041         (leapyear): New function, without those problems.
63042         (ydhms_tm_diff): Remove; splitting into two parts.
63043         (ydhms_diff): New function, containing the arithmetic part of
63044         the old ydhms_tm_diff function.  Issue a compile-time
63045         diagnostic if we are not using C99 integer division.
63046         Avoid casts when possible.
63047         (guess_time_tm): New function, containing the checking part of
63048         the old ydhms_tm_diff function.  Return the new value, rather than
63049         the difference between it and the old.  Accept a new argument T
63050         so that *T specifies the old value.  Check for overflow in the result.
63051
63052         (__mktime_internal): Use a time_t offset, not a long int offset.
63053         This undoes the 2003-06-04 change, which is no longer needed now
63054         that we have better overflow checking.
63055         (localtime_offset): Likewise.
63056
63057         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63058         and long are 64-bit but int is only 32-bit.
63059         (ydhms_diff): Use long int to store year1 and yday1.
63060         Issue a compile-time diagnostic if long int is not wide enough.
63061
63062         (__mktime_internal): Use long int to store adjusted year and yday.
63063         Use plain C rather than preprocessor commands, if that doesn't
63064         affect efficiency.
63065         Check for overflow (and try to repair) after each probe
63066         rather than checking only at the very end.  This avoids some bugs
63067         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63068         does not equal GMT offset at maximum time).
63069         Use integer to check for overflow rather than floating point; this
63070         is more portable to non-IEEE hosts, and is a tad faster.
63071         When we detect that we are oscillating between two values,
63072         don't check whether tm_isdst has the requested value, since
63073         we already know the answer.  When tm_isdst has the wrong value,
63074         use a different heuristic to find the right one, based on the
63075         extreme values actually observed in practice in tz2003a,
63076         rather than the (overly optimistic) "previous 3 calendar quarters".
63077
63078         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63079         "T const" to accommodate glibc style.
63080         (check_result): Use less-confusing report format.  "long" -> "long int.
63081         (main): Likewise.
63082         Don't loop if the iteration overflows time_t.
63083         Allow a negative step in the iteration.
63084
63085 2003-07-06  Karl Berry  <karl@gnu.org>
63086
63087         * config/depcomp: update from automake.
63088         * config/config.sub: update from prep.
63089
63090 2003-07-03  Karl Berry  <karl@gnu.org>
63091
63092         * config/config.guess: update from prep.
63093
63094 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63095
63096         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63097         xreadlink.c now includes it unconditionally.
63098
63099 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63100
63101         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63102         having it depend on HAVE_SYS_TYPES_H.
63103
63104 2003-07-01  Bruno Haible  <bruno@clisp.org>
63105
63106         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63107         <sys/types.h> should be sufficient.
63108         Reported by Paul Eggert.
63109
63110 2003-06-26  Karl Berry  <karl@gnu.org>
63111
63112         * config/depcomp: update from automake.
63113
63114 2003-06-26  Bruno Haible  <bruno@clisp.org>
63115
63116         * modules/human: Depend on module stdbool.
63117
63118 2003-06-25  Bruno Haible  <bruno@clisp.org>
63119
63120         * modules/readlink: New file.
63121         * modules/xreadlink: Depend on it.
63122         * MODULES.html.sh (func_all_modules): Add readlink.
63123
63124 2003-06-25  Bruno Haible  <bruno@clisp.org>
63125
63126         * m4/readlink.m4: New file.
63127
63128 2003-06-25  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/readlink.c: New file.
63131
63132 2003-06-22  Karl Berry  <karl@gnu.org>
63133
63134         * config/srclist.txt: update mkinstalldirs from automake.
63135         * config/mkinstalldirs: update.
63136
63137 2003-06-22  Bruno Haible  <bruno@clisp.org>
63138
63139         Portability to mingw32.
63140         * m4/ssize_t.m4: New file, from GNU gettext.
63141         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63142         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63143
63144 2003-06-22  Bruno Haible  <bruno@clisp.org>
63145
63146         * modules/safe-read: Add m4/ssize_t.m4.
63147         * modules/xreadlink: Add m4/ssize_t.m4.
63148
63149 2003-06-20  Bruno Haible  <bruno@clisp.org>
63150
63151         Assume C89, so PARAMS isn't needed.
63152         * lib/unicodeio.h (PARAMS): Remove.
63153         * lib/unicodeio.c: Don't use PARAMS.
63154
63155 2003-06-18  Karl Berry  <karl@gnu.org>
63156
63157         * config/config.{guess,sub}: update from prep.
63158
63159 2003-06-18  Jim Meyering  <jim@meyering.net>
63160
63161         Merge changes from coreutils.
63162         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63163         Remove explicit declarations of xmalloc and realloc.
63164         Include xalloc.h.
63165         (read_utmp): Remove anachronistic cast of xmalloc.
63166
63167 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63168
63169         Assume C89, so PARAMS isn't needed.
63170         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63171         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63172         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63173         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63174         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63175         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63176         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63177         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63178         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63179         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63180         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63181         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63182         no longer needed. Anyway, config.h should always be included before any
63183         other file.
63184
63185 2003-06-11  Simon Josefsson  <jas@extundo.com>
63186
63187         * modules/sysexits: New file.
63188         * MODULES.html.sh (func_all_modules): Add sysexits.
63189
63190 2003-06-11  Simon Josefsson  <jas@extundo.com>
63191
63192         * lib/sysexit_.h: New file.
63193
63194 2003-06-11  Derek Price  <derek@ximbiot.com>
63195
63196         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63197         necessary.
63198
63199 2003-06-11  Bruno Haible  <bruno@clisp.org>
63200
63201         * m4/sysexits.m4: New file.
63202
63203 2003-06-10  Simon Josefsson  <jas@extundo.com>
63204
63205         * lib/argp.h: New file, from glibc.
63206         * lib/argp-ba.c: New file, from glibc.
63207         * lib/argp-eexst.c: New file, from glibc.
63208         * lib/argp-fmtstream.c: New file, from glibc.
63209         * lib/argp-fmtstream.h: New file, from glibc.
63210         * lib/argp-fs-xinl.c: New file, from glibc.
63211         * lib/argp-help.c: New file, from glibc.
63212         * lib/argp-namefrob.h: New file, from glibc.
63213         * lib/argp-parse.c: New file, from glibc.
63214         * lib/argp-pv.c: New file, from glibc.
63215         * lib/argp-pvh.c: New file, from glibc.
63216         * lib/argp-xinl.c: New file, from glibc.
63217
63218 2003-06-10  Simon Josefsson  <jas@extundo.com>
63219
63220         * modules/strchrnul: New file.
63221
63222 2003-06-10  Simon Josefsson  <jas@extundo.com>
63223
63224         * modules/argp: New file.
63225
63226 2003-06-10  Simon Josefsson  <jas@extundo.com>
63227
63228         * m4/strchrnul.m4: New file.
63229
63230 2003-06-10  Simon Josefsson  <jas@extundo.com>
63231
63232         * lib/strchrnul.h: New file.
63233         * lib/strchrnul.c: New file.
63234
63235 2003-06-10  Bruno Haible  <bruno@clisp.org>
63236
63237         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63238
63239 2003-06-07  Karl Berry  <karl@gnu.org>
63240
63241         * config/config.{guess,sub}: update from prep.
63242
63243 2003-06-07  Jim Meyering  <jim@meyering.net>
63244
63245         * modules/strtod: Use $(...) notation, not @...@ for
63246         AC_REPLACE'd variables.
63247         * modules/localcharset: Likewise.
63248
63249 2003-06-07  Jim Meyering  <jim@meyering.net>
63250
63251         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63252         in place of my name in the copyright comment.
63253         Remove definition and uses of __P.
63254
63255         From coreutils.
63256         * lib/stat.c: Don't declare xmalloc explicitly.
63257         Instead, include "xalloc.h".
63258         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63259         xrealloc, and xcalloc return values.
63260         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63261         Improve comment.
63262         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63263
63264 2003-06-07  Bruno Haible  <bruno@clisp.org>
63265
63266         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63267         avoid AC_CONFIG_LINKS.
63268         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63269         fnmatch.h, to avoid AC_CONFIG_LINKS.
63270         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63271
63272 2003-06-07  Bruno Haible  <bruno@clisp.org>
63273
63274         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63275         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63276         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63277         directory.
63278         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63279         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63280         directory.
63281
63282 2003-06-06  Jim Meyering  <jim@meyering.net>
63283
63284         Merge from coreutils.
63285         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63286         Consolidate declarations and initializations of *_base* locals.
63287
63288         Merge from coreutils.
63289         This avoids a core dump on systems without GNU putenv,
63290         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63291         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63292         (unsetenv): New static function, from GNU libc.
63293         (rpl_putenv): Use it.
63294
63295         * lib/modechange.c: Remove trailing blanks.
63296
63297         Merge from coreutils.
63298         * lib/fsusage.c: Remove declaration of statfs.
63299         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63300
63301         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63302
63303 2003-06-06  Jim Meyering  <jim@meyering.net>
63304
63305         * lib/stdbool_.h: Renamed from stdbool.h.in.
63306
63307 2003-06-06  Jim Meyering  <jim@meyering.net>
63308             Bruno Haible  <bruno@clisp.org>
63309
63310         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63311         Adjust Makefile.am snippet not to redirect directly to target.
63312         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63313
63314 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63315
63316         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63317         mismatch, look in future quarters as well as past.  This fixes a
63318         bug when processing fall-backwards gaps immediately after a long
63319         period of daylight-saving time.
63320
63321         * lib/mktime.c: Assume freestanding C89 or better.
63322         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63323         (__P): Remove; not used.
63324         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63325         (mktime, not_equal_tm, print_tm, check_result,
63326         main): Use prototypes.  Use const * where appropriate.
63327         (main): Fix typo in testing code that uncovered by above changes.
63328         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63329
63330 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63331
63332         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63333         locale.h, localeconv.  This merges changes from coreutils.
63334
63335         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63336         It can be removed after the next Autoconf is released.
63337         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63338         needed.
63339
63340 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63341
63342         * lib/mktime.c: Fix Debian bug 177940
63343         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63344         (localtime_offset): Now long int, not time_t, because we want it
63345         to be guaranteed to be signed.  All uses changed.
63346         (__mktime_internal): If overflow would occur when adding offset,
63347         don't add it.
63348
63349         Merge 'human' changes from coreutils.  Rewrite to support
63350         locale-specific notations like thousands separators.
63351         * lib/human.c: Simplify authorship notice.
63352         Include human.h immediately after config.h.
63353         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63354         <limits.h>: Do not include, since human.h does.
63355         (SIZE_MAX, UINTMAX_MAX): New macros.
63356         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63357         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63358         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63359         (power_letter): Renamed from suffixes.
63360         (generate_suffix_backwards): Remove.
63361         (adjust_value): Now takes int style (because of human.h changes)
63362         and long double value (for greater precision on some platforms).
63363         (group_number): New function.
63364         (human_readable): Use it.  Use integer options, not enum.
63365         Put the options before the sizes in the arg list.
63366         Support all the new options.
63367         The old human_readable function has been removed;
63368         use inttostr.h instead.
63369         (human_readable, default_block_size, humblock):
63370         Use uintmax_t, not int, for block sizes.
63371         (human_readable_inexact, block_size_types): Remove.
63372         (block_size_opts): New constant.
63373         (human_options): Renamed from human_block_size, with new signature
63374         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63375         * lib/human.h: Add copyright and authorship notice.
63376         Include <limits.h> and <stdbool.h> unconditionally.
63377         (PARAMS): Remove.  All uses removed.
63378         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63379         (enum human_inexact_style): Remove tag; now a nameless enum.
63380         (human_floor, human_ceiling, human_round_to_even): Now have
63381         values 2, 0, 1 rather than -1, 1, 0.
63382         (human_group_digits, human_suppress_point_zero, human_autoscale,
63383         human_base_1024, human_SI, human_B): New constants.
63384         (human_readable_inexact, human_block_size): Remove.
63385         (human_readable): Size args are now uintmax_t, not int.
63386         (human_options): New decl.
63387
63388         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63389         unnecessary now that we assume C89 or better.  This change
63390         imported from coreutils.
63391
63392         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63393         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63394         in the 2003-05-30 sync from glibc.
63395
63396         .h files should stand alone, but we shouldn't include <sys/types.h>
63397         if we can get away with just <stddef.h>.
63398
63399         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63400         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63401         rather than <sys/types.h>, as we merely need size_t.
63402         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63403         to get size_t.
63404         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63405         Include <stdio.h>, to get FILE.
63406         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63407         memcasecmp.h has included <stddef.h> and all we need is size_t.
63408         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63409         our interface, instead of including <sys/types.h>
63410
63411 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63412
63413         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63414         now, as glibc mktime is buggy on non-glibc systems.
63415
63416 2003-06-03  Karl Berry  <karl@gnu.org>
63417
63418         * config/config.sub: update from prep.
63419
63420 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63421
63422         [from coreutils]
63423         Fix some minor time-related bugs with POSIX time arguments.
63424         Some valid time stamps were being rejected (notably -1, and
63425         time stamps before 1900 on 64-bit hosts).  And some invalid
63426         time stamps were being accepted, e.g. September 31.
63427
63428         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63429         that we can return (time_t) -1 successfully.
63430         * lib/posixtm.c: Likewise.
63431         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63432         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63433         (t): Remove static var.
63434         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63435         of static var.  All uses changed.
63436         (year): Do not reject years before 1900; they can occur with
63437         64-bit time_t.
63438         (posix_time_parse): Do not check for out-of-range components;
63439         that is now the caller's responsibility, since our checks were
63440         only approximations.
63441         (posixtime): Use mktime to check for out-of-range components,
63442         since it knows them exactly.
63443         If mktime returns (time_t) -1, check whether an error actually occurred
63444         by invoking localtime on -1.
63445         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63446         posixtime failures better.
63447         Improve the test data (in comments only).
63448
63449 2003-06-02  Karl Berry  <karl@gnu.org>
63450
63451         * config/mkinstalldirs (version): new variable.
63452         (--version): new option.
63453         (usage): improve message.
63454
63455 2003-05-30  Karl Berry  <karl@gnu.org>
63456
63457         * lib/mktime.c: update from libc.
63458
63459 2003-05-30  Bruno Haible  <bruno@clisp.org>
63460
63461         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63462         * config/config.rpath: Upgrade to gettext-0.12.1.
63463
63464 2003-05-30  Bruno Haible  <bruno@clisp.org>
63465
63466         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63467         * m4/nls.m4: New file, from gettext-0.12.1.
63468         * m4/po.m4: New file, from gettext-0.12.1.
63469         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63470
63471 2003-05-30  Bruno Haible  <bruno@clisp.org>
63472
63473         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63474         * lib/localcharset.h: Likewise.
63475         * lib/localcharset.c: Likewise.
63476
63477 2003-05-29  Karl Berry  <karl@gnu.org>
63478
63479         * config/config.rpath: update from gettext.
63480
63481 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63482
63483         Assume the headers required for C89 freestanding compilers.
63484         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63485         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63486         * m4/human.m4 (gl_HUMAN): Likewise.
63487         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63488         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63489         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63490         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63491         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63492         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63493
63494 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63495
63496         Assume the headers required for C89 freestanding compilers.
63497         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63498         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63499         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63500         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63501         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63502         define, since <limits.h> is guaranteed to do that.
63503         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63504         * lib/exclude.c: Include <stdbool.h> unconditionally.
63505         * lib/tempname.c: Include <stddef.h> unconditionally.
63506         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63507         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63508         <stddef.h> does that.
63509         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63510         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63511         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63512         needed.
63513         * lib/xstrtol.c: Likewise.
63514         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63515         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63516
63517         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63518         warnings on some platforms.
63519
63520         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63521         arbitrarily.
63522
63523 2003-05-26  Jim Meyering  <jim@meyering.net>
63524
63525         Merge in a change from coreutils:
63526         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63527         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63528         that condition, rather than `-1' which is slightly misleading.
63529         Change the name of the cache variable to have the gl_ prefix.
63530         Prompted by a patch from Richard Dawe for DJGPP.
63531
63532 2003-05-24  Karl Berry  <karl@gnu.org>
63533
63534         * config/config.guess: update from prep.
63535
63536 2003-05-22  Karl Berry  <karl@gnu.org>
63537
63538         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63539
63540 2003-05-20  Karl Berry  <karl@gnu.org>
63541
63542         * config/config.guess: update from prep.
63543
63544 2003-05-18  Karl Berry  <karl@gnu.org>
63545
63546         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63547         might actually be set by the user.
63548
63549         * config/depcomp, install-sh, mdate-sh: update from automake.
63550
63551 2003-05-17  Bruno Haible  <bruno@clisp.org>
63552
63553         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
63554         invalid expansion for AC_EGREP_CPP.
63555         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63556         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63557         Suggested by Akim Demaille <akim@epita.fr> in
63558         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
63559
63560 2003-05-12  Jim Meyering  <jim@meyering.net>
63561
63562         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
63563         the space-padded-by-default conversion specifiers, %e, %k, %l.
63564
63565 2003-05-12  Bruno Haible  <bruno@clisp.org>
63566
63567         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
63568         the string is longer than 4 KB.
63569
63570 2003-05-11  Karl Berry  <karl@gnu.org>
63571
63572         * config/config.{guess,sub}: update from prep.
63573
63574 2003-05-09  Bruno Haible  <bruno@clisp.org>
63575
63576         * modules/error: Add m4/strerror_r.m4 to file list.
63577
63578 2003-05-03  Bruno Haible  <bruno@clisp.org>
63579
63580         Upgrade to Unicode-4.0.
63581         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
63582         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
63583         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
63584         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
63585         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
63586         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
63587         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
63588         Change width of U+E0100..U+E01EF from 1 to 0.
63589
63590 2003-04-25  Jim Meyering  <jim@meyering.net>
63591
63592         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
63593         of type size_t, not int.
63594
63595 2003-04-25  Bruno Haible  <bruno@clisp.org>
63596
63597         * lib/copy-file.c: Include <stddef.h>, for size_t.
63598
63599 2003-04-21  Paul Eggert  <eggert@twinsun.com>
63600
63601         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
63602         code which expansion is under static control.  Patch imported from
63603         Akim Demaille's patch to Bison; see
63604         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
63605
63606 2003-04-14  Bruno Haible  <bruno@clisp.org>
63607
63608         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
63609
63610 2003-04-11  Jim Meyering  <jim@meyering.net>
63611
63612         Merge changes from Coreutils.
63613
63614         2003-03-22  Jim Meyering  <jim@meyering.net>
63615
63616         * lib/strftime.c (widen): Cast alloca return value to proper type.
63617
63618         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
63619
63620         From GNU libc.
63621         * lib/strftime.c (my_strftime): Handle very large width
63622         specifications for numeric values correctly.  Improve checks for
63623         overflow.
63624
63625         2003-01-19  Jim Meyering  <jim@meyering.net>
63626
63627         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
63628         definitions.
63629         (nl_get_alt_digit) [! defined my_strftime]: Define.
63630         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
63631         _nl_get_alt_digit and _nl_get_walt_digit.
63632
63633         * lib/strftime.c (my_strftime): Merge in locale-related changes from
63634         libc. These changes have no effect outside of _LIBC.
63635
63636 2003-04-10  Bruno Haible  <bruno@clisp.org>
63637
63638         * modules/findprog: New file.
63639         * MODULES.html.sh (func_all_modules): Add it.
63640
63641 2003-04-10  Bruno Haible  <bruno@clisp.org>
63642
63643         * m4/findprog.m4: New file.
63644         * m4/eaccess.m4: New file.
63645
63646 2003-04-10  Bruno Haible  <bruno@clisp.org>
63647
63648         * lib/findprog.h: New file, from GNU gettext.
63649         * lib/findprog.c: New file, from GNU gettext.
63650
63651 2003-04-05  Jim Meyering  <jim@meyering.net>
63652
63653         Merge changes from Coreutils.
63654
63655         * lib/exclude.h (PARAMS): Remove definition and uses.
63656         * lib/exclude.c: Remove uses of `PARAMS'.
63657
63658         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
63659         Add test-cases for DOS filenames. Declare program_name.
63660         (main): Set up program_name.  Patch by Rich Dawe.
63661
63662         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63663         error from mntctl.
63664         Use mntctl's return value to drive the entry-processing loop, since
63665         we can't rely on the value of the vmt_length member in the last
63666         entry.  On some systems doing so could result in exhausting
63667         virtual memory.  Based in part on a patch from Mike Jetzer.
63668
63669 2003-04-04  Bruno Haible  <bruno@clisp.org>
63670
63671         * modules/linebreak: New file.
63672         * MODULES.html.sh (func_all_modules): Add it.
63673
63674 2003-04-04  Bruno Haible  <bruno@clisp.org>
63675
63676         * m4/linebreak.m4: New file.
63677
63678 2003-04-04  Bruno Haible  <bruno@clisp.org>
63679
63680         * lib/linebreak.h: New file, from GNU gettext.
63681         * lib/linebreak.c: New file, from GNU gettext with slight
63682         modifications.
63683         * lib/lbrkprop.h: New file, from GNU gettext.
63684
63685 2003-04-03  Bruno Haible  <bruno@clisp.org>
63686
63687         * modules/utf8-ucs4: New file.
63688         * modules/utf16-ucs4: New file.
63689         * modules/ucs4-utf8: New file.
63690         * modules/ucs4-utf16: New file.
63691         * MODULES.html.sh (func_all_modules): Add them.
63692
63693 2003-04-03  Bruno Haible  <bruno@clisp.org>
63694
63695         * m4/utf-ucs4.m4: New file.
63696         * m4/ucs4-utf.m4: New file.
63697
63698 2003-04-03  Bruno Haible  <bruno@clisp.org>
63699
63700         * lib/utf8-ucs4.h: New file, from GNU gettext.
63701         * lib/utf16-ucs4.h: New file, from GNU gettext.
63702         * lib/ucs4-utf8.h: New file, from GNU gettext.
63703         * lib/ucs4-utf16.h: New file, from GNU gettext.
63704
63705 2003-04-02  Bruno Haible  <bruno@clisp.org>
63706
63707         * modules/binary-io: New file.
63708         * MODULES.html.sh (func_all_modules): Add it.
63709
63710 2003-04-02  Bruno Haible  <bruno@clisp.org>
63711
63712         * lib/binary-io.h: New file, from GNU gettext.
63713
63714 2003-04-01  Bruno Haible  <bruno@clisp.org>
63715
63716         * modules/pathname: New file.
63717         * MODULES.html.sh (func_all_modules): Add it.
63718
63719 2003-04-01  Bruno Haible  <bruno@clisp.org>
63720
63721         * lib/pathname.h: New file, from GNU gettext.
63722         * lib/concatpath.c: New file, from GNU gettext.
63723
63724 2003-03-30  Bruno Haible  <bruno@clisp.org>
63725
63726         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
63727
63728 2003-03-30  Bruno Haible  <bruno@clisp.org>
63729
63730         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
63731         function chown() doesn't exist.
63732
63733 2003-03-28  Bruno Haible  <bruno@clisp.org>
63734
63735         * modules/copy-file: New file.
63736         * MODULES.html.sh (func_all_modules): Add it.
63737
63738 2003-03-28  Bruno Haible  <bruno@clisp.org>
63739
63740         * m4/copy-file.m4: New file.
63741
63742 2003-03-28  Bruno Haible  <bruno@clisp.org>
63743
63744         * lib/copy-file.h: New file, from GNU gettext.
63745         * lib/copy-file.c: New file, from GNU gettext.
63746
63747 2003-03-18  Jim Meyering  <jim@meyering.net>
63748
63749         * lib/quote.c (quote_n): Fix typo in comment.
63750
63751 2003-03-18  Bruno Haible  <bruno@clisp.org>
63752
63753         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
63754         checking.
63755         * m4/onceonly_2_57.m4: Likewise.
63756
63757 2003-03-17  Bruno Haible  <bruno@clisp.org>
63758
63759         * m4/onceonly.m4: Require autoconf 2.54 or newer.
63760         (m4_quote): Remove macro.
63761         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
63762
63763 2003-03-14  Jim Meyering  <jim@meyering.net>
63764
63765         Merge changes from Coreutils.
63766         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
63767         to be const, in order to avoid warnings.
63768         (obstack_room): Likewise.
63769         (obstack_empty_p): Likewise.
63770
63771 2003-03-14  Bruno Haible  <bruno@clisp.org>
63772
63773         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
63774         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
63775
63776 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63777
63778         Merge changes from Bison.
63779         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
63780         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
63781         when compiling Bison 1.875's `bitset bset = obstack_alloc
63782         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
63783         * lib/hash.c: Include <stdbool.h> unconditionally.
63784
63785 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63786
63787         * m4/onceonly.m4 (m4_quote): New macro.
63788         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
63789         Quote AC_FOREACH variable-expansions properly.
63790
63791 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63792
63793         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
63794
63795 2003-03-09  Paul Eggert  <eggert@twinsun.com>
63796
63797         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
63798         Reported by Bruce Becker; see:
63799         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
63800
63801 2003-03-03  Paul Eggert  <eggert@twinsun.com>
63802             Bruno Haible  <bruno@clisp.org>
63803
63804         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
63805         Reported by John Hughes, see
63806         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
63807
63808 2003-02-20  Bruno Haible  <bruno@clisp.org>
63809
63810         * MODULES.html.sh (func_all_modules): Add poll.
63811
63812 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63813
63814         * modules/poll: New file.
63815
63816 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63817
63818         * lib/poll_.h: New file.
63819         * lib/poll.c: New file.
63820
63821 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63822
63823         * m4/poll.m4: New file.
63824
63825 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63826
63827         * modules/mathl: New file.
63828
63829 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63830
63831         * lib/mathl.h: New file.
63832         * lib/acosl.c: New file.
63833         * lib/asinl.c: New file.
63834         * lib/atanl.c: New file.
63835         * lib/ceill.c: New file.
63836         * lib/cosl.c: New file.
63837         * lib/expl.c: New file.
63838         * lib/floorl.c: New file.
63839         * lib/frexpl.c: New file.
63840         * lib/ldexpl.c: New file.
63841         * lib/logl.c: New file.
63842         * lib/sincosl.c: New file.
63843         * lib/sinl.c: New file.
63844         * lib/sqrtl.c: New file.
63845         * lib/tanl.c: New file.
63846         * lib/trigl.c: New file.
63847         * lib/trigl.h: New file.
63848
63849 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63850
63851         * m4/mathl.m4: New file.
63852
63853 2003-02-18  Bruno Haible  <bruno@clisp.org>
63854
63855         * MODULES.html.sh (func_all_modules): Add mathl.
63856
63857 2003-02-17  Bruno Haible  <bruno@clisp.org>
63858
63859         * modules/mkdtemp: New module.
63860         * MODULES.html.sh (func_all_modules): Add it.
63861
63862 2003-02-17  Bruno Haible  <bruno@clisp.org>
63863
63864         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
63865
63866 2003-02-17  Bruno Haible  <bruno@clisp.org>
63867
63868         * lib/mkdtemp.h: New file, from GNU gettext.
63869         * lib/mkdtemp.c: New file, from GNU gettext.
63870
63871 2003-02-02  Jim Meyering  <jim@meyering.net>
63872
63873         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
63874         e.g. glibc-2.2.93.
63875
63876 2003-01-31  Bruno Haible  <bruno@clisp.org>
63877
63878         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
63879         'rpl_rename'.
63880         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
63881         'rpl_strnlen'.
63882         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
63883         'rpl_strtod'.
63884         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
63885         'rpl_utime'.
63886
63887 2003-01-31  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/rename.c: #undef rename before defining rpl_rename.
63890         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
63891
63892 2003-01-30  Bruno Haible  <bruno@clisp.org>
63893
63894         * modules/vasnprintf, modules/vasprintf: New modules.
63895         * MODULES.html.sh (func_all_modules): Add them.
63896
63897 2003-01-30  Bruno Haible  <bruno@clisp.org>
63898
63899         * m4/signed.m4: New file, from GNU gettext.
63900         * m4/longdouble.m4: New file, from GNU gettext.
63901         * m4/wchar_t.m4: New file, from GNU gettext.
63902         * m4/wint_t.m4: New file, from GNU gettext.
63903         * m4/vasnprintf.m4: New file.
63904         * m4/vasprintf.m4: New file.
63905
63906 2003-01-30  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/printf-args.h: New file, from GNU gettext.
63909         * lib/printf-args.c: New file, from GNU gettext.
63910         * lib/printf-parse.h: New file, from GNU gettext.
63911         * lib/printf-parse.c: New file, from GNU gettext.
63912         * lib/vasnprintf.h: New file, from GNU gettext.
63913         * lib/vasnprintf.c: New file, from GNU gettext.
63914         * lib/asnprintf.c: New file, from GNU gettext.
63915         * lib/vasprintf.h: New file, from GNU gettext with modifications.
63916         * lib/vasprintf.c: New file, from GNU gettext.
63917         * lib/asprintf.c: New file, from GNU gettext.
63918
63919 2003-01-29  Bruno Haible  <bruno@clisp.org>
63920
63921         * modules/stpncpy: New module.
63922         * MODULES.html.sh (func_all_modules): Add it.
63923
63924 2003-01-29  Bruno Haible  <bruno@clisp.org>
63925
63926         * m4/stpncpy.m4: New file.
63927
63928 2003-01-29  Bruno Haible  <bruno@clisp.org>
63929
63930         * lib/stpncpy.h: New file, from GNU gettext with modifications.
63931         * lib/stpncpy.c: New file, from GNU gettext with modifications.
63932
63933 2003-01-28  Bruno Haible  <bruno@clisp.org>
63934
63935         * modules/c-ctype: New module.
63936         * MODULES.html.sh (func_all_modules): Add it.
63937
63938 2003-01-28  Bruno Haible  <bruno@clisp.org>
63939
63940         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
63941         Paul Eggert.
63942         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
63943         Paul Eggert.
63944
63945 2003-01-27  Bruno Haible  <bruno@clisp.org>
63946
63947         * modules/xsetenv: New module.
63948         * MODULES.html.sh (func_all_modules): Add it.
63949
63950 2003-01-27  Bruno Haible  <bruno@clisp.org>
63951
63952         * lib/xsetenv.h: New file, from GNU gettext.
63953         * lib/xsetenv.c: New file, from GNU gettext.
63954
63955 2003-01-23  Jim Meyering  <jim@meyering.net>
63956
63957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
63958         from working on systems without dirfd (at least Irix and OSF1/Tru64).
63959
63960 2003-01-23  Bruno Haible  <bruno@clisp.org>
63961
63962         * modules/minmax: New module.
63963         * MODULES.html.sh (func_all_modules): Add it.
63964
63965 2003-01-23  Bruno Haible  <bruno@clisp.org>
63966
63967         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
63968         Eggert.
63969
63970 2003-01-22  Bruno Haible  <bruno@clisp.org>
63971
63972         * modules/exit: New module.
63973         * MODULES.html.sh (func_all_modules): Add it.
63974
63975 2003-01-22  Bruno Haible  <bruno@clisp.org>
63976
63977         * lib/exit.h: New file, from GNU gettext.
63978
63979 2003-01-19  Bruno Haible  <bruno@clisp.org>
63980
63981         * gnulib-tool: Recognize option --extract-maintainer.
63982         (func_get_maintainer): New function.
63983         * modules/*: Add Maintainer entry.
63984
63985 2003-01-16  Jim Meyering  <jim@meyering.net>
63986
63987         * m4/regex.m4: The `regex' struct is both input and output.
63988         Initialize it before each use.  Patch by Tim Waugh.
63989
63990 2003-01-16  Bruno Haible  <bruno@clisp.org>
63991
63992         * MODULES.html.sh: Add a table of contents. Add the module name as
63993         leftmost column. Add hyperlinks.
63994
63995 2003-01-15  Bruno Haible  <bruno@clisp.org>
63996
63997         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
63998
63999 2003-01-15  Bruno Haible  <bruno@clisp.org>
64000
64001         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64002         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64003         suffix.
64004
64005 2003-01-15  Bruno Haible  <bruno@clisp.org>
64006
64007         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64008
64009 2003-01-15  Bruno Haible  <bruno@clisp.org>
64010
64011         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64012         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64013
64014 2003-01-14  Jim Meyering  <jim@meyering.net>
64015
64016         * lib/same.c (same_name): Tweak a comment.
64017
64018 2003-01-14  Bruno Haible  <bruno@clisp.org>
64019
64020         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64021         when a string comparison is sufficient.
64022
64023 2003-01-14  Bruno Haible  <bruno@clisp.org>
64024
64025         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64026         'unsigned int'.
64027
64028 2003-01-14  Bruno Haible  <bruno@clisp.org>
64029
64030         * lib/hash-pjw.c: Add comment about low quality of this function.
64031
64032 2003-01-13  Bruno Haible  <bruno@clisp.org>
64033
64034         * modules/stpcpy: Distribute lib/stpcpy.h.
64035         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64036
64037 2003-01-13  Bruno Haible  <bruno@clisp.org>
64038
64039         * modules/*: Add a description.
64040         * modules/strpbrk: Fix Makefile.am snippet.
64041         * modules/strtoimax: Fix dependencies.
64042         * modules/strtoumax: Likewise.
64043
64044 2003-01-13  Bruno Haible  <bruno@clisp.org>
64045
64046         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64047         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64048         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64049
64050 2003-01-13  Bruno Haible  <bruno@clisp.org>
64051
64052         * gnulib-tool (func_create_testdir): Store config/* files in the main
64053         directory.
64054         * config.rpath: Move to ...
64055         * config/config.rpath: ... here.
64056         * modules/gettext: Contains config/config.rpath, not config.rpath.
64057         * modules/iconv: Likewise.
64058
64059 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64060
64061         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64062         to avoid collisions with libcurses and libreadline.
64063
64064         * m4/getstr.m4: Remove.
64065         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64066
64067 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64068
64069         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64070         to avoid collisions with libcurses and libreadline.
64071
64072         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64073         * lib/getstr.h, getstr.c: Remove.
64074         * lib/getline.c: Include "getline.h", to check interface.
64075         Move body of old getstr.c here: this defines MIN_CHUNK and
64076         declares getdelim2, which is renamed from getstr.
64077         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64078
64079         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64080         All uses changed.
64081         * lib/linebuffer.h: Likewise.
64082         (readline): Remove backward-compatibility macro.
64083
64084 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64085
64086         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64087         to avoid collisions with libcurses and libreadline.
64088         * getstr: Remove.
64089         * MODULES.html.sh: Remove getstr.
64090         * modules/getline: Depend on unlocked-io, not getstr.
64091
64092 2003-01-12  Jim Meyering  <jim@meyering.net>
64093
64094         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64095
64096 2003-01-10  Bruno Haible  <bruno@clisp.org>
64097
64098         * modules/alloca: Change Makefile.am requirements. Simplify Include
64099         requirements. Add lib/alloca_.h to file list.
64100
64101 2003-01-10  Bruno Haible  <bruno@clisp.org>
64102
64103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64104
64105 2003-01-10  Bruno Haible  <bruno@clisp.org>
64106
64107         * lib/alloca_.h: New file.
64108         * lib/getdate.y: Unconditionally include alloca.h.
64109         * lib/makepath.c: Likewise.
64110         * lib/setenv.c: Likewise.
64111         * lib/userspec.c: Likewise.
64112
64113 2003-01-09  Karl Berry  <karl@gnu.org>
64114
64115         * MODULES.html.sh: include `dirname $0` in PATH, to find
64116         gnulib-tool.
64117
64118 2003-01-09  Bruno Haible  <bruno@clisp.org>
64119
64120         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64121         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64122
64123 2003-01-09  Bruno Haible  <bruno@clisp.org>
64124
64125         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64126
64127 2003-01-09  Bruno Haible  <bruno@clisp.org>
64128
64129         * lib/stdbool.h.in: New file.
64130
64131 2003-01-09  Bruno Haible  <bruno@clisp.org>
64132
64133         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64134         * MODULES.html.sh: Likewise.
64135
64136 2003-01-08  Jim Meyering  <jim@meyering.net>
64137
64138         * lib/full-write.c: Undefine and define-away `const' after inclusion
64139         of errno.h, not before.  Suggestion from Bruno Haible.
64140
64141 2003-01-08  Bruno Haible  <bruno@clisp.org>
64142
64143         * modules/full-read: Depend on full-write.
64144
64145 2003-01-08  Bruno Haible  <bruno@clisp.org>
64146
64147         * lib/safe-read.c: Include specification header first, to ensure its
64148         selfcontainedness.
64149         * lib/full-write.c: Likewise.
64150
64151 2003-01-07  Jim Meyering  <jim@meyering.net>
64152
64153         * lib/full-write.c: Rework so that it may serve to define full_read,
64154         too.
64155         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64156
64157 2003-01-07  Bruno Haible  <bruno@clisp.org>
64158
64159         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64160         <inttypes.h>.
64161         * lib/xstrtol.h: Likewise.
64162         * lib/xstrtoimax.c: Likewise.
64163         * lib/xstrtoumax.c: Likewise.
64164         * lib/human.h: Likewise.
64165
64166         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64167         on systems that have <inttypes.h> but not <stdint.h>.
64168
64169 2003-01-07  Bruno Haible  <bruno@clisp.org>
64170
64171         * MODULES.html.sh: Add copyright notice.
64172         (missed_files): Omit CVS directory entries.
64173         (func_module): Make it work with sed-3.02.
64174         * MODULES.txt: Remove file.
64175
64176 2003-01-06  Jim Meyering  <jim@meyering.net>
64177
64178         * lib/version-etc.c: Update year in translatable copyright string.
64179
64180 2003-01-03  Karl Berry  <karl@gnu.org>
64181
64182         * config/config.{guess,sub}: update from prep.
64183
64184 2003-01-02  Karl Berry  <karl@gnu.org>
64185
64186         * doc/COPYING.DOC: belatedly updated to 1.2.
64187
64188 2003-01-01  Karl Berry  <karl@gnu.org>
64189
64190         * gnulib-tool (func_verify_module): report module name $module in
64191         error message, not $1.
64192         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64193         be created, only if it doesn't exist.
64194         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64195
64196 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64197
64198         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64199
64200 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64201
64202         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64203         memcmp if strcoll doesn't work.
64204
64205 2002-12-31  Bruno Haible  <bruno@clisp.org>
64206
64207         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64208         nonempty.
64209
64210 2002-12-31  Bruno Haible  <bruno@clisp.org>
64211
64212         * lib/memcoll.c (STRCOLL): New macro.
64213         (memcoll): Use it.
64214
64215 2002-12-31  Bruno Haible  <bruno@clisp.org>
64216
64217         * lib/localcharset.h: New file.
64218         * lib/localcharset.c: Include it.
64219         * lib/unicodeio.c: Likewise.
64220
64221 2002-12-31  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64224         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64225
64226 2002-12-31  Bruno Haible  <bruno@clisp.org>
64227
64228         * lib/getline.h: Include <stddef.h>, for size_t.
64229
64230         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64231         * lib/unicodeio.c: Don't include <stddef.h>.
64232
64233 2002-12-31  Bruno Haible  <bruno@clisp.org>
64234
64235         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64236         HAVE_TM_ZONE.
64237
64238 2002-12-24  Karl Berry  <karl@gnu.org>
64239
64240         * config/config.guess: update from prep.
64241
64242 2002-12-24  Bruno Haible  <bruno@clisp.org>
64243
64244         General infrasructure.
64245         * m4/README: Rewritten.
64246         * m4/onceonly.m4: New file.
64247         * m4/onceonly_2_57.m4: New file.
64248
64249         Module atexit.
64250         * m4/atexit.m4: New file.
64251
64252         Module strtod.
64253         * m4/strtod.m4: New file.
64254
64255         Module strtol.
64256         * m4/strtol.m4: New file.
64257
64258         Module strtoul.
64259         * m4/strtoul.m4: New file.
64260
64261         Module memchr.
64262         * m4/memchr.m4: New file.
64263
64264         Module memcmp.
64265         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64266         (jm_FUNC_MEMCMP): Invoke it.
64267
64268         Module memcpy.
64269         * m4/memcpy.m4: New file.
64270
64271         Module memmove.
64272         * m4/memmove.m4: New file.
64273
64274         Module memset.
64275         * m4/memset.m4: New file.
64276
64277         Module strcspn.
64278         * m4/strcspn.m4: New file.
64279
64280         Module strpbrk.
64281         * m4/strpbrk.m4: New file.
64282
64283         Module strstr.
64284         * m4/strstr.m4: New file.
64285
64286         Module strerror.
64287         * m4/strerror.m4: New file.
64288
64289         Module mktime.
64290         * m4/mktime.m4: Renamed from jm-mktime.m4.
64291         (gl_PREREQ_MKTIME): New macro.
64292         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64293
64294         Module malloc.
64295         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64296         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64297         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64298
64299         Module realloc.
64300         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64301         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64302         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64303
64304         Module strftime.
64305         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64306         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64307         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64308         gl_TM_GMTOFF.
64309         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64310
64311         Module xalloc.
64312         * m4/xalloc.m4: New file.
64313
64314         Module alloca.
64315         * m4/alloca.m4: New file.
64316
64317         Module putenv.
64318         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64319         (jm_FUNC_PUTENV): Invoke it.
64320
64321         Module setenv.
64322         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64323         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64324         when invoked twice.
64325         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64326         gt_FUNC_SETENV.
64327
64328         Module memrchr.
64329         * m4/memrchr.m4: New file.
64330
64331         Module stpcpy.
64332         * m4/stpcpy.m4: New file.
64333
64334         Module strcase.
64335         * m4/strcase.m4: New file.
64336
64337         Module strdup.
64338         * m4/strdup.m4: New file.
64339
64340         Module strnlen.
64341         * m4/strnlen.m4: New file.
64342
64343         Module strndup.
64344         * m4/strndup.m4: New file.
64345
64346         Module xstrtod.
64347         * m4/xstrtod.m4: New file.
64348
64349         Module xstrtol.
64350         * m4/xstrtol.m4: New file.
64351
64352         Module getdate.
64353         * m4/getdate.m4: New file.
64354
64355         Module unlocked-io.
64356         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64357         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64358         * m4/jm-glibc-io.m4n: Remove file.
64359
64360         Module long-options.
64361         * m4/long-options.m4: New file.
64362
64363         Module md5.
64364         * m4/md5.m4: New file.
64365
64366         Module sha.
64367         * m4/sha.m4: New file.
64368
64369         Module getstr.
64370         * m4/getstr.m4: New file.
64371
64372         Module getline.
64373         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64374         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64375         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64376         simply getline. Infoke gl_PREREQ_GETLINE.
64377
64378         Module obstack.
64379         * m4/obstack.m4: New file.
64380
64381         Module hash.
64382         * m4/hash.m4: New file.
64383
64384         Module readtokens.
64385         * m4/readtokens.m4: New file.
64386
64387         Module strverscmp.
64388         * m4/strverscmp.m4: New file.
64389
64390         Module stdbool.
64391         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64392         OSF/1.
64393
64394         Module strtoll.
64395         * m4/strtoll.m4: New file.
64396
64397         Module strtoull.
64398         * m4/strtoull.m4: New file.
64399
64400         Module strtoimax.
64401         * m4/strtoimax.m4: New file.
64402
64403         Module strtoumax.
64404         * m4/strtoumax.m4: New file.
64405
64406         Module xstrtoimax.
64407         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64408         jm_AC_PREREQ_XSTRTOIMAX.
64409         Moved the strtol prerequisites to strtol.m4.
64410         Moved the strtoll prerequisites to strtoll.m4.
64411         Moved the strtoimax prerequisites to strtoimax.m4.
64412
64413         Module xstrtoumax.
64414         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64415         jm_AC_PREREQ_XSTRTOUMAX.
64416         Moved the strtoul prerequisites to strtoul.m4.
64417         Moved the strtoull prerequisites to strtoull.m4.
64418         Moved the strtoumax prerequisites to strtoumax.m4.
64419
64420         Module chown.
64421         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64422         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64423
64424         Module dup2.
64425         * m4/dup2.m4: New file.
64426
64427         Module ftruncate.
64428         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64429         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64430
64431         Module getgroups.
64432         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64433         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64434
64435         Module gettimeofday.
64436         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64437         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64438         gl_PREREQ_GETTIMEOFDAY.
64439
64440         Module mkdir.
64441         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64442         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64443
64444         Module mkstemp.
64445         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64446         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64447         jm_AC_TYPE_UINTMAX_T.
64448         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64449
64450         Module stat.
64451         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64452         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64453
64454         Module lstat.
64455         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64456         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64457
64458         Module timespec.
64459         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64460         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64461         * m4/st_mtim.m4: Indentation.
64462
64463         Module nanosleep.
64464         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64465         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64466         gl_PREREQ_NANOSLEEP.
64467
64468         Module regex.
64469         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64470         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64471         (gl_REGEX): New macro.
64472
64473         Module rename.
64474         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64475         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64476
64477         Module rmdir.
64478         * m4/rmdir.m4: New file.
64479
64480         Module utime.
64481         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64482         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64483         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64484
64485         Module dirname.
64486         * m4/dirname.m4: New file.
64487
64488         Module getopt.
64489         * m4/getopt.m4: New file.
64490
64491         Module unistd-safer.
64492         * m4/unistd-safer.m4: New file.
64493
64494         Module fnmatch.
64495         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64496         declaration.
64497         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64498         (gl_FUNC_FNMATCH_POSIX): New macro.
64499         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64500         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64501         simply fnmatch.
64502
64503         Module exclude.
64504         * m4/exclude.m4: New file.
64505
64506         Module human.
64507         * m4/human.m4: New file.
64508
64509         Module acl.
64510         * m4/acl.m4: Nop.
64511
64512         Module backupfile.
64513         * m4/backupfile.m4: New file.
64514         * m4/d-ino.m4: Indentation.
64515
64516         Module fsusage.
64517         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64518         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64519         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64520
64521         Module dirfd.
64522         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64523         requirements.
64524
64525         Module euidaccess.
64526         * m4/euidaccess.m4: New file.
64527
64528         Module file-type.
64529         * m4/file-type.m4: New file.
64530
64531         Module fileblocks.
64532         * m4/fileblocks.m4: New file.
64533
64534         Module filemode.
64535         * m4/filemode.m4: New file.
64536
64537         Module isdir.
64538         * m4/isdir.m4: New file.
64539
64540         Module lchown.
64541         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64542         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64543
64544         Module makepath.
64545         * m4/makepath.m4: New file.
64546
64547         Module modechange.
64548         * m4/modechange.m4: New file.
64549
64550         Module mountlist.
64551         * m4/mountlist.m4: New file.
64552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
64553         Indentation.
64554
64555         Module path-concat.
64556         * m4/path-concat.m4: New file.
64557
64558         Module pathmax.
64559         * m4/pathmax.m4: New file.
64560
64561         Module same.
64562         * m4/same.m4: New file.
64563
64564         Module save-cwd.
64565         * m4/save-cwd.m4: New file.
64566
64567         Module savedir.
64568         * m4/savedir.m4: New file.
64569
64570         Module xgetcwd.
64571         * m4/xgetcwd.m4: New file.
64572         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
64573
64574         Module xreadlink.
64575         * m4/xreadlink.m4: New file.
64576
64577         Module safe-read.
64578         * m4/safe-read.m4: New file.
64579
64580         Module safe-write.
64581         * m4/safe-write.m4: New file.
64582
64583         Module closeout.
64584         * m4/closeout.m4: New file.
64585
64586         Module stdio-safer.
64587         * m4/stdio-safer.m4: New file.
64588
64589         Module getpass.
64590         * m4/getpass.m4: New file.
64591
64592         Module getugroups.
64593         * m4/getugroups.m4: New file.
64594
64595         Module group-member.
64596         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
64597         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
64598
64599         Module idcache.
64600         * m4/idcache.m4: New file.
64601
64602         Module userspec.
64603         * m4/userspec.m4: New file.
64604
64605         Module gettime.
64606         * m4/clock_time.m4: New file.
64607         * m4/gettime.m4: New file.
64608
64609         Module settime.
64610         * m4/settime.m4: New file.
64611
64612         Module posixtm.
64613         * m4/posixtm.m4: New file.
64614
64615         Module gethostname.
64616         * m4/gethostname.m4: New file.
64617
64618         Module canon-host.
64619         * m4/canon-host.m4: New file.
64620
64621         Module gettext.
64622         * m4/codeset.m4: New file, from gettext-0.11.5.
64623         * m4/gettext.m4: New file, from gettext-0.11.5.
64624         * m4/glibc21.m4: New file, from gettext-0.11.5.
64625         * m4/iconv.m4: New file, from gettext-0.11.5.
64626         * m4/intdiv0.m4: New file, from gettext-0.11.5.
64627         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
64628         * m4/inttypes.m4: New file, from gettext-0.11.5.
64629         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
64630         * m4/isc-posix.m4: New file, from gettext-0.11.5.
64631         * m4/lcmessage.m4: New file, from gettext-0.11.5.
64632         * m4/lib-ld.m4: New file, from gettext-0.11.5.
64633         * m4/lib-link.m4: New file, from gettext-0.11.5.
64634         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
64635         * m4/progtest.m4: New file, from gettext-0.11.5.
64636         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
64637         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
64638         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
64639
64640         Module localcharset.
64641         * m4/localcharset.m4: New file.
64642
64643         Module hard-locale.
64644         * m4/hard-locale.m4: New file.
64645
64646         Module mbswidth.
64647         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
64648         onceonly macros.
64649         * m4/mbrtowc.m4: Add comment.
64650
64651         Module memcasecmp.
64652         * m4/memcasecmp.m4: New file.
64653
64654         Module memcoll.
64655         * m4/memcoll.m4: New file.
64656
64657         Module unicodeio.
64658         * m4/unicodeio.m4: New file.
64659
64660         Module rpmatch.
64661         * m4/rpmatch.m4: New file.
64662
64663         Module yesno.
64664         * m4/yesno.m4: New file.
64665
64666         Module exitfail.
64667         * m4/exitfail.m4: New file.
64668
64669         Module c-stack.
64670         * m4/c-stack.m4 (gl_C_STACK): New macro.
64671         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
64672
64673         Module error.
64674         * m4/error.m4 (gl_ERROR): New macro.
64675         (jm_PREREQ_ERROR): Use onceonly macros.
64676
64677         Module fatal.
64678         * m4/fatal.m4: New file.
64679
64680         Module getloadavg.
64681         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
64682         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
64683
64684         Module getpagesize.
64685         * m4/getpagesize.m4: New file.
64686
64687         Module getusershell.
64688         * m4/getusershell.m4: New file.
64689
64690         Module physmem.
64691         * m4/physmem.m4: New file.
64692
64693         Module posixver.
64694         * m4/posixver.m4: New file.
64695
64696         Module quotearg.
64697         * m4/quotearg.m4: New file.
64698
64699         Module quote.
64700         * m4/quote.m4: New file.
64701
64702         Module readutmp.
64703         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
64704
64705         Module sig2str.
64706         * m4/sig2str.m4: New file.
64707
64708         Other.
64709         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
64710         ulonglong.m4.
64711         * m4/intmax_t.m4: New file.
64712         * m4/d-type.m4: Indentation.
64713         * m4/jm-macros.m4: Update.
64714         * m4/prereq.m4 (jm_PREREQ): Update.
64715         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
64716         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
64717         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
64718         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
64719         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
64720         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
64721         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
64722         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
64723         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
64724         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
64725         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
64726         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
64727         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
64728         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
64729         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
64730         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
64731         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
64732         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
64733         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
64734
64735 2002-12-24  Bruno Haible  <bruno@clisp.org>
64736
64737         * MODULES.txt: Update according to m4/ changes.
64738
64739         Module gettext.
64740         * config.rpath: New file, from gettext-0.11.5.
64741
64742         * modules/*: New module descriptions.
64743         * gnulib-tool: New file.
64744         * MODULES.html.sh: New file.
64745
64746 2002-12-21  Karl Berry  <karl@gnu.org>
64747
64748         * doc/fdl.texi: update to version 1.2.
64749
64750 2002-12-19  Karl Berry  <karl@gnu.org>
64751
64752         * config/config.guess: update from prep.
64753
64754 2002-12-18  Bruno Haible  <bruno@clisp.org>
64755
64756         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
64757         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
64758
64759 2002-12-17  Bruno Haible  <bruno@clisp.org>
64760
64761         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
64762         stdlib.h, string.h.
64763
64764 2002-12-17  Bruno Haible  <bruno@clisp.org>
64765
64766         * lib/canon-host.c (strdup): Remove unused declaration.
64767
64768         * lib/fsusage.c: Include full_read.h.
64769         (get_fs_usage): Use full_read instead of safe_read.
64770
64771         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
64772
64773 2002-12-12  Karl Berry  <karl@gnu.org>
64774
64775         * config/config.guess: update from prep.
64776
64777 2002-12-11  Bruno Haible  <bruno@clisp.org>
64778
64779         * m4/setenv.m4: New file, from gettext-0.11.5.
64780
64781 2002-12-11  Bruno Haible  <bruno@clisp.org>
64782
64783         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
64784         not unsetenv().
64785         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
64786         modifications:
64787
64788         2002-12-11  Bruno Haible  <bruno@clisp.org>
64789
64790                 * setenv.c (alloca): Fall back to malloc.
64791                 (freea): New macro.
64792                 (setenv): Use freea() to free memory allocated with alloca().
64793
64794         2002-11-13  Bruno Haible  <bruno@clisp.org>
64795
64796                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
64797                 function declarations.
64798                 * unsetenv.c (unsetenv): Likewise.
64799
64800         2002-03-04  Bruno Haible  <bruno@clisp.org>
64801
64802                 Portability to AIX 4.3.3.
64803                 * unsetenv.c: New file, extracted from setenv.c.
64804                 * setenv.c: Move the unsetenv() function to unsetenv.c.
64805
64806         2001-12-20  Bruno Haible  <bruno@clisp.org>
64807
64808                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
64809                 use malloc instead. For SunOS 4.
64810
64811         2001-12-11  Bruno Haible  <bruno@clisp.org>
64812
64813                 * setenv.c: Declare alloca.
64814                 (compar_fn_t): New typedef.
64815                 (KNOWN_VALUE, STORE_VALUE): Use it.
64816
64817         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
64818         setenv.h.
64819
64820 2002-12-10  Paul Eggert  <eggert@twinsun.com>
64821
64822         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
64823         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
64824         Choose values that are less likely to collide with system fnmatch
64825         options.
64826         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
64827         defined (e.g., a pure POSIX system).
64828         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
64829         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
64830
64831 2002-12-06  Paul Eggert  <eggert@twinsun.com>
64832
64833         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
64834         a pain in practice to deal with generated m4 files.  This change
64835         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
64836
64837         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
64838         and jm-glibc-io.m4, as they are no longer a special case.
64839         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
64840         kludge and the auto-generation stuff.  Check only whether the
64841         functions are declared, not whether they exist, since older hosts
64842         that don't declare the functions can't use the optimization anyway.
64843
64844 2002-12-06  Jim Meyering  <jim@meyering.net>
64845
64846         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
64847
64848         Merge in changes from libc's misc/error.c, in preparation
64849         for the merge of gnulib's changes back into libc.
64850
64851         * lib/error.c (_): Define only if not already defined.
64852         Move definition to follow all #include directives.
64853         Include unlocked-io.h only if !_LIBC.
64854         [_LIBC]: Include <libio/libioP.h>.
64855         [USE_IN_LIBIO]: Include <libio/iolibio.h>
64856         (fflush): Tweak definition to use INTUSE.
64857         (putc): Define.
64858
64859 2002-12-05  Paul Eggert  <eggert@twinsun.com>
64860
64861         * lib/alloca.c [defined emacs]: Include "lisp.h".
64862         (xalloc_die) [defined emacs]: New macro.
64863         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
64864         [! defined emacs]: Include <xalloc.h>.
64865         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
64866         (pointer): Typedef to POINTER_TYPE *.
64867         (malloc): Remove decl; we now always use xmalloc.
64868         (alloca): Use old-style definition, since Emacs needs this.
64869         Check for arithmetic overflow when computing combined size.
64870
64871 2002-12-04  Paul Eggert  <eggert@twinsun.com>
64872
64873         Do not generate unlocked-io.h automatically, since it's easier to
64874         maintain it by hand.
64875
64876         * lib/unlocked-io.h: New file, from GNU diffutils,
64877         but with proper copyright notice and attribution.
64878         * lib/gen-uio: Remove.
64879         * lib/Makefile.am: Add copyright notice.
64880         (libfetish_a_SOURCES): Add unlocked-io.h.
64881         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
64882         (DISTCLEANFILES, io_functions): Remove macros.
64883         (EXTRA_DIST): Remove gen_uio.
64884         (unlocked-io.h): Remove rule.
64885
64886 2002-12-04  Jim Meyering  <jim@meyering.net>
64887
64888         Reflect the fact that stat.c and lstat.c are no longer generated.
64889         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
64890         (DISTCLEANFILES): Likewise.
64891         (EXTRA_DIST): Likewise.
64892         (all_local): Don't depend on stat.c or lstat.c.
64893         (stat.c, lstat.c): Remove rules.
64894         (EXTRA_DIST): Remove xstat.in.
64895
64896         * lib/xstat.in: Remove file.  Contents moved into stat.c.
64897         * lib/stat.c: New file.  Contents mostly from xstat.in.
64898         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
64899         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
64900
64901         * lib/safe-read.c: Rework so that it may serve to define safe_write,
64902         too.
64903         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
64904
64905 2002-12-03  Jim Meyering  <jim@meyering.net>
64906
64907         * lib/safe-read.c, safe-write.c: Change variable names and comments,
64908         but not semantics, to minimize the differences between these two files.
64909         (safe_read): Change comment to mention SAFE_READ_ERROR.
64910
64911         * lib/safe-read.c (IS_EINTR): Define.
64912         (safe_read): Use IS_EINTR in place of in-function cpp directives.
64913
64914 2002-12-02  Jim Meyering  <jim@meyering.net>
64915
64916         * lib/safe-read.c (EINTR): Define.
64917         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
64918         (INT_MAX): Provide fallback.
64919         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
64920
64921         * lib/safe-read.h (SAFE_READ_ERROR): Define.
64922
64923 2002-12-02  Bruno Haible  <bruno@clisp.org>
64924
64925         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
64926         Define, taken from safe-read.c.
64927         (INT_MAX): Provide fallback.
64928         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
64929         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
64930
64931         * lib/safe-read.c (EINTR): Remove definition.
64932         (safe_read): Don't use EINTR if it is absent.
64933
64934 2002-12-01  Jim Meyering  <jim@meyering.net>
64935
64936         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
64937         zero.
64938         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
64939
64940 2002-11-27  Paul Eggert  <eggert@twinsun.com>
64941
64942         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
64943         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
64944         with `if (! (value < limit)) abort ();', for readability.
64945
64946 2002-11-26  Karl Berry  <karl@gnu.org>
64947
64948         * lib/strdup.c: copy from libc again, with jim's ok.
64949         * lib/.cppi-disable: re-add strdup.c
64950
64951 2002-11-25  Karl Berry  <karl@gnu.org>
64952
64953         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
64954         instead of "strtol.c".
64955
64956 2002-11-25  Karl Berry  <karl@gnu.org>
64957
64958         * config/install-sh: update from automake for variable quoting, $0 in
64959         error msgs, etc.
64960
64961         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
64962         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
64963         entry.
64964
64965 2002-11-25  Jim Meyering  <jim@meyering.net>
64966
64967         * lib/mktime.c: Sync from libc, now that it has the latest fix.
64968
64969 2002-11-24  Karl Berry  <karl@gnu.org>
64970
64971         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
64972         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
64973
64974 2002-11-24  Jim Meyering  <jim@meyering.net>
64975
64976         Update from coreutils:
64977
64978         * lib/mktime.c: Merge in changes from libc.
64979
64980         Avoid a link-time failure on some Linux systems.
64981         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
64982         (otherwise).
64983         (__mon_yday): Declare with the STATIC attribute.
64984         (__mktime_internal): Likewise.
64985         Based on a report from Greg Schafer.
64986
64987 2002-11-23  Jim Meyering  <jim@meyering.net>
64988
64989         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
64990         Use `unsigned', not `int', as type of index.
64991
64992         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
64993
64994         * lib/fsusage.c: Remove unneeded parentheses around operands of
64995         `defined'.
64996
64997 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64998
64999         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65000         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65001         so that we can be included first.
65002         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65003         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65004         No need to include stddef.h or sys/types.h any more.
65005         Surround local include files with "", not "<>".
65006         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65007         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65008         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65009         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65010         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65011         (ISPRINT): Remove; no longer needed now that we assume C89.
65012
65013         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65014         Preserve errno.
65015
65016         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65017         quotearg_char): Use SIZE_MAX rather than
65018         (size_t) -1 when we are talking about "infinity".
65019
65020         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65021
65022 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65023
65024         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65025         hint that one should use `if (! x) abort ();' rather than `assert
65026         (x);', and anyway it's one less thing to worry about configuring.
65027         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65028         hash_rehash, hash_insert): Use abort rather than assert.
65029
65030 2002-11-22  Bruno Haible  <bruno@clisp.org>
65031
65032         * lib/safe-read.h: Assume C89. Add comments.
65033         (safe_read): Change return type to size_t.
65034         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65035         byte counts > SSIZE_MAX correctly.
65036         * lib/safe-write.h: New file.
65037         * lib/safe-write.c: New file.
65038         * lib/full-read.h: New file.
65039         * lib/full-read.c: New file.
65040         * lib/full-write.h: Assume C89. Add comments.
65041         * lib/full-write.c: Include safe-write.h.
65042         (full_write): Rewritten to use safe_write.
65043         Suggested by Jim Meyering and Paul Eggert.
65044
65045 2002-11-21  Jim Meyering  <jim@meyering.net>
65046
65047         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65048
65049         Merge in changes from the coreutils.
65050
65051         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65052         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65053         <stdint.h>.
65054         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65055         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65056         int.  Work more efficiently if X is the same width as uintmax_t.
65057         Do not compare X to -1, to avoid bogus compiler warning.
65058         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65059         Don't assume that f_frsize and f_bsize are the same type.
65060
65061         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65062         warning on FreeBSD.
65063
65064         * lib/makepath.c (make_path): Restore umask *before* creating the final
65065         component.
65066         (make_path): Minor reformatting.
65067
65068         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65069         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65070         HAVE_MALLOC/HAVE_REALLOC.
65071
65072         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65073         dummy ones.  At least on GNU/Linux systems, `auto' means something
65074         else.
65075         From Michael Stone.
65076
65077 2002-11-21  Bruno Haible  <bruno@clisp.org>
65078
65079         Remove case insensitive option matching.
65080         * lib/argmatch.h (argcasematch): Remove declaration.
65081         (ARGCASEMATCH): Remove macro.
65082         (__xargmatch_internal): Remove case_sensitive argument.
65083         (XARGMATCH): Update.
65084         (XARGCASEMATCH): Remove macro.
65085         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65086         case_sensitive argument.
65087         (argcasematch): Remove function.
65088         (__xargmatch_internal): Remove case_sensitive argument.
65089         (main): Use XARGMATCH instead of XARGCASEMATCH.
65090
65091         * lib/xmalloc.c: Change compile-time error message. Add comment about
65092         required autoconf version.
65093
65094 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65095
65096         Merge argmatch cleanups from Bison.  Assume C89.
65097
65098         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65099         Include stdlib.h, for EXIT_FAILURE.
65100         Always include <string.h>, since we assume C89.
65101         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65102         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65103         Include <stddef.h> instead, since it's all we need for size_t.
65104         (PARAMS): Remove.  All uses removed.
65105         (ARRAY_CARDINALITY): Do not bother to #undef.
65106         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65107         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65108         Remove unnecessary parentheses.
65109         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65110         Insert necessary parentheses.
65111         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65112         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65113
65114 2002-11-19  Bruno Haible  <bruno@clisp.org>
65115
65116         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65117         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65118
65119         * lib/mbswidth.h (PARAMS): Remove macro.
65120         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65121         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65122
65123         * lib/gcd.h (PARAMS): Remove macro.
65124         (gcd): Use ANSI C function declarations.
65125         * lib/gcd.c (gcd): Likewise.
65126
65127 2002-11-15  Bruno Haible  <bruno@clisp.org>
65128
65129         * lib/strcspn.c: Include <stddef.h>.
65130         (strcspn): Use ANSI C function declaration. Change return type to
65131         size_t. Use NULL.
65132         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65133         (strpbrk): Use NULL.
65134         * lib/strpbrk.h (PARAMS): Remove macro.
65135         (strpbrk): Use ANSI C function declaration.
65136         * lib/strstr.c: Don't include <sys/types.h>.
65137         * lib/strstr.h (PARAMS): Remove macro.
65138         (strstr): Use ANSI C function declarations.
65139
65140 2002-11-14  Karl Berry  <karl@gnu.org>
65141
65142         * config/mkinstalldirs: `do' on separate line, instead of
65143         `for var; do'.
65144
65145 2002-11-06  Bruno Haible  <bruno@clisp.org>
65146
65147         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65148         * lib/gcd.c (gcd): Likewise.
65149
65150 2002-11-05  Bruno Haible  <bruno@clisp.org>
65151
65152         * lib/gcd.h: New file, from gettext-0.11.5.
65153         * lib/gcd.c: New file, from gettext-0.11.5.
65154
65155 2002-11-05  Bruno Haible  <bruno@clisp.org>
65156
65157         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65158         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65159         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65160         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65161
65162         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65163         <libintl.h>.
65164         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65165         <libintl.h>.
65166
65167         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65168         * lib/human.c: Include gettext.h instead of <libintl.h>.
65169         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65170         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65171         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65172         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65173         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65174         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65175         (textdomain): Remove definition.
65176         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65177
65178         * lib/long-options.c: Remove include of <libintl.h> and definition of
65179         _.
65180         * lib/same.c: Remove include of <libintl.h> and definition of _.
65181
65182 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65183
65184         * lib/config.charset: A few additions for Solaris.
65185
65186 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65187
65188         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65189         * lib/localcharset.c (locale_charset): Declare as extern "C".
65190
65191 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65192
65193         * lib/config.charset: msdos in uk_UA uses CP1125.
65194
65195 2002-11-04  Bruno Haible  <bruno@clisp.org>
65196
65197         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65198         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65199         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65200         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65201         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65202
65203 2002-11-04  Bruno Haible  <bruno@clisp.org>
65204
65205         * lib/localcharset.c (locale_charset): Don't return an empty string.
65206
65207 2002-11-04  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65210         aliases.
65211
65212 2002-11-04  Bruno Haible  <bruno@clisp.org>
65213
65214         * lib/config.charset: Update for newest glibc. Add canonical names
65215         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65216
65217 2002-11-04  Bruno Haible  <bruno@clisp.org>
65218
65219         * lib/config.charset: Add support for NetBSD.
65220
65221 2002-11-04  Bruno Haible  <bruno@clisp.org>
65222
65223         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65224
65225 2002-11-01  Bruno Haible  <bruno@clisp.org>
65226
65227         * configure.in: Add AC_CONFIG_AUX_DIR call.
65228         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65229         test/Makefile.
65230         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65231
65232 2002-09-28  Karl Berry  <karl@gnu.org>
65233
65234         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65235         installed automake until the next release, since changes have been
65236         made.
65237
65238 2002-09-25  Karl Berry  <karl@gnu.org>
65239
65240         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65241         * lib/getopt*: copy from libc/posix.
65242         * lib/gettext.h: copy from gettext.
65243         * lib/.cppi-disable: add strdup.c, gettext.h.
65244
65245 2002-09-25  Karl Berry  <karl@gnu.org>
65246
65247         * config/srclist.txt: enable gettext.h check.
65248         * config/config.{guess,sub}: update from prep.
65249         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65250                 from automake 1.6.3.
65251         See srclist*.
65252
65253 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65254
65255         * regex.c (PATFETCH): Remove the translating fetch.
65256         (PATFETCH_RAW): Rename to PATFETCH.
65257         (set_image_of_range): New fun.
65258         (SET_RANGE_TABLE_WORK_AREA): Use it.
65259         (regex_compile): Don't translate the pattern chars so eagerly.
65260         Only do it when inserting an `exactn' bytecode or when handling
65261         a char-range.
65262         (mutually_exclusive_p): Avoid empty statement.
65263
65264 2002-07-06  Jim Meyering  <meyering@lucent.com>
65265
65266         * m4/README: Don't mention Makefile.am.in.
65267         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65268
65269 2002-07-01  Jim Meyering  <meyering@lucent.com>
65270
65271         * lib/c-stack.c: Include sys/time.h.
65272         From Volker Borchert.
65273
65274 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65275
65276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65277
65278 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65279
65280         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65281         New macro.  Use it uniformly instead of
65282         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65283         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65284         reported by Vin Shelton.
65285
65286 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65287
65288         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65289         Do not assume SA_SIGINFO behavior.
65290         Bug reported by Jim Meyering on NetBSD 1.5.2.
65291
65292 2002-06-22  Jim Meyering  <meyering@lucent.com>
65293
65294         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65296
65297         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65298         now that configure.ac uses AC_GNU_SOURCE.
65299         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65300         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65301
65302         Update to latest tools.  Suggestions from Paul Eggert.
65303         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65304         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65305         * m4/fnmatch.m4: Likewise.
65306         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65307         to AC_HEADER_STDBOOL
65308
65309 2002-06-22  Jim Meyering  <meyering@lucent.com>
65310
65311         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65312         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65313
65314 2002-06-22  Jim Meyering  <meyering@lucent.com>
65315
65316         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65317
65318         * lib/exitfail.c, exitfail.h: Likewise.
65319         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65320
65321         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65322         of fnmatch.h.
65323         (EXTRA_DIST): Add fnmatch_loop.c.
65324         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65325
65326         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65327         * lib/fnmatch.c: Update from diffutils-2.8.2.
65328         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65329         * lib/fnmatch.h: Remove file.
65330
65331 2002-06-21  Jim Meyering  <meyering@lucent.com>
65332
65333         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65334         * m4/mbrtowc.m4: Likewise.
65335
65336         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65337         * m4/mbswidth.m4: Reflect name change:
65338         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65340
65341         * m4/lib-link.m4: Update from gettext-0.11.2.
65342         * m4/gettext.m4: Likewise.
65343
65344         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65345         From Alfred M. Szmidt.
65346
65347 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65348
65349         * lib/file-type.h: Report an error if neither S_ISREG nor
65350         S_IFREG is defined, instead of using a test specific to glibc
65351         2.2.  This should be safe, since POSIX requires S_ISREG and
65352         Unix Version 7 had S_IFREG.  We don't need to check for
65353         <sys/types.h> since we don't use any symbols that it defines.
65354
65355 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65356
65357         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65358         $@-t, so that each temporary file name is unique and valid in the first
65359         8 characters, for operation under DOS.
65360
65361 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65362
65363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65364
65365 2002-06-15  Jim Meyering  <meyering@lucent.com>
65366
65367         Work even with DJGPP 2.03, which lacks support for symlinks.
65368         From Richard Dawe.
65369         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65370         is defined.
65371         * lib/lchown.c (S_ISLNK): Likewise.
65372
65373 2002-06-15  Jim Meyering  <meyering@lucent.com>
65374
65375         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65376         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65377         have been included before this file.
65378
65379 2002-06-14  Jim Meyering  <meyering@lucent.com>
65380
65381         * lib/file-type.h: Use the version from diffutils-2.8.2.
65382         * lib/file-type.c: Likewise.
65383
65384 2002-06-07  Jim Meyering  <meyering@lucent.com>
65385
65386         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65387         They're needed at least for NetBSD 1.5.2.
65388         ($statxfs_includes): Include those same headers.
65389         ($statxfs_includes): Include sys/vfs.h if available.
65390         ($statxfs_includes): Likewise for sys/statvfs.h.
65391         Check for the following members in both structs statfs and statvfs:
65392         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65393
65394 2002-06-01  Jim Meyering  <meyering@lucent.com>
65395
65396         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65397         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65398
65399 2002-05-28  Jim Meyering  <meyering@lucent.com>
65400
65401         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65402         Reported by Volker Borchert.
65403
65404 2002-05-27  Jim Meyering  <meyering@lucent.com>
65405
65406         Fix a problem seen only on nonconforming systems whereby ls.c's
65407         use of localtime, and then of gettimeofday would cause trouble:
65408         the localtime call used to initialize rpl_gettimeofday's save
65409         mechanism would clobber ls's current local time information so
65410         that in any long listing the first file would always be listed
65411         with date 1970-01-01.  Analysis by Volker Borchert.
65412
65413         * lib/gettimeofday.c (localtime): Undefine.
65414         (rpl_localtime): New function.
65415
65416 2002-05-27  Jim Meyering  <meyering@lucent.com>
65417
65418         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65419         localtime.
65420
65421         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65422         use the replacement function; it wouldn't resolve at link time.
65423         Reported by Volker Borchert.
65424
65425 2002-05-22  Jim Meyering  <meyering@lucent.com>
65426
65427         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65428         file-type.h.
65429         * lib/file-type.h: New file.
65430         * lib/file-type.c (file_type): New file/function.  Extracted from
65431         diffutils.
65432
65433 2002-04-30  Jim Meyering  <meyering@lucent.com>
65434
65435         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65436
65437 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65438
65439         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65440
65441 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65442
65443         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65444         Do not check for alloca.h (no longer used) or stdbool.h (was never
65445         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65446
65447 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65448
65449         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65450
65451 2002-04-29  Jim Meyering  <meyering@lucent.com>
65452
65453         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65454         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65455         Use AC_FUNC_STRNLEN here instead.
65456
65457         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65458         With autoconf-2.53a, it's part of AC_PROG_CC.
65459
65460 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65461
65462         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65463         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65464
65465 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65466
65467         * lib/sig2str.h, lib/sig2str.c: New files.
65468         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65469
65470 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65471
65472         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65473         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65474         of 127, since 64 is the largest conceivable number for ancient
65475         nonstandard hosts.
65476         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65477
65478 2002-04-28  Jim Meyering  <meyering@lucent.com>
65479
65480         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65481
65482 2002-04-24  Jim Meyering  <meyering@lucent.com>
65483
65484         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65485         (jm_PREREQ): Use it.
65486
65487         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65488         mach/mach.h fcntl.h.
65489         Check for this function: setlocale.
65490
65491 2002-04-24  Jim Meyering  <meyering@lucent.com>
65492
65493         * lib/gettext.h: New file, from Gettext.
65494         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65495         (libfetish_a_SOURCES): Add gettext.h.
65496
65497 2002-04-16  Jim Meyering  <meyering@lucent.com>
65498
65499         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65500         ut_pid, ut_id, ut_exit.
65501
65502 2002-04-16  Jim Meyering  <meyering@lucent.com>
65503
65504         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65505         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65506         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65507
65508 2002-04-12  Jim Meyering  <meyering@lucent.com>
65509
65510         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65511         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65512         existence of the getmntinfo function.  Needed for Darwin 5.3.
65513
65514         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65515         This is necessary at least on Darwin 5.3.
65516
65517         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65518         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65519         strnlen.o in the library, and that makes some versions of ranlib
65520         object.
65521
65522 2002-04-12  Jim Meyering  <meyering@lucent.com>
65523
65524         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65525
65526 2002-04-09  Jim Meyering  <meyering@lucent.com>
65527
65528         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65529         to be more precise.  Rather than saying we're checking whether the
65530         function `works', say what we're testing.
65531         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65532         Reported by Bruno Haible.
65533
65534 2002-03-10  Jim Meyering  <meyering@lucent.com>
65535
65536         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65537         Suggestion from Santiago Vila.
65538
65539 2002-03-08  Jim Meyering  <meyering@lucent.com>
65540
65541         * lib/rename.c: Mention that this wrapper is needed also on
65542         mips-dec-ultrix4.4 systems.
65543
65544 2002-03-02  Jim Meyering  <meyering@lucent.com>
65545
65546         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65547         not HAVE_CLOCK_SETTIME.
65548
65549 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65550
65551         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
65552         Check for clock_settime.
65553
65554 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65555
65556         * lib/nanosleep.h: Rename to....
65557         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
65558
65559         * lib/gettime.c: New file.
65560         * lib/settime.c: New file.
65561         * lib/stime.c: Remove.
65562
65563         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
65564         timespec.h.  Remove nanosleep.h.
65565
65566 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65567
65568         * m4/acl.m4: New file.
65569         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
65570         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
65571
65572 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65573
65574         * lib/acl.c, lib/acl.h: New files.
65575         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
65576
65577 2002-02-24  Jim Meyering  <meyering@lucent.com>
65578
65579         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
65580         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
65581         cause trouble.  Reported by Nelson Beebe.
65582
65583 2002-02-23  Paul Eggert  <eggert@twinsun.com>
65584
65585         * lib/path-concat.c (xpath_concat): Reorder code to pacify
65586         compilers that don't know that xalloc_die never returns.
65587
65588 2002-02-20  Jim Meyering  <meyering@lucent.com>
65589
65590         * lib/getdate.c: Regenerate using bison-1.33.
65591
65592 2002-02-17  Jim Meyering  <meyering@lucent.com>
65593
65594         * config/config.guess (main): Don't use `head -1'; it's no longer
65595         portable. Use `sed 1q' instead.
65596
65597 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
65598
65599         * m4/codeset.m4: Upgrade to gettext-0.11.
65600         * m4/gettext.m4: Upgrade to gettext-0.11.
65601         * m4/glibc21.m4: Upgrade to gettext-0.11.
65602         * m4/iconv.m4: Upgrade to gettext-0.11.
65603         * m4/isc-posix.m4: Upgrade to gettext-0.11.
65604         * m4/lcmessage.m4: Upgrade to gettext-0.11.
65605         * m4/lib-ld.m4: New file, from gettext-0.11.
65606         * m4/lib-link.m4: New file, from gettext-0.11.
65607         * m4/lib-prefix.m4: New file, from gettext-0.11.
65608         * m4/progtest.m4: Upgrade to gettext-0.11.
65609
65610 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65611
65612         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
65613         (jm_PREREQ): Use it.
65614
65615 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65616
65617         * lib/posixver.c, lib/posixver.h: New files.
65618         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
65619
65620 2002-02-02  Paul Eggert  <eggert@twinsun.com>
65621             Bruno Haible  <bruno@clisp.org>
65622
65623         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
65624         (fwrite_success_callback): New declaration.
65625         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
65626         print_unicode_char. Call failure callback instead of error.
65627         (fwrite_success_callback): New function.
65628         (exit_failure_callback): New function.
65629         (fallback_failure_callback): New function.
65630         (print_unicode_char): Call unicode_to_mb.
65631
65632 2002-01-26  Jim Meyering  <meyering@lucent.com>
65633
65634         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
65635         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
65636
65637 2002-01-26  Jim Meyering  <meyering@lucent.com>
65638
65639         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
65640
65641 2002-01-22  Paul Eggert  <eggert@twinsun.com>
65642
65643         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
65644
65645 2002-01-22  Jim Meyering  <meyering@lucent.com>
65646
65647         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
65648         Otherwise, some versions of automake would omit the rule that makes
65649         Makefile from Makefile.in.
65650
65651 2002-01-21  Paul Eggert  <eggert@twinsun.com>
65652
65653         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
65654         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
65655         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
65656         (memcoll): Set errno to zero if there is no error.
65657
65658         * lib/quotearg.c (quotearg_buffer_restyled):
65659         Fix bug with quoting buffers containing NUL when backslashing escapes.
65660         This bug was exposed by the other changes in this patch.
65661         (quotearg_n_options): New arg ARGSIZE.
65662         All callers changed.
65663         (quoting_options_from_style): New function.
65664         (quotearg_n_style): Use it.
65665         (quotearg_n_style_mem): New function.
65666
65667         * lib/quotearg.h (quotearg_n_style_mem): New function.
65668
65669 2002-01-19  Jim Meyering  <meyering@lucent.com>
65670
65671         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
65672         Remove useless quotes: DF_PROG="df".
65673         * m4/strnlen.m4: New file.
65674
65675 2002-01-16  Paul Eggert  <eggert@twinsun.com>
65676
65677         * lib/backupfile.c (ISDIGIT): Comment fix.
65678         * lib/getdate.y (ISDIGIT): Likewise.
65679         * lib/posixtm.c (ISDIGIT, year): Likewise.
65680         * lib/strverscmp.c (ISDIGIT): Likewise.
65681         * lib/userspec.c (ISDIGIT): Likewise.
65682
65683 2002-01-16  Jim Meyering  <meyering@lucent.com>
65684
65685         * lib/getdate.y: Add three semicolons, each just before a closing
65686         brace. Bison (as of version 1.31) no longer papers over that mistake.
65687
65688 2002-01-05  Jim Meyering  <meyering@lucent.com>
65689
65690         * lib/version-etc.c (version_etc_copyright): Update copyright year.
65691
65692 2001-12-19  Paul Eggert  <eggert@twinsun.com>
65693
65694         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
65695         not silently exit merely because the output buffer happens to
65696         have nothing pending.
65697
65698 2001-12-18  Paul Eggert  <eggert@twinsun.com>
65699
65700         See the big note in ../ChangeLog.
65701         * lib/human.c (suffixes): Prefer K to k for 1024.
65702         (generate_suffix_backwards): New function.
65703         (human_readable_inexact): Use it.
65704         * lib/xstrtol.c (__xstrtol): If there is no number but there
65705         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
65706         Accept 'K' as well as 'k'.
65707
65708 2001-12-15  Jim Meyering  <meyering@lucent.com>
65709
65710         * lib/regex.h (__restrict_arr): Update from libc.
65711
65712         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
65713         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
65714         (STREQ): Define.
65715
65716 2001-12-14  Jim Meyering  <meyering@lucent.com>
65717
65718         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
65719         Suggestion from Bruno Haible.
65720
65721 2001-12-10  Jim Meyering  <meyering@lucent.com>
65722
65723         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
65724         xrealloc, Instead, include "xalloc.h".
65725         (initbuffer): Don't cast xmalloc return value to char*.
65726         (readline): Reword comment.
65727         Don't cast xrealloc return value to char*
65728         Return NULL, not 0.
65729
65730 2001-12-09  Jim Meyering  <meyering@lucent.com>
65731
65732         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
65733         about `signed and unsigned type in conditional expression'.
65734         * lib/posixtm.c (posix_time_parse): Likewise.
65735
65736         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
65737
65738         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
65739         to avoid a pedantic warning.
65740
65741         * lib/getstr.c: Don't include assert.h.
65742         (getstr): Remove warning-evoking assertions.
65743         Return -1 if offset parameter is out of bounds.
65744         Change the type of a local from int to size_t.
65745
65746         * lib/strftime.c (my_strftime_localtime_r): Include this function
65747         definition in the `#if ! HAVE_TM_GMTOFF' block.
65748
65749         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
65750         Include xalloc.h instead.
65751
65752 2001-12-02  Jim Meyering  <meyering@lucent.com>
65753
65754         * lib/tempname.c: Don't declare getenv, thus reverting the change of
65755         2001-11-18.  It's no longer necessary, now that stdlib.h is always
65756         included.
65757
65758         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
65759         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
65760
65761 2001-11-30  Akim Demaille  <akim@epita.fr>
65762
65763         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
65764         before being defined.
65765
65766 2001-11-27  Paul Eggert  <eggert@twinsun.com>
65767
65768         * lib/quotearg.h (quotearg_n, quotearg_n_style):
65769         First arg is int, not unsigned.
65770         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
65771         (SIZE_MAX, UINT_MAX): New macros.
65772         (quotearg_n_options): Abort if N is negative.
65773         Avoid overflow check on hosts where size_t is 64 bits and int
65774         is 32 bits, as overflow is impossible there.
65775         Fix off-by-one typo that caused unnecessary reallocation.
65776
65777 2001-11-27  Jim Meyering  <meyering@lucent.com>
65778
65779         * lib/tempname.c: Merge with version from libc.
65780         * lib/regex.c: Likewise.
65781
65782         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
65783         systems for which STDC_HEADERS is 0, it was not included, resulting in
65784         a warning about an integer-to-pointer conversion problem with getenv.
65785         Reported by Volker Borchert.
65786
65787 2001-11-26  Jim Meyering  <meyering@lucent.com>
65788
65789         * lib/gtod.h: Remove file.
65790         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
65791         * lib/gettimeofday.c: Don't include gtod.h.
65792         (GTOD_init): Remove function.
65793         (rpl_gettimeofday): Do its job here instead, rather than aborting.
65794         Suggestion from Volker Borchert.
65795
65796 2001-11-23  Jim Meyering  <meyering@lucent.com>
65797
65798         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
65799         it.
65800         * lib/hash.c (struct hash_table): Define it here instead.
65801
65802 2001-11-22  Jim Meyering  <meyering@lucent.com>
65803
65804         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
65805
65806 2001-11-20  Jim Meyering  <meyering@lucent.com>
65807
65808         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
65809         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
65810
65811 2001-11-19  Jim Meyering  <meyering@lucent.com>
65812
65813         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
65814         directory.  Use "conftestXXXXXX" as the template.
65815         Suggestion from Paul Eggert.
65816
65817         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
65818         immediately, so the test doesn't mistakenly hit the max-open-files
65819         limit.
65820
65821 2001-11-18  Paul Eggert  <eggert@twinsun.com>
65822
65823         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
65824         (TEMPORARIES): New macro.
65825         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
65826         removes an artificial limitation (e.g. HP-UX 10.20, where
65827         TMP_MAX is 17576).
65828
65829 2001-11-18  Jim Meyering  <meyering@lucent.com>
65830
65831         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
65832
65833 2001-11-18  Jim Meyering  <meyering@lucent.com>
65834
65835         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
65836         on SunOS 4.
65837
65838         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
65839         files will be created before anything else.
65840
65841 2001-11-17  Paul Eggert  <eggert@twinsun.com>
65842
65843         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
65844         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
65845
65846 2001-11-17  Jim Meyering  <meyering@lucent.com>
65847
65848         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
65849         Prompted by a report from Bob Proulx.
65850
65851         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
65852         Instead, require UTILS_FUNC_MKSTEMP.
65853
65854 2001-11-17  Jim Meyering  <meyering@lucent.com>
65855
65856         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
65857         Now, that's done as part of AC_FUNC_STRTOD.
65858
65859 2001-11-17  Jim Meyering  <meyering@lucent.com>
65860
65861         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
65862         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
65863         rather than group writable.  Patch by Juan F. Codagnone.
65864
65865         * lib/readtokens.c: Remove explicit declarations of xmalloc and
65866         xrealloc, Instead, include "xalloc.h".
65867
65868         * lib/mountlist.c: Include unlocked-io.h after all system headers.
65869         Remove explicit declarations of xmalloc, xrealloc,
65870         and xstrdup.  Instead, include "xalloc.h".
65871
65872         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
65873         unlocked-io.h.
65874         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
65875         Likewise.
65876         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
65877
65878         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
65879         Reported by Padraig Brady.
65880
65881         * lib/mkstemp.c: #undef mkstemp.
65882         Include config.h.
65883         (rpl_mkstemp): Rename from mkstemp.
65884         Protoize.
65885
65886 2001-11-16  Jim Meyering  <meyering@lucent.com>
65887
65888         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
65889         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
65890         determine the amount of total physical memory, use pstat_getstatic.
65891         HPUX-11 doesn't define _SC_PHYS_PAGES.
65892         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
65893         If sysconf couldn't be used to determine the amount of available
65894         physical memory, use both pstat_getstatic and pstat_getdynamic.
65895         Based on a patch from Bob Proulx.
65896
65897 2001-11-10  Jim Meyering  <meyering@lucent.com>
65898
65899         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
65900         (jm_PREREQ): Use it.
65901
65902 2001-11-09  Jim Meyering  <meyering@lucent.com>
65903
65904         * m4/jm-macros.m4: Require autoconf-2.52f.
65905         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
65906         Use these AC_-prefixed names, not the AM_-prefixed ones.
65907
65908         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
65909
65910 2001-11-05  Jim Meyering  <meyering@lucent.com>
65911
65912         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
65913
65914 2001-11-04  Jim Meyering  <meyering@lucent.com>
65915
65916         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
65917         $DEFS.
65918
65919 2001-11-03  Jim Meyering  <meyering@lucent.com>
65920
65921         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
65922         of AC_DEFUN.
65923
65924         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
65925         know the name of the variable in the macro definition.
65926
65927 2001-11-03  Jim Meyering  <meyering@lucent.com>
65928
65929         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
65930         in argmatch_to_argument call.
65931
65932         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
65933         argument.
65934
65935         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
65936         e.g., a fault due to an attempt to free a NULL pointer.
65937
65938 2001-11-01  Jim Meyering  <meyering@lucent.com>
65939
65940         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
65941         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
65942
65943 2001-11-01  Jim Meyering  <meyering@lucent.com>
65944
65945         * lib/dirfd.c, lib/dirfd.h: New files.
65946         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
65947
65948         * lib/hash.c (hash_print) [TESTING]: Clean up.
65949
65950 2001-10-22  Paul Eggert  <eggert@twinsun.com>
65951
65952         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
65953         to avoid a warning if -Wall.
65954
65955 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
65956
65957         * README: New file
65958         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
65959         (per RMS's instructions, this is now the canonical source)
65960         * lgpl/, gpl/: New directories.
65961
65962 2001-10-21  Paul Eggert  <eggert@twinsun.com>
65963
65964         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
65965
65966 2001-10-21  Jim Meyering  <meyering@lucent.com>
65967
65968         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
65969         this code would end up calling gettext even in packages built
65970         with --disable-nls.
65971         * lib/getopt.c (_): Likewise.
65972         * lib/regex.c (_): Likewise.
65973
65974 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65975
65976         * m4/error.m4 (jm_PREREQ_ERROR):
65977         Do not invoke AC_CHECK_FUNCS with strerror_r, as
65978         AC_FUNC_STRERROR_R does that.
65979         Check for strerror declaration.
65980
65981         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
65982         are supposed to have them these days.
65983         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
65984         Merge changes from latest Autoconf CVS.
65985         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
65986         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
65987         POSIX decided to standardize on the int flavor of strerror_r.
65988
65989 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65990
65991         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
65992         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
65993         Use strerror_r that is only a macro, even if it is not a function.
65994         (strerror): Check for HAVE_DECL_STRERROR before declaring.
65995         (private_strerror): Use prototypes, not old-style function definition.
65996         (print_errno_message): New function.
65997         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
65998         char*-flavored one.
65999         (error_tail, error, error_at_line): Use it.
66000
66001 2001-10-11  Jim Meyering  <meyering@lucent.com>
66002
66003         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66004         and quote_n (1, ... to avoid clobbering a buffer.
66005
66006 2001-10-05  Jim Meyering  <meyering@lucent.com>
66007
66008         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66009         hash-pjw.h.
66010         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66011         * lib/hash-pjw.h: New file.
66012
66013 2001-09-30  Jim Meyering  <meyering@lucent.com>
66014
66015         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66016         `struct fsstat' has the `f_fstypename' member.
66017         Use that to define FS_TYPE, which is now used to make
66018         the getfsstat link test tighter.
66019
66020 2001-09-30  Jim Meyering  <meyering@lucent.com>
66021
66022         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66023         Include <sys/ucred.h>, for Apple Darwin.
66024         Include sys/mount.h and sys/fs_types.h only if available.
66025         (FS_TYPE): Define.
66026         (read_filesystem_list): Use FS_TYPE.
66027
66028 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66029
66030         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66031         a boolean context.
66032
66033 2001-09-29  Jim Meyering  <meyering@lucent.com>
66034
66035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66036         [one-argument getmntent function]): Include stdio.h before mntent.h.
66037         SunOS 4.1.x needs it for the declaration of `FILE'.
66038         Patch by Volker Borchert.
66039
66040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66041         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66042         sys/fs_types.h, and make the link-test for getfsstat guard #include
66043         directives with appropriate #if HAVE_*_H tests so that we can
66044         detect getfsstat on Apple Darwin1.3.7 systems.
66045         Reported by Nelson Beebe.
66046         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66047
66048 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66049
66050         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66051         #defines strtoimax.  Also treat the other strto* functions
66052         like strtoimax.
66053
66054         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66055         Check for strtoul and strtoumax,
66056         as those declarations are made even in the signed case.
66057         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66058         Likewise, for strtol and strtoimax.
66059
66060 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66061
66062         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66063         #defines strtoimax.  Also treat the other strto* functions
66064         like strtoimax.
66065
66066         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66067         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66068         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66069
66070 2001-09-26  Jim Meyering  <meyering@lucent.com>
66071
66072         Most macros in unlocked-io.h had the wrong number of arguments.
66073         * lib/gen-uio: New script.
66074         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66075         * lib/unlocked-io.hin: Remove file.
66076         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66077         rather than trying to embed it here.
66078         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66079         Reported by Padraig Brady.
66080
66081 2001-09-25  Volker Borchert  <bt@teknon.de>
66082
66083         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66084         `result'.
66085
66086 2001-09-24  Jim Meyering  <meyering@lucent.com>
66087
66088         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66089
66090 2001-09-23  Jim Meyering  <meyering@lucent.com>
66091
66092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66093         instead of the mere test for existence of mntent.h.  The latter
66094         would get a false-positive on AIX 3.4 systems.
66095         In the outer getmntent if-block, don't die if neither of the getmntent
66096         tests succeeds.  Instead, just fall through and continue with the
66097         remaining tests.
66098
66099 2001-09-23  Jim Meyering  <meyering@lucent.com>
66100
66101         * lib/mountlist.c: Remove useless parentheses in #if directives.
66102         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66103         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66104
66105 2001-09-22  Jim Meyering  <meyering@lucent.com>
66106
66107         * m4/gettext.m4: New file.  From gettext.
66108         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66109         * m4/progtest.m4: Likewise
66110         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66111         * m4/glibc21.m4: Likewise.
66112
66113         * m4/libintl.m4: Remove.  No longer used.
66114
66115 2001-09-22  Jim Meyering  <meyering@lucent.com>
66116
66117         * lib/localcharset.c: Update from latest gettext.
66118         * lib/config.charset: Likewise.
66119
66120 2001-09-20  Jim Meyering  <meyering@lucent.com>
66121
66122         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66123         strtoimax.
66124         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66125         strtoumax.
66126
66127 2001-09-20  Jim Meyering  <meyering@lucent.com>
66128
66129         * lib/xstrtol.c (strtoimax): Guard declaration with
66130         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66131         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66132         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66133         (strtoumax): Likewise, for completeness (it wasn't necessary).
66134
66135 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66136
66137         * lib/strtoimax.c (HAVE_LONG_LONG):
66138         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66139         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66140         to work around bug in IBM C compiler.
66141
66142 2001-09-17  Jim Meyering  <meyering@lucent.com>
66143
66144         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66145         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66146         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66147         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66148         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66149         whenever the right hand side need not be expanded by the shell.
66150
66151 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66152
66153         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66154         library.  It's not correct, as some older glibcs are buggy.
66155         fnmatch wasn't fixed until glibc 2.2.
66156
66157         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66158         special shell magic here.
66159
66160 2001-09-16  Jim Meyering  <meyering@lucent.com>
66161
66162         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66163         * m4/jm-macros.m4: Require it.
66164
66165 2001-09-16  Jim Meyering  <meyering@lucent.com>
66166
66167         * lib/mkdir.c: New file.
66168
66169 2001-09-15  Jim Meyering  <meyering@lucent.com>
66170
66171         * m4/jm-macros.m4: Check for help2man.
66172
66173 2001-09-11  Jim Meyering  <meyering@lucent.com>
66174
66175         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66176         The body, by Paul Eggert, was moved here from configure.in.
66177         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66178
66179 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66180
66181         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66182         (jm_PREREQ): Use it.
66183
66184 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66185
66186         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66187         Use ssize_t, not int, to store result of readlink.
66188         Check for ssize_t overflow as well as size_t overflow,
66189         as POSIX says the result of readlink is implementation-defined
66190         when ssize_t overflows.
66191         Remove unnecessary cast to char*.
66192         Use free+malloc instead of realloc, as the storage doesn't need
66193         to be preserved and it's clearer and can be more efficient that way.
66194         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66195         * lib/xreadlink.h (xreadlink): Update prototype.
66196
66197 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66198
66199         * lib/xgetcwd.c: Revert some of the previous change; intead,
66200         fix the HAVE_GETCWD_NULL code to behave more like the
66201         !HAVE_GETCWD_NULL code used to.
66202
66203         Include "xalloc.h".
66204         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66205         invoke xalloc_die.
66206
66207 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66208
66209         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66210         sys/param.h, as pathmax.h includes them.
66211
66212 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66213
66214         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66215         (jm_PREREQ_XGETCWD): New macro.
66216
66217         * m4/getcwd.m4: New file.
66218
66219 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66220
66221         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66222         like the HAVE_GETCWD_NULL code.
66223         Include pathmax.h if not HAVE_GETCWD.
66224         Do not include xalloc.h.
66225         (INITIAL_BUFFER_SIZE): New symbol.
66226         Do not use xmalloc / xrealloc, since the caller is responsible for
66227         handling errors.  Preserve errno around `free' during failure.
66228         Do not overrun buffer when using getwd.
66229
66230 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66231
66232         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66233         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66234         getcwd (NULL, 0).
66235
66236 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66237
66238         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66239         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66240         spotted by Jim Meyering.
66241
66242 2001-09-03  Jim Meyering  <meyering@lucent.com>
66243
66244         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66245         failure.
66246
66247 2001-09-02  Jim Meyering  <meyering@lucent.com>
66248
66249         * lib/error.c: Update from GNU libc.
66250
66251 2001-09-01  Jim Meyering  <meyering@lucent.com>
66252
66253         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66254         Used by df.
66255
66256 2001-09-01  Jim Meyering  <meyering@lucent.com>
66257
66258         * lib/xreadlink.c: New file.
66259         * lib/xreadlink.h: New file.
66260         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66261         xreadlink.h.
66262
66263         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66264         doesn't conflict with sparc Solaris 7's definition in
66265         /usr/include/sys/int_types.h.
66266
66267         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66268         files.
66269         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66270         and strncasecmp as r-values.  Unixware didn't have declarations.
66271
66272 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66273
66274         * lib/xstrtol.h: Add copyright notice.
66275         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66276         LONGINT_INVALID_SUFFIX_CHAR.
66277
66278 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66279
66280         * lib/xstrtol.c (strtoimax): New decl.
66281
66282 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66283
66284         * lib/xgetcwd.c: Don't include pathmax.h.
66285         Include stdlib.h and unistd.h if available.
66286         Include xalloc.h.
66287         (xmalloc, xstrdup, free): Remove decls.
66288         (xgetcwd): Don't assume sizes fit in unsigned.
66289         Check for overflow when computing sizes.
66290         Simplify reallocation code.
66291
66292 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66293
66294         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66295         a directory's st_size can have an arbitrary value, so the old
66296         usage could waste an arbitrary amount of memory.  All uses
66297         changed.
66298         * lib/savedir.h: Update prototype.
66299
66300 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66301
66302         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66303
66304         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66305         old strtoimax.c.
66306
66307         Also, make the following further changes to make this file's
66308         configuration more similar to that of strtol.c:
66309         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66310         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66311         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66312         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66313         changed to signed values.
66314
66315         And make the following changes as well:
66316         Fix copyright notice, as 1999 was missing.
66317         (verify): New macro.
66318         (strtoimax): Check sizes at compile-time, not run-time.
66319         Prefer strtol to strtoll if both work.
66320         (main): Remove; it was not that useful and was a pain to maintain.
66321
66322         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66323
66324 2001-08-31  Jim Meyering  <meyering@lucent.com>
66325
66326         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66327         Use an initial, malloc'd, buffer of length 128 rather than
66328         a statically allocated one of length 1024.
66329
66330 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66331
66332         Simplify code, partly by assuming autoconf 2.52 semantics.
66333
66334         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66335
66336         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66337         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66338         All uses removed.
66339         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66340         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66341         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66342         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66343         jm_AC_HEADER_INTTYPES_H.
66344         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66345
66346         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66347
66348         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66349         Quote first arg of AC_DEFUN.
66350         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66351         since they are needed to parse the include file even if we need
66352         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66354         but with opposite signedness.
66355
66356 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66357
66358         Merge 'exclude' changes from tar 1.13.22.
66359         This fixes one or two unlikely storage allocation overflow bugs,
66360         but doesn't change user-visible behavior otherwise.
66361
66362 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66363
66364         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66365         (jm_PREREQ_EXCLUDE): New macro.
66366
66367 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66368
66369         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66370         tm to be declared.
66371
66372 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66373
66374         * lib/hash.c: Remove '2001' from copyright notice.
66375
66376 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66377
66378         * lib/full-write.h: New file.
66379         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66380         * lib/full-write.c: Correct credits, as cccp.c no longer
66381         exists and anyway it was so heavily changed from the old cccp
66382         code as to be unrecognizable.  Include full-write.h.
66383         (full_write) Return size_t, with short writes meaning failure.
66384         All callers changed.  This fixes a bug with large buffers
66385         on 64-bit hosts.
66386         * lib/utime.c: Include full-write.h.
66387
66388 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66389
66390         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66391         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66392         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66393         Include if available.
66394         (<xalloc.h>): Include
66395         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66396         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66397         collide with FNM macros.
66398         (struct patopts): New struct.
66399         (struct exclude): Use it, as exclude patterns now come with options.
66400         (new_exclude): Support above changes.
66401         (new_exclude, add_exclude_file):
66402         Initial size must now be a power of two to simplify overflow checking.
66403         (free_exclude, fnmatch_no_wildcards): New function.
66404         (excluded_filename): No longer requires options arg, as the options
66405         are determined by add_exclude.  Now returns bool, not int.
66406         (excluded_filename, add_exclude):
66407         Add support for the fancy new exclusion options.
66408         (add_exclude, add_exclude_file): Now takes int options arg.
66409         Check for arithmetic overflow when computing sizes.
66410         (add_exclude_file): xrealloc might modify errno, so don't
66411         realloc until after errno might be used.
66412
66413         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66414         New macros.
66415         (free_exclude): New decl.
66416         (add_exclude, add_exclude_file): Now takes int options arg.
66417         (excluded_filename): No longer requires options arg, as the options
66418         are determined by add_exclude.  Now returns bool, not int.
66419
66420 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66421
66422         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66423
66424 2001-08-27  Jim Meyering  <meyering@lucent.com>
66425
66426         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66427
66428         * lib/version-etc.c (N_): Remove definition.
66429         Revert most of last change.
66430         Instead, simply don't mark the `Copyright...' string for translation.
66431         Based on advice from Paul Eggert.
66432
66433         * lib/strtoxmax.c: Tweak comment.
66434
66435 2001-08-26  Jim Meyering  <meyering@lucent.com>
66436
66437         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66438
66439         * m4/xstrtoimax.m4: New file.
66440         * m4/xstrtoumax.m4: Add comments explaining why we
66441         AC_REPLACE_FUNCS(strtol).
66442
66443 2001-08-26  Jim Meyering  <meyering@lucent.com>
66444
66445         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66446         of copyright with `%s' so translators don't get an untranslated
66447         message in 2002.
66448         (COPYRIGHT_YEAR): Define.
66449         (version_etc): Use fprintf rather than fputs.
66450         Suggestion from Ulrich Drepper.
66451
66452         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66453
66454         * lib/strtoll.c: New file, from GNU libc.
66455         * lib/xstrtoimax.c: New file.
66456
66457         * lib/xstrtol.h: Add xstrtoimax.
66458         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66459         * lib/strtoimax.c: New file.  Likewise, but first define
66460         STRTOUXMAX_SIGNED.
66461
66462         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66463         ...
66464         * lib/strtoxmax.c: ... then renamed to this.
66465
66466 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66467
66468         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66469         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66470         (jm_AC_TYPE_INTMAX_T): New macro.
66471         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66472
66473         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66474
66475         * m4/longlong.m4: Renamed from ulonglong.m4.
66476         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66477         * m4/uintmax_t.m4: Removed.
66478
66479 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66480
66481         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66482         Port to Solaris 8, where 'sed' requires a space after the 'r'
66483         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66484         Redirect output to $tmp just once.
66485
66486 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66487
66488         * lib/addext.c (<errno.h>): Include.
66489         (errno): Declare if not defined.
66490         (addext): Work correctly when pathconf returns -1 and leaves
66491         errno alone because there is no limit.  Also, work even if
66492         pathconf returns a value greater than SIZE_MAX.
66493
66494 2001-08-12  Jim Meyering  <meyering@lucent.com>
66495
66496         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66497         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66498         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66499         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66500         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66501         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66502         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66503         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66504         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66505         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66506         utime.m4, utimes.m4, xstrtoumax.m4:
66507         Quote the first argument in each use of AC_DEFUN.
66508
66509 2001-08-12  Jim Meyering  <meyering@lucent.com>
66510
66511         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66512         Simply `return getcwd (NULL, 0);'.
66513         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66514         Use 1300 as initial value for length, not PATH_MAX.
66515
66516         * lib/pathmax.h: Clean up cpp syntax.
66517
66518 2001-08-12  Jim Meyering  <meyering@lucent.com>
66519
66520         * lib/gettimeofday.c: New file.
66521         * lib/gtod.h: New file.
66522         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66523
66524 2001-08-05  Jim Meyering  <meyering@lucent.com>
66525
66526         * m4/jm-macros.m4: Require autoconf-2.52.
66527
66528 2001-08-04  Jim Meyering  <meyering@lucent.com>
66529
66530         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66531         stmt, to get in sync with glibc.
66532
66533 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66534
66535         The following changes are from gettext 0.10.39 as maintained by
66536         Bruno Haible.
66537
66538         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66539         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66540         with inverted sense.  All uses changed.
66541
66542         * lib/mbswidth.c: Don't include <limits.h>.
66543         Include <stdlib.h> and <string.h> unconditionally.
66544         (iswcntrl, mbsinit, ISCNTRL): New macros.
66545         (mbsnwidth): Use K&R style function declarations.
66546         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66547         can optimize it when MB_CUR_MAX == 1.
66548         The width of control characters is zero, not 1.
66549
66550 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66551
66552         The following changes are from gettext 0.10.39 as maintained by
66553         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
66554
66555         * m4/codeset.m4: Upgrade to serial AM1.
66556         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
66557         all uses changed.  Quote first arg of AC_DEFUN.
66558         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
66559
66560         * m4/iconv.m4: Upgrade to serial AM2.
66561         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
66562         Add --with-libconv-prefix.
66563         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
66564         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
66565         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
66566         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
66567         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
66568
66569         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
66570         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
66571         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
66572         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
66573         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
66574         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
66575         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66576         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
66577         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66578
66579         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
66580         string.h any more.
66581
66582         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
66583         not the default value.
66584
66585         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
66586         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
66587         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
66588         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
66589         Also check for iswcntrl, used for wcwidth fallback.
66590         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
66591         to Autoconf 2.13.
66592
66593 2001-08-03  Jim Meyering  <meyering@lucent.com>
66594
66595         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
66596         as it was in the original.  Reported by Paul Eggert.
66597
66598 2001-07-16  Jim Meyering  <meyering@lucent.com>
66599
66600         * m4/gettimeofday.m4: New file.
66601         Prompted by a report from Bernhard Baehr.
66602
66603 2001-07-15  Jim Meyering  <meyering@lucent.com>
66604
66605         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
66606         stuff. Now it's in ../Makefile.cfg.
66607
66608 2001-07-15  Jim Meyering  <meyering@lucent.com>
66609
66610         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
66611         (BUILT_SOURCES): Add unlocked-io.h.
66612         (io_functions): Define.
66613         (unlocked-io.h): New rule.
66614         (DISTCLEANFILES): Add unlocked-io.h.
66615         (all-local): Depend on unlocked-io.h, to ensure it is created.
66616
66617         * lib/unlocked-io.hin: New file
66618
66619         * lib/regex.c: Update from glibc.
66620
66621 2001-07-05  Jim Meyering  <meyering@lucent.com>
66622
66623         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
66624         recommendation.
66625         (libfetish_a_SOURCES): Put all .h files here instead.
66626         Remove a thus-exposed (better checks in automake) duplicate and
66627         two unnecessary .h files.
66628
66629 2001-07-04  Jim Meyering  <meyering@lucent.com>
66630
66631         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
66632         that generates jm-glibc-io.m4 so that it doesn't trigger any make
66633         distcheck failure.
66634
66635 2001-07-02  Jim Meyering  <meyering@lucent.com>
66636
66637         The following changes were prompted by suggestions from Bruno Haible.
66638
66639         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
66640         is now generated.
66641         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
66642         definition of EXTRA_DIST.
66643         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
66644         ensure that the generated file is created/updated whenever the list
66645         of $(unlocked_functions) is changed.
66646         (jm-glibc-io.m4): New rule.
66647         (unlocked-io.h): New rule -- currently unused.
66648
66649 2001-06-24  Jim Meyering  <meyering@lucent.com>
66650
66651         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
66652         unmatched right bracket, rather than kludging it with an extra,
66653         falsely-matching quote in a comment.  Patch by Akim Demaille.
66654
66655 2001-06-11  Jim Meyering  <meyering@lucent.com>
66656
66657         * lib/regex.c: Update from GNU libc.
66658
66659 2001-05-27  Jim Meyering  <meyering@lucent.com>
66660
66661         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
66662         Check for ut_type in struct utmp.
66663
66664 2001-05-27  Jim Meyering  <meyering@lucent.com>
66665
66666         * lib/readutmp.h (UT_TYPE): Define.
66667
66668 2001-05-24  Jim Meyering  <meyering@lucent.com>
66669
66670         * lib/argmatch.c: Include "quote.h".
66671         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
66672         quote function.  Reported by Göran Uddeborg.
66673
66674 2001-05-22  Jim Meyering  <meyering@lucent.com>
66675
66676         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
66677         now that we use the package-supplied version unconditionally.
66678         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
66679
66680 2001-05-21  Jim Meyering  <meyering@lucent.com>
66681
66682         * m4/regex.m4: Change a couple backticks to single quotes to avoid
66683         shell syntax errors.
66684
66685 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
66686
66687         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
66688
66689 2001-05-20  Paul Eggert  <eggert@twinsun.com>
66690
66691         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
66692         Don't bother to check library strftime, since
66693         we'll be using our own my_strftime function anyway.
66694         Define my_strftime instead of strftime.
66695
66696 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
66697
66698         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
66699         which is not yet declared.
66700
66701 2001-05-15  Jim Meyering  <meyering@lucent.com>
66702
66703         * m4/regex.m4: Use proper quoting so brackets appear in the test
66704         program.
66705         Reported by, and with help from, Bruno Haible.
66706
66707 2001-05-13  Jim Meyering  <meyering@lucent.com>
66708
66709         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
66710         undefined.
66711
66712 2001-05-11  Paul Eggert  <eggert@twinsun.com>
66713
66714         dirname code cleanup.  base_name now behaves more compatibly
66715         with POSIX basename when given file names that have trailing
66716         slashes, and similarly for dir_name.  Add new primitives
66717         base_len and dir_len.  Put the directory-name-related decls
66718         into dirname.h.
66719
66720         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
66721         * lib/backupfile.c (base_name): Likewise.
66722         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
66723         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
66724         * lib/makepath.c (strip_trailing_slashes): Likewise.
66725         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
66726         ISSLASH): Likewise.
66727         * lib/rename.c (strip_trailing_slashes): Likewise.
66728         * lib/same.c (base_name): Likewise.
66729         * lib/stripslash.c (ISSLASH): Likewise.
66730
66731         * lib/addext.c: Include <dirname.h> after size_t is defined.
66732         * lib/backupfile.c: Likewise.
66733
66734         * lib/addext.c (addext): Use base_len to trim redundant
66735         trailing slashes instead of doing it ourselves.
66736         But do not trim the last slash if it is not redundant.
66737
66738         * lib/backupfile.c (find_backup_file_name,
66739         max_backup_version): Use base_len instead of rolling it ourselves.
66740         Handle the case of "" and (on DOS) "C:" correctly.
66741
66742         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
66743         needed. Include <string.h>, <dirname.h>.
66744         (base_name): Allow file names ending in slashes, other than names
66745         that are all slashes.  In this case, return the basename followed
66746         by the slashes.  This is more general, and can be used in places
66747         where the original base_name purposely had an assertion failure.
66748         (base_len): New function.
66749
66750         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
66751         Do not include <assert.h>; no longer needed.
66752         Include xalloc.h.
66753         (memrchr): Remove decl.
66754         (dir_name_r): Remove.
66755         (dir_len): Renamed from dirlen.  All callers changed.
66756         Rewrite in terms of base_name, for simplicity and consistency.
66757         (dir_name): Never return NULL.  All callers changed.
66758         Do not include <stdlib.h> in test program; no longer needed.
66759         return 0; is fine for test program.
66760
66761         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
66762         New macros.
66763         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
66764
66765         * lib/path-concat.c (path_concat): Use base_len to compute
66766         base length, not strlen; this means we cannot rely on memcpy
66767         to null-terminate.
66768
66769         * lib/same.c (STREQ): Remove.
66770         (same_name): Handle the case where the basename ends in trailing '/'.
66771
66772         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
66773         a slash was stripped.  Do not strip the last slash after a
66774         file system prefix.
66775
66776 2001-05-11  Paul Eggert  <eggert@twinsun.com>
66777
66778         * lib/Makefile.am (libfetish_a_SOURCES):
66779         Add strftime.c, since we now compile it on all hosts.
66780
66781         * lib/strftime.c (my_strftime):
66782         Define to nstrftime if emacs, but only if my_strftime is not defined.
66783         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
66784         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
66785         Add one more extra argument: a nanoseconds value.
66786         All uses changed.
66787         (ns): New macro.
66788         (my_strftime function): Add %N format.
66789         (emacs_strftimeu): Renamed from emacs_strftime,
66790         with extra ut argument.
66791
66792 2001-05-09  Paul Eggert  <eggert@twinsun.com>
66793
66794         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
66795
66796 2001-04-21  Jim Meyering  <meyering@lucent.com>
66797
66798         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
66799         doesn't interfere.
66800
66801 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
66802
66803         * m4/ftruncate.m4: Check for chsize.
66804         Link with ftruncate.o unconditionally if ftruncate is missing.
66805         This was required when cross-compiling to i586-mingw32msvc.
66806
66807 2001-04-08  Jim Meyering  <meyering@lucent.com>
66808
66809         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
66810         recomputed; that's necessary when the offset spans a DST transition.
66811         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
66812
66813 2001-04-02  Jim Meyering  <meyering@lucent.com>
66814
66815         * lib/regex.h, regex.c: Update from GNU libc.
66816
66817 2001-03-24  Jim Meyering  <meyering@lucent.com>
66818
66819         * m4/jm-macros.m4: Require autoconf-2.49d.
66820
66821 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
66822
66823         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
66824
66825 2001-03-19  Paul Eggert  <eggert@twinsun.com>
66826
66827         * lib/version-etc.c (version_etc_copyright): Update to 2001.
66828
66829 2001-03-17  Jim Meyering  <meyering@lucent.com>
66830
66831         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
66832         now that the version in autoconf is equivalent.
66833         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
66834
66835         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
66836         Suggestion from Akim Demaille.
66837
66838         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
66839         (jm_PREREQ_TEMPNAME): New function.
66840
66841 2001-03-16  Paul Eggert  <eggert@twinsun.com>
66842
66843         * lib/tempname.c (uint64_t): Define to uintmax_t if
66844         not defined, and if UINT64_MAX is not defined.
66845         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
66846         Reported by John David Anglin.
66847
66848 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
66849
66850         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
66851         resolve alias if codeset is empty.
66852         * lib/config.charset (BeOS): Use wildcard syntax.
66853
66854 2001-03-13  Jim Meyering  <meyering@lucent.com>
66855
66856         * lib/path-concat.c (path_concat)
66857         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
66858         concatenating e.g., `C:' and `foo'.
66859         From Bruno Haible.
66860
66861 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66862
66863         * lib/localcharset.c (locale_charset): Don't use
66864         setlocale(LC_CTYPE,NULL). Don't return NULL.
66865         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
66866
66867 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66868
66869         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
66870         support for DOS/DJGPP.
66871
66872 2001-03-01  Paul Eggert  <eggert@twinsun.com>
66873
66874         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
66875         lacks mkstemp.  Compile our own tempname.c if we compile our own
66876         mkstemp.c, as mkstemp relies on tempname.
66877
66878 2001-03-01  Jim Meyering  <meyering@lucent.com>
66879
66880         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
66881         AH_VERBATIM really does output its argument verbatim.
66882
66883 2001-02-28  Paul Eggert  <eggert@twinsun.com>
66884
66885         * lib/Makefile.am (libfetish_a_SOURCES):
66886         Add dup-safer.c, fopen-safer.c.
66887         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
66888
66889         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
66890         * lib/unistd-safer.h: New files.
66891
66892 2001-02-25  Paul Eggert  <eggert@twinsun.com>
66893
66894         The mkstemp replacement is taken from glibc 2.2.2, with some
66895         portability fixes for use outside glibc, as follows:
66896
66897         * lib/tempname.c (struct_stat64): New macro.
66898         (direxists, __gen_tempname): Use it.
66899         This avoids a portability problem with Solaris 8.
66900
66901         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
66902         (<stddef.h>, <stdint.h>, <string.h>):
66903         Include only if STDC_HEADERS || _LIBC.
66904         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
66905         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
66906         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
66907         (__set_errno): Define this macro if <errno.h> doesn't.
66908         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
66909         Define these macros if <stdio.h> doesn't.
66910         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
66911         Define these macros if <sys/stat.h>
66912         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
66913         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
66914         __xstat64): Define if not _LIBC.
66915         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
66916         (__gen_tempname): Invoke gettimeofday only if
66917         HAVE_GETTIMEOFDAY || _LIBC;
66918         otherwise, fall back on plain "time".
66919         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
66920
66921         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
66922
66923         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
66924
66925 2001-02-18  Paul Eggert  <eggert@twinsun.com>
66926
66927         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
66928
66929 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66930
66931         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
66932         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
66933         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
66934         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66935
66936 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66937
66938         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
66939         Remove workaround macros for hosts that have mbrtowc but not
66940         mbstate_t, as we now insist on proper declarations for both
66941         before using mbrtowc.
66942
66943 2001-02-17  Jim Meyering  <meyering@lucent.com>
66944
66945         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
66946         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
66947         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
66948         UnixWare 7.1.1.
66949
66950         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
66951         rather than AC_CACHE_VAL.
66952
66953 2001-02-17  Jim Meyering  <meyering@lucent.com>
66954
66955         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
66956         around included file name.
66957
66958         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
66959
66960         * lib/strftime.c: Update from GNU libc (the only changes were to
66961         comments).
66962
66963 2001-02-17  Jim Meyering  <meyering@lucent.com>
66964
66965         * lib/regex.c: Update from libc.
66966
66967 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
66968
66969         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
66970         clash.
66971
66972 2001-02-16  Paul Eggert  <eggert@twinsun.com>
66973
66974         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
66975         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
66976         Reported by Mark Hounschell via Paul Eggert.
66977
66978 2001-02-07  Jim Meyering  <meyering@lucent.com>
66979
66980         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
66981
66982 2001-02-05  Jim Meyering  <meyering@lucent.com>
66983
66984         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
66985         it includes the patch required for `large file' support with at least
66986         HP-UX's 10.20 /bin/cc.
66987
66988 2001-02-03  Jim Meyering  <meyering@lucent.com>
66989
66990         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
66991         AS_IF, now that it works once again (mysteriously).
66992         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66993
66994 2001-01-30  Jim Meyering  <meyering@lucent.com>
66995
66996         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
66997         * m4/chown.m4: Rename conftestchown to conftest.chown.
66998         * m4/rename.m4: s/conftestdir/conftest.d1/ and
66999         s/conftestdir2/conftest.d2/.
67000         * m4/utimes.m4: s/conftestdata/conftest.data/
67001         Inspired by Pavel Roskin's change in autoconf.
67002
67003 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67004
67005         * lib/config.charset: Update for FreeBSD 4.2.
67006
67007 2001-01-27  Jim Meyering  <meyering@lucent.com>
67008
67009         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67010         a use of AS_IF.
67011         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67012
67013 2001-01-26  Jim Meyering  <meyering@lucent.com>
67014
67015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67016         quotearg.c includes it.
67017
67018 2001-01-26  Jim Meyering  <meyering@lucent.com>
67019
67020         * lib/quotearg.c: Include stddef.h.
67021         * lib/quote.c: Include stddef.h.
67022         Reported by Axel Kittenberger.
67023
67024         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67025         line in double quotes so that it evokes a better diagnostic.
67026         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67027         Reported by Axel Kittenberger.
67028
67029 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67030
67031         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67032         as if it was a `charset'.
67033
67034 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67035
67036         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67037         has const.
67038
67039 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67040
67041         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67042         to avoid a warning.  Add back 'const' to inptr.
67043
67044 2001-01-20  Jim Meyering  <meyering@lucent.com>
67045
67046         Be sure that headers are checked before used in code compiled
67047         for the type checks.
67048         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67049         In place of that, invoke jm_CHECK_ALL_TYPES.
67050         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67051         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67052         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67053         The check for ssize_t was mistakenly run before the test for unistd.h.
67054
67055         The configure-time check for stdbool.h was missing.
67056         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67057         (jm_PREREQ_HASH): New function.
67058
67059 2001-01-17  Jim Meyering  <meyering@lucent.com>
67060
67061         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67062         for autoconf-2.49c.
67063         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67064
67065 2001-01-16  Jim Meyering  <meyering@lucent.com>
67066
67067         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67068         From Bruno Haible.
67069
67070 2001-01-14  Jim Meyering  <meyering@lucent.com>
67071
67072         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67073         foo and bar.  Create conftestdir/ in the script, not in the C code.
67074         Remove directories in the script, not in the C code.
67075         Remove conftestdir{,2} before trying to create the directory.
67076         Make the entire configure script fail if the mkdir fails.
67077
67078 2001-01-14  Jim Meyering  <meyering@lucent.com>
67079
67080         * lib/rename.c: New file.  From Volker Borchert.
67081         Include stdlib.h, string.h or strings.h, and xalloc.h.
67082         Use strip_trailing_slashes rather than open-coding it.
67083
67084 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67085
67086         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67087
67088 2001-01-03  Jim Meyering  <meyering@lucent.com>
67089
67090         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67091         of local `inptr' to avoid warning with some system declarations of
67092         iconv.
67093
67094 2001-01-02  Volker Borchert  <bt@teknon.de>
67095
67096         * m4/rename.m4: New file.
67097         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67098
67099 2001-01-01  Jim Meyering  <meyering@lucent.com>
67100
67101         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67102         even on systems with utmpx.h.  It's necessary for the declaration of
67103         utmp's ut_user member.  Reported by Andreas Jaeger.
67104
67105         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67106         available. They are required for the declarations of getgrgid and
67107         getpwuid resp.
67108         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67109         Reported by Andreas Jaeger.
67110
67111 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67112
67113         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67114         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67115         so `make install' also works in VPATH builds.
67116
67117 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67118
67119         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67120         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67121         can be used in subdirectories.
67122
67123 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67124
67125         * lib/modechange.c: Do not assume that mode_t uses the
67126         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67127         the other-execute bit of FOO even if S_IXOTH != 1.
67128
67129         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67130         WOTH, XOTH, ALLM): New macros.
67131         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67132          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67133         Use them.
67134         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67135         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67136         (mode_compile):
67137         No need to use uintmax_t; unsigned long is long enough.
67138         Don't bother to get suffix since we don't use it.
67139
67140 2000-12-26  Jim Meyering  <meyering@lucent.com>
67141
67142         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67143         better with autoheader.
67144
67145 2000-12-24  Jim Meyering  <meyering@lucent.com>
67146
67147         * lib/hash.c (is_prime): Return explicit boolean values.
67148         (hash_get_first): Return NULL to appease Irix5.6's 89.
67149         Reported by Nelson Beebe.
67150
67151 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67152
67153         * lib/localcharset.c (locale_charset): Add support for Win32.
67154
67155 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67156
67157         * lib/physmem.h, lib/physmem.c: New files.
67158
67159         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67160         (noinst_HEADERS): Add physmem.h.
67161
67162         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67163         't' for compatibility with Solaris 8 sort.
67164
67165 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67166
67167         * lib/config.charset: Add support for BeOS.
67168
67169 2000-12-17  Jim Meyering  <meyering@lucent.com>
67170
67171         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67172         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67173
67174 2000-12-16  Jim Meyering  <meyering@lucent.com>
67175
67176         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67177         N and M) would have treated it like `chown N:N FILE'.
67178
67179         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67180
67181 2000-12-16  Jim Meyering  <meyering@lucent.com>
67182
67183         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67184         SHELLS_FILE to a file name that's useful on djgpp systems.
67185         Include stdlib.h.
67186         (ADDITIONAL_DEFAULT_SHELLS): Define.
67187         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67188         Based mostly on a patch from Prashant TR.
67189
67190 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67191
67192         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67193         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67194         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67195
67196 2000-12-08  Andreas Schwab  <schwab@suse.de>
67197
67198         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67199         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67200
67201 2000-12-07  Jim Meyering  <meyering@lucent.com>
67202
67203         * lib/stripslash.c (ISSLASH): Define.
67204         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67205         `/'.
67206         From Prashant TR.
67207
67208         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67209         (dir_name_r): Declare this function as static.
67210         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67211         manifest itself on a name containing a mix of slashes and
67212         backslashes.
67213         Make this function work with names starting with a DOS-style
67214         drive letter and colon prefix.
67215         (dir_name): Append `.' if necessary.
67216         Based mostly on patches from Prashant TR and Eli Zaretskii.
67217
67218         * lib/dirname.h (dir_name_r): Remove prototype.
67219
67220 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67221
67222         * m4/off_t-format.m4: Remove this file.
67223         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67224
67225 2000-12-06  Jim Meyering  <meyering@lucent.com>
67226
67227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67228         replacement strtoull, we may well need the replacement strtoul, too.
67229         Check for declarations of strtoul and strtoull.
67230         Check for strtol.  Mainly as a cue to cause automake to include
67231         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67232         Check for limits.h -- strtol.c needs it.
67233
67234 2000-12-05  Jim Meyering  <meyering@lucent.com>
67235
67236         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67237
67238 2000-12-04  Jim Meyering  <meyering@lucent.com>
67239
67240         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67241         Also include memory.h, stdlib.h, unistd.h if appropriate.
67242         Reported by Andreas Jaeger (conflicting declaration of malloc).
67243
67244 2000-12-02  Jim Meyering  <meyering@lucent.com>
67245
67246         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67247         * m4/jm-macros.m4 (jm_MACROS): require it.
67248
67249 2000-12-02  Jim Meyering  <meyering@lucent.com>
67250
67251         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67252
67253 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67254
67255         * lib/memrchr.c: Include <config.h> before any system include file.
67256
67257 2000-11-30  Jim Meyering  <meyering@lucent.com>
67258
67259         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67260
67261 2000-11-30  Jim Meyering  <meyering@lucent.com>
67262
67263         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67264
67265 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67266
67267         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67268
67269 2000-11-26  Jim Meyering  <meyering@lucent.com>
67270
67271         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67272
67273 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67274
67275         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67276         size of (size_t) -1; it's not portable.
67277
67278 2000-11-17  Jim Meyering  <meyering@lucent.com>
67279
67280         * lib/strstr.c: Update from GNU libc.
67281
67282 2000-11-17  Akim Demaille  <akim@epita.fr>
67283
67284         * lib/obstack.h: Formatting changes.
67285         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67286         prevent type checking.
67287         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67288         cast the value to (void *): assigning a `foo *' to a `void *'
67289         variable is valid.
67290         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67291
67292 2000-11-16  Jim Meyering  <meyering@lucent.com>
67293
67294         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67295
67296 2000-11-11  Jim Meyering  <meyering@lucent.com>
67297
67298         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67299
67300 2000-11-10  Jim Meyering  <meyering@lucent.com>
67301
67302         * lib/obstack.h: Update from GNU libc.
67303         * lib/obstack.c: Likewise.
67304
67305 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67306
67307         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67308
67309 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67310
67311         * lib/getusershell.c (setusershell): Use rewind rather than
67312         fseek/fseeko, to avoid configuration hassles with fseeko.
67313         Don't bother opening SHELLS_FILE if shellstream is NULL;
67314         it's not necessary.
67315
67316 2000-11-05  Jim Meyering  <meyering@lucent.com>
67317
67318         * lib/makepath.h (make_dir): Declare.
67319         * lib/makepath.c (make_dir): Remove `static' attribute.
67320         Tweak a comment.
67321
67322 2000-11-04  Jim Meyering  <meyering@lucent.com>
67323
67324         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67325
67326 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67327
67328         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67329         last one in a bucket, advance to the next bucket.
67330
67331 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67332
67333         * lib/fnmatch.c: Do not comment out all the code if we are using
67334         the GNU C library, because in some cases we are replacing buggy
67335         code in the GNU C library itself.
67336
67337 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67338
67339         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67340         (regex_compile): Catch bogus \(\1\).
67341
67342 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67343
67344         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67345         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67346         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67347
67348 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67349
67350         * lib/error.h, getline.h, modechange.h:
67351         Remove "2000" from Copyright line, as the file hasn't been
67352         changed this year other than in the copyright notice.
67353
67354         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67355         was changed this year.
67356
67357 2000-10-29  Jim Meyering  <meyering@lucent.com>
67358
67359         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67360         renaming.
67361         * m4/ls-mntd-fs.m4: Likewise
67362
67363 2000-10-29  Jim Meyering  <meyering@lucent.com>
67364
67365         * lib/xstat.in: Fix grammar in comment.
67366
67367 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67368
67369         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67370         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67371         doesn't define __restrict_arr.
67372
67373 2000-10-28  Jim Meyering  <meyering@lucent.com>
67374
67375         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67376         (jm_PREREQ_MEMCHR): New function.
67377
67378 2000-10-28  Jim Meyering  <meyering@lucent.com>
67379
67380         * lib/memchr.c: Update from libc.
67381         Adjust for portability:
67382         [HAVE_STDLIB_H]: Include stdlib.h.
67383         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67384         Undef __memchr, too.
67385         [!weak_alias]: Define __memchr to memchr.
67386
67387         * lib/regex.c: Update from libc.
67388         * lib/regex.h: Likewise.
67389         * lib/getopt1.c: Likewise.
67390         * lib/memcmp.c: Likewise.
67391
67392         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67393         Avoid using fseek, when possible -- it's broken by design.
67394         Patch by Ulrich Drepper.
67395
67396 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67397
67398         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67399         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67400         Giving in to popular pressure to shut up the compiler with casts.
67401
67402 2000-10-26  Jim Meyering  <meyering@lucent.com>
67403
67404         * lib/strftime.c: Update from libc.
67405
67406 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67407
67408         * regex.c: More `unsigned char' -> `re_char' changes.
67409         Also change several `int' into `re_wchar_t'.
67410         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67411         (PUSH_FAILURE_POINTER): Don't cast any more.
67412         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67413         We want GCC to complain, since this piece of code makes
67414         re_match non-reentrant, which *should* be fixed.
67415         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67416         (EXTEND_BUFFER): Use RETALLOC.
67417         (SET_LIST_BIT): Don't cast.
67418         (re_wchar_t): New type.
67419         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67420         that those two functions will always properly return.
67421         (IMMEDIATE_QUIT_CHECK): Cast to void.
67422         (analyse_first): Use recursion rather than an explicit stack.
67423         (re_compile_fastmap): Can't fail anymore.
67424         (re_search_2): Don't check re_compile_fastmap for failure.
67425         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67426         Now also sets the new value (passed in a new argument).
67427         (re_match_2_internal): Use it.
67428         Also, use a new var `reg' of type size_t when looping through regs
67429         rather than reuse the inappropriate `mcnt'.
67430
67431 2000-10-25  Jim Meyering  <meyering@lucent.com>
67432
67433         * lib/obstack.c: Update from libc.
67434
67435 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67436
67437         * regex.c (regex_compile): Change the way of handling a range from
67438         a char less than 256 to a char not less than 256.
67439
67440 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67441
67442         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67443         NT-Emacs only.
67444         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67445         so that re_search functions only quit when callers expect them to.
67446
67447 2000-10-23  Jim Meyering  <meyering@lucent.com>
67448
67449         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67450         wrong.  That set_locale call must not have any side effects.
67451         From Paul Eggert.
67452
67453 2000-10-22  Jim Meyering  <meyering@lucent.com>
67454
67455         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67456         [CYCLIC]: Remove now-unused definition.
67457
67458         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67459         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67460         Suggestion from Ulrich Drepper.
67461
67462 2000-10-21  Jim Meyering  <meyering@lucent.com>
67463
67464         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67465         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67467
67468 2000-10-21  Jim Meyering  <meyering@lucent.com>
67469
67470         * lib/dirname.c (memrchr): Declare if necessary.
67471         (dir_name): Remove the restriction that there be no
67472         trailing slashes.  Now, this code skips past them, effectively
67473         ignoring them.
67474         [TEST_DIRNAME] (main): New unit tests.
67475
67476         * lib/memrchr.c: New file from GNU libc.
67477         Undef __memrchr, too.
67478         [!weak_alias]: Define __memrchr to memrchr.
67479         Guard weak_alias use with `#ifdef weak_alias'.
67480
67481 2000-10-21  Jim Meyering  <meyering@lucent.com>
67482
67483         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67484         (dir_name): Use dir_name_r.
67485         * lib/dirname.h (dir_name_r): Declare it.
67486
67487 2000-10-17  Jim Meyering  <meyering@lucent.com>
67488
67489         * lib/quote.h (PARAMS): Define and use.
67490         Reported by Akim Demaille.
67491
67492         * lib/getopt.c: Update from libc.
67493
67494 2000-10-16  Jim Meyering  <meyering@lucent.com>
67495
67496         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67497         setlocale.
67498         From Jan Fedak.
67499
67500 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67501
67502         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67503
67504 2000-09-25  Jim Meyering  <meyering@lucent.com>
67505
67506         * lib/md5.h (rol): Define (from GnuPG).
67507
67508         * lib/sha.c: Give credit (GnuPG) where due.
67509         (M): Use rol rather than open-coding it.
67510         Add a FIXME comment.
67511
67512 2000-09-21  Jim Meyering  <meyering@lucent.com>
67513
67514         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67515         Reported by Michael Stone.
67516
67517 2000-09-20  Jim Meyering  <meyering@lucent.com>
67518
67519         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67520         (noinst_HEADERS): Add sha.h.
67521         Based on code from Scott G. Miller and from GnuPG.
67522
67523 2000-09-18  Jim Meyering  <meyering@lucent.com>
67524
67525         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67526         LIBS. Otherwise, everyone ends up linking with -lelf for some
67527         configurations.
67528         Reported by Mike Stone.
67529
67530 2000-09-15  Jim Meyering  <meyering@lucent.com>
67531
67532         * lib/regex.c: Update from libc.
67533
67534 2000-09-10  Jim Meyering  <meyering@lucent.com>
67535
67536         * lib/getopt.c (_getopt_internal): Update from glibc.
67537
67538 2000-09-09  Jim Meyering  <meyering@lucent.com>
67539
67540         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67541         think it should be used as a general replacement for isascii.
67542         * lib/fnmatch.c: Likewise.
67543         * lib/mbswidth.c: Likewise
67544         * lib/regex.c: Likewise.
67545
67546         Don't use atoi.
67547         * lib/userspec.c: Include sys/param.h and limits.h.
67548         Include xstrtol.h.
67549         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67550         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
67551         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
67552         UID, GID.  Check range.
67553
67554 2000-09-06  Jim Meyering  <meyering@lucent.com>
67555
67556         * lib/getopt.c (_getopt_internal): Update from glibc.
67557
67558 2000-08-30  Jim Meyering  <meyering@lucent.com>
67559
67560         * lib/strftime.c: Merge in changes from GNU libc.
67561
67562 2000-08-26  Jim Meyering  <meyering@lucent.com>
67563
67564         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
67565         * m4/fpending.m4: New file.
67566
67567 2000-08-26  Jim Meyering  <meyering@lucent.com>
67568
67569         * lib/closeout.c: Include "__fpending.h".
67570         (close_stdout_status): Return right away if there's nothing to flush.
67571
67572         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
67573         * lib/__fpending.c: New file.
67574         * lib/__fpending.h: New file.
67575
67576 2000-08-20  Jim Meyering  <meyering@lucent.com>
67577
67578         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
67579         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
67580         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
67581
67582 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
67583
67584         Improve fileutils installation on systems where running
67585         programs (like install) can't be unlinked.
67586         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
67587         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
67588
67589 2000-08-07  Paul Eggert  <eggert@twinsun.com>
67590
67591         Standardize on "memory exhausted" instead of "Memory exhausted"
67592         or "virtual memory exhausted".
67593         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
67594         "virtual memory exhausted".
67595         * lib/same.c (same_name): Invoke xalloc_die instead of printing
67596         our own message.
67597         * lib/userspec.c (parse_user_spec): Likewise.
67598         * lib/bumpalloc.h: comment fix
67599         * lib/same.c, userspec.c: Include xalloc.h.
67600
67601         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
67602         not char *const and pointing to a constant array.
67603         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
67604         (xrealloc): Comment fix.
67605
67606         * lib/userspec.c (parse_user_spec):
67607         Don't translate a message until just before returning,
67608         to avoid unnecessary translation.
67609
67610 2000-08-07  Jim Meyering  <meyering@lucent.com>
67611
67612         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
67613         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
67614         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
67615         getgroups.c, gethostname.c, getopt.h, group-member.c,
67616         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
67617         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
67618         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
67619         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
67620         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
67621         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
67622         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
67623         yesno.c: Back out Copyright date changes for each file with no change
67624         this year.  This eases coordination with other programs using the same
67625         source code modules.  From Paul Eggert.
67626
67627 2000-08-06  Paul Eggert  <eggert@twinsun.com>
67628
67629         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
67630         not char, for compatibility with glibc 2.1.3 strftime.c.
67631
67632 2000-08-03  Greg McGary  <greg@mcgary.org>
67633
67634         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
67635         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
67636         (EXTEND_BUFFER): Use them.
67637
67638 2000-08-01  Jim Meyering  <meyering@lucent.com>
67639
67640         * lib/dirname.c (ISSLASH): Define.
67641         (BACKSLASH_IS_PATH_SEPARATOR): Define.
67642         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
67643         both `\' and `/' may be use as path separators.
67644         Based on a patch from Prashant TR.
67645
67646 2000-07-31  Paul Eggert  <eggert@twinsun.com>
67647
67648         * lib/quotearg.c (quotearg_n_options): Don't make the initial
67649         slot vector a constant, since it might get modified.
67650
67651 2000-07-31  Jim Meyering  <meyering@lucent.com>
67652
67653         * lib/xmalloc.c: Use `virtual memory exhausted', not
67654         `Memory exhausted'.
67655         * lib/obstack.c (print_and_abort): Likewise.
67656
67657 2000-07-30  Paul Eggert  <eggert@twinsun.com>
67658
67659         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
67660         buffer, so that the caller can always quote one small
67661         component of a "memory exhausted" message in slot 0.
67662         From a suggestion by Jim Meyering.
67663
67664 2000-07-30  Jim Meyering  <meyering@lucent.com>
67665
67666         * lib/makepath.c (make_path): Quote the other instance, too.
67667
67668         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
67669         (STATIC_BUF_SIZE): Define.
67670         (quotearg_n_options): Use only statically allocated storage when
67671         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
67672         than STATIC_BUF_SIZE.
67673
67674 2000-07-29  Jim Meyering  <meyering@lucent.com>
67675
67676         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
67677         * lib/dirname.c (dir_name): Likewise.
67678
67679         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
67680         `/'.
67681
67682         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
67683         (dir_name): Assert that there are no trailing slashes.
67684
67685 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
67686
67687         * lib/mbswidth.h (mbswidth): Add a flags argument.
67688         (mbswidth): New declaration.
67689         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
67690         * lib/mbswidth.c (mbswidth): Add a flags argument.
67691         (mbsnwidth): New function.
67692
67693 2000-07-24  Jim Meyering  <meyering@lucent.com>
67694
67695         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
67696
67697 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67698
67699         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
67700
67701 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67702
67703         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
67704         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
67705         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
67706         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
67707         invoke multibyte primitives.
67708
67709 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67710
67711         * lib/quotearg.c:
67712         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
67713         so that mbstate_t is always defined.
67714
67715         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
67716         be 1 in at least one GCC installation, and this configuration
67717         error is likely to be common.  Ignoring MB_LEN_MAX hurts
67718         performance on hosts that have mbrtowc but have only unibyte
67719         locales, but I assume these hosts are rare.
67720
67721 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67722
67723         * lib/mbswidth.c (_XOPEN_SOURCE):
67724         Don't define; this causes problems on Solaris 7.
67725         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
67726
67727 2000-07-23  Jim Meyering  <meyering@lucent.com>
67728
67729         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
67730         too: getgrgid, getpwuid, getuid.
67731
67732 2000-07-23  Jim Meyering  <meyering@lucent.com>
67733
67734         * lib/basename.c (base_name): Add an assertion.
67735
67736 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
67737
67738         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
67739         shadow its mbsinit function.
67740
67741 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
67742
67743         * lib/mbswidth.h: New file.
67744         * lib/mbswidth.c: New file.
67745         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
67746         (noinst_HEADERS): Add mbswidth.h.
67747
67748 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
67749
67750         * lib/config.charset: Add support for FreeBSD. Improve support for
67751         HP-UX and IRIX 6.
67752
67753 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
67754
67755         * m4/mbswidth.m4: New file.
67756         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
67757
67758 2000-07-15  Jim Meyering  <meyering@lucent.com>
67759
67760         * lib/makepath.c: Include quote.h.
67761         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
67762         corresponding argument in a `quote (...)' call.
67763         Give better diagnostics.
67764
67765         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
67766         (noinst_HEADERS): Add quote.h.
67767
67768         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
67769         from tar's src/misc.c.
67770         * lib/quote.h: New file.  Prototypes for same.
67771
67772 2000-07-14  Paul Eggert  <eggert@twinsun.com>
67773
67774         From a suggestion by Bruno Haible.
67775         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
67776         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
67777         to decide whether to define the BeOS workaround macro;
67778         this adjusts to the change to AC_MBSTATE_T.
67779
67780 2000-07-14  Jim Meyering  <meyering@lucent.com>
67781
67782         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
67783         jm_AC_TYPE_UINTMAX_T.
67784
67785 2000-07-13  Paul Eggert  <eggert@twinsun.com>
67786
67787         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
67788
67789         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
67790         quotearg_buffer_restyled): Add support for
67791         clocale_quoting_style.  Undo previous change to
67792         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
67793         and "{RIGHT QUOTATION MARK}" msgids.
67794
67795 2000-07-10  Paul Eggert  <eggert@twinsun.com>
67796
67797         From a suggestion by Bruno Haible.
67798         * m4/mbstate_t.m4 (AC_MBSTATE_T):
67799         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
67800         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
67801         and mbstate_t, to a single-part test that simply defines mbstate_t.
67802         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
67803         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
67804
67805 2000-07-10  Jim Meyering  <meyering@lucent.com>
67806
67807         * m4/strerror_r.m4: Mirror the correction made in autoconf.
67808
67809         * m4/gnu-source.m4: Output to confdefs.h directly.
67810         Suggestion from Akim Demaille.
67811
67812 2000-07-09  Paul Eggert  <eggert@twinsun.com>
67813
67814         The old behavior of quoting `like this' doesn't look good with
67815         newer, ISO-style fonts.  See:
67816         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
67817
67818         Instead, quote "like this" by default.  Let the translator
67819         tailor the locale-specific quoting behavior by providing
67820         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
67821
67822         * lib/quotearg.c (N_): New macro.
67823         (gettext_default): New function.
67824         (quotearg_buffer_restyled): Use
67825         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
67826         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
67827
67828 2000-07-09  Jim Meyering  <meyering@lucent.com>
67829
67830         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
67831         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
67832
67833         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
67834         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
67835
67836 2000-07-09  Jim Meyering  <meyering@lucent.com>
67837
67838         * lib/Most files: Update copyright dates to include 2000.
67839
67840 2000-07-08  Jim Meyering  <meyering@lucent.com>
67841
67842         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
67843         if not defined.
67844         (xgethostname): Remove now-unnecessary #ifdef.
67845         Move declaration of `err' into loop where it's used.
67846
67847 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67848         and Bruno Haible  <haible@clisp.cons.org>
67849
67850         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
67851         only if the test for an object-type mbstate_t fails.  This
67852         prevents us from mistakenly reporting that mbstate_t is a
67853         system object type after we "#define mbstate_t int" to work
67854         around its lack.
67855
67856 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67857         and Bruno Haible  <haible@clisp.cons.org>
67858
67859         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
67860
67861 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67862
67863         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
67864         to strerror_r.
67865         Include <ctype.h> for use of isalpha.
67866
67867 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67868
67869         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
67870         by allocating a larger buffer. Test the gethostname return value for
67871         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
67872         returns an error and ENAMETOOLONG isn't defined.
67873
67874 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67875
67876         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
67877         dimension.
67878
67879 2000-07-04  Jim Meyering  <meyering@lucent.com>
67880
67881         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
67882         of the deprecated AC_CHECKING.
67883
67884 2000-07-04  Jim Meyering  <meyering@lucent.com>
67885
67886         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
67887         Reported by Bruno Haible.
67888
67889 2000-07-04  Jim Meyering  <meyering@lucent.com>
67890
67891         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
67892         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
67893         lacks mbrtowc.
67894
67895 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67896
67897         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
67898         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
67899
67900 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67901         and Bruno Haible  <haible@clisp.cons.org>
67902
67903         * lib/quotearg.c (mbrtowc):
67904         Assign to *pwc, and return 1 only if result is nonzero.
67905         (iswprint): Use ISPRINT when substituting our own mbrtowc.
67906
67907 2000-07-03  Jim Meyering  <meyering@lucent.com>
67908
67909         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
67910
67911 2000-07-03  Jim Meyering  <meyering@lucent.com>
67912
67913         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
67914         This is necessary to get a definition of e.g., UTMP_FILE on
67915         HP-UX 10.20.
67916         From Bob Proulx.
67917
67918 2000-07-02  Jim Meyering  <meyering@lucent.com>
67919
67920         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
67921
67922         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
67923         AC_LIBOBJ(function_name).
67924         * m4/chown.m4: Likewise.
67925         * m4/fnmatch.m4: Likewise.
67926         * m4/ftruncate.m4: Likewise.
67927         * m4/getgroups.m4: Likewise.
67928         * m4/getline.m4: Likewise.
67929         * m4/group-member.m4: Likewise.
67930         * m4/jm-macros.m4: Likewise.
67931         * m4/lstat.m4: Likewise.
67932         * m4/malloc.m4: Likewise.
67933         * m4/memcmp.m4: Likewise.
67934         * m4/nanosleep.m4: Likewise.
67935         * m4/putenv.m4: Likewise.
67936         * m4/realloc.m4: Likewise.
67937         * m4/regex.m4: Likewise.
67938         * m4/stat.m4: Likewise.
67939         * m4/strftime.m4: Likewise.
67940
67941 2000-07-02  Jim Meyering  <meyering@lucent.com>
67942
67943         * lib/quotearg.c (mbstate_t): Don't define here.
67944
67945 2000-07-02  Jim Meyering  <meyering@lucent.com>
67946
67947         * lib/nanosleep.c (SIGCONT): Define if not already defined.
67948
67949 2000-07-01  Jim Meyering  <meyering@lucent.com>
67950
67951         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
67952
67953 2000-07-01  Jim Meyering  <meyering@lucent.com>
67954
67955         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
67956         problem.
67957
67958 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67959
67960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
67961         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
67962
67963 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67964
67965         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
67966         per change in ../m4/ls-mntd-fs.m4.
67967         (read_filesystem_list): Ignore symbolic links.
67968
67969 2000-06-29  Jim Meyering  <meyering@lucent.com>
67970
67971         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
67972         for declaration of strcmp.
67973
67974         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
67975
67976         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
67977         Avoid warning by casting result to `char *' to remove `const'.
67978
67979 2000-06-28  Jim Meyering  <meyering@lucent.com>
67980
67981         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
67982         included by quotearg.c, for which we perform this test.  From
67983         Bruno Haible.
67984
67985 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67986
67987         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
67988         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
67989         <utmpx.h> exists, put readutmp.o into LIBOBJS.
67990
67991 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67992
67993         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
67994
67995 2000-06-26  Paul Eggert  <eggert@twinsun.com>
67996
67997         savedir now sets errno on failure and invokes xmalloc to get memory.
67998         Fix a couple of other minor bugs while we're at it.
67999
68000         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68001         (NAMLEN): Remove macro.
68002         (malloc, realloc): Remove decls.
68003         (stpcpy): Likewise.
68004         ("xalloc.h"): Include.
68005         (NAME_SIZE_DEFAULT): New macro.
68006         (savedir): Use xmalloc / xrealloc to allocate memory.
68007         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68008         Skip "" directory entries.
68009         Use strlen to calculate directory entry length, since the old method
68010         is rarely used these days and isn't worth supporting.
68011         Don't use a pointer after freeing it.
68012         Check for integer overflow when calculating allocation size.
68013         Use memcpy to copy entries, instead of stpcpy.
68014         Set errno properly when returning NULL.
68015         Check for readdir error.
68016
68017 2000-06-26  Jim Meyering  <meyering@lucent.com>
68018
68019         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68020
68021 2000-06-25  Jim Meyering  <meyering@lucent.com>
68022
68023         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68024         Linux header bug when _XOPEN_SOURCE is defined to 500.
68025
68026 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68027
68028         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68029         deficiency.
68030
68031 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68032
68033         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68034         Include xalloc.h.
68035         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68036
68037 2000-06-24  Jim Meyering  <meyering@lucent.com>
68038
68039         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68040         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68041         for which strerror does return char*, but which lacks a conveniently
68042         accessible declaration of the function.  If the compile-test says
68043         strerror_r doesn't work, then resort to a `run'-test that works on
68044         BeOS and segfaults on DEC Unix.
68045
68046 2000-06-24  Jim Meyering  <meyering@lucent.com>
68047
68048         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68049
68050 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68051
68052         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68053         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68054
68055 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68056
68057         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68058         (mbrtowc, mbstate_t): Define substitutes if
68059         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68060         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68061         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68062
68063 2000-06-23  Jim Meyering  <meyering@lucent.com>
68064
68065         * m4/afs.m4: Add missing AC_MSG_RESULT.
68066         Reported by Bruno Haible.
68067
68068         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68069         Suggestion from Bruno Haible.
68070
68071 2000-06-23  Jim Meyering  <meyering@lucent.com>
68072
68073         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68074
68075 2000-06-21  Jim Meyering  <meyering@lucent.com>
68076
68077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68078
68079 2000-06-21  Jim Meyering  <meyering@lucent.com>
68080
68081         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68082         (noinst_HEADERS): Add getstr.h.
68083
68084         * lib/getline.c (getstr): Move into a separate file.
68085         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68086         the following changes: new parameter, delim2; both delim[12]
68087         parameters have type `int', not `char'.  The latter would lose
68088         with 8-bit delimiters.
68089         * lib/getstr.h: New file.
68090
68091 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68092
68093         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68094         than 1024, return a memory chunk of least possible size, instead
68095         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68096         Use free/xmalloc instead of xrealloc to avoid copying for very long
68097         paths.
68098
68099 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68100
68101         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68102         the empty string.
68103
68104 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68105
68106         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68107         address, not strdup.  Include <stdlib.h> and don't declare free().
68108
68109 2000-06-19  Jim Meyering  <meyering@lucent.com>
68110
68111         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68112
68113 2000-06-18  Jim Meyering  <meyering@lucent.com>
68114
68115         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68116
68117         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68118         `checking whether...' message to be consistent with that of the
68119         lstat test.
68120
68121 2000-06-18  Jim Meyering  <meyering@lucent.com>
68122
68123         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68124         Besides, these days every porting target provides a mkdir function.
68125
68126         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68127         needed. (this snippet comes from src/system.h).
68128
68129 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68130
68131         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68132
68133 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68134
68135         * lib/human.c (adjust_value): New function.
68136         (human_readable_inexact): Apply rounding style even when
68137         printing approximate values.
68138
68139 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68140
68141         * lib/human.c (human_readable_inexact): Allow an input block
68142         size that is not a multiple of the output block size, and vice versa.
68143         Reported by Piergiorgio Sartor.
68144
68145 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68146
68147         * lib/getdate.y (get_date): Apply relative times after time
68148         zone indicator, not before.  Reported by Todd A. Jacobs.
68149
68150 2000-06-13  Jim Meyering  <meyering@lucent.com>
68151
68152         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68153
68154         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68155
68156 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68157
68158         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68159
68160 2000-06-12  Jim Meyering  <meyering@lucent.com>
68161
68162         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68163         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68164         optional argument.
68165         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68166         the optional argument, `lib'.
68167
68168 2000-06-08  Jim Meyering  <meyering@lucent.com>
68169
68170         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68171
68172 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68173
68174         Rewrite largefile configuration so that we don't need to run
68175         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68176         AC_CANONICAL_HOST in configure.in -- jmm]
68177
68178         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68179         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68180         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68181         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68182         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68183         All uses changed.
68184         Instead of inspecting the output of getconf, try to compile the
68185         test program without and with the macro definition.
68186         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68187         for getconf.  Instead, check for the needed flags by compiling
68188         test programs.
68189
68190 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68191
68192         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68193
68194 2000-06-04  Jim Meyering  <meyering@lucent.com>
68195
68196         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68197         SunOS 4.1.4 for which gid_t is an unsigned type.
68198
68199 2000-06-03  Jim Meyering  <meyering@lucent.com>
68200
68201         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68202         now that autoconf requires that.
68203
68204         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68205         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68206         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68207
68208 2000-06-03  Jim Meyering  <meyering@lucent.com>
68209
68210         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68211
68212 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68213
68214         * m4/glibc21.m4: New file.
68215         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68216
68217 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68218
68219         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68220         newer, don't install charset.alias.
68221         * lib/config.charset: Change the Linux/glibc rules so they become empty
68222         on glibc-2.1 or newer.
68223
68224 2000-06-02  Jim Meyering  <meyering@lucent.com>
68225
68226         * lib/mountlist.c: Back out last change.  Instead, do this...
68227         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68228         me_dummy member using the same `ignore'-testing code.
68229         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68230         fs_type strings.
68231         From Mark D. Roth.
68232
68233 2000-05-29  Jim Meyering  <meyering@lucent.com>
68234
68235         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68236         mounts with the `ignore' attribute.  Based on a patch from
68237         Mark D. Roth.
68238
68239 2000-05-28  Jim Meyering  <meyering@lucent.com>
68240
68241         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68242         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68243         * m4/stat.m4: Likewise.
68244         * m4/lstat.m4: Likewise.
68245         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68246
68247         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68248         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68249
68250 2000-05-26  Jim Meyering  <meyering@lucent.com>
68251
68252         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68253
68254 2000-05-24  Jim Meyering  <meyering@lucent.com>
68255
68256         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68257         autoconf requires that.
68258         * m4/lib-check.m4: Likewise.
68259         * m4/jm-macros.m4: Likewise.
68260         * m4/strftime.m4: Likewise.
68261
68262         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68263         AC_CHECK_DECLS, now that autoconf requires that.
68264
68265 2000-05-22  Jim Meyering  <meyering@lucent.com>
68266
68267         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68268         * m4/lstat.m4: Likewise.
68269
68270 2000-05-22  Jim Meyering  <meyering@lucent.com>
68271
68272         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68273
68274 2000-05-20  Jim Meyering  <meyering@lucent.com>
68275
68276         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68277         (jm_PREREQ): Use it.
68278
68279 2000-05-18  Jim Meyering  <meyering@lucent.com>
68280
68281         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68282         back, too, since it may have been modified by allocate_entry.
68283         (hash_delete): Rewrite to use neither the assignment operator
68284         nor the comma operator in an if-expression.
68285
68286 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68287
68288         * lib/closeout.c:
68289         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68290         Remove; no longer needed.
68291         "quotearg.h": Add include.
68292         (file_name): Do not bother to explicitly initialize to NULL; it's less
68293         efficient on some hosts.
68294         (close_stdout_status): Remove test as to whether stdout was already
68295         closed; it breaks for the case "echo x | sort >&-".
68296         Quote file name colons.
68297         Do not assume that _("write error") lacks format strings.
68298
68299 2000-05-15  Jim Meyering  <meyering@lucent.com>
68300
68301         * lib/version-etc.c (version_etc_copyright): Update the copyright
68302         string used in all --version output.
68303
68304 2000-05-14  Jim Meyering  <meyering@lucent.com>
68305
68306         * lib/closeout.c (close_stdout_set_file_name): New function.
68307         (close_stdout_status): Use new file-scoped global.
68308         Return right away if fstat says the stdout file descriptor is invalid.
68309         * lib/closeout.h (close_stdout_set_file_name): Declare.
68310
68311 2000-05-10  Jim Meyering  <meyering@lucent.com>
68312
68313         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68314         (close_stdout_set_status): New function.
68315         * lib/closeout.h (close_stdout_set_status): Declare.
68316
68317 2000-05-09  Jim Meyering  <meyering@lucent.com>
68318
68319         * m4/gettext.m4: Rename this...
68320         * m4/libintl.m4: ...to this.
68321
68322 2000-05-08  Jim Meyering  <meyering@lucent.com>
68323
68324         * lib/long-options.c: Don't include closeout.h.
68325         (parse_long_options): Don't call close_stdout for --version.
68326
68327 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68328
68329         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68330         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68331         2.1.3 bug.  This avoids a clash when files like regex.c define
68332         _GNU_SOURCE.
68333
68334 2000-05-06  Jim Meyering  <meyering@lucent.com>
68335
68336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68337         (AC_REPLACE_FUNCS): Add strnlen.
68338
68339         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68340         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68341
68342         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68343         AC_SEARCH_LIBS call for nanosleep.
68344         (LIB_NANOSLEEP): Set and AC_SUBST.
68345
68346 2000-05-06  Jim Meyering  <meyering@lucent.com>
68347
68348         * lib/strnlen.c: Undefine __strnlen and strnlen.
68349         [!weak_alias]: Define __strnlen to strnlen.
68350
68351         * lib/atexit.c: New file, from libiberty.
68352
68353 2000-05-06  Jim Meyering  <meyering@lucent.com>
68354
68355         * lib/closeout.c (close_stdout_status): Also check for errors on the
68356         stderr stream.
68357
68358 2000-05-05  Jim Meyering  <meyering@lucent.com>
68359
68360         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68361         AC_SEARCH_LIBS call for clock_gettime.
68362         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68363
68364         * m4/search-libs.m4: Update from autoconf.
68365
68366         su doesn't work on Solaris 2.6.
68367         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68368         <shadow.h>.  Reported by Dragos Harabor.
68369
68370 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68371
68372         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68373         memcpy instead of xmalloc, xrealloc, path_concat.
68374         (locale_charset): Treat empty environment variables as absent.
68375         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68376
68377 2000-05-04  Jim Meyering  <meyering@lucent.com>
68378
68379         * lib/getopt.c: Update from glibc.
68380         * lib/obstack.c: Likewise.
68381         * lib/obstack.h: Likewise.
68382         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68383         file
68384
68385         * lib/regex.h: Likewise.
68386         * lib/strndup.c: Likewise.
68387         * lib/strnlen.c: New file, from glibc.
68388
68389 2000-05-03  Jim Meyering  <meyering@lucent.com>
68390
68391         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68392
68393 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68394
68395         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68396         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68397         compile-time test, rather than inspecting host and OS, to
68398         decide whether to define _LARGEFILE_SOURCE.
68399
68400 2000-05-01  Jim Meyering  <meyering@lucent.com>
68401
68402         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68403
68404         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68405         Based on a patch from Bruno Haible.
68406
68407 2000-05-01  Jim Meyering  <meyering@lucent.com>
68408
68409         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68410
68411 2000-04-29  Jim Meyering  <meyering@lucent.com>
68412
68413         * lib/path-concat.c: Declare strdup only if it's not defined.
68414         * lib/canon-host.c: Likewise.
68415
68416 2000-04-28  Jim Meyering  <meyering@lucent.com>
68417
68418         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68419         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68420         is included first, then limits.h is included by locale.h by libintl.h.
68421         From John David Anglin.
68422
68423 2000-04-25  Jim Meyering  <meyering@lucent.com>
68424
68425         * lib/makepath.c (S_IRWXUGO): Define.
68426         (make_path): Always perform explicit chmod if MODE specifies any
68427         of the `special' permission bits.  Prompted by a bug report against
68428         install from Mate Wierdl and Joost van Baal.
68429
68430 2000-04-18  Jim Meyering  <meyering@lucent.com>
68431
68432         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68433         (jm_PREREQ): Use it.
68434
68435 2000-04-18  Jim Meyering  <meyering@lucent.com>
68436
68437         * lib/README: New file.
68438
68439         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68440         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68441
68442 2000-04-17  Jim Meyering  <meyering@lucent.com>
68443
68444         Get it right :-)
68445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68446         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68447         Suggestion from Akim Demaille.
68448
68449 2000-04-17  Jim Meyering  <meyering@lucent.com>
68450
68451         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68452         the definition of it to rpl_strftime also defined-away the system's
68453         declaration.
68454
68455 2000-04-15  Jim Meyering  <meyering@lucent.com>
68456
68457         Use `C' to denote so-called `contiguous' files, the same way
68458         that tar does.
68459         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68460         (ftypelet): Use S_ISCTG.
68461         From Michael Deutschmann.
68462
68463 2000-04-14  Jim Meyering  <meyering@lucent.com>
68464
68465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68466         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68467         clobbered.
68468
68469 2000-04-14  Jim Meyering  <meyering@lucent.com>
68470
68471         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68472
68473 2000-04-13  Jim Meyering  <meyering@lucent.com>
68474
68475         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68476         AH_VERBATIM to insert required #ifndef into config.h.in.
68477         Suggestion from Akim Demaille.
68478
68479 2000-04-12  Jim Meyering  <meyering@lucent.com>
68480
68481         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68482         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68483         Christian Krackowizer.
68484
68485         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68486         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68487         (AC_SYS_LARGEFILE): Require.
68488         (AM_C_PROTOTYPES): Require.
68489
68490 2000-04-08  Jim Meyering  <meyering@lucent.com>
68491
68492         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68493         names don't conflict.  Reported by Eli Zaretskii.
68494
68495 2000-04-07  Jim Meyering  <meyering@lucent.com>
68496
68497         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68498         sys/types.h, to work around system header problems on AIX 3.2.5.
68499         From Bruno Haible.
68500
68501 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68502
68503         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68504         bug.  Deal with the different error behavior of Irix iconv.
68505
68506 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68507
68508         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68509         IRIX if the installer said otherwise.
68510
68511 2000-04-05  Jim Meyering  <meyering@lucent.com>
68512
68513         Portability tweaks required for ultrix4.3.
68514         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68515         (jm_CHECK_DECLS): Add getutent to the list of functions.
68516         (_jm_DECL_HEADERS): Add utmpx.h.
68517         From John David Anglin.
68518
68519         * m4/strftime.m4: Back out the 2000-04-02 change.
68520         Instead of that change, simply undefine putenv in the test program.
68521
68522 2000-04-05  Jim Meyering  <meyering@lucent.com>
68523
68524         Portability tweaks required for ultrix4.3.
68525         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68526         getutent.
68527         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68528         * lib/canon-host.c: Declare strdup.
68529         * lib/path-concat.c: Likewise.
68530         From John David Anglin.
68531
68532 2000-04-04  Jim Meyering  <meyering@lucent.com>
68533
68534         Be more DOS 8.3-friendly.
68535         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68536         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68537         * lib/Makefile.am: Reflect renaming.
68538         Reported by Eli Zaretskii.
68539
68540         Use a temporary file name that won't clash with `charset.alias'
68541         in the DOS 8.3 name space.
68542         * lib/Makefile.am (charset_tmp): Define.
68543         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68544         (uninstall-local): Likewise.
68545         Reported by Eli Zaretskii.
68546
68547 2000-04-03  Jim Meyering  <meyering@lucent.com>
68548
68549         * m4/gettext.m4: Fix typo in comment.
68550
68551         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
68552         textutils/configure.in).  Suggestion from Paul Eggert.
68553         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
68554
68555 2000-04-02  Paul Eggert  <eggert@twinsun.com>
68556
68557         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
68558         variable in the shell rather than using putenv, which isn't
68559         portable.  This avoids the configure-time inter-test dependency
68560         on the potentially-renamed putenv function.
68561
68562 2000-03-30  Paul Eggert  <eggert@twinsun.com>
68563
68564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
68565         before checking struct stat.st_blksize, so that
68566         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
68567
68568 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68569
68570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
68571         since strftime.c uses HAVE_STRFTIME to decide whether to use
68572         the underlying strftime.
68573
68574 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68575
68576         * lib/time/strftime.c (my_strftime): Make sure we call the system
68577         strftime, not ourselves, when invoking the underlying strftime.
68578
68579 2000-03-24  Jim Meyering  <meyering@lucent.com>
68580
68581         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
68582         (charset_alias): Define.
68583         (install-exec-local): Factor out common code.
68584         (uninstall-local): Split lines longer than 80.
68585         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
68586         (SUFFIXES): Define.
68587         (.sed.in.sed): New rule.  Don't redirect directly to $@.
68588         (CLEANFILES): Add ref-add.sed and ref-del.sed.
68589
68590 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
68591
68592         * lib/config.charset: Output a line containing "Packages using this
68593         file".
68594         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
68595         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
68596         ref-del.sed): New rules.
68597
68598 2000-03-17  Jim Meyering  <meyering@lucent.com>
68599
68600         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
68601         Otherwise, include <strings.h>
68602
68603 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
68604
68605         * lib/unicodeio.c (utf8_wctomb): New function.
68606         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
68607         format instead of in UCS-4 with platform dependent endianness.
68608
68609 2000-03-10  Jim Meyering  <meyering@lucent.com>
68610
68611         * m4/lib-check.m4: Look for getspnam in -lgen, too.
68612         From Marco Franzen.
68613
68614 2000-03-07  Paul Eggert  <eggert@twinsun.com>
68615
68616         * lib/savedir.c (savedir): Work even if directory size is
68617         negative; this can happen with some screwy NFS configurations.
68618
68619 2000-03-06  Jim Meyering  <meyering@lucent.com>
68620
68621         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
68622         if it's NULL (because we ran out of memory).  From Bruno Haible.
68623
68624 2000-03-05  Jim Meyering  <meyering@lucent.com>
68625
68626         * lib/localcharset.c ("path-concat.h"): Include.
68627         (get_charset_aliases): Use path_concat instead of ANSI string
68628         concatenation.
68629
68630         * lib/unicodeio.h (PARAMS): Define.
68631         Use it to guard prototype.
68632
68633 2000-03-04  Jim Meyering  <meyering@lucent.com>
68634
68635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
68636         for lib/localcharset.c.
68637
68638 2000-03-04  Jim Meyering  <meyering@lucent.com>
68639
68640         * lib/Makefile.am (install-exec-local): Create $(libdir) before
68641         installing into it.
68642         (uninstall-local): Uncomment this rule so `make distcheck' works
68643         once again.
68644
68645         * lib/unicodeio.c (<errno.h>): Include it.
68646         (errno): Declare if not defined.
68647
68648         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
68649
68650         * lib/config.charset: New version, incorporating remarks from a linux
68651         i18n mailing list.  From Bruno Haible.
68652
68653 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
68654
68655         * m4/codeset.m4: New file.
68656         * m4/iconv.m4: New file.
68657         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
68658
68659 2000-03-03  Jim Meyering  <meyering@lucent.com>
68660
68661         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
68662
68663 2000-03-02  Jim Meyering  <meyering@lucent.com>
68664
68665         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
68666         the messages come out on separate lines.
68667
68668         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
68669         rather than jm_CHECK_DECLARATIONS.
68670         * m4/decl.m4: Remove now-unused file.
68671
68672         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
68673         geteuid.
68674
68675 2000-03-02  Jim Meyering  <meyering@lucent.com>
68676
68677         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
68678
68679 2000-03-01  Jim Meyering  <meyering@lucent.com>
68680
68681         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
68682         * lib/unicodeio.c: Likewise.
68683
68684 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
68685
68686         * lib/config.charset: New file.
68687         * lib/localcharset.c: New file.
68688         * lib/unicodeio.h, lib/unicodeio.c: New files.
68689         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
68690         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
68691         (noinst_HEADERS): Add unicodeio.h.
68692         (all-local, install-exec-local, charset.alias): New targets.
68693
68694 2000-02-28  Paul Eggert  <eggert@twinsun.com>
68695
68696         * lib/quotearg.c (ALERT_CHAR): New macro.
68697         (quotearg_buffer_restyled): Use it.
68698
68699 2000-02-27  Jim Meyering  <meyering@lucent.com>
68700
68701         * m4/check-decl.m4: Add getenv to the list.
68702
68703 2000-02-27  Jim Meyering  <meyering@lucent.com>
68704
68705         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
68706         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
68707
68708         * lib/backupfile.c: Guard inclusion of stdlib.h with
68709         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
68710         Declare malloc if needed.
68711
68712         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
68713         `#ifndef HAVE_DECL..'
68714         now that autoconf always defines the HAVE_DECL_ symbols.
68715         * lib/human.c: Likewise.
68716         * lib/same.c: Likewise.
68717         * lib/strtoumax.c: Likewise.
68718
68719         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
68720         declaration check was not run.
68721         * lib/hash.c: Likewise.
68722         * lib/human.c: Likewise.
68723         * lib/same.c: Likewise.
68724         * lib/strtoumax.c: Likewise.
68725
68726         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
68727         `.', then first look up the entire `.'-containing string as a login
68728         name.
68729
68730 2000-02-23  Jim Meyering  <meyering@lucent.com>
68731
68732         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
68733         in place of my hack.
68734
68735 2000-02-18  Paul Eggert  <eggert@twinsun.com>
68736
68737         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
68738         (textint): New typedef.
68739         (parser_control): Member year changed from int to textint.
68740         All uses changed.
68741         (YYSTYPE): Removed; replaced by %union with int and textint members.
68742         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
68743         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
68744         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
68745         (tSNUMBER, tUNUMBER): Now of type <textintval>.
68746         (date, number, to_year): Use width of number in digits, not its value,
68747         to determine whether it's a 2-digit year, or a 2-digit time.
68748         (yylex): Store number of digits of numeric tokens.
68749         Reported by John Kendall.
68750
68751         (parser_control): Changed from struct parser_control to typedef (for
68752         consistency).  All uses changed.
68753
68754         (tID): Removed; not used.
68755         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
68756
68757 2000-02-14  Paul Eggert  <eggert@twinsun.com>
68758
68759         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
68760         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
68761
68762 2000-02-12  Jim Meyering  <meyering@lucent.com>
68763
68764         * lib/userspec.c (ISDIGIT): Define it.
68765         (isdigit): Remove definition.
68766         (is_number): Use ISDIGIT, not isdigit.
68767         <libintl.h>: Include.
68768         (_ and N_): Define.
68769         (parse_user_spec): Mark translatable strings.
68770
68771 2000-02-10  Jim Meyering  <meyering@lucent.com>
68772
68773         With these changes, nanosleep.[ch] are finally enough like the other
68774         lib/* replacement files to compile on a few more losing systems.
68775
68776         * lib/nanosleep.h: Don't include config.h.
68777         Remove prototype from declaration of nanosleep.
68778         (PARAMS): Remove now-unneeded definition.
68779         * lib/nanosleep.c: #undef nanosleep.
68780         (rpl_nanosleep): Rename from nanosleep.
68781
68782 2000-02-10  Jim Meyering  <meyering@lucent.com>
68783
68784         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
68785         gnu_nanosleep to rpl_nanosleep.
68786
68787 2000-02-09  Jim Meyering  <meyering@lucent.com>
68788
68789         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
68790         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
68791
68792 2000-02-08  Akim Demaille  <akim@epita.fr>
68793
68794         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
68795         `[' and `]' and remove uses of `changequote'.
68796         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
68797         (AC_SYS_LARGEFILE): Likewise.
68798         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
68799         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
68800         of changequote.
68801         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
68802         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
68803         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
68804         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
68805
68806 2000-02-05  Jim Meyering  <meyering@lucent.com>
68807
68808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
68809         Remove explicit use of AC_HEADER_TIME.  It is required by
68810         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
68811         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
68812         in autoconf whereby the expansion of the latter ended up preceding
68813         the expansion of its prerequisite, AC_HEADER_TIME.
68814         Reported by Volker Borchert.
68815
68816 2000-02-03  Jim Meyering  <meyering@lucent.com>
68817
68818         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
68819
68820 2000-02-03  Jim Meyering  <meyering@lucent.com>
68821
68822         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
68823         rather than with `#if HAVE_UTMPNAME'.
68824
68825 2000-02-02  Jim Meyering  <meyering@lucent.com>
68826
68827         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
68828         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
68829         Reported by Eli Zaretskii.
68830
68831 2000-02-01  Jim Meyering  <meyering@lucent.com>
68832
68833         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
68834
68835 2000-01-31  Jim Meyering  <meyering@lucent.com>
68836
68837         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
68838         functions.  Add the time.h and sys/time.h headers along with the
68839         AC_REQUIRE'ment of AC_HEADER_TIME.
68840
68841 2000-01-31  Jim Meyering  <meyering@lucent.com>
68842
68843         * lib/nanosleep.h (nanosleep): Guard declaration with
68844         `#if ! HAVE_DECL_NANOSLEEP'.
68845         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
68846         the declaration in that vendor's sys/timers.h.
68847         Reported by Christian Krackowizer.
68848
68849         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
68850         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
68851         (ISPRINT): Likewise.
68852         Reported by Tom Tromey.
68853
68854 2000-01-30  Jim Meyering  <meyering@lucent.com>
68855
68856         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
68857
68858         * m4/prereq.m4 (utmp_includes): Define.
68859         Check for ut_user and ut_name members in both struct utmpx
68860         and struct utmp.
68861
68862 2000-01-30  Jim Meyering  <meyering@lucent.com>
68863
68864         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
68865         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
68866         header files where only utmpx.ut_user is declared.
68867
68868         * lib/readutmp.h (UT_USER): Define.
68869
68870 2000-01-29  Jim Meyering  <meyering@lucent.com>
68871
68872         * m4/lib-check.m4: New file containing library-related checks from
68873         fileutils and sh-utils (textutils had none).
68874
68875 2000-01-28  Jim Meyering  <meyering@lucent.com>
68876
68877         * m4/perl.m4: Change format of warning message to look more like that
68878         from the missing script.  Suggestion from François Pinard.
68879
68880 2000-01-25  Jim Meyering  <meyering@lucent.com>
68881
68882         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
68883         well as time.h in the compile check.
68884         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
68885         Fix typo in cross-compiling case: s/yes/no/.
68886
68887 2000-01-23  Jim Meyering  <meyering@lucent.com>
68888
68889         * m4/jm-macros.m4: Move df-related tests here from
68890         fileutils/configure.in
68891
68892         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
68893         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
68894
68895         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
68896         s/space/ac_fsusage_space/.
68897         (jm_FILE_SYSTEM_USAGE): Take two parameters.
68898
68899         * m4/ftruncate.m4: New file (derived from part of
68900         fileutils/configure.in).
68901         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
68902         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
68903
68904         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
68905         AC_SUBST these here, rather than just in sh-util/configure.in, so
68906         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
68907         all the same.
68908         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
68909         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
68910         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
68911         (AC_SUBST(POW_LIBM)): Likewise.
68912         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
68913
68914 2000-01-23  Jim Meyering  <meyering@lucent.com>
68915
68916         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
68917         obstack.c.
68918
68919 2000-01-22  Jim Meyering  <meyering@lucent.com>
68920
68921         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
68922
68923         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
68924
68925         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
68926         configure.in
68927         (AC_CHECK_HEADERS): Likewise for sh-utils.
68928         (AC_CHECK_HEADERS): Likewise for textutils.
68929         Merge the three lists of headers.
68930
68931         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
68932         from fileutils' configure.in.
68933
68934         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
68935         code. Moved tests into their own function (_jm_DECL_HEADERS) in
68936         check-decl.m4.
68937
68938         * m4/check-decl.m4: Use #if rather than #ifdef.
68939         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
68940         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
68941         (_jm_DECL_HEADERS): Define new function.
68942         (jm_CHECK_DECLARATIONS): Require it.
68943
68944 2000-01-22  Jim Meyering  <meyering@lucent.com>
68945
68946         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
68947         [! HAVE_DECL_STRTOULL]: Declare strtoull.
68948         Required for some AIX systems.  Reported by Christian Krackowizer.
68949         [TESTING] (main): New function.
68950
68951         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
68952         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
68953         letters.
68954
68955         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
68956         iswprint.
68957
68958         * lib/strverscmp.c (ISDIGIT): Define.
68959         (strverscmp): Use ISDIGIT, not isdigit.
68960
68961 2000-01-19  Jim Meyering  <meyering@lucent.com>
68962
68963         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
68964         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
68965         defines `struct timespec' in <sys/time.h>
68966
68967         * m4/c-bs-a.m4: Remove uses of changequote altogether.
68968         Thanks to Akim for explaining.
68969
68970 2000-01-17  Paul Eggert  <eggert@twinsun.com>
68971
68972         * lib/nanosleep.c (nanosleep):
68973         Don't use SA_INTERRUPT to decide whether to call sigaction, as
68974         POSIX.1 doesn't require SA_INTERRUPT and some systems
68975         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
68976         it's been part of POSIX.1 since day 1 (in 1988).
68977
68978 2000-01-17  Jim Meyering  <meyering@lucent.com>
68979
68980         * lib/interlock: Remove unused file.  Reported by François Pinard.
68981
68982 2000-01-16  Paul Eggert  <eggert@twinsun.com>
68983
68984         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
68985         alert, backslash, formfeed, and vertical tab unnecessarily in
68986         shell quoting style.
68987
68988 2000-01-16  Jim Meyering  <meyering@lucent.com>
68989
68990         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
68991         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
68992         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
68993         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
68994
68995 2000-01-16  Jim Meyering  <meyering@lucent.com>
68996
68997         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
68998         because the latter didn't work.
68999
69000 2000-01-15  Jim Meyering  <meyering@lucent.com>
69001
69002         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69003         (AC_REPLACE_FUNCS): Add memcpy and memset.
69004         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69005         Add strpbrk.
69006         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69007
69008 2000-01-12  Jim Meyering  <meyering@lucent.com>
69009
69010         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69011         (jm_PREREQ): Use it.
69012         (jm_PREREQ_READUTMP): New macro.
69013         (jm_PREREQ): Use it.
69014
69015 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69016
69017         Quote multibyte characters correctly.
69018         * m4/c-bs-a.m4: New file.
69019         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69020         (jm_PREREQ): Use it.
69021
69022 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69023
69024         * m4/uintmax_t.m4: Port to autoconf 2.13.
69025
69026 2000-01-08  Jim Meyering  <meyering@ascend.com>
69027
69028         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69029         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69030
69031 2000-01-04  Jim Meyering  <meyering@ascend.com>
69032
69033         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69034         jm_STRUCT_DIRENT_D_TYPE.
69035         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69036         jm_STRUCT_DIRENT_D_INO.
69037         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69038         jm_STRUCT_UTIMBUF.
69039         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69040         renamings.
69041         * m4/utime.m4: Likewise.
69042
69043         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69044         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69045
69046 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69047
69048         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69049         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69050
69051 2000-01-02  Jim Meyering  <meyering@ascend.com>
69052
69053         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69054         remember if this is necessary.
69055
69056 1999-12-26  Jim Meyering  <meyering@ascend.com>
69057
69058         * m4/jm-macros.m4: Use it here.
69059         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69060
69061 1999-12-23  Jim Meyering  <meyering@ascend.com>
69062
69063         * m4/jm-macros.m4: Check for clock_gettime (moved from
69064         fileutils/configure.in)
69065         Check for gettimeofday.
69066
69067 1999-12-20  Jim Meyering  <meyering@ascend.com>
69068
69069         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69070         autoconf-2.14a-1999-12-20.
69071
69072 1999-12-19  Jim Meyering  <meyering@ascend.com>
69073
69074         * m4/lstat-slash.m4: New file.
69075         * m4/jm-macros.m4: Use the new macro:
69076         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69077
69078 1999-12-07  Jim Meyering  <meyering@ascend.com>
69079
69080         * m4/perl.m4: Require that File::Compare be available, too.
69081         Too many systems seem to lack it.
69082
69083         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69084         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69085
69086 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69087
69088         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69089         problem with the QNX 4.25 shell, which doesn't propagate exit
69090         status of failed commands inside shell assignments.
69091
69092 1999-11-17  Jim Meyering  <meyering@ascend.com>
69093
69094         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69095
69096 1999-11-07  Jim Meyering  <meyering@ascend.com>
69097
69098         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69099
69100 1999-11-06  Jim Meyering  <meyering@ascend.com>
69101
69102         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69103         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69104
69105 1999-11-05  Jim Meyering  <meyering@ascend.com>
69106
69107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69108         configure.in of textutils, fileutils, and sh-utils into this one
69109         (shared between those packages) file.
69110         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69111         AC_STRUCT_ST_BLKSIZE.
69112
69113 1999-11-03  Jim Meyering  <meyering@ascend.com>
69114
69115         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69116         of AC_CHECK_TYPE checks includes unistd.h.
69117         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69118         Suggestion from Akim Demaille.
69119
69120 1999-10-30  Jim Meyering  <meyering@ascend.com>
69121
69122         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69123         m4-quoted string.
69124         * m4/ls-mntd-fs.m4: Likewise.
69125         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69126         * m4/jm-winsz1.m4: Likewise.
69127
69128         * m4/const.m4: Remove file, since the fix made it into the experimental
69129         version of autoconf.
69130         * m4/mktime.m4: Likewise.
69131
69132         * m4/check-type.m4: Remove file, now that the latest version of
69133         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69134
69135         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69136         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69137         AC_CHECK_TYPE.
69138
69139 1999-10-04  Jim Meyering  <meyering@ascend.com>
69140
69141         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69142
69143 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69144
69145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69146         2.95.1 bug with HP-UX 10.20.
69147
69148 1999-09-17  Jim Meyering  <meyering@ascend.com>
69149
69150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69151         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69152         due to missing strdup (against sh-utils-2.0).
69153
69154 1999-08-29  Jim Meyering  <meyering@ascend.com>
69155
69156         * m4/jm-macros.m4: Require jm_BISON.
69157         * m4/bison.m4: New file.
69158
69159 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69160
69161         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69162         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69163
69164 1999-08-05  Jim Meyering  <meyering@ascend.com>
69165
69166         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69167         to avoid conflicts with `conftest' on 8+3 filesystems.
69168         Suggestion from Eli Zaretskii.
69169
69170 1999-08-04  Jim Meyering  <meyering@ascend.com>
69171
69172         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69173         fileutils and sh-utils (textutils's getline test was inadequate).
69174         (AM_FUNC_GETLINE): Run this test.
69175         (AC_CHECK_FUNCS): Check for getdelim.
69176         Reported by Bob Proulx.
69177
69178 1999-08-02  Jim Meyering  <meyering@ascend.com>
69179
69180         * m4/jm-macros.m4: Add a comment.
69181
69182 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69183
69184         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69185         <inttypes.h> defines strtoumax as a macro (and not as a
69186         function).
69187
69188 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69189
69190         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69191         that we can shift, multiply and divide unsigned long long
69192         values; Ultrix cc can't do it.
69193
69194 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69195
69196         * m4/mktime.m4: New file, which is a preview of what should appear
69197         in the next public autoconf release.
69198
69199 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69200
69201         * m4/lfs.m4: Remove this file.
69202         * m4/largefile.m4: New file.  It contains the old contents of
69203         lfs.m4, except that all names with prefix AC_LFS have been
69204         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69205         compatible with future autoconf versions.  Also, some minor m4
69206         quoting problems have been fixed.
69207
69208 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69209
69210         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69211         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69212         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69213         and simplify the shell code.
69214
69215 1999-08-01  Jim Meyering  <meyering@ascend.com>
69216
69217         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69218         m4.
69219
69220 1999-07-20  Jim Meyering  <meyering@ascend.com>
69221
69222         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69223
69224 1999-07-15  Jim Meyering  <meyering@ascend.com>
69225
69226         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69227
69228 1999-05-22  Jim Meyering  <meyering@ascend.com>
69229
69230         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69231
69232 1999-05-20  Jim Meyering  <meyering@ascend.com>
69233
69234         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69235         Add a colon after each `then' in case $4 is empty.
69236
69237 1999-05-16  Jim Meyering  <meyering@ascend.com>
69238
69239         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69240
69241 1999-05-10  Jim Meyering  <meyering@ascend.com>
69242
69243         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69244
69245         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69246         AC_FUNC_MKTIME.
69247
69248 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69249
69250         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69251
69252 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69253
69254         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69255         not CPPFLAGS, so that linking works correctly in IRIX.
69256
69257 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69258
69259         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69260
69261 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69262
69263         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69264         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69266         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69267         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69268
69269         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69270
69271 1999-04-20  Jim Meyering  <meyering@ascend.com>
69272
69273         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69274         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69275         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69276
69277 1999-04-18  Jim Meyering  <meyering@ascend.com>
69278
69279         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69280         * m4/jm-macros.m4: Use it.
69281
69282 1999-04-06  Jim Meyering  <meyering@ascend.com>
69283
69284         * m4/strftime.m4: Remove test for %f.
69285
69286 1999-03-29  Jim Meyering  <meyering@ascend.com>
69287
69288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69289         superset of the AC_TYPE_* checks in the textutils, fileutils,
69290         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69291         AC_TYPE_PID_T.
69292
69293 1999-03-28  Jim Meyering  <meyering@ascend.com>
69294
69295         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69296         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69297         replaced e.g., in the *.sh files of the sh-utils.
69298
69299 1999-03-20  Jim Meyering  <meyering@ascend.com>
69300
69301         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69302         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69303         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69304
69305 1999-03-19  Jim Meyering  <meyering@ascend.com>
69306
69307         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69308
69309 1999-03-12  Jim Meyering  <meyering@ascend.com>
69310
69311         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69312
69313 1999-03-07  Jim Meyering  <meyering@ascend.com>
69314
69315         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69316         declared.
69317
69318 1999-02-17  Jim Meyering  <meyering@ascend.com>
69319
69320         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69321         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69322
69323 1999-02-07  Jim Meyering  <meyering@ascend.com>
69324
69325         * m4/group-member.m4: New file -- extracted from sh-utils'
69326         configure.in.
69327
69328         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69329         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69330
69331 1999-02-06  Jim Meyering  <meyering@ascend.com>
69332
69333         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69334         * m4/fnmatch.m4: Likewise.
69335         * m4/getgroups.m4: Likewise.
69336         * m4/lstat.m4: Likewise.
69337         * m4/malloc.m4: Likewise.
69338         * m4/putenv.m4: Likewise.
69339         * m4/realloc.m4: Likewise.
69340         * m4/regex.m4: Likewise.
69341         * m4/stat.m4: Likewise.
69342         * m4/strftime.m4: Likewise.
69343         Suggestion from Alain Magloire.
69344
69345         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69346         * m4/fnmatch.m4: Likewise.
69347         * m4/getgroups.m4: Likewise.
69348         * m4/getline.m4: Likewise.
69349         * m4/lstat.m4: Likewise.
69350         * m4/malloc.m4: Likewise.
69351         * m4/memcmp.m4: Likewise.
69352         * m4/putenv.m4: Likewise.
69353         * m4/realloc.m4: Likewise.
69354         * m4/regex.m4: Likewise.
69355         * m4/stat.m4: Likewise.
69356         * m4/strftime.m4: Likewise.
69357         Suggestion from Alain Magloire.
69358
69359         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69360         an argument.
69361
69362         * m4/regex.m4: Add a run-time Test for proper operation of
69363         re_compile_pattern.
69364
69365 1999-01-31  Jim Meyering  <meyering@ascend.com>
69366
69367         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69368
69369 1999-01-30  Jim Meyering  <meyering@ascend.com>
69370
69371         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69372
69373         * m4/jm-mktime.m4: Make this a wrapper around the official
69374         AM_FUNC_MKTIME rather than my private copy, now that the official one
69375         is up to date.
69376         * m4/mktime.m4: Remove file.
69377
69378         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69379         * m4/uptime.m4: Likewise.
69380         * m4/uintmax_t.m4: Likewise.
69381
69382 1999-01-28  Jim Meyering  <meyering@ascend.com>
69383
69384         * m4/jm-macros.m4: Use jm_AFS.
69385         * m4/afs.m4: New file (from fileutils' configure.in).
69386
69387         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69388         * m4/chown.m4: Likewise.
69389         * m4/d-ino.m4: Likewise.
69390         * m4/d-type.m4: Likewise.
69391         * m4/fnmatch.m4: Likewise.
69392         * m4/getgroups.m4: Likewise.
69393         * m4/gettext.m4: Likewise.
69394         * m4/jm-mktime.m4: Likewise.
69395         * m4/jm-winsz2.m4: Likewise.
69396         * m4/lcmessage.m4: Likewise.
69397         * m4/ls-mntd-fs.m4: Likewise.
69398         * m4/malloc.m4: Likewise.
69399         * m4/memcmp.m4: Likewise.
69400         * m4/putenv.m4: Likewise.
69401         * m4/realloc.m4: Likewise.
69402         * m4/st_mtim.m4: Likewise.
69403         * m4/strftime.m4: Likewise.
69404
69405 1999-01-16  Jim Meyering  <meyering@ascend.com>
69406
69407         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69408         (ARGMATCH_DIE_DECL): Define.
69409
69410 1999-01-12  Jim Meyering  <meyering@ascend.com>
69411
69412         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69413         Reported by Lars Hecking.
69414
69415 1999-01-10  Jim Meyering  <meyering@ascend.com>
69416
69417         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69418         gross kludge.
69419         * m4/inttypes_h.m4: Likewise.
69420         * m4/lstat.m4: Likewise.
69421         * m4/malloc.m4: Likewise.
69422         * m4/readdir.m4: Likewise.
69423         * m4/realloc.m4: Likewise.
69424         * m4/st_dm_mode.m4: Likewise.
69425         * m4/stat.m4: Likewise.
69426         * m4/utimbuf.m4: Likewise.
69427         * m4/utimes.m4: Likewise.
69428
69429         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69430         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69431         comments in config.h.in are meaningful.
69432
69433         * m4/jm-macros.m4: Require autoconf-2.13 here.
69434
69435         * m4/regex.m4: By default, don't use the included regex.c on systems
69436         with glibc 2.  Suggestion from Uli Drepper.
69437
69438 1999-01-02  Jim Meyering  <meyering@ascend.com>
69439
69440         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69441
69442 1998-12-18  Jim Meyering  <meyering@ascend.com>
69443
69444         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69445         Based on a suggestion from Lars Hecking.
69446
69447 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69448
69449         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69450
69451 1998-11-16  Jim Meyering  <meyering@ascend.com>
69452
69453         * m4/lfs.m4: Double-quote the `uname...` expression.
69454
69455 1998-11-14  Jim Meyering  <meyering@ascend.com>
69456
69457         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69458         * m4/stat.m4: Likewise.
69459
69460 1998-11-03  Jim Meyering  <meyering@ascend.com>
69461
69462         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69463         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69464
69465 1998-10-18  Jim Meyering  <meyering@ascend.com>
69466
69467         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69468
69469 1998-10-17  Jim Meyering  <meyering@ascend.com>
69470
69471         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69472         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69473         calls for those previously hard-coded headers.  Instead, take a new
69474         parameter.
69475         (jm_CHECK_DECLARATIONS): Reflect interface change.
69476         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69477         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69478
69479         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69480
69481 1998-10-14  Jim Meyering  <meyering@ascend.com>
69482
69483         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69484         instead of "TZ=America/Vancouver".  From Paul Eggert.
69485
69486 1998-10-11  Jim Meyering  <meyering@ascend.com>
69487
69488         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69489         This adds a test for a recently added compatibility fix for mktime.c.
69490         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69491
69492 1998-09-27  Jim Meyering  <meyering@ascend.com>
69493
69494         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69495
69496         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69497         ../configure.in, including a change from Gordon Matzigkeit to allow
69498         cross-compiling for the Hurd.
69499
69500         * m4/glibc.m4: New file/macro to test for the GNU C Library
69501         versions 1 and 2.  From Gordon Matzigkeit.
69502         Indent.
69503
69504 1998-09-21  Jim Meyering  <meyering@ascend.com>
69505
69506         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69507
69508 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69509
69510         Port nanosecond-resolution times to UnixWare 2.1.2 and
69511         pedantic Solaris 2.6.
69512
69513         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69514         AC_STRUCT_ST_MTIM.
69515         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69516         Generate name of ns member, instead of just 1 or undef.
69517         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69518
69519 1998-08-15  Jim Meyering  <meyering@ascend.com>
69520
69521         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69522         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69523         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69524         instead of jm_TYPE_SSIZE_T.
69525
69526 1998-08-12  Jim Meyering  <meyering@ascend.com>
69527
69528         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69529
69530 1998-08-02  Jim Meyering  <meyering@ascend.com>
69531
69532         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69533         in acconfig.h manually.
69534
69535 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69536
69537         * m4/st_mtim.m4: New file.
69538
69539 1998-07-28  Jim Meyering  <meyering@ascend.com>
69540
69541         * m4/utimes.m4: Undef stat.
69542
69543 1998-07-25  Jim Meyering  <meyering@ascend.com>
69544
69545         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69546         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69547
69548 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
69549
69550         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
69551         uid and gid actually remain unchanged.
69552
69553 1998-07-07  Jim Meyering  <meyering@ascend.com>
69554
69555         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
69556
69557 1998-07-04  Jim Meyering  <meyering@ascend.com>
69558
69559         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
69560         to prove that this macro can be used in packages without regex.c.
69561
69562 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
69563
69564         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
69565         is to be used.
69566
69567 1998-07-03  Jim Meyering  <meyering@ascend.com>
69568
69569         * m4/gettext.m4: Add -lintl if it's found to be necessary.
69570
69571         * m4/gettext.m4: New file -- from gettext-0.10.35.
69572         * m4/lcmessage.m4: Likewise.
69573         * m4/progtest.m4: Likewise.
69574
69575         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
69576         * m4/jm-macros.m4: Require the new macro.
69577
69578 1998-06-29  Jim Meyering  <meyering@ascend.com>
69579
69580         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
69581         for the definition of NGROUPS (used in a system header included
69582         by sys/mount.h).
69583
69584 1998-06-28  Jim Meyering  <meyering@ascend.com>
69585
69586         * m4/ls-mntd-fs.m4: New file.
69587         * m4/fstypename.m4: New file.
69588
69589         * m4/jm-macros.m4: Require the new macro.
69590         * m4/jm-glibc-io.m4: New file.
69591
69592 1998-05-19  Jim Meyering  <meyering@ascend.com>
69593
69594         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
69595         * m4/lchown.m4: New file.
69596
69597         * m4/Makefile.am.in: New file.
69598         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
69599
69600 1998-05-14  Jim Meyering  <meyering@ascend.com>
69601
69602         * m4/Makefile.am (EXTRA_DIST): Add them.
69603         * m4/jm-macros.m4: New file.
69604         * m4/utimbuf.m4: New file.
69605
69606 1998-05-12  Jim Meyering  <meyering@ascend.com>
69607
69608         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
69609
69610 1998-05-11  Jim Meyering  <meyering@ascend.com>
69611
69612         * m4/isc-posix.m4: New file.
69613
69614 1998-05-10  Jim Meyering  <meyering@ascend.com>
69615
69616         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
69617
69618 1998-05-09  Jim Meyering  <meyering@ascend.com>
69619
69620         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
69621         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
69622         with automake.
69623
69624         * m4/ssize_t.m4: New file.
69625         * m4/mktime.m4: Remove file -- the new automake has this now.
69626
69627 1998-04-26  Jim Meyering  <meyering@ascend.com>
69628
69629         * m4/assert.m4: New file.
69630         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
69631
69632 1998-04-05  Jim Meyering  <meyering@ascend.com>
69633
69634         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
69635         (jm_PREREQ): Use it here.
69636
69637 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
69638
69639         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
69640         in acconfig.h.
69641
69642 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
69643
69644         * m4/prereq.m4: New file.
69645         * m4/error.m4: New file.
69646         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
69647
69648 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
69649
69650         * m4/getline.m4: Don't set am_cv_func_working_getline before the
69651         cache-check for the same variable -- that defeated the purpose of
69652         the test; the test program was never run.  This was a problem only
69653         on systems with losing getline functions -- HP-UX 10.20 is one.
69654         Reported by Bjorn Helgaas.
69655
69656 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
69657
69658         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
69659
69660 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
69661
69662         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
69663
69664         * m4/const.m4: New file.  Use an initializer in this declaration
69665         typedef int charset[2]; const charset x;
69666         Reported by Bob Glickstein.
69667
69668 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
69669
69670         * m4/chown.m4: Fix reversed types on -1 args to chown.
69671         From Kaveh Ghazi.
69672
69673 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
69674
69675         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
69676         Add lseek and memchr.
69677
69678         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
69679         T.E.Dickey <dickey@clark.net> said that some older preprocessors
69680         have a 20-character limit on names.
69681
69682 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
69683
69684         * m4/inttypes_h.m4: New file.
69685         * m4/uintmax_t.m4: New file.
69686         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
69687
69688
69689         -----
69690
69691         Local Variables:
69692         coding: utf-8
69693         End:
69694
69695         Copyright (C) 1997-2010 Free Software Foundation, Inc.
69696
69697         Copying and distribution of this file, with or without
69698         modification, are permitted provided the copyright notice
69699         and this notice are preserved.